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
661 common_out_object_file
677 gcc_gxx_include_dir_add_sysroot
684 user_headers_inc_next_post
685 user_headers_inc_next_pre
687 TM_MULTILIB_EXCEPTIONS_CONFIG
697 build_xm_include_list
699 build_install_headers_dir
701 all_selected_languages
704 all_lang_configurefrags
720 ld_version_script_option
725 ORIGINAL_NM_FOR_TARGET
727 ORIGINAL_LD_GOLD_FOR_TARGET
728 ORIGINAL_LD_BFD_FOR_TARGET
729 ORIGINAL_LD_FOR_TARGET
730 ORIGINAL_PLUGIN_LD_FOR_TARGET
732 ORIGINAL_AS_FOR_TARGET
750 NO_PIE_FLAG_FOR_BUILD
751 NO_PIE_CFLAGS_FOR_BUILD
761 BUILD_SYSTEM_HEADER_DIR
781 NATIVE_SYSTEM_HEADER_DIR
816 omp_device_property_deps
817 omp_device_properties
819 real_target_noncanonical
820 enable_as_accelerator
822 DOCUMENTATION_ROOT_URL
837 valgrind_path_defines
867 CROSS_SYSTEM_HEADER_DIR
868 TARGET_SYSTEM_ROOT_DEFINE
870 SYSROOT_CFLAGS_FOR_TARGET
916 program_transform_name
927 ac_subst_files
='option_includes
930 enable_option_checking
933 with_native_system_header_dir
938 enable_generated_files_in_srcdir
945 enable_build_format_warnings
949 enable_gather_detailed_mem_stats
950 enable_valgrind_annotations
954 with_stack_clash_protection_guard_size
969 with_documentation_root_url
978 enable_sjlj_exceptions
979 with_gcc_major_version_only
981 enable_mingw_wildcard
982 enable_large_address_aware
983 enable_leading_mingw64_underscores
986 enable_win32_registry
994 enable_gnu_indirect_function
995 enable_initfini_array
997 enable_newlib_nano_formatted_io
998 enable_standard_branch_protection
999 enable_fix_cortex_a53_835769
1000 enable_fix_cortex_a53_843419
1002 enable_gnu_unique_object
1003 enable_linker_build_id
1006 with_long_double_128
1007 with_long_double_format
1010 enable_maintainer_mode
1012 enable_version_specific_runtime_libs
1015 enable_libquadmath_support
1016 with_linker_hash_style
1017 with_diagnostics_color
1018 with_diagnostics_urls
1021 ac_precious_vars
='build_alias
1040 # Initialize some variables set by options.
1042 ac_init_version
=false
1043 ac_unrecognized_opts
=
1044 ac_unrecognized_sep
=
1045 # The variables have the same names as the options, with
1046 # dashes changed to underlines.
1047 cache_file
=/dev
/null
1054 program_transform_name
=s
,x
,x
,
1062 # Installation directory options.
1063 # These are left unexpanded so users can "make install exec_prefix=/foo"
1064 # and all the variables that are supposed to be based on exec_prefix
1065 # by default will actually change.
1066 # Use braces instead of parens because sh, perl, etc. also accept them.
1067 # (The list follows the same order as the GNU Coding Standards.)
1068 bindir
='${exec_prefix}/bin'
1069 sbindir
='${exec_prefix}/sbin'
1070 libexecdir
='${exec_prefix}/libexec'
1071 datarootdir
='${prefix}/share'
1072 datadir
='${datarootdir}'
1073 sysconfdir
='${prefix}/etc'
1074 sharedstatedir
='${prefix}/com'
1075 localstatedir
='${prefix}/var'
1076 includedir
='${prefix}/include'
1077 oldincludedir
='/usr/include'
1078 docdir
='${datarootdir}/doc/${PACKAGE}'
1079 infodir
='${datarootdir}/info'
1084 libdir
='${exec_prefix}/lib'
1085 localedir
='${datarootdir}/locale'
1086 mandir
='${datarootdir}/man'
1092 # If the previous option needs an argument, assign it.
1093 if test -n "$ac_prev"; then
1094 eval $ac_prev=\
$ac_option
1100 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1105 # Accept the important Cygnus configure options, so we can diagnose typos.
1107 case $ac_dashdash$ac_option in
1111 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1113 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1114 bindir
=$ac_optarg ;;
1116 -build |
--build |
--buil |
--bui |
--bu)
1117 ac_prev
=build_alias
;;
1118 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1119 build_alias
=$ac_optarg ;;
1121 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1122 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1123 ac_prev
=cache_file
;;
1124 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1125 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1126 cache_file
=$ac_optarg ;;
1128 --config-cache |
-C)
1129 cache_file
=config.cache
;;
1131 -datadir |
--datadir |
--datadi |
--datad)
1133 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1134 datadir
=$ac_optarg ;;
1136 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1137 |
--dataroo |
--dataro |
--datar)
1138 ac_prev
=datarootdir
;;
1139 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1140 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1141 datarootdir
=$ac_optarg ;;
1143 -disable-* |
--disable-*)
1144 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1147 as_fn_error $?
"invalid feature name: $ac_useropt"
1148 ac_useropt_orig
=$ac_useropt
1149 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1152 "enable_
$ac_useropt"
1154 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155 ac_unrecognized_sep
=', ';;
1157 eval enable_
$ac_useropt=no
;;
1159 -docdir |
--docdir |
--docdi |
--doc |
--do)
1161 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1162 docdir
=$ac_optarg ;;
1164 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1166 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1167 dvidir
=$ac_optarg ;;
1169 -enable-* |
--enable-*)
1170 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1173 as_fn_error $?
"invalid feature name: $ac_useropt"
1174 ac_useropt_orig
=$ac_useropt
1175 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_
$ac_useropt"
1180 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181 ac_unrecognized_sep
=', ';;
1183 eval enable_
$ac_useropt=\
$ac_optarg ;;
1185 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1186 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1187 |
--exec |
--exe |
--ex)
1188 ac_prev
=exec_prefix
;;
1189 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1190 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1191 |
--exec=* |
--exe=* |
--ex=*)
1192 exec_prefix
=$ac_optarg ;;
1194 -gas |
--gas |
--ga |
--g)
1195 # Obsolete; use --with-gas.
1198 -help |
--help |
--hel |
--he |
-h)
1199 ac_init_help
=long
;;
1200 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1201 ac_init_help
=recursive
;;
1202 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1203 ac_init_help
=short
;;
1205 -host |
--host |
--hos |
--ho)
1206 ac_prev
=host_alias
;;
1207 -host=* |
--host=* |
--hos=* |
--ho=*)
1208 host_alias
=$ac_optarg ;;
1210 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1212 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1214 htmldir
=$ac_optarg ;;
1216 -includedir |
--includedir |
--includedi |
--included |
--include \
1217 |
--includ |
--inclu |
--incl |
--inc)
1218 ac_prev
=includedir
;;
1219 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1220 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1221 includedir
=$ac_optarg ;;
1223 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1225 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1226 infodir
=$ac_optarg ;;
1228 -libdir |
--libdir |
--libdi |
--libd)
1230 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1231 libdir
=$ac_optarg ;;
1233 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1234 |
--libexe |
--libex |
--libe)
1235 ac_prev
=libexecdir
;;
1236 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1237 |
--libexe=* |
--libex=* |
--libe=*)
1238 libexecdir
=$ac_optarg ;;
1240 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1241 ac_prev
=localedir
;;
1242 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1243 localedir
=$ac_optarg ;;
1245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1246 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1247 ac_prev
=localstatedir
;;
1248 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1249 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1250 localstatedir
=$ac_optarg ;;
1252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1255 mandir
=$ac_optarg ;;
1257 -nfp |
--nfp |
--nf)
1258 # Obsolete; use --without-fp.
1261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1262 |
--no-cr |
--no-c |
-n)
1265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1271 |
--oldin |
--oldi |
--old |
--ol |
--o)
1272 ac_prev
=oldincludedir
;;
1273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1276 oldincludedir
=$ac_optarg ;;
1278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1281 prefix
=$ac_optarg ;;
1283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1284 |
--program-pre |
--program-pr |
--program-p)
1285 ac_prev
=program_prefix
;;
1286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1288 program_prefix
=$ac_optarg ;;
1290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1291 |
--program-suf |
--program-su |
--program-s)
1292 ac_prev
=program_suffix
;;
1293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1295 program_suffix
=$ac_optarg ;;
1297 -program-transform-name |
--program-transform-name \
1298 |
--program-transform-nam |
--program-transform-na \
1299 |
--program-transform-n |
--program-transform- \
1300 |
--program-transform |
--program-transfor \
1301 |
--program-transfo |
--program-transf \
1302 |
--program-trans |
--program-tran \
1303 |
--progr-tra |
--program-tr |
--program-t)
1304 ac_prev
=program_transform_name
;;
1305 -program-transform-name=* |
--program-transform-name=* \
1306 |
--program-transform-nam=* |
--program-transform-na=* \
1307 |
--program-transform-n=* |
--program-transform-=* \
1308 |
--program-transform=* |
--program-transfor=* \
1309 |
--program-transfo=* |
--program-transf=* \
1310 |
--program-trans=* |
--program-tran=* \
1311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1312 program_transform_name
=$ac_optarg ;;
1314 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1316 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1317 pdfdir
=$ac_optarg ;;
1319 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1321 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1324 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1325 |
-silent |
--silent |
--silen |
--sile |
--sil)
1328 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1330 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1332 sbindir
=$ac_optarg ;;
1334 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1335 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1336 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1338 ac_prev
=sharedstatedir
;;
1339 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1340 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1341 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1343 sharedstatedir
=$ac_optarg ;;
1345 -site |
--site |
--sit)
1347 -site=* |
--site=* |
--sit=*)
1350 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1352 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1353 srcdir
=$ac_optarg ;;
1355 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1356 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1357 ac_prev
=sysconfdir
;;
1358 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1359 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1360 sysconfdir
=$ac_optarg ;;
1362 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1363 ac_prev
=target_alias
;;
1364 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1365 target_alias
=$ac_optarg ;;
1367 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1370 -version |
--version |
--versio |
--versi |
--vers |
-V)
1371 ac_init_version
=: ;;
1374 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1377 as_fn_error $?
"invalid package name: $ac_useropt"
1378 ac_useropt_orig
=$ac_useropt
1379 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1384 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385 ac_unrecognized_sep
=', ';;
1387 eval with_
$ac_useropt=\
$ac_optarg ;;
1389 -without-* |
--without-*)
1390 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391 # Reject names that are not valid shell variable names.
1392 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1393 as_fn_error $?
"invalid package name: $ac_useropt"
1394 ac_useropt_orig
=$ac_useropt
1395 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396 case $ac_user_opts in
1400 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401 ac_unrecognized_sep
=', ';;
1403 eval with_
$ac_useropt=no
;;
1406 # Obsolete; use --with-x.
1409 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1410 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1411 ac_prev
=x_includes
;;
1412 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1413 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1414 x_includes
=$ac_optarg ;;
1416 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1417 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1418 ac_prev
=x_libraries
;;
1419 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1420 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1421 x_libraries
=$ac_optarg ;;
1423 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1424 Try \`$0 --help' for more information"
1428 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1429 # Reject names that are not valid shell variable names.
1430 case $ac_envvar in #(
1431 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1432 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1434 eval $ac_envvar=\
$ac_optarg
1435 export $ac_envvar ;;
1438 # FIXME: should be removed in autoconf 3.0.
1439 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1441 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1448 if test -n "$ac_prev"; then
1449 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1450 as_fn_error $?
"missing argument to $ac_option"
1453 if test -n "$ac_unrecognized_opts"; then
1454 case $enable_option_checking in
1456 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1457 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1461 # Check all directory arguments for consistency.
1462 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463 datadir sysconfdir sharedstatedir localstatedir includedir \
1464 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465 libdir localedir mandir
1467 eval ac_val
=\$
$ac_var
1468 # Remove trailing slashes.
1471 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472 eval $ac_var=\
$ac_val;;
1474 # Be sure to have absolute directory names.
1476 [\\/$
]* | ?
:[\\/]* ) continue;;
1477 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1479 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1482 # There might be people who depend on the old broken behavior: `$host'
1483 # used to hold the argument of --host etc.
1484 # FIXME: To remove some day.
1487 target
=$target_alias
1489 # FIXME: To remove some day.
1490 if test "x$host_alias" != x
; then
1491 if test "x$build_alias" = x
; then
1492 cross_compiling
=maybe
1493 elif test "x$build_alias" != "x$host_alias"; then
1499 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1501 test "$silent" = yes && exec 6>/dev
/null
1504 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di
=`ls -di .` &&
1506 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1507 as_fn_error $?
"working directory cannot be determined"
1508 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1509 as_fn_error $?
"pwd does not report name of working directory"
1512 # Find the source files, if location was not specified.
1513 if test -z "$srcdir"; then
1514 ac_srcdir_defaulted
=yes
1515 # Try the directory containing this script, then the parent directory.
1516 ac_confdir
=`$as_dirname -- "$as_myself" ||
1517 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1518 X"$as_myself" : 'X\(//\)[^/]' \| \
1519 X"$as_myself" : 'X\(//\)$' \| \
1520 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1521 $as_echo X"$as_myself" |
1522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1544 ac_srcdir_defaulted
=no
1546 if test ! -r "$srcdir/$ac_unique_file"; then
1547 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1548 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1550 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1552 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1554 # When building in place, set srcdir=.
1555 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558 # Remove unnecessary trailing slashes from srcdir.
1559 # Double slashes in file names in object file debugging info
1560 # mess up M-x gdb in Emacs.
1562 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1564 for ac_var
in $ac_precious_vars; do
1565 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1566 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1567 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1568 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1572 # Report the --help message.
1574 if test "$ac_init_help" = "long"; then
1575 # Omit some internal or obsolete options to make the list less imposing.
1576 # This message is too long to be a string in the A/UX 3.1 sh.
1578 \`configure' configures this package to adapt to many kinds of systems.
1580 Usage: $0 [OPTION]... [VAR=VALUE]...
1582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583 VAR=VALUE. See below for descriptions of some of the useful variables.
1585 Defaults for the options are specified in brackets.
1588 -h, --help display this help and exit
1589 --help=short display options specific to this package
1590 --help=recursive display the short help of all the included packages
1591 -V, --version display version information and exit
1592 -q, --quiet, --silent do not print \`checking ...' messages
1593 --cache-file=FILE cache test results in FILE [disabled]
1594 -C, --config-cache alias for \`--cache-file=config.cache'
1595 -n, --no-create do not create output files
1596 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1598 Installation directories:
1599 --prefix=PREFIX install architecture-independent files in PREFIX
1600 [$ac_default_prefix]
1601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1604 By default, \`make install' will install all the files in
1605 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1606 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607 for instance \`--prefix=\$HOME'.
1609 For better control, use the options below.
1611 Fine tuning of the installation directories:
1612 --bindir=DIR user executables [EPREFIX/bin]
1613 --sbindir=DIR system admin executables [EPREFIX/sbin]
1614 --libexecdir=DIR program executables [EPREFIX/libexec]
1615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1617 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1618 --libdir=DIR object code libraries [EPREFIX/lib]
1619 --includedir=DIR C header files [PREFIX/include]
1620 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1621 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1622 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1623 --infodir=DIR info documentation [DATAROOTDIR/info]
1624 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1625 --mandir=DIR man documentation [DATAROOTDIR/man]
1626 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1627 --htmldir=DIR html documentation [DOCDIR]
1628 --dvidir=DIR dvi documentation [DOCDIR]
1629 --pdfdir=DIR pdf documentation [DOCDIR]
1630 --psdir=DIR ps documentation [DOCDIR]
1636 --program-prefix=PREFIX prepend PREFIX to installed program names
1637 --program-suffix=SUFFIX append SUFFIX to installed program names
1638 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1641 --build=BUILD configure
for building on BUILD
[guessed
]
1642 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1643 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1647 if test -n "$ac_init_help"; then
1652 --disable-option-checking ignore unrecognized
--enable/--with options
1653 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1654 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1655 --enable-generated-files-in-srcdir
1656 put copies of generated files
in source dir intended
1657 for creating
source tarballs
for users without
1658 texinfo bison or flex
1659 --disable-largefile omit support
for large files
1660 --disable-build-format-warnings
1661 don
't use -Wformat while building GCC
1662 --enable-werror-always enable -Werror despite compiler version
1663 --enable-checking[=LIST]
1664 enable expensive run-time checks. With LIST, enable
1665 only specific categories of checks. Categories are:
1666 yes,no,all,none,release. Flags are:
1667 assert,df,extra,fold,gc,gcac,gimple,misc,
1668 rtlflag,rtl,runtime,tree,valgrind,types
1669 --enable-coverage[=LEVEL]
1670 enable compiler's code coverage collection. Use to
1671 measure compiler performance and
locate unused parts
1672 of the compiler. With LEVEL
, specify optimization.
1673 Values are opt
, noopt
, default is noopt
1674 --enable-gather-detailed-mem-stats
1675 enable detailed memory allocation stats gathering
1676 --enable-valgrind-annotations
1677 enable valgrind runtime interaction
1678 --enable-multilib enable library support
for multiple ABIs
1679 --enable-multiarch enable support
for multiarch paths
1680 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1681 --enable-decimal-float={no
,yes,bid
,dpd
}
1682 enable decimal float extension to C. Selecting
'bid'
1683 or
'dpd' choses
which decimal floating point format
1685 --enable-fixed-point enable fixed-point arithmetic extension to C
1686 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1688 --enable-tls enable or disable generation of tls code overriding
1689 the assembler check
for tls support
1690 --enable-vtable-verify enable vtable verification feature
1691 --disable-analyzer disable
-fanalyzer static analyzer
1692 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1693 GNU Objective-C runtime
1694 --disable-shared don't provide a shared libgcc
1695 --disable-gcov don
't provide libgcov and related host tools
1696 --enable-languages=LIST specify which front-ends to build
1697 --disable-rpath do not hardcode runtime library paths
1698 --enable-sjlj-exceptions
1699 arrange to use setjmp/longjmp exception handling
1700 --enable-secureplt enable -msecure-plt by default for PowerPC
1701 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1702 Default to platform configuration
1703 --enable-large-address-aware
1704 Link mingw executables with --large-address-aware
1705 --enable-leading-mingw64-underscores
1706 enable leading underscores on 64 bit mingw targets
1707 --enable-cld enable -mcld by default for 32bit x86
1708 --enable-frame-pointer enable -fno-omit-frame-pointer by default for x86
1709 --disable-win32-registry
1710 disable lookup of installation paths in the Registry
1712 --enable-win32-registry enable registry lookup (default)
1713 --enable-win32-registry=KEY
1714 use KEY instead of GCC version as the last portion
1716 --enable-shared[=PKGS] build shared libraries [default=yes]
1717 --enable-static[=PKGS] build static libraries [default=yes]
1718 --enable-fast-install[=PKGS]
1719 optimize for fast installation [default=yes]
1720 --disable-libtool-lock avoid locking (might break parallel builds)
1721 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1722 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1723 --enable-gnu-indirect-function
1724 enable the use of the @gnu_indirect_function to
1726 --enable-initfini-array use .init_array/.fini_array sections
1727 --enable-comdat enable COMDAT group support
1728 --enable-newlib-nano-formatted-io
1729 Use nano version formatted IO
1731 --enable-standard-branch-protection
1732 enable Branch Target Identification Mechanism and
1733 Return Address Signing by default for AArch64
1734 --disable-standard-branch-protection
1735 disable Branch Target Identification Mechanism and
1736 Return Address Signing by default for AArch64
1739 --enable-fix-cortex-a53-835769
1740 enable workaround for AArch64 Cortex-A53 erratum
1742 --disable-fix-cortex-a53-835769
1743 disable workaround for AArch64 Cortex-A53 erratum
1747 --enable-fix-cortex-a53-843419
1748 enable workaround for AArch64 Cortex-A53 erratum
1750 --disable-fix-cortex-a53-843419
1751 disable workaround for AArch64 Cortex-A53 erratum
1754 --enable-gnu-unique-object
1755 enable the use of the @gnu_unique_object ELF
1756 extension on glibc systems
1757 --enable-linker-build-id
1758 compiler will always pass --build-id to linker
1759 --enable-libssp enable linking against libssp
1760 --enable-default-ssp enable Stack Smashing Protection as default
1761 --enable-maintainer-mode
1762 enable make rules and dependencies not useful (and
1763 sometimes confusing) to the casual installer
1764 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1765 thrashing on the build machine
1766 --enable-version-specific-runtime-libs
1767 specify that runtime libraries should be installed
1768 in a compiler-specific directory
1769 --enable-plugin enable plugin support
1770 --enable-host-shared build host code as shared libraries
1771 --disable-libquadmath-support
1772 disable libquadmath support for Fortran
1773 --enable-default-pie enable Position Independent Executable as default
1776 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1777 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1778 --with-build-libsubdir=DIR Directory where to find libraries for build system
1779 --with-local-prefix=DIR specifies directory to put local include
1780 --with-native-system-header-dir=dir
1781 use dir as the directory to look for standard
1782 system header files in. Defaults to /usr/include.
1783 --with-build-sysroot=sysroot
1784 use sysroot as the system root during the build
1785 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1786 --with-gxx-include-dir=DIR
1787 specifies directory to put g++ header files
1788 --with-cpp-install-dir=DIR
1789 install the user visible C preprocessor in DIR
1790 (relative to PREFIX) as well as PREFIX/bin
1791 --with-gnu-ld arrange to work with GNU ld
1792 --with-ld arrange to use the specified ld (full pathname)
1793 --with-demangler-in-ld try to use demangler in GNU ld
1794 --with-gnu-as arrange to work with GNU as
1795 --with-as arrange to use the specified as (full pathname)
1796 --with-stabs arrange to use stabs instead of host debug format
1797 --with-stack-clash-protection-guard-size=size
1798 Set the default stack clash protection guard size
1799 for specific targets as a power of two in bytes.
1800 --with-dwarf2 force the default debug format to be DWARF 2
1801 --with-specs=SPECS add SPECS to driver command-line processing
1802 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1803 --with-bugurl=URL Direct users to URL to report a bug
1804 --with-documentation-root-url=URL
1805 Root for documentation URLs
1806 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1807 --with-zstd=PATH specify prefix directory for installed zstd library.
1808 Equivalent to --with-zstd-include=PATH/include plus
1809 --with-zstd-lib=PATH/lib
1810 --with-zstd-include=PATH
1811 specify directory for installed zstd include files
1812 --with-zstd-lib=PATH specify directory for the installed zstd library
1813 --with-gnu-ld assume the C compiler uses GNU ld default=no
1814 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1815 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1816 --with-libiconv-type=TYPE
type of library to search
for (auto
/static
/shared
)
1817 --with-gcc-major-version-only
1818 use only GCC major number
in filesystem paths
1819 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1821 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1822 --with-plugin-ld=[ARG
] specify the plugin linker
1823 --with-glibc-version=M.N
1824 assume GCC used with glibc version M.N or later
1825 --with-long-double-128 use
128-bit long double by default
1826 --with-long-double-format={ieee
,ibm
}
1827 Specify whether PowerPC long double uses IEEE or IBM format
1829 --with-gc={page
,zone
} this option is not supported anymore. It used to
1830 choose the garbage collection mechanism to use with
1832 --with-system-zlib use installed libz
1833 --with-linker-hash-style={sysv
,gnu
,both
}
1834 specify the linker
hash style
1835 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1836 specify the default of
-fdiagnostics-color option
1837 auto-if-env stands
for -fdiagnostics-color=auto
if
1838 GCC_COLOR environment variable is present and
1839 -fdiagnostics-color=never otherwise
1840 --with-diagnostics-urls={never
,auto
,auto-if-env
,always
}
1841 specify the default of
-fdiagnostics-urls option
1842 auto-if-env stands
for -fdiagnostics-urls=auto
if
1843 GCC_URLS or TERM_URLS environment variable is
1844 present and
-fdiagnostics-urls=never otherwise
1846 Some influential environment variables
:
1847 CC C compiler
command
1848 CFLAGS C compiler flags
1849 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1850 nonstandard directory
<lib dir
>
1851 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1852 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1853 you have headers
in a nonstandard directory
<include dir
>
1854 CXX C
++ compiler
command
1855 CXXFLAGS C
++ compiler flags
1856 CXXCPP C
++ preprocessor
1858 GMPLIBS How to link GMP
1859 GMPINC How to
find GMP include files
1860 ISLLIBS How to link isl
1861 ISLINC How to
find isl include files
1863 Use these variables to override the choices made by
`configure' or to help
1864 it to find libraries and programs with nonstandard names/locations.
1866 Report bugs to the package provider.
1871 if test "$ac_init_help" = "recursive"; then
1872 # If there are subdirs, report their specific --help.
1873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1874 test -d "$ac_dir" ||
1875 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1882 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1883 # A ".." for each directory in $ac_dir_suffix.
1884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1885 case $ac_top_builddir_sub in
1886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1890 ac_abs_top_builddir=$ac_pwd
1891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1892 # for backward compatibility:
1893 ac_top_builddir=$ac_top_build_prefix
1896 .) # We are building in place.
1898 ac_top_srcdir=$ac_top_builddir_sub
1899 ac_abs_top_srcdir=$ac_pwd ;;
1900 [\\/]* | ?:[\\/]* ) # Absolute name.
1901 ac_srcdir=$srcdir$ac_dir_suffix;
1902 ac_top_srcdir=$srcdir
1903 ac_abs_top_srcdir=$srcdir ;;
1905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1906 ac_top_srcdir=$ac_top_build_prefix$srcdir
1907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1911 cd "$ac_dir" || { ac_status=$?; continue; }
1912 # Check for guested configure.
1913 if test -f "$ac_srcdir/configure.gnu"; then
1915 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1916 elif test -f "$ac_srcdir/configure"; then
1918 $SHELL "$ac_srcdir/configure" --help=recursive
1920 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1922 cd "$ac_pwd" || { ac_status=$?; break; }
1926 test -n "$ac_init_help" && exit $ac_status
1927 if $ac_init_version; then
1930 generated by GNU Autoconf 2.69
1932 Copyright (C) 2012 Free Software Foundation, Inc.
1933 This configure script is free software; the Free Software Foundation
1934 gives unlimited permission to copy, distribute and modify it.
1939 ## ------------------------ ##
1940 ## Autoconf initialization. ##
1941 ## ------------------------ ##
1943 # ac_fn_c_try_compile LINENO
1944 # --------------------------
1945 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_compile ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 rm -f conftest.$ac_objext
1950 if { { ac_try="$ac_compile"
1952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1953 *) ac_try_echo
=$ac_try;;
1955 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_compile") 2>conftest.err
1959 if test -s conftest.err
; then
1960 grep -v '^ *+' conftest.err
>conftest.er1
1961 cat conftest.er1
>&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } && {
1966 test -z "$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 } && test -s conftest.
$ac_objext; then :
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.
$ac_ext >&5
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status
$ac_retval
1979 } # ac_fn_c_try_compile
1981 # ac_fn_cxx_try_compile LINENO
1982 # ----------------------------
1983 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1984 ac_fn_cxx_try_compile
()
1986 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1987 rm -f conftest.
$ac_objext
1988 if { { ac_try
="$ac_compile"
1990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_compile") 2>conftest.err
1997 if test -s conftest.err; then
1998 grep -v '^ *+' conftest.err >conftest.er1
1999 cat conftest.er1 >&5
2000 mv -f conftest.er1 conftest.err
2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2003 test $ac_status = 0; } && {
2004 test -z "$ac_cxx_werror_flag" ||
2005 test ! -s conftest.err
2006 } && test -s conftest.$ac_objext; then :
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 as_fn_set_status $ac_retval
2017 } # ac_fn_cxx_try_compile
2019 # ac_fn_cxx_try_cpp LINENO
2020 # ------------------------
2021 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_cxx_try_cpp ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if { { ac_try="$ac_cpp conftest.$ac_ext"
2027 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2028 *) ac_try_echo
=$ac_try;;
2030 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2034 if test -s conftest.err
; then
2035 grep -v '^ *+' conftest.err
>conftest.er1
2036 cat conftest.er1
>&5
2037 mv -f conftest.er1 conftest.err
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } > conftest.i
&& {
2041 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2042 test ! -s conftest.err
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.
$ac_ext >&5
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 as_fn_set_status
$ac_retval
2054 } # ac_fn_cxx_try_cpp
2056 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2057 # ---------------------------------------------------------
2058 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2059 # the include files in INCLUDES and setting the cache variable VAR
2061 ac_fn_cxx_check_header_mongrel
()
2063 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2064 if eval \
${$3+:} false
; then :
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066 $as_echo_n "checking for $2... " >&6; }
2067 if eval \
${$3+:} false
; then :
2068 $as_echo_n "(cached) " >&6
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2074 # Is the header compilable?
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2076 $as_echo_n "checking $2 usability... " >&6; }
2077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2082 if ac_fn_cxx_try_compile
"$LINENO"; then :
2083 ac_header_compiler
=yes
2085 ac_header_compiler
=no
2087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2089 $as_echo "$ac_header_compiler" >&6; }
2091 # Is the header present?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2093 $as_echo_n "checking $2 presence... " >&6; }
2094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2098 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2099 ac_header_preproc
=yes
2101 ac_header_preproc
=no
2103 rm -f conftest.err conftest.i conftest.
$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2105 $as_echo "$ac_header_preproc" >&6; }
2107 # So? What about this header?
2108 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2111 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2113 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2117 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2119 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2121 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2123 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2125 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \
${$3+:} false
; then :
2131 $as_echo_n "(cached) " >&6
2133 eval "$3=\$ac_header_compiler"
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_cxx_check_header_mongrel
2143 # ac_fn_cxx_try_run LINENO
2144 # ------------------------
2145 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2146 # that executables *can* be run.
2147 ac_fn_cxx_try_run
()
2149 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2150 if { { ac_try
="$ac_link"
2152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2153 *) ac_try_echo=$ac_try;;
2155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2156 $as_echo "$ac_try_echo"; } >&5
2157 (eval "$ac_link") 2>&5
2159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2160 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2161 { { case "(($ac_try" in
2162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2163 *) ac_try_echo
=$ac_try;;
2165 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_try") 2>&5
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; }; }; then :
2173 $as_echo "$as_me: program exited with status $ac_status" >&5
2174 $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.
$ac_ext >&5
2177 ac_retval
=$ac_status
2179 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 as_fn_set_status
$ac_retval
2183 } # ac_fn_cxx_try_run
2185 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2186 # ---------------------------------------------------------
2187 # Tests whether HEADER exists and can be compiled using the include files in
2188 # INCLUDES, setting the cache variable VAR accordingly.
2189 ac_fn_cxx_check_header_compile
()
2191 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2193 $as_echo_n "checking for $2... " >&6; }
2194 if eval \
${$3+:} false
; then :
2195 $as_echo_n "(cached) " >&6
2197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2202 if ac_fn_cxx_try_compile
"$LINENO"; then :
2207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_cxx_check_header_compile
2216 # ac_fn_c_try_cpp LINENO
2217 # ----------------------
2218 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2221 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2222 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2231 if test -s conftest.err; then
2232 grep -v '^ *+' conftest.err >conftest.er1
2233 cat conftest.er1 >&5
2234 mv -f conftest.er1 conftest.err
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } > conftest.i && {
2238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2239 test ! -s conftest.err
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 as_fn_set_status $ac_retval
2253 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2254 # ----------------------------------------------
2255 # Tries to find the compile-time value of EXPR in a program that includes
2256 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2258 ac_fn_cxx_compute_int ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 if test "$cross_compiling" = yes; then
2262 # Depending upon the size, compute the lo and hi bounds.
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2269 static int test_array [1 - 2 * !(($2) >= 0)];
2271 return test_array [0];
2277 if ac_fn_cxx_try_compile "$LINENO"; then :
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288 return test_array [0];
2294 if ac_fn_cxx_try_compile "$LINENO"; then :
2295 ac_hi=$ac_mid; break
2297 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2298 if test $ac_lo -le $ac_mid; then
2302 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2313 static int test_array [1 - 2 * !(($2) < 0)];
2315 return test_array [0];
2321 if ac_fn_cxx_try_compile "$LINENO"; then :
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2330 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2332 return test_array [0];
2338 if ac_fn_cxx_try_compile "$LINENO"; then :
2339 ac_lo=$ac_mid; break
2341 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2342 if test $ac_mid -le $ac_hi; then
2346 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 # Binary search between lo and hi bounds.
2357 while test "x$ac_lo" != "x$ac_hi"; do
2358 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2365 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2367 return test_array [0];
2373 if ac_fn_cxx_try_compile "$LINENO"; then :
2376 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2386 /* end confdefs.h. */
2388 static long int longval () { return $2; }
2389 static unsigned long int ulongval () { return $2; }
2396 FILE *f = fopen ("conftest.val", "w");
2401 long int i = longval ();
2404 fprintf (f, "%ld", i);
2408 unsigned long int i = ulongval ();
2411 fprintf (f, "%lu", i);
2413 /* Do not output a trailing newline, as this causes \r\n confusion
2414 on some platforms. */
2415 return ferror (f) || fclose (f) != 0;
2421 if ac_fn_cxx_try_run "$LINENO"; then :
2422 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2427 conftest.$ac_objext conftest.beam conftest.$ac_ext
2431 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 as_fn_set_status $ac_retval
2434 } # ac_fn_cxx_compute_int
2436 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2437 # ---------------------------------------------
2438 # Tests whether TYPE exists after having included INCLUDES, setting cache
2439 # variable VAR accordingly.
2440 ac_fn_cxx_check_type ()
2442 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2444 $as_echo_n "checking for $2... " >&6; }
2445 if eval \${$3+:} false; then :
2446 $as_echo_n "(cached) " >&6
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2461 if ac_fn_cxx_try_compile "$LINENO"; then :
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h. */
2474 if ac_fn_cxx_try_compile "$LINENO"; then :
2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488 } # ac_fn_cxx_check_type
2490 # ac_fn_c_find_intX_t LINENO BITS VAR
2491 # -----------------------------------
2492 # Finds a signed integer type with width BITS, setting cache variable VAR
2494 ac_fn_c_find_intX_t ()
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2498 $as_echo_n "checking for int$2_t... " >&6; }
2499 if eval \${$3+:} false; then :
2500 $as_echo_n "(cached) " >&6
2503 # Order is important - never check a type that is potentially smaller
2504 # than half of the expected target width.
2505 for ac_type in int$2_t 'int' 'long int' \
2506 'long long int' 'short int' 'signed char'; do
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2509 $ac_includes_default
2510 enum { N = $2 / 2 - 1 };
2514 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2516 return test_array [0];
2522 if ac_fn_cxx_try_compile "$LINENO"; then :
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h. */
2525 $ac_includes_default
2526 enum { N = $2 / 2 - 1 };
2530 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2531 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2533 return test_array [0];
2539 if ac_fn_cxx_try_compile "$LINENO"; then :
2546 eval "$3=\$ac_type" ;;
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 if eval test \"x\$"$3"\" = x"no"; then :
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2561 $as_echo "$ac_res" >&6; }
2562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2564 } # ac_fn_c_find_intX_t
2566 # ac_fn_cxx_try_link LINENO
2567 # -------------------------
2568 # Try to link conftest.$ac_ext, and return whether this succeeded.
2569 ac_fn_cxx_try_link ()
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 rm -f conftest.$ac_objext conftest$ac_exeext
2573 if { { ac_try="$ac_link"
2575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2576 *) ac_try_echo
=$ac_try;;
2578 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_link") 2>conftest.err
2582 if test -s conftest.err
; then
2583 grep -v '^ *+' conftest.err
>conftest.er1
2584 cat conftest.er1
>&5
2585 mv -f conftest.er1 conftest.err
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; } && {
2589 test -z "$ac_cxx_werror_flag" ||
2590 test ! -s conftest.err
2591 } && test -s conftest
$ac_exeext && {
2592 test "$cross_compiling" = yes ||
2593 test -x conftest
$ac_exeext
2597 $as_echo "$as_me: failed program was:" >&5
2598 sed 's/^/| /' conftest.
$ac_ext >&5
2602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2604 # interfere with the next link command; also delete a directory that is
2605 # left behind by Apple's compiler. We do this before executing the actions.
2606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608 as_fn_set_status
$ac_retval
2610 } # ac_fn_cxx_try_link
2612 # ac_fn_c_find_uintX_t LINENO BITS VAR
2613 # ------------------------------------
2614 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2616 ac_fn_c_find_uintX_t
()
2618 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2620 $as_echo_n "checking for uint$2_t... " >&6; }
2621 if eval \
${$3+:} false
; then :
2622 $as_echo_n "(cached) " >&6
2625 # Order is important - never check a type that is potentially smaller
2626 # than half of the expected target width.
2627 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2628 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h. */
2631 $ac_includes_default
2635 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2637 return test_array [0];
2643 if ac_fn_cxx_try_compile
"$LINENO"; then :
2648 eval "$3=\$ac_type" ;;
2651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2652 if eval test \"x\$
"$3"\" = x
"no"; then :
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2661 $as_echo "$ac_res" >&6; }
2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664 } # ac_fn_c_find_uintX_t
2666 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2667 # ------------------------------------------------
2668 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2669 ac_fn_cxx_check_header_preproc
()
2671 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2673 $as_echo_n "checking for $2... " >&6; }
2674 if eval \
${$3+:} false
; then :
2675 $as_echo_n "(cached) " >&6
2677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2681 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2686 rm -f conftest.err conftest.i conftest.
$ac_ext
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2690 $as_echo "$ac_res" >&6; }
2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2693 } # ac_fn_cxx_check_header_preproc
2695 # ac_fn_cxx_check_func LINENO FUNC VAR
2696 # ------------------------------------
2697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2698 ac_fn_cxx_check_func
()
2700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval \
${$3+:} false
; then :
2704 $as_echo_n "(cached) " >&6
2706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2707 /* end confdefs.h. */
2708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2710 #define $2 innocuous_$2
2712 /* System header to define __stub macros and hopefully few prototypes,
2713 which can conflict with char $2 (); below.
2714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2715 <limits.h> exists even on freestanding compilers. */
2718 # include <limits.h>
2720 # include <assert.h>
2725 /* Override any GCC internal prototype to avoid an error.
2726 Use char because int might match the return type of a GCC
2727 builtin and then its argument prototype would still apply. */
2732 /* The GNU C library defines this for functions which it implements
2733 to always fail with ENOSYS. Some functions are actually named
2734 something starting with __ and the normal name is an alias. */
2735 #if defined __stub_$2 || defined __stub___$2
2747 if ac_fn_cxx_try_link
"$LINENO"; then :
2752 rm -f core conftest.err conftest.
$ac_objext \
2753 conftest
$ac_exeext conftest.
$ac_ext
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760 } # ac_fn_cxx_check_func
2762 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2763 # -----------------------------------------------
2764 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2766 ac_fn_cxx_check_decl
()
2768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2769 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2770 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2772 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2773 if eval \
${$3+:} false
; then :
2774 $as_echo_n "(cached) " >&6
2776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2782 #ifndef $as_decl_name
2784 (void) $as_decl_use;
2786 (void) $as_decl_name;
2794 if ac_fn_cxx_try_compile
"$LINENO"; then :
2799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2803 $as_echo "$ac_res" >&6; }
2804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806 } # ac_fn_cxx_check_decl
2808 # ac_fn_c_try_link LINENO
2809 # -----------------------
2810 # Try to link conftest.$ac_ext, and return whether this succeeded.
2813 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2814 rm -f conftest.
$ac_objext conftest
$ac_exeext
2815 if { { ac_try
="$ac_link"
2817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821 $as_echo "$ac_try_echo"; } >&5
2822 (eval "$ac_link") 2>conftest.err
2824 if test -s conftest.err; then
2825 grep -v '^ *+' conftest.err >conftest.er1
2826 cat conftest.er1 >&5
2827 mv -f conftest.er1 conftest.err
2829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830 test $ac_status = 0; } && {
2831 test -z "$ac_c_werror_flag" ||
2832 test ! -s conftest.err
2833 } && test -s conftest$ac_exeext && {
2834 test "$cross_compiling" = yes ||
2835 test -x conftest$ac_exeext
2839 $as_echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2846 # interfere with the next link command; also delete a directory that is
2847 # left behind by Apple's compiler. We do this before executing the actions.
2848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2850 as_fn_set_status $ac_retval
2852 } # ac_fn_c_try_link
2854 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2855 # ----------------------------------------------
2856 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2857 ac_fn_c_check_header_preproc ()
2859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2861 $as_echo_n "checking for $2... " >&6; }
2862 if eval \${$3+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2869 if ac_fn_c_try_cpp "$LINENO"; then :
2874 rm -f conftest.err conftest.i conftest.$ac_ext
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2878 $as_echo "$ac_res" >&6; }
2879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2881 } # ac_fn_c_check_header_preproc
2883 # ac_fn_c_check_func LINENO FUNC VAR
2884 # ----------------------------------
2885 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2886 ac_fn_c_check_func ()
2888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2890 $as_echo_n "checking for $2... " >&6; }
2891 if eval \${$3+:} false; then :
2892 $as_echo_n "(cached) " >&6
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2898 #define $2 innocuous_$2
2900 /* System header to define __stub macros and hopefully few prototypes,
2901 which can conflict with char $2 (); below.
2902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2903 <limits.h> exists even on freestanding compilers. */
2906 # include <limits.h>
2908 # include <assert.h>
2913 /* Override any GCC internal prototype to avoid an error.
2914 Use char because int might match the return type of a GCC
2915 builtin and then its argument prototype would still apply. */
2920 /* The GNU C library defines this for functions which it implements
2921 to always fail with ENOSYS. Some functions are actually named
2922 something starting with __ and the normal name is an alias. */
2923 #if defined __stub_$2 || defined __stub___$2
2935 if ac_fn_c_try_link "$LINENO"; then :
2940 rm -f core conftest.err conftest.$ac_objext \
2941 conftest$ac_exeext conftest.$ac_ext
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945 $as_echo "$ac_res" >&6; }
2946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2948 } # ac_fn_c_check_func
2949 cat >config.log <<_ACEOF
2950 This file contains any messages produced by compilers while
2951 running configure, to aid debugging if configure makes a mistake.
2953 It was created by $as_me, which was
2954 generated by GNU Autoconf 2.69. Invocation command line was
2966 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2967 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2968 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2969 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2970 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2972 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2973 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2975 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2976 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2977 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2978 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2979 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2980 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2981 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 $as_echo "PATH: $as_dir"
3006 # Keep a trace of the command line.
3007 # Strip out --no-create and --no-recursion so they do not pile up.
3008 # Strip out --silent because we don't want to record it for future runs.
3009 # Also quote any args containing shell meta-characters.
3010 # Make two passes to allow for proper duplicate-argument suppression.
3014 ac_must_keep_next=false
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3025 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
3028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3030 as_fn_append ac_configure_args1 " '$ac_arg'"
3031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3043 -* ) ac_must_keep_next=true ;;
3046 as_fn_append ac_configure_args " '$ac_arg'"
3051 { ac_configure_args0=; unset ac_configure_args0;}
3052 { ac_configure_args1=; unset ac_configure_args1;}
3054 # When interrupted or exit'd, cleanup temporary files, and complete
3055 # config.log. We remove comments because anyway the quotes in there
3056 # would cause problems or look ugly.
3057 # WARNING: Use '\'' to represent an apostrophe within the trap.
3058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059 trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3064 $as_echo "## ---------------- ##
3065 ## Cache variables. ##
3066 ## ---------------- ##"
3068 # The following way of writing the cache mishandles newlines in values,
3070 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
3071 eval ac_val=\$$ac_var
3075 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3079 _ | IFS | as_nl) ;; #(
3080 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3081 *) { eval $ac_var=; unset $ac_var;} ;;
3086 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3087 *${as_nl}ac_space=\ *)
3089 "s/'\''/'\''\\\\'\'''\''/g;
3090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3100 $as_echo "## ----------------- ##
3101 ## Output variables. ##
3102 ## ----------------- ##"
3104 for ac_var in $ac_subst_vars
3106 eval ac_val=\$$ac_var
3108 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3110 $as_echo "$ac_var='\''$ac_val'\''"
3114 if test -n "$ac_subst_files"; then
3115 $as_echo "## ------------------- ##
3116 ## File substitutions. ##
3117 ## ------------------- ##"
3119 for ac_var in $ac_subst_files
3121 eval ac_val=\$$ac_var
3123 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3125 $as_echo "$ac_var='\''$ac_val'\''"
3130 if test -s confdefs.h; then
3131 $as_echo "## ----------- ##
3138 test "$ac_signal" != 0 &&
3139 $as_echo "$as_me: caught signal $ac_signal"
3140 $as_echo "$as_me: exit $exit_status"
3142 rm -f core *.core core.conftest.* &&
3143 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3146 for ac_signal in 1 2 13 15; do
3147 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3152 rm -f -r conftest* confdefs.h
3154 $as_echo "/* confdefs.h */" > confdefs.h
3156 # Predefined preprocessor variables.
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_NAME "$PACKAGE_NAME"
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_STRING "$PACKAGE_STRING"
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_URL "$PACKAGE_URL"
3183 # Let the site file select an alternate cache file if it wants to.
3184 # Prefer an explicitly selected file to automatically selected ones.
3187 if test -n "$CONFIG_SITE"; then
3188 # We do not want a PATH search for config.site.
3189 case $CONFIG_SITE in #((
3190 -*) ac_site_file1=./$CONFIG_SITE;;
3191 */*) ac_site_file1=$CONFIG_SITE;;
3192 *) ac_site_file1=./$CONFIG_SITE;;
3194 elif test "x$prefix" != xNONE; then
3195 ac_site_file1=$prefix/share/config.site
3196 ac_site_file2=$prefix/etc/config.site
3198 ac_site_file1=$ac_default_prefix/share/config.site
3199 ac_site_file2=$ac_default_prefix/etc/config.site
3201 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3203 test "x$ac_site_file" = xNONE && continue
3204 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3206 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3207 sed 's/^/| /' "$ac_site_file" >&5
3209 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "failed to load site
script $ac_site_file
3212 See \
`config.log' for more details" "$LINENO" 5; }
3216 if test -r "$cache_file"; then
3217 # Some versions of bash will fail to source /dev/null (special files
3218 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3221 $as_echo "$as_me: loading cache $cache_file" >&6;}
3223 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3224 *) . "./$cache_file";;
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3229 $as_echo "$as_me: creating cache $cache_file" >&6;}
3233 # Check that the precious variables saved in the cache have kept the same
3235 ac_cache_corrupted=false
3236 for ac_var in $ac_precious_vars; do
3237 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3238 eval ac_new_set=\$ac_env_${ac_var}_set
3239 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3240 eval ac_new_val=\$ac_env_${ac_var}_value
3241 case $ac_old_set,$ac_new_set in
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3244 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3245 ac_cache_corrupted=: ;;
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3248 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3249 ac_cache_corrupted=: ;;
3252 if test "x$ac_old_val" != "x$ac_new_val"; then
3253 # differences in whitespace do not lead to failure.
3254 ac_old_val_w=`echo x
$ac_old_val`
3255 ac_new_val_w=`echo x
$ac_new_val`
3256 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3258 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3259 ac_cache_corrupted=:
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3262 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3263 eval $ac_var=\$ac_old_val
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3266 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3268 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3271 # Pass precious variables to config.status.
3272 if test "$ac_new_set" = set; then
3274 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3275 *) ac_arg=$ac_var=$ac_new_val ;;
3277 case " $ac_configure_args " in
3278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3279 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3283 if $ac_cache_corrupted; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3287 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3288 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3290 ## -------------------- ##
3291 ## Main body of script. ##
3292 ## -------------------- ##
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3308 gcc_version=`cat $srcdir/BASE-VER
`
3310 # Determine the host, build, and target systems
3312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3313 if test -f "$ac_dir/install-sh"; then
3315 ac_install_sh="$ac_aux_dir/install-sh -c"
3317 elif test -f "$ac_dir/install.sh"; then
3319 ac_install_sh="$ac_aux_dir/install.sh -c"
3321 elif test -f "$ac_dir/shtool"; then
3323 ac_install_sh="$ac_aux_dir/shtool install -c"
3327 if test -z "$ac_aux_dir"; then
3328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3331 # These three variables are undocumented and unsupported,
3332 # and are intended to be withdrawn in a future Autoconf release.
3333 # They can cause serious problems if a builder's source tree is in a directory
3334 # whose full name contains unusual characters.
3335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3340 # Make sure we can run config.sub.
3341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3345 $as_echo_n "checking build system type... " >&6; }
3346 if ${ac_cv_build+:} false; then :
3347 $as_echo_n "(cached) " >&6
3349 ac_build_alias=$build_alias
3350 test "x$ac_build_alias" = x &&
3351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3352 test "x$ac_build_alias" = x &&
3353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3359 $as_echo "$ac_cv_build" >&6; }
3360 case $ac_cv_build in
3362 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3365 ac_save_IFS=$IFS; IFS='-'
3371 # Remember, the first character of IFS is used to create $*,
3372 # except with old shells:
3375 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3379 $as_echo_n "checking host system type... " >&6; }
3380 if ${ac_cv_host+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 if test "x$host_alias" = x; then
3384 ac_cv_host=$ac_cv_build
3386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3392 $as_echo "$ac_cv_host" >&6; }
3395 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3398 ac_save_IFS=$IFS; IFS='-'
3404 # Remember, the first character of IFS is used to create $*,
3405 # except with old shells:
3408 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3412 $as_echo_n "checking target system type... " >&6; }
3413 if ${ac_cv_target+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 if test "x$target_alias" = x; then
3417 ac_cv_target=$ac_cv_host
3419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3425 $as_echo "$ac_cv_target" >&6; }
3426 case $ac_cv_target in
3428 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3430 target=$ac_cv_target
3431 ac_save_IFS=$IFS; IFS='-'
3437 # Remember, the first character of IFS is used to create $*,
3438 # except with old shells:
3441 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3444 # The aliases save the names the user supplied, while $host etc.
3445 # will get canonicalized.
3446 test -n "$target_alias" &&
3447 test "$program_prefix$program_suffix$program_transform_name" = \
3449 program_prefix=${target_alias}-
3451 # Determine the noncanonical host name, for Ada.
3452 case ${build_alias} in
3453 "") build_noncanonical=${build} ;;
3454 *) build_noncanonical=${build_alias} ;;
3457 case ${host_alias} in
3458 "") host_noncanonical=${build_noncanonical} ;;
3459 *) host_noncanonical=${host_alias} ;;
3465 # Determine the noncanonical target name, for directory use.
3466 case ${target_alias} in
3467 "") target_noncanonical=${host_noncanonical} ;;
3468 *) target_noncanonical=${target_alias} ;;
3474 # Used for constructing correct paths for offload compilers.
3475 real_target_noncanonical=${target_noncanonical}
3478 # Determine the target- and build-specific subdirectories
3480 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3481 # have matching libraries, they should use host libraries: Makefile.tpl
3482 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3483 # However, they still use the build modules, because the corresponding
3484 # host modules (e.g. bison) are only built for the host when bootstrap
3486 # - build_subdir is where we find build modules, and never changes.
3487 # - build_libsubdir is where we find build libraries, and can be overridden.
3489 # Prefix 'build-' so this never conflicts with target_subdir.
3490 build_subdir="build-${build_noncanonical}"
3492 # Check whether --with-build-libsubdir was given.
3493 if test "${with_build_libsubdir+set}" = set; then :
3494 withval=$with_build_libsubdir; build_libsubdir="$withval"
3496 build_libsubdir="$build_subdir"
3499 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3500 if ( test $srcdir = . && test -d gcc ) \
3501 || test -d $srcdir/../host-${host_noncanonical}; then
3502 host_subdir="host-${host_noncanonical}"
3507 target_subdir=${target_noncanonical}
3510 # Set program_transform_name
3511 test "$program_prefix" != NONE &&
3512 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3513 # Use a double $ so make ignores it.
3514 test "$program_suffix" != NONE &&
3515 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3516 # Double any \ or $.
3517 # By default was `s
,x
,x
', remove it if useless.
3518 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3519 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3522 # Check for bogus environment variables.
3523 # Test if LIBRARY_PATH contains the notation for the current directory
3524 # since this would lead to problems installing/building glibc.
3525 # LIBRARY_PATH contains the current directory if one of the following
3527 # - one of the terminals (":" and ";") is the first or last sign
3528 # - two terminals occur directly after each other
3529 # - the path contains an element with a dot in it
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3531 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3532 case ${LIBRARY_PATH} in
3533 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3534 library_path_setting="contains current directory"
3537 library_path_setting="ok"
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3541 $as_echo "$library_path_setting" >&6; }
3542 if test "$library_path_setting" != "ok"; then
3544 *** LIBRARY_PATH shouldn't contain the current directory when
3545 *** building gcc. Please change the environment variable
3546 *** and run configure again.
" "$LINENO" 5
3549 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3550 # since this would lead to problems installing/building glibc.
3551 # GCC_EXEC_PREFIX 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 GCC_EXEC_PREFIX variable
" >&5
3557 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3558 case ${GCC_EXEC_PREFIX} in
3559 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3560 gcc_exec_prefix_setting="contains current directory
"
3563 gcc_exec_prefix_setting="ok
"
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3567 $as_echo "$gcc_exec_prefix_setting" >&6; }
3568 if test "$gcc_exec_prefix_setting" != "ok
"; then
3570 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3571 *** building gcc. Please change the environment variable
3572 *** and run configure again." "$LINENO" 5
3579 # Specify the local prefix
3582 # Check whether --with-local-prefix was given.
3583 if test "${with_local_prefix+set}" = set; then :
3584 withval=$with_local_prefix; case "${withval}" in
3585 yes) as_fn_error $? "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3587 *) local_prefix=$with_local_prefix ;;
3592 # Default local prefix if it is empty
3593 if test x$local_prefix = x; then
3594 local_prefix=/usr/local
3598 # Check whether --with-native-system-header-dir was given.
3599 if test "${with_native_system_header_dir+set}" = set; then :
3600 withval=$with_native_system_header_dir;
3601 case ${with_native_system_header_dir} in
3602 yes|no) as_fn_error $? "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3603 /* | [A-Za-z]:[\\/]*) ;;
3604 *) as_fn_error $? "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3606 configured_native_system_header_dir="${withval}"
3609 configured_native_system_header_dir=
3614 # Check whether --with-build-sysroot was given.
3615 if test "${with_build_sysroot+set}" = set; then :
3616 withval=$with_build_sysroot; if test x"$withval" != x ; then
3617 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3620 SYSROOT_CFLAGS_FOR_TARGET=
3625 if test "x$prefix" = xNONE; then
3626 test_prefix=/usr/local
3630 if test "x$exec_prefix" = xNONE; then
3631 test_exec_prefix=$test_prefix
3633 test_exec_prefix=$exec_prefix
3637 # Check whether --with-sysroot was given.
3638 if test "${with_sysroot+set}" = set; then :
3639 withval=$with_sysroot;
3640 case ${with_sysroot} in
3642 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3644 case ${with_sysroot} in
3645 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3646 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3649 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3650 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3652 case ${TARGET_SYSTEM_ROOT} in
3653 "${test_prefix}"|"${test_prefix}/"*|\
3654 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3655 '${prefix}'|'${prefix}/'*|\
3656 '${exec_prefix}'|'${exec_prefix}/'*)
3657 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3658 TARGET_SYSTEM_ROOT_DEFINE="$t"
3665 TARGET_SYSTEM_ROOT_DEFINE=
3666 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3674 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3675 # passed in by the toplevel make and thus we'd get different behavior
3676 # depending on where we built the sources.
3677 gcc_gxx_include_dir
=
3678 # Specify the g++ header file directory
3680 # Check whether --with-gxx-include-dir was given.
3681 if test "${with_gxx_include_dir+set}" = set; then :
3682 withval
=$with_gxx_include_dir; case "${withval}" in
3683 yes) as_fn_error $?
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3685 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3690 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3691 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3692 # relative to the sysroot.
3693 gcc_gxx_include_dir_add_sysroot
=0
3695 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3696 if test x
${gcc_gxx_include_dir} = x
; then
3697 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3698 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3700 libstdcxx_incdir
='include/c++/$(version)'
3701 if test x
$host != x
$target; then
3702 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3704 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3706 elif test "${with_sysroot+set}" = set; then
3707 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3708 if test "${gcc_gxx_without_sysroot}"; then
3709 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3710 gcc_gxx_include_dir_add_sysroot
=1
3715 # Check whether --with-cpp_install_dir was given.
3716 if test "${with_cpp_install_dir+set}" = set; then :
3717 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3718 as_fn_error $?
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3719 elif test x
$withval != xno
; then
3720 cpp_install_dir
=$withval
3725 # We would like to our source tree to be readonly. However when releases or
3726 # pre-releases are generated, the flex/bison generated files as well as the
3727 # various formats of manuals need to be included along with the rest of the
3728 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3732 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3733 # Check whether --enable-generated-files-in-srcdir was given.
3734 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3735 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3737 generated_files_in_srcdir
=no
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3742 $as_echo "$generated_files_in_srcdir" >&6; }
3744 if test "$generated_files_in_srcdir" = "yes"; then
3751 # -------------------
3752 # Find default linker
3753 # -------------------
3757 # Check whether --with-gnu-ld was given.
3758 if test "${with_gnu_ld+set}" = set; then :
3759 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3766 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3770 # With pre-defined ld
3772 # Check whether --with-ld was given.
3773 if test "${with_ld+set}" = set; then :
3774 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3777 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3778 if test ! -x "$DEFAULT_LINKER"; then
3779 as_fn_error $?
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3780 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3782 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3786 cat >>confdefs.h
<<_ACEOF
3787 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3793 $as_echo_n "checking whether a default linker was specified... " >&6; }
3794 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3795 if test x
"$gnu_ld_flag" = x
"no"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3797 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3800 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 $as_echo "no" >&6; }
3807 # With demangler in GNU ld
3809 # Check whether --with-demangler-in-ld was given.
3810 if test "${with_demangler_in_ld+set}" = set; then :
3811 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3817 # ----------------------
3818 # Find default assembler
3819 # ----------------------
3823 # Check whether --with-gnu-as was given.
3824 if test "${with_gnu_as+set}" = set; then :
3825 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3832 # Check whether --with-as was given.
3833 if test "${with_as+set}" = set; then :
3834 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3837 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3838 if test ! -x "$DEFAULT_ASSEMBLER"; then
3839 as_fn_error $?
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3840 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3844 cat >>confdefs.h
<<_ACEOF
3845 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3851 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3852 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3853 if test x
"$gas_flag" = x
"no"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3855 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3858 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3869 # If a non-executable a.out is present (e.g. created by GNU as above even if
3870 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3871 # file, even when creating an executable, so an execution test fails.
3872 # Remove possible default executable files to avoid this.
3874 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3875 # Autoconf includes it.
3876 rm -f a.out a.exe b.out
3878 # Find the native compiler
3880 ac_cpp
='$CPP $CPPFLAGS'
3881 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3882 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3883 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3886 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if ${ac_cv_prog_CC+:} false
; then :
3890 $as_echo_n "(cached) " >&6
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC
="$CC" # Let the user override the test.
3895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir
=.
3900 for ac_exec_ext
in '' $ac_executable_extensions; do
3901 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3902 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3923 if test -z "$ac_cv_prog_CC"; then
3925 # Extract the first word of "gcc", so it can be a program name with args.
3926 set dummy gcc
; ac_word
=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -n "$ac_ct_CC"; then
3933 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3939 test -z "$as_dir" && as_dir
=.
3940 for ac_exec_ext
in '' $ac_executable_extensions; do
3941 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3942 ac_cv_prog_ac_ct_CC
="gcc"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3953 if test -n "$ac_ct_CC"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3955 $as_echo "$ac_ct_CC" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3961 if test "x$ac_ct_CC" = x
; then
3964 case $cross_compiling:$ac_tool_warned in
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968 ac_tool_warned
=yes ;;
3976 if test -z "$CC"; then
3977 if test -n "$ac_tool_prefix"; then
3978 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3979 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_CC+:} false
; then :
3983 $as_echo_n "(cached) " >&6
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC
="$CC" # Let the user override the test.
3988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir
=.
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 if test -n "$CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 $as_echo "$CC" >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4017 if test -z "$CC"; then
4018 # Extract the first word of "cc", so it can be a program name with args.
4019 set dummy cc
; ac_word
=$2
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021 $as_echo_n "checking for $ac_word... " >&6; }
4022 if ${ac_cv_prog_CC+:} false
; then :
4023 $as_echo_n "(cached) " >&6
4025 if test -n "$CC"; then
4026 ac_cv_prog_CC
="$CC" # Let the user override the test.
4029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir
=.
4034 for ac_exec_ext
in '' $ac_executable_extensions; do
4035 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4037 ac_prog_rejected
=yes
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 if test $ac_prog_rejected = yes; then
4049 # We found a bogon in the path, so make sure we never use it.
4050 set dummy
$ac_cv_prog_CC
4052 if test $# != 0; then
4053 # We chose a different compiler from the bogus one.
4054 # However, it has the same basename, so the bogon will be chosen
4055 # first if we set CC to just the basename; use the full file name.
4057 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4063 if test -n "$CC"; then
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4065 $as_echo "$CC" >&6; }
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4068 $as_echo "no" >&6; }
4073 if test -z "$CC"; then
4074 if test -n "$ac_tool_prefix"; then
4075 for ac_prog
in cl.exe
4077 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4078 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if ${ac_cv_prog_CC+:} false
; then :
4082 $as_echo_n "(cached) " >&6
4084 if test -n "$CC"; then
4085 ac_cv_prog_CC
="$CC" # Let the user override the test.
4087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4091 test -z "$as_dir" && as_dir
=.
4092 for ac_exec_ext
in '' $ac_executable_extensions; do
4093 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 if test -n "$CC"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4107 $as_echo "$CC" >&6; }
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4114 test -n "$CC" && break
4117 if test -z "$CC"; then
4119 for ac_prog
in cl.exe
4121 # Extract the first word of "$ac_prog", so it can be a program name with args.
4122 set dummy
$ac_prog; ac_word
=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4126 $as_echo_n "(cached) " >&6
4128 if test -n "$ac_ct_CC"; then
4129 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir
=.
4136 for ac_exec_ext
in '' $ac_executable_extensions; do
4137 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4138 ac_cv_prog_ac_ct_CC
="$ac_prog"
4139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4149 if test -n "$ac_ct_CC"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4151 $as_echo "$ac_ct_CC" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4158 test -n "$ac_ct_CC" && break
4161 if test "x$ac_ct_CC" = x
; then
4164 case $cross_compiling:$ac_tool_warned in
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4168 ac_tool_warned
=yes ;;
4177 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error $?
"no acceptable C compiler found in \$PATH
4180 See \`config.log' for more details" "$LINENO" 5; }
4182 # Provide some information about the compiler.
4183 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4186 for ac_option
in --version -v -V -qversion; do
4187 { { ac_try
="$ac_compiler $ac_option >&5"
4189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4190 *) ac_try_echo=$ac_try;;
4192 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193 $as_echo "$ac_try_echo"; } >&5
4194 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4196 if test -s conftest.err; then
4198 ... rest of stderr output deleted ...
4199 10q' conftest.err >conftest.er1
4200 cat conftest.er1 >&5
4202 rm -f conftest.er1 conftest.err
4203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4204 test $ac_status = 0; }
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4218 ac_clean_files_save=$ac_clean_files
4219 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4220 # Try to create an executable without -o first, disregard a.out.
4221 # It will help us diagnose broken compilers, and finding out an intuition
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4224 $as_echo_n "checking whether the C compiler works... " >&6; }
4225 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4227 # The possible output files:
4228 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4231 for ac_file in $ac_files
4234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4235 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4240 if { { ac_try="$ac_link_default"
4242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4243 *) ac_try_echo
=$ac_try;;
4245 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_link_default") 2>&5
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; }; then :
4251 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4252 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4253 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4254 # so that the user can short-circuit this test for compilers unknown to
4256 for ac_file
in $ac_files ''
4258 test -f "$ac_file" ||
continue
4260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4263 # We found the default executable, but exeext='' is most
4267 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4269 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4271 # We set ac_cv_exeext here because the later test for it is not
4272 # safe: cross compilers may not add the suffix if given an `-o'
4273 # argument, so we may need to know it at that point already.
4274 # Even if this section looks crufty: it has the advantage of
4281 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4286 if test -z "$ac_file"; then :
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 $as_echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.
$ac_ext >&5
4292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4294 as_fn_error
77 "C compiler cannot create executables
4295 See \`config.log' for more details" "$LINENO" 5; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298 $as_echo "yes" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4301 $as_echo_n "checking for C compiler default output file name... " >&6; }
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4303 $as_echo "$ac_file" >&6; }
4304 ac_exeext
=$ac_cv_exeext
4306 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4307 ac_clean_files
=$ac_clean_files_save
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4309 $as_echo_n "checking for suffix of executables... " >&6; }
4310 if { { ac_try
="$ac_link"
4312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_link") 2>&5
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }; then :
4321 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4322 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4323 # work properly (i.e., refer to `conftest.exe'), while it won't with
4325 for ac_file
in conftest.exe conftest conftest.
*; do
4326 test -f "$ac_file" ||
continue
4328 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4329 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4337 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4338 See \`config.log' for more details" "$LINENO" 5; }
4340 rm -f conftest conftest
$ac_cv_exeext
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4342 $as_echo "$ac_cv_exeext" >&6; }
4344 rm -f conftest.
$ac_ext
4345 EXEEXT
=$ac_cv_exeext
4347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4353 FILE *f = fopen ("conftest.out", "w");
4354 return ferror (f) || fclose (f) != 0;
4360 ac_clean_files
="$ac_clean_files conftest.out"
4361 # Check that the compiler produces executables we can run. If not, either
4362 # the compiler is broken, or we cross compile.
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4364 $as_echo_n "checking whether we are cross compiling... " >&6; }
4365 if test "$cross_compiling" != yes; then
4366 { { ac_try
="$ac_link"
4368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 $as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_link") 2>&5
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4377 if { ac_try='./conftest$ac_cv_exeext'
4378 { { case "(($ac_try" in
4379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4380 *) ac_try_echo
=$ac_try;;
4382 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_try") 2>&5
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; }; then
4390 if test "$cross_compiling" = maybe
; then
4393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error $?
"cannot run C compiled programs.
4396 If you meant to cross compile, use \`--host'.
4397 See \`config.log' for more details" "$LINENO" 5; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4402 $as_echo "$cross_compiling" >&6; }
4404 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4405 ac_clean_files
=$ac_clean_files_save
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4407 $as_echo_n "checking for suffix of object files... " >&6; }
4408 if ${ac_cv_objext+:} false
; then :
4409 $as_echo_n "(cached) " >&6
4411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4422 rm -f conftest.o conftest.obj
4423 if { { ac_try
="$ac_compile"
4425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_compile") 2>&5
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }; then :
4434 for ac_file in conftest.o conftest.obj conftest.*; do
4435 test -f "$ac_file" || continue;
4437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4438 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4443 $as_echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4449 See \
`config.log' for more details" "$LINENO" 5; }
4451 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4454 $as_echo "$ac_cv_objext" >&6; }
4455 OBJEXT=$ac_cv_objext
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4458 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4459 if ${ac_cv_c_compiler_gnu+:} false; then :
4460 $as_echo_n "(cached) " >&6
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4476 if ac_fn_c_try_compile "$LINENO"; then :
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4486 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4487 if test $ac_compiler_gnu = yes; then
4492 ac_test_CFLAGS=${CFLAGS+set}
4493 ac_save_CFLAGS=$CFLAGS
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4495 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4496 if ${ac_cv_prog_cc_g+:} false; then :
4497 $as_echo_n "(cached) " >&6
4499 ac_save_c_werror_flag=$ac_c_werror_flag
4500 ac_c_werror_flag=yes
4503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4514 if ac_fn_c_try_compile "$LINENO"; then :
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4529 if ac_fn_c_try_compile "$LINENO"; then :
4532 ac_c_werror_flag=$ac_save_c_werror_flag
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4545 if ac_fn_c_try_compile "$LINENO"; then :
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4553 ac_c_werror_flag=$ac_save_c_werror_flag
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4556 $as_echo "$ac_cv_prog_cc_g" >&6; }
4557 if test "$ac_test_CFLAGS" = set; then
4558 CFLAGS=$ac_save_CFLAGS
4559 elif test $ac_cv_prog_cc_g = yes; then
4560 if test "$GCC" = yes; then
4566 if test "$GCC" = yes; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4573 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4574 if ${ac_cv_prog_cc_c89+:} false; then :
4575 $as_echo_n "(cached) " >&6
4577 ac_cv_prog_cc_c89=no
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4584 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4585 struct buf { int x; };
4586 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4587 static char *e (p, i)
4593 static char *f (char * (*g) (char **, int), char **p, ...)
4598 s = g (p, va_arg (v,int));
4603 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4604 function prototypes and stuff, but not '\xHH' hex character constants.
4605 These don't provoke an error unfortunately, instead are silently treated
4606 as 'x'. The following induces an error, until -std is added to get
4607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4608 array size at least. It's necessary to write '\x00'==0 to get something
4609 that's true only with -std. */
4610 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4612 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4613 inside strings and character constants. */
4615 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4617 int test (int i, double x);
4618 struct s1 {int (*f) (int a);};
4619 struct s2 {int (*f) (double a);};
4620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4626 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4634 CC="$ac_save_CC $ac_arg"
4635 if ac_fn_c_try_compile "$LINENO"; then :
4636 ac_cv_prog_cc_c89=$ac_arg
4638 rm -f core conftest.err conftest.$ac_objext
4639 test "x$ac_cv_prog_cc_c89" != "xno" && break
4641 rm -f conftest.$ac_ext
4646 case "x$ac_cv_prog_cc_c89" in
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4649 $as_echo "none needed" >&6; } ;;
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4652 $as_echo "unsupported" >&6; } ;;
4654 CC="$CC $ac_cv_prog_cc_c89"
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4656 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4658 if test "x$ac_cv_prog_cc_c89" != xno; then :
4663 ac_cpp='$CPP $CPPFLAGS'
4664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4669 ac_cpp='$CXXCPP $CPPFLAGS'
4670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4673 if test -z "$CXX"; then
4674 if test -n "$CCC"; then
4677 if test -n "$ac_tool_prefix"; then
4678 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_CXX+:} false; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -n "$CXX"; then
4688 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 if test -n "$CXX"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4710 $as_echo "$CXX" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4717 test -n "$CXX" && break
4720 if test -z "$CXX"; then
4722 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4724 # Extract the first word of "$ac_prog", so it can be a program name with args.
4725 set dummy $ac_prog; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 if test -n "$ac_ct_CXX"; then
4732 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741 ac_cv_prog_ac_ct_CXX="$ac_prog"
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4752 if test -n "$ac_ct_CXX"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4754 $as_echo "$ac_ct_CXX" >&6; }
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4761 test -n "$ac_ct_CXX" && break
4764 if test "x$ac_ct_CXX" = x; then
4767 case $cross_compiling:$ac_tool_warned in
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4771 ac_tool_warned=yes ;;
4779 # Provide some information about the compiler.
4780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4783 for ac_option in --version -v -V -qversion; do
4784 { { ac_try="$ac_compiler $ac_option >&5"
4786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4787 *) ac_try_echo
=$ac_try;;
4789 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4790 $as_echo "$ac_try_echo"; } >&5
4791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4793 if test -s conftest.err
; then
4795 ... rest of stderr output deleted ...
4796 10q' conftest.err
>conftest.er1
4797 cat conftest.er1
>&5
4799 rm -f conftest.er1 conftest.err
4800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801 test $ac_status = 0; }
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4805 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4806 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4807 $as_echo_n "(cached) " >&6
4809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4823 if ac_fn_cxx_try_compile
"$LINENO"; then :
4828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4829 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4833 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4834 if test $ac_compiler_gnu = yes; then
4839 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4840 ac_save_CXXFLAGS
=$CXXFLAGS
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4842 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4843 if ${ac_cv_prog_cxx_g+:} false
; then :
4844 $as_echo_n "(cached) " >&6
4846 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4847 ac_cxx_werror_flag
=yes
4850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 if ac_fn_cxx_try_compile
"$LINENO"; then :
4862 ac_cv_prog_cxx_g
=yes
4865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4876 if ac_fn_cxx_try_compile
"$LINENO"; then :
4879 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4892 if ac_fn_cxx_try_compile
"$LINENO"; then :
4893 ac_cv_prog_cxx_g
=yes
4895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4900 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4903 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4904 if test "$ac_test_CXXFLAGS" = set; then
4905 CXXFLAGS
=$ac_save_CXXFLAGS
4906 elif test $ac_cv_prog_cxx_g = yes; then
4907 if test "$GXX" = yes; then
4913 if test "$GXX" = yes; then
4920 ac_cpp
='$CPP $CPPFLAGS'
4921 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4930 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_GNATBIND+:} false
; then :
4934 $as_echo_n "(cached) " >&6
4936 if test -n "$GNATBIND"; then
4937 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir
=.
4944 for ac_exec_ext
in '' $ac_executable_extensions; do
4945 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 GNATBIND
=$ac_cv_prog_GNATBIND
4957 if test -n "$GNATBIND"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4959 $as_echo "$GNATBIND" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4967 if test -z "$ac_cv_prog_GNATBIND"; then
4968 ac_ct_GNATBIND
=$GNATBIND
4969 # Extract the first word of "gnatbind", so it can be a program name with args.
4970 set dummy gnatbind
; ac_word
=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
4974 $as_echo_n "(cached) " >&6
4976 if test -n "$ac_ct_GNATBIND"; then
4977 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir
=.
4984 for ac_exec_ext
in '' $ac_executable_extensions; do
4985 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4997 if test -n "$ac_ct_GNATBIND"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4999 $as_echo "$ac_ct_GNATBIND" >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5005 if test "x$ac_ct_GNATBIND" = x
; then
5008 case $cross_compiling:$ac_tool_warned in
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned
=yes ;;
5014 GNATBIND
=$ac_ct_GNATBIND
5017 GNATBIND
="$ac_cv_prog_GNATBIND"
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5022 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5026 $as_echo_n "(cached) " >&6
5028 if test -n "$GNATMAKE"; then
5029 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5035 test -z "$as_dir" && as_dir
=.
5036 for ac_exec_ext
in '' $ac_executable_extensions; do
5037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 GNATMAKE
=$ac_cv_prog_GNATMAKE
5049 if test -n "$GNATMAKE"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5051 $as_echo "$GNATMAKE" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5059 if test -z "$ac_cv_prog_GNATMAKE"; then
5060 ac_ct_GNATMAKE
=$GNATMAKE
5061 # Extract the first word of "gnatmake", so it can be a program name with args.
5062 set dummy gnatmake
; ac_word
=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5066 $as_echo_n "(cached) " >&6
5068 if test -n "$ac_ct_GNATMAKE"; then
5069 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5089 if test -n "$ac_ct_GNATMAKE"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5091 $as_echo "$ac_ct_GNATMAKE" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5097 if test "x$ac_ct_GNATMAKE" = x
; then
5100 case $cross_compiling:$ac_tool_warned in
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned
=yes ;;
5106 GNATMAKE
=$ac_ct_GNATMAKE
5109 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5113 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5114 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5115 $as_echo_n "(cached) " >&6
5117 cat >conftest.adb
<<EOF
5118 procedure conftest is begin null; end conftest;
5120 acx_cv_cc_gcc_supports_ada
=no
5121 # There is a bug in old released versions of GCC which causes the
5122 # driver to exit successfully when the appropriate language module
5123 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5124 # Therefore we must check for the error message as well as an
5125 # unsuccessful exit.
5126 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5127 # given a .adb file, but produce no object file. So we must check
5128 # if an object file was really produced to guard against this.
5129 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5130 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5131 acx_cv_cc_gcc_supports_ada
=yes
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5136 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5138 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5145 # Do configure tests with the C++ compiler, since that's what we build with.
5147 ac_cpp
='$CXXCPP $CPPFLAGS'
5148 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5153 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5154 # optimizations to be activated explicitly by the toplevel.
5156 */prev-gcc
/xgcc
*) ;;
5157 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5158 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5163 # Determine PICFLAG for target gnatlib.
5169 # PIC is the default on some targets or must not be used.
5171 # For darwin, common symbols are not allowed in MH_DYLIB files
5173 # If we are using a compiler supporting mdynamic-no-pic
5174 # and the option has been tested as safe to add, then cancel
5175 # it here, since the code generated is incompatible with shared
5177 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5178 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5182 # PIC is the default.
5185 # PIC is the default for 64-bit PA HP-UX.
5187 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5189 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5191 i
[34567]86-*-interix[3-9]*)
5192 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5193 # Instead, we relocate shared libraries at runtime.
5195 i
[34567]86-*-nto-qnx*)
5196 # QNX uses GNU C++, but need to define -shared option too, otherwise
5198 PICFLAG_FOR_TARGET
='-fPIC -shared'
5200 i
[34567]86-pc-msdosdjgpp*)
5201 # DJGPP does not support shared libraries at all.
5204 # On IA64 HP-UX, PIC is the default but the pic flag
5205 # sets the default TLS model and affects inlining.
5206 PICFLAG_FOR_TARGET
=-fPIC
5209 # PIC is the default.
5211 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5212 # All AIX code is PIC.
5215 # Some targets support both -fPIC and -fpic, but prefer the latter.
5217 i
[34567]86-*-* | x86_64-
*-*)
5218 PICFLAG_FOR_TARGET
=-fpic
5220 # FIXME: Override -fPIC default in libgcc only?
5221 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5222 PICFLAG_FOR_TARGET
=-fpic
5224 # FIXME: Simplify to sh*-*-netbsd*?
5225 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5226 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5227 PICFLAG_FOR_TARGET
=-fpic
5229 # Default to -fPIC unless specified otherwise.
5231 PICFLAG_FOR_TARGET
=-fPIC
5235 # If the user explicitly uses -fpic/-fPIC, keep that.
5236 case "${CFLAGS_FOR_TARGET}" in
5238 PICFLAG_FOR_TARGET
=-fpic
5241 PICFLAG_FOR_TARGET
=-fPIC
5247 # -------------------------
5248 # Check C compiler features
5249 # -------------------------
5253 ac_cpp
='$CXXCPP $CPPFLAGS'
5254 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5258 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5259 if test -z "$CXXCPP"; then
5260 if ${ac_cv_prog_CXXCPP+:} false
; then :
5261 $as_echo_n "(cached) " >&6
5263 # Double quotes because CXXCPP needs to be expanded
5264 for CXXCPP
in "$CXX -E" "/lib/cpp"
5267 for ac_cxx_preproc_warn_flag
in '' yes
5269 # Use a header file that comes with gcc, so configuring glibc
5270 # with a fresh cross-compiler works.
5271 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5272 # <limits.h> exists even on freestanding compilers.
5273 # On the NeXT, cc -E runs the code through the compiler's parser,
5274 # not just through cpp. "Syntax error" is here to catch this case.
5275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5278 # include <limits.h>
5280 # include <assert.h>
5284 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5287 # Broken: fails on valid input.
5290 rm -f conftest.err conftest.i conftest.
$ac_ext
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 #include <ac_nonexistent.h>
5298 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5299 # Broken: success on invalid input.
5302 # Passes both tests.
5306 rm -f conftest.err conftest.i conftest.
$ac_ext
5309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5310 rm -f conftest.i conftest.err conftest.
$ac_ext
5311 if $ac_preproc_ok; then :
5316 ac_cv_prog_CXXCPP
=$CXXCPP
5319 CXXCPP
=$ac_cv_prog_CXXCPP
5321 ac_cv_prog_CXXCPP
=$CXXCPP
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5324 $as_echo "$CXXCPP" >&6; }
5326 for ac_cxx_preproc_warn_flag
in '' yes
5328 # Use a header file that comes with gcc, so configuring glibc
5329 # with a fresh cross-compiler works.
5330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5331 # <limits.h> exists even on freestanding compilers.
5332 # On the NeXT, cc -E runs the code through the compiler's parser,
5333 # not just through cpp. "Syntax error" is here to catch this case.
5334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5337 # include <limits.h>
5339 # include <assert.h>
5343 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5346 # Broken: fails on valid input.
5349 rm -f conftest.err conftest.i conftest.
$ac_ext
5351 # OK, works on sane cases. Now check whether nonexistent headers
5352 # can be detected and how.
5353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #include <ac_nonexistent.h>
5357 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5358 # Broken: success on invalid input.
5361 # Passes both tests.
5365 rm -f conftest.err conftest.i conftest.
$ac_ext
5368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5369 rm -f conftest.i conftest.err conftest.
$ac_ext
5370 if $ac_preproc_ok; then :
5373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5375 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
5376 See \`config.log' for more details" "$LINENO" 5; }
5380 ac_cpp
='$CXXCPP $CPPFLAGS'
5381 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5387 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5388 if ${ac_cv_path_GREP+:} false
; then :
5389 $as_echo_n "(cached) " >&6
5391 if test -z "$GREP"; then
5392 ac_path_GREP_found
=false
5393 # Loop through the user's path and test for each of PROGNAME-LIST
5394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5395 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5398 test -z "$as_dir" && as_dir
=.
5399 for ac_prog
in grep ggrep
; do
5400 for ac_exec_ext
in '' $ac_executable_extensions; do
5401 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5402 as_fn_executable_p
"$ac_path_GREP" ||
continue
5403 # Check for GNU ac_path_GREP and select it if it is found.
5404 # Check for GNU $ac_path_GREP
5405 case `"$ac_path_GREP" --version 2>&1` in
5407 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5410 $as_echo_n 0123456789 >"conftest.in"
5413 cat "conftest.in" "conftest.in" >"conftest.tmp"
5414 mv "conftest.tmp" "conftest.in"
5415 cp "conftest.in" "conftest.nl"
5416 $as_echo 'GREP' >> "conftest.nl"
5417 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5418 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5419 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5420 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5421 # Best one so far, save it but keep looking for a better one
5422 ac_cv_path_GREP
="$ac_path_GREP"
5423 ac_path_GREP_max
=$ac_count
5425 # 10*(2^10) chars as input seems more than enough
5426 test $ac_count -gt 10 && break
5428 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5431 $ac_path_GREP_found && break 3
5436 if test -z "$ac_cv_path_GREP"; then
5437 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5440 ac_cv_path_GREP
=$GREP
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5445 $as_echo "$ac_cv_path_GREP" >&6; }
5446 GREP
="$ac_cv_path_GREP"
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5450 $as_echo_n "checking for egrep... " >&6; }
5451 if ${ac_cv_path_EGREP+:} false
; then :
5452 $as_echo_n "(cached) " >&6
5454 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5455 then ac_cv_path_EGREP
="$GREP -E"
5457 if test -z "$EGREP"; then
5458 ac_path_EGREP_found
=false
5459 # Loop through the user's path and test for each of PROGNAME-LIST
5460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5461 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5464 test -z "$as_dir" && as_dir
=.
5465 for ac_prog
in egrep; do
5466 for ac_exec_ext
in '' $ac_executable_extensions; do
5467 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5468 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5469 # Check for GNU ac_path_EGREP and select it if it is found.
5470 # Check for GNU $ac_path_EGREP
5471 case `"$ac_path_EGREP" --version 2>&1` in
5473 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5476 $as_echo_n 0123456789 >"conftest.in"
5479 cat "conftest.in" "conftest.in" >"conftest.tmp"
5480 mv "conftest.tmp" "conftest.in"
5481 cp "conftest.in" "conftest.nl"
5482 $as_echo 'EGREP' >> "conftest.nl"
5483 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5484 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5485 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5486 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5487 # Best one so far, save it but keep looking for a better one
5488 ac_cv_path_EGREP
="$ac_path_EGREP"
5489 ac_path_EGREP_max
=$ac_count
5491 # 10*(2^10) chars as input seems more than enough
5492 test $ac_count -gt 10 && break
5494 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5497 $ac_path_EGREP_found && break 3
5502 if test -z "$ac_cv_path_EGREP"; then
5503 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5506 ac_cv_path_EGREP
=$EGREP
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5512 $as_echo "$ac_cv_path_EGREP" >&6; }
5513 EGREP
="$ac_cv_path_EGREP"
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5517 $as_echo_n "checking for ANSI C header files... " >&6; }
5518 if ${ac_cv_header_stdc+:} false
; then :
5519 $as_echo_n "(cached) " >&6
5521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5522 /* end confdefs.h. */
5536 if ac_fn_cxx_try_compile
"$LINENO"; then :
5537 ac_cv_header_stdc
=yes
5539 ac_cv_header_stdc
=no
5541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5543 if test $ac_cv_header_stdc = yes; then
5544 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551 $EGREP "memchr" >/dev
/null
2>&1; then :
5554 ac_cv_header_stdc
=no
5560 if test $ac_cv_header_stdc = yes; then
5561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5562 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5568 $EGREP "free" >/dev
/null
2>&1; then :
5571 ac_cv_header_stdc
=no
5577 if test $ac_cv_header_stdc = yes; then
5578 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5579 if test "$cross_compiling" = yes; then :
5582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5586 #if ((' ' & 0x0FF) == 0x020)
5587 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5588 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5590 # define ISLOWER(c) \
5591 (('a' <= (c) && (c) <= 'i') \
5592 || ('j' <= (c) && (c) <= 'r') \
5593 || ('s' <= (c) && (c) <= 'z'))
5594 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5602 for (i = 0; i < 256; i++)
5603 if (XOR (islower (i), ISLOWER (i))
5604 || toupper (i) != TOUPPER (i))
5609 if ac_fn_cxx_try_run
"$LINENO"; then :
5612 ac_cv_header_stdc
=no
5614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5615 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5621 $as_echo "$ac_cv_header_stdc" >&6; }
5622 if test $ac_cv_header_stdc = yes; then
5624 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5628 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5629 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5630 inttypes.h stdint.h unistd.h
5632 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5635 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5636 cat >>confdefs.h
<<_ACEOF
5637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5646 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5647 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
5654 if test "$MINIX" = yes; then
5656 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5659 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5662 $as_echo "#define _MINIX 1" >>confdefs.h
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5668 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5669 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
5670 $as_echo_n "(cached) " >&6
5672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5675 # define __EXTENSIONS__ 1
5676 $ac_includes_default
5685 if ac_fn_cxx_try_compile
"$LINENO"; then :
5686 ac_cv_safe_to_define___extensions__
=yes
5688 ac_cv_safe_to_define___extensions__
=no
5690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5693 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5694 test $ac_cv_safe_to_define___extensions__ = yes &&
5695 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5697 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5699 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5701 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5703 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5707 ac_cpp
='$CPP $CPPFLAGS'
5708 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5712 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5713 # On Suns, sometimes $CPP names a directory.
5714 if test -n "$CPP" && test -d "$CPP"; then
5717 if test -z "$CPP"; then
5718 if ${ac_cv_prog_CPP+:} false
; then :
5719 $as_echo_n "(cached) " >&6
5721 # Double quotes because CPP needs to be expanded
5722 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5725 for ac_c_preproc_warn_flag
in '' yes
5727 # Use a header file that comes with gcc, so configuring glibc
5728 # with a fresh cross-compiler works.
5729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5730 # <limits.h> exists even on freestanding compilers.
5731 # On the NeXT, cc -E runs the code through the compiler's parser,
5732 # not just through cpp. "Syntax error" is here to catch this case.
5733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5736 # include <limits.h>
5738 # include <assert.h>
5742 if ac_fn_c_try_cpp
"$LINENO"; then :
5745 # Broken: fails on valid input.
5748 rm -f conftest.err conftest.i conftest.
$ac_ext
5750 # OK, works on sane cases. Now check whether nonexistent headers
5751 # can be detected and how.
5752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5754 #include <ac_nonexistent.h>
5756 if ac_fn_c_try_cpp
"$LINENO"; then :
5757 # Broken: success on invalid input.
5760 # Passes both tests.
5764 rm -f conftest.err conftest.i conftest.
$ac_ext
5767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5768 rm -f conftest.i conftest.err conftest.
$ac_ext
5769 if $ac_preproc_ok; then :
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5782 $as_echo "$CPP" >&6; }
5784 for ac_c_preproc_warn_flag
in '' yes
5786 # Use a header file that comes with gcc, so configuring glibc
5787 # with a fresh cross-compiler works.
5788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5789 # <limits.h> exists even on freestanding compilers.
5790 # On the NeXT, cc -E runs the code through the compiler's parser,
5791 # not just through cpp. "Syntax error" is here to catch this case.
5792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5795 # include <limits.h>
5797 # include <assert.h>
5801 if ac_fn_c_try_cpp
"$LINENO"; then :
5804 # Broken: fails on valid input.
5807 rm -f conftest.err conftest.i conftest.
$ac_ext
5809 # OK, works on sane cases. Now check whether nonexistent headers
5810 # can be detected and how.
5811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 #include <ac_nonexistent.h>
5815 if ac_fn_c_try_cpp
"$LINENO"; then :
5816 # Broken: success on invalid input.
5819 # Passes both tests.
5823 rm -f conftest.err conftest.i conftest.
$ac_ext
5826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5827 rm -f conftest.i conftest.err conftest.
$ac_ext
5828 if $ac_preproc_ok; then :
5831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5833 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5834 See \`config.log' for more details" "$LINENO" 5; }
5838 ac_cpp
='$CXXCPP $CPPFLAGS'
5839 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5840 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5841 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5844 $as_echo_n "checking for inline... " >&6; }
5845 if ${ac_cv_c_inline+:} false
; then :
5846 $as_echo_n "(cached) " >&6
5849 for ac_kw
in inline __inline__ __inline
; do
5850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5854 static $ac_kw foo_t static_foo () {return 0; }
5855 $ac_kw foo_t foo () {return 0; }
5859 if ac_fn_cxx_try_compile
"$LINENO"; then :
5860 ac_cv_c_inline
=$ac_kw
5862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5863 test "$ac_cv_c_inline" != no
&& break
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5868 $as_echo "$ac_cv_c_inline" >&6; }
5870 case $ac_cv_c_inline in
5873 case $ac_cv_c_inline in
5875 *) ac_val
=$ac_cv_c_inline;;
5877 cat >>confdefs.h
<<_ACEOF
5879 #define inline $ac_val
5886 # Check whether --enable-largefile was given.
5887 if test "${enable_largefile+set}" = set; then :
5888 enableval
=$enable_largefile;
5891 if test "$enable_largefile" != no
; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5894 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5895 if ${ac_cv_sys_largefile_CC+:} false
; then :
5896 $as_echo_n "(cached) " >&6
5898 ac_cv_sys_largefile_CC
=no
5899 if test "$GCC" != yes; then
5902 # IRIX 6.2 and later do not support large files by default,
5903 # so use the C compiler's -n32 option if that helps.
5904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5906 #include <sys/types.h>
5907 /* Check that off_t can represent 2**63 - 1 correctly.
5908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5909 since some C++ compilers masquerading as C compilers
5910 incorrectly reject 9223372036854775807. */
5911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5913 && LARGE_OFF_T % 2147483647 == 1)
5923 if ac_fn_cxx_try_compile
"$LINENO"; then :
5926 rm -f core conftest.err conftest.
$ac_objext
5928 if ac_fn_cxx_try_compile
"$LINENO"; then :
5929 ac_cv_sys_largefile_CC
=' -n32'; break
5931 rm -f core conftest.err conftest.
$ac_objext
5935 rm -f conftest.
$ac_ext
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5939 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5940 if test "$ac_cv_sys_largefile_CC" != no
; then
5941 CC
=$CC$ac_cv_sys_largefile_CC
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5945 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5946 if ${ac_cv_sys_file_offset_bits+:} false
; then :
5947 $as_echo_n "(cached) " >&6
5950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <sys/types.h>
5953 /* Check that off_t can represent 2**63 - 1 correctly.
5954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5955 since some C++ compilers masquerading as C compilers
5956 incorrectly reject 9223372036854775807. */
5957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5959 && LARGE_OFF_T % 2147483647 == 1)
5969 if ac_fn_cxx_try_compile
"$LINENO"; then :
5970 ac_cv_sys_file_offset_bits
=no
; break
5972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5974 /* end confdefs.h. */
5975 #define _FILE_OFFSET_BITS 64
5976 #include <sys/types.h>
5977 /* Check that off_t can represent 2**63 - 1 correctly.
5978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5979 since some C++ compilers masquerading as C compilers
5980 incorrectly reject 9223372036854775807. */
5981 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5983 && LARGE_OFF_T % 2147483647 == 1)
5993 if ac_fn_cxx_try_compile
"$LINENO"; then :
5994 ac_cv_sys_file_offset_bits
=64; break
5996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5997 ac_cv_sys_file_offset_bits
=unknown
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6002 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6003 case $ac_cv_sys_file_offset_bits in #(
6006 cat >>confdefs.h
<<_ACEOF
6007 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6012 if test $ac_cv_sys_file_offset_bits = unknown
; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6014 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6015 if ${ac_cv_sys_large_files+:} false
; then :
6016 $as_echo_n "(cached) " >&6
6019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6020 /* end confdefs.h. */
6021 #include <sys/types.h>
6022 /* Check that off_t can represent 2**63 - 1 correctly.
6023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6024 since some C++ compilers masquerading as C compilers
6025 incorrectly reject 9223372036854775807. */
6026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6028 && LARGE_OFF_T % 2147483647 == 1)
6038 if ac_fn_cxx_try_compile
"$LINENO"; then :
6039 ac_cv_sys_large_files
=no
; break
6041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 #define _LARGE_FILES 1
6045 #include <sys/types.h>
6046 /* Check that off_t can represent 2**63 - 1 correctly.
6047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6048 since some C++ compilers masquerading as C compilers
6049 incorrectly reject 9223372036854775807. */
6050 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6052 && LARGE_OFF_T % 2147483647 == 1)
6062 if ac_fn_cxx_try_compile
"$LINENO"; then :
6063 ac_cv_sys_large_files
=1; break
6065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6066 ac_cv_sys_large_files
=unknown
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6071 $as_echo "$ac_cv_sys_large_files" >&6; }
6072 case $ac_cv_sys_large_files in #(
6075 cat >>confdefs.h
<<_ACEOF
6076 #define _LARGE_FILES $ac_cv_sys_large_files
6087 # sizeof(char) is 1 by definition.
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
6093 $as_echo_n "checking size of void *... " >&6; }
6094 if ${ac_cv_sizeof_void_p+:} false
; then :
6095 $as_echo_n "(cached) " >&6
6097 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
6100 if test "$ac_cv_type_void_p" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 as_fn_error
77 "cannot compute sizeof (void *)
6104 See \`config.log' for more details" "$LINENO" 5; }
6106 ac_cv_sizeof_void_p
=0
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
6112 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6116 cat >>confdefs.h
<<_ACEOF
6117 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6121 # The cast to long int works around a bug in the HP C Compiler
6122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6124 # This bug is HP SR number 8606223364.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6126 $as_echo_n "checking size of short... " >&6; }
6127 if ${ac_cv_sizeof_short+:} false
; then :
6128 $as_echo_n "(cached) " >&6
6130 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6133 if test "$ac_cv_type_short" = yes; then
6134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6136 as_fn_error
77 "cannot compute sizeof (short)
6137 See \`config.log' for more details" "$LINENO" 5; }
6139 ac_cv_sizeof_short
=0
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6145 $as_echo "$ac_cv_sizeof_short" >&6; }
6149 cat >>confdefs.h
<<_ACEOF
6150 #define SIZEOF_SHORT $ac_cv_sizeof_short
6154 # The cast to long int works around a bug in the HP C Compiler
6155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6157 # This bug is HP SR number 8606223364.
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6159 $as_echo_n "checking size of int... " >&6; }
6160 if ${ac_cv_sizeof_int+:} false
; then :
6161 $as_echo_n "(cached) " >&6
6163 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6166 if test "$ac_cv_type_int" = yes; then
6167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6169 as_fn_error
77 "cannot compute sizeof (int)
6170 See \`config.log' for more details" "$LINENO" 5; }
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6178 $as_echo "$ac_cv_sizeof_int" >&6; }
6182 cat >>confdefs.h
<<_ACEOF
6183 #define SIZEOF_INT $ac_cv_sizeof_int
6187 # The cast to long int works around a bug in the HP C Compiler
6188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6190 # This bug is HP SR number 8606223364.
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6192 $as_echo_n "checking size of long... " >&6; }
6193 if ${ac_cv_sizeof_long+:} false
; then :
6194 $as_echo_n "(cached) " >&6
6196 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6199 if test "$ac_cv_type_long" = yes; then
6200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6202 as_fn_error
77 "cannot compute sizeof (long)
6203 See \`config.log' for more details" "$LINENO" 5; }
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6211 $as_echo "$ac_cv_sizeof_long" >&6; }
6215 cat >>confdefs.h
<<_ACEOF
6216 #define SIZEOF_LONG $ac_cv_sizeof_long
6220 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6221 if test "x$ac_cv_type_long_long" = xyes
; then :
6223 cat >>confdefs.h
<<_ACEOF
6224 #define HAVE_LONG_LONG 1
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 long long" >&5
6232 $as_echo_n "checking size of long long... " >&6; }
6233 if ${ac_cv_sizeof_long_long+:} false
; then :
6234 $as_echo_n "(cached) " >&6
6236 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6239 if test "$ac_cv_type_long_long" = 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 (long long)
6243 See \`config.log' for more details" "$LINENO" 5; }
6245 ac_cv_sizeof_long_long
=0
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6251 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6255 cat >>confdefs.h
<<_ACEOF
6256 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6262 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6263 case $ac_cv_c_int8_t in #(
6267 cat >>confdefs.h
<<_ACEOF
6268 #define int8_t $ac_cv_c_int8_t
6273 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6274 case $ac_cv_c_int16_t in #(
6278 cat >>confdefs.h
<<_ACEOF
6279 #define int16_t $ac_cv_c_int16_t
6284 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6285 case $ac_cv_c_int32_t in #(
6289 cat >>confdefs.h
<<_ACEOF
6290 #define int32_t $ac_cv_c_int32_t
6295 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6296 case $ac_cv_c_int64_t in #(
6300 cat >>confdefs.h
<<_ACEOF
6301 #define int64_t $ac_cv_c_int64_t
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6308 $as_echo_n "checking for unsigned long long int... " >&6; }
6309 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
6310 $as_echo_n "(cached) " >&6
6312 ac_cv_type_unsigned_long_long_int
=yes
6313 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6317 /* For now, do not test the preprocessor; as of 2007 there are too many
6318 implementations with broken preprocessors. Perhaps this can
6319 be revisited in 2012. In the meantime, code should not expect
6320 #if to work with literals wider than 32 bits. */
6321 /* Test literals. */
6322 long long int ll = 9223372036854775807ll;
6323 long long int nll = -9223372036854775807LL;
6324 unsigned long long int ull = 18446744073709551615ULL;
6325 /* Test constant expressions. */
6326 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6328 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6334 /* Test availability of runtime routines for shift and division. */
6335 long long int llmax = 9223372036854775807ll;
6336 unsigned long long int ullmax = 18446744073709551615ull;
6337 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6338 | (llmax / ll) | (llmax % ll)
6339 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6340 | (ullmax / ull) | (ullmax % ull));
6346 if ac_fn_cxx_try_link
"$LINENO"; then :
6349 ac_cv_type_unsigned_long_long_int
=no
6351 rm -f core conftest.err conftest.
$ac_objext \
6352 conftest
$ac_exeext conftest.
$ac_ext
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6356 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6357 if test $ac_cv_type_unsigned_long_long_int = yes; then
6359 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6366 $as_echo_n "checking for long long int... " >&6; }
6367 if ${ac_cv_type_long_long_int+:} false
; then :
6368 $as_echo_n "(cached) " >&6
6370 ac_cv_type_long_long_int
=yes
6371 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
6372 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
6373 if test $ac_cv_type_long_long_int = yes; then
6374 if test "$cross_compiling" = yes; then :
6377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6378 /* end confdefs.h. */
6382 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6383 # define LLONG_MAX (HALF - 1 + HALF)
6388 long long int n = 1;
6392 long long int m = n << i;
6395 if (LLONG_MAX / 2 < m)
6403 if ac_fn_cxx_try_run
"$LINENO"; then :
6406 ac_cv_type_long_long_int
=no
6408 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6409 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6416 $as_echo "$ac_cv_type_long_long_int" >&6; }
6417 if test $ac_cv_type_long_long_int = yes; then
6419 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6425 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6426 if test "x$ac_cv_type_intmax_t" = xyes
; then :
6428 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6431 test $ac_cv_type_long_long_int = yes \
6432 && ac_type
='long long int' \
6433 || ac_type
='long int'
6435 cat >>confdefs.h
<<_ACEOF
6436 #define intmax_t $ac_type
6443 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6444 if test "x$ac_cv_type_intptr_t" = xyes
; then :
6446 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6449 for ac_type
in 'int' 'long int' 'long long int'; do
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6452 $ac_includes_default
6456 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6458 return test_array [0];
6464 if ac_fn_cxx_try_compile
"$LINENO"; then :
6466 cat >>confdefs.h
<<_ACEOF
6467 #define intptr_t $ac_type
6472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6473 test -z "$ac_type" && break
6478 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6479 case $ac_cv_c_uint8_t in #(
6483 $as_echo "#define _UINT8_T 1" >>confdefs.h
6486 cat >>confdefs.h
<<_ACEOF
6487 #define uint8_t $ac_cv_c_uint8_t
6492 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6493 case $ac_cv_c_uint16_t in #(
6498 cat >>confdefs.h
<<_ACEOF
6499 #define uint16_t $ac_cv_c_uint16_t
6504 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6505 case $ac_cv_c_uint32_t in #(
6509 $as_echo "#define _UINT32_T 1" >>confdefs.h
6512 cat >>confdefs.h
<<_ACEOF
6513 #define uint32_t $ac_cv_c_uint32_t
6518 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6519 case $ac_cv_c_uint64_t in #(
6523 $as_echo "#define _UINT64_T 1" >>confdefs.h
6526 cat >>confdefs.h
<<_ACEOF
6527 #define uint64_t $ac_cv_c_uint64_t
6534 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6535 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
6537 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6540 test $ac_cv_type_unsigned_long_long_int = yes \
6541 && ac_type
='unsigned long long int' \
6542 || ac_type
='unsigned long int'
6544 cat >>confdefs.h
<<_ACEOF
6545 #define uintmax_t $ac_type
6552 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6553 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6555 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6558 for ac_type
in 'unsigned int' 'unsigned long int' \
6559 'unsigned long long int'; do
6560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6562 $ac_includes_default
6566 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6568 return test_array [0];
6574 if ac_fn_cxx_try_compile
"$LINENO"; then :
6576 cat >>confdefs.h
<<_ACEOF
6577 #define uintptr_t $ac_type
6582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6583 test -z "$ac_type" && break
6600 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6601 as_fn_error $?
"uint64_t or int64_t not found" "$LINENO" 5
6604 # check what underlying integer type int64_t uses
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6606 $as_echo_n "checking for int64_t underlying type... " >&6; }
6607 if ${ac_cv_int64_t_type+:} false
; then :
6608 $as_echo_n "(cached) " >&6
6611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6612 /* end confdefs.h. */
6614 #ifdef HAVE_STDINT_H
6617 template <typename T> struct X { };
6619 struct X<long> { typedef long t; };
6629 if ac_fn_cxx_try_compile
"$LINENO"; then :
6630 ac_cv_int64_t_type
=long
6632 ac_cv_int64_t_type
="long long"
6634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6637 $as_echo "$ac_cv_int64_t_type" >&6; }
6638 if test "$ac_cv_int64_t_type" = "long"; then
6640 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6646 #ifdef HAVE_STDINT_H
6649 template <typename T> struct X { };
6651 struct X<long long> { typedef long long t; };
6661 if ac_fn_cxx_try_compile
"$LINENO"; then :
6664 as_fn_error $?
"error verifying int64_t uses long long" "$LINENO" 5
6666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6670 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6671 if ${ac_cv_std_swap_in_utility+:} false
; then :
6672 $as_echo_n "(cached) " >&6
6675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6683 int a, b; std::swap(a,b);
6688 if ac_fn_cxx_try_compile
"$LINENO"; then :
6689 ac_cv_std_swap_in_utility
=yes
6691 ac_cv_std_swap_in_utility
=no
6693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6696 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6697 if test $ac_cv_std_swap_in_utility = yes; then
6699 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6703 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6704 # If the host compiler is affected by the bug, and we build with optimization
6705 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6706 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6707 # Since there is no reliable feature check for the presence of this bug,
6708 # we simply use a GCC version number check. (This should never trigger for
6709 # stages 2 or 3 of a native bootstrap.)
6711 if test "$GCC" = yes; then
6712 saved_CXXFLAGS
="$CXXFLAGS"
6714 # The following test compilation will succeed if and only if $CXX accepts
6715 # -fno-strict-aliasing *and* is older than GCC 4.3.
6716 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6718 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6722 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6723 #error compiler not affected by placement new aliasing bug
6727 if ac_fn_cxx_try_compile
"$LINENO"; then :
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6729 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6736 CXXFLAGS
="$saved_CXXFLAGS"
6742 # ---------------------
6743 # Warnings and checking
6744 # ---------------------
6746 # Check $CC warning features (if it's GCC).
6747 # We want to use -pedantic, but we don't want warnings about
6750 # * overlong strings
6751 # * C++11 narrowing conversions in { }
6752 # So, we only use -pedantic if we can disable those warnings.
6754 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6755 # Check whether --enable-build-format-warnings was given.
6756 if test "${enable_build_format_warnings+set}" = set; then :
6757 enableval
=$enable_build_format_warnings;
6759 enable_build_format_warnings
=yes
6762 if test $enable_build_format_warnings = no
; then :
6768 ac_cpp
='$CXXCPP $CPPFLAGS'
6769 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6770 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6771 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6774 save_CXXFLAGS
="$CXXFLAGS"
6775 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
$wf_opt; do
6776 # Do the check with the no- prefix removed since gcc silently
6777 # accepts any -Wno-* option on purpose
6778 case $real_option in
6779 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6780 *) option
=$real_option ;;
6782 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6785 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6786 if eval \
${$as_acx_Woption+:} false
; then :
6787 $as_echo_n "(cached) " >&6
6790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6801 if ac_fn_cxx_try_compile
"$LINENO"; then :
6802 eval "$as_acx_Woption=yes"
6804 eval "$as_acx_Woption=no"
6806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6809 eval ac_res
=\$
$as_acx_Woption
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6811 $as_echo "$ac_res" >&6; }
6812 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6813 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6816 CXXFLAGS
="$save_CXXFLAGS"
6818 ac_cpp
='$CXXCPP $CPPFLAGS'
6819 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6826 ac_cpp
='$CPP $CPPFLAGS'
6827 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6832 save_CFLAGS
="$CFLAGS"
6833 for real_option
in -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag
; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option
=$real_option ;;
6840 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if eval \
${$as_acx_Woption+:} false
; then :
6845 $as_echo_n "(cached) " >&6
6848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6859 if ac_fn_c_try_compile
"$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6862 eval "$as_acx_Woption=no"
6864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6867 eval ac_res
=\$
$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6874 CFLAGS
="$save_CFLAGS"
6876 ac_cpp
='$CXXCPP $CPPFLAGS'
6877 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6883 ac_cpp
='$CXXCPP $CPPFLAGS'
6884 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6889 save_CXXFLAGS
="$CXXFLAGS"
6890 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6891 # Do the check with the no- prefix removed since gcc silently
6892 # accepts any -Wno-* option on purpose
6893 case $real_option in
6894 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6895 *) option
=$real_option ;;
6897 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6900 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6901 if eval \
${$as_acx_Woption+:} false
; then :
6902 $as_echo_n "(cached) " >&6
6905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6916 if ac_fn_cxx_try_compile
"$LINENO"; then :
6917 eval "$as_acx_Woption=yes"
6919 eval "$as_acx_Woption=no"
6921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6924 eval ac_res
=\$
$as_acx_Woption
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6926 $as_echo "$ac_res" >&6; }
6927 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6928 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6931 CXXFLAGS
="$save_CXXFLAGS"
6933 ac_cpp
='$CXXCPP $CPPFLAGS'
6934 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6940 ac_cpp
='$CPP $CPPFLAGS'
6941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6946 save_CFLAGS
="$CFLAGS"
6947 for real_option
in -Wold-style-definition -Wc++-compat; do
6948 # Do the check with the no- prefix removed since gcc silently
6949 # accepts any -Wno-* option on purpose
6950 case $real_option in
6951 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6952 *) option
=$real_option ;;
6954 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6957 $as_echo_n "checking whether $CC supports $option... " >&6; }
6958 if eval \
${$as_acx_Woption+:} false
; then :
6959 $as_echo_n "(cached) " >&6
6962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6973 if ac_fn_c_try_compile
"$LINENO"; then :
6974 eval "$as_acx_Woption=yes"
6976 eval "$as_acx_Woption=no"
6978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6981 eval ac_res
=\$
$as_acx_Woption
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6983 $as_echo "$ac_res" >&6; }
6984 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6985 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6988 CFLAGS
="$save_CFLAGS"
6990 ac_cpp
='$CXXCPP $CPPFLAGS'
6991 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6997 ac_cpp
='$CXXCPP $CPPFLAGS'
6998 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7002 # Do the check with the no- prefix removed from the warning options
7003 # since gcc silently accepts any -Wno-* option on purpose
7004 if test "$GXX" = yes; then :
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
7006 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
7007 if ${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+:} false
; then :
7008 $as_echo_n "(cached) " >&6
7010 save_CXXFLAGS
="$CXXFLAGS"
7011 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7023 if ac_fn_cxx_try_compile
"$LINENO"; then :
7024 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
7026 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
7028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7029 CXXFLAGS
="$save_CXXFLAGS"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
7032 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
7033 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
7034 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
7039 ac_cpp
='$CXXCPP $CPPFLAGS'
7040 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7046 ac_cpp
='$CXXCPP $CPPFLAGS'
7047 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7051 # Check whether --enable-werror-always was given.
7052 if test "${enable_werror_always+set}" = set; then :
7053 enableval
=$enable_werror_always;
7055 enable_werror_always
=no
7058 if test $enable_werror_always = yes; then :
7059 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
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 # The above macros do nothing if the compiler is not GCC. However, the
7071 # Makefile has more goo to add other flags, so these variables are used
7072 # to enable warnings only for GCC.
7075 if test "x$GCC" = "xyes"; then
7076 warn_cflags
='$(GCC_WARN_CFLAGS)'
7077 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7082 # Disable exceptions and RTTI if building with g++
7084 ac_cpp
='$CPP $CPPFLAGS'
7085 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7090 save_CFLAGS
="$CFLAGS"
7091 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7092 # Do the check with the no- prefix removed since gcc silently
7093 # accepts any -Wno-* option on purpose
7094 case $real_option in
7095 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7096 *) option
=$real_option ;;
7098 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7101 $as_echo_n "checking whether $CC supports $option... " >&6; }
7102 if eval \
${$as_acx_Woption+:} false
; then :
7103 $as_echo_n "(cached) " >&6
7106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7117 if ac_fn_c_try_compile
"$LINENO"; then :
7118 eval "$as_acx_Woption=yes"
7120 eval "$as_acx_Woption=no"
7122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7125 eval ac_res
=\$
$as_acx_Woption
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7127 $as_echo "$ac_res" >&6; }
7128 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7129 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7132 CFLAGS
="$save_CFLAGS"
7134 ac_cpp
='$CXXCPP $CPPFLAGS'
7135 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7141 # Enable expensive internal checks
7143 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7147 # Check whether --enable-checking was given.
7148 if test "${enable_checking+set}" = set; then :
7149 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7152 # Determine the default checks.
7153 if test x
$is_release = x
; then
7154 ac_checking_flags
=yes,extra
7156 ac_checking_flags
=release
7160 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7161 for check
in release
$ac_checking_flags
7164 # these set all the flags to specific states
7165 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7166 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7167 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7168 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7169 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7170 ac_types_checking
=1 ;;
7171 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7172 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7173 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7174 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7175 ac_tree_checking
= ; ac_valgrind_checking
= ;
7176 ac_types_checking
= ;;
7177 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7178 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7179 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7180 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7181 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7182 ac_types_checking
=1 ;;
7183 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7184 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7185 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7186 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7187 ac_tree_checking
= ; ac_valgrind_checking
= ;
7188 ac_types_checking
= ;;
7189 # these enable particular checks
7190 assert
) ac_assert_checking
=1 ;;
7191 df
) ac_df_checking
=1 ;;
7192 extra
) ac_extra_checking
=1 ;;
7193 fold) ac_fold_checking
=1 ;;
7194 gc
) ac_gc_checking
=1 ;;
7195 gcac
) ac_gc_always_collect
=1 ;;
7196 gimple
) ac_gimple_checking
=1 ;;
7197 misc
) ac_checking
=1 ;;
7198 rtl
) ac_rtl_checking
=1 ;;
7199 rtlflag
) ac_rtlflag_checking
=1 ;;
7200 runtime
) ac_runtime_checking
=1 ;;
7201 tree
) ac_tree_checking
=1 ;;
7202 types
) ac_types_checking
=1 ;;
7203 valgrind
) ac_valgrind_checking
=1 ;;
7204 *) as_fn_error $?
"unknown check category $check" "$LINENO" 5 ;;
7210 if test x
$ac_checking != x
; then
7212 $as_echo "#define CHECKING_P 1" >>confdefs.h
7214 nocommon_flag
=-fno-common
7216 $as_echo "#define CHECKING_P 0" >>confdefs.h
7220 if test x
$ac_extra_checking != x
; then
7222 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7225 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7228 if test x
$ac_df_checking != x
; then
7230 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7233 if test x
$ac_assert_checking != x
; then
7235 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7238 if test x
$ac_gimple_checking != x
; then
7240 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7244 if test x
$ac_runtime_checking != x
; then
7246 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7249 if test x
$ac_tree_checking != x
; then
7251 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7255 if test x
$ac_types_checking != x
; then
7257 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7261 if test x
$ac_rtl_checking != x
; then
7263 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7266 if test x
$ac_rtlflag_checking != x
; then
7268 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7271 if test x
$ac_gc_checking != x
; then
7273 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7276 if test x
$ac_gc_always_collect != x
; then
7278 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7281 if test x
$ac_fold_checking != x
; then
7283 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7286 valgrind_path_defines
=
7289 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7290 if test "x$ac_cv_header_valgrind_h" = xyes
; then :
7298 # It is certainly possible that there's valgrind but no valgrind.h.
7299 # GCC relies on making annotations so we must have both.
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7301 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304 #include <valgrind/memcheck.h>
7305 #ifndef VALGRIND_DISCARD
7306 #error VALGRIND_DISCARD not defined
7309 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7310 gcc_cv_header_valgrind_memcheck_h
=yes
7312 gcc_cv_header_valgrind_memcheck_h
=no
7314 rm -f conftest.err conftest.i conftest.
$ac_ext
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7316 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7318 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 #include <memcheck.h>
7322 #ifndef VALGRIND_DISCARD
7323 #error VALGRIND_DISCARD not defined
7326 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7327 gcc_cv_header_memcheck_h
=yes
7329 gcc_cv_header_memcheck_h
=no
7331 rm -f conftest.err conftest.i conftest.
$ac_ext
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7333 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7334 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7336 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7339 if test $gcc_cv_header_memcheck_h = yes; then
7341 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7345 if test x
$ac_valgrind_checking != x
; then
7347 # Prepare PATH_SEPARATOR.
7348 # The user is always right.
7349 if test "${PATH_SEPARATOR+set}" != set; then
7350 echo "#! /bin/sh" >conf$$.sh
7351 echo "exit 0" >>conf$$.sh
7353 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7361 # Find out how to test for executable files. Don't use a zero-byte file,
7362 # as systems may use methods other than mode bits to determine executability.
7363 cat >conf$$.
file <<_ASEOF
7367 chmod +x conf$$.
file
7368 if test -x conf$$.
file >/dev
/null
2>&1; then
7369 ac_executable_p
="test -x"
7371 ac_executable_p
="test -f"
7375 # Extract the first word of "valgrind", so it can be a program name with args.
7376 set dummy valgrind
; ac_word
=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_path_valgrind_path+:} false
; then :
7380 $as_echo_n "(cached) " >&6
7382 case "$valgrind_path" in
7384 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7387 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7388 for ac_dir
in $PATH; do
7390 test -z "$ac_dir" && ac_dir
=.
7391 for ac_exec_ext
in '' $ac_executable_extensions; do
7392 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7393 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7394 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7404 valgrind_path
="$ac_cv_path_valgrind_path"
7405 if test -n "$valgrind_path"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7407 $as_echo "$valgrind_path" >&6; }
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7413 if test "x$valgrind_path" = "x" \
7414 ||
(test $have_valgrind_h = no \
7415 && test $gcc_cv_header_memcheck_h = no \
7416 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7417 as_fn_error $?
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7419 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7420 valgrind_command
="$valgrind_path -q"
7422 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7428 # Enable code coverage collection
7429 # Check whether --enable-coverage was given.
7430 if test "${enable_coverage+set}" = set; then :
7431 enableval
=$enable_coverage; case "${enableval}" in
7433 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7436 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7439 # a.k.a. --disable-coverage
7443 as_fn_error $?
"unknown coverage setting $enableval" "$LINENO" 5
7452 # Check whether --enable-gather-detailed-mem-stats was given.
7453 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7454 enableval
=$enable_gather_detailed_mem_stats;
7456 enable_gather_detailed_mem_stats
=no
7459 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7461 cat >>confdefs.h
<<_ACEOF
7462 #define GATHER_STATISTICS $gather_stats
7466 # Check whether --enable-valgrind-annotations was given.
7467 if test "${enable_valgrind_annotations+set}" = set; then :
7468 enableval
=$enable_valgrind_annotations;
7470 enable_valgrind_annotations
=no
7473 if test x
$enable_valgrind_annotations != xno \
7474 ||
test x
$ac_valgrind_checking != x
; then
7475 if (test $have_valgrind_h = no \
7476 && test $gcc_cv_header_memcheck_h = no \
7477 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7478 as_fn_error $?
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7481 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7485 # -------------------------------
7486 # Miscenalleous configure options
7487 # -------------------------------
7491 # Check whether --with-stabs was given.
7492 if test "${with_stabs+set}" = set; then :
7493 withval
=$with_stabs; stabs
="$with_stabs"
7499 # Determine whether or not multilibs are enabled.
7500 # Check whether --enable-multilib was given.
7501 if test "${enable_multilib+set}" = set; then :
7502 enableval
=$enable_multilib;
7509 # Determine whether or not multiarch is enabled.
7510 # Check whether --enable-multiarch was given.
7511 if test "${enable_multiarch+set}" = set; then :
7512 enableval
=$enable_multiarch; case "${enableval}" in
7513 yes|no|auto
) enable_multiarch
=$enableval;;
7514 *) as_fn_error $?
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7517 enable_multiarch
=auto
7520 if test x
${enable_multiarch} = xauto
; then
7521 if test x
${with_native_system_header_dir} != x
; then
7522 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7525 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7526 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7531 $as_echo_n "checking for multiarch configuration... " >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7534 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7536 # needed for setting the multiarch name for soft-float/hard-float ABIs
7540 # default stack clash protection guard size as power of twos in bytes.
7541 # Please keep these in sync with params.def.
7545 # Keep the default value when the option is not used to 0, this allows us to
7546 # distinguish between the cases where the user specifially set a value via
7547 # configure and when the normal default value is used.
7549 # Check whether --with-stack-clash-protection-guard-size was given.
7550 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7551 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7553 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7556 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7557 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7558 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7559 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
7563 cat >>confdefs.h
<<_ACEOF
7564 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7568 # Enable __cxa_atexit for C++.
7569 # Check whether --enable-__cxa_atexit was given.
7570 if test "${enable___cxa_atexit+set}" = set; then :
7571 enableval
=$enable___cxa_atexit;
7575 # Enable C extension for decimal float if target supports it.
7577 # Check whether --enable-decimal-float was given.
7578 if test "${enable_decimal_float+set}" = set; then :
7579 enableval
=$enable_decimal_float;
7580 case $enable_decimal_float in
7581 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7582 *) as_fn_error $?
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7583 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7589 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7590 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7591 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7592 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7593 enable_decimal_float
=yes
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7597 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7598 enable_decimal_float
=no
7605 # x86's use BID format instead of DPD
7606 case x
$enable_decimal_float in
7609 i?
86*-*-* | x86_64
*-*-*)
7610 enable_decimal_float
=bid
7613 enable_decimal_float
=dpd
7616 default_decimal_float
=$enable_decimal_float
7619 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7620 # dependency on libdecnumber.
7621 default_decimal_float
=dpd
7628 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7630 cat >>confdefs.h
<<_ACEOF
7631 #define ENABLE_DECIMAL_FLOAT $dfp
7635 # Use default_decimal_float for dependency.
7636 enable_decimal_float
=$default_decimal_float
7638 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7640 cat >>confdefs.h
<<_ACEOF
7641 #define ENABLE_DECIMAL_BID_FORMAT $bid
7645 # Enable C extension for fixed-point arithmetic.
7646 # Check whether --enable-fixed-point was given.
7647 if test "${enable_fixed_point+set}" = set; then :
7648 enableval
=$enable_fixed_point;
7653 enable_fixed_point
=yes
7657 enable_fixed_point
=yes
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7661 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7662 enable_fixed_point
=no
7670 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7672 cat >>confdefs.h
<<_ACEOF
7673 #define ENABLE_FIXED_POINT $fixedpoint
7678 # Pass with no value to take the default
7679 # Pass with a value to specify a thread package
7680 # Check whether --enable-threads was given.
7681 if test "${enable_threads+set}" = set; then :
7682 enableval
=$enable_threads;
7688 # Check whether --enable-tls was given.
7689 if test "${enable_tls+set}" = set; then :
7690 enableval
=$enable_tls;
7693 *) as_fn_error $?
"'$enable_tls' is an invalid value for --enable-tls.
7694 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7702 # Check whether --enable-vtable-verify was given.
7703 if test "${enable_vtable_verify+set}" = set; then :
7704 enableval
=$enable_vtable_verify;
7706 enable_vtable_verify
=no
7709 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7711 cat >>confdefs.h
<<_ACEOF
7712 #define ENABLE_VTABLE_VERIFY $vtable_verify
7716 # Check whether --enable-analyzer was given.
7717 if test "${enable_analyzer+set}" = set; then :
7718 enableval
=$enable_analyzer; if test x
$enable_analyzer = xno
; then
7728 cat >>confdefs.h
<<_ACEOF
7729 #define ENABLE_ANALYZER $analyzer
7733 # Check whether --enable-objc-gc was given.
7734 if test "${enable_objc_gc+set}" = set; then :
7735 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7746 # Check whether --with-dwarf2 was given.
7747 if test "${with_dwarf2+set}" = set; then :
7748 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7754 # Check whether --enable-shared was given.
7755 if test "${enable_shared+set}" = set; then :
7756 enableval
=$enable_shared;
7757 case $enable_shared in
7761 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7762 for pkg
in $enableval; do
7763 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7777 # Check whether --enable-gcov was given.
7778 if test "${enable_gcov+set}" = set; then :
7779 enableval
=$enable_gcov;
7787 # Check whether --with-specs was given.
7788 if test "${with_specs+set}" = set; then :
7789 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7799 # Check whether --with-pkgversion was given.
7800 if test "${with_pkgversion+set}" = set; then :
7801 withval
=$with_pkgversion; case "$withval" in
7802 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7804 *) PKGVERSION
="($withval) " ;;
7815 # Check whether --with-bugurl was given.
7816 if test "${with_bugurl+set}" = set; then :
7817 withval
=$with_bugurl; case "$withval" in
7818 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7821 *) BUGURL
="$withval"
7825 BUGURL
="https://gcc.gnu.org/bugs/"
7835 REPORT_BUGS_TO
="<$BUGURL>"
7836 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7843 # Allow overriding the default URL for documentation
7845 # Check whether --with-documentation-root-url was given.
7846 if test "${with_documentation_root_url+set}" = set; then :
7847 withval
=$with_documentation_root_url; case "$withval" in
7848 yes) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7849 no
) as_fn_error $?
"documentation root URL not specified" "$LINENO" 5 ;;
7850 *) DOCUMENTATION_ROOT_URL
="$withval"
7854 DOCUMENTATION_ROOT_URL
="https://gcc.gnu.org/onlinedocs/gcc/"
7860 # Sanity check enable_languages in case someone does not run the toplevel
7861 # configure # script.
7862 # Check whether --enable-languages was given.
7863 if test "${enable_languages+set}" = set; then :
7864 enableval
=$enable_languages; case ,${enable_languages}, in
7866 # go safe -- we cannot be much sure without the toplevel
7868 # analysis of which target libs are present and usable
7872 as_fn_error $?
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7877 enable_languages
=c
,${enable_languages}
7885 # If top-level libada has been disabled, then wire in install-gnatlib
7886 # invocation with `make install', so that one can build and install
7887 # the library manually with `make -C gcc all gnatlib gnattools install'.
7888 if test x
"$enable_libada" = xno
; then
7889 gnat_install_lib
=gnat-install-lib
7895 if test x
"$enable_as_accelerator_for" != x
; then
7897 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7899 enable_as_accelerator
=yes
7902 # In this case we expect offload compiler to be built as native, so we
7903 # need to rename the driver to avoid clashes with host's drivers.
7904 program_transform_name
="s&^&${target}-&" ;;
7906 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7907 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7908 accel_dir_suffix
=/accel
/${target_noncanonical}
7909 real_target_noncanonical
=${enable_as_accelerator_for}
7915 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7916 tgt
=`echo $tgt | sed 's/=.*//'`
7918 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7924 omp_device_property
=omp-device-properties-i386
7925 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/i386/t-omp-device"
7928 omp_device_property
=omp-device-properties-gcn
7929 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/gcn/t-omp-device"
7932 omp_device_property
=omp-device-properties-nvptx
7933 omp_device_property_tmake_file
="${omp_device_property_tmake_file} \$(srcdir)/config/nvptx/t-omp-device"
7936 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7937 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7940 if test x
"$offload_targets" = x
; then
7941 offload_targets
=$tgt
7943 offload_targets
="$offload_targets,$tgt"
7950 cat >>confdefs.h
<<_ACEOF
7951 #define OFFLOAD_TARGETS "$offload_targets"
7954 if test x
"$enable_offloading" != x
; then
7956 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7960 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7964 if test x
"$enable_hsa" = x1
; then
7966 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7971 # Check whether --with-multilib-list was given.
7972 if test "${with_multilib_list+set}" = set; then :
7973 withval
=$with_multilib_list; :
7975 with_multilib_list
=default
7979 # -------------------------
7980 # Checks for other programs
7981 # -------------------------
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7984 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7986 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7987 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7988 $as_echo_n "(cached) " >&6
7990 cat >conftest.
make <<\_ACEOF
7993 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7995 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7998 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8000 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8004 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8006 $as_echo "yes" >&6; }
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8011 SET_MAKE
="MAKE=${MAKE-make}"
8015 # Find some useful tools
8016 for ac_prog
in gawk mawk nawk
awk
8018 # Extract the first word of "$ac_prog", so it can be a program name with args.
8019 set dummy
$ac_prog; ac_word
=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if ${ac_cv_prog_AWK+:} false
; then :
8023 $as_echo_n "(cached) " >&6
8025 if test -n "$AWK"; then
8026 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8028 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8032 test -z "$as_dir" && as_dir
=.
8033 for ac_exec_ext
in '' $ac_executable_extensions; do
8034 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_AWK
="$ac_prog"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8046 if test -n "$AWK"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8048 $as_echo "$AWK" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8055 test -n "$AWK" && break
8058 # We need awk to create options.c and options.h.
8059 # Bail out if it's missing.
8061 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8065 $as_echo_n "checking whether ln -s works... " >&6; }
8066 if ${gcc_cv_prog_LN_S+:} false
; then :
8067 $as_echo_n "(cached) " >&6
8069 rm -f conftestdata_t
8070 echo >conftestdata_f
8071 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8073 gcc_cv_prog_LN_S
="ln -s"
8075 if ln conftestdata_f conftestdata_t
2>/dev
/null
8079 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8081 gcc_cv_prog_LN_S
="cp -p"
8087 rm -f conftestdata_f conftestdata_t
8090 LN_S
="$gcc_cv_prog_LN_S"
8091 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8093 $as_echo "yes" >&6; }
8095 if test "$gcc_cv_prog_LN_S" = "ln"; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8097 $as_echo "no, using ln" >&6; }
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8100 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8105 $as_echo_n "checking whether ln works... " >&6; }
8106 if ${acx_cv_prog_LN+:} false
; then :
8107 $as_echo_n "(cached) " >&6
8109 rm -f conftestdata_t
8110 echo >conftestdata_f
8111 if ln conftestdata_f conftestdata_t
2>/dev
/null
8117 rm -f conftestdata_f conftestdata_t
8120 if test $acx_cv_prog_LN = no
; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8123 $as_echo "no, using $LN" >&6; }
8125 LN
="$acx_cv_prog_LN"
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8127 $as_echo "yes" >&6; }
8130 if test -n "$ac_tool_prefix"; then
8131 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8132 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134 $as_echo_n "checking for $ac_word... " >&6; }
8135 if ${ac_cv_prog_RANLIB+:} false
; then :
8136 $as_echo_n "(cached) " >&6
8138 if test -n "$RANLIB"; then
8139 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8145 test -z "$as_dir" && as_dir
=.
8146 for ac_exec_ext
in '' $ac_executable_extensions; do
8147 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8148 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 RANLIB
=$ac_cv_prog_RANLIB
8159 if test -n "$RANLIB"; then
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8161 $as_echo "$RANLIB" >&6; }
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164 $as_echo "no" >&6; }
8169 if test -z "$ac_cv_prog_RANLIB"; then
8170 ac_ct_RANLIB
=$RANLIB
8171 # Extract the first word of "ranlib", so it can be a program name with args.
8172 set dummy ranlib
; ac_word
=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8176 $as_echo_n "(cached) " >&6
8178 if test -n "$ac_ct_RANLIB"; then
8179 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir
=.
8186 for ac_exec_ext
in '' $ac_executable_extensions; do
8187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8198 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8199 if test -n "$ac_ct_RANLIB"; then
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8201 $as_echo "$ac_ct_RANLIB" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8207 if test "x$ac_ct_RANLIB" = x
; then
8210 case $cross_compiling:$ac_tool_warned in
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned
=yes ;;
8216 RANLIB
=$ac_ct_RANLIB
8219 RANLIB
="$ac_cv_prog_RANLIB"
8225 # Find a good install program. We prefer a C program (faster),
8226 # so one script is as good as another. But avoid the broken or
8227 # incompatible versions:
8228 # SysV /etc/install, /usr/sbin/install
8229 # SunOS /usr/etc/install
8230 # IRIX /sbin/install
8232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8234 # ./install, which can be erroneously created by make from ./install.sh.
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8236 $as_echo_n "checking for a BSD compatible install... " >&6; }
8237 if test -z "$INSTALL"; then
8238 if ${ac_cv_path_install+:} false
; then :
8239 $as_echo_n "(cached) " >&6
8241 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8242 for ac_dir
in $PATH; do
8243 # Account for people who put trailing slashes in PATH elements.
8245 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8247 # OSF1 and SCO ODT 3.0 have their own names for install.
8248 for ac_prog
in ginstall scoinst
install; do
8249 if test -f $ac_dir/$ac_prog; then
8250 if test $ac_prog = install &&
8251 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8252 # AIX install. It has an incompatible calling convention.
8253 # OSF/1 installbsd also uses dspmsg, but is usable.
8256 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8267 if test "${ac_cv_path_install+set}" = set; then
8268 INSTALL
="$ac_cv_path_install"
8270 # As a last resort, use the slow shell script. We don't cache a
8271 # path for INSTALL within a source directory, because that will
8272 # break other packages using the cache if that directory is
8273 # removed, or if the path is relative.
8274 INSTALL
="$ac_install_sh"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8278 $as_echo "$INSTALL" >&6; }
8280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8281 # It thinks the first close brace ends the variable substitution.
8282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8284 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8287 # See if cmp has --ignore-initial.
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8289 $as_echo_n "checking for cmp's capabilities... " >&6; }
8290 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8291 $as_echo_n "(cached) " >&6
8295 gcc_cv_prog_cmp_skip
=slowcompare
8296 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8297 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8300 gcc_cv_prog_cmp_skip
=gnucompare
8303 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8304 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8305 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8308 gcc_cv_prog_cmp_skip
=fastcompare
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8316 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8317 make_compare_target
=$gcc_cv_prog_cmp_skip
8321 # See if we have the mktemp command.
8322 # Extract the first word of "mktemp", so it can be a program name with args.
8323 set dummy mktemp
; ac_word
=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$have_mktemp_command"; then
8330 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir
=.
8337 for ac_exec_ext
in '' $ac_executable_extensions; do
8338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_have_mktemp_command
="yes"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8350 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8351 if test -n "$have_mktemp_command"; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8353 $as_echo "$have_mktemp_command" >&6; }
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }
8361 # See if makeinfo has been installed and is modern enough
8362 # that we can use it.
8364 # Extract the first word of "makeinfo", so it can be a program name with args.
8365 set dummy makeinfo
; ac_word
=$2
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367 $as_echo_n "checking for $ac_word... " >&6; }
8368 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8369 $as_echo_n "(cached) " >&6
8371 if test -n "$MAKEINFO"; then
8372 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir
=.
8379 for ac_exec_ext
in '' $ac_executable_extensions; do
8380 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8381 ac_cv_prog_MAKEINFO
="makeinfo"
8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 MAKEINFO
=$ac_cv_prog_MAKEINFO
8392 if test -n "$MAKEINFO"; then
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8394 $as_echo "$MAKEINFO" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397 $as_echo "no" >&6; }
8401 if test -n "$MAKEINFO"; then
8402 # Found it, now check the version.
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8404 $as_echo_n "checking for modern makeinfo... " >&6; }
8405 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8406 $as_echo_n "(cached) " >&6
8408 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8409 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8411 case $ac_prog_version in
8412 '') gcc_cv_prog_makeinfo_modern
=no
;;
8413 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8414 *) gcc_cv_prog_makeinfo_modern
=no
;;
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8419 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8421 gcc_cv_prog_makeinfo_modern
=no
8423 if test $gcc_cv_prog_makeinfo_modern = no
; then
8424 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8427 if test $gcc_cv_prog_makeinfo_modern = no
; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8429 *** Makeinfo is missing or too old.
8430 *** Info documentation will not be built." >&5
8431 $as_echo "$as_me: WARNING:
8432 *** Makeinfo is missing or too old.
8433 *** Info documentation will not be built." >&2;}
8440 # Is pod2man recent enough to regenerate manpages?
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8442 $as_echo_n "checking for recent Pod::Man... " >&6; }
8443 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445 $as_echo "yes" >&6; }
8446 GENERATED_MANPAGES
=generated-manpages
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449 $as_echo "no" >&6; }
8454 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8459 # Extract the first word of "$ac_prog", so it can be a program name with args.
8460 set dummy
$ac_prog; ac_word
=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_prog_FLEX+:} false
; then :
8464 $as_echo_n "(cached) " >&6
8466 if test -n "$FLEX"; then
8467 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8473 test -z "$as_dir" && as_dir
=.
8474 for ac_exec_ext
in '' $ac_executable_extensions; do
8475 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8476 ac_cv_prog_FLEX
="$ac_prog"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 FLEX
=$ac_cv_prog_FLEX
8487 if test -n "$FLEX"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8489 $as_echo "$FLEX" >&6; }
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8496 test -n "$FLEX" && break
8498 test -n "$FLEX" || FLEX
="$MISSING flex"
8502 for ac_prog
in bison
8504 # Extract the first word of "$ac_prog", so it can be a program name with args.
8505 set dummy
$ac_prog; ac_word
=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if ${ac_cv_prog_BISON+:} false
; then :
8509 $as_echo_n "(cached) " >&6
8511 if test -n "$BISON"; then
8512 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8518 test -z "$as_dir" && as_dir
=.
8519 for ac_exec_ext
in '' $ac_executable_extensions; do
8520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8521 ac_cv_prog_BISON
="$ac_prog"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 BISON
=$ac_cv_prog_BISON
8532 if test -n "$BISON"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8534 $as_echo "$BISON" >&6; }
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8541 test -n "$BISON" && break
8543 test -n "$BISON" || BISON
="$MISSING bison"
8546 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8547 # check for build == host before using them.
8550 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8551 && test -d ..
/binutils
; then
8552 NM
='${objdir}/../binutils/nm-new'
8554 # Extract the first word of "nm", so it can be a program name with args.
8555 set dummy nm
; ac_word
=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if ${ac_cv_prog_NM+:} false
; then :
8559 $as_echo_n "(cached) " >&6
8561 if test -n "$NM"; then
8562 ac_cv_prog_NM
="$NM" # Let the user override the test.
8564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8568 test -z "$as_dir" && as_dir
=.
8569 for ac_exec_ext
in '' $ac_executable_extensions; do
8570 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8583 if test -n "$NM"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8585 $as_echo "$NM" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8595 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8596 && test -d ..
/binutils
; then
8597 AR
='${objdir}/../binutils/ar'
8599 # Extract the first word of "ar", so it can be a program name with args.
8600 set dummy
ar; ac_word
=$2
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 $as_echo_n "checking for $ac_word... " >&6; }
8603 if ${ac_cv_prog_AR+:} false
; then :
8604 $as_echo_n "(cached) " >&6
8606 if test -n "$AR"; then
8607 ac_cv_prog_AR
="$AR" # Let the user override the test.
8609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8613 test -z "$as_dir" && as_dir
=.
8614 for ac_exec_ext
in '' $ac_executable_extensions; do
8615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8628 if test -n "$AR"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8630 $as_echo "$AR" >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8639 # The jit documentation looks better if built with sphinx, but can be
8640 # built with texinfo if sphinx is not available.
8641 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8642 # Extract the first word of "sphinx-build", so it can be a program name with args.
8643 set dummy sphinx-build
; ac_word
=$2
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8647 $as_echo_n "(cached) " >&6
8649 if test -n "$doc_build_sys"; then
8650 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8656 test -z "$as_dir" && as_dir
=.
8657 for ac_exec_ext
in '' $ac_executable_extensions; do
8658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8659 ac_cv_prog_doc_build_sys
="sphinx"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8670 doc_build_sys
=$ac_cv_prog_doc_build_sys
8671 if test -n "$doc_build_sys"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8673 $as_echo "$doc_build_sys" >&6; }
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8681 # --------------------
8682 # Checks for C headers
8683 # --------------------
8685 # Need to reject headers which give warnings, so that the -Werror bootstrap
8686 # works later. *sigh* This needs to come before all header checks.
8688 ac_c_preproc_warn_flag
=yes
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8691 $as_echo_n "checking for ANSI C header files... " >&6; }
8692 if ${ac_cv_header_stdc+:} false
; then :
8693 $as_echo_n "(cached) " >&6
8695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8710 if ac_fn_cxx_try_compile
"$LINENO"; then :
8711 ac_cv_header_stdc
=yes
8713 ac_cv_header_stdc
=no
8715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8717 if test $ac_cv_header_stdc = yes; then
8718 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8725 $EGREP "memchr" >/dev
/null
2>&1; then :
8728 ac_cv_header_stdc
=no
8734 if test $ac_cv_header_stdc = yes; then
8735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8737 /* end confdefs.h. */
8741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8742 $EGREP "free" >/dev
/null
2>&1; then :
8745 ac_cv_header_stdc
=no
8751 if test $ac_cv_header_stdc = yes; then
8752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8753 if test "$cross_compiling" = yes; then :
8756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8760 #if ((' ' & 0x0FF) == 0x020)
8761 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8762 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8764 # define ISLOWER(c) \
8765 (('a' <= (c) && (c) <= 'i') \
8766 || ('j' <= (c) && (c) <= 'r') \
8767 || ('s' <= (c) && (c) <= 'z'))
8768 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8771 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8776 for (i = 0; i < 256; i++)
8777 if (XOR (islower (i), ISLOWER (i))
8778 || toupper (i) != TOUPPER (i))
8783 if ac_fn_cxx_try_run
"$LINENO"; then :
8786 ac_cv_header_stdc
=no
8788 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8789 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8795 $as_echo "$ac_cv_header_stdc" >&6; }
8796 if test $ac_cv_header_stdc = yes; then
8798 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8803 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8804 if ${ac_cv_header_time+:} false
; then :
8805 $as_echo_n "(cached) " >&6
8807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8808 /* end confdefs.h. */
8809 #include <sys/types.h>
8810 #include <sys/time.h>
8816 if ((struct tm *) 0)
8822 if ac_fn_cxx_try_compile
"$LINENO"; then :
8823 ac_cv_header_time
=yes
8825 ac_cv_header_time
=no
8827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8830 $as_echo "$ac_cv_header_time" >&6; }
8831 if test $ac_cv_header_time = yes; then
8833 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8838 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8839 if ${gcc_cv_header_string+:} false
; then :
8840 $as_echo_n "(cached) " >&6
8842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8845 #include <strings.h>
8854 if ac_fn_cxx_try_compile
"$LINENO"; then :
8855 gcc_cv_header_string
=yes
8857 gcc_cv_header_string
=no
8859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8862 $as_echo "$gcc_cv_header_string" >&6; }
8863 if test $gcc_cv_header_string = yes; then
8865 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8870 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8871 if ${ac_cv_header_sys_wait_h+:} false
; then :
8872 $as_echo_n "(cached) " >&6
8874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876 #include <sys/types.h>
8877 #include <sys/wait.h>
8879 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8882 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8890 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8895 if ac_fn_cxx_try_compile
"$LINENO"; then :
8896 ac_cv_header_sys_wait_h
=yes
8898 ac_cv_header_sys_wait_h
=no
8900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8903 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8904 if test $ac_cv_header_sys_wait_h = yes; then
8906 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8911 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8912 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8913 $as_echo_n "(cached) " >&6
8915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8916 /* end confdefs.h. */
8917 #include <sys/types.h>
8918 #include <termios.h>
8924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8925 $EGREP "yes" >/dev
/null
2>&1; then :
8926 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8928 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8934 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8936 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8938 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8939 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8940 $as_echo_n "(cached) " >&6
8942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h. */
8944 #include <sys/types.h>
8945 #include <sys/ioctl.h>
8951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8952 $EGREP "yes" >/dev
/null
2>&1; then :
8953 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8955 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8961 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8963 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8965 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8970 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8971 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8972 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8973 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8975 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8976 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8977 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8978 cat >>confdefs.h
<<_ACEOF
8979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8986 # Check for thread headers.
8987 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8988 if test "x$ac_cv_header_thread_h" = xyes
; then :
8994 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8995 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9002 # These tests can't be done till we know if we have limits.h.
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9004 $as_echo_n "checking for CHAR_BIT... " >&6; }
9005 if ${gcc_cv_decl_char_bit+:} false
; then :
9006 $as_echo_n "(cached) " >&6
9008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9009 /* end confdefs.h. */
9010 #ifdef HAVE_LIMITS_H
9017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9018 $EGREP "found" >/dev
/null
2>&1; then :
9019 gcc_cv_decl_char_bit
=yes
9021 gcc_cv_decl_char_bit
=no
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9028 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9029 if test $gcc_cv_decl_char_bit = no
; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9031 $as_echo_n "checking number of bits in a byte... " >&6; }
9032 if ${gcc_cv_c_nbby+:} false
; then :
9033 $as_echo_n "(cached) " >&6
9037 while test $i -lt 65; do
9038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9045 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9046 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9052 if ac_fn_cxx_try_compile
"$LINENO"; then :
9053 gcc_cv_c_nbby
=$i; break
9055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9058 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9062 $as_echo "$gcc_cv_c_nbby" >&6; }
9063 if test $gcc_cv_c_nbby = failed
; then
9064 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9067 cat >>confdefs.h
<<_ACEOF
9068 #define CHAR_BIT $gcc_cv_c_nbby
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9074 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9075 if ${ac_cv_c_bigendian+:} false
; then :
9076 $as_echo_n "(cached) " >&6
9078 ac_cv_c_bigendian
=unknown
9079 # See if we're dealing with a universal compiler.
9080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082 #ifndef __APPLE_CC__
9083 not a universal capable compiler
9088 if ac_fn_cxx_try_compile
"$LINENO"; then :
9090 # Check for potential -arch flags. It is not universal unless
9091 # there are at least two -arch flags with different values.
9094 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9095 if test -n "$ac_prev"; then
9097 i?
86 | x86_64 | ppc | ppc64
)
9098 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9101 ac_cv_c_bigendian
=universal
9107 elif test "x$ac_word" = "x-arch"; then
9112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9113 if test $ac_cv_c_bigendian = unknown
; then
9114 # See if sys/param.h defines the BYTE_ORDER macro.
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #include <sys/types.h>
9118 #include <sys/param.h>
9123 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9124 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9133 if ac_fn_cxx_try_compile
"$LINENO"; then :
9134 # It does; now see whether it defined to BIG_ENDIAN or not.
9135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137 #include <sys/types.h>
9138 #include <sys/param.h>
9143 #if BYTE_ORDER != BIG_ENDIAN
9151 if ac_fn_cxx_try_compile
"$LINENO"; then :
9152 ac_cv_c_bigendian
=yes
9154 ac_cv_c_bigendian
=no
9156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9160 if test $ac_cv_c_bigendian = unknown
; then
9161 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9169 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9177 if ac_fn_cxx_try_compile
"$LINENO"; then :
9178 # It does; now see whether it defined to _BIG_ENDIAN or not.
9179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9194 if ac_fn_cxx_try_compile
"$LINENO"; then :
9195 ac_cv_c_bigendian
=yes
9197 ac_cv_c_bigendian
=no
9199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9203 if test $ac_cv_c_bigendian = unknown
; then
9204 # Compile a test program.
9205 if test "$cross_compiling" = yes; then :
9206 # Try to guess by grepping values from an object file.
9207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 short int ascii_mm[] =
9210 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9211 short int ascii_ii[] =
9212 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9213 int use_ascii (int i) {
9214 return ascii_mm[i] + ascii_ii[i];
9216 short int ebcdic_ii[] =
9217 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9218 short int ebcdic_mm[] =
9219 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9220 int use_ebcdic (int i) {
9221 return ebcdic_mm[i] + ebcdic_ii[i];
9228 return use_ascii (foo) == use_ebcdic (foo);
9233 if ac_fn_cxx_try_compile
"$LINENO"; then :
9234 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9235 ac_cv_c_bigendian
=yes
9237 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9238 if test "$ac_cv_c_bigendian" = unknown
; then
9239 ac_cv_c_bigendian
=no
9241 # finding both strings is unlikely to happen, but who knows?
9242 ac_cv_c_bigendian
=unknown
9246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 $ac_includes_default
9255 /* Are we little or big endian? From Harbison&Steele. */
9259 char c[sizeof (long int)];
9262 return u.c[sizeof (long int) - 1] == 1;
9268 if ac_fn_cxx_try_run
"$LINENO"; then :
9269 ac_cv_c_bigendian
=no
9271 ac_cv_c_bigendian
=yes
9273 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9274 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9280 $as_echo "$ac_cv_c_bigendian" >&6; }
9281 case $ac_cv_c_bigendian in #(
9283 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9289 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9293 as_fn_error $?
"unknown endianness
9294 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9298 # ----------------------
9299 # Checks for C++ headers
9300 # ----------------------
9303 ac_cpp
='$CXXCPP $CPPFLAGS'
9304 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9305 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9306 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9308 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9309 if test -z "$CXXCPP"; then
9310 if ${ac_cv_prog_CXXCPP+:} false
; then :
9311 $as_echo_n "(cached) " >&6
9313 # Double quotes because CXXCPP needs to be expanded
9314 for CXXCPP
in "$CXX -E" "/lib/cpp"
9317 for ac_cxx_preproc_warn_flag
in '' yes
9319 # Use a header file that comes with gcc, so configuring glibc
9320 # with a fresh cross-compiler works.
9321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9322 # <limits.h> exists even on freestanding compilers.
9323 # On the NeXT, cc -E runs the code through the compiler's parser,
9324 # not just through cpp. "Syntax error" is here to catch this case.
9325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9328 # include <limits.h>
9330 # include <assert.h>
9334 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9337 # Broken: fails on valid input.
9340 rm -f conftest.err conftest.i conftest.
$ac_ext
9342 # OK, works on sane cases. Now check whether nonexistent headers
9343 # can be detected and how.
9344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 #include <ac_nonexistent.h>
9348 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9349 # Broken: success on invalid input.
9352 # Passes both tests.
9356 rm -f conftest.err conftest.i conftest.
$ac_ext
9359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9360 rm -f conftest.i conftest.err conftest.
$ac_ext
9361 if $ac_preproc_ok; then :
9366 ac_cv_prog_CXXCPP
=$CXXCPP
9369 CXXCPP
=$ac_cv_prog_CXXCPP
9371 ac_cv_prog_CXXCPP
=$CXXCPP
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9374 $as_echo "$CXXCPP" >&6; }
9376 for ac_cxx_preproc_warn_flag
in '' yes
9378 # Use a header file that comes with gcc, so configuring glibc
9379 # with a fresh cross-compiler works.
9380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9381 # <limits.h> exists even on freestanding compilers.
9382 # On the NeXT, cc -E runs the code through the compiler's parser,
9383 # not just through cpp. "Syntax error" is here to catch this case.
9384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9387 # include <limits.h>
9389 # include <assert.h>
9393 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9396 # Broken: fails on valid input.
9399 rm -f conftest.err conftest.i conftest.
$ac_ext
9401 # OK, works on sane cases. Now check whether nonexistent headers
9402 # can be detected and how.
9403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 #include <ac_nonexistent.h>
9407 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9408 # Broken: success on invalid input.
9411 # Passes both tests.
9415 rm -f conftest.err conftest.i conftest.
$ac_ext
9418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9419 rm -f conftest.i conftest.err conftest.
$ac_ext
9420 if $ac_preproc_ok; then :
9423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9426 See \`config.log' for more details" >&5
9427 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9428 See \`config.log' for more details" >&2;}; }
9432 ac_cpp
='$CXXCPP $CPPFLAGS'
9433 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9434 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9435 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9438 for ac_header
in unordered_map
9440 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9441 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9442 cat >>confdefs.h
<<_ACEOF
9443 #define HAVE_UNORDERED_MAP 1
9449 for ac_header
in tr1/unordered_map
9451 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9452 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9453 cat >>confdefs.h
<<_ACEOF
9454 #define HAVE_TR1_UNORDERED_MAP 1
9460 for ac_header
in ext
/hash_map
9462 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9463 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9464 cat >>confdefs.h
<<_ACEOF
9465 #define HAVE_EXT_HASH_MAP 1
9473 # Dependency checking.
9476 rm -rf .tst
2>/dev
/null
9477 mkdir .tst
2>/dev
/null
9478 if test -d .tst
; then
9483 rmdir .tst
2>/dev
/null
9485 DEPDIR
="${am__leading_dot}deps"
9487 ac_config_commands
="$ac_config_commands depdir"
9490 ac_config_commands
="$ac_config_commands gccdepdir"
9493 depcc
="$CXX" am_compiler_list
=
9495 am_depcomp
=$ac_aux_dir/depcomp
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9497 $as_echo_n "checking dependency style of $depcc... " >&6; }
9498 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9499 $as_echo_n "(cached) " >&6
9501 if test -f "$am_depcomp"; then
9502 # We make a subdir and do the tests there. Otherwise we can end up
9503 # making bogus files that we don't know about and never remove. For
9504 # instance it was reported that on HP-UX the gcc test will end up
9505 # making a dummy file named `D' -- because `-MD' means `put the output
9508 # Copy depcomp to subdir because otherwise we won't find it if we're
9509 # using a relative directory.
9510 cp "$am_depcomp" conftest.dir
9512 # We will build objects and dependencies in a subdirectory because
9513 # it helps to detect inapplicable dependency modes. For instance
9514 # both Tru64's cc and ICC support -MD to output dependencies as a
9515 # side effect of compilation, but ICC will put the dependencies in
9516 # the current directory while Tru64 will put them in the object
9520 am_cv_CXX_dependencies_compiler_type
=none
9521 if test "$am_compiler_list" = ""; then
9522 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9524 for depmode
in $am_compiler_list; do
9525 if test $depmode = none
; then break; fi
9527 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9528 # Setup a source with many dependencies, because some compilers
9529 # like to wrap large dependency lists on column 80 (with \), and
9530 # we should not choose a depcomp mode which is confused by this.
9532 # We need to recreate these files for each test, as the compiler may
9533 # overwrite some of them when testing with obscure command lines.
9534 # This happens at least with the AIX C compiler.
9536 for i
in 1 2 3 4 5 6; do
9537 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9539 # Solaris 8's {/usr,}/bin/sh.
9540 touch sub
/conftst
$i.h
9542 echo "include sub/conftest.Po" > confmf
9544 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9545 # mode. It turns out that the SunPro C++ compiler does not properly
9546 # handle `-M -o', and we need to detect this.
9547 depcmd
="depmode=$depmode \
9548 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9549 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9550 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9551 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9552 if env
$depcmd > conftest.err
2>&1 &&
9553 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9554 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9555 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9556 # icc doesn't choke on unknown options, it will just issue warnings
9557 # or remarks (even with -Werror). So we grep stderr for any message
9558 # that says an option was ignored or not supported.
9559 # When given -MP, icc 7.0 and 7.1 complain thusly:
9560 # icc: Command line warning: ignoring option '-M'; no argument required
9561 # The diagnosis changed in icc 8.0:
9562 # icc: Command line remark: option '-MP' not supported
9563 if (grep 'ignoring option' conftest.err ||
9564 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9565 am_cv_CXX_dependencies_compiler_type
=$depmode
9566 $as_echo "$as_me:$LINENO: success" >&5
9570 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9571 sed -e 's/^/| /' < conftest.err
>&5
9577 am_cv_CXX_dependencies_compiler_type
=none
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9582 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9583 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9584 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9585 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9595 # These libraries may be used by collect2.
9596 # We may need a special search path to get them linked.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9598 $as_echo_n "checking for collect2 libraries... " >&6; }
9599 if ${gcc_cv_collect2_libs+:} false
; then :
9600 $as_echo_n "(cached) " >&6
9603 for libs
in '' -lld -lmld \
9604 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9605 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9609 /* end confdefs.h. */
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9626 if ac_fn_cxx_try_link
"$LINENO"; then :
9627 gcc_cv_collect2_libs
="$libs"; break
9629 rm -f core conftest.err conftest.
$ac_objext \
9630 conftest
$ac_exeext conftest.
$ac_ext
9633 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9636 $as_echo "$gcc_cv_collect2_libs" >&6; }
9637 case $gcc_cv_collect2_libs in
9639 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9643 # When building Ada code on Alpha, we need exc_resume which is usually in
9644 # -lexc. So test for it.
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9648 $as_echo_n "checking for library containing exc_resume... " >&6; }
9649 if ${ac_cv_search_exc_resume+:} false
; then :
9650 $as_echo_n "(cached) " >&6
9652 ac_func_search_save_LIBS
=$LIBS
9653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9656 /* Override any GCC internal prototype to avoid an error.
9657 Use char because int might match the return type of a GCC
9658 builtin and then its argument prototype would still apply. */
9666 return exc_resume ();
9671 for ac_lib
in '' exc
; do
9672 if test -z "$ac_lib"; then
9673 ac_res
="none required"
9676 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9678 if ac_fn_cxx_try_link
"$LINENO"; then :
9679 ac_cv_search_exc_resume
=$ac_res
9681 rm -f core conftest.err conftest.
$ac_objext \
9683 if ${ac_cv_search_exc_resume+:} false
; then :
9687 if ${ac_cv_search_exc_resume+:} false
; then :
9690 ac_cv_search_exc_resume
=no
9693 LIBS
=$ac_func_search_save_LIBS
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9696 $as_echo "$ac_cv_search_exc_resume" >&6; }
9697 ac_res
=$ac_cv_search_exc_resume
9698 if test "$ac_res" != no
; then :
9699 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9707 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9711 $as_echo_n "checking for library containing kstat_open... " >&6; }
9712 if ${ac_cv_search_kstat_open+:} false
; then :
9713 $as_echo_n "(cached) " >&6
9715 ac_func_search_save_LIBS
=$LIBS
9716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9719 /* Override any GCC internal prototype to avoid an error.
9720 Use char because int might match the return type of a GCC
9721 builtin and then its argument prototype would still apply. */
9729 return kstat_open ();
9734 for ac_lib
in '' kstat
; do
9735 if test -z "$ac_lib"; then
9736 ac_res
="none required"
9739 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9741 if ac_fn_cxx_try_link
"$LINENO"; then :
9742 ac_cv_search_kstat_open
=$ac_res
9744 rm -f core conftest.err conftest.
$ac_objext \
9746 if ${ac_cv_search_kstat_open+:} false
; then :
9750 if ${ac_cv_search_kstat_open+:} false
; then :
9753 ac_cv_search_kstat_open
=no
9756 LIBS
=$ac_func_search_save_LIBS
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9759 $as_echo "$ac_cv_search_kstat_open" >&6; }
9760 ac_res
=$ac_cv_search_kstat_open
9761 if test "$ac_res" != no
; then :
9762 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9766 EXTRA_GCC_LIBS
="$LIBS"
9770 # Some systems put ldexp and frexp in libm instead of libc; assume
9771 # they're both in the same place. jcf-dump needs them.
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9775 $as_echo_n "checking for library containing ldexp... " >&6; }
9776 if ${ac_cv_search_ldexp+:} false
; then :
9777 $as_echo_n "(cached) " >&6
9779 ac_func_search_save_LIBS
=$LIBS
9780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9783 /* Override any GCC internal prototype to avoid an error.
9784 Use char because int might match the return type of a GCC
9785 builtin and then its argument prototype would still apply. */
9798 for ac_lib
in '' m
; do
9799 if test -z "$ac_lib"; then
9800 ac_res
="none required"
9803 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9805 if ac_fn_cxx_try_link
"$LINENO"; then :
9806 ac_cv_search_ldexp
=$ac_res
9808 rm -f core conftest.err conftest.
$ac_objext \
9810 if ${ac_cv_search_ldexp+:} false
; then :
9814 if ${ac_cv_search_ldexp+:} false
; then :
9817 ac_cv_search_ldexp
=no
9820 LIBS
=$ac_func_search_save_LIBS
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9823 $as_echo "$ac_cv_search_ldexp" >&6; }
9824 ac_res
=$ac_cv_search_ldexp
9825 if test "$ac_res" != no
; then :
9826 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9834 # Some systems need dlopen
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9838 $as_echo_n "checking for library containing dlopen... " >&6; }
9839 if ${ac_cv_search_dlopen+:} false
; then :
9840 $as_echo_n "(cached) " >&6
9842 ac_func_search_save_LIBS
=$LIBS
9843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9846 /* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
9861 for ac_lib
in '' dl
; do
9862 if test -z "$ac_lib"; then
9863 ac_res
="none required"
9866 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9868 if ac_fn_cxx_try_link
"$LINENO"; then :
9869 ac_cv_search_dlopen
=$ac_res
9871 rm -f core conftest.err conftest.
$ac_objext \
9873 if ${ac_cv_search_dlopen+:} false
; then :
9877 if ${ac_cv_search_dlopen+:} false
; then :
9880 ac_cv_search_dlopen
=no
9883 LIBS
=$ac_func_search_save_LIBS
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9886 $as_echo "$ac_cv_search_dlopen" >&6; }
9887 ac_res
=$ac_cv_search_dlopen
9888 if test "$ac_res" != no
; then :
9889 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9897 # Use <inttypes.h> only if it exists,
9898 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9901 $as_echo_n "checking for inttypes.h... " >&6; }
9902 if ${gcc_cv_header_inttypes_h+:} false
; then :
9903 $as_echo_n "(cached) " >&6
9905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9907 #define __STDC_FORMAT_MACROS
9908 #include <sys/types.h>
9909 #include <inttypes.h>
9921 if ac_fn_cxx_try_compile
"$LINENO"; then :
9922 gcc_cv_header_inttypes_h
=yes
9924 gcc_cv_header_inttypes_h
=no
9926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9930 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9931 if test $gcc_cv_header_inttypes_h = yes; then
9933 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9937 # Look for the ZSTD package.
9945 # Check whether --with-zstd was given.
9946 if test "${with_zstd+set}" = set; then :
9951 # Check whether --with-zstd-include was given.
9952 if test "${with_zstd_include+set}" = set; then :
9953 withval
=$with_zstd_include;
9957 # Check whether --with-zstd-lib was given.
9958 if test "${with_zstd_lib+set}" = set; then :
9959 withval
=$with_zstd_lib;
9962 case "x$with_zstd" in
9968 *) ZSTD_INCLUDE
=$with_zstd/include
9969 ZSTD_LIB
=$with_zstd/lib
9972 if test "x$with_zstd_include" != x
; then
9973 ZSTD_INCLUDE
=$with_zstd_include
9975 if test "x$with_zstd_lib" != x
; then
9976 ZSTD_LIB
=$with_zstd_lib
9978 if test "x$ZSTD_INCLUDE" != x \
9979 && test "x$ZSTD_INCLUDE" != xno
; then
9980 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
9982 if test "x$ZSTD_LIB" != x \
9983 && test "x$ZSTD_LIB" != xno
; then
9984 ZSTD_LDFLAGS
=-L$ZSTD_LIB
9987 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
9988 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9991 $as_echo_n "checking for zstd.h... " >&6; }
9992 if ${gcc_cv_header_zstd_h+:} false
; then :
9993 $as_echo_n "(cached) " >&6
9995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
10006 if ac_fn_cxx_try_compile
"$LINENO"; then :
10007 gcc_cv_header_zstd_h
=yes
10009 gcc_cv_header_zstd_h
=no
10011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10015 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10016 if test $gcc_cv_header_zstd_h = yes; then
10018 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10022 # LTO can use zstd compression algorithm
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10026 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10027 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10028 $as_echo_n "(cached) " >&6
10030 ac_func_search_save_LIBS
=$LIBS
10031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10040 char ZSTD_compress ();
10044 return ZSTD_compress ();
10049 for ac_lib
in '' zstd
; do
10050 if test -z "$ac_lib"; then
10051 ac_res
="none required"
10054 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10056 if ac_fn_cxx_try_link
"$LINENO"; then :
10057 ac_cv_search_ZSTD_compress
=$ac_res
10059 rm -f core conftest.err conftest.
$ac_objext \
10061 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10065 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10068 ac_cv_search_ZSTD_compress
=no
10070 rm conftest.
$ac_ext
10071 LIBS
=$ac_func_search_save_LIBS
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10074 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10075 ac_res
=$ac_cv_search_ZSTD_compress
10076 if test "$ac_res" != no
; then :
10077 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10087 for ac_func
in times clock kill getrlimit setrlimit atoq \
10088 popen sysconf strsignal getrusage nl_langinfo \
10089 gettimeofday mbstowcs wcswidth mmap setlocale \
10090 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
10092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10093 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10094 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10095 cat >>confdefs.h
<<_ACEOF
10096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10103 if test x
$ac_cv_func_mbstowcs = xyes
; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10105 $as_echo_n "checking whether mbstowcs works... " >&6; }
10106 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10107 $as_echo_n "(cached) " >&6
10109 if test "$cross_compiling" = yes; then :
10110 gcc_cv_func_mbstowcs_works
=yes
10112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 #include <stdlib.h>
10117 mbstowcs(0, "", 0);
10121 if ac_fn_cxx_try_run
"$LINENO"; then :
10122 gcc_cv_func_mbstowcs_works
=yes
10124 gcc_cv_func_mbstowcs_works
=no
10126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10132 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10133 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10135 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10140 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10141 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10145 cat >>confdefs.h
<<_ACEOF
10146 #define ssize_t int
10151 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10152 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10156 cat >>confdefs.h
<<_ACEOF
10157 #define caddr_t char *
10164 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10165 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10166 gcc_header_sys_mman_h
=yes
10168 gcc_header_sys_mman_h
=no
10171 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10172 if test "x$ac_cv_func_mmap" = xyes
; then :
10178 if test "$gcc_header_sys_mman_h" != yes \
10179 ||
test "$gcc_func_mmap" != yes; then
10180 gcc_cv_func_mmap_file
=no
10181 gcc_cv_func_mmap_dev_zero
=no
10182 gcc_cv_func_mmap_anon
=no
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10185 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10186 if ${gcc_cv_func_mmap_file+:} false
; then :
10187 $as_echo_n "(cached) " >&6
10189 # Add a system to this blacklist if
10190 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10191 # memory area containing the same data that you'd get if you applied
10192 # read() to the same fd. The only system known to have a problem here
10193 # is VMS, where text files have record structure.
10196 gcc_cv_func_mmap_file
=no
;;
10198 gcc_cv_func_mmap_file
=yes;;
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10202 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10204 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10205 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10206 $as_echo_n "(cached) " >&6
10208 # Add a system to this blacklist if it has mmap() but /dev/zero
10209 # does not exist, or if mmapping /dev/zero does not give anonymous
10210 # zeroed pages with both the following properties:
10211 # 1. If you map N consecutive pages in with one call, and then
10212 # unmap any subset of those pages, the pages that were not
10213 # explicitly unmapped remain accessible.
10214 # 2. If you map two adjacent blocks of memory and then unmap them
10215 # both at once, they must both go away.
10216 # Systems known to be in this category are Windows (all variants),
10219 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10220 gcc_cv_func_mmap_dev_zero
=no
;;
10222 gcc_cv_func_mmap_dev_zero
=yes;;
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10226 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10228 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10230 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10231 if ${gcc_cv_decl_map_anon+:} false
; then :
10232 $as_echo_n "(cached) " >&6
10234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10235 /* end confdefs.h. */
10236 #include <sys/types.h>
10237 #include <sys/mman.h>
10238 #include <unistd.h>
10240 #ifndef MAP_ANONYMOUS
10241 #define MAP_ANONYMOUS MAP_ANON
10247 int n = MAP_ANONYMOUS;
10252 if ac_fn_cxx_try_compile
"$LINENO"; then :
10253 gcc_cv_decl_map_anon
=yes
10255 gcc_cv_decl_map_anon
=no
10257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10260 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10262 if test $gcc_cv_decl_map_anon = no
; then
10263 gcc_cv_func_mmap_anon
=no
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10266 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10267 if ${gcc_cv_func_mmap_anon+:} false
; then :
10268 $as_echo_n "(cached) " >&6
10270 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10271 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10272 # doesn't give anonymous zeroed pages with the same properties listed
10273 # above for use of /dev/zero.
10274 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10276 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10277 gcc_cv_func_mmap_anon
=no
;;
10279 gcc_cv_func_mmap_anon
=yes;;
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10283 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10287 if test $gcc_cv_func_mmap_file = yes; then
10289 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10292 if test $gcc_cv_func_mmap_dev_zero = yes; then
10294 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10297 if test $gcc_cv_func_mmap_anon = yes; then
10299 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10306 # Under VMS, vfork works very differently than on Unix. The standard test
10307 # won't work, and it isn't easily adaptable. It makes more sense to
10309 ac_cv_func_vfork_works
=yes
10312 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10313 if test "x$ac_cv_type_pid_t" = xyes
; then :
10317 cat >>confdefs.h
<<_ACEOF
10323 for ac_header
in vfork.h
10325 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10326 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10327 cat >>confdefs.h
<<_ACEOF
10328 #define HAVE_VFORK_H 1
10334 for ac_func
in fork vfork
10336 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10337 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10338 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10339 cat >>confdefs.h
<<_ACEOF
10340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10346 if test "x$ac_cv_func_fork" = xyes
; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10348 $as_echo_n "checking for working fork... " >&6; }
10349 if ${ac_cv_func_fork_works+:} false
; then :
10350 $as_echo_n "(cached) " >&6
10352 if test "$cross_compiling" = yes; then :
10353 ac_cv_func_fork_works
=cross
10355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 $ac_includes_default
10362 /* By Ruediger Kuhlmann. */
10363 return fork () < 0;
10369 if ac_fn_cxx_try_run
"$LINENO"; then :
10370 ac_cv_func_fork_works
=yes
10372 ac_cv_func_fork_works
=no
10374 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10375 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10380 $as_echo "$ac_cv_func_fork_works" >&6; }
10383 ac_cv_func_fork_works
=$ac_cv_func_fork
10385 if test "x$ac_cv_func_fork_works" = xcross
; then
10387 *-*-amigaos* |
*-*-msdosdjgpp*)
10388 # Override, as these systems have only a dummy fork() stub
10389 ac_cv_func_fork_works
=no
10392 ac_cv_func_fork_works
=yes
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10396 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10398 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10399 if test "x$ac_cv_func_vfork" = xyes
; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10401 $as_echo_n "checking for working vfork... " >&6; }
10402 if ${ac_cv_func_vfork_works+:} false
; then :
10403 $as_echo_n "(cached) " >&6
10405 if test "$cross_compiling" = yes; then :
10406 ac_cv_func_vfork_works
=cross
10408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 /* Thanks to Paul Eggert for this test. */
10411 $ac_includes_default
10412 #include <sys/wait.h>
10413 #ifdef HAVE_VFORK_H
10414 # include <vfork.h>
10416 /* On some sparc systems, changes by the child to local and incoming
10417 argument registers are propagated back to the parent. The compiler
10418 is told about this with #include <vfork.h>, but some compilers
10419 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10420 static variable whose address is put into a register that is
10421 clobbered by the vfork. */
10424 sparc_address_test (int arg)
10426 sparc_address_test (arg) int arg;
10429 static pid_t child;
10447 pid_t parent = getpid ();
10450 sparc_address_test (0);
10455 /* Here is another test for sparc vfork register problems. This
10456 test uses lots of local variables, at least as many local
10457 variables as main has allocated so far including compiler
10458 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10459 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10460 reuse the register of parent for one of the local variables,
10461 since it will think that parent can't possibly be used any more
10462 in this routine. Assigning to the local variable will thus
10463 munge parent in the parent process. */
10465 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10466 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10467 /* Convince the compiler that p..p7 are live; otherwise, it might
10468 use the same hardware register for all 8 local variables. */
10469 if (p != p1 || p != p2 || p != p3 || p != p4
10470 || p != p5 || p != p6 || p != p7)
10473 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10474 from child file descriptors. If the child closes a descriptor
10475 before it execs or exits, this munges the parent's descriptor
10476 as well. Test for this by closing stdout in the child. */
10477 _exit(close(fileno(stdout)) != 0);
10482 while (wait(&status) != child)
10485 /* Was there some problem with vforking? */
10488 /* Did the child fail? (This shouldn't happen.) */
10491 /* Did the vfork/compiler bug occur? */
10492 || parent != getpid()
10494 /* Did the file descriptor bug occur? */
10495 || fstat(fileno(stdout), &st) != 0
10500 if ac_fn_cxx_try_run
"$LINENO"; then :
10501 ac_cv_func_vfork_works
=yes
10503 ac_cv_func_vfork_works
=no
10505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10511 $as_echo "$ac_cv_func_vfork_works" >&6; }
10514 if test "x$ac_cv_func_fork_works" = xcross
; then
10515 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10517 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10520 if test "x$ac_cv_func_vfork_works" = xyes
; then
10522 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10526 $as_echo "#define vfork fork" >>confdefs.h
10529 if test "x$ac_cv_func_fork_works" = xyes
; then
10531 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10537 if test "X$prefix" = "XNONE"; then
10538 acl_final_prefix
="$ac_default_prefix"
10540 acl_final_prefix
="$prefix"
10542 if test "X$exec_prefix" = "XNONE"; then
10543 acl_final_exec_prefix
='${prefix}'
10545 acl_final_exec_prefix
="$exec_prefix"
10547 acl_save_prefix
="$prefix"
10548 prefix
="$acl_final_prefix"
10549 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10550 prefix
="$acl_save_prefix"
10553 # Check whether --with-gnu-ld was given.
10554 if test "${with_gnu_ld+set}" = set; then :
10555 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10560 # Prepare PATH_SEPARATOR.
10561 # The user is always right.
10562 if test "${PATH_SEPARATOR+set}" != set; then
10563 echo "#! /bin/sh" >conf$$.sh
10564 echo "exit 0" >>conf$$.sh
10566 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10574 if test "$GCC" = yes; then
10575 # Check if gcc -print-prog-name=ld gives a path.
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10577 $as_echo_n "checking for ld used by GCC... " >&6; }
10580 # gcc leaves a trailing carriage return which upsets mingw
10581 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10583 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10586 # Accept absolute paths.
10587 [\\/]* |
[A-Za-z
]:[\\/]*)
10588 re_direlt
='/[^/][^/]*/\.\./'
10589 # Canonicalize the path of ld
10590 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10591 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10592 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10594 test -z "$LD" && LD
="$ac_prog"
10597 # If it fails, then pretend we aren't using GCC.
10601 # If it is relative, then search for the first ld in PATH.
10602 with_gnu_ld
=unknown
10605 elif test "$with_gnu_ld" = yes; then
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10607 $as_echo_n "checking for GNU ld... " >&6; }
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10610 $as_echo_n "checking for non-GNU ld... " >&6; }
10612 if ${acl_cv_path_LD+:} false
; then :
10613 $as_echo_n "(cached) " >&6
10615 if test -z "$LD"; then
10616 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10617 for ac_dir
in $PATH; do
10618 test -z "$ac_dir" && ac_dir
=.
10619 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10620 acl_cv_path_LD
="$ac_dir/$ac_prog"
10621 # Check to see if the program is GNU ld. I'd rather use --version,
10622 # but apparently some GNU ld's only accept -v.
10623 # Break only if it was the GNU/non-GNU ld that we prefer.
10624 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10625 test "$with_gnu_ld" != no
&& break
10627 test "$with_gnu_ld" != yes && break
10633 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10637 LD
="$acl_cv_path_LD"
10638 if test -n "$LD"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10640 $as_echo "$LD" >&6; }
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643 $as_echo "no" >&6; }
10645 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10648 if ${acl_cv_prog_gnu_ld+:} false
; then :
10649 $as_echo_n "(cached) " >&6
10651 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10652 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10653 acl_cv_prog_gnu_ld
=yes
10655 acl_cv_prog_gnu_ld
=no
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10659 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10660 with_gnu_ld
=$acl_cv_prog_gnu_ld
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10665 $as_echo_n "checking for shared library run path origin... " >&6; }
10666 if ${acl_cv_rpath+:} false
; then :
10667 $as_echo_n "(cached) " >&6
10670 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10671 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10673 rm -f .
/conftest.sh
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10678 $as_echo "$acl_cv_rpath" >&6; }
10680 libext
="$acl_cv_libext"
10681 shlibext
="$acl_cv_shlibext"
10682 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10683 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10684 hardcode_direct
="$acl_cv_hardcode_direct"
10685 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10686 # Check whether --enable-rpath was given.
10687 if test "${enable_rpath+set}" = set; then :
10688 enableval
=$enable_rpath; :
10702 acl_save_prefix
="$prefix"
10703 prefix
="$acl_final_prefix"
10704 acl_save_exec_prefix
="$exec_prefix"
10705 exec_prefix
="$acl_final_exec_prefix"
10707 eval additional_includedir
=\"$includedir\"
10708 eval additional_libdir
=\"$libdir\"
10710 exec_prefix
="$acl_save_exec_prefix"
10711 prefix
="$acl_save_prefix"
10714 # Check whether --with-libiconv-prefix was given.
10715 if test "${with_libiconv_prefix+set}" = set; then :
10716 withval
=$with_libiconv_prefix;
10717 if test "X$withval" = "Xno"; then
10720 if test "X$withval" = "X"; then
10722 acl_save_prefix
="$prefix"
10723 prefix
="$acl_final_prefix"
10724 acl_save_exec_prefix
="$exec_prefix"
10725 exec_prefix
="$acl_final_exec_prefix"
10727 eval additional_includedir
=\"$includedir\"
10728 eval additional_libdir
=\"$libdir\"
10730 exec_prefix
="$acl_save_exec_prefix"
10731 prefix
="$acl_save_prefix"
10734 additional_includedir
="$withval/include"
10735 additional_libdir
="$withval/lib"
10742 # Check whether --with-libiconv-type was given.
10743 if test "${with_libiconv_type+set}" = set; then :
10744 withval
=$with_libiconv_type; with_libiconv_type
=$withval
10746 with_libiconv_type
=auto
10749 lib_type
=`eval echo \$with_libiconv_type`
10756 names_already_handled
=
10757 names_next_round
='iconv '
10758 while test -n "$names_next_round"; do
10759 names_this_round
="$names_next_round"
10761 for name
in $names_this_round; do
10763 for n
in $names_already_handled; do
10764 if test "$n" = "$name"; then
10765 already_handled
=yes
10769 if test -z "$already_handled"; then
10770 names_already_handled
="$names_already_handled $name"
10771 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10772 eval value
=\"\
$HAVE_LIB$uppername\"
10773 if test -n "$value"; then
10774 if test "$value" = yes; then
10775 eval value
=\"\
$LIB$uppername\"
10776 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10777 eval value
=\"\
$LTLIB$uppername\"
10778 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10787 if test $use_additional = yes; then
10788 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10789 found_dir
="$additional_libdir"
10790 found_so
="$additional_libdir/lib$name.$shlibext"
10791 if test -f "$additional_libdir/lib$name.la"; then
10792 found_la
="$additional_libdir/lib$name.la"
10794 elif test x
$lib_type != xshared
; then
10795 if test -f "$additional_libdir/lib$name.$libext"; then
10796 found_dir
="$additional_libdir"
10797 found_a
="$additional_libdir/lib$name.$libext"
10798 if test -f "$additional_libdir/lib$name.la"; then
10799 found_la
="$additional_libdir/lib$name.la"
10804 if test "X$found_dir" = "X"; then
10805 for x
in $LDFLAGS $LTLIBICONV; do
10807 acl_save_prefix
="$prefix"
10808 prefix
="$acl_final_prefix"
10809 acl_save_exec_prefix
="$exec_prefix"
10810 exec_prefix
="$acl_final_exec_prefix"
10812 exec_prefix
="$acl_save_exec_prefix"
10813 prefix
="$acl_save_prefix"
10817 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10818 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10820 found_so
="$dir/lib$name.$shlibext"
10821 if test -f "$dir/lib$name.la"; then
10822 found_la
="$dir/lib$name.la"
10824 elif test x
$lib_type != xshared
; then
10825 if test -f "$dir/lib$name.$libext"; then
10827 found_a
="$dir/lib$name.$libext"
10828 if test -f "$dir/lib$name.la"; then
10829 found_la
="$dir/lib$name.la"
10835 if test "X$found_dir" != "X"; then
10840 if test "X$found_dir" != "X"; then
10841 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10842 if test "X$found_so" != "X"; then
10843 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10844 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10847 for x
in $ltrpathdirs; do
10848 if test "X$x" = "X$found_dir"; then
10853 if test -z "$haveit"; then
10854 ltrpathdirs
="$ltrpathdirs $found_dir"
10856 if test "$hardcode_direct" = yes; then
10857 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10859 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10860 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10862 for x
in $rpathdirs; do
10863 if test "X$x" = "X$found_dir"; then
10868 if test -z "$haveit"; then
10869 rpathdirs
="$rpathdirs $found_dir"
10873 for x
in $LDFLAGS $LIBICONV; do
10875 acl_save_prefix
="$prefix"
10876 prefix
="$acl_final_prefix"
10877 acl_save_exec_prefix
="$exec_prefix"
10878 exec_prefix
="$acl_final_exec_prefix"
10880 exec_prefix
="$acl_save_exec_prefix"
10881 prefix
="$acl_save_prefix"
10883 if test "X$x" = "X-L$found_dir"; then
10888 if test -z "$haveit"; then
10889 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10891 if test "$hardcode_minus_L" != no
; then
10892 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10894 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10900 if test "X$found_a" != "X"; then
10901 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10903 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10906 additional_includedir
=
10907 case "$found_dir" in
10909 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10910 additional_includedir
="$basedir/include"
10913 if test "X$additional_includedir" != "X"; then
10914 if test "X$additional_includedir" != "X/usr/include"; then
10916 if test "X$additional_includedir" = "X/usr/local/include"; then
10917 if test -n "$GCC"; then
10919 linux
*) haveit
=yes;;
10923 if test -z "$haveit"; then
10924 for x
in $CPPFLAGS $INCICONV; do
10926 acl_save_prefix
="$prefix"
10927 prefix
="$acl_final_prefix"
10928 acl_save_exec_prefix
="$exec_prefix"
10929 exec_prefix
="$acl_final_exec_prefix"
10931 exec_prefix
="$acl_save_exec_prefix"
10932 prefix
="$acl_save_prefix"
10934 if test "X$x" = "X-I$additional_includedir"; then
10939 if test -z "$haveit"; then
10940 if test -d "$additional_includedir"; then
10941 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10947 if test -n "$found_la"; then
10948 save_libdir
="$libdir"
10949 case "$found_la" in
10950 */* |
*\\*) .
"$found_la" ;;
10951 *) .
"./$found_la" ;;
10953 libdir
="$save_libdir"
10954 for dep
in $dependency_libs; do
10957 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10958 if test "X$additional_libdir" != "X/usr/lib"; then
10960 if test "X$additional_libdir" = "X/usr/local/lib"; then
10961 if test -n "$GCC"; then
10963 linux
*) haveit
=yes;;
10967 if test -z "$haveit"; then
10969 for x
in $LDFLAGS $LIBICONV; do
10971 acl_save_prefix
="$prefix"
10972 prefix
="$acl_final_prefix"
10973 acl_save_exec_prefix
="$exec_prefix"
10974 exec_prefix
="$acl_final_exec_prefix"
10976 exec_prefix
="$acl_save_exec_prefix"
10977 prefix
="$acl_save_prefix"
10979 if test "X$x" = "X-L$additional_libdir"; then
10984 if test -z "$haveit"; then
10985 if test -d "$additional_libdir"; then
10986 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10990 for x
in $LDFLAGS $LTLIBICONV; do
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 exec_prefix
="$acl_save_exec_prefix"
10998 prefix
="$acl_save_prefix"
11000 if test "X$x" = "X-L$additional_libdir"; then
11005 if test -z "$haveit"; then
11006 if test -d "$additional_libdir"; then
11007 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11014 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11015 if test "$enable_rpath" != no
; then
11017 for x
in $rpathdirs; do
11018 if test "X$x" = "X$dir"; then
11023 if test -z "$haveit"; then
11024 rpathdirs
="$rpathdirs $dir"
11027 for x
in $ltrpathdirs; do
11028 if test "X$x" = "X$dir"; then
11033 if test -z "$haveit"; then
11034 ltrpathdirs
="$ltrpathdirs $dir"
11039 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11042 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11045 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11046 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11052 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11053 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11054 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11056 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11057 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11064 if test "X$rpathdirs" != "X"; then
11065 if test -n "$hardcode_libdir_separator"; then
11067 for found_dir
in $rpathdirs; do
11068 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11070 acl_save_libdir
="$libdir"
11072 eval flag
=\"$hardcode_libdir_flag_spec\"
11073 libdir
="$acl_save_libdir"
11074 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11076 for found_dir
in $rpathdirs; do
11077 acl_save_libdir
="$libdir"
11078 libdir
="$found_dir"
11079 eval flag
=\"$hardcode_libdir_flag_spec\"
11080 libdir
="$acl_save_libdir"
11081 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11085 if test "X$ltrpathdirs" != "X"; then
11086 for found_dir
in $ltrpathdirs; do
11087 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11098 $as_echo_n "checking for iconv... " >&6; }
11099 if ${am_cv_func_iconv+:} false
; then :
11100 $as_echo_n "(cached) " >&6
11103 am_cv_func_iconv
="no, consider installing GNU libiconv"
11105 am_save_CPPFLAGS
="$CPPFLAGS"
11106 CPPFLAGS
="$CPPFLAGS $INCICONV"
11107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109 #include <stdlib.h>
11114 iconv_t cd = iconv_open("","");
11115 iconv(cd,NULL,NULL,NULL,NULL);
11121 if ac_fn_cxx_try_link
"$LINENO"; then :
11122 am_cv_func_iconv
=yes
11124 rm -f core conftest.err conftest.
$ac_objext \
11125 conftest
$ac_exeext conftest.
$ac_ext
11126 CPPFLAGS
="$am_save_CPPFLAGS"
11128 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11129 for _libs
in .libs _libs
; do
11130 am_save_CPPFLAGS
="$CPPFLAGS"
11131 am_save_LIBS
="$LIBS"
11132 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11133 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11134 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 #include <stdlib.h>
11141 iconv_t cd = iconv_open("","");
11142 iconv(cd,NULL,NULL,NULL,NULL);
11148 if ac_fn_cxx_try_link
"$LINENO"; then :
11149 INCICONV
="-I../libiconv/include"
11150 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11151 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11152 am_cv_lib_iconv
=yes
11153 am_cv_func_iconv
=yes
11155 rm -f core conftest.err conftest.
$ac_objext \
11156 conftest
$ac_exeext conftest.
$ac_ext
11157 CPPFLAGS
="$am_save_CPPFLAGS"
11158 LIBS
="$am_save_LIBS"
11159 if test "$am_cv_func_iconv" = "yes"; then
11165 if test "$am_cv_func_iconv" != yes; then
11166 am_save_CPPFLAGS
="$CPPFLAGS"
11167 am_save_LIBS
="$LIBS"
11168 CPPFLAGS
="$CPPFLAGS $INCICONV"
11169 LIBS
="$LIBS $LIBICONV"
11170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11172 #include <stdlib.h>
11177 iconv_t cd = iconv_open("","");
11178 iconv(cd,NULL,NULL,NULL,NULL);
11184 if ac_fn_cxx_try_link
"$LINENO"; then :
11185 am_cv_lib_iconv
=yes
11186 am_cv_func_iconv
=yes
11188 rm -f core conftest.err conftest.
$ac_objext \
11189 conftest
$ac_exeext conftest.
$ac_ext
11190 CPPFLAGS
="$am_save_CPPFLAGS"
11191 LIBS
="$am_save_LIBS"
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11196 $as_echo "$am_cv_func_iconv" >&6; }
11197 if test "$am_cv_func_iconv" = yes; then
11199 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11202 if test "$am_cv_lib_iconv" = yes; then
11204 for element
in $INCICONV; do
11206 for x
in $CPPFLAGS; do
11208 acl_save_prefix
="$prefix"
11209 prefix
="$acl_final_prefix"
11210 acl_save_exec_prefix
="$exec_prefix"
11211 exec_prefix
="$acl_final_exec_prefix"
11213 exec_prefix
="$acl_save_exec_prefix"
11214 prefix
="$acl_save_prefix"
11216 if test "X$x" = "X$element"; then
11221 if test -z "$haveit"; then
11222 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11227 $as_echo_n "checking how to link with libiconv... " >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11229 $as_echo "$LIBICONV" >&6; }
11237 if test "$am_cv_func_iconv" = yes; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11239 $as_echo_n "checking for iconv declaration... " >&6; }
11240 if ${am_cv_proto_iconv+:} false
; then :
11241 $as_echo_n "(cached) " >&6
11244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 #include <stdlib.h>
11253 #if defined(__STDC__) || defined(__cplusplus)
11254 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11267 if ac_fn_cxx_try_compile
"$LINENO"; then :
11268 am_cv_proto_iconv_arg1
=""
11270 am_cv_proto_iconv_arg1
="const"
11272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11273 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);"
11276 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11278 }$am_cv_proto_iconv" >&5
11280 }$am_cv_proto_iconv" >&6; }
11282 cat >>confdefs.h
<<_ACEOF
11283 #define ICONV_CONST $am_cv_proto_iconv_arg1
11289 # Until we have in-tree GNU iconv:
11291 if test -f "$LTLIBICONV"; then
11292 LIBICONV_DEP
=$LTLIBICONV
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11298 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11299 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11300 $as_echo_n "(cached) " >&6
11302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 #include <locale.h>
11313 if ac_fn_cxx_try_link
"$LINENO"; then :
11314 am_cv_val_LC_MESSAGES
=yes
11316 am_cv_val_LC_MESSAGES
=no
11318 rm -f core conftest.err conftest.
$ac_objext \
11319 conftest
$ac_exeext conftest.
$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11322 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11323 if test $am_cv_val_LC_MESSAGES = yes; then
11325 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11332 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11333 if ${am_cv_langinfo_codeset+:} false
; then :
11334 $as_echo_n "(cached) " >&6
11336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 #include <langinfo.h>
11342 char* cs = nl_langinfo(CODESET);
11347 if ac_fn_cxx_try_link
"$LINENO"; then :
11348 am_cv_langinfo_codeset
=yes
11350 am_cv_langinfo_codeset
=no
11352 rm -f core conftest.err conftest.
$ac_objext \
11353 conftest
$ac_exeext conftest.
$ac_ext
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11357 $as_echo "$am_cv_langinfo_codeset" >&6; }
11358 if test $am_cv_langinfo_codeset = yes; then
11360 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11365 # We will need to find libiberty.h and ansidecl.h
11366 saved_CFLAGS
="$CFLAGS"
11367 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11368 saved_CXXFLAGS
="$CXXFLAGS"
11369 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11371 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11372 # normal autoconf function for these. But force definition of
11373 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11374 # basename handling in libiberty.h.
11375 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11376 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11377 #undef HAVE_DECL_BASENAME
11378 #define HAVE_DECL_BASENAME 1
11379 #include \"ansidecl.h\"
11380 #include \"system.h\"
11382 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11388 cat >>confdefs.h
<<_ACEOF
11389 #define HAVE_DECL_BASENAME $ac_have_decl
11391 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11392 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11393 #undef HAVE_DECL_BASENAME
11394 #define HAVE_DECL_BASENAME 1
11395 #include \"ansidecl.h\"
11396 #include \"system.h\"
11398 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11404 cat >>confdefs.h
<<_ACEOF
11405 #define HAVE_DECL_STRSTR $ac_have_decl
11409 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11410 madvise stpcpy strnlen strsignal strverscmp \
11411 strtol strtoul strtoll strtoull setenv unsetenv \
11412 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11413 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
11415 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11417 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11418 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11419 $as_echo_n "(cached) " >&6
11421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11424 #define $ac_tr_decl 1
11426 #include "ansidecl.h"
11427 #include "system.h"
11433 char *(*pfn) = (char *(*)) $ac_func ;
11439 if ac_fn_cxx_try_compile
"$LINENO"; then :
11440 eval "gcc_cv_have_decl_$ac_func=yes"
11442 eval "gcc_cv_have_decl_$ac_func=no"
11444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11447 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11449 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11450 #define $ac_tr_decl 1
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11456 #define $ac_tr_decl 0
11464 for ac_func
in getrlimit setrlimit getrusage
11466 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11468 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11469 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11470 $as_echo_n "(cached) " >&6
11472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11475 #define $ac_tr_decl 1
11477 #include "ansidecl.h"
11478 #include "system.h"
11479 #ifdef HAVE_SYS_RESOURCE_H
11480 #include <sys/resource.h>
11488 char *(*pfn) = (char *(*)) $ac_func ;
11494 if ac_fn_cxx_try_compile
"$LINENO"; then :
11495 eval "gcc_cv_have_decl_$ac_func=yes"
11497 eval "gcc_cv_have_decl_$ac_func=no"
11499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11502 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11504 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11505 #define $ac_tr_decl 1
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11511 #define $ac_tr_decl 0
11519 for ac_func
in mallinfo
11521 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11523 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11524 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11525 $as_echo_n "(cached) " >&6
11527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11530 #define $ac_tr_decl 1
11532 #include "ansidecl.h"
11533 #include "system.h"
11534 #ifdef HAVE_MALLOC_H
11535 #include <malloc.h>
11543 char *(*pfn) = (char *(*)) $ac_func ;
11549 if ac_fn_cxx_try_compile
"$LINENO"; then :
11550 eval "gcc_cv_have_decl_$ac_func=yes"
11552 eval "gcc_cv_have_decl_$ac_func=no"
11554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11557 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11560 #define $ac_tr_decl 1
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11566 #define $ac_tr_decl 0
11574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11577 #include "ansidecl.h"
11578 #include "system.h"
11579 #ifdef HAVE_SYS_RESOURCE_H
11580 #include <sys/resource.h>
11591 if ac_fn_cxx_try_compile
"$LINENO"; then :
11595 $as_echo "#define rlim_t long" >>confdefs.h
11598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11600 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11601 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11602 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11603 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11604 for ac_func
in ldgetname
11606 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11608 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11609 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11610 $as_echo_n "(cached) " >&6
11612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h. */
11615 #define $ac_tr_decl 1
11617 #include "ansidecl.h"
11618 #include "system.h"
11619 #ifdef HAVE_LDFCN_H
11630 char *(*pfn) = (char *(*)) $ac_func ;
11636 if ac_fn_cxx_try_compile
"$LINENO"; then :
11637 eval "gcc_cv_have_decl_$ac_func=yes"
11639 eval "gcc_cv_have_decl_$ac_func=no"
11641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11644 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11646 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11647 #define $ac_tr_decl 1
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11653 #define $ac_tr_decl 0
11661 for ac_func
in times
11663 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11665 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11666 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11667 $as_echo_n "(cached) " >&6
11669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11670 /* end confdefs.h. */
11672 #define $ac_tr_decl 1
11674 #include "ansidecl.h"
11675 #include "system.h"
11676 #ifdef HAVE_SYS_TIMES_H
11677 #include <sys/times.h>
11685 char *(*pfn) = (char *(*)) $ac_func ;
11691 if ac_fn_cxx_try_compile
"$LINENO"; then :
11692 eval "gcc_cv_have_decl_$ac_func=yes"
11694 eval "gcc_cv_have_decl_$ac_func=no"
11696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11699 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11701 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11702 #define $ac_tr_decl 1
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11708 #define $ac_tr_decl 0
11716 for ac_func
in sigaltstack
11718 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11720 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11721 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11722 $as_echo_n "(cached) " >&6
11724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 #define $ac_tr_decl 1
11729 #include "ansidecl.h"
11730 #include "system.h"
11731 #include <signal.h>
11738 char *(*pfn) = (char *(*)) $ac_func ;
11744 if ac_fn_cxx_try_compile
"$LINENO"; then :
11745 eval "gcc_cv_have_decl_$ac_func=yes"
11747 eval "gcc_cv_have_decl_$ac_func=no"
11749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11752 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11755 #define $ac_tr_decl 1
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11761 #define $ac_tr_decl 0
11769 # More time-related stuff.
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11771 $as_echo_n "checking for struct tms... " >&6; }
11772 if ${ac_cv_struct_tms+:} false
; then :
11773 $as_echo_n "(cached) " >&6
11776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11779 #include "ansidecl.h"
11780 #include "system.h"
11781 #ifdef HAVE_SYS_TIMES_H
11782 #include <sys/times.h>
11793 if ac_fn_cxx_try_compile
"$LINENO"; then :
11794 ac_cv_struct_tms
=yes
11796 ac_cv_struct_tms
=no
11798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11801 $as_echo "$ac_cv_struct_tms" >&6; }
11802 if test $ac_cv_struct_tms = yes; then
11804 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11808 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11809 # revisit after autoconf 2.50.
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11811 $as_echo_n "checking for clock_t... " >&6; }
11812 if ${gcc_cv_type_clock_t+:} false
; then :
11813 $as_echo_n "(cached) " >&6
11816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 #include "ansidecl.h"
11820 #include "system.h"
11830 if ac_fn_cxx_try_compile
"$LINENO"; then :
11831 gcc_cv_type_clock_t
=yes
11833 gcc_cv_type_clock_t
=no
11835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11838 $as_echo "$gcc_cv_type_clock_t" >&6; }
11839 if test $gcc_cv_type_clock_t = yes; then
11841 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11845 # Check if F_SETLKW is supported by fcntl.
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11847 $as_echo_n "checking for F_SETLKW... " >&6; }
11848 if ${ac_cv_f_setlkw+:} false
; then :
11849 $as_echo_n "(cached) " >&6
11852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11853 /* end confdefs.h. */
11865 return fcntl (1, F_SETLKW, &fl);
11870 if ac_fn_cxx_try_compile
"$LINENO"; then :
11875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11878 $as_echo "$ac_cv_f_setlkw" >&6; }
11879 if test $ac_cv_f_setlkw = yes; then
11881 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11885 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11886 CFLAGS
="$saved_CFLAGS"
11887 CXXFLAGS
="$saved_CXXFLAGS"
11889 # mkdir takes a single argument on some systems.
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11891 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11892 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11893 $as_echo_n "(cached) " >&6
11895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11898 #include <sys/types.h>
11899 #ifdef HAVE_SYS_STAT_H
11900 # include <sys/stat.h>
11902 #ifdef HAVE_UNISTD_H
11903 # include <unistd.h>
11905 #ifdef HAVE_DIRECT_H
11906 # include <direct.h>
11916 if ac_fn_cxx_try_compile
"$LINENO"; then :
11917 gcc_cv_mkdir_takes_one_arg
=no
11919 gcc_cv_mkdir_takes_one_arg
=yes
11921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11924 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11925 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11927 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11938 # With Setjmp/Longjmp based exception handling.
11939 # Check whether --enable-sjlj-exceptions was given.
11940 if test "${enable_sjlj_exceptions+set}" = set; then :
11941 enableval
=$enable_sjlj_exceptions; case $target in
11943 if test $enableval != yes; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11945 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11950 force_sjlj_exceptions
=yes
11954 force_sjlj_exceptions
=yes
11958 force_sjlj_exceptions
=yes
11962 force_sjlj_exceptions
=no
11967 if test $force_sjlj_exceptions = yes; then
11968 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11970 cat >>confdefs.h
<<_ACEOF
11971 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11976 # --------------------------------------------------------
11977 # Build, host, and target specific configuration fragments
11978 # --------------------------------------------------------
11980 # Collect build-machine-specific information.
11981 .
${srcdir}/config.build ||
exit 1
11983 # Collect host-machine-specific information.
11984 .
${srcdir}/config.
host ||
exit 1
11988 # Collect target-machine-specific information.
11989 .
${srcdir}/config.gcc ||
exit 1
11991 extra_objs
="${host_extra_objs} ${extra_objs}"
11992 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11994 # Default the target-machine variables that were not explicitly set.
11995 if test x
"$tm_file" = x
11996 then tm_file
=$cpu_type/$cpu_type.h
; fi
11998 if test x
"$extra_headers" = x
11999 then extra_headers
=; fi
12001 if test x
$md_file = x
12002 then md_file
=$cpu_type/$cpu_type.md
; fi
12004 if test x
$out_file = x
12005 then out_file
=$cpu_type/$cpu_type.c
; fi
12007 if test x
"$tmake_file" = x
12008 then tmake_file
=$cpu_type/t-
$cpu_type
12011 # Support --enable-initfini-array.
12012 if test x
$enable_initfini_array != xno
; then
12013 tm_file
="${tm_file} initfini-array.h"
12016 if test x
"$dwarf2" = xyes
12017 then tm_file
="$tm_file tm-dwarf2.h"
12020 # Say what files are being used for the output code and MD file.
12021 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12022 echo "Using \`$srcdir/config/$md_file' as machine description file."
12024 # If any of the xm_file variables contain nonexistent files, warn
12025 # about them and drop them.
12028 for x
in $build_xm_file; do
12029 if test -f $srcdir/config
/$x
12031 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12032 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12035 build_xm_file
="$bx"
12038 for x
in $host_xm_file; do
12039 if test -f $srcdir/config
/$x
12041 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12042 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12048 for x
in $xm_file; do
12049 if test -f $srcdir/config
/$x
12051 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12052 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12058 for f
in $tm_file; do
12061 if test $count = ax
; then
12062 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12064 echo "Using the following target machine macro files:"
12065 for f
in $tm_file; do
12066 echo " $srcdir/config/$f"
12070 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12072 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12076 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12078 cat >>confdefs.h
<<_ACEOF
12079 #define HAVE_GNU_LD $gnu_ld_bool
12083 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12085 cat >>confdefs.h
<<_ACEOF
12086 #define HAVE_GNU_AS $gnu_as_bool
12091 for f
in $host_xm_file; do
12094 if test $count = a
; then
12096 elif test $count = ax
; then
12097 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12099 echo "Using the following host machine macro files:"
12100 for f
in $host_xm_file; do
12101 echo " $srcdir/config/$f"
12104 echo "Using ${out_host_hook_obj} for host machine hooks."
12106 if test "$host_xm_file" != "$build_xm_file"; then
12108 for f
in $build_xm_file; do
12111 if test $count = a
; then
12113 elif test $count = ax
; then
12114 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12116 echo "Using the following build machine macro files:"
12117 for f
in $build_xm_file; do
12118 echo " $srcdir/config/$f"
12123 if test -n "$configured_native_system_header_dir"; then
12124 native_system_header_dir
=$configured_native_system_header_dir
12126 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12130 powerpc
*-*-darwin*)
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12132 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12133 if ${gcc_cv_mcontext_underscores+:} false
; then :
12134 $as_echo_n "(cached) " >&6
12136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12137 /* end confdefs.h. */
12139 #include <sys/cdefs.h>
12140 #include <sys/signal.h>
12141 #include <ucontext.h>
12142 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12145 if ac_fn_cxx_try_compile
"$LINENO"; then :
12146 gcc_cv_mcontext_underscores
=no
12148 gcc_cv_mcontext_underscores
=yes
12150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12153 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12154 if test $gcc_cv_mcontext_underscores = yes; then
12156 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12166 # Check if a valid thread package
12167 case ${enable_threads} in
12170 target_thread_file
='single'
12174 target_thread_file
='single'
12176 aix | dce | lynx | mipssde | posix | rtems | \
12177 single | tpf | vxworks | win32
)
12178 target_thread_file
=${enable_threads}
12181 echo "${enable_threads} is an unknown thread package" 1>&2
12186 if test x
${thread_file} = x
; then
12187 # No thread file set by target-specific clauses in config.gcc,
12188 # so use file chosen by default logic above
12189 thread_file
=${target_thread_file}
12197 if test x
$enable___cxa_atexit = xyes || \
12198 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12199 if test x
$host = x
$target; then
12201 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12202 # keyed to flag_use_cxa_atexit
12210 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12211 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12214 echo "__cxa_atexit can't be enabled on this target"
12220 # We can't check for __cxa_atexit when building a cross, so assume
12224 if test x
$use_cxa_atexit = xyes
; then
12226 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12231 # Look for a file containing extra machine modes.
12232 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12233 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12236 cat >>confdefs.h
<<_ACEOF
12237 #define EXTRA_MODES_FILE "config/$extra_modes"
12242 # Convert extra_options into a form suitable for Makefile use.
12245 for f
in $extra_options; do
12246 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12247 all_opt_files
="$all_opt_files $srcdir/config/$f"
12251 # auto-host.h is the file containing items generated by autoconf and is
12252 # the first file included by config.h.
12253 # If host=build, it is correct to have bconfig include auto-host.h
12254 # as well. If host!=build, we are in error and need to do more
12255 # work to find out the build config parameters.
12256 if test x
$host = x
$build
12258 build_auto
=auto-host.h
12259 HAVE_AUTO_BUILD
='# '
12261 # We create a subdir, then run autoconf in the subdir.
12262 # To prevent recursion we set host and build for the new
12263 # invocation of configure to the build for this invocation
12270 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12271 *) realsrcdir
=..
/${srcdir};;
12273 # Clearing GMPINC is necessary to prevent host headers being
12274 # used by the build compiler. Defining GENERATOR_FILE stops
12275 # system.h from including gmp.h.
12276 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12277 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12278 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12279 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12280 ${realsrcdir}/configure \
12281 --enable-languages=${enable_languages-all} \
12282 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12283 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12284 --target=$target_alias --host=$build_alias \
12285 --build=$build_alias ||
exit # retaining $tempdir
12287 # We just finished tests for the build machine, so rename
12288 # the file auto-build.h in the gcc directory.
12289 mv auto-host.h ..
/auto-build.h
12292 build_auto
=auto-build.h
12298 tm_file
="${tm_file} defaults.h"
12299 tm_p_file
="${tm_p_file} tm-preds.h"
12300 tm_d_file
="${tm_d_file} defaults.h"
12301 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12302 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12303 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12304 # put this back in temporarily.
12305 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12311 # Compile in configure arguments.
12312 if test -f configargs.h
; then
12313 # Being re-configured.
12314 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12315 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12316 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12317 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12320 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12323 # Double all backslashes and backslash all quotes to turn
12324 # gcc_config_arguments into a C string.
12325 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12326 $gcc_config_arguments
12328 gcc_config_arguments_str
=`cat conftest.out`
12331 cat > configargs.h
<<EOF
12332 /* Generated automatically. */
12333 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12334 static const char thread_model[] = "$thread_file";
12336 static const struct {
12337 const char *name, *value;
12338 } configure_default_options[] = $configure_default_options;
12341 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12342 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12343 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12344 if test -f $srcdir/REVISION
; then
12345 gcc_REVISION
=`cat $srcdir/REVISION`
12349 cat > plugin-version.h
<<EOF
12350 #include "configargs.h"
12352 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12353 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12354 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12355 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12357 static char basever[] = "$gcc_BASEVER";
12358 static char datestamp[] = "$gcc_DATESTAMP";
12359 static char devphase[] = "$gcc_DEVPHASE";
12360 static char revision[] = "$gcc_REVISION";
12362 /* FIXME plugins: We should make the version information more precise.
12363 One way to do is to add a checksum. */
12365 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12366 devphase, revision,
12367 configuration_arguments};
12370 # Determine what GCC version number to use in filesystem paths.
12372 get_gcc_base_ver
="cat"
12374 # Check whether --with-gcc-major-version-only was given.
12375 if test "${with_gcc_major_version_only+set}" = set; then :
12376 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12377 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12385 # Internationalization
12386 # If we haven't got the data from the intl directory,
12387 # assume NLS is disabled.
12396 if test -f ..
/intl
/config.intl
; then
12397 . ..
/intl
/config.intl
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12400 $as_echo_n "checking whether NLS is requested... " >&6; }
12401 if test x
"$USE_NLS" != xyes
; then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12406 $as_echo "yes" >&6; }
12408 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12412 $as_echo_n "checking for catalogs to be installed... " >&6; }
12413 # Look for .po and .gmo files in the source directory.
12416 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12417 # If there aren't any .gmo files the shell will give us the
12418 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12420 case "$cat" in *\
**)
12423 # The quadruple backslash is collapsed to a double backslash
12424 # by the backticks, then collapsed again by the double quotes,
12425 # leaving us with one backslash in the sed expression (right
12426 # before the dot that mustn't act as a wildcard).
12427 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12428 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12429 # The user is allowed to set LINGUAS to a list of languages to
12430 # install catalogs for. If it's empty that means "all of them."
12431 if test "x$LINGUAS" = x
; then
12432 CATALOGS
="$CATALOGS $cat"
12433 XLINGUAS
="$XLINGUAS $lang"
12435 case "$LINGUAS" in *$lang*)
12436 CATALOGS
="$CATALOGS $cat"
12437 XLINGUAS
="$XLINGUAS $lang"
12442 LINGUAS
="$XLINGUAS"
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12444 $as_echo "$LINGUAS" >&6; }
12457 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12458 # -liconv on the link line twice.
12459 case "$LIBINTL" in *$LIBICONV*)
12463 # Check whether --enable-secureplt was given.
12464 if test "${enable_secureplt+set}" = set; then :
12465 enableval
=$enable_secureplt;
12469 # Check whether --enable-mingw-wildcard was given.
12470 if test "${enable_mingw_wildcard+set}" = set; then :
12471 enableval
=$enable_mingw_wildcard;
12473 enable_mingw_wildcard
=platform
12476 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12478 cat >>confdefs.h
<<_ACEOF
12479 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12484 # Check whether --enable-large-address-aware was given.
12485 if test "${enable_large_address_aware+set}" = set; then :
12486 enableval
=$enable_large_address_aware;
12489 if test x
"$enable_large_address_aware" = xyes
; then :
12491 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12495 # Check whether --enable-leading-mingw64-underscores was given.
12496 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12497 enableval
=$enable_leading_mingw64_underscores;
12500 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12502 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12506 # Check whether --enable-cld was given.
12507 if test "${enable_cld+set}" = set; then :
12508 enableval
=$enable_cld;
12514 # Check whether --enable-frame-pointer was given.
12515 if test "${enable_frame_pointer+set}" = set; then :
12516 enableval
=$enable_frame_pointer;
12520 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12521 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12522 enable_frame_pointer
=no
12525 enable_frame_pointer
=yes
12533 i
[34567]86-*-* | x86_64-
*-*)
12534 if test "x$enable_cld" = xyes
; then
12535 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12537 if test "x$enable_frame_pointer" = xyes
; then
12538 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12543 # Windows32 Registry support for specifying GCC installation paths.
12544 # Check whether --enable-win32-registry was given.
12545 if test "${enable_win32_registry+set}" = set; then :
12546 enableval
=$enable_win32_registry;
12551 win32 | pe | cygwin
* | mingw32
*)
12552 if test "x$enable_win32_registry" != xno
; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12554 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12555 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12556 $as_echo_n "(cached) " >&6
12558 ac_func_search_save_LIBS
=$LIBS
12559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12562 /* Override any GCC internal prototype to avoid an error.
12563 Use char because int might match the return type of a GCC
12564 builtin and then its argument prototype would still apply. */
12568 char RegOpenKeyExA ();
12572 return RegOpenKeyExA ();
12577 for ac_lib
in '' advapi32
; do
12578 if test -z "$ac_lib"; then
12579 ac_res
="none required"
12582 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12584 if ac_fn_cxx_try_link
"$LINENO"; then :
12585 ac_cv_search_RegOpenKeyExA
=$ac_res
12587 rm -f core conftest.err conftest.
$ac_objext \
12589 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12593 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12596 ac_cv_search_RegOpenKeyExA
=no
12598 rm conftest.
$ac_ext
12599 LIBS
=$ac_func_search_save_LIBS
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12602 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12603 ac_res
=$ac_cv_search_RegOpenKeyExA
12604 if test "$ac_res" != no
; then :
12605 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12608 enable_win32_registry
=no
12613 if test "x$enable_win32_registry" != xno
; then
12615 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12618 if test "x$enable_win32_registry" != xyes \
12619 && test "x$enable_win32_registry" != x
; then
12621 cat >>confdefs.h
<<_ACEOF
12622 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12630 # Get an absolute path to the GCC top-level source directory
12631 holddir
=`${PWDCMD-pwd}`
12633 topdir
=`${PWDCMD-pwd}`
12636 # Conditionalize the makefile for this host machine.
12638 for f
in ${host_xmake_file}
12640 if test -f ${srcdir}/config
/$f
12642 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12646 # Conditionalize the makefile for this target machine.
12648 for f
in ${tmake_file}
12650 if test -f ${srcdir}/config
/$f
12652 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12655 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
12657 out_object_file
=`basename $out_file .c`.o
12658 common_out_object_file
=`basename $common_out_file .c`.o
12660 tm_file_list
="options.h"
12661 tm_include_list
="options.h insn-constants.h"
12662 for f
in $tm_file; do
12665 f
=`echo $f | sed 's/^..//'`
12666 tm_file_list
="${tm_file_list} $f"
12667 tm_include_list
="${tm_include_list} $f"
12670 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12671 tm_include_list
="${tm_include_list} $f"
12674 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12675 tm_include_list
="${tm_include_list} config/$f"
12682 for f
in $tm_p_file; do
12685 tm_p_file_list
="${tm_p_file_list} $f"
12686 tm_p_include_list
="${tm_p_include_list} $f"
12689 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12690 tm_p_include_list
="${tm_p_include_list} config/$f"
12695 tm_d_include_list
="options.h insn-constants.h"
12696 for f
in $tm_d_file; do
12699 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12700 tm_d_include_list
="${tm_d_include_list} $f"
12703 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12704 tm_d_include_list
="${tm_d_include_list} config/$f"
12711 for f
in $xm_file; do
12714 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12715 xm_include_list
="${xm_include_list} $f"
12718 xm_file_list
="${xm_file_list} $f"
12719 xm_include_list
="${xm_include_list} $f"
12722 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12723 xm_include_list
="${xm_include_list} config/$f"
12729 host_xm_include_list
=
12730 for f
in $host_xm_file; do
12733 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12734 host_xm_include_list
="${host_xm_include_list} $f"
12737 host_xm_file_list
="${host_xm_file_list} $f"
12738 host_xm_include_list
="${host_xm_include_list} $f"
12741 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12742 host_xm_include_list
="${host_xm_include_list} config/$f"
12747 build_xm_file_list
=
12748 for f
in $build_xm_file; do
12751 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12752 build_xm_include_list
="${build_xm_include_list} $f"
12754 auto-build.h | auto-host.h
)
12755 build_xm_file_list
="${build_xm_file_list} $f"
12756 build_xm_include_list
="${build_xm_include_list} $f"
12759 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12760 build_xm_include_list
="${build_xm_include_list} config/$f"
12765 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12766 # cross-compiler which does not use the native headers and libraries.
12767 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12770 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12771 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12773 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12774 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12775 if test "x$with_build_sysroot" != x
; then
12776 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12778 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12781 if test x
$host != x
$target
12783 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12785 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12786 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12787 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12790 if test "x$with_build_sysroot" != "x"; then
12791 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12792 elif test "x$with_sysroot" = x
; then
12793 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12794 elif test "x$with_sysroot" = xyes
; then
12795 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12797 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12800 target_header_dir
=${native_system_header_dir}
12803 # If this is a cross-compiler that does not
12804 # have its own set of headers then define
12807 # If this is using newlib, without having the headers available now,
12808 # then define inhibit_libc in LIBGCC2_CFLAGS.
12809 # This prevents libgcc2 from containing any code which requires libc
12811 : ${inhibit_libc=false}
12812 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12813 test x
$with_newlib = xyes
; } &&
12814 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12819 # When building gcc with a cross-compiler, we need to adjust things so
12820 # that the generator programs are still built with the native compiler.
12821 # Also, we cannot run fixincludes.
12823 # These are the normal (build=host) settings:
12824 CC_FOR_BUILD
='$(CC)'
12825 CXX_FOR_BUILD
='$(CXX)'
12826 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12827 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12828 BUILD_LDFLAGS
='$(LDFLAGS)'
12829 STMP_FIXINC
=stmp-fixinc
12831 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12832 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12834 # And these apply if build != host, or we are generating coverage data
12835 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12837 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12838 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12839 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12841 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12842 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12843 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12844 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12849 # Expand extra_headers to include complete path.
12850 # This substitutes for lots of t-* files.
12851 extra_headers_list
=
12852 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12853 for file in ${extra_headers} ; do
12854 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12857 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12858 if test x
"$use_gcc_tgmath" = xyes
12859 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12862 # Define collect2 in Makefile.
12863 case $host_can_use_collect2 in
12865 *) collect2
='collect2$(exeext)' ;;
12869 # Add a definition of USE_COLLECT2 if system wants one.
12870 case $use_collect2 in
12871 no
) use_collect2
= ;;
12874 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12875 xm_defines
="${xm_defines} USE_COLLECT2"
12876 case $host_can_use_collect2 in
12878 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12885 cat >>confdefs.h
<<_ACEOF
12886 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12890 # ---------------------------
12891 # Assembler & linker features
12892 # ---------------------------
12894 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12895 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12896 # However when ld-new is first executed from the build tree, libtool will
12897 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12898 # to the build tree. While doing this we need to use the previous-stage
12899 # linker, or we have an infinite loop. The presence of a shell script as
12900 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12901 # the gcc/collect-ld script. So we need to know how libtool works, or
12902 # exec-tool will fail.
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12908 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12913 macro_version
='2.2.7a'
12914 macro_revision
='1.3134'
12928 ltmain
="$ac_aux_dir/ltmain.sh"
12930 # Backslashify metacharacters that are still active within
12931 # double-quoted strings.
12932 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12934 # Same as above, but do not quote variable references.
12935 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12937 # Sed substitution to delay expansion of an escaped shell variable in a
12938 # double_quote_subst'ed string.
12939 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12941 # Sed substitution to delay expansion of an escaped single quote.
12942 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12944 # Sed substitution to avoid accidental globbing in evaled expressions
12945 no_glob_subst
='s/\*/\\\*/g'
12947 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12948 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12949 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12952 $as_echo_n "checking how to print strings... " >&6; }
12953 # Test print first, because it will be a builtin if present.
12954 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12955 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12957 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12960 # Use this function as a fallback that always works.
12961 func_fallback_echo ()
12963 eval 'cat <<_LTECHO_EOF
12967 ECHO='func_fallback_echo
'
12970 # func_echo_all arg...
12971 # Invoke $ECHO with all args, space-separated.
12978 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12979 $as_echo "printf" >&6; } ;;
12980 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12981 $as_echo "print -r" >&6; } ;;
12982 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12983 $as_echo "cat" >&6; } ;;
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13000 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13001 if ${ac_cv_path_SED+:} false; then :
13002 $as_echo_n "(cached) " >&6
13004 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13005 for ac_i in 1 2 3 4 5 6 7; do
13006 ac_script="$ac_script$as_nl$ac_script"
13008 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13009 { ac_script=; unset ac_script;}
13010 if test -z "$SED"; then
13011 ac_path_SED_found=false
13012 # Loop through the user's path and
test for each of PROGNAME-LIST
13013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13014 for as_dir
in $PATH
13017 test -z "$as_dir" && as_dir
=.
13018 for ac_prog
in sed gsed
; do
13019 for ac_exec_ext
in '' $ac_executable_extensions; do
13020 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13021 as_fn_executable_p
"$ac_path_SED" ||
continue
13022 # Check for GNU ac_path_SED and select it if it is found.
13023 # Check for GNU $ac_path_SED
13024 case `"$ac_path_SED" --version 2>&1` in
13026 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13029 $as_echo_n 0123456789 >"conftest.in"
13032 cat "conftest.in" "conftest.in" >"conftest.tmp"
13033 mv "conftest.tmp" "conftest.in"
13034 cp "conftest.in" "conftest.nl"
13035 $as_echo '' >> "conftest.nl"
13036 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13037 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13038 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13039 if test $ac_count -gt ${ac_path_SED_max-0}; then
13040 # Best one so far, save it but keep looking for a better one
13041 ac_cv_path_SED
="$ac_path_SED"
13042 ac_path_SED_max
=$ac_count
13044 # 10*(2^10) chars as input seems more than enough
13045 test $ac_count -gt 10 && break
13047 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13050 $ac_path_SED_found && break 3
13055 if test -z "$ac_cv_path_SED"; then
13056 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13059 ac_cv_path_SED
=$SED
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13064 $as_echo "$ac_cv_path_SED" >&6; }
13065 SED
="$ac_cv_path_SED"
13068 test -z "$SED" && SED
=sed
13069 Xsed
="$SED -e 1s/^X//"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13082 $as_echo_n "checking for fgrep... " >&6; }
13083 if ${ac_cv_path_FGREP+:} false
; then :
13084 $as_echo_n "(cached) " >&6
13086 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13087 then ac_cv_path_FGREP
="$GREP -F"
13089 if test -z "$FGREP"; then
13090 ac_path_FGREP_found
=false
13091 # Loop through the user's path and test for each of PROGNAME-LIST
13092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13093 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13096 test -z "$as_dir" && as_dir
=.
13097 for ac_prog
in fgrep
; do
13098 for ac_exec_ext
in '' $ac_executable_extensions; do
13099 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13100 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13101 # Check for GNU ac_path_FGREP and select it if it is found.
13102 # Check for GNU $ac_path_FGREP
13103 case `"$ac_path_FGREP" --version 2>&1` in
13105 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13108 $as_echo_n 0123456789 >"conftest.in"
13111 cat "conftest.in" "conftest.in" >"conftest.tmp"
13112 mv "conftest.tmp" "conftest.in"
13113 cp "conftest.in" "conftest.nl"
13114 $as_echo 'FGREP' >> "conftest.nl"
13115 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13116 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13117 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13119 # Best one so far, save it but keep looking for a better one
13120 ac_cv_path_FGREP
="$ac_path_FGREP"
13121 ac_path_FGREP_max
=$ac_count
13123 # 10*(2^10) chars as input seems more than enough
13124 test $ac_count -gt 10 && break
13126 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13129 $ac_path_FGREP_found && break 3
13134 if test -z "$ac_cv_path_FGREP"; then
13135 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13138 ac_cv_path_FGREP
=$FGREP
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13144 $as_echo "$ac_cv_path_FGREP" >&6; }
13145 FGREP
="$ac_cv_path_FGREP"
13148 test -z "$GREP" && GREP
=grep
13168 # Check whether --with-gnu-ld was given.
13169 if test "${with_gnu_ld+set}" = set; then :
13170 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13176 if test "$GCC" = yes; then
13177 # Check if gcc -print-prog-name=ld gives a path.
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13179 $as_echo_n "checking for ld used by $CC... " >&6; }
13182 # gcc leaves a trailing carriage return which upsets mingw
13183 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13185 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13188 # Accept absolute paths.
13190 re_direlt
='/[^/][^/]*/\.\./'
13191 # Canonicalize the pathname of ld
13192 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13193 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13194 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13196 test -z "$LD" && LD
="$ac_prog"
13199 # If it fails, then pretend we aren't using GCC.
13203 # If it is relative, then search for the first ld in PATH.
13204 with_gnu_ld
=unknown
13207 elif test "$with_gnu_ld" = yes; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13209 $as_echo_n "checking for GNU ld... " >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13212 $as_echo_n "checking for non-GNU ld... " >&6; }
13214 if ${lt_cv_path_LD+:} false
; then :
13215 $as_echo_n "(cached) " >&6
13217 if test -z "$LD"; then
13218 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13219 for ac_dir
in $PATH; do
13221 test -z "$ac_dir" && ac_dir
=.
13222 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13223 lt_cv_path_LD
="$ac_dir/$ac_prog"
13224 # Check to see if the program is GNU ld. I'd rather use --version,
13225 # but apparently some variants of GNU ld only accept -v.
13226 # Break only if it was the GNU/non-GNU ld that we prefer.
13227 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13228 *GNU
* |
*'with BFD'*)
13229 test "$with_gnu_ld" != no
&& break
13232 test "$with_gnu_ld" != yes && break
13239 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13243 LD
="$lt_cv_path_LD"
13244 if test -n "$LD"; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13246 $as_echo "$LD" >&6; }
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13251 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13253 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13254 if ${lt_cv_prog_gnu_ld+:} false
; then :
13255 $as_echo_n "(cached) " >&6
13257 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13258 case `$LD -v 2>&1 </dev/null` in
13259 *GNU
* |
*'with BFD'*)
13260 lt_cv_prog_gnu_ld
=yes
13263 lt_cv_prog_gnu_ld
=no
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13268 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13269 with_gnu_ld
=$lt_cv_prog_gnu_ld
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13280 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13281 if ${lt_cv_path_NM+:} false
; then :
13282 $as_echo_n "(cached) " >&6
13284 if test -n "$NM"; then
13285 # Let the user override the test.
13286 lt_cv_path_NM
="$NM"
13288 lt_nm_to_check
="${ac_tool_prefix}nm"
13289 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13290 lt_nm_to_check
="$lt_nm_to_check nm"
13292 for lt_tmp_nm
in $lt_nm_to_check; do
13293 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13294 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13296 test -z "$ac_dir" && ac_dir
=.
13297 tmp_nm
="$ac_dir/$lt_tmp_nm"
13298 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13299 # Check to see if the nm accepts a BSD-compat flag.
13300 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13301 # nm: unknown option "B" ignored
13302 # Tru64's nm complains that /dev/null is an invalid object file
13303 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13304 */dev
/null
* |
*'Invalid file or object type'*)
13305 lt_cv_path_NM
="$tmp_nm -B"
13309 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13311 lt_cv_path_NM
="$tmp_nm -p"
13315 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13316 continue # so that we can try to find one that supports BSD flags
13325 : ${lt_cv_path_NM=no}
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13329 $as_echo "$lt_cv_path_NM" >&6; }
13330 if test "$lt_cv_path_NM" != "no"; then
13331 NM
="$lt_cv_path_NM"
13333 # Didn't find any BSD compatible name lister, look for dumpbin.
13334 if test -n "$DUMPBIN"; then :
13335 # Let the user override the test.
13337 if test -n "$ac_tool_prefix"; then
13338 for ac_prog
in dumpbin
"link -dump"
13340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13341 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13343 $as_echo_n "checking for $ac_word... " >&6; }
13344 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13345 $as_echo_n "(cached) " >&6
13347 if test -n "$DUMPBIN"; then
13348 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13351 for as_dir
in $PATH
13354 test -z "$as_dir" && as_dir
=.
13355 for ac_exec_ext
in '' $ac_executable_extensions; do
13356 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13357 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13367 DUMPBIN
=$ac_cv_prog_DUMPBIN
13368 if test -n "$DUMPBIN"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13370 $as_echo "$DUMPBIN" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13377 test -n "$DUMPBIN" && break
13380 if test -z "$DUMPBIN"; then
13381 ac_ct_DUMPBIN
=$DUMPBIN
13382 for ac_prog
in dumpbin
"link -dump"
13384 # Extract the first word of "$ac_prog", so it can be a program name with args.
13385 set dummy
$ac_prog; ac_word
=$2
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13387 $as_echo_n "checking for $ac_word... " >&6; }
13388 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13389 $as_echo_n "(cached) " >&6
13391 if test -n "$ac_ct_DUMPBIN"; then
13392 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13395 for as_dir
in $PATH
13398 test -z "$as_dir" && as_dir
=.
13399 for ac_exec_ext
in '' $ac_executable_extensions; do
13400 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13411 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13412 if test -n "$ac_ct_DUMPBIN"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13414 $as_echo "$ac_ct_DUMPBIN" >&6; }
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13421 test -n "$ac_ct_DUMPBIN" && break
13424 if test "x$ac_ct_DUMPBIN" = x
; then
13427 case $cross_compiling:$ac_tool_warned in
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13431 ac_tool_warned
=yes ;;
13433 DUMPBIN
=$ac_ct_DUMPBIN
13437 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13439 DUMPBIN
="$DUMPBIN -symbols"
13447 if test "$DUMPBIN" != ":"; then
13451 test -z "$NM" && NM
=nm
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13459 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13460 if ${lt_cv_nm_interface+:} false
; then :
13461 $as_echo_n "(cached) " >&6
13463 lt_cv_nm_interface
="BSD nm"
13464 echo "int some_variable = 0;" > conftest.
$ac_ext
13465 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13466 (eval "$ac_compile" 2>conftest.err
)
13467 cat conftest.err
>&5
13468 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13469 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13470 cat conftest.err
>&5
13471 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13472 cat conftest.out
>&5
13473 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13474 lt_cv_nm_interface
="MS dumpbin"
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13479 $as_echo "$lt_cv_nm_interface" >&6; }
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13482 $as_echo_n "checking whether ln -s works... " >&6; }
13484 if test "$LN_S" = "ln -s"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486 $as_echo "yes" >&6; }
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13489 $as_echo "no, using $LN_S" >&6; }
13492 # find the maximum length of command line arguments
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13494 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13495 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13496 $as_echo_n "(cached) " >&6
13503 # On DJGPP, this test can blow up pretty badly due to problems in libc
13504 # (any single argument exceeding 2000 bytes causes a buffer overrun
13505 # during glob expansion). Even if it were fixed, the result of this
13506 # check would be larger than it should be.
13507 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13511 # Under GNU Hurd, this test is not required because there is
13512 # no limit to the length of command line arguments.
13513 # Libtool will interpret -1 as no limit whatsoever
13514 lt_cv_sys_max_cmd_len
=-1;
13517 cygwin
* | mingw
* | cegcc
*)
13518 # On Win9x/ME, this test blows up -- it succeeds, but takes
13519 # about 5 minutes as the teststring grows exponentially.
13520 # Worse, since 9x/ME are not pre-emptively multitasking,
13521 # you end up with a "frozen" computer, even though with patience
13522 # the test eventually succeeds (with a max line length of 256k).
13523 # Instead, let's just punt: use the minimum linelength reported by
13524 # all of the supported platforms: 8192 (on NT/2K/XP).
13525 lt_cv_sys_max_cmd_len
=8192;
13529 # On MiNT this can take a long time and run out of memory.
13530 lt_cv_sys_max_cmd_len
=8192;
13534 # On AmigaOS with pdksh, this test takes hours, literally.
13535 # So we just punt and use a minimum line length of 8192.
13536 lt_cv_sys_max_cmd_len
=8192;
13539 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13540 # This has been around since 386BSD, at least. Likely further.
13541 if test -x /sbin
/sysctl
; then
13542 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13543 elif test -x /usr
/sbin
/sysctl
; then
13544 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13546 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13548 # And add a safety zone
13549 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13550 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13554 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13555 lt_cv_sys_max_cmd_len
=196608
13559 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13560 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13561 # nice to cause kernel panics so lets avoid the loop below.
13562 # First set a reasonable default.
13563 lt_cv_sys_max_cmd_len
=16384
13565 if test -x /sbin
/sysconfig
; then
13566 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13567 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13572 lt_cv_sys_max_cmd_len
=102400
13574 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13575 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13576 if test -n "$kargmax"; then
13577 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13579 lt_cv_sys_max_cmd_len
=32768
13583 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13584 if test -n "$lt_cv_sys_max_cmd_len"; then
13585 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13586 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13588 # Make teststring a little bigger before we do anything with it.
13589 # a 1K string should be a reasonable start.
13590 for i
in 1 2 3 4 5 6 7 8 ; do
13591 teststring
=$teststring$teststring
13593 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13594 # If test is not a shell built-in, we'll probably end up computing a
13595 # maximum length that is only half of the actual maximum length, but
13597 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13598 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13599 test $i != 17 # 1/2 MB should be enough
13602 teststring
=$teststring$teststring
13604 # Only check the string length outside the loop.
13605 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13607 # Add a significant safety factor because C++ compilers can tack on
13608 # massive amounts of additional arguments before passing them to the
13609 # linker. It appears as though 1/2 is a usable value.
13610 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13617 if test -n $lt_cv_sys_max_cmd_len ; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13619 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13622 $as_echo "none" >&6; }
13624 max_cmd_len
=$lt_cv_sys_max_cmd_len
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13636 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13637 # Try some XSI features
13639 ( _lt_dummy
="a/b/c"
13640 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13642 && eval 'test $(( 1 + 1 )) -eq 2 \
13643 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13646 $as_echo "$xsi_shell" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13650 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13652 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13654 && lt_shell_append=yes
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13656 $as_echo "$lt_shell_append" >&6; }
13659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13669 # test EBCDIC or ASCII
13670 case `echo X|tr X '\101'` in
13671 A) # ASCII based system
13672 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13673 lt_SP2NL='tr \040 \012'
13674 lt_NL2SP='tr \015\012 \040\040'
13676 *) # EBCDIC based system
13677 lt_SP2NL='tr \100 \n'
13678 lt_NL2SP='tr \r\n \100\100'
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13691 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13692 if ${lt_cv_ld_reload_flag+:} false; then :
13693 $as_echo_n "(cached
) " >&6
13695 lt_cv_ld_reload_flag='-r'
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13698 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13699 reload_flag=$lt_cv_ld_reload_flag
13700 case $reload_flag in
13702 *) reload_flag=" $reload_flag" ;;
13704 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13707 if test "$GCC" = yes; then
13708 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13710 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13723 if test -n "$ac_tool_prefix"; then
13724 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13725 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13727 $as_echo_n "checking
for $ac_word...
" >&6; }
13728 if ${ac_cv_prog_OBJDUMP+:} false; then :
13729 $as_echo_n "(cached
) " >&6
13731 if test -n "$OBJDUMP"; then
13732 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 for as_dir in $PATH
13738 test -z "$as_dir" && as_dir=.
13739 for ac_exec_ext in '' $ac_executable_extensions; do
13740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13741 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13751 OBJDUMP=$ac_cv_prog_OBJDUMP
13752 if test -n "$OBJDUMP"; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13754 $as_echo "$OBJDUMP" >&6; }
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13757 $as_echo "no
" >&6; }
13762 if test -z "$ac_cv_prog_OBJDUMP"; then
13763 ac_ct_OBJDUMP=$OBJDUMP
13764 # Extract the first word of "objdump
", so it can be a program name with args.
13765 set dummy objdump; ac_word=$2
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13767 $as_echo_n "checking
for $ac_word...
" >&6; }
13768 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13769 $as_echo_n "(cached
) " >&6
13771 if test -n "$ac_ct_OBJDUMP"; then
13772 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13775 for as_dir in $PATH
13778 test -z "$as_dir" && as_dir=.
13779 for ac_exec_ext in '' $ac_executable_extensions; do
13780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13781 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13782 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13791 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13792 if test -n "$ac_ct_OBJDUMP"; then
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13794 $as_echo "$ac_ct_OBJDUMP" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13797 $as_echo "no
" >&6; }
13800 if test "x
$ac_ct_OBJDUMP" = x; then
13803 case $cross_compiling:$ac_tool_warned in
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13806 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13807 ac_tool_warned=yes ;;
13809 OBJDUMP=$ac_ct_OBJDUMP
13812 OBJDUMP="$ac_cv_prog_OBJDUMP"
13815 test -z "$OBJDUMP" && OBJDUMP=objdump
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13826 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13827 if ${lt_cv_deplibs_check_method+:} false; then :
13828 $as_echo_n "(cached
) " >&6
13830 lt_cv_file_magic_cmd='$MAGIC_CMD'
13831 lt_cv_file_magic_test_file=
13832 lt_cv_deplibs_check_method='unknown'
13833 # Need to set the preceding variable on all platforms that support
13834 # interlibrary dependencies.
13835 # 'none' -- dependencies not supported.
13836 # `unknown' -- same as none, but documents that we really don't know.
13837 # 'pass_all' -- all dependencies passed with no checks.
13838 # 'test_compile' -- check by making test program.
13839 # 'file_magic [[regex]]' -- check by looking for files in library path
13840 # which responds to the $file_magic_cmd with a given extended regex.
13841 # If you have `file' or equivalent on your system and you're not sure
13842 # whether `pass_all' will *always* work, you probably want this one.
13846 lt_cv_deplibs_check_method=pass_all
13850 lt_cv_deplibs_check_method=pass_all
13854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13855 lt_cv_file_magic_cmd='/usr/bin/file -L'
13856 lt_cv_file_magic_test_file=/shlib/libc.so
13860 # func_win32_libid is a shell function defined in ltmain.sh
13861 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13862 lt_cv_file_magic_cmd='func_win32_libid'
13866 # Base MSYS/MinGW do not provide the 'file' command needed by
13867 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13868 # unless we find 'file', for example because we are cross-compiling.
13869 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13870 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13871 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13872 lt_cv_file_magic_cmd='func_win32_libid'
13874 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13875 lt_cv_file_magic_cmd='$OBJDUMP -f'
13880 # use the weaker test based on 'objdump'. See mingw*.
13881 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13882 lt_cv_file_magic_cmd='$OBJDUMP -f'
13885 darwin* | rhapsody*)
13886 lt_cv_deplibs_check_method=pass_all
13889 freebsd* | dragonfly*)
13890 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13893 # Not sure whether the presence of OpenBSD here was a mistake.
13894 # Let's accept both of them until this is cleared up.
13895 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13896 lt_cv_file_magic_cmd=/usr/bin/file
13897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13901 lt_cv_deplibs_check_method=pass_all
13906 lt_cv_deplibs_check_method=pass_all
13910 lt_cv_deplibs_check_method=pass_all
13913 hpux10.20* | hpux11*)
13914 lt_cv_file_magic_cmd=/usr/bin/file
13917 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13918 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13921 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]'
13922 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13926 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13932 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13936 irix5* | irix6* | nonstopux*)
13938 *-32|*"-32 ") libmagic=32-bit;;
13939 *-n32|*"-n32 ") libmagic=N32;;
13940 *-64|*"-64 ") libmagic=64-bit;;
13941 *) libmagic=never-match;;
13943 lt_cv_deplibs_check_method=pass_all
13946 # This must be Linux ELF.
13947 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13948 lt_cv_deplibs_check_method=pass_all
13952 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13960 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13961 lt_cv_file_magic_cmd=/usr/bin/file
13962 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13966 lt_cv_deplibs_check_method=pass_all
13970 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13977 osf3* | osf4* | osf5*)
13978 lt_cv_deplibs_check_method=pass_all
13982 lt_cv_deplibs_check_method=pass_all
13986 lt_cv_deplibs_check_method=pass_all
13989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13990 lt_cv_deplibs_check_method=pass_all
13994 case $host_vendor in
13996 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]'
13997 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14000 lt_cv_deplibs_check_method=pass_all
14003 lt_cv_file_magic_cmd='/bin/file'
14004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14007 lt_cv_file_magic_cmd='/bin/file'
14008 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14009 lt_cv_file_magic_test_file=/lib/libc.so
14012 lt_cv_deplibs_check_method=pass_all
14015 lt_cv_deplibs_check_method=pass_all
14021 lt_cv_deplibs_check_method=pass_all
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14027 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14028 file_magic_cmd=$lt_cv_file_magic_cmd
14029 deplibs_check_method=$lt_cv_deplibs_check_method
14030 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14043 if test -n "$ac_tool_prefix"; then
14044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14045 set dummy ${ac_tool_prefix}ar; ac_word=$2
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14047 $as_echo_n "checking
for $ac_word...
" >&6; }
14048 if ${ac_cv_prog_AR+:} false; then :
14049 $as_echo_n "(cached
) " >&6
14051 if test -n "$AR"; then
14052 ac_cv_prog_AR="$AR" # Let the user override the test.
14054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14055 for as_dir in $PATH
14058 test -z "$as_dir" && as_dir=.
14059 for ac_exec_ext in '' $ac_executable_extensions; do
14060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14061 ac_cv_prog_AR="${ac_tool_prefix}ar"
14062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14072 if test -n "$AR"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14074 $as_echo "$AR" >&6; }
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14077 $as_echo "no
" >&6; }
14082 if test -z "$ac_cv_prog_AR"; then
14084 # Extract the first word of "ar", so it can be a program name with args.
14085 set dummy ar; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14087 $as_echo_n "checking
for $ac_word...
" >&6; }
14088 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14089 $as_echo_n "(cached
) " >&6
14091 if test -n "$ac_ct_AR"; then
14092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_ac_ct_AR="ar"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14112 if test -n "$ac_ct_AR"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14114 $as_echo "$ac_ct_AR" >&6; }
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14117 $as_echo "no
" >&6; }
14120 if test "x
$ac_ct_AR" = x; then
14123 case $cross_compiling:$ac_tool_warned in
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14126 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14127 ac_tool_warned=yes ;;
14132 AR="$ac_cv_prog_AR"
14135 test -z "$AR" && AR=ar
14136 test -z "$AR_FLAGS" && AR_FLAGS=cru
14148 if test -n "$ac_tool_prefix"; then
14149 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14150 set dummy ${ac_tool_prefix}strip; ac_word=$2
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14152 $as_echo_n "checking
for $ac_word...
" >&6; }
14153 if ${ac_cv_prog_STRIP+:} false; then :
14154 $as_echo_n "(cached
) " >&6
14156 if test -n "$STRIP"; then
14157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14160 for as_dir in $PATH
14163 test -z "$as_dir" && as_dir=.
14164 for ac_exec_ext in '' $ac_executable_extensions; do
14165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14166 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14176 STRIP=$ac_cv_prog_STRIP
14177 if test -n "$STRIP"; then
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14179 $as_echo "$STRIP" >&6; }
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14182 $as_echo "no
" >&6; }
14187 if test -z "$ac_cv_prog_STRIP"; then
14189 # Extract the first word of "strip
", so it can be a program name with args.
14190 set dummy strip; ac_word=$2
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14192 $as_echo_n "checking
for $ac_word...
" >&6; }
14193 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14194 $as_echo_n "(cached
) " >&6
14196 if test -n "$ac_ct_STRIP"; then
14197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200 for as_dir in $PATH
14203 test -z "$as_dir" && as_dir=.
14204 for ac_exec_ext in '' $ac_executable_extensions; do
14205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14206 ac_cv_prog_ac_ct_STRIP="strip
"
14207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14217 if test -n "$ac_ct_STRIP"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14219 $as_echo "$ac_ct_STRIP" >&6; }
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14222 $as_echo "no
" >&6; }
14225 if test "x
$ac_ct_STRIP" = x; then
14228 case $cross_compiling:$ac_tool_warned in
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14231 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14232 ac_tool_warned=yes ;;
14237 STRIP="$ac_cv_prog_STRIP"
14240 test -z "$STRIP" && STRIP=:
14247 if test -n "$ac_tool_prefix"; then
14248 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14251 $as_echo_n "checking
for $ac_word...
" >&6; }
14252 if ${ac_cv_prog_RANLIB+:} false; then :
14253 $as_echo_n "(cached
) " >&6
14255 if test -n "$RANLIB"; then
14256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14259 for as_dir in $PATH
14262 test -z "$as_dir" && as_dir=.
14263 for ac_exec_ext in '' $ac_executable_extensions; do
14264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14266 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14275 RANLIB=$ac_cv_prog_RANLIB
14276 if test -n "$RANLIB"; then
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14278 $as_echo "$RANLIB" >&6; }
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14281 $as_echo "no
" >&6; }
14286 if test -z "$ac_cv_prog_RANLIB"; then
14287 ac_ct_RANLIB=$RANLIB
14288 # Extract the first word of "ranlib
", so it can be a program name with args.
14289 set dummy ranlib; ac_word=$2
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14291 $as_echo_n "checking
for $ac_word...
" >&6; }
14292 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14293 $as_echo_n "(cached
) " >&6
14295 if test -n "$ac_ct_RANLIB"; then
14296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14316 if test -n "$ac_ct_RANLIB"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14318 $as_echo "$ac_ct_RANLIB" >&6; }
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14321 $as_echo "no
" >&6; }
14324 if test "x
$ac_ct_RANLIB" = x; then
14327 case $cross_compiling:$ac_tool_warned in
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14330 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14331 ac_tool_warned=yes ;;
14333 RANLIB=$ac_ct_RANLIB
14336 RANLIB="$ac_cv_prog_RANLIB"
14339 test -z "$RANLIB" && RANLIB=:
14346 # Determine commands to create old-style static archives.
14347 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14348 old_postinstall_cmds='chmod 644 $oldlib'
14349 old_postuninstall_cmds=
14351 if test -n "$RANLIB"; then
14354 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14357 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14360 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14365 lock_old_archive_extraction=yes ;;
14367 lock_old_archive_extraction=no ;;
14408 # If no C compiler was specified, use CC.
14411 # If no C compiler flags were specified, use CFLAGS.
14412 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14414 # Allow CC to be a program name with arguments.
14418 # Check for command to grab the raw symbol name followed by C symbol from nm.
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14420 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14421 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14422 $as_echo_n "(cached
) " >&6
14425 # These are sane defaults that work on at least a few old systems.
14426 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14428 # Character class describing NM global symbol codes.
14429 symcode='[BCDEGRST]'
14431 # Regexp to match symbols that can be accessed directly from C.
14432 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14434 # Define system-specific variables.
14439 cygwin* | mingw* | pw32* | cegcc*)
14440 symcode='[ABCDGISTW]'
14443 if test "$host_cpu" = ia64; then
14444 symcode='[ABCDEGRST]'
14447 irix* | nonstopux*)
14448 symcode='[BCDEGRST]'
14451 symcode='[BCDEGQRST]'
14462 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14470 # If we're using GNU nm, then use its standard symbol codes.
14471 case `$NM -V 2>&1` in
14472 *GNU* | *'with BFD'*)
14473 symcode='[ABCDGIRSTW]' ;;
14476 # Transform an extracted symbol line into a proper C declaration.
14477 # Some systems (esp. on ia64) link data and code symbols differently,
14478 # so use this general approach.
14479 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14481 # Transform an extracted symbol line into symbol name and symbol address
14482 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14483 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'"
14485 # Handle CRLF in mingw tool chain
14489 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14493 # Try without a prefix underscore, then with it.
14494 for ac_symprfx in "" "_
"; do
14496 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14497 symxfrm="\\1 $ac_symprfx\\2 \\2"
14499 # Write the raw and C identifiers.
14500 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14501 # Fake it for dumpbin and say T for any non-static function
14502 # and D for any global variable.
14503 # Also find C++ and __fastcall symbols from MSVC++,
14504 # which start with @ or ?.
14505 lt_cv_sys_global_symbol_pipe="$AWK '"\
14506 " {last_section=section; section=\$ 3};"\
14507 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14508 " \$ 0!~/External *\|/{next};"\
14509 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14510 " {if(hide[section]) next};"\
14511 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14512 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14513 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14514 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14515 " ' prfx
=^
$ac_symprfx"
14517 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14520 # Check to see that the pipe works correctly.
14524 cat > conftest.$ac_ext <<_LT_EOF
14529 void nm_test_func(void);
14530 void nm_test_func(void){}
14534 int main(){nm_test_var='a';nm_test_func();return(0);}
14537 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14538 (eval $ac_compile) 2>&5
14540 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14541 test $ac_status = 0; }; then
14542 # Now try to grab the symbols.
14544 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14545 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14548 test $ac_status = 0; } && test -s "$nlist"; then
14549 # Try sorting and uniquifying the output.
14550 if sort "$nlist" | uniq > "$nlist"T; then
14551 mv -f "$nlist"T "$nlist"
14556 # Make sure that we snagged all the symbols we need.
14557 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14558 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14559 cat <<_LT_EOF > conftest.$ac_ext
14565 # Now generate the symbol file.
14566 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14568 cat <<_LT_EOF >> conftest.$ac_ext
14570 /* The mapping between symbol names and symbols. */
14575 lt__PROGRAM__LTX_preloaded_symbols[] =
14577 { "@PROGRAM@
", (void *) 0 },
14579 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14580 cat <<\_LT_EOF >> conftest.$ac_ext
14584 /* This works around a problem in FreeBSD linker */
14585 #ifdef FREEBSD_WORKAROUND
14586 static const void *lt_preloaded_setup() {
14587 return lt__PROGRAM__LTX_preloaded_symbols;
14595 # Now try linking the two files.
14596 mv conftest.$ac_objext conftstm.$ac_objext
14597 lt_save_LIBS="$LIBS"
14598 lt_save_CFLAGS="$CFLAGS"
14599 LIBS="conftstm.
$ac_objext"
14600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14601 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14602 (eval $ac_link) 2>&5
14604 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14605 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14608 LIBS="$lt_save_LIBS"
14609 CFLAGS="$lt_save_CFLAGS"
14611 echo "cannot
find nm_test_func
in $nlist" >&5
14614 echo "cannot
find nm_test_var
in $nlist" >&5
14617 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14620 echo "$progname: failed program was
:" >&5
14621 cat conftest.$ac_ext >&5
14623 rm -rf conftest* conftst*
14625 # Do not use the global_symbol_pipe unless it works.
14626 if test "$pipe_works" = yes; then
14629 lt_cv_sys_global_symbol_pipe=
14635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14636 lt_cv_sys_global_symbol_to_cdecl=
14638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14640 $as_echo "failed
" >&6; }
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14643 $as_echo "ok
" >&6; }
14667 # Check whether --enable-libtool-lock was given.
14668 if test "${enable_libtool_lock+set}" = set; then :
14669 enableval=$enable_libtool_lock;
14672 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14674 # Some flags need to be propagated to the compiler or linker for good
14678 # Find out which ABI we are using.
14679 echo 'int i;' > conftest.$ac_ext
14680 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14681 (eval $ac_compile) 2>&5
14683 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14684 test $ac_status = 0; }; then
14685 case `/usr/bin/file conftest.$ac_objext` in
14687 HPUX_IA64_MODE="32"
14690 HPUX_IA64_MODE="64"
14697 # Find out which ABI we are using.
14698 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14699 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14700 (eval $ac_compile) 2>&5
14702 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14703 test $ac_status = 0; }; then
14704 if test "$lt_cv_prog_gnu_ld" = yes; then
14705 case `/usr/bin/file conftest.$ac_objext` in
14707 LD="${LD-ld} -melf32bsmip"
14710 LD="${LD-ld} -melf32bmipn32"
14713 LD="${LD-ld} -melf64bmip"
14717 case `/usr/bin/file conftest.$ac_objext` in
14733 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14734 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14735 # Find out which ABI we are using.
14736 echo 'int i;' > conftest.$ac_ext
14737 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14738 (eval $ac_compile) 2>&5
14740 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14741 test $ac_status = 0; }; then
14742 case `/usr/bin/file conftest.o` in
14745 x86_64-*kfreebsd*-gnu)
14746 LD="${LD-ld} -m elf_i386_fbsd
"
14749 case `/usr/bin/file conftest.o` in
14751 LD="${LD-ld} -m elf32_x86_64
"
14754 LD="${LD-ld} -m elf_i386
"
14758 powerpc64le-*linux*)
14759 LD="${LD-ld} -m elf32lppclinux
"
14762 LD="${LD-ld} -m elf32ppclinux
"
14765 LD="${LD-ld} -m elf_s390
"
14768 LD="${LD-ld} -m elf32_sparc
"
14774 x86_64-*kfreebsd*-gnu)
14775 LD="${LD-ld} -m elf_x86_64_fbsd
"
14778 LD="${LD-ld} -m elf_x86_64
"
14781 LD="${LD-ld} -m elf64lppc
"
14784 LD="${LD-ld} -m elf64ppc
"
14786 s390*-*linux*|s390*-*tpf*)
14787 LD="${LD-ld} -m elf64_s390
"
14790 LD="${LD-ld} -m elf64_sparc
"
14800 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14801 SAVE_CFLAGS="$CFLAGS"
14802 CFLAGS="$CFLAGS -belf"
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14804 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14805 if ${lt_cv_cc_needs_belf+:} false; then :
14806 $as_echo_n "(cached
) " >&6
14809 ac_cpp='$CPP $CPPFLAGS'
14810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14825 if ac_fn_c_try_link "$LINENO"; then :
14826 lt_cv_cc_needs_belf=yes
14828 lt_cv_cc_needs_belf=no
14830 rm -f core conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
14833 ac_cpp='$CPP $CPPFLAGS'
14834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14840 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14841 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14842 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14843 CFLAGS="$SAVE_CFLAGS"
14847 # Find out which ABI we are using.
14848 echo 'int i;' > conftest.$ac_ext
14849 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14850 (eval $ac_compile) 2>&5
14852 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14853 test $ac_status = 0; }; then
14854 case `/usr/bin/file conftest.o` in
14856 case $lt_cv_prog_gnu_ld in
14857 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14859 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14871 need_locks="$enable_libtool_lock"
14875 rhapsody* | darwin*)
14876 if test -n "$ac_tool_prefix"; then
14877 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14878 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14880 $as_echo_n "checking
for $ac_word...
" >&6; }
14881 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14882 $as_echo_n "(cached
) " >&6
14884 if test -n "$DSYMUTIL"; then
14885 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14891 test -z "$as_dir" && as_dir=.
14892 for ac_exec_ext in '' $ac_executable_extensions; do
14893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14894 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14905 if test -n "$DSYMUTIL"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14907 $as_echo "$DSYMUTIL" >&6; }
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14910 $as_echo "no
" >&6; }
14915 if test -z "$ac_cv_prog_DSYMUTIL"; then
14916 ac_ct_DSYMUTIL=$DSYMUTIL
14917 # Extract the first word of "dsymutil
", so it can be a program name with args.
14918 set dummy dsymutil; ac_word=$2
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14920 $as_echo_n "checking
for $ac_word...
" >&6; }
14921 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14922 $as_echo_n "(cached
) " >&6
14924 if test -n "$ac_ct_DSYMUTIL"; then
14925 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14931 test -z "$as_dir" && as_dir=.
14932 for ac_exec_ext in '' $ac_executable_extensions; do
14933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14934 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14944 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14945 if test -n "$ac_ct_DSYMUTIL"; then
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14947 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14950 $as_echo "no
" >&6; }
14953 if test "x
$ac_ct_DSYMUTIL" = x; then
14956 case $cross_compiling:$ac_tool_warned in
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14959 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14960 ac_tool_warned=yes ;;
14962 DSYMUTIL=$ac_ct_DSYMUTIL
14965 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14968 if test -n "$ac_tool_prefix"; then
14969 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14970 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14972 $as_echo_n "checking
for $ac_word...
" >&6; }
14973 if ${ac_cv_prog_NMEDIT+:} false; then :
14974 $as_echo_n "(cached
) " >&6
14976 if test -n "$NMEDIT"; then
14977 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14996 NMEDIT=$ac_cv_prog_NMEDIT
14997 if test -n "$NMEDIT"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14999 $as_echo "$NMEDIT" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15002 $as_echo "no
" >&6; }
15007 if test -z "$ac_cv_prog_NMEDIT"; then
15008 ac_ct_NMEDIT=$NMEDIT
15009 # Extract the first word of "nmedit
", so it can be a program name with args.
15010 set dummy nmedit; ac_word=$2
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15012 $as_echo_n "checking
for $ac_word...
" >&6; }
15013 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15014 $as_echo_n "(cached
) " >&6
15016 if test -n "$ac_ct_NMEDIT"; then
15017 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020 for as_dir in $PATH
15023 test -z "$as_dir" && as_dir=.
15024 for ac_exec_ext in '' $ac_executable_extensions; do
15025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15026 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15027 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15036 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15037 if test -n "$ac_ct_NMEDIT"; then
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15039 $as_echo "$ac_ct_NMEDIT" >&6; }
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15042 $as_echo "no
" >&6; }
15045 if test "x
$ac_ct_NMEDIT" = x; then
15048 case $cross_compiling:$ac_tool_warned in
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15051 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15052 ac_tool_warned=yes ;;
15054 NMEDIT=$ac_ct_NMEDIT
15057 NMEDIT="$ac_cv_prog_NMEDIT"
15060 if test -n "$ac_tool_prefix"; then
15061 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15062 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15064 $as_echo_n "checking
for $ac_word...
" >&6; }
15065 if ${ac_cv_prog_LIPO+:} false; then :
15066 $as_echo_n "(cached
) " >&6
15068 if test -n "$LIPO"; then
15069 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15072 for as_dir in $PATH
15075 test -z "$as_dir" && as_dir=.
15076 for ac_exec_ext in '' $ac_executable_extensions; do
15077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15078 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15079 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15088 LIPO=$ac_cv_prog_LIPO
15089 if test -n "$LIPO"; then
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15091 $as_echo "$LIPO" >&6; }
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15094 $as_echo "no
" >&6; }
15099 if test -z "$ac_cv_prog_LIPO"; then
15101 # Extract the first word of "lipo
", so it can be a program name with args.
15102 set dummy lipo; ac_word=$2
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15104 $as_echo_n "checking
for $ac_word...
" >&6; }
15105 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15106 $as_echo_n "(cached
) " >&6
15108 if test -n "$ac_ct_LIPO"; then
15109 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112 for as_dir in $PATH
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_ac_ct_LIPO="lipo
"
15119 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15128 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15129 if test -n "$ac_ct_LIPO"; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15131 $as_echo "$ac_ct_LIPO" >&6; }
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15134 $as_echo "no
" >&6; }
15137 if test "x
$ac_ct_LIPO" = x; then
15140 case $cross_compiling:$ac_tool_warned in
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15143 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15144 ac_tool_warned=yes ;;
15149 LIPO="$ac_cv_prog_LIPO"
15152 if test -n "$ac_tool_prefix"; then
15153 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15154 set dummy ${ac_tool_prefix}otool; ac_word=$2
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15156 $as_echo_n "checking
for $ac_word...
" >&6; }
15157 if ${ac_cv_prog_OTOOL+:} false; then :
15158 $as_echo_n "(cached
) " >&6
15160 if test -n "$OTOOL"; then
15161 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15164 for as_dir in $PATH
15167 test -z "$as_dir" && as_dir=.
15168 for ac_exec_ext in '' $ac_executable_extensions; do
15169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15170 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15171 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15180 OTOOL=$ac_cv_prog_OTOOL
15181 if test -n "$OTOOL"; then
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15183 $as_echo "$OTOOL" >&6; }
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15186 $as_echo "no
" >&6; }
15191 if test -z "$ac_cv_prog_OTOOL"; then
15193 # Extract the first word of "otool
", so it can be a program name with args.
15194 set dummy otool; ac_word=$2
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15196 $as_echo_n "checking
for $ac_word...
" >&6; }
15197 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15198 $as_echo_n "(cached
) " >&6
15200 if test -n "$ac_ct_OTOOL"; then
15201 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15204 for as_dir in $PATH
15207 test -z "$as_dir" && as_dir=.
15208 for ac_exec_ext in '' $ac_executable_extensions; do
15209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15210 ac_cv_prog_ac_ct_OTOOL="otool
"
15211 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15221 if test -n "$ac_ct_OTOOL"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15223 $as_echo "$ac_ct_OTOOL" >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15226 $as_echo "no
" >&6; }
15229 if test "x
$ac_ct_OTOOL" = x; then
15232 case $cross_compiling:$ac_tool_warned in
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15235 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15236 ac_tool_warned=yes ;;
15241 OTOOL="$ac_cv_prog_OTOOL"
15244 if test -n "$ac_tool_prefix"; then
15245 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15248 $as_echo_n "checking
for $ac_word...
" >&6; }
15249 if ${ac_cv_prog_OTOOL64+:} false; then :
15250 $as_echo_n "(cached
) " >&6
15252 if test -n "$OTOOL64"; then
15253 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $PATH
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
15261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15272 OTOOL64=$ac_cv_prog_OTOOL64
15273 if test -n "$OTOOL64"; then
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15275 $as_echo "$OTOOL64" >&6; }
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15278 $as_echo "no
" >&6; }
15283 if test -z "$ac_cv_prog_OTOOL64"; then
15284 ac_ct_OTOOL64=$OTOOL64
15285 # Extract the first word of "otool64
", so it can be a program name with args.
15286 set dummy otool64; ac_word=$2
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15288 $as_echo_n "checking
for $ac_word...
" >&6; }
15289 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15290 $as_echo_n "(cached
) " >&6
15292 if test -n "$ac_ct_OTOOL64"; then
15293 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15296 for as_dir in $PATH
15299 test -z "$as_dir" && as_dir=.
15300 for ac_exec_ext in '' $ac_executable_extensions; do
15301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15302 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15312 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15313 if test -n "$ac_ct_OTOOL64"; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15315 $as_echo "$ac_ct_OTOOL64" >&6; }
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15318 $as_echo "no
" >&6; }
15321 if test "x
$ac_ct_OTOOL64" = x; then
15324 case $cross_compiling:$ac_tool_warned in
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15327 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15328 ac_tool_warned=yes ;;
15330 OTOOL64=$ac_ct_OTOOL64
15333 OTOOL64="$ac_cv_prog_OTOOL64"
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15363 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15364 if ${lt_cv_apple_cc_single_mod+:} false; then :
15365 $as_echo_n "(cached
) " >&6
15367 lt_cv_apple_cc_single_mod=no
15368 if test -z "${LT_MULTI_MODULE}"; then
15369 # By default we will add the -single_module flag. You can override
15370 # by either setting the environment variable LT_MULTI_MODULE
15371 # non-empty at configure time, or by adding -multi_module to the
15373 rm -rf libconftest.dylib*
15374 echo "int foo
(void
){return 1;}" > conftest.c
15375 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15376 -dynamiclib -Wl,-single_module conftest.c
" >&5
15377 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15378 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15380 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15381 lt_cv_apple_cc_single_mod=yes
15383 cat conftest.err >&5
15385 rm -rf libconftest.dylib*
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15390 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15392 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15393 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15394 $as_echo_n "(cached
) " >&6
15396 lt_cv_ld_exported_symbols_list=no
15397 save_LDFLAGS=$LDFLAGS
15398 echo "_main
" > conftest.sym
15399 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15411 if ac_fn_c_try_link "$LINENO"; then :
15412 lt_cv_ld_exported_symbols_list=yes
15414 lt_cv_ld_exported_symbols_list=no
15416 rm -f core conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15418 LDFLAGS="$save_LDFLAGS"
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15422 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15424 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15425 if ${lt_cv_ld_force_load+:} false; then :
15426 $as_echo_n "(cached
) " >&6
15428 lt_cv_ld_force_load=no
15429 cat > conftest.c << _LT_EOF
15430 int forced_loaded() { return 2;}
15432 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15433 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15434 echo "$AR cru libconftest.a conftest.o
" >&5
15435 $AR cru libconftest.a conftest.o 2>&5
15436 cat > conftest.c << _LT_EOF
15437 int main() { return 0;}
15439 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15440 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15442 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15443 lt_cv_ld_force_load=yes
15445 cat conftest.err >&5
15447 rm -f conftest.err libconftest.a conftest conftest.c
15448 rm -rf conftest.dSYM
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15452 $as_echo "$lt_cv_ld_force_load" >&6; }
15454 rhapsody* | darwin1.[012])
15455 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15457 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15458 darwin*) # darwin 5.x on
15459 # if running on 10.5 or later, the deployment target defaults
15460 # to the OS version, if on x86, and 10.4, the deployment
15461 # target defaults to 10.4. Don't you love it?
15462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15463 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15464 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15466 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15468 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15472 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15473 _lt_dar_single_mod='$single_module'
15475 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15476 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15480 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15481 _lt_dsymutil='~$DSYMUTIL $lib || :'
15489 for ac_header in dlfcn.h
15491 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15492 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15493 cat >>confdefs.h <<_ACEOF
15494 #define HAVE_DLFCN_H 1
15511 enable_win32_dll=no
15514 # Check whether --enable-shared was given.
15515 if test "${enable_shared+set}" = set; then :
15516 enableval=$enable_shared; p=${PACKAGE-default}
15518 yes) enable_shared=yes ;;
15519 no) enable_shared=no ;;
15522 # Look at the argument we got. We use all the common list separators.
15523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15524 for pkg in $enableval; do
15526 if test "X
$pkg" = "X
$p"; then
15545 # Check whether --enable-static was given.
15546 if test "${enable_static+set}" = set; then :
15547 enableval=$enable_static; p=${PACKAGE-default}
15549 yes) enable_static=yes ;;
15550 no) enable_static=no ;;
15553 # Look at the argument we got. We use all the common list separators.
15554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15555 for pkg in $enableval; do
15557 if test "X
$pkg" = "X
$p"; then
15577 # Check whether --with-pic was given.
15578 if test "${with_pic+set}" = set; then :
15579 withval=$with_pic; pic_mode="$withval"
15585 test -z "$pic_mode" && pic_mode=default
15593 # Check whether --enable-fast-install was given.
15594 if test "${enable_fast_install+set}" = set; then :
15595 enableval=$enable_fast_install; p=${PACKAGE-default}
15597 yes) enable_fast_install=yes ;;
15598 no) enable_fast_install=no ;;
15600 enable_fast_install=no
15601 # Look at the argument we got. We use all the common list separators.
15602 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15603 for pkg in $enableval; do
15605 if test "X
$pkg" = "X
$p"; then
15606 enable_fast_install=yes
15613 enable_fast_install=yes
15626 # This can be used to rebuild libtool when needed
15627 LIBTOOL_DEPS="$ltmain"
15629 # Always use our own libtool.
15630 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15657 test -z "$LN_S" && LN_S="ln -s"
15672 if test -n "${ZSH_VERSION+set}" ; then
15673 setopt NO_GLOB_SUBST
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15677 $as_echo_n "checking
for objdir...
" >&6; }
15678 if ${lt_cv_objdir+:} false; then :
15679 $as_echo_n "(cached
) " >&6
15681 rm -f .libs 2>/dev/null
15682 mkdir .libs 2>/dev/null
15683 if test -d .libs; then
15686 # MS-DOS does not allow filenames that begin with a dot.
15689 rmdir .libs 2>/dev/null
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15692 $as_echo "$lt_cv_objdir" >&6; }
15693 objdir=$lt_cv_objdir
15699 cat >>confdefs.h <<_ACEOF
15700 #define LT_OBJDIR "$lt_cv_objdir/"
15708 # AIX sometimes has problems with the GCC collect2 program. For some
15709 # reason, if we set the COLLECT_NAMES environment variable, the problems
15710 # vanish in a puff of smoke.
15711 if test "X
${COLLECT_NAMES+set}" != Xset; then
15713 export COLLECT_NAMES
15718 # Global variables:
15720 can_build_shared=yes
15722 # All known linkers require a `.a' archive for static linking (except MSVC,
15723 # which needs '.lib').
15726 with_gnu_ld="$lt_cv_prog_gnu_ld"
15729 old_CFLAGS="$CFLAGS"
15731 # Set sane defaults for various variables
15732 test -z "$CC" && CC=cc
15733 test -z "$LTCC" && LTCC=$CC
15734 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15735 test -z "$LD" && LD=ld
15736 test -z "$ac_objext" && ac_objext=o
15738 for cc_temp in $compiler""; do
15740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15746 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15749 # Only perform the check for file, if the check method requires it
15750 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15751 case $deplibs_check_method in
15753 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15755 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15756 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15757 $as_echo_n "(cached
) " >&6
15761 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15764 lt_save_MAGIC_CMD="$MAGIC_CMD"
15765 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15766 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15767 for ac_dir in $ac_dummy; do
15769 test -z "$ac_dir" && ac_dir=.
15770 if test -f $ac_dir/${ac_tool_prefix}file; then
15771 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15772 if test -n "$file_magic_test_file"; then
15773 case $deplibs_check_method in
15775 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15776 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15777 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15778 $EGREP "$file_magic_regex" > /dev/null; then
15783 *** Warning: the command libtool uses to detect shared libraries,
15784 *** $file_magic_cmd, produces output that libtool cannot recognize.
15785 *** The result is that libtool may fail to recognize shared libraries
15786 *** as such. This will affect the creation of libtool libraries that
15787 *** depend on shared libraries, but programs linked with such libtool
15788 *** libraries will work regardless of this problem. Nevertheless, you
15789 *** may want to report the problem to your system manager and/or to
15790 *** bug-libtool@gnu.org
15800 MAGIC_CMD="$lt_save_MAGIC_CMD"
15805 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15806 if test -n "$MAGIC_CMD"; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15808 $as_echo "$MAGIC_CMD" >&6; }
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15811 $as_echo "no
" >&6; }
15818 if test -z "$lt_cv_path_MAGIC_CMD"; then
15819 if test -n "$ac_tool_prefix"; then
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15821 $as_echo_n "checking
for file...
" >&6; }
15822 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15823 $as_echo_n "(cached
) " >&6
15827 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15830 lt_save_MAGIC_CMD="$MAGIC_CMD"
15831 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15832 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15833 for ac_dir in $ac_dummy; do
15835 test -z "$ac_dir" && ac_dir=.
15836 if test -f $ac_dir/file; then
15837 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15838 if test -n "$file_magic_test_file"; then
15839 case $deplibs_check_method in
15841 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15842 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15843 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15844 $EGREP "$file_magic_regex" > /dev/null; then
15849 *** Warning: the command libtool uses to detect shared libraries,
15850 *** $file_magic_cmd, produces output that libtool cannot recognize.
15851 *** The result is that libtool may fail to recognize shared libraries
15852 *** as such. This will affect the creation of libtool libraries that
15853 *** depend on shared libraries, but programs linked with such libtool
15854 *** libraries will work regardless of this problem. Nevertheless, you
15855 *** may want to report the problem to your system manager and/or to
15856 *** bug-libtool@gnu.org
15866 MAGIC_CMD="$lt_save_MAGIC_CMD"
15871 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15872 if test -n "$MAGIC_CMD"; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15874 $as_echo "$MAGIC_CMD" >&6; }
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15877 $as_echo "no
" >&6; }
15890 # Use C for the default configuration in the libtool script
15894 ac_cpp='$CPP $CPPFLAGS'
15895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15900 # Source file extension for C test sources.
15903 # Object file extension for compiled C test sources.
15907 # Code to be used in simple compile tests
15908 lt_simple_compile_test_code="int some_variable
= 0;"
15910 # Code to be used in simple link tests
15911 lt_simple_link_test_code='int main(){return(0);}'
15919 # If no C compiler was specified, use CC.
15922 # If no C compiler flags were specified, use CFLAGS.
15923 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15925 # Allow CC to be a program name with arguments.
15928 # Save the default compiler, since it gets overwritten when the other
15929 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15930 compiler_DEFAULT=$CC
15932 # save warnings/boilerplate of simple test code
15933 ac_outfile=conftest.$ac_objext
15934 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15936 _lt_compiler_boilerplate=`cat conftest.err`
15939 ac_outfile=conftest.$ac_objext
15940 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15942 _lt_linker_boilerplate=`cat conftest.err`
15947 ## There is no encapsulation within the following macros, do not change
15948 ## the running order or otherwise move them around unless you know exactly
15949 ## what you are doing...
15950 if test -n "$compiler"; then
15952 lt_prog_compiler_no_builtin_flag=
15954 if test "$GCC" = yes; then
15955 case $cc_basename in
15957 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15959 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15963 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15964 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15965 $as_echo_n "(cached
) " >&6
15967 lt_cv_prog_compiler_rtti_exceptions=no
15968 ac_outfile=conftest.$ac_objext
15969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15970 lt_compiler_flag="-fno-rtti -fno-exceptions"
15971 # Insert the option either (1) after the last *FLAGS variable, or
15972 # (2) before a word containing "conftest.
", or (3) at the end.
15973 # Note that $ac_compile itself does not contain backslashes and begins
15974 # with a dollar sign (not a hyphen), so the echo should work correctly.
15975 # The option is referenced via a variable to avoid confusing sed.
15976 lt_compile=`echo "$ac_compile" | $SED \
15977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15979 -e 's:$: $lt_compiler_flag:'`
15980 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15981 (eval "$lt_compile" 2>conftest.err)
15983 cat conftest.err >&5
15984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15985 if (exit $ac_status) && test -s "$ac_outfile"; then
15986 # The compiler can only warn and ignore the option if not recognized
15987 # So say no if there are warnings other than the usual output.
15988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15991 lt_cv_prog_compiler_rtti_exceptions=yes
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15998 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16000 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16001 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16013 lt_prog_compiler_wl=
16014 lt_prog_compiler_pic=
16015 lt_prog_compiler_static=
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16018 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16020 if test "$GCC" = yes; then
16021 lt_prog_compiler_wl='-Wl,'
16022 lt_prog_compiler_static='-static'
16026 # All AIX code is PIC.
16027 if test "$host_cpu" = ia64; then
16028 # AIX 5 now supports IA64 processor
16029 lt_prog_compiler_static='-Bstatic'
16031 lt_prog_compiler_pic='-fPIC'
16037 # see comment about AmigaOS4 .so support
16038 lt_prog_compiler_pic='-fPIC'
16041 # FIXME: we need at least 68020 code to build shared libraries, but
16042 # adding the `-m68020' flag to GCC prevents building anything better,
16044 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16049 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16050 # PIC is the default for these OSes.
16053 mingw* | cygwin* | pw32* | os2* | cegcc*)
16054 # This hack is so that the source file can tell whether it is being
16055 # built for inclusion in a dll (and should export symbols for example).
16056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16057 # (--disable-auto-import) libraries
16058 lt_prog_compiler_pic='-DDLL_EXPORT'
16061 darwin* | rhapsody*)
16062 # PIC is the default on this platform
16063 # Common symbols not allowed in MH_DYLIB files
16064 lt_prog_compiler_pic='-fno-common'
16068 # PIC is the default for Haiku.
16069 # The "-static" flag exists, but is broken.
16070 lt_prog_compiler_static=
16074 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16075 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16076 # sets the default TLS model and affects inlining.
16082 lt_prog_compiler_pic='-fPIC'
16088 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16089 # Instead, we relocate shared libraries at runtime.
16093 # Just because we use GCC doesn't mean we suddenly get shared libraries
16094 # on systems that don't support them.
16095 lt_prog_compiler_can_build_shared=no
16100 # QNX uses GNU C++, but need to define -shared option too, otherwise
16101 # it will coredump.
16102 lt_prog_compiler_pic='-fPIC -shared'
16106 if test -d /usr/nec; then
16107 lt_prog_compiler_pic=-Kconform_pic
16112 lt_prog_compiler_pic='-fPIC'
16116 case $cc_basename in
16117 nvcc*) # Cuda Compiler Driver 2.2
16118 lt_prog_compiler_wl='-Xlinker '
16119 lt_prog_compiler_pic='-Xcompiler -fPIC'
16123 # PORTME Check for flag to pass linker flags through the system compiler.
16126 lt_prog_compiler_wl='-Wl,'
16127 if test "$host_cpu" = ia64; then
16128 # AIX 5 now supports IA64 processor
16129 lt_prog_compiler_static='-Bstatic'
16131 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16135 mingw* | cygwin* | pw32* | os2* | cegcc*)
16136 # This hack is so that the source file can tell whether it is being
16137 # built for inclusion in a dll (and should export symbols for example).
16138 lt_prog_compiler_pic='-DDLL_EXPORT'
16141 hpux9* | hpux10* | hpux11*)
16142 lt_prog_compiler_wl='-Wl,'
16143 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16144 # not for PA HP-UX.
16150 lt_prog_compiler_pic='+Z'
16153 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16154 lt_prog_compiler_static='${wl}-a ${wl}archive'
16157 irix5* | irix6* | nonstopux*)
16158 lt_prog_compiler_wl='-Wl,'
16159 # PIC (with -KPIC) is the default.
16160 lt_prog_compiler_static='-non_shared'
16163 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16164 case $cc_basename in
16165 # old Intel for x86_64 which still supported -KPIC.
16167 lt_prog_compiler_wl='-Wl,'
16168 lt_prog_compiler_pic='-KPIC'
16169 lt_prog_compiler_static='-static'
16171 # icc used to be incompatible with GCC.
16172 # ICC 10 doesn't accept -KPIC any more.
16174 lt_prog_compiler_wl='-Wl,'
16175 lt_prog_compiler_pic='-fPIC'
16176 lt_prog_compiler_static='-static'
16178 # Lahey Fortran 8.1.
16180 lt_prog_compiler_wl='-Wl,'
16181 lt_prog_compiler_pic='--shared'
16182 lt_prog_compiler_static='--static'
16184 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16185 # Portland Group compilers (*not* the Pentium gcc compiler,
16186 # which looks to be a dead project)
16187 lt_prog_compiler_wl='-Wl,'
16188 lt_prog_compiler_pic='-fpic'
16189 lt_prog_compiler_static='-Bstatic'
16192 lt_prog_compiler_wl='-Wl,'
16193 # All Alpha code is PIC.
16194 lt_prog_compiler_static='-non_shared'
16196 xl* | bgxl* | bgf* | mpixl*)
16197 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16198 lt_prog_compiler_wl='-Wl,'
16199 lt_prog_compiler_pic='-qpic'
16200 lt_prog_compiler_static='-qstaticlink'
16203 case `$CC -V 2>&1 | sed 5q` in
16204 *Sun\ F* | *Sun*Fortran*)
16205 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16206 lt_prog_compiler_pic='-KPIC'
16207 lt_prog_compiler_static='-Bstatic'
16208 lt_prog_compiler_wl=''
16212 lt_prog_compiler_pic='-KPIC'
16213 lt_prog_compiler_static='-Bstatic'
16214 lt_prog_compiler_wl='-Wl,'
16222 lt_prog_compiler_pic='-KPIC'
16223 lt_prog_compiler_static='-Bstatic'
16227 # QNX uses GNU C++, but need to define -shared option too, otherwise
16228 # it will coredump.
16229 lt_prog_compiler_pic='-fPIC -shared'
16232 osf3* | osf4* | osf5*)
16233 lt_prog_compiler_wl='-Wl,'
16234 # All OSF/1 code is PIC.
16235 lt_prog_compiler_static='-non_shared'
16239 lt_prog_compiler_static='-non_shared'
16243 lt_prog_compiler_pic='-KPIC'
16244 lt_prog_compiler_static='-Bstatic'
16245 case $cc_basename in
16246 f77* | f90* | f95*)
16247 lt_prog_compiler_wl='-Qoption ld ';;
16249 lt_prog_compiler_wl='-Wl,';;
16254 lt_prog_compiler_wl='-Qoption ld '
16255 lt_prog_compiler_pic='-PIC'
16256 lt_prog_compiler_static='-Bstatic'
16259 sysv4 | sysv4.2uw2* | sysv4.3*)
16260 lt_prog_compiler_wl='-Wl,'
16261 lt_prog_compiler_pic='-KPIC'
16262 lt_prog_compiler_static='-Bstatic'
16266 if test -d /usr/nec ;then
16267 lt_prog_compiler_pic='-Kconform_pic'
16268 lt_prog_compiler_static='-Bstatic'
16272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16273 lt_prog_compiler_wl='-Wl,'
16274 lt_prog_compiler_pic='-KPIC'
16275 lt_prog_compiler_static='-Bstatic'
16279 lt_prog_compiler_wl='-Wl,'
16280 lt_prog_compiler_can_build_shared=no
16284 lt_prog_compiler_pic='-pic'
16285 lt_prog_compiler_static='-Bstatic'
16289 lt_prog_compiler_can_build_shared=no
16295 # For platforms which do not support PIC, -DPIC is meaningless:
16297 lt_prog_compiler_pic=
16300 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16304 $as_echo "$lt_prog_compiler_pic" >&6; }
16312 # Check to make sure the PIC flag actually works.
16314 if test -n "$lt_prog_compiler_pic"; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16316 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16317 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16318 $as_echo_n "(cached
) " >&6
16320 lt_cv_prog_compiler_pic_works=no
16321 ac_outfile=conftest.$ac_objext
16322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16323 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16324 # Insert the option either (1) after the last *FLAGS variable, or
16325 # (2) before a word containing "conftest.
", or (3) at the end.
16326 # Note that $ac_compile itself does not contain backslashes and begins
16327 # with a dollar sign (not a hyphen), so the echo should work correctly.
16328 # The option is referenced via a variable to avoid confusing sed.
16329 lt_compile=`echo "$ac_compile" | $SED \
16330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16332 -e 's:$: $lt_compiler_flag:'`
16333 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16334 (eval "$lt_compile" 2>conftest.err)
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16338 if (exit $ac_status) && test -s "$ac_outfile"; then
16339 # The compiler can only warn and ignore the option if not recognized
16340 # So say no if there are warnings other than the usual output.
16341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16344 lt_cv_prog_compiler_pic_works=yes
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16351 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16353 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16354 case $lt_prog_compiler_pic in
16356 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16359 lt_prog_compiler_pic=
16360 lt_prog_compiler_can_build_shared=no
16371 # Check to make sure the static flag actually works.
16373 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16375 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16376 if ${lt_cv_prog_compiler_static_works+:} false; then :
16377 $as_echo_n "(cached
) " >&6
16379 lt_cv_prog_compiler_static_works=no
16380 save_LDFLAGS="$LDFLAGS"
16381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16384 # The linker can only warn and ignore the option if not recognized
16385 # So say no if there are warnings
16386 if test -s conftest.err; then
16387 # Append any errors to the config.log.
16388 cat conftest.err 1>&5
16389 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16391 if diff conftest.exp conftest.er2 >/dev/null; then
16392 lt_cv_prog_compiler_static_works=yes
16395 lt_cv_prog_compiler_static_works=yes
16399 LDFLAGS="$save_LDFLAGS"
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16403 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16405 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16408 lt_prog_compiler_static=
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16418 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16419 if ${lt_cv_prog_compiler_c_o+:} false; then :
16420 $as_echo_n "(cached
) " >&6
16422 lt_cv_prog_compiler_c_o=no
16423 $RM -r conftest 2>/dev/null
16427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16429 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16430 # Insert the option either (1) after the last *FLAGS variable, or
16431 # (2) before a word containing "conftest.
", or (3) at the end.
16432 # Note that $ac_compile itself does not contain backslashes and begins
16433 # with a dollar sign (not a hyphen), so the echo should work correctly.
16434 lt_compile=`echo "$ac_compile" | $SED \
16435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16437 -e 's:$: $lt_compiler_flag:'`
16438 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16439 (eval "$lt_compile" 2>out/conftest.err)
16441 cat out/conftest.err >&5
16442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16443 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16445 # The compiler can only warn and ignore the option if not recognized
16446 # So say no if there are warnings
16447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16448 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16449 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16450 lt_cv_prog_compiler_c_o=yes
16455 # SGI C++ compiler will create directory out/ii_files/ for
16456 # template instantiation
16457 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16458 $RM out/* && rmdir out
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16465 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16473 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16474 if ${lt_cv_prog_compiler_c_o+:} false; then :
16475 $as_echo_n "(cached
) " >&6
16477 lt_cv_prog_compiler_c_o=no
16478 $RM -r conftest 2>/dev/null
16482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16484 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16485 # Insert the option either (1) after the last *FLAGS variable, or
16486 # (2) before a word containing "conftest.
", or (3) at the end.
16487 # Note that $ac_compile itself does not contain backslashes and begins
16488 # with a dollar sign (not a hyphen), so the echo should work correctly.
16489 lt_compile=`echo "$ac_compile" | $SED \
16490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16492 -e 's:$: $lt_compiler_flag:'`
16493 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16494 (eval "$lt_compile" 2>out/conftest.err)
16496 cat out/conftest.err >&5
16497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16500 # The compiler can only warn and ignore the option if not recognized
16501 # So say no if there are warnings
16502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16505 lt_cv_prog_compiler_c_o=yes
16510 # SGI C++ compiler will create directory out/ii_files/ for
16511 # template instantiation
16512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16513 $RM out/* && rmdir out
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16520 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16525 hard_links="nottested
"
16526 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16527 # do not overwrite the value of need_locks provided by the user
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16529 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16534 ln conftest.a conftest.b 2>&5 || hard_links=no
16535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16537 $as_echo "$hard_links" >&6; }
16538 if test "$hard_links" = no; then
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16540 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16553 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16556 allow_undefined_flag=
16557 always_export_symbols=no
16559 archive_expsym_cmds=
16560 compiler_needs_object=no
16561 enable_shared_with_static_runtimes=no
16562 export_dynamic_flag_spec=
16563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16564 hardcode_automatic=no
16566 hardcode_direct_absolute=no
16567 hardcode_libdir_flag_spec=
16568 hardcode_libdir_flag_spec_ld=
16569 hardcode_libdir_separator=
16570 hardcode_minus_L=no
16571 hardcode_shlibpath_var=unsupported
16573 link_all_deplibs=unknown
16575 module_expsym_cmds=
16576 old_archive_from_new_cmds=
16577 old_archive_from_expsyms_cmds=
16578 thread_safe_flag_spec=
16579 whole_archive_flag_spec=
16580 # include_expsyms should be a list of space-separated symbols to be *always*
16581 # included in the symbol list
16583 # exclude_expsyms can be an extended regexp of symbols to exclude
16584 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16585 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16586 # as well as any symbol that contains `d'.
16587 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16588 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16589 # platforms (ab)use it in PIC code, but their linkers get confused if
16590 # the symbol is explicitly referenced. Since portable code cannot
16591 # rely on this symbol name, it's probably fine to never include it in
16592 # preloaded symbol tables.
16593 # Exclude shared library initialization/finalization symbols.
16594 extract_expsyms_cmds=
16597 cygwin* | mingw* | pw32* | cegcc*)
16598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16599 # When not using gcc, we currently assume that we are using
16600 # Microsoft Visual C++.
16601 if test "$GCC" != yes; then
16606 # we just hope/assume this is gcc and not c89 (= MSVC++)
16616 # On some targets, GNU ld is compatible enough with the native linker
16617 # that we're better off using the native interface for both.
16618 lt_use_gnu_ld_interface=no
16619 if test "$with_gnu_ld" = yes; then
16622 # The AIX port of GNU ld has always aspired to compatibility
16623 # with the native linker. However, as the warning in the GNU ld
16624 # block says, versions before 2.19.5* couldn't really create working
16625 # shared libraries, regardless of the interface used.
16626 case `$LD -v 2>&1` in
16627 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16628 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16629 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16631 lt_use_gnu_ld_interface=yes
16636 lt_use_gnu_ld_interface=yes
16641 if test "$lt_use_gnu_ld_interface" = yes; then
16642 # If archive_cmds runs LD, not CC, wlarc should be empty
16645 # Set some defaults for GNU ld with shared library support. These
16646 # are reset later if shared libraries are not supported. Putting them
16647 # here allows them to be overridden if necessary.
16648 runpath_var=LD_RUN_PATH
16649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16650 export_dynamic_flag_spec='${wl}--export-dynamic'
16651 # ancient GNU ld didn't support --whole-archive et. al.
16652 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16653 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16655 whole_archive_flag_spec=
16657 supports_anon_versioning=no
16658 case `$LD -v 2>&1` in
16659 *GNU\ gold*) supports_anon_versioning=yes ;;
16660 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16663 *\ 2.11.*) ;; # other 2.11 versions
16664 *) supports_anon_versioning=yes ;;
16667 # See if GNU ld supports shared libraries.
16670 # On AIX/PPC, the GNU linker is very broken
16671 if test "$host_cpu" != ia64; then
16675 *** Warning: the GNU linker, at least up to release 2.19, is reported
16676 *** to be unable to reliably create shared libraries on AIX.
16677 *** Therefore, libtool is disabling shared libraries support. If you
16678 *** really care for shared libraries, you may want to install binutils
16679 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16680 *** You will then need to restart the configuration process.
16689 # see comment about AmigaOS4 .so support
16690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16691 archive_expsym_cmds=''
16694 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)'
16695 hardcode_libdir_flag_spec
='-L$libdir'
16696 hardcode_minus_L
=yes
16702 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16703 allow_undefined_flag
=unsupported
16704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16705 # support --undefined. This deserves some investigation. FIXME
16706 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16712 cygwin
* | mingw
* | pw32
* | cegcc
*)
16713 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16714 # as there is no search path for DLLs.
16715 hardcode_libdir_flag_spec
='-L$libdir'
16716 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16717 allow_undefined_flag
=unsupported
16718 always_export_symbols
=no
16719 enable_shared_with_static_runtimes
=yes
16720 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16722 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16723 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16724 # If the export-symbols file already is a .def file (1st line
16725 # is EXPORTS), use it as is; otherwise, prepend...
16726 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16727 cp $export_symbols $output_objdir/$soname.def;
16729 echo EXPORTS > $output_objdir/$soname.def;
16730 cat $export_symbols >> $output_objdir/$soname.def;
16732 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16739 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16740 link_all_deplibs
=yes
16745 hardcode_shlibpath_var
=no
16746 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16747 export_dynamic_flag_spec
='${wl}-E'
16748 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16749 # Instead, shared libraries are loaded at an image base (0x10000000 by
16750 # default) and relocated if they conflict, which is a slow very memory
16751 # consuming and fragmenting process. To avoid this, we pick a random,
16752 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16753 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16754 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16755 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'
16758 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
16760 if test "$host_os" = linux-dietlibc
; then
16761 case $cc_basename in
16762 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16765 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16766 && test "$tmp_diet" = no
16768 tmp_addflag
=' $pic_flag'
16769 tmp_sharedflag
='-shared'
16770 case $cc_basename,$host_cpu in
16771 pgcc
*) # Portland Group C compiler
16772 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'
16773 tmp_addflag
=' $pic_flag'
16775 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16776 # Portland Group f77 and f90 compilers
16777 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'
16778 tmp_addflag
=' $pic_flag -Mnomain' ;;
16779 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16780 tmp_addflag
=' -i_dynamic' ;;
16781 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16782 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16783 ifc
* | ifort
*) # Intel Fortran compiler
16784 tmp_addflag
=' -nofor_main' ;;
16785 lf95
*) # Lahey Fortran 8.1
16786 whole_archive_flag_spec
=
16787 tmp_sharedflag
='--shared' ;;
16788 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16789 tmp_sharedflag
='-qmkshrobj'
16791 nvcc
*) # Cuda Compiler Driver 2.2
16792 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'
16793 compiler_needs_object
=yes
16796 case `$CC -V 2>&1 | sed 5q` in
16797 *Sun\ C
*) # Sun C 5.9
16798 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'
16799 compiler_needs_object
=yes
16800 tmp_sharedflag
='-G' ;;
16801 *Sun\ F
*) # Sun Fortran 8.3
16802 tmp_sharedflag
='-G' ;;
16804 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16806 if test "x$supports_anon_versioning" = xyes
; then
16807 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16809 echo "local: *; };" >> $output_objdir/$libname.ver~
16810 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16813 case $cc_basename in
16814 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16815 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16816 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16817 hardcode_libdir_flag_spec
=
16818 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16819 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16820 if test "x$supports_anon_versioning" = xyes
; then
16821 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16822 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16823 echo "local: *; };" >> $output_objdir/$libname.ver~
16824 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16834 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16835 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16838 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16839 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16844 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16848 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16849 *** create shared libraries on Solaris systems. Therefore, libtool
16850 *** is disabling shared libraries support. We urge you to upgrade GNU
16851 *** binutils to release 2.9.1 or newer. Another option is to modify
16852 *** your PATH or compiler configuration so that the native linker is
16853 *** used, and then restart.
16856 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16857 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16858 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16864 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16865 case `$LD -v 2>&1` in
16866 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16870 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16871 *** reliably create shared libraries on SCO systems. Therefore, libtool
16872 *** is disabling shared libraries support. We urge you to upgrade GNU
16873 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16874 *** your PATH or compiler configuration so that the native linker is
16875 *** used, and then restart.
16880 # For security reasons, it is highly recommended that you always
16881 # use absolute paths for naming shared libraries, and exclude the
16882 # DT_RUNPATH tag from executables and libraries. But doing so
16883 # requires that you compile everything twice, which is a pain.
16884 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16885 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16886 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16887 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16896 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16898 hardcode_direct
=yes
16899 hardcode_shlibpath_var
=no
16903 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16904 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16905 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16912 if test "$ld_shlibs" = no
; then
16914 hardcode_libdir_flag_spec
=
16915 export_dynamic_flag_spec
=
16916 whole_archive_flag_spec
=
16919 # PORTME fill in a description of your system's linker (not GNU ld)
16922 allow_undefined_flag
=unsupported
16923 always_export_symbols
=yes
16924 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'
16925 # Note: this linker hardcodes the directories in LIBPATH if there
16926 # are no directories specified by -L.
16927 hardcode_minus_L
=yes
16928 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16929 # Neither direct hardcoding nor static linking is supported with a
16931 hardcode_direct
=unsupported
16936 if test "$host_cpu" = ia64
; then
16937 # On IA64, the linker does run time linking by default, so we don't
16938 # have to do anything special.
16939 aix_use_runtimelinking
=no
16940 exp_sym_flag
='-Bexport'
16943 # If we're using GNU nm, then we don't want the "-C" option.
16944 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16945 # Also, AIX nm treats weak defined symbols like other global
16946 # defined symbols, whereas GNU nm marks them as "W".
16947 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16948 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'
16950 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'
16952 aix_use_runtimelinking
=no
16954 # Test if we are trying to use run time linking or normal
16955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16956 # need to do runtime linking.
16957 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16958 for ld_flag
in $LDFLAGS; do
16959 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16960 aix_use_runtimelinking
=yes
16967 exp_sym_flag
='-bexport'
16968 no_entry_flag
='-bnoentry'
16971 # When large executables or shared objects are built, AIX ld can
16972 # have problems creating the table of contents. If linking a library
16973 # or program results in "error TOC overflow" add -mminimal-toc to
16974 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16975 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16978 hardcode_direct
=yes
16979 hardcode_direct_absolute
=yes
16980 hardcode_libdir_separator
=':'
16981 link_all_deplibs
=yes
16982 file_list_spec
='${wl}-f,'
16984 if test "$GCC" = yes; then
16985 case $host_os in aix4.
[012]|aix4.
[012].
*)
16986 # We only want to do this on AIX 4.2 and lower, the check
16987 # below for broken collect2 doesn't work under 4.3+
16988 collect2name
=`${CC} -print-prog-name=collect2`
16989 if test -f "$collect2name" &&
16990 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16992 # We have reworked collect2
16995 # We have old collect2
16996 hardcode_direct
=unsupported
16997 # It fails to find uninstalled libraries when the uninstalled
16998 # path is not listed in the libpath. Setting hardcode_minus_L
16999 # to unsupported forces relinking
17000 hardcode_minus_L
=yes
17001 hardcode_libdir_flag_spec
='-L$libdir'
17002 hardcode_libdir_separator
=
17006 shared_flag
='-shared'
17007 if test "$aix_use_runtimelinking" = yes; then
17008 shared_flag
="$shared_flag "'${wl}-G'
17012 if test "$host_cpu" = ia64
; then
17013 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17014 # chokes on -Wl,-G. The following line is correct:
17017 if test "$aix_use_runtimelinking" = yes; then
17018 shared_flag
='${wl}-G'
17020 shared_flag
='${wl}-bM:SRE'
17025 export_dynamic_flag_spec
='${wl}-bexpall'
17026 # It seems that -bexpall does not export symbols beginning with
17027 # underscore (_), so it is better to generate a list of symbols to export.
17028 always_export_symbols
=yes
17029 if test "$aix_use_runtimelinking" = yes; then
17030 # Warning - without using the other runtime loading flags (-brtl),
17031 # -berok will link without error, but may produce a broken library.
17032 allow_undefined_flag
='-berok'
17033 # Determine the default libpath from the value encoded in an
17034 # empty executable.
17035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17046 if ac_fn_c_try_link
"$LINENO"; then :
17048 lt_aix_libpath_sed
='
17049 /Import File Strings/,/^$/ {
17055 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17056 # Check for a 64-bit object if we didn't find anything.
17057 if test -z "$aix_libpath"; then
17058 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17061 rm -f core conftest.err conftest.
$ac_objext \
17062 conftest
$ac_exeext conftest.
$ac_ext
17063 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17065 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17066 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"
17068 if test "$host_cpu" = ia64
; then
17069 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17070 allow_undefined_flag
="-z nodefs"
17071 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"
17073 # Determine the default libpath from the value encoded in an
17074 # empty executable.
17075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17076 /* end confdefs.h. */
17086 if ac_fn_c_try_link
"$LINENO"; then :
17088 lt_aix_libpath_sed
='
17089 /Import File Strings/,/^$/ {
17095 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17096 # Check for a 64-bit object if we didn't find anything.
17097 if test -z "$aix_libpath"; then
17098 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17101 rm -f core conftest.err conftest.
$ac_objext \
17102 conftest
$ac_exeext conftest.
$ac_ext
17103 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17105 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17106 # Warning - without using the other run time loading flags,
17107 # -berok will link without error, but may produce a broken library.
17108 no_undefined_flag
=' ${wl}-bernotok'
17109 allow_undefined_flag
=' ${wl}-berok'
17110 if test "$with_gnu_ld" = yes; then
17111 # We only use this code for GNU lds that support --whole-archive.
17112 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17114 # Exported symbols can be pulled into shared objects from archives
17115 whole_archive_flag_spec
='$convenience'
17117 archive_cmds_need_lc
=yes
17118 # This is similar to how AIX traditionally builds its shared libraries.
17119 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'
17127 # see comment about AmigaOS4 .so support
17128 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17129 archive_expsym_cmds
=''
17132 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)'
17133 hardcode_libdir_flag_spec
='-L$libdir'
17134 hardcode_minus_L
=yes
17140 export_dynamic_flag_spec
=-rdynamic
17143 cygwin
* | mingw
* | pw32
* | cegcc
*)
17144 # When not using gcc, we currently assume that we are using
17145 # Microsoft Visual C++.
17146 # hardcode_libdir_flag_spec is actually meaningless, as there is
17147 # no search path for DLLs.
17148 hardcode_libdir_flag_spec
=' '
17149 allow_undefined_flag
=unsupported
17150 # Tell ltmain to make .lib files, not .a files.
17152 # Tell ltmain to make .dll files, not .so files.
17154 # FIXME: Setting linknames here is a bad hack.
17155 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17156 # The linker will automatically build a .lib file if we build a DLL.
17157 old_archive_from_new_cmds
='true'
17158 # FIXME: Should let the user specify the lib program.
17159 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17160 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17161 enable_shared_with_static_runtimes
=yes
17164 darwin
* | rhapsody
*)
17167 archive_cmds_need_lc
=no
17169 hardcode_automatic
=yes
17170 hardcode_shlibpath_var
=unsupported
17171 if test "$lt_cv_ld_force_load" = "yes"; then
17172 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\"`'
17174 whole_archive_flag_spec
=''
17176 link_all_deplibs
=yes
17177 allow_undefined_flag
="$_lt_dar_allow_undefined"
17178 case $cc_basename in
17179 ifort
*) _lt_dar_can_shared
=yes ;;
17180 *) _lt_dar_can_shared
=$GCC ;;
17182 if test "$_lt_dar_can_shared" = "yes"; then
17183 output_verbose_link_cmd
=func_echo_all
17184 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17185 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17186 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}"
17187 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}"
17196 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17197 hardcode_libdir_flag_spec
='-L$libdir'
17198 hardcode_shlibpath_var
=no
17201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17202 # support. Future versions do this automatically, but an explicit c++rt0.o
17203 # does not break anything, and helps significantly (at the cost of a little
17206 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17207 hardcode_libdir_flag_spec
='-R$libdir'
17208 hardcode_direct
=yes
17209 hardcode_shlibpath_var
=no
17212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17214 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17215 hardcode_direct
=yes
17216 hardcode_minus_L
=yes
17217 hardcode_shlibpath_var
=no
17220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17221 freebsd
* | dragonfly
*)
17222 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17223 hardcode_libdir_flag_spec
='-R$libdir'
17224 hardcode_direct
=yes
17225 hardcode_shlibpath_var
=no
17229 if test "$GCC" = yes; then
17230 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'
17232 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'
17234 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17235 hardcode_libdir_separator
=:
17236 hardcode_direct
=yes
17238 # hardcode_minus_L: Not really in the search PATH,
17239 # but as the default location of the library.
17240 hardcode_minus_L
=yes
17241 export_dynamic_flag_spec
='${wl}-E'
17245 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17246 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17248 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17250 if test "$with_gnu_ld" = no
; then
17251 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17252 hardcode_libdir_flag_spec_ld
='+b $libdir'
17253 hardcode_libdir_separator
=:
17254 hardcode_direct
=yes
17255 hardcode_direct_absolute
=yes
17256 export_dynamic_flag_spec
='${wl}-E'
17257 # hardcode_minus_L: Not really in the search PATH,
17258 # but as the default location of the library.
17259 hardcode_minus_L
=yes
17264 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17267 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17270 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17273 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17279 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17282 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17286 # Older versions of the 11.00 compiler do not understand -b yet
17287 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17289 $as_echo_n "checking if $CC understands -b... " >&6; }
17290 if ${lt_cv_prog_compiler__b+:} false
; then :
17291 $as_echo_n "(cached) " >&6
17293 lt_cv_prog_compiler__b
=no
17294 save_LDFLAGS
="$LDFLAGS"
17295 LDFLAGS
="$LDFLAGS -b"
17296 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17297 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17298 # The linker can only warn and ignore the option if not recognized
17299 # So say no if there are warnings
17300 if test -s conftest.err
; then
17301 # Append any errors to the config.log.
17302 cat conftest.err
1>&5
17303 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17304 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17305 if diff conftest.exp conftest.er2
>/dev
/null
; then
17306 lt_cv_prog_compiler__b
=yes
17309 lt_cv_prog_compiler__b
=yes
17313 LDFLAGS
="$save_LDFLAGS"
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17317 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17319 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17320 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17322 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17328 if test "$with_gnu_ld" = no
; then
17329 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17330 hardcode_libdir_separator
=:
17335 hardcode_shlibpath_var
=no
17338 hardcode_direct
=yes
17339 hardcode_direct_absolute
=yes
17340 export_dynamic_flag_spec
='${wl}-E'
17342 # hardcode_minus_L: Not really in the search PATH,
17343 # but as the default location of the library.
17344 hardcode_minus_L
=yes
17350 irix5
* | irix6
* | nonstopux
*)
17351 if test "$GCC" = yes; then
17352 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'
17353 # Try to use the -exported_symbol ld option, if it does not
17354 # work, assume that -exports_file does not work either and
17355 # implicitly export all symbols.
17356 save_LDFLAGS
="$LDFLAGS"
17357 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17359 /* end confdefs.h. */
17362 if ac_fn_c_try_link
"$LINENO"; then :
17363 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'
17366 rm -f core conftest.err conftest.
$ac_objext \
17367 conftest
$ac_exeext conftest.
$ac_ext
17368 LDFLAGS
="$save_LDFLAGS"
17370 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'
17371 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'
17373 archive_cmds_need_lc
='no'
17374 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17375 hardcode_libdir_separator
=:
17377 link_all_deplibs
=yes
17381 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17382 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17384 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17386 hardcode_libdir_flag_spec
='-R$libdir'
17387 hardcode_direct
=yes
17388 hardcode_shlibpath_var
=no
17392 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17393 hardcode_direct
=yes
17394 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17395 hardcode_libdir_separator
=:
17396 hardcode_shlibpath_var
=no
17403 if test -f /usr
/libexec
/ld.so
; then
17404 hardcode_direct
=yes
17405 hardcode_shlibpath_var
=no
17406 hardcode_direct_absolute
=yes
17407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17408 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17409 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17410 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17411 export_dynamic_flag_spec
='${wl}-E'
17414 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17415 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17416 hardcode_libdir_flag_spec
='-R$libdir'
17419 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17420 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17430 hardcode_libdir_flag_spec
='-L$libdir'
17431 hardcode_minus_L
=yes
17432 allow_undefined_flag
=unsupported
17433 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'
17434 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17438 if test "$GCC" = yes; then
17439 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17440 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'
17442 allow_undefined_flag
=' -expect_unresolved \*'
17443 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'
17445 archive_cmds_need_lc
='no'
17446 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17447 hardcode_libdir_separator
=:
17450 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17451 if test "$GCC" = yes; then
17452 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17453 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'
17454 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17456 allow_undefined_flag
=' -expect_unresolved \*'
17457 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'
17458 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~
17459 $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'
17461 # Both c and cxx compiler support -rpath directly
17462 hardcode_libdir_flag_spec
='-rpath $libdir'
17464 archive_cmds_need_lc
='no'
17465 hardcode_libdir_separator
=:
17469 no_undefined_flag
=' -z defs'
17470 if test "$GCC" = yes; then
17472 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17474 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17476 case `$CC -V 2>&1` in
17479 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17480 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17481 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17485 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17486 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17487 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17491 hardcode_libdir_flag_spec
='-R$libdir'
17492 hardcode_shlibpath_var
=no
17494 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17496 # The compiler driver will combine and reorder linker options,
17497 # but understands `-z linker_flag'. GCC discards it without `$wl',
17498 # but is careful enough not to reorder.
17499 # Supported since Solaris 2.6 (maybe 2.5.1?)
17500 if test "$GCC" = yes; then
17501 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17503 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17507 link_all_deplibs
=yes
17511 if test "x$host_vendor" = xsequent
; then
17512 # Use $CC to link under sequent, because it throws in some extra .o
17513 # files that make .init and .fini sections work.
17514 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17516 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17518 hardcode_libdir_flag_spec
='-L$libdir'
17519 hardcode_direct
=yes
17520 hardcode_minus_L
=yes
17521 hardcode_shlibpath_var
=no
17525 case $host_vendor in
17527 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17528 hardcode_direct
=yes # is this really true???
17531 ## LD is ld it makes a PLAMLIB
17532 ## CC just makes a GrossModule.
17533 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17534 reload_cmds
='$CC -r -o $output$reload_objs'
17538 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17542 runpath_var
='LD_RUN_PATH'
17543 hardcode_shlibpath_var
=no
17547 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17548 hardcode_shlibpath_var
=no
17549 export_dynamic_flag_spec
='-Bexport'
17553 if test -d /usr
/nec
; then
17554 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17555 hardcode_shlibpath_var
=no
17556 runpath_var
=LD_RUN_PATH
17557 hardcode_runpath_var
=yes
17562 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17563 no_undefined_flag
='${wl}-z,text'
17564 archive_cmds_need_lc
=no
17565 hardcode_shlibpath_var
=no
17566 runpath_var
='LD_RUN_PATH'
17568 if test "$GCC" = yes; then
17569 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17570 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17572 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17573 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17577 sysv5
* | sco3.2v5
* | sco5v6
*)
17578 # Note: We can NOT use -z defs as we might desire, because we do not
17579 # link with -lc, and that would cause any symbols used from libc to
17580 # always be unresolved, which means just about no library would
17581 # ever link correctly. If we're not using GNU ld we use -z text
17582 # though, which does catch some bad symbols but isn't as heavy-handed
17584 no_undefined_flag
='${wl}-z,text'
17585 allow_undefined_flag
='${wl}-z,nodefs'
17586 archive_cmds_need_lc
=no
17587 hardcode_shlibpath_var
=no
17588 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17589 hardcode_libdir_separator
=':'
17590 link_all_deplibs
=yes
17591 export_dynamic_flag_spec
='${wl}-Bexport'
17592 runpath_var
='LD_RUN_PATH'
17594 if test "$GCC" = yes; then
17595 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17596 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17598 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17599 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17604 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17605 hardcode_libdir_flag_spec
='-L$libdir'
17606 hardcode_shlibpath_var
=no
17614 if test x
$host_vendor = xsni
; then
17616 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17617 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17624 $as_echo "$ld_shlibs" >&6; }
17625 test "$ld_shlibs" = no
&& can_build_shared
=no
17627 with_gnu_ld
=$with_gnu_ld
17644 # Do we need to explicitly link libc?
17646 case "x$archive_cmds_need_lc" in
17648 # Assume -lc should be added
17649 archive_cmds_need_lc
=yes
17651 if test "$enable_shared" = yes && test "$GCC" = yes; then
17652 case $archive_cmds in
17654 # FIXME: we may have to deal with multi-command sequences.
17657 # Test whether the compiler implicitly links with -lc since on some
17658 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17659 # to ld, don't add -lc before -lgcc.
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17661 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17662 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17663 $as_echo_n "(cached) " >&6
17666 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17669 (eval $ac_compile) 2>&5
17671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17672 test $ac_status = 0; } 2>conftest.err
; then
17675 libobjs
=conftest.
$ac_objext
17677 wl
=$lt_prog_compiler_wl
17678 pic_flag
=$lt_prog_compiler_pic
17684 lt_save_allow_undefined_flag
=$allow_undefined_flag
17685 allow_undefined_flag
=
17686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17687 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17690 test $ac_status = 0; }
17692 lt_cv_archive_cmds_need_lc
=no
17694 lt_cv_archive_cmds_need_lc
=yes
17696 allow_undefined_flag
=$lt_save_allow_undefined_flag
17698 cat conftest.err
1>&5
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17704 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17705 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17869 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17871 if test "$GCC" = yes; then
17873 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17874 *) lt_awk_arg
="/^libraries:/" ;;
17877 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17878 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17880 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17881 case $lt_search_path_spec in
17883 # if the path contains ";" then we assume it to be the separator
17884 # otherwise default to the standard path separator (i.e. ":") - it is
17885 # assumed that no part of a normal pathname contains ";" but that should
17886 # okay in the real world where ";" in dirpaths is itself problematic.
17887 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17890 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17893 # Ok, now we have the path, separated by spaces, we can step through it
17894 # and add multilib dir if necessary.
17895 lt_tmp_lt_search_path_spec
=
17896 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17897 for lt_sys_path
in $lt_search_path_spec; do
17898 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17899 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17901 test -d "$lt_sys_path" && \
17902 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17905 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17906 BEGIN {RS=" "; FS="/|\n";} {
17909 for (lt_i = NF; lt_i > 0; lt_i--) {
17910 if ($lt_i != "" && $lt_i != ".") {
17911 if ($lt_i == "..") {
17914 if (lt_count == 0) {
17915 lt_foo="/" $lt_i lt_foo;
17922 if (lt_foo != "") { lt_freq[lt_foo]++; }
17923 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17925 # AWK program above erroneously prepends '/' to C:/dos/paths
17928 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17929 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17931 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17933 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17935 library_names_spec
=
17936 libname_spec
='lib$name'
17940 postuninstall_cmds
=
17944 shlibpath_overrides_runpath
=unknown
17946 dynamic_linker
="$host_os ld.so"
17947 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17948 need_lib_prefix
=unknown
17949 hardcode_into_libs
=no
17951 # when you set need_version to no, make sure it does not cause -set_version
17952 # flags to be left without arguments
17953 need_version
=unknown
17958 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17959 shlibpath_var
=LIBPATH
17961 # AIX 3 has no versioning support, so we append a major version to the name.
17962 soname_spec
='${libname}${release}${shared_ext}$major'
17969 hardcode_into_libs
=yes
17970 if test "$host_cpu" = ia64
; then
17971 # AIX 5 supports IA64
17972 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17973 shlibpath_var
=LD_LIBRARY_PATH
17975 # With GCC up to 2.95.x, collect2 would create an import file
17976 # for dependence libraries. The import file would start with
17977 # the line `#! .'. This would cause the generated library to
17978 # depend on `.', always an invalid library. This was fixed in
17979 # development snapshots of GCC prior to 3.0.
17981 aix4 | aix4.
[01] | aix4.
[01].
*)
17982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17984 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17987 can_build_shared
=no
17991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17992 # soname into executable. Probably we can add versioning support to
17993 # collect2, so additional links can be useful in future.
17994 if test "$aix_use_runtimelinking" = yes; then
17995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17996 # instead of lib<name>.a to let people know that these are not
17997 # typical AIX shared libraries.
17998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000 # We preserve .a as extension for shared libraries through AIX4.2
18001 # and later when we are not doing run time linking.
18002 library_names_spec
='${libname}${release}.a $libname.a'
18003 soname_spec
='${libname}${release}${shared_ext}$major'
18005 shlibpath_var
=LIBPATH
18012 # Since July 2007 AmigaOS4 officially supports .so libraries.
18013 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017 library_names_spec
='$libname.ixlibrary $libname.a'
18018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18019 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'
18025 library_names_spec
='${libname}${shared_ext}'
18026 dynamic_linker
="$host_os ld.so"
18027 shlibpath_var
=LIBRARY_PATH
18033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec
='${libname}${release}${shared_ext}$major'
18035 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18036 shlibpath_var
=LD_LIBRARY_PATH
18037 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18038 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18039 # the default ld.so.conf also contains /usr/contrib/lib and
18040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18041 # libtool to hard-code these into programs
18044 cygwin
* | mingw
* | pw32
* | cegcc
*)
18045 version_type
=windows
18050 case $GCC,$host_os in
18051 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18052 library_names_spec
='$libname.dll.a'
18053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18054 postinstall_cmds
='base_file=`basename \${file}`~
18055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18056 dldir=$destdir/`dirname \$dlpath`~
18057 test -d \$dldir || mkdir -p \$dldir~
18058 $install_prog $dir/$dlname \$dldir/$dlname~
18059 chmod a+x \$dldir/$dlname~
18060 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18061 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18063 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18064 dlpath=$dir/\$dldll~
18066 shlibpath_overrides_runpath
=yes
18070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18071 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18073 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18076 # MinGW DLLs use traditional 'lib' prefix
18077 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18080 # pw32 DLLs use 'pw' prefix rather than 'lib'
18081 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18087 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18090 dynamic_linker
='Win32 ld.exe'
18091 # FIXME: first we should search . and the directory the executable is in
18095 darwin
* | rhapsody
*)
18096 dynamic_linker
="$host_os dyld"
18097 version_type
=darwin
18100 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18101 soname_spec
='${libname}${release}${major}$shared_ext'
18102 shlibpath_overrides_runpath
=yes
18103 shlibpath_var
=DYLD_LIBRARY_PATH
18104 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18106 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18107 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18115 soname_spec
='${libname}${release}${shared_ext}$major'
18116 shlibpath_var
=LD_LIBRARY_PATH
18119 freebsd
* | dragonfly
*)
18120 # DragonFly does not have aout. When/if they implement a new
18121 # versioning mechanism, adjust this.
18122 if test -x /usr
/bin
/objformat
; then
18123 objformat
=`/usr/bin/objformat`
18126 freebsd
[23].
*) objformat
=aout
;;
18127 *) objformat
=elf
;;
18130 version_type
=freebsd-
$objformat
18131 case $version_type in
18133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18138 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18142 shlibpath_var
=LD_LIBRARY_PATH
18145 shlibpath_overrides_runpath
=yes
18147 freebsd3.
[01]* | freebsdelf3.
[01]*)
18148 shlibpath_overrides_runpath
=yes
18149 hardcode_into_libs
=yes
18151 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18152 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18153 shlibpath_overrides_runpath
=no
18154 hardcode_into_libs
=yes
18156 *) # from 4.6 on, and DragonFly
18157 shlibpath_overrides_runpath
=yes
18158 hardcode_into_libs
=yes
18167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18168 soname_spec
='${libname}${release}${shared_ext}$major'
18169 shlibpath_var
=LD_LIBRARY_PATH
18170 hardcode_into_libs
=yes
18177 dynamic_linker
="$host_os runtime_loader"
18178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18179 soname_spec
='${libname}${release}${shared_ext}$major'
18180 shlibpath_var
=LIBRARY_PATH
18181 shlibpath_overrides_runpath
=yes
18182 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18183 hardcode_into_libs
=yes
18186 hpux9
* | hpux10
* | hpux11
*)
18187 # Give a soname corresponding to the major version so that dld.sl refuses to
18188 # link against other versions.
18195 hardcode_into_libs
=yes
18196 dynamic_linker
="$host_os dld.so"
18197 shlibpath_var
=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18199 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18200 soname_spec
='${libname}${release}${shared_ext}$major'
18201 if test "X$HPUX_IA64_MODE" = X32
; then
18202 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18204 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18206 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18210 hardcode_into_libs
=yes
18211 dynamic_linker
="$host_os dld.sl"
18212 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18213 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215 soname_spec
='${libname}${release}${shared_ext}$major'
18216 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18217 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18221 dynamic_linker
="$host_os dld.sl"
18222 shlibpath_var
=SHLIB_PATH
18223 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18225 soname_spec
='${libname}${release}${shared_ext}$major'
18228 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18229 postinstall_cmds
='chmod 555 $lib'
18230 # or fails outright, so override atomically:
18231 install_override_mode
=555
18238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18239 soname_spec
='${libname}${release}${shared_ext}$major'
18240 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18241 shlibpath_var
=LD_LIBRARY_PATH
18242 shlibpath_overrides_runpath
=no
18243 hardcode_into_libs
=yes
18246 irix5
* | irix6
* | nonstopux
*)
18248 nonstopux
*) version_type
=nonstopux
;;
18250 if test "$lt_cv_prog_gnu_ld" = yes; then
18258 soname_spec
='${libname}${release}${shared_ext}$major'
18259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18261 irix5
* | nonstopux
*)
18262 libsuff
= shlibsuff
=
18265 case $LD in # libtool.m4 will add one of these switches to LD
18266 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18267 libsuff
= shlibsuff
= libmagic
=32-bit;;
18268 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18269 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18270 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18271 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18272 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18276 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18277 shlibpath_overrides_runpath
=no
18278 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18279 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18280 hardcode_into_libs
=yes
18283 # No shared lib support for Linux oldld, aout, or coff.
18284 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18288 # This must be Linux ELF.
18290 # uclinux* changes (here and below) have been submitted to the libtool
18291 # project, but have not yet been accepted: they are GCC-local changes
18292 # for the time being. (See
18293 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18294 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
18298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299 soname_spec
='${libname}${release}${shared_ext}$major'
18300 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18301 shlibpath_var
=LD_LIBRARY_PATH
18302 shlibpath_overrides_runpath
=no
18304 # Some binutils ld are patched to set DT_RUNPATH
18305 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18306 $as_echo_n "(cached) " >&6
18308 lt_cv_shlibpath_overrides_runpath
=no
18309 save_LDFLAGS
=$LDFLAGS
18310 save_libdir
=$libdir
18311 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18312 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18314 /* end confdefs.h. */
18324 if ac_fn_c_try_link
"$LINENO"; then :
18325 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18326 lt_cv_shlibpath_overrides_runpath
=yes
18329 rm -f core conftest.err conftest.
$ac_objext \
18330 conftest
$ac_exeext conftest.
$ac_ext
18331 LDFLAGS
=$save_LDFLAGS
18332 libdir
=$save_libdir
18336 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18338 # This implies no fast_install, which is unacceptable.
18339 # Some rework will be needed to allow for fast_install
18340 # before this can be enabled.
18341 hardcode_into_libs
=yes
18343 # Append ld.so.conf contents to the search path
18344 if test -f /etc
/ld.so.conf
; then
18345 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' ' '`
18346 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18349 # We used to test for /lib/ld.so.1 and disable shared libraries on
18350 # powerpc, because MkLinux only supported shared libraries with the
18351 # GNU dynamic linker. Since this was broken with cross compilers,
18352 # most powerpc-linux boxes support dynamic linking these days and
18353 # people can always --disable-shared, the test was removed, and we
18354 # assume the GNU/Linux dynamic linker is in use.
18355 dynamic_linker
='GNU/Linux ld.so'
18362 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18363 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18364 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18365 dynamic_linker
='NetBSD (a.out) ld.so'
18367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18368 soname_spec
='${libname}${release}${shared_ext}$major'
18369 dynamic_linker
='NetBSD ld.elf_so'
18371 shlibpath_var
=LD_LIBRARY_PATH
18372 shlibpath_overrides_runpath
=yes
18373 hardcode_into_libs
=yes
18378 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 shlibpath_var
=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath
=yes
18387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18388 soname_spec
='${libname}${release}${shared_ext}$major'
18389 shlibpath_var
=LD_LIBRARY_PATH
18390 shlibpath_overrides_runpath
=no
18391 hardcode_into_libs
=yes
18392 dynamic_linker
='ldqnx.so'
18397 sys_lib_dlsearch_path_spec
="/usr/lib"
18399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18401 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18402 *) need_version
=no
;;
18404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18405 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18406 shlibpath_var
=LD_LIBRARY_PATH
18407 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18409 openbsd2.
[89] | openbsd2.
[89].
*)
18410 shlibpath_overrides_runpath
=no
18413 shlibpath_overrides_runpath
=yes
18417 shlibpath_overrides_runpath
=yes
18422 libname_spec
='$name'
18425 library_names_spec
='$libname${shared_ext} $libname.a'
18426 dynamic_linker
='OS/2 ld.exe'
18427 shlibpath_var
=LIBPATH
18430 osf3
* | osf4
* | osf5
*)
18434 soname_spec
='${libname}${release}${shared_ext}$major'
18435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18436 shlibpath_var
=LD_LIBRARY_PATH
18437 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18438 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18449 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18450 soname_spec
='${libname}${release}${shared_ext}$major'
18451 shlibpath_var
=LD_LIBRARY_PATH
18452 shlibpath_overrides_runpath
=yes
18453 hardcode_into_libs
=yes
18454 # ldd complains unless libraries are executable
18455 postinstall_cmds
='chmod +x $lib'
18460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18461 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18462 shlibpath_var
=LD_LIBRARY_PATH
18463 shlibpath_overrides_runpath
=yes
18464 if test "$with_gnu_ld" = yes; then
18472 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473 soname_spec
='${libname}${release}${shared_ext}$major'
18474 shlibpath_var
=LD_LIBRARY_PATH
18475 case $host_vendor in
18477 shlibpath_overrides_runpath
=no
18479 runpath_var
=LD_RUN_PATH
18487 shlibpath_overrides_runpath
=no
18488 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18494 if test -d /usr
/nec
;then
18496 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18497 soname_spec
='$libname${shared_ext}.$major'
18498 shlibpath_var
=LD_LIBRARY_PATH
18502 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18503 version_type
=freebsd-elf
18506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18507 soname_spec
='${libname}${release}${shared_ext}$major'
18508 shlibpath_var
=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath
=yes
18510 hardcode_into_libs
=yes
18511 if test "$with_gnu_ld" = yes; then
18512 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18514 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18517 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18521 sys_lib_dlsearch_path_spec
='/usr/lib'
18525 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530 shlibpath_var
=LD_LIBRARY_PATH
18531 shlibpath_overrides_runpath
=no
18532 hardcode_into_libs
=yes
18537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538 soname_spec
='${libname}${release}${shared_ext}$major'
18539 shlibpath_var
=LD_LIBRARY_PATH
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18547 $as_echo "$dynamic_linker" >&6; }
18548 test "$dynamic_linker" = no
&& can_build_shared
=no
18550 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18551 if test "$GCC" = yes; then
18552 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18555 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18556 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18558 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18559 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18654 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18656 if test -n "$hardcode_libdir_flag_spec" ||
18657 test -n "$runpath_var" ||
18658 test "X$hardcode_automatic" = "Xyes" ; then
18660 # We can hardcode non-existent directories.
18661 if test "$hardcode_direct" != no
&&
18662 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18663 # have to relink, otherwise we might link with an installed library
18664 # when we should be linking with a yet-to-be-installed one
18665 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18666 test "$hardcode_minus_L" != no
; then
18667 # Linking always hardcodes the temporary library directory.
18668 hardcode_action
=relink
18670 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18671 hardcode_action
=immediate
18674 # We cannot hardcode anything, or else we can only hardcode existing
18676 hardcode_action
=unsupported
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18679 $as_echo "$hardcode_action" >&6; }
18681 if test "$hardcode_action" = relink ||
18682 test "$inherit_rpath" = yes; then
18683 # Fast installation is not supported
18684 enable_fast_install
=no
18685 elif test "$shlibpath_overrides_runpath" = yes ||
18686 test "$enable_shared" = no
; then
18687 # Fast installation is not necessary
18688 enable_fast_install
=needless
18696 if test "x$enable_dlopen" != xyes
; then
18697 enable_dlopen
=unknown
18698 enable_dlopen_self
=unknown
18699 enable_dlopen_self_static
=unknown
18706 lt_cv_dlopen
="load_add_on"
18708 lt_cv_dlopen_self
=yes
18711 mingw
* | pw32
* | cegcc
*)
18712 lt_cv_dlopen
="LoadLibrary"
18717 lt_cv_dlopen
="dlopen"
18722 # if libdl is installed we need to link against it
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18724 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18725 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18726 $as_echo_n "(cached) " >&6
18728 ac_check_lib_save_LIBS
=$LIBS
18730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18731 /* end confdefs.h. */
18733 /* Override any GCC internal prototype to avoid an error.
18734 Use char because int might match the return type of a GCC
18735 builtin and then its argument prototype would still apply. */
18748 if ac_fn_c_try_link
"$LINENO"; then :
18749 ac_cv_lib_dl_dlopen
=yes
18751 ac_cv_lib_dl_dlopen
=no
18753 rm -f core conftest.err conftest.
$ac_objext \
18754 conftest
$ac_exeext conftest.
$ac_ext
18755 LIBS
=$ac_check_lib_save_LIBS
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18758 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18759 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18760 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18763 lt_cv_dlopen
="dyld"
18765 lt_cv_dlopen_self
=yes
18772 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18773 if test "x$ac_cv_func_shl_load" = xyes
; then :
18774 lt_cv_dlopen
="shl_load"
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18777 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18778 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18779 $as_echo_n "(cached) " >&6
18781 ac_check_lib_save_LIBS
=$LIBS
18783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18786 /* Override any GCC internal prototype to avoid an error.
18787 Use char because int might match the return type of a GCC
18788 builtin and then its argument prototype would still apply. */
18796 return shl_load ();
18801 if ac_fn_c_try_link
"$LINENO"; then :
18802 ac_cv_lib_dld_shl_load
=yes
18804 ac_cv_lib_dld_shl_load
=no
18806 rm -f core conftest.err conftest.
$ac_objext \
18807 conftest
$ac_exeext conftest.
$ac_ext
18808 LIBS
=$ac_check_lib_save_LIBS
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18811 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18812 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18813 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18815 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18816 if test "x$ac_cv_func_dlopen" = xyes
; then :
18817 lt_cv_dlopen
="dlopen"
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18820 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18821 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18822 $as_echo_n "(cached) " >&6
18824 ac_check_lib_save_LIBS
=$LIBS
18826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18827 /* end confdefs.h. */
18829 /* Override any GCC internal prototype to avoid an error.
18830 Use char because int might match the return type of a GCC
18831 builtin and then its argument prototype would still apply. */
18844 if ac_fn_c_try_link
"$LINENO"; then :
18845 ac_cv_lib_dl_dlopen
=yes
18847 ac_cv_lib_dl_dlopen
=no
18849 rm -f core conftest.err conftest.
$ac_objext \
18850 conftest
$ac_exeext conftest.
$ac_ext
18851 LIBS
=$ac_check_lib_save_LIBS
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18854 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18855 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18856 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18859 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18860 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18861 $as_echo_n "(cached) " >&6
18863 ac_check_lib_save_LIBS
=$LIBS
18864 LIBS
="-lsvld $LIBS"
18865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18868 /* Override any GCC internal prototype to avoid an error.
18869 Use char because int might match the return type of a GCC
18870 builtin and then its argument prototype would still apply. */
18883 if ac_fn_c_try_link
"$LINENO"; then :
18884 ac_cv_lib_svld_dlopen
=yes
18886 ac_cv_lib_svld_dlopen
=no
18888 rm -f core conftest.err conftest.
$ac_objext \
18889 conftest
$ac_exeext conftest.
$ac_ext
18890 LIBS
=$ac_check_lib_save_LIBS
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18893 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18894 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18895 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18898 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18899 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18900 $as_echo_n "(cached) " >&6
18902 ac_check_lib_save_LIBS
=$LIBS
18904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18917 return dld_link ();
18922 if ac_fn_c_try_link
"$LINENO"; then :
18923 ac_cv_lib_dld_dld_link
=yes
18925 ac_cv_lib_dld_dld_link
=no
18927 rm -f core conftest.err conftest.
$ac_objext \
18928 conftest
$ac_exeext conftest.
$ac_ext
18929 LIBS
=$ac_check_lib_save_LIBS
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18932 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18933 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18934 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18955 if test "x$lt_cv_dlopen" != xno
; then
18961 case $lt_cv_dlopen in
18963 save_CPPFLAGS
="$CPPFLAGS"
18964 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18966 save_LDFLAGS
="$LDFLAGS"
18967 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18970 LIBS
="$lt_cv_dlopen_libs $LIBS"
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18973 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18974 if ${lt_cv_dlopen_self+:} false
; then :
18975 $as_echo_n "(cached) " >&6
18977 if test "$cross_compiling" = yes; then :
18978 lt_cv_dlopen_self
=cross
18980 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18981 lt_status
=$lt_dlunknown
18982 cat > conftest.
$ac_ext <<_LT_EOF
18983 #line 18983 "configure"
18984 #include "confdefs.h"
18993 # define LT_DLGLOBAL RTLD_GLOBAL
18996 # define LT_DLGLOBAL DL_GLOBAL
18998 # define LT_DLGLOBAL 0
19002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19003 find out it does not work in some platform. */
19004 #ifndef LT_DLLAZY_OR_NOW
19006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19009 # define LT_DLLAZY_OR_NOW DL_LAZY
19012 # define LT_DLLAZY_OR_NOW RTLD_NOW
19015 # define LT_DLLAZY_OR_NOW DL_NOW
19017 # define LT_DLLAZY_OR_NOW 0
19024 /* When -fvisbility=hidden is used, assume the code has been annotated
19025 correspondingly for the symbols needed. */
19026 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19027 void fnord () __attribute__((visibility("default")));
19030 void fnord () { int i=42; }
19033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19034 int status = $lt_dlunknown;
19038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19042 else puts (dlerror ());
19044 /* dlclose (self); */
19052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19053 (eval $ac_link) 2>&5
19055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19056 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19057 (.
/conftest
; exit; ) >&5 2>/dev
/null
19059 case x
$lt_status in
19060 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19061 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19062 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19065 # compilation failed
19066 lt_cv_dlopen_self
=no
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19074 $as_echo "$lt_cv_dlopen_self" >&6; }
19076 if test "x$lt_cv_dlopen_self" = xyes
; then
19077 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19079 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19080 if ${lt_cv_dlopen_self_static+:} false
; then :
19081 $as_echo_n "(cached) " >&6
19083 if test "$cross_compiling" = yes; then :
19084 lt_cv_dlopen_self_static
=cross
19086 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19087 lt_status
=$lt_dlunknown
19088 cat > conftest.
$ac_ext <<_LT_EOF
19089 #line 19089 "configure"
19090 #include "confdefs.h"
19099 # define LT_DLGLOBAL RTLD_GLOBAL
19102 # define LT_DLGLOBAL DL_GLOBAL
19104 # define LT_DLGLOBAL 0
19108 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19109 find out it does not work in some platform. */
19110 #ifndef LT_DLLAZY_OR_NOW
19112 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19115 # define LT_DLLAZY_OR_NOW DL_LAZY
19118 # define LT_DLLAZY_OR_NOW RTLD_NOW
19121 # define LT_DLLAZY_OR_NOW DL_NOW
19123 # define LT_DLLAZY_OR_NOW 0
19130 /* When -fvisbility=hidden is used, assume the code has been annotated
19131 correspondingly for the symbols needed. */
19132 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19133 void fnord () __attribute__((visibility("default")));
19136 void fnord () { int i=42; }
19139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19140 int status = $lt_dlunknown;
19144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19147 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19148 else puts (dlerror ());
19150 /* dlclose (self); */
19158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19159 (eval $ac_link) 2>&5
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19163 (.
/conftest
; exit; ) >&5 2>/dev
/null
19165 case x
$lt_status in
19166 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19167 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19168 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19171 # compilation failed
19172 lt_cv_dlopen_self_static
=no
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19180 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19183 CPPFLAGS
="$save_CPPFLAGS"
19184 LDFLAGS
="$save_LDFLAGS"
19189 case $lt_cv_dlopen_self in
19190 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19191 *) enable_dlopen_self
=unknown
;;
19194 case $lt_cv_dlopen_self_static in
19195 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19196 *) enable_dlopen_self_static
=unknown
;;
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19219 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19220 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19221 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19222 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19224 $as_echo "yes" >&6; }
19226 # FIXME - insert some real tests, host_os isn't really good enough
19229 if test -n "$STRIP" ; then
19230 striplib
="$STRIP -x"
19231 old_striplib
="$STRIP -S"
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233 $as_echo "yes" >&6; }
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19236 $as_echo "no" >&6; }
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19241 $as_echo "no" >&6; }
19257 # Report which library types will actually be built
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19259 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19261 $as_echo "$can_build_shared" >&6; }
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19264 $as_echo_n "checking whether to build shared libraries... " >&6; }
19265 test "$can_build_shared" = "no" && enable_shared
=no
19267 # On AIX, shared libraries and static libraries use the same namespace, and
19268 # are all built from PIC.
19271 test "$enable_shared" = yes && enable_static
=no
19272 if test -n "$RANLIB"; then
19273 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19274 postinstall_cmds
='$RANLIB $lib'
19279 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19280 test "$enable_shared" = yes && enable_static
=no
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19285 $as_echo "$enable_shared" >&6; }
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19288 $as_echo_n "checking whether to build static libraries... " >&6; }
19289 # Make sure either enable_shared or enable_static is yes.
19290 test "$enable_shared" = yes || enable_static
=yes
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19292 $as_echo "$enable_static" >&6; }
19299 ac_cpp
='$CXXCPP $CPPFLAGS'
19300 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19301 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19302 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19306 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19307 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19308 (test "X$CXX" != "Xg++"))) ; then
19310 ac_cpp
='$CXXCPP $CPPFLAGS'
19311 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19312 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19313 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19315 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19316 if test -z "$CXXCPP"; then
19317 if ${ac_cv_prog_CXXCPP+:} false
; then :
19318 $as_echo_n "(cached) " >&6
19320 # Double quotes because CXXCPP needs to be expanded
19321 for CXXCPP
in "$CXX -E" "/lib/cpp"
19323 ac_preproc_ok
=false
19324 for ac_cxx_preproc_warn_flag
in '' yes
19326 # Use a header file that comes with gcc, so configuring glibc
19327 # with a fresh cross-compiler works.
19328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19329 # <limits.h> exists even on freestanding compilers.
19330 # On the NeXT, cc -E runs the code through the compiler's parser,
19331 # not just through cpp. "Syntax error" is here to catch this case.
19332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h. */
19335 # include <limits.h>
19337 # include <assert.h>
19341 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19344 # Broken: fails on valid input.
19347 rm -f conftest.err conftest.i conftest.
$ac_ext
19349 # OK, works on sane cases. Now check whether nonexistent headers
19350 # can be detected and how.
19351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19353 #include <ac_nonexistent.h>
19355 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19356 # Broken: success on invalid input.
19359 # Passes both tests.
19363 rm -f conftest.err conftest.i conftest.
$ac_ext
19366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19367 rm -f conftest.i conftest.err conftest.
$ac_ext
19368 if $ac_preproc_ok; then :
19373 ac_cv_prog_CXXCPP
=$CXXCPP
19376 CXXCPP
=$ac_cv_prog_CXXCPP
19378 ac_cv_prog_CXXCPP
=$CXXCPP
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19381 $as_echo "$CXXCPP" >&6; }
19382 ac_preproc_ok
=false
19383 for ac_cxx_preproc_warn_flag
in '' yes
19385 # Use a header file that comes with gcc, so configuring glibc
19386 # with a fresh cross-compiler works.
19387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19388 # <limits.h> exists even on freestanding compilers.
19389 # On the NeXT, cc -E runs the code through the compiler's parser,
19390 # not just through cpp. "Syntax error" is here to catch this case.
19391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19394 # include <limits.h>
19396 # include <assert.h>
19400 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19403 # Broken: fails on valid input.
19406 rm -f conftest.err conftest.i conftest.
$ac_ext
19408 # OK, works on sane cases. Now check whether nonexistent headers
19409 # can be detected and how.
19410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19411 /* end confdefs.h. */
19412 #include <ac_nonexistent.h>
19414 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19415 # Broken: success on invalid input.
19418 # Passes both tests.
19422 rm -f conftest.err conftest.i conftest.
$ac_ext
19425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19426 rm -f conftest.i conftest.err conftest.
$ac_ext
19427 if $ac_preproc_ok; then :
19430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19432 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19433 See \`config.log' for more details" "$LINENO" 5; }
19437 ac_cpp
='$CXXCPP $CPPFLAGS'
19438 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19439 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19440 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19443 _lt_caught_CXX_error
=yes
19447 ac_cpp
='$CXXCPP $CPPFLAGS'
19448 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19449 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19450 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19452 archive_cmds_need_lc_CXX
=no
19453 allow_undefined_flag_CXX
=
19454 always_export_symbols_CXX
=no
19455 archive_expsym_cmds_CXX
=
19456 compiler_needs_object_CXX
=no
19457 export_dynamic_flag_spec_CXX
=
19458 hardcode_direct_CXX
=no
19459 hardcode_direct_absolute_CXX
=no
19460 hardcode_libdir_flag_spec_CXX
=
19461 hardcode_libdir_flag_spec_ld_CXX
=
19462 hardcode_libdir_separator_CXX
=
19463 hardcode_minus_L_CXX
=no
19464 hardcode_shlibpath_var_CXX
=unsupported
19465 hardcode_automatic_CXX
=no
19466 inherit_rpath_CXX
=no
19468 module_expsym_cmds_CXX
=
19469 link_all_deplibs_CXX
=unknown
19470 old_archive_cmds_CXX
=$old_archive_cmds
19471 reload_flag_CXX
=$reload_flag
19472 reload_cmds_CXX
=$reload_cmds
19473 no_undefined_flag_CXX
=
19474 whole_archive_flag_spec_CXX
=
19475 enable_shared_with_static_runtimes_CXX
=no
19477 # Source file extension for C++ test sources.
19480 # Object file extension for compiled C++ test sources.
19484 # No sense in running all these tests if we already determined that
19485 # the CXX compiler isn't working. Some variables (like enable_shared)
19486 # are currently assumed to apply to all compilers on this platform,
19487 # and will be corrupted by setting them based on a non-working compiler.
19488 if test "$_lt_caught_CXX_error" != yes; then
19489 # Code to be used in simple compile tests
19490 lt_simple_compile_test_code
="int some_variable = 0;"
19492 # Code to be used in simple link tests
19493 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19495 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19502 # If no C compiler was specified, use CC.
19505 # If no C compiler flags were specified, use CFLAGS.
19506 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19508 # Allow CC to be a program name with arguments.
19512 # save warnings/boilerplate of simple test code
19513 ac_outfile
=conftest.
$ac_objext
19514 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19515 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19516 _lt_compiler_boilerplate
=`cat conftest.err`
19519 ac_outfile
=conftest.
$ac_objext
19520 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19521 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19522 _lt_linker_boilerplate
=`cat conftest.err`
19526 # Allow CC to be a program name with arguments.
19531 lt_save_with_gnu_ld
=$with_gnu_ld
19532 lt_save_path_LD
=$lt_cv_path_LD
19533 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19534 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19536 $as_unset lt_cv_prog_gnu_ld
19538 if test -n "${lt_cv_path_LDCXX+set}"; then
19539 lt_cv_path_LD
=$lt_cv_path_LDCXX
19541 $as_unset lt_cv_path_LD
19543 test -z "${LDCXX+set}" || LD
=$LDCXX
19547 for cc_temp
in $compiler""; do
19549 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19550 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19555 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19558 if test -n "$compiler"; then
19559 # We don't want -fno-exception when compiling C++ code, so set the
19560 # no_builtin_flag separately
19561 if test "$GXX" = yes; then
19562 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19564 lt_prog_compiler_no_builtin_flag_CXX
=
19567 if test "$GXX" = yes; then
19568 # Set up default GNU C++ configuration
19572 # Check whether --with-gnu-ld was given.
19573 if test "${with_gnu_ld+set}" = set; then :
19574 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19580 if test "$GCC" = yes; then
19581 # Check if gcc -print-prog-name=ld gives a path.
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19583 $as_echo_n "checking for ld used by $CC... " >&6; }
19586 # gcc leaves a trailing carriage return which upsets mingw
19587 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19589 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19592 # Accept absolute paths.
19594 re_direlt
='/[^/][^/]*/\.\./'
19595 # Canonicalize the pathname of ld
19596 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19597 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19598 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19600 test -z "$LD" && LD
="$ac_prog"
19603 # If it fails, then pretend we aren't using GCC.
19607 # If it is relative, then search for the first ld in PATH.
19608 with_gnu_ld
=unknown
19611 elif test "$with_gnu_ld" = yes; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19613 $as_echo_n "checking for GNU ld... " >&6; }
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19616 $as_echo_n "checking for non-GNU ld... " >&6; }
19618 if ${lt_cv_path_LD+:} false
; then :
19619 $as_echo_n "(cached) " >&6
19621 if test -z "$LD"; then
19622 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19623 for ac_dir
in $PATH; do
19625 test -z "$ac_dir" && ac_dir
=.
19626 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19627 lt_cv_path_LD
="$ac_dir/$ac_prog"
19628 # Check to see if the program is GNU ld. I'd rather use --version,
19629 # but apparently some variants of GNU ld only accept -v.
19630 # Break only if it was the GNU/non-GNU ld that we prefer.
19631 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19632 *GNU
* |
*'with BFD'*)
19633 test "$with_gnu_ld" != no
&& break
19636 test "$with_gnu_ld" != yes && break
19643 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19647 LD
="$lt_cv_path_LD"
19648 if test -n "$LD"; then
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19650 $as_echo "$LD" >&6; }
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653 $as_echo "no" >&6; }
19655 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19658 if ${lt_cv_prog_gnu_ld+:} false
; then :
19659 $as_echo_n "(cached) " >&6
19661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19662 case `$LD -v 2>&1 </dev/null` in
19663 *GNU
* |
*'with BFD'*)
19664 lt_cv_prog_gnu_ld
=yes
19667 lt_cv_prog_gnu_ld
=no
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19672 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19673 with_gnu_ld
=$lt_cv_prog_gnu_ld
19681 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19682 # archiving commands below assume that GNU ld is being used.
19683 if test "$with_gnu_ld" = yes; then
19684 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19685 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'
19687 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19688 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19690 # If archive_cmds runs LD, not CC, wlarc should be empty
19691 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19692 # investigate it a little bit more. (MM)
19695 # ancient GNU ld didn't support --whole-archive et. al.
19696 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19697 $GREP 'no-whole-archive' > /dev
/null
; then
19698 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19700 whole_archive_flag_spec_CXX
=
19706 # A generic and very simple default shared library creation
19707 # command for GNU C++ for the case where it uses the native
19708 # linker, instead of GNU ld. If possible, this setting should
19709 # overridden to take advantage of the native linker features on
19710 # the platform it is being used on.
19711 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19714 # Commands to make compiler produce verbose output that lists
19715 # what "hidden" libraries, object files and flags are used when
19716 # linking a shared library.
19717 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19725 # PORTME: fill in a description of your system's C++ link characteristics
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19727 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19731 # FIXME: insert proper C++ library support
19735 if test "$host_cpu" = ia64
; then
19736 # On IA64, the linker does run time linking by default, so we don't
19737 # have to do anything special.
19738 aix_use_runtimelinking
=no
19739 exp_sym_flag
='-Bexport'
19742 aix_use_runtimelinking
=no
19744 # Test if we are trying to use run time linking or normal
19745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19746 # need to do runtime linking.
19747 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19748 for ld_flag
in $LDFLAGS; do
19751 aix_use_runtimelinking
=yes
19759 exp_sym_flag
='-bexport'
19760 no_entry_flag
='-bnoentry'
19763 # When large executables or shared objects are built, AIX ld can
19764 # have problems creating the table of contents. If linking a library
19765 # or program results in "error TOC overflow" add -mminimal-toc to
19766 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19767 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19769 archive_cmds_CXX
=''
19770 hardcode_direct_CXX
=yes
19771 hardcode_direct_absolute_CXX
=yes
19772 hardcode_libdir_separator_CXX
=':'
19773 link_all_deplibs_CXX
=yes
19774 file_list_spec_CXX
='${wl}-f,'
19776 if test "$GXX" = yes; then
19777 case $host_os in aix4.
[012]|aix4.
[012].
*)
19778 # We only want to do this on AIX 4.2 and lower, the check
19779 # below for broken collect2 doesn't work under 4.3+
19780 collect2name
=`${CC} -print-prog-name=collect2`
19781 if test -f "$collect2name" &&
19782 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19784 # We have reworked collect2
19787 # We have old collect2
19788 hardcode_direct_CXX
=unsupported
19789 # It fails to find uninstalled libraries when the uninstalled
19790 # path is not listed in the libpath. Setting hardcode_minus_L
19791 # to unsupported forces relinking
19792 hardcode_minus_L_CXX
=yes
19793 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19794 hardcode_libdir_separator_CXX
=
19797 shared_flag
='-shared'
19798 if test "$aix_use_runtimelinking" = yes; then
19799 shared_flag
="$shared_flag "'${wl}-G'
19803 if test "$host_cpu" = ia64
; then
19804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19805 # chokes on -Wl,-G. The following line is correct:
19808 if test "$aix_use_runtimelinking" = yes; then
19809 shared_flag
='${wl}-G'
19811 shared_flag
='${wl}-bM:SRE'
19816 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19817 # It seems that -bexpall does not export symbols beginning with
19818 # underscore (_), so it is better to generate a list of symbols to
19820 always_export_symbols_CXX
=yes
19821 if test "$aix_use_runtimelinking" = yes; then
19822 # Warning - without using the other runtime loading flags (-brtl),
19823 # -berok will link without error, but may produce a broken library.
19824 allow_undefined_flag_CXX
='-berok'
19825 # Determine the default libpath from the value encoded in an empty
19827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19828 /* end confdefs.h. */
19838 if ac_fn_cxx_try_link
"$LINENO"; then :
19840 lt_aix_libpath_sed
='
19841 /Import File Strings/,/^$/ {
19847 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19848 # Check for a 64-bit object if we didn't find anything.
19849 if test -z "$aix_libpath"; then
19850 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19853 rm -f core conftest.err conftest.
$ac_objext \
19854 conftest
$ac_exeext conftest.
$ac_ext
19855 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19857 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19859 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"
19861 if test "$host_cpu" = ia64
; then
19862 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19863 allow_undefined_flag_CXX
="-z nodefs"
19864 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"
19866 # Determine the default libpath from the value encoded in an
19867 # empty executable.
19868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19879 if ac_fn_cxx_try_link
"$LINENO"; then :
19881 lt_aix_libpath_sed
='
19882 /Import File Strings/,/^$/ {
19888 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19889 # Check for a 64-bit object if we didn't find anything.
19890 if test -z "$aix_libpath"; then
19891 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19894 rm -f core conftest.err conftest.
$ac_objext \
19895 conftest
$ac_exeext conftest.
$ac_ext
19896 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19898 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19899 # Warning - without using the other run time loading flags,
19900 # -berok will link without error, but may produce a broken library.
19901 no_undefined_flag_CXX
=' ${wl}-bernotok'
19902 allow_undefined_flag_CXX
=' ${wl}-berok'
19903 if test "$with_gnu_ld" = yes; then
19904 # We only use this code for GNU lds that support --whole-archive.
19905 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19907 # Exported symbols can be pulled into shared objects from archives
19908 whole_archive_flag_spec_CXX
='$convenience'
19910 archive_cmds_need_lc_CXX
=yes
19911 # This is similar to how AIX traditionally builds its shared
19913 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'
19919 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19920 allow_undefined_flag_CXX
=unsupported
19921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19922 # support --undefined. This deserves some investigation. FIXME
19923 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19930 case $cc_basename in
19932 # FIXME: insert proper C++ library support
19938 cygwin
* | mingw
* | pw32
* | cegcc
*)
19939 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19940 # as there is no search path for DLLs.
19941 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19942 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19943 allow_undefined_flag_CXX
=unsupported
19944 always_export_symbols_CXX
=no
19945 enable_shared_with_static_runtimes_CXX
=yes
19947 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19948 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'
19949 # If the export-symbols file already is a .def file (1st line
19950 # is EXPORTS), use it as is; otherwise, prepend...
19951 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19952 cp $export_symbols $output_objdir/$soname.def;
19954 echo EXPORTS > $output_objdir/$soname.def;
19955 cat $export_symbols >> $output_objdir/$soname.def;
19957 $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'
19962 darwin
* | rhapsody
*)
19965 archive_cmds_need_lc_CXX
=no
19966 hardcode_direct_CXX
=no
19967 hardcode_automatic_CXX
=yes
19968 hardcode_shlibpath_var_CXX
=unsupported
19969 if test "$lt_cv_ld_force_load" = "yes"; then
19970 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\"`'
19972 whole_archive_flag_spec_CXX
=''
19974 link_all_deplibs_CXX
=yes
19975 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19976 case $cc_basename in
19977 ifort
*) _lt_dar_can_shared
=yes ;;
19978 *) _lt_dar_can_shared
=$GCC ;;
19980 if test "$_lt_dar_can_shared" = "yes"; then
19981 output_verbose_link_cmd
=func_echo_all
19982 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}"
19983 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19984 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}"
19985 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}"
19986 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19987 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}"
19988 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}"
19998 case $cc_basename in
20000 # FIXME: insert proper C++ library support
20004 # Green Hills C++ Compiler
20005 # FIXME: insert proper C++ library support
20009 # FIXME: insert proper C++ library support
20016 # C++ shared libraries reported to be fairly broken before
20022 archive_cmds_need_lc_CXX
=no
20025 freebsd
* | dragonfly
*)
20026 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20035 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20036 link_all_deplibs_CXX
=yes
20040 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20041 hardcode_libdir_separator_CXX
=:
20042 export_dynamic_flag_spec_CXX
='${wl}-E'
20043 hardcode_direct_CXX
=yes
20044 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20045 # but as the default
20046 # location of the library.
20048 case $cc_basename in
20050 # FIXME: insert proper C++ library support
20054 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'
20055 # Commands to make compiler produce verbose output that lists
20056 # what "hidden" libraries, object files and flags are used when
20057 # linking a shared library.
20059 # There doesn't appear to be a way to prevent this compiler from
20060 # explicitly linking system object files so we need to strip them
20061 # from the output so that they don't get included in the library
20063 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"'
20066 if test "$GXX" = yes; then
20067 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'
20069 # FIXME: insert proper C++ library support
20077 if test $with_gnu_ld = no
; then
20078 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20079 hardcode_libdir_separator_CXX
=:
20085 export_dynamic_flag_spec_CXX
='${wl}-E'
20091 hardcode_direct_CXX
=no
20092 hardcode_shlibpath_var_CXX
=no
20095 hardcode_direct_CXX
=yes
20096 hardcode_direct_absolute_CXX
=yes
20097 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20098 # but as the default
20099 # location of the library.
20103 case $cc_basename in
20105 # FIXME: insert proper C++ library support
20111 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20114 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20117 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20120 # Commands to make compiler produce verbose output that lists
20121 # what "hidden" libraries, object files and flags are used when
20122 # linking a shared library.
20124 # There doesn't appear to be a way to prevent this compiler from
20125 # explicitly linking system object files so we need to strip them
20126 # from the output so that they don't get included in the library
20128 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"'
20131 if test "$GXX" = yes; then
20132 if test $with_gnu_ld = no
; then
20135 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20138 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20141 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'
20146 # FIXME: insert proper C++ library support
20154 hardcode_direct_CXX
=no
20155 hardcode_shlibpath_var_CXX
=no
20156 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20157 export_dynamic_flag_spec_CXX
='${wl}-E'
20158 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20159 # Instead, shared libraries are loaded at an image base (0x10000000 by
20160 # default) and relocated if they conflict, which is a slow very memory
20161 # consuming and fragmenting process. To avoid this, we pick a random,
20162 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20163 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20164 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'
20165 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'
20168 case $cc_basename in
20171 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'
20173 # Archives containing C++ object files must be created using
20174 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20175 # necessary to make sure instantiated templates are included
20177 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20180 if test "$GXX" = yes; then
20181 if test "$with_gnu_ld" = no
; then
20182 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'
20184 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'
20187 link_all_deplibs_CXX
=yes
20190 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20191 hardcode_libdir_separator_CXX
=:
20192 inherit_rpath_CXX
=yes
20195 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20196 case $cc_basename in
20198 # Kuck and Associates, Inc. (KAI) C++ Compiler
20200 # KCC will only create a shared library if the output file
20201 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20202 # to its proper name (with version) after linking.
20203 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'
20204 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'
20205 # Commands to make compiler produce verbose output that lists
20206 # what "hidden" libraries, object files and flags are used when
20207 # linking a shared library.
20209 # There doesn't appear to be a way to prevent this compiler from
20210 # explicitly linking system object files so we need to strip them
20211 # from the output so that they don't get included in the library
20213 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"'
20215 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20216 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20218 # Archives containing C++ object files must be created using
20219 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20220 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20225 # version 8.0 and above of icpc choke on multiply defined symbols
20226 # if we add $predep_objects and $postdep_objects, however 7.1 and
20227 # earlier do not add the objects themselves.
20228 case `$CC -V 2>&1` in
20230 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20231 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'
20233 *) # Version 8.0 or newer
20236 ia64
*) tmp_idyn
=' -i_dynamic';;
20238 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20239 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'
20242 archive_cmds_need_lc_CXX
=no
20243 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20244 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20245 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20248 # Portland Group C++ compiler
20250 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20251 prelink_cmds_CXX
='tpldir=Template.dir~
20253 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20254 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20255 old_archive_cmds_CXX
='tpldir=Template.dir~
20257 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20258 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20260 archive_cmds_CXX
='tpldir=Template.dir~
20262 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20263 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20264 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20266 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20267 $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'
20269 *) # Version 6 and above use weak symbols
20270 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20271 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'
20275 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20276 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20277 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'
20281 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20282 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'
20284 runpath_var
=LD_RUN_PATH
20285 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20286 hardcode_libdir_separator_CXX
=:
20288 # Commands to make compiler produce verbose output that lists
20289 # what "hidden" libraries, object files and flags are used when
20290 # linking a shared library.
20292 # There doesn't appear to be a way to prevent this compiler from
20293 # explicitly linking system object files so we need to strip them
20294 # from the output so that they don't get included in the library
20296 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'
20298 xl
* | mpixl
* | bgxl
*)
20299 # IBM XL 8.0 on PPC, with GNU ld
20300 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20301 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20302 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20303 if test "x$supports_anon_versioning" = xyes
; then
20304 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20306 echo "local: *; };" >> $output_objdir/$libname.ver~
20307 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20311 case `$CC -V 2>&1 | sed 5q` in
20314 no_undefined_flag_CXX
=' -zdefs'
20315 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20316 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'
20317 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20318 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'
20319 compiler_needs_object_CXX
=yes
20321 # Not sure whether something based on
20322 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20324 output_verbose_link_cmd
='func_echo_all'
20326 # Archives containing C++ object files must be created using
20327 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20328 # necessary to make sure instantiated templates are included
20330 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20338 # FIXME: insert proper C++ library support
20343 # FIXME: insert proper C++ library support
20348 case $cc_basename in
20350 # FIXME: insert proper C++ library support
20354 # FIXME: insert proper C++ library support
20361 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20362 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20364 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20365 hardcode_direct_CXX
=yes
20366 hardcode_shlibpath_var_CXX
=no
20368 # Workaround some broken pre-1.5 toolchains
20369 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20377 # C++ shared libraries are fairly broken
20382 if test -f /usr
/libexec
/ld.so
; then
20383 hardcode_direct_CXX
=yes
20384 hardcode_shlibpath_var_CXX
=no
20385 hardcode_direct_absolute_CXX
=yes
20386 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20387 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20388 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20389 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20390 export_dynamic_flag_spec_CXX
='${wl}-E'
20391 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20393 output_verbose_link_cmd
=func_echo_all
20399 osf3
* | osf4
* | osf5
*)
20400 case $cc_basename in
20402 # Kuck and Associates, Inc. (KAI) C++ Compiler
20404 # KCC will only create a shared library if the output file
20405 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20406 # to its proper name (with version) after linking.
20407 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'
20409 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20410 hardcode_libdir_separator_CXX
=:
20412 # Archives containing C++ object files must be created using
20413 # the KAI C++ compiler.
20415 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20416 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20420 # Rational C++ 2.4.1
20421 # FIXME: insert proper C++ library support
20427 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20428 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'
20429 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20432 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20433 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'
20434 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20435 echo "-hidden">> $lib.exp~
20436 $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~
20438 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20442 hardcode_libdir_separator_CXX
=:
20444 # Commands to make compiler produce verbose output that lists
20445 # what "hidden" libraries, object files and flags are used when
20446 # linking a shared library.
20448 # There doesn't appear to be a way to prevent this compiler from
20449 # explicitly linking system object files so we need to strip them
20450 # from the output so that they don't get included in the library
20452 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"'
20455 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20456 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20459 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'
20462 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'
20466 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20467 hardcode_libdir_separator_CXX
=:
20469 # Commands to make compiler produce verbose output that lists
20470 # what "hidden" libraries, object files and flags are used when
20471 # linking a shared library.
20472 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20475 # FIXME: insert proper C++ library support
20483 # FIXME: insert proper C++ library support
20488 case $cc_basename in
20491 # FIXME: insert proper C++ library support
20496 # FIXME: insert proper C++ library support
20500 # FIXME: insert proper C++ library support
20507 case $cc_basename in
20509 # Sun C++ 4.2, 5.x and Centerline C++
20510 archive_cmds_need_lc_CXX
=yes
20511 no_undefined_flag_CXX
=' -zdefs'
20512 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20513 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20514 $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'
20516 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20517 hardcode_shlibpath_var_CXX
=no
20519 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20521 # The compiler driver will combine and reorder linker options,
20522 # but understands `-z linker_flag'.
20523 # Supported since Solaris 2.6 (maybe 2.5.1?)
20524 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20527 link_all_deplibs_CXX
=yes
20529 output_verbose_link_cmd
='func_echo_all'
20531 # Archives containing C++ object files must be created using
20532 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20533 # necessary to make sure instantiated templates are included
20535 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20538 # Green Hills C++ Compiler
20539 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20541 # The C++ compiler must be used to create the archive.
20542 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20545 # GNU C++ compiler with Solaris linker
20546 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20547 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20548 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20549 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20550 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20551 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20553 # Commands to make compiler produce verbose output that lists
20554 # what "hidden" libraries, object files and flags are used when
20555 # linking a shared library.
20556 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20558 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20560 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20561 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20562 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20564 # Commands to make compiler produce verbose output that lists
20565 # what "hidden" libraries, object files and flags are used when
20566 # linking a shared library.
20567 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20570 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20572 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20574 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20582 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20583 no_undefined_flag_CXX
='${wl}-z,text'
20584 archive_cmds_need_lc_CXX
=no
20585 hardcode_shlibpath_var_CXX
=no
20586 runpath_var
='LD_RUN_PATH'
20588 case $cc_basename in
20590 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20591 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20594 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20595 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20600 sysv5
* | sco3.2v5
* | sco5v6
*)
20601 # Note: We can NOT use -z defs as we might desire, because we do not
20602 # link with -lc, and that would cause any symbols used from libc to
20603 # always be unresolved, which means just about no library would
20604 # ever link correctly. If we're not using GNU ld we use -z text
20605 # though, which does catch some bad symbols but isn't as heavy-handed
20607 no_undefined_flag_CXX
='${wl}-z,text'
20608 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20609 archive_cmds_need_lc_CXX
=no
20610 hardcode_shlibpath_var_CXX
=no
20611 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20612 hardcode_libdir_separator_CXX
=':'
20613 link_all_deplibs_CXX
=yes
20614 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20615 runpath_var
='LD_RUN_PATH'
20617 case $cc_basename in
20619 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20620 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20621 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20622 '"$old_archive_cmds_CXX"
20623 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20624 '"$reload_cmds_CXX"
20627 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20628 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20634 case $cc_basename in
20636 # NonStop-UX NCC 3.20
20637 # FIXME: insert proper C++ library support
20641 # FIXME: insert proper C++ library support
20648 # FIXME: insert proper C++ library support
20653 # FIXME: insert proper C++ library support
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20659 $as_echo "$ld_shlibs_CXX" >&6; }
20660 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20666 ## There is no encapsulation within the following macros, do not change
20667 ## the running order or otherwise move them around unless you know exactly
20668 ## what you are doing...
20669 # Dependencies to place before and after the object being linked:
20670 predep_objects_CXX
=
20671 postdep_objects_CXX
=
20674 compiler_lib_search_path_CXX
=
20676 cat > conftest.
$ac_ext <<_LT_EOF
20680 Foo (void) { a = 0; }
20686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20687 (eval $ac_compile) 2>&5
20689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20690 test $ac_status = 0; }; then
20691 # Parse the compiler output and extract the necessary
20692 # objects, libraries and library flags.
20694 # Sentinel used to keep track of whether or not we are before
20695 # the conftest object file.
20696 pre_test_object_deps_done
=no
20698 for p
in `eval "$output_verbose_link_cmd"`; do
20702 # Some compilers place space between "-{L,R}" and the path.
20703 # Remove the space.
20704 if test $p = "-L" ||
20705 test $p = "-R"; then
20712 if test "$pre_test_object_deps_done" = no
; then
20715 # Internal compiler library paths should come after those
20716 # provided the user. The postdeps already come after the
20717 # user supplied libs so there is no need to process them.
20718 if test -z "$compiler_lib_search_path_CXX"; then
20719 compiler_lib_search_path_CXX
="${prev}${p}"
20721 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20724 # The "-l" case would never come before the object being
20725 # linked, so don't bother handling this case.
20728 if test -z "$postdeps_CXX"; then
20729 postdeps_CXX
="${prev}${p}"
20731 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20737 # This assumes that the test object file only shows up
20738 # once in the compiler output.
20739 if test "$p" = "conftest.$objext"; then
20740 pre_test_object_deps_done
=yes
20744 if test "$pre_test_object_deps_done" = no
; then
20745 if test -z "$predep_objects_CXX"; then
20746 predep_objects_CXX
="$p"
20748 predep_objects_CXX
="$predep_objects_CXX $p"
20751 if test -z "$postdep_objects_CXX"; then
20752 postdep_objects_CXX
="$p"
20754 postdep_objects_CXX
="$postdep_objects_CXX $p"
20759 *) ;; # Ignore the rest.
20767 echo "libtool.m4: error: problem compiling CXX test program"
20770 $RM -f confest.
$objext
20772 # PORTME: override above test on systems where it is broken
20775 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20776 # hack all around it, let's just trust "g++" to DTRT.
20777 predep_objects_CXX
=
20778 postdep_objects_CXX
=
20783 case `$CC -V 2>&1 | sed 5q` in
20787 # The more standards-conforming stlport4 library is
20788 # incompatible with the Cstd library. Avoid specifying
20789 # it if it's in CXXFLAGS. Ignore libCrun as
20790 # -library=stlport4 depends on it.
20791 case " $CXX $CXXFLAGS " in
20792 *" -library=stlport4 "*)
20793 solaris_use_stlport4
=yes
20797 if test "$solaris_use_stlport4" != yes; then
20798 postdeps_CXX
='-library=Cstd -library=Crun'
20805 case $cc_basename in
20807 # The more standards-conforming stlport4 library is
20808 # incompatible with the Cstd library. Avoid specifying
20809 # it if it's in CXXFLAGS. Ignore libCrun as
20810 # -library=stlport4 depends on it.
20811 case " $CXX $CXXFLAGS " in
20812 *" -library=stlport4 "*)
20813 solaris_use_stlport4
=yes
20817 # Adding this requires a known-good setup of shared libraries for
20818 # Sun compiler versions before 5.6, else PIC objects from an old
20819 # archive will be linked into the output, leading to subtle bugs.
20820 if test "$solaris_use_stlport4" != yes; then
20821 postdeps_CXX
='-library=Cstd -library=Crun'
20829 case " $postdeps_CXX " in
20830 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20832 compiler_lib_search_dirs_CXX
=
20833 if test -n "${compiler_lib_search_path_CXX}"; then
20834 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20867 lt_prog_compiler_wl_CXX
=
20868 lt_prog_compiler_pic_CXX
=
20869 lt_prog_compiler_static_CXX
=
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20872 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20874 # C++ specific cases for pic, static, wl, etc.
20875 if test "$GXX" = yes; then
20876 lt_prog_compiler_wl_CXX
='-Wl,'
20877 lt_prog_compiler_static_CXX
='-static'
20881 # All AIX code is PIC.
20882 if test "$host_cpu" = ia64
; then
20883 # AIX 5 now supports IA64 processor
20884 lt_prog_compiler_static_CXX
='-Bstatic'
20886 lt_prog_compiler_pic_CXX
='-fPIC'
20892 # see comment about AmigaOS4 .so support
20893 lt_prog_compiler_pic_CXX
='-fPIC'
20896 # FIXME: we need at least 68020 code to build shared libraries, but
20897 # adding the `-m68020' flag to GCC prevents building anything better,
20899 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20904 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20905 # PIC is the default for these OSes.
20907 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20908 # This hack is so that the source file can tell whether it is being
20909 # built for inclusion in a dll (and should export symbols for example).
20910 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20911 # (--disable-auto-import) libraries
20912 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20914 darwin
* | rhapsody
*)
20915 # PIC is the default on this platform
20916 # Common symbols not allowed in MH_DYLIB files
20917 lt_prog_compiler_pic_CXX
='-fno-common'
20920 # DJGPP does not support shared libraries at all
20921 lt_prog_compiler_pic_CXX
=
20924 # PIC is the default for Haiku.
20925 # The "-static" flag exists, but is broken.
20926 lt_prog_compiler_static_CXX
=
20929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20930 # Instead, we relocate shared libraries at runtime.
20933 if test -d /usr
/nec
; then
20934 lt_prog_compiler_pic_CXX
=-Kconform_pic
20938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20940 # sets the default TLS model and affects inlining.
20945 lt_prog_compiler_pic_CXX
='-fPIC'
20950 # QNX uses GNU C++, but need to define -shared option too, otherwise
20951 # it will coredump.
20952 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20955 lt_prog_compiler_pic_CXX
='-fPIC'
20961 # All AIX code is PIC.
20962 if test "$host_cpu" = ia64
; then
20963 # AIX 5 now supports IA64 processor
20964 lt_prog_compiler_static_CXX
='-Bstatic'
20966 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20970 case $cc_basename in
20972 # Green Hills C++ Compiler
20973 # _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"
20978 case $cc_basename in
20980 lt_prog_compiler_pic_CXX
='-KPIC'
20983 # Green Hills C++ Compiler
20984 lt_prog_compiler_pic_CXX
='-pic'
20990 freebsd
* | dragonfly
*)
20991 # FreeBSD uses GNU C++
20993 hpux9
* | hpux10
* | hpux11
*)
20994 case $cc_basename in
20996 lt_prog_compiler_wl_CXX
='-Wl,'
20997 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20998 if test "$host_cpu" != ia64
; then
20999 lt_prog_compiler_pic_CXX
='+Z'
21003 lt_prog_compiler_wl_CXX
='-Wl,'
21004 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21010 lt_prog_compiler_pic_CXX
='+Z'
21019 # This is c89, which is MS Visual C++ (no shared libs)
21020 # Anyone wants to do a port?
21022 irix5
* | irix6
* | nonstopux
*)
21023 case $cc_basename in
21025 lt_prog_compiler_wl_CXX
='-Wl,'
21026 lt_prog_compiler_static_CXX
='-non_shared'
21027 # CC pic flag -KPIC is the default.
21033 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21034 case $cc_basename in
21037 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21038 lt_prog_compiler_pic_CXX
='-fPIC'
21041 # old Intel C++ for x86_64 which still supported -KPIC.
21042 lt_prog_compiler_wl_CXX
='-Wl,'
21043 lt_prog_compiler_pic_CXX
='-KPIC'
21044 lt_prog_compiler_static_CXX
='-static'
21047 # Intel C++, used to be incompatible with GCC.
21048 # ICC 10 doesn't accept -KPIC any more.
21049 lt_prog_compiler_wl_CXX
='-Wl,'
21050 lt_prog_compiler_pic_CXX
='-fPIC'
21051 lt_prog_compiler_static_CXX
='-static'
21054 # Portland Group C++ compiler
21055 lt_prog_compiler_wl_CXX
='-Wl,'
21056 lt_prog_compiler_pic_CXX
='-fpic'
21057 lt_prog_compiler_static_CXX
='-Bstatic'
21061 # Make sure the PIC flag is empty. It appears that all Alpha
21062 # Linux and Compaq Tru64 Unix objects are PIC.
21063 lt_prog_compiler_pic_CXX
=
21064 lt_prog_compiler_static_CXX
='-non_shared'
21066 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21067 # IBM XL 8.0, 9.0 on PPC and BlueGene
21068 lt_prog_compiler_wl_CXX
='-Wl,'
21069 lt_prog_compiler_pic_CXX
='-qpic'
21070 lt_prog_compiler_static_CXX
='-qstaticlink'
21073 case `$CC -V 2>&1 | sed 5q` in
21076 lt_prog_compiler_pic_CXX
='-KPIC'
21077 lt_prog_compiler_static_CXX
='-Bstatic'
21078 lt_prog_compiler_wl_CXX
='-Qoption ld '
21089 case $cc_basename in
21091 lt_prog_compiler_pic_CXX
='-W c,exportall'
21100 # QNX uses GNU C++, but need to define -shared option too, otherwise
21101 # it will coredump.
21102 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21104 osf3
* | osf4
* | osf5
*)
21105 case $cc_basename in
21107 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21110 # Rational C++ 2.4.1
21111 lt_prog_compiler_pic_CXX
='-pic'
21114 # Digital/Compaq C++
21115 lt_prog_compiler_wl_CXX
='-Wl,'
21116 # Make sure the PIC flag is empty. It appears that all Alpha
21117 # Linux and Compaq Tru64 Unix objects are PIC.
21118 lt_prog_compiler_pic_CXX
=
21119 lt_prog_compiler_static_CXX
='-non_shared'
21128 case $cc_basename in
21130 # Sun C++ 4.2, 5.x and Centerline C++
21131 lt_prog_compiler_pic_CXX
='-KPIC'
21132 lt_prog_compiler_static_CXX
='-Bstatic'
21133 lt_prog_compiler_wl_CXX
='-Qoption ld '
21136 # Green Hills C++ Compiler
21137 lt_prog_compiler_pic_CXX
='-PIC'
21144 case $cc_basename in
21147 lt_prog_compiler_pic_CXX
='-pic'
21148 lt_prog_compiler_static_CXX
='-Bstatic'
21152 lt_prog_compiler_pic_CXX
='-pic'
21158 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21159 case $cc_basename in
21161 lt_prog_compiler_wl_CXX
='-Wl,'
21162 lt_prog_compiler_pic_CXX
='-KPIC'
21163 lt_prog_compiler_static_CXX
='-Bstatic'
21168 case $cc_basename in
21170 # NonStop-UX NCC 3.20
21171 lt_prog_compiler_pic_CXX
='-KPIC'
21180 lt_prog_compiler_can_build_shared_CXX
=no
21186 # For platforms which do not support PIC, -DPIC is meaningless:
21188 lt_prog_compiler_pic_CXX
=
21191 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21195 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21200 # Check to make sure the PIC flag actually works.
21202 if test -n "$lt_prog_compiler_pic_CXX"; then
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21204 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21205 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21206 $as_echo_n "(cached) " >&6
21208 lt_cv_prog_compiler_pic_works_CXX
=no
21209 ac_outfile
=conftest.
$ac_objext
21210 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21211 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21212 # Insert the option either (1) after the last *FLAGS variable, or
21213 # (2) before a word containing "conftest.", or (3) at the end.
21214 # Note that $ac_compile itself does not contain backslashes and begins
21215 # with a dollar sign (not a hyphen), so the echo should work correctly.
21216 # The option is referenced via a variable to avoid confusing sed.
21217 lt_compile
=`echo "$ac_compile" | $SED \
21218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21220 -e 's:$: $lt_compiler_flag:'`
21221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21222 (eval "$lt_compile" 2>conftest.err
)
21224 cat conftest.err
>&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 if (exit $ac_status) && test -s "$ac_outfile"; then
21227 # The compiler can only warn and ignore the option if not recognized
21228 # So say no if there are warnings other than the usual output.
21229 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21230 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21231 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21232 lt_cv_prog_compiler_pic_works_CXX
=yes
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21239 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21241 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21242 case $lt_prog_compiler_pic_CXX in
21244 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21247 lt_prog_compiler_pic_CXX
=
21248 lt_prog_compiler_can_build_shared_CXX
=no
21256 # Check to make sure the static flag actually works.
21258 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21260 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21261 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21262 $as_echo_n "(cached) " >&6
21264 lt_cv_prog_compiler_static_works_CXX
=no
21265 save_LDFLAGS
="$LDFLAGS"
21266 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21267 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21268 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21269 # The linker can only warn and ignore the option if not recognized
21270 # So say no if there are warnings
21271 if test -s conftest.err
; then
21272 # Append any errors to the config.log.
21273 cat conftest.err
1>&5
21274 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21275 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21276 if diff conftest.exp conftest.er2
>/dev
/null
; then
21277 lt_cv_prog_compiler_static_works_CXX
=yes
21280 lt_cv_prog_compiler_static_works_CXX
=yes
21284 LDFLAGS
="$save_LDFLAGS"
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21288 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21290 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21293 lt_prog_compiler_static_CXX
=
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21300 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21301 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21302 $as_echo_n "(cached) " >&6
21304 lt_cv_prog_compiler_c_o_CXX
=no
21305 $RM -r conftest
2>/dev
/null
21309 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21311 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21312 # Insert the option either (1) after the last *FLAGS variable, or
21313 # (2) before a word containing "conftest.", or (3) at the end.
21314 # Note that $ac_compile itself does not contain backslashes and begins
21315 # with a dollar sign (not a hyphen), so the echo should work correctly.
21316 lt_compile
=`echo "$ac_compile" | $SED \
21317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21319 -e 's:$: $lt_compiler_flag:'`
21320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21321 (eval "$lt_compile" 2>out
/conftest.err
)
21323 cat out
/conftest.err
>&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21327 # The compiler can only warn and ignore the option if not recognized
21328 # So say no if there are warnings
21329 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21330 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21331 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21332 lt_cv_prog_compiler_c_o_CXX
=yes
21337 # SGI C++ compiler will create directory out/ii_files/ for
21338 # template instantiation
21339 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21340 $RM out
/* && rmdir out
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21347 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21353 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21354 $as_echo_n "(cached) " >&6
21356 lt_cv_prog_compiler_c_o_CXX
=no
21357 $RM -r conftest
2>/dev
/null
21361 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21363 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21364 # Insert the option either (1) after the last *FLAGS variable, or
21365 # (2) before a word containing "conftest.", or (3) at the end.
21366 # Note that $ac_compile itself does not contain backslashes and begins
21367 # with a dollar sign (not a hyphen), so the echo should work correctly.
21368 lt_compile
=`echo "$ac_compile" | $SED \
21369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21371 -e 's:$: $lt_compiler_flag:'`
21372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21373 (eval "$lt_compile" 2>out
/conftest.err
)
21375 cat out
/conftest.err
>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21379 # The compiler can only warn and ignore the option if not recognized
21380 # So say no if there are warnings
21381 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21382 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21383 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21384 lt_cv_prog_compiler_c_o_CXX
=yes
21389 # SGI C++ compiler will create directory out/ii_files/ for
21390 # template instantiation
21391 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21392 $RM out
/* && rmdir out
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21399 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21404 hard_links
="nottested"
21405 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21406 # do not overwrite the value of need_locks provided by the user
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21408 $as_echo_n "checking if we can lock with hard links... " >&6; }
21411 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21413 ln conftest.a conftest.b
2>&5 || hard_links
=no
21414 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21416 $as_echo "$hard_links" >&6; }
21417 if test "$hard_links" = no
; then
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21419 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21429 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21431 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21434 # If we're using GNU nm, then we don't want the "-C" option.
21435 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21436 # Also, AIX nm treats weak defined symbols like other global defined
21437 # symbols, whereas GNU nm marks them as "W".
21438 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21439 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'
21441 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'
21445 export_symbols_cmds_CXX
="$ltdll_cmds"
21447 cygwin
* | mingw
* | cegcc
*)
21448 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'
21451 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21454 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21457 $as_echo "$ld_shlibs_CXX" >&6; }
21458 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21460 with_gnu_ld_CXX
=$with_gnu_ld
21468 # Do we need to explicitly link libc?
21470 case "x$archive_cmds_need_lc_CXX" in
21472 # Assume -lc should be added
21473 archive_cmds_need_lc_CXX
=yes
21475 if test "$enable_shared" = yes && test "$GCC" = yes; then
21476 case $archive_cmds_CXX in
21478 # FIXME: we may have to deal with multi-command sequences.
21481 # Test whether the compiler implicitly links with -lc since on some
21482 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21483 # to ld, don't add -lc before -lgcc.
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21486 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21487 $as_echo_n "(cached) " >&6
21490 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21493 (eval $ac_compile) 2>&5
21495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21496 test $ac_status = 0; } 2>conftest.err
; then
21499 libobjs
=conftest.
$ac_objext
21501 wl
=$lt_prog_compiler_wl_CXX
21502 pic_flag
=$lt_prog_compiler_pic_CXX
21508 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21509 allow_undefined_flag_CXX
=
21510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21511 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21514 test $ac_status = 0; }
21516 lt_cv_archive_cmds_need_lc_CXX
=no
21518 lt_cv_archive_cmds_need_lc_CXX
=yes
21520 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21522 cat conftest.err
1>&5
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21528 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21529 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21602 library_names_spec
=
21603 libname_spec
='lib$name'
21607 postuninstall_cmds
=
21611 shlibpath_overrides_runpath
=unknown
21613 dynamic_linker
="$host_os ld.so"
21614 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21615 need_lib_prefix
=unknown
21616 hardcode_into_libs
=no
21618 # when you set need_version to no, make sure it does not cause -set_version
21619 # flags to be left without arguments
21620 need_version
=unknown
21625 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21626 shlibpath_var
=LIBPATH
21628 # AIX 3 has no versioning support, so we append a major version to the name.
21629 soname_spec
='${libname}${release}${shared_ext}$major'
21636 hardcode_into_libs
=yes
21637 if test "$host_cpu" = ia64
; then
21638 # AIX 5 supports IA64
21639 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21640 shlibpath_var
=LD_LIBRARY_PATH
21642 # With GCC up to 2.95.x, collect2 would create an import file
21643 # for dependence libraries. The import file would start with
21644 # the line `#! .'. This would cause the generated library to
21645 # depend on `.', always an invalid library. This was fixed in
21646 # development snapshots of GCC prior to 3.0.
21648 aix4 | aix4.
[01] | aix4.
[01].
*)
21649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21651 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21654 can_build_shared
=no
21658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21659 # soname into executable. Probably we can add versioning support to
21660 # collect2, so additional links can be useful in future.
21661 if test "$aix_use_runtimelinking" = yes; then
21662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21663 # instead of lib<name>.a to let people know that these are not
21664 # typical AIX shared libraries.
21665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21667 # We preserve .a as extension for shared libraries through AIX4.2
21668 # and later when we are not doing run time linking.
21669 library_names_spec
='${libname}${release}.a $libname.a'
21670 soname_spec
='${libname}${release}${shared_ext}$major'
21672 shlibpath_var
=LIBPATH
21679 # Since July 2007 AmigaOS4 officially supports .so libraries.
21680 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21684 library_names_spec
='$libname.ixlibrary $libname.a'
21685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21686 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'
21692 library_names_spec
='${libname}${shared_ext}'
21693 dynamic_linker
="$host_os ld.so"
21694 shlibpath_var
=LIBRARY_PATH
21700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21701 soname_spec
='${libname}${release}${shared_ext}$major'
21702 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21703 shlibpath_var
=LD_LIBRARY_PATH
21704 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21705 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21706 # the default ld.so.conf also contains /usr/contrib/lib and
21707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21708 # libtool to hard-code these into programs
21711 cygwin
* | mingw
* | pw32
* | cegcc
*)
21712 version_type
=windows
21717 case $GCC,$host_os in
21718 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21719 library_names_spec
='$libname.dll.a'
21720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21721 postinstall_cmds
='base_file=`basename \${file}`~
21722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21723 dldir=$destdir/`dirname \$dlpath`~
21724 test -d \$dldir || mkdir -p \$dldir~
21725 $install_prog $dir/$dlname \$dldir/$dlname~
21726 chmod a+x \$dldir/$dlname~
21727 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21728 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21730 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21731 dlpath=$dir/\$dldll~
21733 shlibpath_overrides_runpath
=yes
21737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21738 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21742 # MinGW DLLs use traditional 'lib' prefix
21743 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21746 # pw32 DLLs use 'pw' prefix rather than 'lib'
21747 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21753 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21756 dynamic_linker
='Win32 ld.exe'
21757 # FIXME: first we should search . and the directory the executable is in
21761 darwin
* | rhapsody
*)
21762 dynamic_linker
="$host_os dyld"
21763 version_type
=darwin
21766 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21767 soname_spec
='${libname}${release}${major}$shared_ext'
21768 shlibpath_overrides_runpath
=yes
21769 shlibpath_var
=DYLD_LIBRARY_PATH
21770 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21772 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21779 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21780 soname_spec
='${libname}${release}${shared_ext}$major'
21781 shlibpath_var
=LD_LIBRARY_PATH
21784 freebsd
* | dragonfly
*)
21785 # DragonFly does not have aout. When/if they implement a new
21786 # versioning mechanism, adjust this.
21787 if test -x /usr
/bin
/objformat
; then
21788 objformat
=`/usr/bin/objformat`
21791 freebsd
[23].
*) objformat
=aout
;;
21792 *) objformat
=elf
;;
21795 version_type
=freebsd-
$objformat
21796 case $version_type in
21798 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21803 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21807 shlibpath_var
=LD_LIBRARY_PATH
21810 shlibpath_overrides_runpath
=yes
21812 freebsd3.
[01]* | freebsdelf3.
[01]*)
21813 shlibpath_overrides_runpath
=yes
21814 hardcode_into_libs
=yes
21816 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21817 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21818 shlibpath_overrides_runpath
=no
21819 hardcode_into_libs
=yes
21821 *) # from 4.6 on, and DragonFly
21822 shlibpath_overrides_runpath
=yes
21823 hardcode_into_libs
=yes
21832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21833 soname_spec
='${libname}${release}${shared_ext}$major'
21834 shlibpath_var
=LD_LIBRARY_PATH
21835 hardcode_into_libs
=yes
21842 dynamic_linker
="$host_os runtime_loader"
21843 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21844 soname_spec
='${libname}${release}${shared_ext}$major'
21845 shlibpath_var
=LIBRARY_PATH
21846 shlibpath_overrides_runpath
=yes
21847 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21848 hardcode_into_libs
=yes
21851 hpux9
* | hpux10
* | hpux11
*)
21852 # Give a soname corresponding to the major version so that dld.sl refuses to
21853 # link against other versions.
21860 hardcode_into_libs
=yes
21861 dynamic_linker
="$host_os dld.so"
21862 shlibpath_var
=LD_LIBRARY_PATH
21863 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21864 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21865 soname_spec
='${libname}${release}${shared_ext}$major'
21866 if test "X$HPUX_IA64_MODE" = X32
; then
21867 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21869 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21871 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21875 hardcode_into_libs
=yes
21876 dynamic_linker
="$host_os dld.sl"
21877 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21878 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21880 soname_spec
='${libname}${release}${shared_ext}$major'
21881 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21882 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21886 dynamic_linker
="$host_os dld.sl"
21887 shlibpath_var
=SHLIB_PATH
21888 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21889 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21890 soname_spec
='${libname}${release}${shared_ext}$major'
21893 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21894 postinstall_cmds
='chmod 555 $lib'
21895 # or fails outright, so override atomically:
21896 install_override_mode
=555
21903 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21904 soname_spec
='${libname}${release}${shared_ext}$major'
21905 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21906 shlibpath_var
=LD_LIBRARY_PATH
21907 shlibpath_overrides_runpath
=no
21908 hardcode_into_libs
=yes
21911 irix5
* | irix6
* | nonstopux
*)
21913 nonstopux
*) version_type
=nonstopux
;;
21915 if test "$lt_cv_prog_gnu_ld" = yes; then
21923 soname_spec
='${libname}${release}${shared_ext}$major'
21924 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21926 irix5
* | nonstopux
*)
21927 libsuff
= shlibsuff
=
21930 case $LD in # libtool.m4 will add one of these switches to LD
21931 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21932 libsuff
= shlibsuff
= libmagic
=32-bit;;
21933 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21934 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21935 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21936 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21937 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21941 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21942 shlibpath_overrides_runpath
=no
21943 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21944 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21945 hardcode_into_libs
=yes
21948 # No shared lib support for Linux oldld, aout, or coff.
21949 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21953 # This must be Linux ELF.
21955 # uclinux* changes (here and below) have been submitted to the libtool
21956 # project, but have not yet been accepted: they are GCC-local changes
21957 # for the time being. (See
21958 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21959 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
21963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21964 soname_spec
='${libname}${release}${shared_ext}$major'
21965 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21966 shlibpath_var
=LD_LIBRARY_PATH
21967 shlibpath_overrides_runpath
=no
21969 # Some binutils ld are patched to set DT_RUNPATH
21970 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21971 $as_echo_n "(cached) " >&6
21973 lt_cv_shlibpath_overrides_runpath
=no
21974 save_LDFLAGS
=$LDFLAGS
21975 save_libdir
=$libdir
21976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21979 /* end confdefs.h. */
21989 if ac_fn_cxx_try_link
"$LINENO"; then :
21990 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21991 lt_cv_shlibpath_overrides_runpath
=yes
21994 rm -f core conftest.err conftest.
$ac_objext \
21995 conftest
$ac_exeext conftest.
$ac_ext
21996 LDFLAGS
=$save_LDFLAGS
21997 libdir
=$save_libdir
22001 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22003 # This implies no fast_install, which is unacceptable.
22004 # Some rework will be needed to allow for fast_install
22005 # before this can be enabled.
22006 hardcode_into_libs
=yes
22008 # Append ld.so.conf contents to the search path
22009 if test -f /etc
/ld.so.conf
; then
22010 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' ' '`
22011 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22014 # We used to test for /lib/ld.so.1 and disable shared libraries on
22015 # powerpc, because MkLinux only supported shared libraries with the
22016 # GNU dynamic linker. Since this was broken with cross compilers,
22017 # most powerpc-linux boxes support dynamic linking these days and
22018 # people can always --disable-shared, the test was removed, and we
22019 # assume the GNU/Linux dynamic linker is in use.
22020 dynamic_linker
='GNU/Linux ld.so'
22027 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22028 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22029 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22030 dynamic_linker
='NetBSD (a.out) ld.so'
22032 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22033 soname_spec
='${libname}${release}${shared_ext}$major'
22034 dynamic_linker
='NetBSD ld.elf_so'
22036 shlibpath_var
=LD_LIBRARY_PATH
22037 shlibpath_overrides_runpath
=yes
22038 hardcode_into_libs
=yes
22043 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22044 shlibpath_var
=LD_LIBRARY_PATH
22045 shlibpath_overrides_runpath
=yes
22052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22053 soname_spec
='${libname}${release}${shared_ext}$major'
22054 shlibpath_var
=LD_LIBRARY_PATH
22055 shlibpath_overrides_runpath
=no
22056 hardcode_into_libs
=yes
22057 dynamic_linker
='ldqnx.so'
22062 sys_lib_dlsearch_path_spec
="/usr/lib"
22064 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22066 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22067 *) need_version
=no
;;
22069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22070 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22071 shlibpath_var
=LD_LIBRARY_PATH
22072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22074 openbsd2.
[89] | openbsd2.
[89].
*)
22075 shlibpath_overrides_runpath
=no
22078 shlibpath_overrides_runpath
=yes
22082 shlibpath_overrides_runpath
=yes
22087 libname_spec
='$name'
22090 library_names_spec
='$libname${shared_ext} $libname.a'
22091 dynamic_linker
='OS/2 ld.exe'
22092 shlibpath_var
=LIBPATH
22095 osf3
* | osf4
* | osf5
*)
22099 soname_spec
='${libname}${release}${shared_ext}$major'
22100 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22101 shlibpath_var
=LD_LIBRARY_PATH
22102 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22103 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22114 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22115 soname_spec
='${libname}${release}${shared_ext}$major'
22116 shlibpath_var
=LD_LIBRARY_PATH
22117 shlibpath_overrides_runpath
=yes
22118 hardcode_into_libs
=yes
22119 # ldd complains unless libraries are executable
22120 postinstall_cmds
='chmod +x $lib'
22125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22126 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22127 shlibpath_var
=LD_LIBRARY_PATH
22128 shlibpath_overrides_runpath
=yes
22129 if test "$with_gnu_ld" = yes; then
22137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22138 soname_spec
='${libname}${release}${shared_ext}$major'
22139 shlibpath_var
=LD_LIBRARY_PATH
22140 case $host_vendor in
22142 shlibpath_overrides_runpath
=no
22144 runpath_var
=LD_RUN_PATH
22152 shlibpath_overrides_runpath
=no
22153 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22159 if test -d /usr
/nec
;then
22161 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22162 soname_spec
='$libname${shared_ext}.$major'
22163 shlibpath_var
=LD_LIBRARY_PATH
22167 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22168 version_type
=freebsd-elf
22171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22172 soname_spec
='${libname}${release}${shared_ext}$major'
22173 shlibpath_var
=LD_LIBRARY_PATH
22174 shlibpath_overrides_runpath
=yes
22175 hardcode_into_libs
=yes
22176 if test "$with_gnu_ld" = yes; then
22177 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22179 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22182 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22186 sys_lib_dlsearch_path_spec
='/usr/lib'
22190 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22195 shlibpath_var
=LD_LIBRARY_PATH
22196 shlibpath_overrides_runpath
=no
22197 hardcode_into_libs
=yes
22202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22203 soname_spec
='${libname}${release}${shared_ext}$major'
22204 shlibpath_var
=LD_LIBRARY_PATH
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22212 $as_echo "$dynamic_linker" >&6; }
22213 test "$dynamic_linker" = no
&& can_build_shared
=no
22215 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22216 if test "$GCC" = yes; then
22217 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22220 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22221 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22223 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22224 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22265 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22266 hardcode_action_CXX
=
22267 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22268 test -n "$runpath_var_CXX" ||
22269 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22271 # We can hardcode non-existent directories.
22272 if test "$hardcode_direct_CXX" != no
&&
22273 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22274 # have to relink, otherwise we might link with an installed library
22275 # when we should be linking with a yet-to-be-installed one
22276 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22277 test "$hardcode_minus_L_CXX" != no
; then
22278 # Linking always hardcodes the temporary library directory.
22279 hardcode_action_CXX
=relink
22281 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22282 hardcode_action_CXX
=immediate
22285 # We cannot hardcode anything, or else we can only hardcode existing
22287 hardcode_action_CXX
=unsupported
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22290 $as_echo "$hardcode_action_CXX" >&6; }
22292 if test "$hardcode_action_CXX" = relink ||
22293 test "$inherit_rpath_CXX" = yes; then
22294 # Fast installation is not supported
22295 enable_fast_install
=no
22296 elif test "$shlibpath_overrides_runpath" = yes ||
22297 test "$enable_shared" = no
; then
22298 # Fast installation is not necessary
22299 enable_fast_install
=needless
22308 fi # test -n "$compiler"
22314 with_gnu_ld
=$lt_save_with_gnu_ld
22315 lt_cv_path_LDCXX
=$lt_cv_path_LD
22316 lt_cv_path_LD
=$lt_save_path_LD
22317 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22318 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22319 fi # test "$_lt_caught_CXX_error" != yes
22322 ac_cpp
='$CXXCPP $CPPFLAGS'
22323 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22324 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22325 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22342 # Only expand once:
22348 # Identify the assembler which will work hand-in-glove with the newly
22349 # built GCC, so that we can examine its features. This is the assembler
22350 # which will be driven by the driver program.
22352 # If build != host, and we aren't building gas in-tree, we identify a
22353 # build->target assembler and hope that it will have the same features
22354 # as the host->target assembler we'll be using.
22355 gcc_cv_gas_major_version
=
22356 gcc_cv_gas_minor_version
=
22357 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22359 if ${gcc_cv_as+:} false
; then :
22363 if test -x "$DEFAULT_ASSEMBLER"; then
22364 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22365 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22366 && test -f ..
/gas
/Makefile \
22367 && test x
$build = x
$host; then
22368 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22369 elif test -x as
$build_exeext; then
22370 # Build using assembler in the current directory.
22371 gcc_cv_as
=.
/as
$build_exeext
22372 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22373 gcc_cv_as
="$AS_FOR_TARGET"
22375 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22376 set dummy
$AS_FOR_TARGET; ac_word
=$2
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22378 $as_echo_n "checking for $ac_word... " >&6; }
22379 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22380 $as_echo_n "(cached) " >&6
22384 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22388 for as_dir
in $PATH
22391 test -z "$as_dir" && as_dir
=.
22392 for ac_exec_ext
in '' $ac_executable_extensions; do
22393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22394 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22405 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22406 if test -n "$gcc_cv_as"; then
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22408 $as_echo "$gcc_cv_as" >&6; }
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411 $as_echo "no" >&6; }
22418 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22420 case "$ORIGINAL_AS_FOR_TARGET" in
22421 .
/as | .
/as
$build_exeext) ;;
22422 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22427 $as_echo_n "checking what assembler to use... " >&6; }
22428 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22429 # Single tree build which includes gas. We want to prefer it
22430 # over whatever linker top-level may have detected, since
22431 # we'll use what we're building after installation anyway.
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22433 $as_echo "newly built gas" >&6; }
22435 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22436 for f
in $gcc_cv_as_bfd_srcdir/configure \
22437 $gcc_cv_as_gas_srcdir/configure \
22438 $gcc_cv_as_gas_srcdir/configure.ac \
22439 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22440 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22441 if test x
$gcc_cv_gas_version != x
; then
22445 case $gcc_cv_gas_version in
22447 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22449 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22450 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22451 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22452 case $gcc_cv_gas_patch_version in
22453 "") gcc_cv_gas_patch_version
="0" ;;
22455 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22456 + $gcc_cv_gas_minor_version \) \* 1000 \
22457 + $gcc_cv_gas_patch_version`
22459 in_tree_gas_is_elf
=no
22460 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22461 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22462 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22464 in_tree_gas_is_elf
=yes
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22468 $as_echo "$gcc_cv_as" >&6; }
22473 # Check whether --enable-ld was given.
22474 if test "${enable_ld+set}" = set; then :
22475 enableval
=$enable_ld; case "${enableval}" in
22483 install_gold_as_default
=no
22484 # Check whether --enable-gold was given.
22485 if test "${enable_gold+set}" = set; then :
22486 enableval
=$enable_gold; case "${enableval}" in
22488 install_gold_as_default
=yes
22491 if test x
${default_ld} != x
; then
22492 install_gold_as_default
=yes
22498 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22504 # Identify the linker which will work hand-in-glove with the newly
22505 # built GCC, so that we can examine its features. This is the linker
22506 # which will be driven by the driver program.
22508 # If build != host, and we aren't building gas in-tree, we identify a
22509 # build->target linker and hope that it will have the same features
22510 # as the host->target linker we'll be using.
22511 gcc_cv_gld_major_version
=
22512 gcc_cv_gld_minor_version
=
22513 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22514 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22515 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22517 if ${gcc_cv_ld+:} false
; then :
22521 if test -x "$DEFAULT_LINKER"; then
22522 gcc_cv_ld
="$DEFAULT_LINKER"
22523 elif test $install_gold_as_default = yes \
22524 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22525 && test -f ..
/gold
/Makefile \
22526 && test x
$build = x
$host; then
22527 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22528 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22529 && test -f ..
/ld
/Makefile \
22530 && test x
$build = x
$host; then
22531 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22532 elif test -x collect-ld
$build_exeext; then
22533 # Build using linker in the current directory.
22534 gcc_cv_ld
=.
/collect-ld
$build_exeext
22535 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22536 gcc_cv_ld
="$LD_FOR_TARGET"
22538 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22539 set dummy
$LD_FOR_TARGET; ac_word
=$2
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22541 $as_echo_n "checking for $ac_word... " >&6; }
22542 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22543 $as_echo_n "(cached) " >&6
22547 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22551 for as_dir
in $PATH
22554 test -z "$as_dir" && as_dir
=.
22555 for ac_exec_ext
in '' $ac_executable_extensions; do
22556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22557 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22568 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22569 if test -n "$gcc_cv_ld"; then
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22571 $as_echo "$gcc_cv_ld" >&6; }
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22574 $as_echo "no" >&6; }
22581 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22582 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22583 # if the PLUGIN_LD is set ld-new, just have it as ld
22584 # as that is the installed named.
22585 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22586 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22587 PLUGIN_LD_SUFFIX
=ld
22590 # Check whether --with-plugin-ld was given.
22591 if test "${with_plugin_ld+set}" = set; then :
22592 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22593 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22594 PLUGIN_LD_SUFFIX
="$withval"
22600 cat >>confdefs.h
<<_ACEOF
22601 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22605 # Check to see if we are using gold instead of ld
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22607 $as_echo_n "checking whether we are using gold... " >&6; }
22609 if test x
$gcc_cv_ld != x
; then
22610 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22611 |
grep "GNU gold" > /dev
/null
; then
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22616 $as_echo "$ld_is_gold" >&6; }
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22619 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22620 # Check to see if default ld is not gold, but gold is
22621 # available and has support for split stack. If gcc was configured
22622 # with gold then no checking is done.
22624 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22626 # For platforms other than powerpc64*, enable as appropriate.
22628 gold_non_default
=no
22629 ld_gold
=`which ${gcc_cv_ld}.gold`
22630 # Make sure this gold has minimal split stack support
22631 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22632 ld_vers
=`$ld_gold --version | sed 1q`
22633 gold_vers
=`echo $ld_vers | sed -n \
22634 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22636 # check that the gold version contains the complete split stack support
22637 # on powerpc64 big and little endian
22639 case "$gold_vers" in
22640 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22642 *) gold_non_default
=no
22648 if test $gold_non_default = yes; then
22650 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22655 $as_echo "$gold_non_default" >&6; }
22657 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22659 case "$ORIGINAL_LD_FOR_TARGET" in
22660 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22661 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22666 $as_echo_n "checking what linker to use... " >&6; }
22667 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22668 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22669 # Single tree build which includes ld. We want to prefer it
22670 # over whatever linker top-level may have detected, since
22671 # we'll use what we're building after installation anyway.
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22673 $as_echo "newly built ld" >&6; }
22675 in_tree_ld_is_elf
=no
22676 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22677 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22678 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22679 in_tree_ld_is_elf
=yes
22680 elif test "$ld_is_gold" = yes; then
22681 in_tree_ld_is_elf
=yes
22683 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
22685 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22686 if test x
$gcc_cv_gld_version != x
; then
22690 case $gcc_cv_gld_version in
22692 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22694 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22695 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22696 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22697 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22700 $as_echo "$gcc_cv_ld" >&6; }
22702 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22703 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22704 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22710 # Figure out what nm we will be using.
22711 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22712 if ${gcc_cv_nm+:} false
; then :
22716 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22717 && test -f ..
/binutils
/Makefile \
22718 && test x
$build = x
$host; then
22719 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22720 elif test -x nm
$build_exeext; then
22721 gcc_cv_nm
=.
/nm
$build_exeext
22722 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22723 gcc_cv_nm
="$NM_FOR_TARGET"
22725 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22726 set dummy
$NM_FOR_TARGET; ac_word
=$2
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22728 $as_echo_n "checking for $ac_word... " >&6; }
22729 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22730 $as_echo_n "(cached) " >&6
22734 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22738 for as_dir
in $PATH
22741 test -z "$as_dir" && as_dir
=.
22742 for ac_exec_ext
in '' $ac_executable_extensions; do
22743 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22744 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22755 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22756 if test -n "$gcc_cv_nm"; then
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22758 $as_echo "$gcc_cv_nm" >&6; }
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761 $as_echo "no" >&6; }
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22769 $as_echo_n "checking what nm to use... " >&6; }
22770 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22771 # Single tree build which includes binutils.
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22773 $as_echo "newly built nm" >&6; }
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22777 $as_echo "$gcc_cv_nm" >&6; }
22781 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22783 case "$ORIGINAL_NM_FOR_TARGET" in
22784 .
/nm | .
/nm
$build_exeext) ;;
22785 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22790 # Figure out what objdump we will be using.
22791 if ${gcc_cv_objdump+:} false
; then :
22795 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22796 && test -f ..
/binutils
/Makefile \
22797 && test x
$build = x
$host; then
22798 # Single tree build which includes binutils.
22799 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22800 elif test -x objdump
$build_exeext; then
22801 gcc_cv_objdump
=.
/objdump
$build_exeext
22802 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22803 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22805 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22806 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22808 $as_echo_n "checking for $ac_word... " >&6; }
22809 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22810 $as_echo_n "(cached) " >&6
22812 case $gcc_cv_objdump in
22814 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22818 for as_dir
in $PATH
22821 test -z "$as_dir" && as_dir
=.
22822 for ac_exec_ext
in '' $ac_executable_extensions; do
22823 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22824 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22835 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22836 if test -n "$gcc_cv_objdump"; then
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22838 $as_echo "$gcc_cv_objdump" >&6; }
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22841 $as_echo "no" >&6; }
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22849 $as_echo_n "checking what objdump to use... " >&6; }
22850 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22851 # Single tree build which includes binutils.
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22853 $as_echo "newly built objdump" >&6; }
22854 elif test x
$gcc_cv_objdump = x
; then
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22856 $as_echo "not found" >&6; }
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22859 $as_echo "$gcc_cv_objdump" >&6; }
22862 # Figure out what readelf we will be using.
22863 if ${gcc_cv_readelf+:} false
; then :
22867 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22868 && test -f ..
/binutils
/Makefile \
22869 && test x
$build = x
$host; then
22870 # Single tree build which includes binutils.
22871 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22872 elif test -x readelf
$build_exeext; then
22873 gcc_cv_readelf
=.
/readelf
$build_exeext
22874 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22875 gcc_cv_readelf
="$READELF_FOR_TARGET"
22877 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22878 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22880 $as_echo_n "checking for $ac_word... " >&6; }
22881 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22882 $as_echo_n "(cached) " >&6
22884 case $gcc_cv_readelf in
22886 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22890 for as_dir
in $PATH
22893 test -z "$as_dir" && as_dir
=.
22894 for ac_exec_ext
in '' $ac_executable_extensions; do
22895 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22896 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22907 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22908 if test -n "$gcc_cv_readelf"; then
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22910 $as_echo "$gcc_cv_readelf" >&6; }
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22913 $as_echo "no" >&6; }
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22921 $as_echo_n "checking what readelf to use... " >&6; }
22922 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22923 # Single tree build which includes binutils.
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22925 $as_echo "newly built readelf" >&6; }
22926 elif test x
$gcc_cv_readelf = x
; then
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22928 $as_echo "not found" >&6; }
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22931 $as_echo "$gcc_cv_readelf" >&6; }
22934 # Figure out what otool we will be using.
22935 if ${gcc_cv_otool+:} false
; then :
22939 if test -x otool
$build_exeext; then
22940 gcc_cv_otool
=.
/otool
$build_exeext
22941 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22942 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22944 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22945 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22947 $as_echo_n "checking for $ac_word... " >&6; }
22948 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22949 $as_echo_n "(cached) " >&6
22951 case $gcc_cv_otool in
22953 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22957 for as_dir
in $PATH
22960 test -z "$as_dir" && as_dir
=.
22961 for ac_exec_ext
in '' $ac_executable_extensions; do
22962 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22963 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22974 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22975 if test -n "$gcc_cv_otool"; then
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22977 $as_echo "$gcc_cv_otool" >&6; }
22979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22980 $as_echo "no" >&6; }
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22988 $as_echo_n "checking what otool to use... " >&6; }
22989 if test x
$gcc_cv_otool = x
; then
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22991 $as_echo "not found" >&6; }
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22994 $as_echo "$gcc_cv_otool" >&6; }
22997 # Figure out what assembler alignment features are present.
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22999 $as_echo_n "checking assembler flags... " >&6; }
23000 if ${gcc_cv_as_flags+:} false
; then :
23001 $as_echo_n "(cached) " >&6
23004 i
[34567]86-*-linux*)
23005 gcc_cv_as_flags
=--32
23007 x86_64-
*-linux-gnux32)
23008 gcc_cv_as_flags
=--x32
23011 gcc_cv_as_flags
=--64
23013 powerpc
*-*-darwin*)
23014 gcc_cv_as_flags
="-arch ppc"
23017 gcc_cv_as_flags
=" "
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23022 $as_echo "$gcc_cv_as_flags" >&6; }
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23025 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23026 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23027 $as_echo_n "(cached) " >&6
23029 gcc_cv_as_balign_and_p2align
=no
23030 if test $in_tree_gas = yes; then
23031 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23032 then gcc_cv_as_balign_and_p2align
=yes
23034 elif test x
$gcc_cv_as != x
; then
23035 $as_echo '.balign 4
23036 .p2align 2' > conftest.s
23037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23039 (eval $ac_try) 2>&5
23041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23042 test $ac_status = 0; }; }
23044 gcc_cv_as_balign_and_p2align
=yes
23046 echo "configure: failed program was" >&5
23049 rm -f conftest.o conftest.s
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23053 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23054 if test $gcc_cv_as_balign_and_p2align = yes; then
23056 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23062 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23063 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23064 $as_echo_n "(cached) " >&6
23066 gcc_cv_as_max_skip_p2align
=no
23067 if test $in_tree_gas = yes; then
23068 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23069 then gcc_cv_as_max_skip_p2align
=yes
23071 elif test x
$gcc_cv_as != x
; then
23072 $as_echo '.p2align 4,,7' > conftest.s
23073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23075 (eval $ac_try) 2>&5
23077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23078 test $ac_status = 0; }; }
23080 gcc_cv_as_max_skip_p2align
=yes
23082 echo "configure: failed program was" >&5
23085 rm -f conftest.o conftest.s
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23089 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23090 if test $gcc_cv_as_max_skip_p2align = yes; then
23092 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23098 $as_echo_n "checking assembler for .literal16... " >&6; }
23099 if ${gcc_cv_as_literal16+:} false
; then :
23100 $as_echo_n "(cached) " >&6
23102 gcc_cv_as_literal16
=no
23103 if test $in_tree_gas = yes; then
23104 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23105 then gcc_cv_as_literal16
=yes
23107 elif test x
$gcc_cv_as != x
; then
23108 $as_echo '.literal16' > conftest.s
23109 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23111 (eval $ac_try) 2>&5
23113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23114 test $ac_status = 0; }; }
23116 gcc_cv_as_literal16
=yes
23118 echo "configure: failed program was" >&5
23121 rm -f conftest.o conftest.s
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23125 $as_echo "$gcc_cv_as_literal16" >&6; }
23126 if test $gcc_cv_as_literal16 = yes; then
23128 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23134 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23135 if ${gcc_cv_as_subsection_m1+:} false
; then :
23136 $as_echo_n "(cached) " >&6
23138 gcc_cv_as_subsection_m1
=no
23139 if test $in_tree_gas = yes; then
23140 if test $in_tree_gas_is_elf = yes \
23141 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23142 then gcc_cv_as_subsection_m1
=yes
23144 elif test x
$gcc_cv_as != x
; then
23145 $as_echo 'conftest_label1: .word 0
23147 conftest_label2: .word 0
23148 .previous' > conftest.s
23149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23156 if test x
$gcc_cv_nm != x
; then
23157 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23158 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23159 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23161 else gcc_cv_as_subsection_m1
=yes
23163 rm -f conftest.nm1 conftest.nm2
23166 echo "configure: failed program was" >&5
23169 rm -f conftest.o conftest.s
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23173 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23174 if test $gcc_cv_as_subsection_m1 = yes; then
23176 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23182 $as_echo_n "checking assembler for .weak... " >&6; }
23183 if ${gcc_cv_as_weak+:} false
; then :
23184 $as_echo_n "(cached) " >&6
23187 if test $in_tree_gas = yes; then
23188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23189 then gcc_cv_as_weak
=yes
23191 elif test x
$gcc_cv_as != x
; then
23192 $as_echo ' .weak foobar' > conftest.s
23193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23202 echo "configure: failed program was" >&5
23205 rm -f conftest.o conftest.s
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23209 $as_echo "$gcc_cv_as_weak" >&6; }
23210 if test $gcc_cv_as_weak = yes; then
23212 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23218 $as_echo_n "checking assembler for .weakref... " >&6; }
23219 if ${gcc_cv_as_weakref+:} false
; then :
23220 $as_echo_n "(cached) " >&6
23222 gcc_cv_as_weakref
=no
23223 if test $in_tree_gas = yes; then
23224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23225 then gcc_cv_as_weakref
=yes
23227 elif test x
$gcc_cv_as != x
; then
23228 $as_echo ' .weakref foobar, barfnot' > conftest.s
23229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23231 (eval $ac_try) 2>&5
23233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234 test $ac_status = 0; }; }
23236 gcc_cv_as_weakref
=yes
23238 echo "configure: failed program was" >&5
23241 rm -f conftest.o conftest.s
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23245 $as_echo "$gcc_cv_as_weakref" >&6; }
23246 if test $gcc_cv_as_weakref = yes; then
23248 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23254 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23255 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23256 $as_echo_n "(cached) " >&6
23258 gcc_cv_as_nsubspa_comdat
=no
23259 if test $in_tree_gas = yes; then
23260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23261 then gcc_cv_as_nsubspa_comdat
=yes
23263 elif test x
$gcc_cv_as != x
; then
23264 $as_echo ' .SPACE $TEXT$
23265 .NSUBSPA $CODE$,COMDAT' > conftest.s
23266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23273 gcc_cv_as_nsubspa_comdat
=yes
23275 echo "configure: failed program was" >&5
23278 rm -f conftest.o conftest.s
23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23282 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23283 if test $gcc_cv_as_nsubspa_comdat = yes; then
23285 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23290 # .hidden needs to be supported in both the assembler and the linker,
23291 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23292 # This is irritatingly difficult to feature test for; we have to check the
23293 # date string after the version number. If we've got an in-tree
23294 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23296 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23297 case "${target}" in
23299 conftest_s
=' .globl foobar,hidden'
23302 conftest_s
=' .hidden foobar
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23307 $as_echo_n "checking assembler for .hidden... " >&6; }
23308 if ${gcc_cv_as_hidden+:} false
; then :
23309 $as_echo_n "(cached) " >&6
23311 gcc_cv_as_hidden
=no
23312 if test $in_tree_gas = yes; then
23313 if test $in_tree_gas_is_elf = yes \
23314 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23315 then gcc_cv_as_hidden
=yes
23317 elif test x
$gcc_cv_as != x
; then
23318 $as_echo "$conftest_s" > conftest.s
23319 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23321 (eval $ac_try) 2>&5
23323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23324 test $ac_status = 0; }; }
23326 gcc_cv_as_hidden
=yes
23328 echo "configure: failed program was" >&5
23331 rm -f conftest.o conftest.s
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23335 $as_echo "$gcc_cv_as_hidden" >&6; }
23338 case "${target}" in
23340 # Darwin as has some visibility support, though with a different syntax.
23341 gcc_cv_as_hidden
=yes
23345 # gnu_indirect_function type is an extension proposed at
23346 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23347 # selection of function implementation
23348 # Check whether --enable-gnu-indirect-function was given.
23349 if test "${enable_gnu_indirect_function+set}" = set; then :
23350 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23352 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23353 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23356 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23360 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23362 cat >>confdefs.h
<<_ACEOF
23363 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23368 if test $in_tree_ld != yes ; then
23369 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23370 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23371 if test x
"$ld_is_gold" = xyes
; then
23372 # GNU gold --version looks like this:
23374 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23376 # We extract the binutils version which is more familiar and specific
23377 # than the gold version.
23378 ld_vers
=`echo $ld_ver | sed -n \
23379 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23381 # GNU ld --version looks like this:
23383 # GNU ld (GNU Binutils) 2.21.51.20110225
23384 ld_vers
=`echo $ld_ver | sed -n \
23385 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23387 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
23388 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23389 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23390 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23392 case "${target}" in
23394 # Solaris 2 ld -V output looks like this for a regular version:
23396 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23398 # but test versions add stuff at the end:
23400 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23402 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23403 # numbers can be used in ld.so.1 feature checks even if a different
23404 # linker is configured.
23405 ld_ver
=`$gcc_cv_ld -V 2>&1`
23406 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23407 ld_vers
=`echo $ld_ver | sed -n \
23408 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23409 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23410 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23418 $as_echo_n "checking linker for .hidden support... " >&6; }
23419 if ${gcc_cv_ld_hidden+:} false
; then :
23420 $as_echo_n "(cached) " >&6
23422 if test $in_tree_ld = yes ; then
23423 gcc_cv_ld_hidden
=no
23424 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 \
23425 && test $in_tree_ld_is_elf = yes; then
23426 gcc_cv_ld_hidden
=yes
23429 gcc_cv_ld_hidden
=yes
23430 if test x
"$ld_is_gold" = xyes
; then
23432 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23433 case "${target}" in
23434 mmix-knuth-mmixware
)
23435 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23436 gcc_cv_ld_hidden
=no
23439 if test 0"$ld_date" -lt 20020404; then
23440 if test -n "$ld_date"; then
23441 # If there was date string, but was earlier than 2002-04-04, fail
23442 gcc_cv_ld_hidden
=no
23443 elif test -z "$ld_vers"; then
23444 # If there was no date string nor ld version number, something is wrong
23445 gcc_cv_ld_hidden
=no
23447 test -z "$ld_vers_patch" && ld_vers_patch
=0
23448 if test "$ld_vers_major" -lt 2; then
23449 gcc_cv_ld_hidden
=no
23450 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23451 gcc_cv_ld_hidden
="no"
23452 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23453 gcc_cv_ld_hidden
=no
23458 case "${target}" in
23460 gcc_cv_ld_hidden
=yes
23463 # Darwin ld has some visibility support.
23464 gcc_cv_ld_hidden
=yes
23466 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23467 gcc_cv_ld_hidden
=yes
23470 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23471 # .symbolic was only added in Solaris 9 12/02.
23472 gcc_cv_ld_hidden
=yes
23475 gcc_cv_ld_hidden
=no
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23482 $as_echo "$gcc_cv_ld_hidden" >&6; }
23483 libgcc_visibility
=no
23486 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23487 libgcc_visibility
=yes
23489 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23494 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23495 gcc_cv_ld_ro_rw_mix
=unknown
23496 if test $in_tree_ld = yes ; then
23497 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 \
23498 && test $in_tree_ld_is_elf = yes; then
23499 gcc_cv_ld_ro_rw_mix
=read-write
23501 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23502 echo '.section myfoosect, "a"' > conftest1.s
23503 echo '.section myfoosect, "aw"' > conftest2.s
23504 echo '.byte 1' >> conftest2.s
23505 echo '.section myfoosect, "a"' > conftest3.s
23506 echo '.byte 0' >> conftest3.s
23507 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23508 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23509 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23510 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23511 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23512 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23513 | sed -e '/myfoosect/!d' -e N`
23514 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23515 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23516 gcc_cv_ld_ro_rw_mix
=read-only
23518 gcc_cv_ld_ro_rw_mix
=read-write
23522 rm -f conftest.
* conftest
[123].
*
23524 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23526 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23530 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23532 # Check whether --enable-initfini-array was given.
23533 if test "${enable_initfini_array+set}" = set; then :
23534 enableval
=$enable_initfini_array;
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23538 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23539 if ${gcc_cv_initfini_array+:} false
; then :
23540 $as_echo_n "(cached) " >&6
23542 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23543 case "${target}" in
23545 if test "$cross_compiling" = yes; then :
23546 gcc_cv_initfini_array
=no
23548 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23549 /* end confdefs.h. */
23552 #error Not an ELF OS
23554 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23555 if it can be used. */
23557 int main (void) { return x; }
23558 int foo (void) { x = 0; }
23559 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23562 if ac_fn_cxx_try_run
"$LINENO"; then :
23563 gcc_cv_initfini_array
=yes
23565 gcc_cv_initfini_array
=no
23567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23572 gcc_cv_initfini_array
=no
23573 if test $in_tree_ld = yes ; then
23574 if test "$gcc_cv_gld_major_version" -eq 2 \
23575 -a "$gcc_cv_gld_minor_version" -ge 22 \
23576 -o "$gcc_cv_gld_major_version" -gt 2 \
23577 && test $in_tree_ld_is_elf = yes; then
23578 gcc_cv_initfini_array
=yes
23580 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23581 case $target:$gas in
23584 sh_type
='%progbits'
23586 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23588 sh_type
='@progbits'
23590 sparc
*-*-solaris2*:no
)
23592 sh_type
='#progbits'
23596 case "$target:$gnu_ld" in
23598 cat > conftest.s
<<EOF
23599 .section .dtors,$sh_flags,$sh_type
23601 .byte 'A', 'A', 'A', 'A'
23602 .section .ctors,$sh_flags,$sh_type
23604 .byte 'B', 'B', 'B', 'B'
23605 .section .fini_array.65530,$sh_flags,$sh_type
23607 .byte 'C', 'C', 'C', 'C'
23608 .section .init_array.65530,$sh_flags,$sh_type
23610 .byte 'D', 'D', 'D', 'D'
23611 .section .dtors.64528,$sh_flags,$sh_type
23613 .byte 'E', 'E', 'E', 'E'
23614 .section .ctors.64528,$sh_flags,$sh_type
23616 .byte 'F', 'F', 'F', 'F'
23617 .section .fini_array.01005,$sh_flags,$sh_type
23619 .byte 'G', 'G', 'G', 'G'
23620 .section .init_array.01005,$sh_flags,$sh_type
23622 .byte 'H', 'H', 'H', 'H'
23627 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23628 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23629 && $gcc_cv_objdump -s -j .init_array conftest \
23630 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23631 && $gcc_cv_objdump -s -j .fini_array conftest \
23632 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23633 gcc_cv_initfini_array
=yes
23637 # When Solaris ld added constructor priority support, it was
23638 # decided to only handle .init_array.N/.fini_array.N since
23639 # there was no need for backwards compatibility with
23640 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23641 # sections with correct execution order resp. to
23642 # .init_array/.fini_array, while gld merges them into
23643 # .init_array/.fini_array.
23644 cat > conftest.s
<<EOF
23645 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23647 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23648 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23650 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23651 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23653 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23654 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23656 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23661 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23662 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23663 && $gcc_cv_objdump -s -j .init_array conftest \
23664 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23665 && $gcc_cv_objdump -s -j .fini_array conftest \
23666 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23667 gcc_cv_initfini_array
=yes
23671 rm -f conftest conftest.
*
23673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h. */
23677 # error Not an ELF OS
23679 #include <stdlib.h>
23680 #if defined __GLIBC_PREREQ
23681 # if __GLIBC_PREREQ (2, 4)
23683 # error GLIBC 2.4 required
23686 # if defined __sun__ && defined __svr4__
23687 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23689 # error The C library not known to support .init_array/.fini_array
23694 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23697 gcc_cv_initfini_array
=no
23699 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23703 $as_echo_n "checking cross compile... guessing... " >&6; }
23704 gcc_cv_initfini_array
=no
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23708 $as_echo "$gcc_cv_initfini_array" >&6; }
23709 enable_initfini_array
=$gcc_cv_initfini_array
23714 cat >>confdefs.h
<<_ACEOF
23715 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23720 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23722 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23723 if ${gcc_cv_as_leb128+:} false
; then :
23724 $as_echo_n "(cached) " >&6
23726 gcc_cv_as_leb128
=no
23727 if test $in_tree_gas = yes; then
23728 if test $in_tree_gas_is_elf = yes \
23729 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23730 then gcc_cv_as_leb128
=yes
23732 elif test x
$gcc_cv_as != x
; then
23739 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23741 (eval $ac_try) 2>&5
23743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23744 test $ac_status = 0; }; }
23746 # GAS versions before 2.11 do not support uleb128,
23747 # despite appearing to.
23748 # ??? There exists an elf-specific test that will crash
23749 # the assembler. Perhaps it's better to figure out whether
23750 # arbitrary sections are supported and try the test.
23751 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23752 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23753 as_vers
=`echo $as_ver | sed -n \
23754 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23755 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23756 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23757 if test $as_major -eq 2 && test $as_minor -lt 11
23759 else gcc_cv_as_leb128
=yes
23763 echo "configure: failed program was" >&5
23766 rm -f conftest.o conftest.s
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23770 $as_echo "$gcc_cv_as_leb128" >&6; }
23771 if test $gcc_cv_as_leb128 = yes; then
23773 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23776 if test $gcc_cv_as_leb128 != yes; then
23778 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23782 # Determine if an .eh_frame section is read-only.
23783 gcc_fn_eh_frame_ro
() {
23784 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23785 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23786 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23789 # Check if we have assembler support for unwind directives.
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23791 $as_echo_n "checking assembler for cfi directives... " >&6; }
23792 if ${gcc_cv_as_cfi_directive+:} false
; then :
23793 $as_echo_n "(cached) " >&6
23795 gcc_cv_as_cfi_directive
=no
23796 if test x
$gcc_cv_as != x
; then
23802 .cfi_escape 1, 2, 3, 4, 5
23803 .cfi_endproc' > conftest.s
23804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23806 (eval $ac_try) 2>&5
23808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23809 test $ac_status = 0; }; }
23813 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23814 # read-only and read-write sections, we need to make sure that the
23815 # assembler used emits read-write .eh_frame sections.
23816 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23817 gcc_cv_as_cfi_directive
=yes
23818 elif test "x$gcc_cv_objdump" = x
; then
23819 # No objdump, err on the side of caution.
23820 gcc_cv_as_cfi_directive
=no
23822 if test x
$gas = xyes
; then
23830 sparc
*-*-solaris2.
*)
23831 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23832 if gcc_fn_eh_frame_ro
$as_32_opt \
23833 || gcc_fn_eh_frame_ro
$as_64_opt; then
23834 gcc_cv_as_cfi_directive
=no
23836 gcc_cv_as_cfi_directive
=yes
23839 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23840 # On Solaris/x86, make sure that GCC and assembler agree on using
23841 # read-only .eh_frame sections for 64-bit.
23842 if gcc_fn_eh_frame_ro
$as_32_opt; then
23843 gcc_cv_as_cfi_directive
=no
23844 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23845 gcc_cv_as_cfi_directive
=yes
23847 gcc_cv_as_cfi_directive
=no
23854 gcc_cv_as_cfi_directive
=yes
23858 echo "configure: failed program was" >&5
23861 rm -f conftest.o conftest.s
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23865 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23868 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23870 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23871 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23872 $as_echo_n "(cached) " >&6
23874 gcc_cv_as_cfi_advance_working
=no
23875 if test x
$gcc_cv_as != x
; then
23878 .cfi_adjust_cfa_offset 64
23880 .cfi_adjust_cfa_offset 128
23881 .cfi_endproc' > conftest.s
23882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23884 (eval $ac_try) 2>&5
23886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23887 test $ac_status = 0; }; }
23890 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23891 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23892 gcc_cv_as_cfi_advance_working
=yes
23896 echo "configure: failed program was" >&5
23899 rm -f conftest.o conftest.s
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23903 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23907 # no objdump, err on the side of caution
23908 gcc_cv_as_cfi_advance_working
=no
23912 cat >>confdefs.h
<<_ACEOF
23913 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23914 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23920 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23921 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23922 $as_echo_n "(cached) " >&6
23924 gcc_cv_as_cfi_personality_directive
=no
23925 if test x
$gcc_cv_as != x
; then
23928 .cfi_personality 0, symbol
23929 .cfi_endproc' > conftest.s
23930 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23932 (eval $ac_try) 2>&5
23934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935 test $ac_status = 0; }; }
23937 gcc_cv_as_cfi_personality_directive
=yes
23939 echo "configure: failed program was" >&5
23942 rm -f conftest.o conftest.s
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23946 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23950 cat >>confdefs.h
<<_ACEOF
23951 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23956 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23957 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23958 $as_echo_n "(cached) " >&6
23960 gcc_cv_as_cfi_sections_directive
=no
23961 if test x
$gcc_cv_as != x
; then
23963 .cfi_sections .debug_frame, .eh_frame
23965 .cfi_endproc' > conftest.s
23966 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23968 (eval $ac_try) 2>&5
23970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23971 test $ac_status = 0; }; }
23974 win32 | pe | cygwin
* | mingw32
*)
23975 # Need to check that we generated the correct relocation for the
23976 # .debug_frame section. This was fixed for binutils 2.21.
23977 gcc_cv_as_cfi_sections_directive
=no
23978 if test "x$gcc_cv_objdump" != x
; then
23979 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23980 grep secrel
> /dev
/null
; then
23981 gcc_cv_as_cfi_sections_directive
=yes
23986 gcc_cv_as_cfi_sections_directive
=yes
23990 echo "configure: failed program was" >&5
23993 rm -f conftest.o conftest.s
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23997 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24002 cat >>confdefs.h
<<_ACEOF
24003 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24007 # GAS versions up to and including 2.11.0 may mis-optimize
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24010 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24011 if ${gcc_cv_as_eh_frame+:} false
; then :
24012 $as_echo_n "(cached) " >&6
24014 gcc_cv_as_eh_frame
=no
24015 if test $in_tree_gas = yes; then
24016 if test $in_tree_gas_is_elf = yes \
24017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24018 then gcc_cv_as_eh_frame
=yes
24020 elif test x
$gcc_cv_as != x
; then
24027 .section .eh_frame,"aw",@progbits
24029 .4byte .LECIE1-.LSCIE1
24043 .4byte .LEFDE1-.LASFDE1
24045 .4byte .LASFDE1-__FRAME_BEGIN__
24052 .LEFDE1:' > conftest.s
24053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24055 (eval $ac_try) 2>&5
24057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24058 test $ac_status = 0; }; }
24060 cat > conftest.lit
<<EOF
24061 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24062 0010 01000000 12000000 18000000 00000000 ................
24063 0020 08000000 04080000 0044 .........D
24065 cat > conftest.big
<<EOF
24066 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24067 0010 00000001 00000012 00000018 00000000 ................
24068 0020 00000008 04000000 0844 .........D
24070 # If the assembler didn't choke, and we can objdump,
24071 # and we got the correct data, then succeed.
24072 # The text in the here-document typically retains its unix-style line
24073 # endings, while the output of objdump will use host line endings.
24074 # Therefore, use diff -b for the comparisons.
24075 if test x
$gcc_cv_objdump != x \
24076 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24077 |
tail -3 > conftest.got \
24078 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24079 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24081 gcc_cv_as_eh_frame
=yes
24082 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24084 (eval $ac_try) 2>&5
24086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24087 test $ac_status = 0; }; }; then
24088 gcc_cv_as_eh_frame
=buggy
24090 # Uh oh, what do we do now?
24091 gcc_cv_as_eh_frame
=no
24094 echo "configure: failed program was" >&5
24097 rm -f conftest.o conftest.s
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24101 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24105 if test $gcc_cv_as_eh_frame = buggy
; then
24107 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24111 # Test if the assembler supports the section flag 'e' or #exclude for
24112 # specifying an excluded section.
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24114 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24115 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24116 $as_echo_n "(cached) " >&6
24118 gcc_cv_as_section_exclude_e
=no
24119 if test $in_tree_gas = yes; then
24120 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24121 then gcc_cv_as_section_exclude_e
=yes
24123 elif test x
$gcc_cv_as != x
; then
24124 $as_echo '.section foo1,"e"
24125 .byte 0,0,0,0' > conftest.s
24126 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24128 (eval $ac_try) 2>&5
24130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; }
24133 gcc_cv_as_section_exclude_e
=yes
24135 echo "configure: failed program was" >&5
24138 rm -f conftest.o conftest.s
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24142 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24145 if test $gcc_cv_as_section_exclude_e = no
; then
24146 case "${target}" in
24147 # Solaris as uses #exclude instead.
24149 case "${target}" in
24150 sparc
*-*-solaris2*)
24151 conftest_s
='.section "foo1", #exclude'
24153 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24154 conftest_s
='.section foo1, #exclude'
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24160 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24161 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24162 $as_echo_n "(cached) " >&6
24164 gcc_cv_as_section_exclude_hash
=no
24165 if test x
$gcc_cv_as != x
; then
24166 $as_echo "$conftest_s
24167 .byte 0,0,0,0" > conftest.s
24168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24170 (eval $ac_try) 2>&5
24172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24173 test $ac_status = 0; }; }
24175 gcc_cv_as_section_exclude_hash
=yes
24177 echo "configure: failed program was" >&5
24180 rm -f conftest.o conftest.s
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24184 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24189 cat >>confdefs.h
<<_ACEOF
24190 #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`
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24195 $as_echo_n "checking assembler for section merging support... " >&6; }
24196 if ${gcc_cv_as_shf_merge+:} false
; then :
24197 $as_echo_n "(cached) " >&6
24199 gcc_cv_as_shf_merge
=no
24200 if test $in_tree_gas = yes; then
24201 if test $in_tree_gas_is_elf = yes \
24202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24203 then gcc_cv_as_shf_merge
=yes
24205 elif test x
$gcc_cv_as != x
; then
24206 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24207 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24209 (eval $ac_try) 2>&5
24211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24212 test $ac_status = 0; }; }
24214 gcc_cv_as_shf_merge
=yes
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_shf_merge" >&5
24223 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24226 if test $gcc_cv_as_shf_merge = no
; then
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24228 $as_echo_n "checking assembler for section merging support... " >&6; }
24229 if ${gcc_cv_as_shf_merge+:} false
; then :
24230 $as_echo_n "(cached) " >&6
24232 gcc_cv_as_shf_merge
=no
24233 if test $in_tree_gas = yes; then
24234 if test $in_tree_gas_is_elf = yes \
24235 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24236 then gcc_cv_as_shf_merge
=yes
24238 elif test x
$gcc_cv_as != x
; then
24239 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24240 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24242 (eval $ac_try) 2>&5
24244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24245 test $ac_status = 0; }; }
24247 gcc_cv_as_shf_merge
=yes
24249 echo "configure: failed program was" >&5
24252 rm -f conftest.o conftest.s
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24256 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24261 cat >>confdefs.h
<<_ACEOF
24262 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24266 gcc_cv_ld_aligned_shf_merge
=yes
24268 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24270 sparc
*-*-solaris2.11
*)
24271 if test x
"$gnu_ld" = xno \
24272 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24273 gcc_cv_ld_aligned_shf_merge
=no
24278 cat >>confdefs.h
<<_ACEOF
24279 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24284 $as_echo_n "checking assembler for stabs directive... " >&6; }
24285 if ${gcc_cv_as_stabs_directive+:} false
; then :
24286 $as_echo_n "(cached) " >&6
24288 gcc_cv_as_stabs_directive
=no
24289 if test x
$gcc_cv_as != x
; then
24290 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24293 (eval $ac_try) 2>&5
24295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24296 test $ac_status = 0; }; }
24298 gcc_cv_as_stabs_directive
=yes
24300 echo "configure: failed program was" >&5
24303 rm -f conftest.o conftest.s
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24307 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24308 if test $gcc_cv_as_stabs_directive = yes; then
24310 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24316 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24317 if ${gcc_cv_as_comdat_group+:} false
; then :
24318 $as_echo_n "(cached) " >&6
24320 gcc_cv_as_comdat_group
=no
24321 if test $in_tree_gas = yes; then
24322 if test $in_tree_gas_is_elf = yes \
24323 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24324 then gcc_cv_as_comdat_group
=yes
24326 elif test x
$gcc_cv_as != x
; then
24327 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24328 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24330 (eval $ac_try) 2>&5
24332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24333 test $ac_status = 0; }; }
24335 gcc_cv_as_comdat_group
=yes
24337 echo "configure: failed program was" >&5
24340 rm -f conftest.o conftest.s
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24344 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24347 if test $gcc_cv_as_comdat_group = yes; then
24348 gcc_cv_as_comdat_group_percent
=no
24349 gcc_cv_as_comdat_group_group
=no
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24352 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24353 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24354 $as_echo_n "(cached) " >&6
24356 gcc_cv_as_comdat_group_percent
=no
24357 if test $in_tree_gas = yes; then
24358 if test $in_tree_gas_is_elf = yes \
24359 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24360 then gcc_cv_as_comdat_group_percent
=yes
24362 elif test x
$gcc_cv_as != x
; then
24363 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24364 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24366 (eval $ac_try) 2>&5
24368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369 test $ac_status = 0; }; }
24371 gcc_cv_as_comdat_group_percent
=yes
24373 echo "configure: failed program was" >&5
24376 rm -f conftest.o conftest.s
24379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24380 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24383 if test $gcc_cv_as_comdat_group_percent = yes; then
24384 gcc_cv_as_comdat_group_group
=no
24386 case "${target}" in
24387 # Sun as uses a completely different syntax.
24389 case "${target}" in
24390 sparc
*-*-solaris2*)
24392 .group foo,".text%foo",#comdat
24393 .section ".text%foo", #alloc,#execinstr,#progbits
24398 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24400 .group foo,.text%foo,#comdat
24401 .section .text%foo, "ax", @progbits
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24408 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24409 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24410 $as_echo_n "(cached) " >&6
24412 gcc_cv_as_comdat_group_group
=no
24413 if test x
$gcc_cv_as != x
; then
24414 $as_echo "$conftest_s" > conftest.s
24415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24417 (eval $ac_try) 2>&5
24419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24420 test $ac_status = 0; }; }
24422 gcc_cv_as_comdat_group_group
=yes
24424 echo "configure: failed program was" >&5
24427 rm -f conftest.o conftest.s
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24431 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24436 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24437 gcc_cv_as_comdat_group_group
=no
24441 if test x
"$ld_is_gold" = xyes
; then
24443 elif test $in_tree_ld = yes ; then
24445 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 \
24446 && test $in_tree_ld_is_elf = yes; then
24449 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24451 if test 0"$ld_date" -lt 20050308; then
24452 if test -n "$ld_date"; then
24453 # If there was date string, but was earlier than 2005-03-08, fail
24455 elif test "$ld_vers_major" -lt 2; then
24457 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24462 case "${target}" in
24463 *-*-solaris2.1
[1-9]*)
24465 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24466 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24469 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24470 # least ld version 1.2267.
24471 if test "$ld_vers_major" -gt 1; then
24473 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24475 elif test "$ld_vers_minor" -ge 2267; then
24480 # Assume linkers other than GNU ld don't support COMDAT group.
24485 # Allow overriding the automatic COMDAT group tests above.
24486 # Check whether --enable-comdat was given.
24487 if test "${enable_comdat+set}" = set; then :
24488 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24491 if test $comdat_group = no
; then
24492 gcc_cv_as_comdat_group
=no
24493 gcc_cv_as_comdat_group_percent
=no
24494 gcc_cv_as_comdat_group_group
=no
24497 cat >>confdefs.h
<<_ACEOF
24498 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24499 || test $gcc_cv_as_comdat_group_percent = yes \
24500 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24504 # Restrict this test to Solaris/x86: other targets define this statically.
24505 case "${target}" in
24506 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24508 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24509 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24510 hidden_linkonce
=yes
24512 case "${target}" in
24513 # Full support for hidden thunks in linkonce sections only appeared in
24514 # Solaris 11/OpenSolaris.
24515 *-*-solaris2.1
[1-9]*)
24516 hidden_linkonce
=yes
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24524 $as_echo "$hidden_linkonce" >&6; }
24526 cat >>confdefs.h
<<_ACEOF
24527 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24534 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24535 if ${gcc_cv_as_is_stmt+:} false
; then :
24536 $as_echo_n "(cached) " >&6
24538 gcc_cv_as_is_stmt
=no
24539 if test $in_tree_gas = yes; then
24540 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24541 then gcc_cv_as_is_stmt
=yes
24543 elif test x
$gcc_cv_as != x
; then
24546 .loc 1 1 0 is_stmt 1' > conftest.s
24547 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24549 (eval $ac_try) 2>&5
24551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24552 test $ac_status = 0; }; }
24554 gcc_cv_as_is_stmt
=yes
24556 echo "configure: failed program was" >&5
24559 rm -f conftest.o conftest.s
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24563 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24564 if test $gcc_cv_as_is_stmt = yes; then
24566 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24572 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24573 if ${gcc_cv_as_discriminator+:} false
; then :
24574 $as_echo_n "(cached) " >&6
24576 gcc_cv_as_discriminator
=no
24577 if test $in_tree_gas = yes; then
24578 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24579 then gcc_cv_as_discriminator
=yes
24581 elif test x
$gcc_cv_as != x
; then
24584 .loc 1 1 0 discriminator 1' > conftest.s
24585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24587 (eval $ac_try) 2>&5
24589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24590 test $ac_status = 0; }; }
24592 gcc_cv_as_discriminator
=yes
24594 echo "configure: failed program was" >&5
24597 rm -f conftest.o conftest.s
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24601 $as_echo "$gcc_cv_as_discriminator" >&6; }
24602 if test $gcc_cv_as_discriminator = yes; then
24604 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24609 # Catch the newlib flag of the same name so we can gate GCC features on it.
24610 # Check whether --enable-newlib-nano-formatted-io was given.
24611 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24612 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
24616 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24622 # Thread-local storage - the check is heavily parameterized.
24630 .section ".tdata","awT",@progbits
24633 ldq $27,__tls_get_addr($29) !literal!1
24634 lda $16,foo($29) !tlsgd!1
24635 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24636 ldq $27,__tls_get_addr($29) !literal!2
24637 lda $16,foo($29) !tlsldm!2
24638 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24639 ldq $1,foo($29) !gotdtprel
24640 ldah $2,foo($29) !dtprelhi
24641 lda $3,foo($2) !dtprello
24642 lda $4,foo($29) !dtprel
24643 ldq $1,foo($29) !gottprel
24644 ldah $2,foo($29) !tprelhi
24645 lda $3,foo($2) !tprello
24646 lda $4,foo($29) !tprel'
24649 tls_as_opt
=--fatal-warnings
24653 add_s r0,r0, @foo@tpoff'
24657 cris-
*-*|crisv32-
*-*)
24659 .section ".tdata","awT",@progbits
24666 tls_as_opt
=--fatal-warnings
24670 .section ".tdata","awT",@progbits
24673 call #gettlsoff(x)'
24682 .section ".tdata","awT",@progbits
24686 addil LT%foo-$tls_gdidx$,gp
24687 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24690 addil LT%foo-$tls_ldidx$,gp
24692 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24693 addil LR%foo-$tls_dtpoff$,%ret0
24694 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24696 addil LT%foo-$tls_ieoff$,gp
24697 ldw RT%foo-$tls_ieoff$(%r1),%t2
24700 addil LR%foo-$tls_leoff$,%t1
24701 ldo RR%foo-$tls_leoff$(%r1),%t2'
24704 tls_as_opt
=--fatal-warnings
24708 .section ".tdata","awT",%progbits
24711 .word foo(gottpoff)
24719 i
[34567]86-*-* | x86_64-
*-*)
24721 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24728 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24730 .section .tdata,"awt",@progbits'
24735 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24739 .section ".tdata","awT",@progbits'
24743 tls_as_opt
="--fatal-warnings"
24747 conftest_s
="$conftest_s
24751 leal foo@tlsgd(,%ebx,1), %eax
24752 leal foo@tlsldm(%ebx), %eax
24753 leal foo@dtpoff(%eax), %edx
24754 movl foo@gottpoff(%ebx), %eax
24755 subl foo@gottpoff(%ebx), %eax
24756 addl foo@gotntpoff(%ebx), %eax
24757 movl foo@indntpoff, %eax
24758 movl \$foo@tpoff, %eax
24759 subl \$foo@tpoff, %eax
24760 leal foo@ntpoff(%ecx), %eax"
24763 if test x
$on_solaris = xyes
; then
24765 yes) tls_as_opt
="$tls_as_opt --64" ;;
24766 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24769 conftest_s
="$conftest_s
24773 leaq foo@tlsgd(%rip), %rdi
24774 leaq foo@tlsld(%rip), %rdi
24775 leaq foo@dtpoff(%rax), %rdx
24776 movq foo@gottpoff(%rip), %rax
24777 movq \$foo@tpoff, %rax"
24783 .section ".tdata","awT",@progbits
24786 addl r16 = @ltoff(@dtpmod(foo#)), gp
24787 addl r17 = @ltoff(@dtprel(foo#)), gp
24788 addl r18 = @ltoff(@tprel(foo#)), gp
24789 addl r19 = @dtprel(foo#), gp
24790 adds r21 = @dtprel(foo#), r13
24791 movl r23 = @dtprel(foo#)
24792 addl r20 = @tprel(foo#), gp
24793 adds r22 = @tprel(foo#), r13
24794 movl r24 = @tprel(foo#)'
24797 tls_as_opt
=--fatal-warnings
24801 .section .tdata,"awT",@progbits
24805 addik r5,r20,x@TLSGD
24806 addik r5,r20,x@TLSLDM'
24809 tls_as_opt
='--fatal-warnings'
24813 .section .tdata,"awT",@progbits
24817 addiu $4, $28, %tlsgd(x)
24818 addiu $4, $28, %tlsldm(x)
24819 lui $4, %dtprel_hi(x)
24820 addiu $4, $4, %dtprel_lo(x)
24821 lw $4, %gottprel(x)($28)
24822 lui $4, %tprel_hi(x)
24823 addiu $4, $4, %tprel_lo(x)'
24826 tls_as_opt
='-32 --fatal-warnings'
24830 .section .tdata,"awT",@progbits
24835 move.l x@TLSGD(%a5),%a0
24836 move.l x@TLSLDM(%a5),%a0
24837 move.l x@TLSLDO(%a5),%a0
24838 move.l x@TLSIE(%a5),%a0
24839 move.l x@TLSLE(%a5),%a0'
24842 tls_as_opt
='--fatal-warnings'
24846 .section ".tdata","awT",@progbits'
24849 tls_as_opt
="--fatal-warnings"
24853 .section ".tdata","awT",%progbits
24857 add x0, x0, #:tlsgd_lo12:x
24862 tls_as_opt
='--fatal-warnings'
24866 .section ".tdata","awT",@progbits
24869 l.movhi r3, tpoffha(foo)
24871 l.lwz r4, tpofflo(foo)(r3)'
24874 tls_as_opt
=--fatal-warnings
24878 .extern __get_tpointer
24896 .section ".tdata","awT",@progbits
24904 addi 3,2,ld0@got@tlsgd
24910 addi 3,2,x1@got@tlsld
24916 addis 9,3,x2@dtprel@ha
24917 addi 9,9,x2@dtprel@l
24920 ld 9,x3@got@dtprel(2)
24926 tls_as_opt
="-a64 --fatal-warnings"
24930 .section ".tdata","awT",@progbits
24938 addi 3,31,ld0@got@tlsgd
24940 addi 3,31,x1@got@tlsld
24943 addis 9,3,x2@dtprel@ha
24944 addi 9,9,x2@dtprel@l
24945 lwz 9,x3@got@tprel(31)
24948 addis 9,2,x2@tprel@ha
24949 addi 9,9,x2@tprel@l'
24952 tls_as_opt
="-a32 --fatal-warnings"
24956 .section .tdata,"awT",@progbits
24960 call __tls_get_addr'
24963 tls_as_opt
='--fatal-warnings'
24967 .section ".tdata","awT",@progbits
24974 .long foo@GOTNTPOFF
24975 .long foo@INDNTPOFF
24976 l %r1,foo@GOTNTPOFF(%r12)
24977 l %r1,0(%r1):tls_load:foo
24978 bas %r14,0(%r1,%r13):tls_gdcall:foo
24979 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24982 tls_as_opt
="-m31 --fatal-warnings"
24986 .section ".tdata","awT",@progbits
24993 .quad foo@GOTNTPOFF
24994 lg %r1,foo@GOTNTPOFF(%r12)
24995 larl %r1,foo@INDNTPOFF
24996 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24997 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25000 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25002 sh-
*-* | sh
[123456789lbe
]*-*-*)
25004 .section ".tdata","awT",@progbits
25014 tls_as_opt
=--fatal-warnings
25018 sparc
*-sun-solaris2.
*)
25025 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25027 .section ".tdata",#alloc,#write,#tls'
25032 .section ".tdata","awT",@progbits'
25035 tls_as_opt
="-32 --fatal-warnings"
25037 conftest_s
="$conftest_s
25040 sethi %tgd_hi22(foo), %o0
25041 add %o0, %tgd_lo10(foo), %o1
25042 add %l7, %o1, %o0, %tgd_add(foo)
25043 call __tls_get_addr, %tgd_call(foo)
25044 sethi %tldm_hi22(foo), %l1
25045 add %l1, %tldm_lo10(foo), %l2
25046 add %l7, %l2, %o0, %tldm_add(foo)
25047 call __tls_get_addr, %tldm_call(foo)
25048 sethi %tldo_hix22(foo), %l3
25049 xor %l3, %tldo_lox10(foo), %l4
25050 add %o0, %l4, %l5, %tldo_add(foo)
25051 sethi %tie_hi22(foo), %o3
25052 add %o3, %tie_lo10(foo), %o3
25053 ld [%l7 + %o3], %o2, %tie_ld(foo)
25054 add %g7, %o2, %o4, %tie_add(foo)
25055 sethi %tle_hix22(foo), %l1
25056 xor %l1, %tle_lox10(foo), %o5
25057 ld [%g7 + %o5], %o1"
25061 .section ".tdata","awT",@progbits
25064 addli r0, zero, tls_gd(foo)
25065 auli r0, zero, tls_gd_ha16(foo)
25066 addli r0, r0, tls_gd_lo16(foo)
25068 addli r0, zero, tls_ie(foo)
25069 auli r0, r0, tls_ie_ha16(foo)
25070 addli r0, r0, tls_ie_lo16(foo)'
25073 tls_as_opt
="--fatal-warnings"
25077 .section ".tdata","awT",@progbits
25080 shl16insli r0, zero, hw0_last_tls_gd(foo)
25081 shl16insli r0, zero, hw1_last_tls_gd(foo)
25082 shl16insli r0, r0, hw0_tls_gd(foo)
25084 shl16insli r0, zero, hw1_last_tls_ie(foo)
25085 shl16insli r0, r0, hw0_tls_ie(foo)'
25088 tls_as_opt
="--fatal-warnings"
25092 .section ".tdata","awT",@progbits
25095 movi a8, foo@TLSFUNC
25096 movi a10, foo@TLSARG
25097 callx8.tls a8, foo@TLSCALL'
25103 if test "x$enable_tls" = xno
; then
25104 : # TLS explicitly disabled.
25105 elif test "x$enable_tls" = xyes
; then
25106 set_have_as_tls
=yes # TLS explicitly enabled.
25107 elif test -z "$tls_first_major"; then
25108 : # If we don't have a check, assume no support.
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25111 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25112 if ${gcc_cv_as_tls+:} false
; then :
25113 $as_echo_n "(cached) " >&6
25116 if test $in_tree_gas = yes; then
25117 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25118 then gcc_cv_as_tls
=yes
25120 elif test x
$gcc_cv_as != x
; then
25121 $as_echo "$conftest_s" > conftest.s
25122 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }
25131 echo "configure: failed program was" >&5
25134 rm -f conftest.o conftest.s
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25138 $as_echo "$gcc_cv_as_tls" >&6; }
25139 if test $gcc_cv_as_tls = yes; then
25140 set_have_as_tls
=yes
25144 if test $set_have_as_tls = yes ; then
25146 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25150 # Target-specific assembler checks.
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25153 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25154 gcc_cv_ld_static_dynamic
=no
25155 gcc_cv_ld_static_option
='-Bstatic'
25156 gcc_cv_ld_dynamic_option
='-Bdynamic'
25157 if test $in_tree_ld = yes ; then
25158 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
25159 gcc_cv_ld_static_dynamic
=yes
25161 elif test x
$gcc_cv_ld != x
; then
25162 # Check if linker supports -Bstatic/-Bdynamic option
25163 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25164 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25165 gcc_cv_ld_static_dynamic
=yes
25168 # AIX ld uses -b flags
25169 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25170 gcc_cv_ld_static_dynamic
=yes
25171 gcc_cv_ld_static_option
="-bstatic"
25172 gcc_cv_ld_dynamic_option
="-bdynamic"
25174 # HP-UX ld uses -a flags to select between shared and archive.
25176 if test x
"$gnu_ld" = xno
; then
25177 gcc_cv_ld_static_dynamic
=yes
25178 gcc_cv_ld_static_option
="-aarchive_shared"
25179 gcc_cv_ld_dynamic_option
="-adefault"
25182 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25184 gcc_cv_ld_static_dynamic
=yes
25189 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25191 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25194 cat >>confdefs.h
<<_ACEOF
25195 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25199 cat >>confdefs.h
<<_ACEOF
25200 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25205 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25208 $as_echo_n "checking linker --version-script option... " >&6; }
25209 gcc_cv_ld_version_script
=no
25210 ld_version_script_option
=''
25211 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25212 gcc_cv_ld_version_script
=yes
25213 ld_version_script_option
='--version-script'
25214 elif test x
$gcc_cv_ld != x
; then
25216 # Solaris 2 ld always supports -M. It also supports a subset of
25217 # --version-script since Solaris 11.4, but requires
25218 # -z gnu-version-script-compat to activate.
25220 gcc_cv_ld_version_script
=yes
25221 ld_version_script_option
='-M'
25225 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25227 $as_echo "$gcc_cv_ld_version_script" >&6; }
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25231 $as_echo_n "checking linker soname option... " >&6; }
25232 gcc_cv_ld_soname
=no
25233 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25234 gcc_cv_ld_soname
=yes
25235 ld_soname_option
='-soname'
25236 elif test x
$gcc_cv_ld != x
; then
25239 gcc_cv_ld_soname
=yes
25240 ld_soname_option
='-install_name'
25242 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25243 # ld compatiblity since some Solaris 10 update.
25245 gcc_cv_ld_soname
=yes
25246 ld_soname_option
='-h'
25250 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25252 $as_echo "$gcc_cv_ld_soname" >&6; }
25255 if test x
"$demangler_in_ld" = xyes
; then
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25257 $as_echo_n "checking linker --demangle support... " >&6; }
25258 gcc_cv_ld_demangle
=no
25259 if test $in_tree_ld = yes; then
25260 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 \
25261 gcc_cv_ld_demangle
=yes
25263 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25264 # Check if the GNU linker supports --demangle option
25265 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25266 gcc_cv_ld_demangle
=yes
25269 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25271 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25275 $as_echo "$gcc_cv_ld_demangle" >&6; }
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25279 $as_echo_n "checking linker plugin support... " >&6; }
25280 gcc_cv_lto_plugin
=0
25281 if test -f liblto_plugin.la
; then
25282 save_ld_ver
="$ld_ver"
25283 save_ld_vers_major
="$ld_vers_major"
25284 save_ld_vers_minor
="$ld_vers_minor"
25285 save_ld_is_gold
="$ld_is_gold"
25289 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25291 # FIXME: ld_is_gold?
25292 ld_vers_major
="$gcc_cv_gld_major_version"
25293 ld_vers_minor
="$gcc_cv_gld_minor_version"
25295 # Determine plugin linker version.
25296 # FIXME: Partial duplicate from above, generalize.
25297 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25298 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25299 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25301 ld_vers
=`echo $ld_ver | sed -n \
25302 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25304 ld_vers
=`echo $ld_ver | sed -n \
25305 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25307 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25308 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25312 # Determine plugin support.
25313 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25314 # Require GNU ld or gold 2.21+ for plugin support by default.
25315 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25316 gcc_cv_lto_plugin
=2
25317 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25318 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25319 gcc_cv_lto_plugin
=1
25323 ld_ver
="$save_ld_ver"
25324 ld_vers_major
="$save_ld_vers_major"
25325 ld_vers_minor
="$save_ld_vers_minor"
25326 ld_is_gold
="$save_ld_is_gold"
25329 cat >>confdefs.h
<<_ACEOF
25330 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25334 $as_echo "$gcc_cv_lto_plugin" >&6; }
25336 # Target OS-specific assembler checks.
25338 case "$target_os" in
25340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25341 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25342 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25343 $as_echo_n "(cached) " >&6
25345 gcc_cv_as_mmacosx_version_min
=no
25346 if test x
$gcc_cv_as != x
; then
25347 $as_echo '.text' > conftest.s
25348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25350 (eval $ac_try) 2>&5
25352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25353 test $ac_status = 0; }; }
25355 gcc_cv_as_mmacosx_version_min
=yes
25357 echo "configure: failed program was" >&5
25360 rm -f conftest.o conftest.s
25363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25364 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25365 if test $gcc_cv_as_mmacosx_version_min = yes; then
25367 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25374 # Target CPU-specific assembler checks.
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25379 $as_echo_n "checking assembler for -mabi option... " >&6; }
25380 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25381 $as_echo_n "(cached) " >&6
25383 gcc_cv_as_aarch64_mabi
=no
25384 if test x
$gcc_cv_as != x
; then
25385 $as_echo '.text' > conftest.s
25386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25388 (eval $ac_try) 2>&5
25390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25391 test $ac_status = 0; }; }
25393 gcc_cv_as_aarch64_mabi
=yes
25395 echo "configure: failed program was" >&5
25398 rm -f conftest.o conftest.s
25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25402 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25405 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25407 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25410 if test x
$with_abi = xilp32
; then
25411 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25412 Upgrade the Assembler." "$LINENO" 5
25414 if test x
"$with_multilib_list" = xdefault
; then
25415 TM_MULTILIB_CONFIG
=lp64
25417 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25418 for aarch64_multilib
in ${aarch64_multilibs}; do
25419 case ${aarch64_multilib} in
25421 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25422 Upgrade the Assembler." "$LINENO" 5
25430 # Check if we have binutils support for relocations types needed by -fpic
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25432 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25433 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25434 $as_echo_n "(cached) " >&6
25436 gcc_cv_as_aarch64_picreloc
=no
25437 if test x
$gcc_cv_as != x
; then
25440 ldr x0, [x2, #:gotpage_lo15:globalsym]
25442 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25444 (eval $ac_try) 2>&5
25446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25447 test $ac_status = 0; }; }
25449 gcc_cv_as_aarch64_picreloc
=yes
25451 echo "configure: failed program was" >&5
25454 rm -f conftest.o conftest.s
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25458 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25459 if test $gcc_cv_as_aarch64_picreloc = yes; then
25461 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25465 # Enable Branch Target Identification Mechanism and Return Address
25466 # Signing by default.
25467 # Check whether --enable-standard-branch-protection was given.
25468 if test "${enable_standard_branch_protection+set}" = set; then :
25469 enableval
=$enable_standard_branch_protection;
25472 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25477 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25478 Valid choices are 'yes' and 'no'." "$LINENO" 5
25484 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25485 # Check whether --enable-fix-cortex-a53-835769 was given.
25486 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25487 enableval
=$enable_fix_cortex_a53_835769;
25490 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25495 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25496 Valid choices are 'yes' and 'no'." "$LINENO" 5
25503 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25504 # Check whether --enable-fix-cortex-a53-843419 was given.
25505 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25506 enableval
=$enable_fix_cortex_a53_843419;
25509 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25514 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25515 Valid choices are 'yes' and 'no'." "$LINENO" 5
25524 # All TARGET_ABI_OSF targets.
25525 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25527 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25528 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25529 $as_echo_n "(cached) " >&6
25531 gcc_cv_as_alpha_explicit_relocs
=no
25532 if test $in_tree_gas = yes; then
25533 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25534 then gcc_cv_as_alpha_explicit_relocs
=yes
25536 elif test x
$gcc_cv_as != x
; then
25537 $as_echo ' .set nomacro
25539 extbl $3, $2, $3 !lituse_bytoff!1
25540 ldq $2, a($29) !literal!1
25541 ldq $4, b($29) !literal!2
25542 ldq_u $3, 0($2) !lituse_base!1
25543 ldq $27, f($29) !literal!5
25544 jsr $26, ($27), f !lituse_jsr!5
25545 ldah $29, 0($26) !gpdisp!3
25546 lda $0, c($29) !gprel
25547 ldah $1, d($29) !gprelhigh
25548 lda $1, d($1) !gprellow
25549 lda $29, 0($29) !gpdisp!3' > conftest.s
25550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25552 (eval $ac_try) 2>&5
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; }
25557 gcc_cv_as_alpha_explicit_relocs
=yes
25559 echo "configure: failed program was" >&5
25562 rm -f conftest.o conftest.s
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25566 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25567 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25569 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25574 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25575 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25576 $as_echo_n "(cached) " >&6
25578 gcc_cv_as_alpha_jsrdirect_relocs
=no
25579 if test $in_tree_gas = yes; then
25580 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25581 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25583 elif test x
$gcc_cv_as != x
; then
25584 $as_echo ' .set nomacro
25586 ldq $27, a($29) !literal!1
25587 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25590 (eval $ac_try) 2>&5
25592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25593 test $ac_status = 0; }; }
25595 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25597 echo "configure: failed program was" >&5
25600 rm -f conftest.o conftest.s
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25604 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25605 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25607 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25615 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25616 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25617 $as_echo_n "(cached) " >&6
25619 gcc_cv_as_avr_mlink_relax
=no
25620 if test x
$gcc_cv_as != x
; then
25621 $as_echo '.text' > conftest.s
25622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25624 (eval $ac_try) 2>&5
25626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25627 test $ac_status = 0; }; }
25629 gcc_cv_as_avr_mlink_relax
=yes
25631 echo "configure: failed program was" >&5
25634 rm -f conftest.o conftest.s
25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25638 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25639 if test $gcc_cv_as_avr_mlink_relax = yes; then
25641 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25647 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25648 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25649 $as_echo_n "(cached) " >&6
25651 gcc_cv_as_avr_mrmw
=no
25652 if test x
$gcc_cv_as != x
; then
25653 $as_echo '.text' > conftest.s
25654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25656 (eval $ac_try) 2>&5
25658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25659 test $ac_status = 0; }; }
25661 gcc_cv_as_avr_mrmw
=yes
25663 echo "configure: failed program was" >&5
25666 rm -f conftest.o conftest.s
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25670 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25671 if test $gcc_cv_as_avr_mrmw = yes; then
25673 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25679 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25680 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25681 $as_echo_n "(cached) " >&6
25683 gcc_cv_as_avr_mgccisr
=no
25684 if test x
$gcc_cv_as != x
; then
25690 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25692 (eval $ac_try) 2>&5
25694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695 test $ac_status = 0; }; }
25697 gcc_cv_as_avr_mgccisr
=yes
25699 echo "configure: failed program was" >&5
25702 rm -f conftest.o conftest.s
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25706 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25707 if test $gcc_cv_as_avr_mgccisr = yes; then
25709 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25714 # Check how default linker description file implements .rodata for
25715 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25716 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25718 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25719 cat > conftest.s
<<EOF
25720 .section .rodata,"a",@progbits
25722 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25727 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25729 (eval $ac_try) 2>&5
25731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25732 test $ac_status = 0; }; }
25733 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25735 (eval $ac_try) 2>&5
25737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25738 test $ac_status = 0; }; }
25739 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25741 (eval $ac_try) 2>&5
25743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25744 test $ac_status = 0; }; }
25745 if test -s conftest.nm
25747 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }
25751 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25755 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25756 echo "$as_me: nm output was" >&5
25757 cat conftest.nm
>&5
25758 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25759 { $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
25760 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25764 $as_echo "test failed" >&6; }
25765 echo "$as_me: failed program was" >&5
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25768 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25770 rm -f conftest.s conftest.o conftest.elf conftest.nm
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25775 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25776 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25777 $as_echo_n "(cached) " >&6
25779 gcc_cv_as_cris_no_mul_bug
=no
25780 if test $in_tree_gas = yes; then
25781 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25782 then gcc_cv_as_cris_no_mul_bug
=yes
25784 elif test x
$gcc_cv_as != x
; then
25785 $as_echo '.text' > conftest.s
25786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25788 (eval $ac_try) 2>&5
25790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25791 test $ac_status = 0; }; }
25793 gcc_cv_as_cris_no_mul_bug
=yes
25795 echo "configure: failed program was" >&5
25798 rm -f conftest.o conftest.s
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25802 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25803 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25805 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25813 $as_echo_n "checking assembler for -relax option... " >&6; }
25814 if ${gcc_cv_as_sparc_relax+:} false
; then :
25815 $as_echo_n "(cached) " >&6
25817 gcc_cv_as_sparc_relax
=no
25818 if test x
$gcc_cv_as != x
; then
25819 $as_echo '.text' > conftest.s
25820 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25822 (eval $ac_try) 2>&5
25824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25825 test $ac_status = 0; }; }
25827 gcc_cv_as_sparc_relax
=yes
25829 echo "configure: failed program was" >&5
25832 rm -f conftest.o conftest.s
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25836 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25837 if test $gcc_cv_as_sparc_relax = yes; then
25839 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25845 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25846 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25847 $as_echo_n "(cached) " >&6
25849 gcc_cv_as_sparc_gotdata_op
=no
25850 if test x
$gcc_cv_as != x
; then
25856 sethi %gdop_hix22(foo), %g1
25857 xor %g1, %gdop_lox10(foo), %g1
25858 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25859 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25861 (eval $ac_try) 2>&5
25863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25864 test $ac_status = 0; }; }
25866 if test x
$gcc_cv_ld != x \
25867 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25868 if test x
$gcc_cv_objdump != x
; then
25869 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25870 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25871 gcc_cv_as_sparc_gotdata_op
=no
25873 gcc_cv_as_sparc_gotdata_op
=yes
25879 echo "configure: failed program was" >&5
25882 rm -f conftest.o conftest.s
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25886 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25887 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25889 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25895 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25896 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25897 $as_echo_n "(cached) " >&6
25899 gcc_cv_as_sparc_ua_pcrel
=no
25900 if test x
$gcc_cv_as != x
; then
25907 .uaword %r_disp32(foo)' > conftest.s
25908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25915 if test x
$gcc_cv_ld != x \
25916 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25917 gcc_cv_as_sparc_ua_pcrel
=yes
25921 echo "configure: failed program was" >&5
25924 rm -f conftest.o conftest.s
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25928 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25929 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25931 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25935 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25936 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25937 $as_echo_n "(cached) " >&6
25939 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25940 if test x
$gcc_cv_as != x
; then
25944 .uaword %r_disp32(foo)
25945 .byte 0x32, 0x33, 0x34
25949 .skip 4' > conftest.s
25950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25952 (eval $ac_try) 2>&5
25954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25955 test $ac_status = 0; }; }
25957 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25958 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25959 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25960 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25961 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25962 |
grep 'DISP32' > /dev
/null
2>&1; then
25965 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25970 echo "configure: failed program was" >&5
25973 rm -f conftest.o conftest.s
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25977 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25978 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25980 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25986 # unaligned pcrel relocs
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25989 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25990 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25991 $as_echo_n "(cached) " >&6
25993 gcc_cv_as_sparc_offsetable_lo10
=no
25994 if test x
$gcc_cv_as != x
; then
25996 or %g1, %lo(ab) + 12, %g1
25997 or %g1, %lo(ab + 12), %g1' > conftest.s
25998 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26000 (eval $ac_try) 2>&5
26002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }; }
26005 if test x
$gcc_cv_objdump != x \
26006 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26007 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26008 gcc_cv_as_sparc_offsetable_lo10
=yes
26011 echo "configure: failed program was" >&5
26014 rm -f conftest.o conftest.s
26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26018 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26019 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26021 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26027 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26028 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26029 $as_echo_n "(cached) " >&6
26031 gcc_cv_as_sparc_fmaf
=no
26032 if test x
$gcc_cv_as != x
; then
26034 .register %g2, #scratch
26035 .register %g3, #scratch
26037 fmaddd %f0, %f2, %f4, %f6
26038 addxccc %g1, %g2, %g3
26039 fsrl32 %f2, %f4, %f8
26040 fnaddd %f10, %f12, %f14' > conftest.s
26041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26043 (eval $ac_try) 2>&5
26045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26046 test $ac_status = 0; }; }
26048 gcc_cv_as_sparc_fmaf
=yes
26050 echo "configure: failed program was" >&5
26053 rm -f conftest.o conftest.s
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26057 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26058 if test $gcc_cv_as_sparc_fmaf = yes; then
26060 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26066 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26067 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26068 $as_echo_n "(cached) " >&6
26070 gcc_cv_as_sparc_sparc4
=no
26071 if test x
$gcc_cv_as != x
; then
26073 .register %g2, #scratch
26074 .register %g3, #scratch
26077 1: cwbneg %g2, %g3, 1f
26080 aes_kexpand0 %f4, %f6, %f8
26081 des_round %f38, %f40, %f42, %f44
26082 camellia_f %f54, %f56, %f58, %f60
26083 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; }
26091 gcc_cv_as_sparc_sparc4
=yes
26093 echo "configure: failed program was" >&5
26096 rm -f conftest.o conftest.s
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26100 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26101 if test $gcc_cv_as_sparc_sparc4 = yes; then
26103 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26109 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26110 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26111 $as_echo_n "(cached) " >&6
26113 gcc_cv_as_sparc_sparc5
=no
26114 if test x
$gcc_cv_as != x
; then
26116 .register %g2, #scratch
26117 .register %g3, #scratch
26119 subxc %g1, %g2, %g3
26120 fpadd8 %f0, %f2, %f4' > conftest.s
26121 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26123 (eval $ac_try) 2>&5
26125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26126 test $ac_status = 0; }; }
26128 gcc_cv_as_sparc_sparc5
=yes
26130 echo "configure: failed program was" >&5
26133 rm -f conftest.o conftest.s
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26137 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26138 if test $gcc_cv_as_sparc_sparc5 = yes; then
26140 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26146 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26147 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26148 $as_echo_n "(cached) " >&6
26150 gcc_cv_as_sparc_sparc6
=no
26151 if test x
$gcc_cv_as != x
; then
26153 .register %g2, #scratch
26154 .register %g3, #scratch
26157 fpsll64x %f0, %f2, %f4' > conftest.s
26158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26160 (eval $ac_try) 2>&5
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; }
26165 gcc_cv_as_sparc_sparc6
=yes
26167 echo "configure: failed program was" >&5
26170 rm -f conftest.o conftest.s
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26174 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26175 if test $gcc_cv_as_sparc_sparc6 = yes; then
26177 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26183 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26184 if ${gcc_cv_as_sparc_leon+:} false
; then :
26185 $as_echo_n "(cached) " >&6
26187 gcc_cv_as_sparc_leon
=no
26188 if test x
$gcc_cv_as != x
; then
26190 .register %g2, #scratch
26191 .register %g3, #scratch
26195 casa [%g2] 0xb, %g3, %g1' > conftest.s
26196 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26197 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26198 (eval $ac_try) 2>&5
26200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26201 test $ac_status = 0; }; }
26203 gcc_cv_as_sparc_leon
=yes
26205 echo "configure: failed program was" >&5
26208 rm -f conftest.o conftest.s
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26212 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26213 if test $gcc_cv_as_sparc_leon = yes; then
26215 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26221 i
[34567]86-*-* | x86_64-
*-*)
26224 # Full C++ conformance when using a shared libstdc++-v3 requires some
26225 # support from the Cygwin DLL, which in more recent versions exports
26226 # wrappers to aid in interposing and redirecting operators new, delete,
26227 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26228 # are configuring for a version of Cygwin that exports the wrappers.
26229 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26230 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26231 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26232 gcc_ac_cygwin_dll_wrappers
=yes
26234 gcc_ac_cygwin_dll_wrappers
=no
26238 # Can't check presence of libc functions during cross-compile, so
26239 # we just have to assume we're building for an up-to-date target.
26240 gcc_ac_cygwin_dll_wrappers
=yes
26243 cat >>confdefs.h
<<_ACEOF
26244 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26249 cygwin
* | pe | mingw32
*)
26250 # Recent binutils allows the three-operand form of ".comm" on PE. This
26251 # definition is used unconditionally to initialise the default state of
26252 # the target option variable that governs usage of the feature.
26253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26254 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26255 if ${gcc_cv_as_comm_has_align+:} false
; then :
26256 $as_echo_n "(cached) " >&6
26258 gcc_cv_as_comm_has_align
=no
26259 if test $in_tree_gas = yes; then
26260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26261 then gcc_cv_as_comm_has_align
=yes
26263 elif test x
$gcc_cv_as != x
; then
26264 $as_echo '.comm foo,1,32' > conftest.s
26265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26267 (eval $ac_try) 2>&5
26269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26270 test $ac_status = 0; }; }
26272 gcc_cv_as_comm_has_align
=yes
26274 echo "configure: failed program was" >&5
26277 rm -f conftest.o conftest.s
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26281 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26285 cat >>confdefs.h
<<_ACEOF
26286 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26289 # Used for DWARF 2 in PE
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26291 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26292 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26293 $as_echo_n "(cached) " >&6
26295 gcc_cv_as_ix86_pe_secrel32
=no
26296 if test $in_tree_gas = yes; then
26297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26298 then gcc_cv_as_ix86_pe_secrel32
=yes
26300 elif test x
$gcc_cv_as != x
; then
26304 .secrel32 foo' > conftest.s
26305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26312 if test x
$gcc_cv_ld != x \
26313 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26314 gcc_cv_as_ix86_pe_secrel32
=yes
26318 echo "configure: failed program was" >&5
26321 rm -f conftest.o conftest.s
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26325 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26326 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26328 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26332 # Test if the assembler supports the extended form of the .section
26333 # directive that specifies section alignment. LTO support uses this,
26334 # but normally only after installation, so we warn but don't fail the
26335 # configure if LTO is enabled but the assembler does not support it.
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26337 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26338 if ${gcc_cv_as_section_has_align+:} false
; then :
26339 $as_echo_n "(cached) " >&6
26341 gcc_cv_as_section_has_align
=no
26342 if test $in_tree_gas = yes; then
26343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26344 then gcc_cv_as_section_has_align
=yes
26346 elif test x
$gcc_cv_as != x
; then
26347 $as_echo '.section lto_test,"dr0"' > conftest.s
26348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26350 (eval $ac_try) 2>&5
26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26353 test $ac_status = 0; }; }
26355 gcc_cv_as_section_has_align
=yes
26357 echo "configure: failed program was" >&5
26360 rm -f conftest.o conftest.s
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26364 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26367 if test x
$gcc_cv_as_section_has_align != xyes
; then
26368 case ",$enable_languages," in
26370 { $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
26371 $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;}
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26379 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26380 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26381 $as_echo_n "(cached) " >&6
26383 gcc_cv_as_ix86_xbrace_comment
=no
26384 if test x
$gcc_cv_as != x
; then
26385 $as_echo '.text' > conftest.s
26386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26388 (eval $ac_try) 2>&5
26390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26391 test $ac_status = 0; }; }
26393 gcc_cv_as_ix86_xbrace_comment
=yes
26395 echo "configure: failed program was" >&5
26398 rm -f conftest.o conftest.s
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26402 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26403 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26405 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26411 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26412 if ${gcc_cv_as_ix86_filds+:} false
; then :
26413 $as_echo_n "(cached) " >&6
26415 gcc_cv_as_ix86_filds
=no
26416 if test x
$gcc_cv_as != x
; then
26417 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26418 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26420 (eval $ac_try) 2>&5
26422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26423 test $ac_status = 0; }; }
26425 gcc_cv_as_ix86_filds
=yes
26427 echo "configure: failed program was" >&5
26430 rm -f conftest.o conftest.s
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26434 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26435 if test $gcc_cv_as_ix86_filds = yes; then
26437 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26443 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26444 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26445 $as_echo_n "(cached) " >&6
26447 gcc_cv_as_ix86_fildq
=no
26448 if test x
$gcc_cv_as != x
; then
26449 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26452 (eval $ac_try) 2>&5
26454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26455 test $ac_status = 0; }; }
26457 gcc_cv_as_ix86_fildq
=yes
26459 echo "configure: failed program was" >&5
26462 rm -f conftest.o conftest.s
26465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26466 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26467 if test $gcc_cv_as_ix86_fildq = yes; then
26469 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26475 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26476 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26477 $as_echo_n "(cached) " >&6
26479 gcc_cv_as_ix86_cmov_sun_syntax
=no
26480 if test x
$gcc_cv_as != x
; then
26481 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26482 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26484 (eval $ac_try) 2>&5
26486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487 test $ac_status = 0; }; }
26489 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26491 echo "configure: failed program was" >&5
26494 rm -f conftest.o conftest.s
26497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26498 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26499 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26501 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26507 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26508 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26509 $as_echo_n "(cached) " >&6
26511 gcc_cv_as_ix86_ffreep
=no
26512 if test x
$gcc_cv_as != x
; then
26513 $as_echo 'ffreep %st(1)' > conftest.s
26514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26516 (eval $ac_try) 2>&5
26518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26519 test $ac_status = 0; }; }
26521 gcc_cv_as_ix86_ffreep
=yes
26523 echo "configure: failed program was" >&5
26526 rm -f conftest.o conftest.s
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26530 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26531 if test $gcc_cv_as_ix86_ffreep = yes; then
26533 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26539 $as_echo_n "checking assembler for .quad directive... " >&6; }
26540 if ${gcc_cv_as_ix86_quad+:} false
; then :
26541 $as_echo_n "(cached) " >&6
26543 gcc_cv_as_ix86_quad
=no
26544 if test x
$gcc_cv_as != x
; then
26545 $as_echo '.quad 0' > conftest.s
26546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26548 (eval $ac_try) 2>&5
26550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26551 test $ac_status = 0; }; }
26553 gcc_cv_as_ix86_quad
=yes
26555 echo "configure: failed program was" >&5
26558 rm -f conftest.o conftest.s
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26562 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26563 if test $gcc_cv_as_ix86_quad = yes; then
26565 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26571 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26572 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26573 $as_echo_n "(cached) " >&6
26575 gcc_cv_as_ix86_sahf
=no
26576 if test x
$gcc_cv_as != x
; then
26579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26581 (eval $ac_try) 2>&5
26583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26584 test $ac_status = 0; }; }
26586 gcc_cv_as_ix86_sahf
=yes
26588 echo "configure: failed program was" >&5
26591 rm -f conftest.o conftest.s
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26595 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26596 if test $gcc_cv_as_ix86_sahf = yes; then
26598 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26604 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26605 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26606 $as_echo_n "(cached) " >&6
26608 gcc_cv_as_ix86_interunit_movq
=no
26609 if test x
$gcc_cv_as != x
; then
26612 movq %rax, %xmm0' > conftest.s
26613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26615 (eval $ac_try) 2>&5
26617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26618 test $ac_status = 0; }; }
26620 gcc_cv_as_ix86_interunit_movq
=yes
26622 echo "configure: failed program was" >&5
26625 rm -f conftest.o conftest.s
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26629 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26633 cat >>confdefs.h
<<_ACEOF
26634 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26639 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26640 if ${gcc_cv_as_ix86_hle+:} false
; then :
26641 $as_echo_n "(cached) " >&6
26643 gcc_cv_as_ix86_hle
=no
26644 if test x
$gcc_cv_as != x
; then
26645 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26648 (eval $ac_try) 2>&5
26650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26651 test $ac_status = 0; }; }
26653 gcc_cv_as_ix86_hle
=yes
26655 echo "configure: failed program was" >&5
26658 rm -f conftest.o conftest.s
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26662 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26663 if test $gcc_cv_as_ix86_hle = yes; then
26665 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26671 $as_echo_n "checking assembler for swap suffix... " >&6; }
26672 if ${gcc_cv_as_ix86_swap+:} false
; then :
26673 $as_echo_n "(cached) " >&6
26675 gcc_cv_as_ix86_swap
=no
26676 if test x
$gcc_cv_as != x
; then
26677 $as_echo 'movl.s %esp, %ebp' > conftest.s
26678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26680 (eval $ac_try) 2>&5
26682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26683 test $ac_status = 0; }; }
26685 gcc_cv_as_ix86_swap
=yes
26687 echo "configure: failed program was" >&5
26690 rm -f conftest.o conftest.s
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26694 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26695 if test $gcc_cv_as_ix86_swap = yes; then
26697 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26703 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26704 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26705 $as_echo_n "(cached) " >&6
26707 gcc_cv_as_ix86_diff_sect_delta
=no
26708 if test x
$gcc_cv_as != x
; then
26709 $as_echo '.section .rodata
26715 .L2: nop' > conftest.s
26716 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26718 (eval $ac_try) 2>&5
26720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26721 test $ac_status = 0; }; }
26723 gcc_cv_as_ix86_diff_sect_delta
=yes
26725 echo "configure: failed program was" >&5
26728 rm -f conftest.o conftest.s
26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26732 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26733 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26735 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26741 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26742 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26743 $as_echo_n "(cached) " >&6
26745 gcc_cv_as_ix86_rep_lock_prefix
=no
26746 if test x
$gcc_cv_as != x
; then
26747 $as_echo 'rep movsl
26752 lock addl %edi, (%eax,%esi)
26753 lock orl $0, (%esp)' > conftest.s
26754 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26756 (eval $ac_try) 2>&5
26758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26759 test $ac_status = 0; }; }
26761 gcc_cv_as_ix86_rep_lock_prefix
=yes
26763 echo "configure: failed program was" >&5
26766 rm -f conftest.o conftest.s
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26770 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26771 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26773 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26779 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26780 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26781 $as_echo_n "(cached) " >&6
26783 gcc_cv_as_ix86_ud2
=no
26784 if test x
$gcc_cv_as != x
; then
26785 $as_echo 'ud2' > conftest.s
26786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26788 (eval $ac_try) 2>&5
26790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26791 test $ac_status = 0; }; }
26793 gcc_cv_as_ix86_ud2
=yes
26795 echo "configure: failed program was" >&5
26798 rm -f conftest.o conftest.s
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26802 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26803 if test $gcc_cv_as_ix86_ud2 = yes; then
26805 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26810 # Enforce 32-bit output with gas and gld.
26811 if test x
$gas = xyes
; then
26812 as_ix86_gas_32_opt
="--32"
26814 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26815 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26816 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26818 ld_ix86_gld_32_opt
="-melf_i386"
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26823 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26824 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26825 $as_echo_n "(cached) " >&6
26827 gcc_cv_as_ix86_tlsgdplt
=no
26828 if test x
$gcc_cv_as != x
; then
26829 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26832 (eval $ac_try) 2>&5
26834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26835 test $ac_status = 0; }; }
26837 if test x
$gcc_cv_ld != x \
26838 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26839 gcc_cv_as_ix86_tlsgdplt
=yes
26843 echo "configure: failed program was" >&5
26846 rm -f conftest.o conftest.s
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26850 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26851 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26853 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26859 .section .tdata,"aw'$tls_section_flag'",@progbits
26861 .section .text,"ax",@progbits
26862 call tls_ld@tlsldmplt'
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26865 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26866 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26867 $as_echo_n "(cached) " >&6
26869 gcc_cv_as_ix86_tlsldmplt
=no
26870 if test x
$gcc_cv_as != x
; then
26871 $as_echo "$conftest_s" > conftest.s
26872 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26874 (eval $ac_try) 2>&5
26876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26877 test $ac_status = 0; }; }
26879 if test x
$gcc_cv_ld != x \
26880 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26881 gcc_cv_as_ix86_tlsldmplt
=yes
26885 echo "configure: failed program was" >&5
26888 rm -f conftest.o conftest.s
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26892 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26896 cat >>confdefs.h
<<_ACEOF
26897 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26902 .section .text,"ax",@progbits
26904 .type _start, @function
26906 leal value@tlsldm(%ebx), %eax
26907 call ___tls_get_addr@plt
26909 .section .tdata,"aw'$tls_section_flag'",@progbits
26910 .type value, @object
26912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26913 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26914 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26915 $as_echo_n "(cached) " >&6
26917 gcc_cv_as_ix86_tlsldm
=no
26918 if test x
$gcc_cv_as != x
; then
26919 $as_echo "$conftest_s" > conftest.s
26920 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26922 (eval $ac_try) 2>&5
26924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26925 test $ac_status = 0; }; }
26927 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26928 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26929 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26930 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26931 gcc_cv_as_ix86_tlsldm
=yes
26936 echo "configure: failed program was" >&5
26939 rm -f conftest.o conftest.s
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26943 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26947 cat >>confdefs.h
<<_ACEOF
26948 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26962 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26963 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26964 $as_echo_n "(cached) " >&6
26966 gcc_cv_as_ix86_got32x
=no
26967 if test x
$gcc_cv_as != x
; then
26968 $as_echo "$conftest_s" > conftest.s
26969 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26971 (eval $ac_try) 2>&5
26973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26974 test $ac_status = 0; }; }
26976 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26977 && test x
$gcc_cv_readelf != x \
26978 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26979 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26980 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26981 if $gcc_cv_objdump -dw conftest
2>&1 \
26982 |
grep 0xffffff > /dev
/null
2>&1; then
26983 gcc_cv_as_ix86_got32x
=no
26985 gcc_cv_as_ix86_got32x
=yes
26990 echo "configure: failed program was" >&5
26993 rm -f conftest.o conftest.s
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26997 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27001 cat >>confdefs.h
<<_ACEOF
27002 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27007 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27008 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27009 $as_echo_n "(cached) " >&6
27011 gcc_cv_as_ix86_gotoff_in_data
=no
27012 if test $in_tree_gas = yes; then
27013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27014 then gcc_cv_as_ix86_gotoff_in_data
=yes
27016 elif test x
$gcc_cv_as != x
; then
27021 .long .L0@GOTOFF' > conftest.s
27022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27024 (eval $ac_try) 2>&5
27026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27027 test $ac_status = 0; }; }
27029 gcc_cv_as_ix86_gotoff_in_data
=yes
27031 echo "configure: failed program was" >&5
27034 rm -f conftest.o conftest.s
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27038 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27042 cat >>confdefs.h
<<_ACEOF
27043 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27048 .section .text,"ax",@progbits
27050 .type _start, @function
27052 leal ld@tlsldm(%ecx), %eax
27053 call *___tls_get_addr@GOT(%ecx)
27054 leal gd@tlsgd(%ecx), %eax
27055 call *___tls_get_addr@GOT(%ecx)
27057 .section .tdata,"aw'$tls_section_flag'",@progbits
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27066 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27067 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27068 $as_echo_n "(cached) " >&6
27070 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27071 if test x
$gcc_cv_as != x
; then
27072 $as_echo "$conftest_s" > conftest.s
27073 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27075 (eval $ac_try) 2>&5
27077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; }
27080 if test x
$gcc_cv_ld != x \
27081 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27082 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27086 echo "configure: failed program was" >&5
27089 rm -f conftest.o conftest.s
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27093 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27097 cat >>confdefs.h
<<_ACEOF
27098 #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`
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27105 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27106 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27107 $as_echo_n "(cached) " >&6
27109 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27110 if test $in_tree_gas = yes; then
27111 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27112 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27114 elif test x
$gcc_cv_as != x
; then
27116 addl r15 = @ltoffx(x#), gp
27118 ld8.mov r16 = [r15], x#
27120 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27122 (eval $ac_try) 2>&5
27124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27125 test $ac_status = 0; }; }
27127 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27129 echo "configure: failed program was" >&5
27132 rm -f conftest.o conftest.s
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27136 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27137 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27139 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27151 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27152 if ${gcc_cv_as_machine_directive+:} false
; then :
27153 $as_echo_n "(cached) " >&6
27155 gcc_cv_as_machine_directive
=no
27156 if test x
$gcc_cv_as != x
; then
27157 $as_echo ' .machine ppc7400' > conftest.s
27158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27160 (eval $ac_try) 2>&5
27162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27163 test $ac_status = 0; }; }
27165 gcc_cv_as_machine_directive
=yes
27167 echo "configure: failed program was" >&5
27170 rm -f conftest.o conftest.s
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27174 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27177 if test x
$gcc_cv_as_machine_directive != xyes
; then
27178 echo "*** This target requires an assembler supporting \".machine\"" >&2
27179 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27180 test x
$build = x
$target && exit 1
27186 *-*-aix*) conftest_s
=' .machine "pwr5"
27189 *-*-darwin*) conftest_s
=' .text
27191 *) conftest_s
=' .machine power4
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27197 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27198 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27199 $as_echo_n "(cached) " >&6
27201 gcc_cv_as_powerpc_mfcrf
=no
27202 if test $in_tree_gas = yes; then
27203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27204 then gcc_cv_as_powerpc_mfcrf
=yes
27206 elif test x
$gcc_cv_as != x
; then
27207 $as_echo "$conftest_s" > conftest.s
27208 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27210 (eval $ac_try) 2>&5
27212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27213 test $ac_status = 0; }; }
27215 gcc_cv_as_powerpc_mfcrf
=yes
27217 echo "configure: failed program was" >&5
27220 rm -f conftest.o conftest.s
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27224 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27225 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27227 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27233 *-*-aix*) conftest_s
=' .csect .text[PR]
27235 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27239 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27240 *) conftest_s
=' .text
27242 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27246 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27247 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27248 $as_echo_n "(cached) " >&6
27250 gcc_cv_as_powerpc_rel16
=no
27251 if test $in_tree_gas = yes; then
27252 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27253 then gcc_cv_as_powerpc_rel16
=yes
27255 elif test x
$gcc_cv_as != x
; then
27256 $as_echo "$conftest_s" > conftest.s
27257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27259 (eval $ac_try) 2>&5
27261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27262 test $ac_status = 0; }; }
27264 gcc_cv_as_powerpc_rel16
=yes
27266 echo "configure: failed program was" >&5
27269 rm -f conftest.o conftest.s
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27273 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27274 if test $gcc_cv_as_powerpc_rel16 = yes; then
27276 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27282 *-*-aix*) conftest_s
=' .machine "pwr7"
27285 *) conftest_s
=' .machine power7
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27291 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27292 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27293 $as_echo_n "(cached) " >&6
27295 gcc_cv_as_powerpc_vsx
=no
27296 if test $in_tree_gas = yes; then
27297 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27298 then gcc_cv_as_powerpc_vsx
=yes
27300 elif test x
$gcc_cv_as != x
; then
27301 $as_echo "$conftest_s" > conftest.s
27302 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27304 (eval $ac_try) 2>&5
27306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27307 test $ac_status = 0; }; }
27309 gcc_cv_as_powerpc_vsx
=yes
27311 echo "configure: failed program was" >&5
27314 rm -f conftest.o conftest.s
27317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27318 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27319 if test $gcc_cv_as_powerpc_vsx = yes; then
27321 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27327 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27328 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27329 $as_echo_n "(cached) " >&6
27331 gcc_cv_as_powerpc_gnu_attribute
=no
27332 if test $in_tree_gas = yes; then
27333 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27334 then gcc_cv_as_powerpc_gnu_attribute
=yes
27336 elif test x
$gcc_cv_as != x
; then
27337 $as_echo '.gnu_attribute 4,1' > conftest.s
27338 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27340 (eval $ac_try) 2>&5
27342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27343 test $ac_status = 0; }; }
27345 gcc_cv_as_powerpc_gnu_attribute
=yes
27347 echo "configure: failed program was" >&5
27350 rm -f conftest.o conftest.s
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27354 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27355 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27357 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27363 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27364 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27365 $as_echo_n "(cached) " >&6
27367 gcc_cv_as_powerpc_entry_markers
=no
27368 if test $in_tree_gas = yes; then
27369 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27370 then gcc_cv_as_powerpc_entry_markers
=yes
27372 elif test x
$gcc_cv_as != x
; then
27373 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27374 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27376 (eval $ac_try) 2>&5
27378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27379 test $ac_status = 0; }; }
27381 gcc_cv_as_powerpc_entry_markers
=yes
27383 echo "configure: failed program was" >&5
27386 rm -f conftest.o conftest.s
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27390 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27391 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27393 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27399 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27400 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27401 $as_echo_n "(cached) " >&6
27403 gcc_cv_as_powerpc_pltseq_markers
=no
27404 if test $in_tree_gas = yes; then
27405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27406 then gcc_cv_as_powerpc_pltseq_markers
=yes
27408 elif test x
$gcc_cv_as != x
; then
27409 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27412 (eval $ac_try) 2>&5
27414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27415 test $ac_status = 0; }; }
27417 gcc_cv_as_powerpc_pltseq_markers
=yes
27419 echo "configure: failed program was" >&5
27422 rm -f conftest.o conftest.s
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27426 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27427 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27429 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27437 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27438 if ${gcc_cv_as_aix_ref+:} false
; then :
27439 $as_echo_n "(cached) " >&6
27441 gcc_cv_as_aix_ref
=no
27442 if test $in_tree_gas = yes; then
27443 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27444 then gcc_cv_as_aix_ref
=yes
27446 elif test x
$gcc_cv_as != x
; then
27447 $as_echo ' .csect stuff[rw]
27453 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27455 (eval $ac_try) 2>&5
27457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27458 test $ac_status = 0; }; }
27460 gcc_cv_as_aix_ref
=yes
27462 echo "configure: failed program was" >&5
27465 rm -f conftest.o conftest.s
27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27469 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27470 if test $gcc_cv_as_aix_ref = yes; then
27472 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27478 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27479 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27480 $as_echo_n "(cached) " >&6
27482 gcc_cv_as_aix_dwloc
=no
27483 if test $in_tree_gas = yes; then
27484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27485 then gcc_cv_as_aix_dwloc
=yes
27487 elif test x
$gcc_cv_as != x
; then
27488 $as_echo ' .dwsect 0xA0000
27492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27494 (eval $ac_try) 2>&5
27496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27497 test $ac_status = 0; }; }
27499 gcc_cv_as_aix_dwloc
=yes
27501 echo "configure: failed program was" >&5
27504 rm -f conftest.o conftest.s
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27508 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27509 if test $gcc_cv_as_aix_dwloc = yes; then
27511 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27521 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27522 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27523 $as_echo_n "(cached) " >&6
27525 gcc_cv_as_mips_explicit_relocs
=no
27526 if test $in_tree_gas = yes; then
27527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27528 then gcc_cv_as_mips_explicit_relocs
=yes
27530 elif test x
$gcc_cv_as != x
; then
27531 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27534 (eval $ac_try) 2>&5
27536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27537 test $ac_status = 0; }; }
27539 gcc_cv_as_mips_explicit_relocs
=yes
27541 echo "configure: failed program was" >&5
27544 rm -f conftest.o conftest.s
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27548 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27549 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27550 if test x
$target_cpu_default = x
27551 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27552 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27558 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27559 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27560 $as_echo_n "(cached) " >&6
27562 gcc_cv_as_mips_no_shared
=no
27563 if test $in_tree_gas = yes; then
27564 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27565 then gcc_cv_as_mips_no_shared
=yes
27567 elif test x
$gcc_cv_as != x
; then
27568 $as_echo 'nop' > conftest.s
27569 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27571 (eval $ac_try) 2>&5
27573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27574 test $ac_status = 0; }; }
27576 gcc_cv_as_mips_no_shared
=yes
27578 echo "configure: failed program was" >&5
27581 rm -f conftest.o conftest.s
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27585 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27586 if test $gcc_cv_as_mips_no_shared = yes; then
27588 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27594 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27595 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27596 $as_echo_n "(cached) " >&6
27598 gcc_cv_as_mips_gnu_attribute
=no
27599 if test $in_tree_gas = yes; then
27600 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27601 then gcc_cv_as_mips_gnu_attribute
=yes
27603 elif test x
$gcc_cv_as != x
; then
27604 $as_echo '.gnu_attribute 4,1' > conftest.s
27605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27607 (eval $ac_try) 2>&5
27609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27610 test $ac_status = 0; }; }
27612 gcc_cv_as_mips_gnu_attribute
=yes
27614 echo "configure: failed program was" >&5
27617 rm -f conftest.o conftest.s
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27621 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27622 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27624 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27630 $as_echo_n "checking assembler for .module support... " >&6; }
27631 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27632 $as_echo_n "(cached) " >&6
27634 gcc_cv_as_mips_dot_module
=no
27635 if test x
$gcc_cv_as != x
; then
27636 $as_echo '.module mips2
27637 .module fp=xx' > conftest.s
27638 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27640 (eval $ac_try) 2>&5
27642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27643 test $ac_status = 0; }; }
27645 gcc_cv_as_mips_dot_module
=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_mips_dot_module" >&5
27654 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27655 if test $gcc_cv_as_mips_dot_module = yes; then
27657 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27661 if test x
$gcc_cv_as_mips_dot_module = xno \
27662 && test x
$with_fp_32 != x
; then
27663 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27667 $as_echo_n "checking assembler for .micromips support... " >&6; }
27668 if ${gcc_cv_as_micromips_support+:} false
; then :
27669 $as_echo_n "(cached) " >&6
27671 gcc_cv_as_micromips_support
=no
27672 if test x
$gcc_cv_as != x
; then
27673 $as_echo '.set micromips' > conftest.s
27674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27676 (eval $ac_try) 2>&5
27678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27679 test $ac_status = 0; }; }
27681 gcc_cv_as_micromips_support
=yes
27683 echo "configure: failed program was" >&5
27686 rm -f conftest.o conftest.s
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27690 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27691 if test $gcc_cv_as_micromips_support = yes; then
27693 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27699 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27700 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27701 $as_echo_n "(cached) " >&6
27703 gcc_cv_as_mips_dtprelword
=no
27704 if test $in_tree_gas = yes; then
27705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27706 then gcc_cv_as_mips_dtprelword
=yes
27708 elif test x
$gcc_cv_as != x
; then
27709 $as_echo '.section .tdata,"awT",@progbits
27713 .dtprelword x+0x8000' > conftest.s
27714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27716 (eval $ac_try) 2>&5
27718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27719 test $ac_status = 0; }; }
27721 gcc_cv_as_mips_dtprelword
=yes
27723 echo "configure: failed program was" >&5
27726 rm -f conftest.o conftest.s
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27730 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27731 if test $gcc_cv_as_mips_dtprelword = yes; then
27733 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27739 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27740 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27741 $as_echo_n "(cached) " >&6
27743 gcc_cv_as_mips_dspr1_mult
=no
27744 if test x
$gcc_cv_as != x
; then
27745 $as_echo ' .set mips32r2
27753 multu $ac3,$4,$5' > conftest.s
27754 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27756 (eval $ac_try) 2>&5
27758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27759 test $ac_status = 0; }; }
27761 gcc_cv_as_mips_dspr1_mult
=yes
27763 echo "configure: failed program was" >&5
27766 rm -f conftest.o conftest.s
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27770 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27771 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27773 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27779 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27780 gcc_cv_as_ld_jalr_reloc
=no
27781 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27782 if test $in_tree_ld = yes ; then
27783 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 \
27784 && test $in_tree_ld_is_elf = yes; then
27785 gcc_cv_as_ld_jalr_reloc
=yes
27787 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27788 echo ' .ent x' > conftest.s
27789 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27790 echo ' lw $25,%call16(y)($28)' >> conftest.s
27791 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27792 echo '1: jalr $25' >> conftest.s
27793 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27794 echo '1: jalr $25' >> conftest.s
27795 echo ' .end x' >> conftest.s
27796 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27797 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27798 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27799 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27800 gcc_cv_as_ld_jalr_reloc
=yes
27806 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27807 if test x
$target_cpu_default = x
; then
27808 target_cpu_default
=MASK_RELAX_PIC_CALLS
27810 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27814 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27817 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27818 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27819 $as_echo_n "(cached) " >&6
27821 gcc_cv_ld_mips_personality_relaxation
=no
27822 if test $in_tree_ld = yes ; then
27823 if test "$gcc_cv_gld_major_version" -eq 2 \
27824 -a "$gcc_cv_gld_minor_version" -ge 21 \
27825 -o "$gcc_cv_gld_major_version" -gt 2; then
27826 gcc_cv_ld_mips_personality_relaxation
=yes
27828 elif test x
$gcc_cv_as != x \
27829 -a x
$gcc_cv_ld != x \
27830 -a x
$gcc_cv_readelf != x
; then
27831 cat > conftest.s
<<EOF
27833 .cfi_personality 0x80,indirect_ptr
27840 .section .data,"aw",@progbits
27844 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27845 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27846 if $gcc_cv_readelf -d conftest
2>&1 \
27847 |
grep TEXTREL
> /dev
/null
2>&1; then
27849 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27850 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27853 gcc_cv_ld_mips_personality_relaxation
=yes
27857 rm -f conftest.s conftest.o conftest
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27860 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27861 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27863 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27868 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27869 if ${gcc_cv_as_mips_nan+:} false
; then :
27870 $as_echo_n "(cached) " >&6
27872 gcc_cv_as_mips_nan
=no
27873 if test x
$gcc_cv_as != x
; then
27874 $as_echo '' > conftest.s
27875 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27877 (eval $ac_try) 2>&5
27879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27880 test $ac_status = 0; }; }
27882 gcc_cv_as_mips_nan
=yes
27884 echo "configure: failed program was" >&5
27887 rm -f conftest.o conftest.s
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27891 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27892 if test $gcc_cv_as_mips_nan = yes; then
27894 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27898 if test x
$gcc_cv_as_mips_nan = xno \
27899 && test x
$with_nan != x
; then
27900 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27904 # Earlier GAS versions generically support .gnu_attribute, but the
27905 # msp430 assembler will not do anything with it.
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27907 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27908 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
27909 $as_echo_n "(cached) " >&6
27911 gcc_cv_as_msp430_gnu_attribute
=no
27912 if test $in_tree_gas = yes; then
27913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27914 then gcc_cv_as_msp430_gnu_attribute
=yes
27916 elif test x
$gcc_cv_as != x
; then
27917 $as_echo '.gnu_attribute 4,1' > conftest.s
27918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27920 (eval $ac_try) 2>&5
27922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27923 test $ac_status = 0; }; }
27925 gcc_cv_as_msp430_gnu_attribute
=yes
27927 echo "configure: failed program was" >&5
27930 rm -f conftest.o conftest.s
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27934 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27935 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27937 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27942 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27943 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
27944 $as_echo_n "(cached) " >&6
27946 gcc_cv_as_msp430_mspabi_attribute
=no
27947 if test $in_tree_gas = yes; then
27948 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27949 then gcc_cv_as_msp430_mspabi_attribute
=yes
27951 elif test x
$gcc_cv_as != x
; then
27952 $as_echo '.mspabi_attribute 4,1' > conftest.s
27953 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27955 (eval $ac_try) 2>&5
27957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27958 test $ac_status = 0; }; }
27960 gcc_cv_as_msp430_mspabi_attribute
=yes
27962 echo "configure: failed program was" >&5
27965 rm -f conftest.o conftest.s
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27969 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27970 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27972 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27976 if test x
$enable_newlib_nano_formatted_io = xyes
; then
27978 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27983 # Versions 2.33 and earlier lacked support for the %gotoff relocation
27984 # syntax that is documented in the ABI specification.
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
27986 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
27987 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
27988 $as_echo_n "(cached) " >&6
27990 gcc_cv_as_nios2_gotoff_relocation
=no
27991 if test x
$gcc_cv_as != x
; then
27992 $as_echo ' .extern foo
27994 .long %gotoff(foo)' > conftest.s
27995 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27997 (eval $ac_try) 2>&5
27999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28000 test $ac_status = 0; }; }
28002 gcc_cv_as_nios2_gotoff_relocation
=yes
28004 echo "configure: failed program was" >&5
28007 rm -f conftest.o conftest.s
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28011 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28012 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28014 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28021 $as_echo_n "checking assembler for .attribute support... " >&6; }
28022 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28023 $as_echo_n "(cached) " >&6
28025 gcc_cv_as_riscv_attribute
=no
28026 if test $in_tree_gas = yes; then
28027 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28028 then gcc_cv_as_riscv_attribute
=yes
28030 elif test x
$gcc_cv_as != x
; then
28031 $as_echo '.attribute stack_align,4' > conftest.s
28032 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; }
28039 gcc_cv_as_riscv_attribute
=yes
28041 echo "configure: failed program was" >&5
28044 rm -f conftest.o conftest.s
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28048 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28049 if test $gcc_cv_as_riscv_attribute = yes; then
28051 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28058 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28059 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28060 $as_echo_n "(cached) " >&6
28062 gcc_cv_as_s390_gnu_attribute
=no
28063 if test $in_tree_gas = yes; then
28064 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28065 then gcc_cv_as_s390_gnu_attribute
=yes
28067 elif test x
$gcc_cv_as != x
; then
28068 $as_echo '.gnu_attribute 8,1' > conftest.s
28069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28071 (eval $ac_try) 2>&5
28073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28074 test $ac_status = 0; }; }
28076 gcc_cv_as_s390_gnu_attribute
=yes
28078 echo "configure: failed program was" >&5
28081 rm -f conftest.o conftest.s
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28085 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28086 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28088 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28093 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28094 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28095 $as_echo_n "(cached) " >&6
28097 gcc_cv_as_s390_machine_machinemode
=no
28098 if test $in_tree_gas = yes; then
28099 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28100 then gcc_cv_as_s390_machine_machinemode
=yes
28102 elif test x
$gcc_cv_as != x
; then
28103 $as_echo ' .machinemode push
28106 .machine pop' > conftest.s
28107 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28109 (eval $ac_try) 2>&5
28111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28112 test $ac_status = 0; }; }
28114 gcc_cv_as_s390_machine_machinemode
=yes
28116 echo "configure: failed program was" >&5
28119 rm -f conftest.o conftest.s
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28123 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28124 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28126 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28131 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28132 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28133 $as_echo_n "(cached) " >&6
28135 gcc_cv_as_s390_architecture_modifiers
=no
28136 if test $in_tree_gas = yes; then
28137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28138 then gcc_cv_as_s390_architecture_modifiers
=yes
28140 elif test x
$gcc_cv_as != x
; then
28141 $as_echo ' .machine z13+vx ' > conftest.s
28142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28144 (eval $ac_try) 2>&5
28146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28147 test $ac_status = 0; }; }
28149 gcc_cv_as_s390_architecture_modifiers
=yes
28151 echo "configure: failed program was" >&5
28154 rm -f conftest.o conftest.s
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28158 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28159 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28161 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28166 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28167 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28168 $as_echo_n "(cached) " >&6
28170 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28171 if test $in_tree_gas = yes; then
28172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28173 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28175 elif test x
$gcc_cv_as != x
; then
28176 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28179 (eval $ac_try) 2>&5
28181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28182 test $ac_status = 0; }; }
28184 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28186 echo "configure: failed program was" >&5
28189 rm -f conftest.o conftest.s
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28193 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28194 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28196 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28204 # Mips and HP-UX need the GNU assembler.
28205 # Linux on IA64 might be able to use the Intel assembler.
28208 mips
*-*-* |
*-*-hpux* )
28209 if test x
$gas_flag = xyes \
28210 ||
test x
"$host" != x
"$build" \
28211 ||
test ! -x "$gcc_cv_as" \
28212 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28215 echo "*** This configuration requires the GNU assembler" >&2
28221 # ??? Not all targets support dwarf2 debug_line, even within a version
28222 # of gas. Moreover, we need to emit a valid instruction to trigger any
28223 # info to the output file. So, as supported targets are added to gas 2.11,
28224 # add some instruction here to (also) show we expect this might work.
28225 # ??? Once 2.11 is released, probably need to add first known working
28226 # version to the per-target configury.
28227 case "$cpu_type" in
28228 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28229 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28230 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28240 if test x
"$insn" != x
; then
28242 .file 1 \"conftest.s\"
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28246 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28247 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28248 $as_echo_n "(cached) " >&6
28250 gcc_cv_as_dwarf2_debug_line
=no
28251 if test $in_tree_gas = yes; then
28252 if test $in_tree_gas_is_elf = yes \
28253 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28254 then gcc_cv_as_dwarf2_debug_line
=yes
28256 elif test x
$gcc_cv_as != x
; then
28257 $as_echo "$conftest_s" > conftest.s
28258 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28260 (eval $ac_try) 2>&5
28262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28263 test $ac_status = 0; }; }
28265 if test x
$gcc_cv_objdump != x \
28266 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28267 |
grep debug_line
> /dev
/null
2>&1; then
28268 gcc_cv_as_dwarf2_debug_line
=yes
28269 elif test x
$gcc_cv_otool != x \
28270 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28271 |
grep debug_line
> /dev
/null
2>&1; then
28272 gcc_cv_as_dwarf2_debug_line
=yes
28275 echo "configure: failed program was" >&5
28278 rm -f conftest.o conftest.s
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28282 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28286 # The .debug_line file table must be in the exact order that
28287 # we specified the files, since these indices are also used
28288 # by DW_AT_decl_file. Approximate this test by testing if
28289 # the assembler bitches if the same index is assigned twice.
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28291 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28292 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28293 $as_echo_n "(cached) " >&6
28295 gcc_cv_as_dwarf2_file_buggy
=no
28296 if test x
$gcc_cv_as != x
; then
28297 $as_echo ' .file 1 "foo.s"
28298 .file 1 "bar.s"' > conftest.s
28299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28301 (eval $ac_try) 2>&5
28303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28304 test $ac_status = 0; }; }
28306 gcc_cv_as_dwarf2_file_buggy
=yes
28308 echo "configure: failed program was" >&5
28311 rm -f conftest.o conftest.s
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28315 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28319 if test $gcc_cv_as_dwarf2_debug_line = yes \
28320 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28322 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28325 if test $gcc_cv_as_leb128 = yes; then
28327 .file 1 \"conftest.s\"
28328 .loc 1 3 0 view .LVU1
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28335 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28336 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28337 $as_echo_n "(cached) " >&6
28339 gcc_cv_as_dwarf2_debug_view
=no
28340 if test $in_tree_gas = yes; then
28341 if test $in_tree_gas_is_elf = yes \
28342 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28343 then gcc_cv_as_dwarf2_debug_view
=yes
28345 elif test x
$gcc_cv_as != x
; then
28346 $as_echo "$conftest_s" > conftest.s
28347 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28349 (eval $ac_try) 2>&5
28351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28352 test $ac_status = 0; }; }
28354 gcc_cv_as_dwarf2_debug_view
=yes
28356 echo "configure: failed program was" >&5
28359 rm -f conftest.o conftest.s
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28363 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28364 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28366 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28374 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28375 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28376 $as_echo_n "(cached) " >&6
28378 gcc_cv_as_gdwarf2_flag
=no
28379 if test $in_tree_gas = yes; then
28380 if test $in_tree_gas_is_elf = yes \
28381 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28382 then gcc_cv_as_gdwarf2_flag
=yes
28384 elif test x
$gcc_cv_as != x
; then
28385 $as_echo "$insn" > conftest.s
28386 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28388 (eval $ac_try) 2>&5
28390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28391 test $ac_status = 0; }; }
28393 gcc_cv_as_gdwarf2_flag
=yes
28395 echo "configure: failed program was" >&5
28398 rm -f conftest.o conftest.s
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28402 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28403 if test $gcc_cv_as_gdwarf2_flag = yes; then
28405 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28411 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28412 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28413 $as_echo_n "(cached) " >&6
28415 gcc_cv_as_gstabs_flag
=no
28416 if test $in_tree_gas = yes; then
28417 if test $in_tree_gas_is_elf = yes \
28418 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28419 then gcc_cv_as_gstabs_flag
=yes
28421 elif test x
$gcc_cv_as != x
; then
28422 $as_echo "$insn" > conftest.s
28423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28425 (eval $ac_try) 2>&5
28427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28428 test $ac_status = 0; }; }
28430 gcc_cv_as_gstabs_flag
=yes
28432 echo "configure: failed program was" >&5
28435 rm -f conftest.o conftest.s
28438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28439 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28440 if test $gcc_cv_as_gstabs_flag = yes; then
28442 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28448 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28449 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28450 $as_echo_n "(cached) " >&6
28452 gcc_cv_as_debug_prefix_map_flag
=no
28453 if test $in_tree_gas = yes; then
28454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28455 then gcc_cv_as_debug_prefix_map_flag
=yes
28457 elif test x
$gcc_cv_as != x
; then
28458 $as_echo "$insn" > conftest.s
28459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28461 (eval $ac_try) 2>&5
28463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28464 test $ac_status = 0; }; }
28466 gcc_cv_as_debug_prefix_map_flag
=yes
28468 echo "configure: failed program was" >&5
28471 rm -f conftest.o conftest.s
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28475 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28476 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28478 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28485 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28486 if ${gcc_cv_as_compress_debug+:} false
; then :
28487 $as_echo_n "(cached) " >&6
28489 gcc_cv_as_compress_debug
=no
28490 if test x
$gcc_cv_as != x
; then
28491 $as_echo '' > conftest.s
28492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28494 (eval $ac_try) 2>&5
28496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28497 test $ac_status = 0; }; }
28499 # gas compiled without zlib cannot compress debug sections and warns
28500 # about it, but still exits successfully. So check for this, too.
28501 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28503 gcc_cv_as_compress_debug
=0
28504 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28505 # defaulting to the ELF gABI format.
28506 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28508 gcc_cv_as_compress_debug
=2
28509 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28510 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28511 # Before binutils 2.26, gas only supported --compress-debug-options and
28512 # emitted the traditional GNU format.
28513 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28515 gcc_cv_as_compress_debug
=1
28516 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28517 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28519 gcc_cv_as_compress_debug
=0
28522 echo "configure: failed program was" >&5
28525 rm -f conftest.o conftest.s
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28529 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28533 cat >>confdefs.h
<<_ACEOF
28534 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28538 cat >>confdefs.h
<<_ACEOF
28539 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28543 cat >>confdefs.h
<<_ACEOF
28544 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28549 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28550 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28551 $as_echo_n "(cached) " >&6
28553 gcc_cv_as_lcomm_with_alignment
=no
28554 if test x
$gcc_cv_as != x
; then
28555 $as_echo '.lcomm bar,4,16' > 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_lcomm_with_alignment
=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_lcomm_with_alignment" >&5
28572 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28573 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28575 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28580 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28581 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28582 && test "$prefix" != "NONE"; then
28584 cat >>confdefs.h
<<_ACEOF
28585 #define PREFIX_INCLUDE_DIR "$prefix/include"
28590 # Determine the version of glibc, if any, used on the target.
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28592 $as_echo_n "checking for target glibc version... " >&6; }
28594 # Check whether --with-glibc-version was given.
28595 if test "${with_glibc_version+set}" = set; then :
28596 withval
=$with_glibc_version;
28597 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28598 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28599 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28601 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28605 glibc_version_major
=0
28606 glibc_version_minor
=0
28607 if test -f $target_header_dir/features.h \
28608 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28609 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28610 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28611 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28616 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28618 cat >>confdefs.h
<<_ACEOF
28619 #define TARGET_GLIBC_MAJOR $glibc_version_major
28623 cat >>confdefs.h
<<_ACEOF
28624 #define TARGET_GLIBC_MINOR $glibc_version_minor
28628 # Check whether --enable-gnu-unique-object was given.
28629 if test "${enable_gnu_unique_object+set}" = set; then :
28630 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28632 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28633 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28637 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28638 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28639 $as_echo_n "(cached) " >&6
28641 gcc_cv_as_gnu_unique_object
=no
28642 if test $in_tree_gas = yes; then
28643 if test $in_tree_gas_is_elf = yes \
28644 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28645 then gcc_cv_as_gnu_unique_object
=yes
28647 elif test x
$gcc_cv_as != x
; then
28648 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28649 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28651 (eval $ac_try) 2>&5
28653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28654 test $ac_status = 0; }; }
28656 gcc_cv_as_gnu_unique_object
=yes
28658 echo "configure: failed program was" >&5
28661 rm -f conftest.o conftest.s
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28665 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28666 if test $gcc_cv_as_gnu_unique_object = yes; then
28667 # We need to unquote above to to use the definition from config.gcc.
28668 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28670 if test $glibc_version_major -gt 2 \
28671 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28672 enable_gnu_unique_object
=yes
28679 if test x
$enable_gnu_unique_object = xyes
; then
28681 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28686 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28687 if ${gcc_cv_as_line_zero+:} false
; then :
28688 $as_echo_n "(cached) " >&6
28690 gcc_cv_as_line_zero
=no
28691 if test $in_tree_gas = yes; then
28692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28693 then gcc_cv_as_line_zero
=yes
28695 elif test "x$gcc_cv_as" != x
; then
28696 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28697 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28699 (eval $ac_try) 2>&5
28701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28702 test $ac_status = 0; }; } &&
28703 test "x`cat conftest.out`" = x
28705 gcc_cv_as_line_zero
=yes
28707 echo "configure: failed program was" >&5
28709 echo "configure: error output was" >&5
28710 cat conftest.out
>&5
28712 rm -f conftest.o conftest.s conftest.out
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28716 $as_echo "$gcc_cv_as_line_zero" >&6; }
28717 if test "x$gcc_cv_as_line_zero" = xyes
; then
28719 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28724 $as_echo_n "checking support for thin archives... " >&6; }
28725 thin_archive_support
=no
28726 echo 'int main (void) { return 0; }' > conftest.c
28727 if ($AR --version |
sed 1q |
grep "GNU ar" \
28728 && $CC $CFLAGS -c conftest.c \
28729 && $AR rcT conftest.a conftest.o \
28730 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28731 thin_archive_support
=yes
28733 rm -f conftest.c conftest.o conftest.a conftest
28734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28735 $as_echo "$thin_archive_support" >&6; }
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28739 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28740 gcc_cv_ld_eh_frame_hdr
=no
28741 if test $in_tree_ld = yes ; then
28742 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 \
28743 && test $in_tree_ld_is_elf = yes; then
28744 gcc_cv_ld_eh_frame_hdr
=yes
28746 elif test x
$gcc_cv_ld != x
; then
28747 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28748 # Check if linker supports --eh-frame-hdr option
28749 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28750 gcc_cv_ld_eh_frame_hdr
=yes
28755 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28756 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28757 gcc_cv_ld_eh_frame_hdr
=yes
28764 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28766 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28770 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28773 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28774 gcc_cv_ld_eh_frame_ciev3
=no
28775 if test $in_tree_ld = yes ; then
28776 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 \
28777 && test $in_tree_ld_is_elf = yes; then
28778 gcc_cv_ld_eh_frame_ciev3
=yes
28780 elif test x
$gcc_cv_ld != x
; then
28781 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28782 gcc_cv_ld_eh_frame_ciev3
=yes
28783 if test 0"$ld_date" -lt 20040513; then
28784 if test -n "$ld_date"; then
28785 # If there was date string, but was earlier than 2004-05-13, fail
28786 gcc_cv_ld_eh_frame_ciev3
=no
28787 elif test "$ld_vers_major" -lt 2; then
28788 gcc_cv_ld_eh_frame_ciev3
=no
28789 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28790 gcc_cv_ld_eh_frame_ciev3
=no
28796 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28797 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28798 gcc_cv_ld_eh_frame_ciev3
=yes
28805 cat >>confdefs.h
<<_ACEOF
28806 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28810 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28813 $as_echo_n "checking linker position independent executable support... " >&6; }
28815 if test $in_tree_ld = yes ; then
28817 # Full PIE support on Solaris was only introduced in gld 2.26.
28818 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28819 *) gcc_gld_pie_min_version
=15 ;;
28821 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 \
28822 && test $in_tree_ld_is_elf = yes; then
28825 elif test x
$gcc_cv_ld != x
; then
28826 # Check if linker supports -pie option
28827 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28831 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28832 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28839 *-*-solaris2.1
[1-9]*)
28840 # Solaris 11.3 added PIE support.
28841 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28848 if test x
"$gcc_cv_ld_pie" = xyes
; then
28850 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28854 $as_echo "$gcc_cv_ld_pie" >&6; }
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28857 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28858 gcc_cv_ld_pie_copyreloc
=no
28859 if test $gcc_cv_ld_pie = yes ; then
28860 if test $in_tree_ld = yes ; then
28861 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
28862 gcc_cv_ld_pie_copyreloc
=yes
28864 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28865 # Check if linker supports -pie option with copy reloc
28867 i?
86-*-linux* | x86_64-
*-linux*)
28868 cat > conftest1.s
<<EOF
28871 .type a_glob, @object
28876 cat > conftest2.s
<<EOF
28879 .type main, @function
28881 movl %eax, a_glob(%rip)
28884 .section .data.rel,"aw",@progbits
28889 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28890 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28891 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28892 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28893 gcc_cv_ld_pie_copyreloc
=yes
28895 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28901 cat >>confdefs.h
<<_ACEOF
28902 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28906 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28909 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28910 gcc_cv_ld_eh_gc_sections
=no
28911 if test $in_tree_ld = yes ; then
28912 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 \
28913 && test $in_tree_ld_is_elf = yes; then
28914 gcc_cv_ld_eh_gc_sections
=yes
28916 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28917 cat > conftest.s
<<EOF
28920 .type _start, @function
28923 .size _start, .-_start
28924 .section .text.foo,"ax",@progbits
28925 .type foo, @function
28929 .section .gcc_except_table.foo,"a",@progbits
28932 .section .eh_frame,"a",@progbits
28935 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28936 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28937 |
grep "gc-sections option ignored" > /dev
/null
; then
28938 gcc_cv_ld_eh_gc_sections
=no
28939 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28940 |
grep gcc_except_table
> /dev
/null
; then
28941 gcc_cv_ld_eh_gc_sections
=yes
28942 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28943 if test x
$gcc_cv_as_comdat_group != xyes
; then
28944 gcc_cv_ld_eh_gc_sections
=no
28945 cat > conftest.s
<<EOF
28948 .type _start, @function
28951 .size _start, .-_start
28952 .section .gnu.linkonce.t.foo,"ax",@progbits
28953 .type foo, @function
28957 .section .gcc_except_table.foo,"a",@progbits
28960 .section .eh_frame,"a",@progbits
28963 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28964 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28965 |
grep "gc-sections option ignored" > /dev
/null
; then
28966 gcc_cv_ld_eh_gc_sections
=no
28967 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28968 |
grep gcc_except_table
> /dev
/null
; then
28969 gcc_cv_ld_eh_gc_sections
=yes
28975 rm -f conftest.s conftest.o conftest
28979 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28980 gcc_cv_ld_eh_gc_sections
=no
28983 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28985 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28989 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28992 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28993 gcc_cv_ld_eh_gc_sections_bug
=no
28994 if test $in_tree_ld = yes ; then
28995 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 \
28996 && test $in_tree_ld_is_elf = yes; then
28997 gcc_cv_ld_eh_gc_sections_bug
=yes
28999 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
29000 gcc_cv_ld_eh_gc_sections_bug
=yes
29001 cat > conftest.s
<<EOF
29004 .type _start, @function
29007 .size _start, .-_start
29008 .section .text.startup.foo,"ax",@progbits
29009 .type foo, @function
29013 .section .gcc_except_table.foo,"a",@progbits
29016 .section .eh_frame,"a",@progbits
29019 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29020 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29021 |
grep "gc-sections option ignored" > /dev
/null
; then
29023 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29024 |
grep gcc_except_table
> /dev
/null
; then
29025 gcc_cv_ld_eh_gc_sections_bug
=no
29028 rm -f conftest.s conftest.o conftest
29030 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
29032 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29036 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29039 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29040 # gold/gld support compressed debug sections since binutils 2.19/2.21
29041 # In binutils 2.26, gld gained support for the ELF gABI format.
29042 if test $in_tree_ld = yes ; then
29043 gcc_cv_ld_compress_debug
=0
29044 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 \
29045 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29046 gcc_cv_ld_compress_debug
=2
29047 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29048 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 \
29049 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
29050 gcc_cv_ld_compress_debug
=3
29051 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29052 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 \
29053 && test $in_tree_ld_is_elf = yes; then
29054 gcc_cv_ld_compress_debug
=1
29056 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29057 if test "$ld_vers_major" -lt 2 \
29058 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29059 gcc_cv_ld_compress_debug
=0
29060 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29061 gcc_cv_ld_compress_debug
=1
29063 gcc_cv_ld_compress_debug
=3
29064 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29066 if test $ld_is_gold = yes; then
29067 gcc_cv_ld_compress_debug
=2
29068 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29071 case "${target}" in
29073 # Introduced in Solaris 11.2.
29074 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
29075 gcc_cv_ld_compress_debug
=3
29076 gcc_cv_ld_compress_debug_option
="-z compress-sections"
29078 gcc_cv_ld_compress_debug
=0
29082 # Assume linkers other than GNU ld don't support compessed debug
29084 gcc_cv_ld_compress_debug
=0
29089 cat >>confdefs.h
<<_ACEOF
29090 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29094 cat >>confdefs.h
<<_ACEOF
29095 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29099 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29101 if test x
"$ld64_flag" = x
"yes"; then
29103 # Set defaults for possibly untestable items.
29104 gcc_cv_ld64_export_dynamic
=0
29106 if test "$build" = "$host"; then
29112 # On Darwin, because of FAT library support, it is often possible to execute
29113 # exes from compatible archs even when the host differs from the build system.
29114 case "$build","$host" in
29115 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
29116 darwin_try_test
=1;;
29120 # If the configurer specified a minimum ld64 version to be supported, then use
29121 # that to determine feature support.
29122 if test x
"${gcc_cv_ld64_version}" != x
; then
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29124 $as_echo_n "checking ld64 specified version... " >&6; }
29125 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29127 $as_echo "$gcc_cv_ld64_major" >&6; }
29128 if test "$gcc_cv_ld64_major" -ge 236; then
29129 gcc_cv_ld64_export_dynamic
=1
29131 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29132 # If the version was not specified, try to find it.
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29134 $as_echo_n "checking linker version... " >&6; }
29135 if test x
"${gcc_cv_ld64_version}" = x
; then
29136 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29139 $as_echo "$gcc_cv_ld64_version" >&6; }
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29142 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29143 gcc_cv_ld64_export_dynamic
=1
29144 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
29145 gcc_cv_ld64_export_dynamic
=0
29147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29148 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29151 if test x
"${gcc_cv_ld64_version}" != x
; then
29153 cat >>confdefs.h
<<_ACEOF
29154 #define LD64_VERSION "${gcc_cv_ld64_version}"
29160 cat >>confdefs.h
<<_ACEOF
29161 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29171 $as_echo_n "checking linker --as-needed support... " >&6; }
29172 if ${gcc_cv_ld_as_needed+:} false
; then :
29173 $as_echo_n "(cached) " >&6
29175 gcc_cv_ld_as_needed
=no
29176 gcc_cv_ld_as_needed_option
='--as-needed'
29177 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
29178 if test $in_tree_ld = yes ; then
29179 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 \
29180 && test $in_tree_ld_is_elf = yes; then
29181 gcc_cv_ld_as_needed
=yes
29182 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29183 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29184 gcc_cv_ld_no_as_needed_option
='--pop-state'
29187 elif test x
$gcc_cv_ld != x
; then
29188 # Check if linker supports --as-needed and --no-as-needed options
29189 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
29190 gcc_cv_ld_as_needed
=yes
29191 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
29192 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
29193 && echo "$ld_ver" |
grep GNU
> /dev
/null \
29194 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29195 # Use these options only when both ld.bfd and ld.gold support
29196 # --push-state/--pop-state, which unfortunately wasn't added
29197 # at the same time.
29198 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29199 gcc_cv_ld_no_as_needed_option
='--pop-state'
29202 case "$target:$gnu_ld" in
29204 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29206 gcc_cv_ld_as_needed
=yes
29207 gcc_cv_ld_as_needed_option
="-z ignore"
29208 gcc_cv_ld_no_as_needed_option
="-z record"
29212 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29213 # dl_iterate_phdr, i.e. since Solaris 11.
29215 *-*-solaris2.1
[1-9]*)
29217 i?
86-*-* | x86_64-
*-*)
29218 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29219 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29220 gcc_cv_ld_as_needed
=no
29226 gcc_cv_ld_as_needed
=no
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29232 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29233 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
29235 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29238 cat >>confdefs.h
<<_ACEOF
29239 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29243 cat >>confdefs.h
<<_ACEOF
29244 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29250 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29251 saved_LDFLAGS
="$LDFLAGS"
29252 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
29253 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29255 /* end confdefs.h. */
29256 int main(void) {return 0;}
29258 if ac_fn_cxx_try_link
"$LINENO"; then :
29259 gcc_cv_ld_clearcap
=yes; break
29261 gcc_cv_ld_clearcap
=no
29263 rm -f core conftest.err conftest.
$ac_objext \
29264 conftest
$ac_exeext conftest.
$ac_ext
29266 LDFLAGS
="$saved_LDFLAGS"
29267 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29269 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29271 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29275 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29281 emul_name
="-melf32lppc"
29284 emul_name
="-melf32ppc"
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29288 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29289 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29290 $as_echo_n "(cached) " >&6
29292 gcc_cv_ld_ppc_attr
=no
29293 if test x
"$ld_is_gold" = xyes
; then
29294 gcc_cv_ld_ppc_attr
=yes
29295 elif test $in_tree_ld = yes ; then
29296 if test "$gcc_cv_gld_major_version" -eq 2 \
29297 -a "$gcc_cv_gld_minor_version" -ge 28 \
29298 -o "$gcc_cv_gld_major_version" -gt 2; then
29299 gcc_cv_ld_ppc_attr
=yes
29301 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29302 # check that merging the long double .gnu_attribute doesn't warn
29303 cat > conftest1.s
<<EOF
29306 cat > conftest2.s
<<EOF
29309 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29310 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29311 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29312 && test ! -s conftest.err
; then
29313 gcc_cv_ld_ppc_attr
=yes
29315 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29320 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29321 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29323 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29329 case "$target:$tm_file" in
29330 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29333 emul_name
="-melf64lppc"
29336 emul_name
="-melf64ppc"
29339 emul_name
="-melf64ppc_fbsd"
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29343 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29344 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29345 $as_echo_n "(cached) " >&6
29347 gcc_cv_ld_no_dot_syms
=no
29348 if test x
"$ld_is_gold" = xyes
; then
29349 gcc_cv_ld_no_dot_syms
=yes
29350 elif test $in_tree_ld = yes ; then
29351 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
29352 gcc_cv_ld_no_dot_syms
=yes
29354 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29355 cat > conftest1.s
<<EOF
29359 cat > conftest2.s
<<EOF
29360 .section ".opd","aw"
29363 .type foo,@function
29365 .quad .LEfoo,.TOC.@tocbase,0
29371 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29372 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29373 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29374 gcc_cv_ld_no_dot_syms
=yes
29376 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29381 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29382 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29384 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29389 $as_echo_n "checking linker large toc support... " >&6; }
29390 if ${gcc_cv_ld_large_toc+:} false
; then :
29391 $as_echo_n "(cached) " >&6
29393 gcc_cv_ld_large_toc
=no
29394 if test x
"$ld_is_gold" = xyes
; then
29395 gcc_cv_ld_large_toc
=yes
29396 elif test $in_tree_ld = yes ; then
29397 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
29398 gcc_cv_ld_large_toc
=yes
29400 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29401 cat > conftest.s
<<EOF
29402 .section ".tbss","awT",@nobits
29408 addis 9,13,ie0@got@tprel@ha
29409 ld 9,ie0@got@tprel@l(9)
29411 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29412 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29413 gcc_cv_ld_large_toc
=yes
29415 rm -f conftest conftest.o conftest.s
29419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29420 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29421 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29423 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29428 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29429 if ${gcc_cv_ld_toc_align+:} false
; then :
29430 $as_echo_n "(cached) " >&6
29432 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29433 cat > conftest.s
<<EOF
29438 .section .data.rel.ro,"aw",@progbits
29443 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29444 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29445 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)) }'`
29447 rm -f conftest conftest.o conftest.s
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29452 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29453 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29455 cat >>confdefs.h
<<_ACEOF
29456 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29466 $as_echo_n "checking linker large toc support... " >&6; }
29467 if ${gcc_cv_ld_large_toc+:} false
; then :
29468 $as_echo_n "(cached) " >&6
29470 gcc_cv_ld_large_toc
=no
29471 if test x
$gcc_cv_as != x
; then
29472 cat > conftest.s
<<EOF
29482 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29483 gcc_cv_ld_large_toc
=yes
29485 rm -f conftest conftest.o conftest.s
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29490 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29491 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29493 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29500 $as_echo_n "checking linker --build-id support... " >&6; }
29501 if ${gcc_cv_ld_buildid+:} false
; then :
29502 $as_echo_n "(cached) " >&6
29504 gcc_cv_ld_buildid
=no
29505 if test $in_tree_ld = yes ; then
29506 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29507 "$gcc_cv_gld_minor_version" -ge 18 -o \
29508 "$gcc_cv_gld_major_version" -gt 2 \
29509 && test $in_tree_ld_is_elf = yes; then
29510 gcc_cv_ld_buildid
=yes
29512 elif test x
$gcc_cv_ld != x
; then
29513 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29514 gcc_cv_ld_buildid
=yes
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29519 $as_echo "$gcc_cv_ld_buildid" >&6; }
29520 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29522 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29526 # Check whether --enable-linker-build-id was given.
29527 if test "${enable_linker_build_id+set}" = set; then :
29528 enableval
=$enable_linker_build_id;
29530 enable_linker_build_id
=no
29534 if test x
"$enable_linker_build_id" = xyes
; then
29535 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29537 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29541 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29545 # In binutils 2.21, GNU ld gained support for new emulations fully
29546 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29548 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29549 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29550 $as_echo_n "(cached) " >&6
29552 gcc_cv_ld_sol2_emulation
=no
29553 if test $in_tree_ld = yes ; then
29554 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29555 "$gcc_cv_gld_minor_version" -ge 21 -o \
29556 "$gcc_cv_gld_major_version" -gt 2 \
29557 && test $in_tree_ld_is_elf = yes; then
29558 gcc_cv_ld_sol2_emulation
=yes
29560 elif test x
$gcc_cv_ld != x
; then
29561 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29562 grep _sol2
> /dev
/null
; then
29563 gcc_cv_ld_sol2_emulation
=yes
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29568 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29569 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29571 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29576 $as_echo_n "checking linker --sysroot support... " >&6; }
29577 if ${gcc_cv_ld_sysroot+:} false
; then :
29578 $as_echo_n "(cached) " >&6
29580 gcc_cv_ld_sysroot
=no
29581 if test $in_tree_ld = yes ; then
29582 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
29583 gcc_cv_ld_sysroot
=yes
29585 elif test x
$gcc_cv_ld != x
; then
29586 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29587 gcc_cv_ld_sysroot
=yes
29591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29592 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29593 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29595 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29601 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29603 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29604 if ${gcc_cv_solaris_crts+:} false
; then :
29605 $as_echo_n "(cached) " >&6
29607 gcc_cv_solaris_crts
=no
29608 if test x
$host != x
$target; then
29609 if test "x$with_sysroot" = xyes
; then
29610 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29612 target_sysroot
="${with_sysroot}"
29615 target_libdir
="$target_sysroot/usr/lib"
29616 # At the time they were added, gcrt1.o became a symlink for backwards
29617 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29619 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29620 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29622 sparc
*-*-solaris2*)
29623 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29628 $as_echo "$gcc_cv_solaris_crts" >&6; }
29631 if test x
$gcc_cv_solaris_crts = xyes
; then
29633 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29637 # Check whether --enable-libssp was given.
29638 if test "${enable_libssp+set}" = set; then :
29639 enableval
=$enable_libssp; case "${enableval}" in
29643 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29649 # Test for stack protector support in target C library.
29650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29651 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29652 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29653 $as_echo_n "(cached) " >&6
29655 gcc_cv_libc_provides_ssp
=no
29656 if test "x$enable_libssp" = "xno"; then
29657 gcc_cv_libc_provides_ssp
=yes
29658 elif test "x$enable_libssp" = "xyes"; then
29659 gcc_cv_libc_provides_ssp
=no
29663 # All versions of musl provide stack protector
29664 gcc_cv_libc_provides_ssp
=yes;;
29665 *-*-linux* |
*-*-kfreebsd*-gnu)
29666 # glibc 2.4 and later provides __stack_chk_fail and
29667 # either __stack_chk_guard, or TLS access to stack guard canary.
29669 if test $glibc_version_major -gt 2 \
29670 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29671 gcc_cv_libc_provides_ssp
=yes
29674 if test -f $target_header_dir/features.h \
29675 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29676 $target_header_dir/features.h
> /dev
/null
; then
29677 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29678 $target_header_dir/features.h
> /dev
/null
&& \
29679 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29680 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29681 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29682 gcc_cv_libc_provides_ssp
=yes
29684 # all versions of Bionic support stack protector
29685 elif test -f $target_header_dir/sys
/cdefs.h \
29686 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29687 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29688 gcc_cv_libc_provides_ssp
=yes
29693 # Avoid complicated tests (see
29694 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29695 # simply assert that glibc does provide this, which is true for all
29696 # realistically usable GNU/Hurd configurations.
29697 # All supported versions of musl provide it as well
29698 gcc_cv_libc_provides_ssp
=yes;;
29699 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29700 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29701 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29702 gcc_cv_libc_provides_ssp
=yes
29704 echo "no __stack_chk_fail on this target"
29708 *) gcc_cv_libc_provides_ssp
=no
;;
29712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29713 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29715 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29717 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29721 # Check whether --enable-default-ssp was given.
29722 # Check whether --enable-default-ssp was given.
29723 if test "${enable_default_ssp+set}" = set; then :
29724 enableval
=$enable_default_ssp;
29725 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29727 ia64
*-*-*) enable_default_ssp
=no
;;
29728 *) enable_default_ssp
=$enableval ;;
29731 enable_default_ssp
=no
29734 enable_default_ssp
=no
29737 if test x
$enable_default_ssp = xyes
; then
29739 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29744 # Test for <sys/sdt.h> on the target.
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29747 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29749 if test -f $target_header_dir/sys
/sdt.h
; then
29752 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29756 $as_echo "$have_sys_sdt_h" >&6; }
29758 # Check if TFmode long double should be used by default or not.
29759 # Some glibc targets used DFmode long double, but with glibc 2.4
29760 # and later they can use TFmode.
29762 powerpc
*-*-linux* | \
29763 sparc
*-*-linux* | \
29767 # Check whether --with-long-double-128 was given.
29768 if test "${with_long_double_128+set}" = set; then :
29769 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29773 s390
*-*-linux-musl*)
29774 gcc_cv_target_ldbl128
=yes
29776 powerpc
*-*-linux-musl*)
29777 gcc_cv_target_ldbl128
=no
29781 if test $glibc_version_major -gt 2 \
29782 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29783 gcc_cv_target_ldbl128
=yes
29786 gcc_cv_target_ldbl128
=no
29787 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29788 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29789 && gcc_cv_target_ldbl128
=yes
29800 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29802 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29806 # Check if TFmode long double target should use the IBM extended double or IEEE
29807 # 128-bit floating point formats if long doubles are 128-bits long. The long
29808 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29809 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29812 # Check whether --with-long-double-format was given.
29813 if test "${with_long_double_format+set}" = set; then :
29814 withval
=$with_long_double_format;
29815 case "$target:$with_long_double_format" in
29816 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29819 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29820 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29821 case "$with_cpu" in
29822 power7 | power8 | power9 | power1
*)
29826 as_fn_error $?
"Configuration option --with-long-double-format is only \
29827 supported if the default cpu is power7 or newer" "$LINENO" 5
29828 with_long_double_format
=""
29832 xpowerpc64
*-*-linux*:*)
29833 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29834 with_long_double_format
=""
29837 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29838 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29839 with_long_double_format
=""
29845 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29846 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29847 gcc_cv_libc_provides_hwcap_in_tcb
=no
29851 if test $glibc_version_major -gt 2 \
29852 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29853 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29857 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29859 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29863 # Check if the target LIBC handles PT_GNU_STACK.
29864 gcc_cv_libc_gnustack
=unknown
29868 if test $glibc_version_major -gt 2 \
29869 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29870 gcc_cv_libc_gnustack
=yes
29874 if test x
$gcc_cv_libc_gnustack = xyes
; then
29876 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29881 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29882 gcc_cv_target_dl_iterate_phdr
=unknown
29885 # <link.h> needs both a dl_iterate_phdr declaration and support for
29886 # compilation with largefile support.
29887 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29888 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29889 gcc_cv_target_dl_iterate_phdr
=yes
29891 gcc_cv_target_dl_iterate_phdr
=no
29894 *-*-dragonfly* |
*-*-freebsd*)
29895 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29896 gcc_cv_target_dl_iterate_phdr
=yes
29898 gcc_cv_target_dl_iterate_phdr
=no
29902 gcc_cv_target_dl_iterate_phdr
=yes
29906 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29908 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29912 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29914 # We no longer support different GC mechanisms. Emit an error if
29915 # the user configures with --with-gc.
29917 # Check whether --with-gc was given.
29918 if test "${with_gc+set}" = set; then :
29919 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29923 # Libraries to use on the host. This will normally be set by the top
29924 # level Makefile. Here we simply capture the value for our Makefile.
29925 if test -z "${HOST_LIBS+set}"; then
29930 # Use the system's zlib library.
29932 # Use the system's zlib library.
29933 zlibdir
="-L\$(top_builddir)/../zlib"
29934 zlibinc
="-I\$(top_srcdir)/../zlib"
29936 # Check whether --with-system-zlib was given.
29937 if test "${with_system_zlib+set}" = set; then :
29938 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29951 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29952 # Check whether --enable-maintainer-mode was given.
29953 if test "${enable_maintainer_mode+set}" = set; then :
29954 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29961 $as_echo "$maintainer_mode" >&6; }
29963 if test "$maintainer_mode" = "yes"; then
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29971 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29972 # Check whether --enable-link-mutex was given.
29973 if test "${enable_link_mutex+set}" = set; then :
29974 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29980 $as_echo "$do_link_mutex" >&6; }
29982 if test "$do_link_mutex" = "yes"; then
29985 DO_LINK_MUTEX
=false
29993 # Make empty files to contain the specs and options for each language.
29994 # Then add #include lines to for a compiler that has specs and/or options.
30000 # These (without "all_") are set in each config-lang.in.
30001 # `language' must be a single word so is spelled singularly.
30004 all_outputs
='Makefile'
30005 # List of language configure and makefile fragments.
30006 all_lang_configurefrags
=
30007 all_lang_makefrags
=
30008 # Additional files for gengtype
30009 all_gtfiles
="$target_gtfiles"
30011 # These are the languages that are set in --enable-languages,
30012 # and are available in the GCC tree.
30013 all_selected_languages
=
30015 # Add the language fragments.
30016 # Languages are added via two mechanisms. Some information must be
30017 # recorded in makefile variables, these are defined in config-lang.in.
30018 # We accumulate them and plug them into the main Makefile.
30019 # The other mechanism is a set of hooks for each of the main targets
30020 # like `clean', `install', etc.
30022 language_hooks
="Make-hooks"
30024 for lang
in ${srcdir}/*/config-lang.
in
30026 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30028 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30029 if test "x$lang_alias" = x
30031 echo "$lang doesn't set \$language." 1>&2
30034 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30035 subdirs
="$subdirs $subdir"
30037 # $gcc_subdir is where the gcc integration files are to be found
30038 # for a language, both for internal compiler purposes (compiler
30039 # sources implementing front-end to GCC tree converters), and for
30040 # build infrastructure purposes (Make-lang.in, etc.)
30042 # This will be <subdir> (relative to $srcdir) if a line like
30043 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30044 # is found in <langdir>/config-lang.in, and will remain <langdir>
30047 # Except for the language alias (fetched above), the regular
30048 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30049 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30050 # only this and the language alias.
30052 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30053 if [ "$gcc_subdir" = "" ]; then
30054 gcc_subdir
="$subdir"
30057 case ",$enable_languages," in
30059 all_selected_languages
="$all_selected_languages $lang_alias"
30060 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
30061 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30072 .
${srcdir}/$gcc_subdir/config-lang.
in
30073 if test "x$language" = x
30075 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30080 case ",$enable_languages," in
30081 *,$lang_alias,*) ;;
30083 for i
in $subdir_requires; do
30084 test -f "${srcdir}/$i/config-lang.in" && continue
30092 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30093 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30094 if test -f $srcdir/$gcc_subdir/lang.opt
; then
30095 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30096 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30098 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
30099 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30101 all_languages
="$all_languages $language"
30102 all_compilers
="$all_compilers $compilers"
30103 all_outputs
="$all_outputs $outputs"
30104 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
30105 case ",$enable_languages," in
30108 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30118 for language
in $all_selected_languages
30120 check_languages
="$check_languages check-$language"
30123 selftest_languages
=
30124 for language
in $all_selected_languages
30126 selftest_languages
="$selftest_languages selftest-$language"
30129 # We link each language in with a set of hooks, reached indirectly via
30130 # lang.${target}. Only do so for selected languages.
30134 target_list
="all.cross start.encap rest.encap tags \
30135 install-common install-man install-info install-pdf install-html dvi \
30136 pdf html uninstall info man srcextra srcman srcinfo \
30137 mostlyclean clean distclean maintainer-clean install-plugin"
30139 for t
in $target_list
30142 for lang
in $all_selected_languages
30146 echo "lang.$t: $x" >> Make-hooks
30150 # Option include files
30153 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
30154 option_includes
="option-includes.mk"
30163 echo "dir ." > .gdbinit
30164 echo "dir ${srcdir}" >> .gdbinit
30165 if test x
$gdb_needs_out_file_path = xyes
30167 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30169 if test "x$subdirs" != x
; then
30172 echo "dir ${srcdir}/$s" >> .gdbinit
30175 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30176 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30178 # Put a breakpoint on __asan_report_error to help with debugging buffer
30181 *-fsanitize=address
*)
30182 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30186 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30190 # Find a directory in which to install a shared libgcc.
30192 # Check whether --enable-version-specific-runtime-libs was given.
30193 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30194 enableval
=$enable_version_specific_runtime_libs;
30198 # Substitute configuration variables
30267 if test x
${build} = x
${host} ; then
30268 if test x
${host} = x
${target} ; then
30269 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30271 echo "Links are now set up to build a cross-compiler" 1>&2
30272 echo " from ${host} to ${target}." 1>&2
30275 if test x
${host} = x
${target} ; then
30276 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30277 echo " for ${target}." 1>&2
30279 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30280 echo " from ${host} to ${target}." 1>&2
30289 if test "x${ISLLIBS}" != "x" ; then
30291 $as_echo "#define HAVE_isl 1" >>confdefs.h
30295 # Check for plugin support
30296 # Check whether --enable-plugin was given.
30297 if test "${enable_plugin+set}" = set; then :
30298 enableval
=$enable_plugin; enable_plugin
=$enableval
30300 enable_plugin
=yes; default_plugin
=yes
30309 # Since plugin support under MinGW is not as straightforward as on
30310 # other platforms (e.g., we have to link import library, etc), we
30311 # only enable it if explicitly requested.
30312 if test x
"$default_plugin" = x
"yes"; then
30314 elif test x
"$enable_plugin" = x
"yes"; then
30315 # Use make's target variable to derive import library name.
30316 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30321 if test x
$build = x
$host; then
30322 export_sym_check
="nm${exeext} -g"
30323 elif test x
$host = x
$target; then
30324 export_sym_check
="$gcc_cv_nm -g"
30330 if test x
$build = x
$host; then
30331 export_sym_check
="objdump${exeext} -T"
30332 elif test x
$host = x
$target; then
30333 export_sym_check
="$gcc_cv_objdump -T"
30340 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30343 $as_echo_n "checking for exported symbols... " >&6; }
30344 if test "x$export_sym_check" != x
; then
30345 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30346 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30347 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30348 : # No need to use a flag
30349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30350 $as_echo "yes" >&6; }
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30353 $as_echo "yes" >&6; }
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30355 $as_echo_n "checking for -rdynamic... " >&6; }
30356 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30357 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30358 plugin_rdynamic
=yes
30359 pluginlibs
="-rdynamic"
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30365 $as_echo "$plugin_rdynamic" >&6; }
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30369 $as_echo "unable to check" >&6; }
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30375 $as_echo_n "checking for library containing dlopen... " >&6; }
30376 if ${ac_cv_search_dlopen+:} false
; then :
30377 $as_echo_n "(cached) " >&6
30379 ac_func_search_save_LIBS
=$LIBS
30380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30381 /* end confdefs.h. */
30383 /* Override any GCC internal prototype to avoid an error.
30384 Use char because int might match the return type of a GCC
30385 builtin and then its argument prototype would still apply. */
30398 for ac_lib
in '' dl
; do
30399 if test -z "$ac_lib"; then
30400 ac_res
="none required"
30403 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30405 if ac_fn_cxx_try_link
"$LINENO"; then :
30406 ac_cv_search_dlopen
=$ac_res
30408 rm -f core conftest.err conftest.
$ac_objext \
30410 if ${ac_cv_search_dlopen+:} false
; then :
30414 if ${ac_cv_search_dlopen+:} false
; then :
30417 ac_cv_search_dlopen
=no
30419 rm conftest.
$ac_ext
30420 LIBS
=$ac_func_search_save_LIBS
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30423 $as_echo "$ac_cv_search_dlopen" >&6; }
30424 ac_res
=$ac_cv_search_dlopen
30425 if test "$ac_res" != no
; then :
30426 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30430 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30431 pluginlibs
="$pluginlibs -ldl"
30435 # Check that we can build shared objects with -fPIC -shared
30436 saved_LDFLAGS
="$LDFLAGS"
30437 saved_CFLAGS
="$CFLAGS"
30440 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30441 CFLAGS
="$CFLAGS -fPIC"
30442 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30445 CFLAGS
="$CFLAGS -fPIC"
30446 LDFLAGS
="$LDFLAGS -fPIC -shared"
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30450 $as_echo_n "checking for -fPIC -shared... " >&6; }
30451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30452 /* end confdefs.h. */
30462 if ac_fn_cxx_try_link
"$LINENO"; then :
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464 $as_echo "yes" >&6; }; have_pic_shared
=yes
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30467 $as_echo "no" >&6; }; have_pic_shared
=no
30469 rm -f core conftest.err conftest.
$ac_objext \
30470 conftest
$ac_exeext conftest.
$ac_ext
30471 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30475 LDFLAGS
="$saved_LDFLAGS"
30476 CFLAGS
="$saved_CFLAGS"
30478 # If plugin support had been requested but not available, fail.
30479 if test x
"$enable_plugin" = x
"no" ; then
30480 if test x
"$default_plugin" != x
"yes"; then
30482 Building GCC with plugin support requires a host that supports
30483 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30490 if test x
"$enable_plugin" = x
"yes"; then
30492 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30497 # Enable --enable-host-shared
30498 # Check whether --enable-host-shared was given.
30499 if test "${enable_host_shared+set}" = set; then :
30500 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30509 # Check whether --enable-libquadmath-support was given.
30510 if test "${enable_libquadmath_support+set}" = set; then :
30511 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30513 ENABLE_LIBQUADMATH_SUPPORT
=yes
30516 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30518 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30523 # Specify what hash style to use by default.
30525 # Check whether --with-linker-hash-style was given.
30526 if test "${with_linker_hash_style+set}" = set; then :
30527 withval
=$with_linker_hash_style; case x
"$withval" in
30529 LINKER_HASH_STYLE
=sysv
30532 LINKER_HASH_STYLE
=gnu
30535 LINKER_HASH_STYLE
=both
30538 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30542 LINKER_HASH_STYLE
=''
30545 if test x
"${LINKER_HASH_STYLE}" != x
; then
30547 cat >>confdefs.h
<<_ACEOF
30548 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30553 # Specify what should be the default of -fdiagnostics-color option.
30555 # Check whether --with-diagnostics-color was given.
30556 if test "${with_diagnostics_color+set}" = set; then :
30557 withval
=$with_diagnostics_color; case x
"$withval" in
30559 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30562 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30565 DIAGNOSTICS_COLOR_DEFAULT
=-1
30568 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30571 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30575 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30579 cat >>confdefs.h
<<_ACEOF
30580 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30584 # Specify what should be the default of -fdiagnostics-urls option.
30586 # Check whether --with-diagnostics-urls was given.
30587 if test "${with_diagnostics_urls+set}" = set; then :
30588 withval
=$with_diagnostics_urls; case x
"$withval" in
30590 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
30593 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
30596 DIAGNOSTICS_URLS_DEFAULT
=-1
30599 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
30602 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30606 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
30610 cat >>confdefs.h
<<_ACEOF
30611 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30615 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30616 # of jit/jit-playback.c.
30617 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30618 echo "gcc_driver_version: ${gcc_driver_version}"
30619 cat > gcc-driver-name.h
<<EOF
30620 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30623 # Check whether --enable-default-pie was given.
30624 # Check whether --enable-default-pie was given.
30625 if test "${enable_default_pie+set}" = set; then :
30626 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30628 enable_default_pie
=no
30631 if test x
$enable_default_pie = xyes
; then
30633 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30638 # Check if -fno-PIE works.
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30640 $as_echo_n "checking for -fno-PIE option... " >&6; }
30641 if ${gcc_cv_c_no_fpie+:} false
; then :
30642 $as_echo_n "(cached) " >&6
30644 saved_CXXFLAGS
="$CXXFLAGS"
30645 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30647 /* end confdefs.h. */
30648 int main(void) {return 0;}
30650 if ac_fn_cxx_try_compile
"$LINENO"; then :
30651 gcc_cv_c_no_fpie
=yes
30653 gcc_cv_c_no_fpie
=no
30655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30656 CXXFLAGS
="$saved_CXXFLAGS"
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30659 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30660 if test "$gcc_cv_c_no_fpie" = "yes"; then
30661 NO_PIE_CFLAGS
="-fno-PIE"
30665 # Check if -no-pie works.
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30667 $as_echo_n "checking for -no-pie option... " >&6; }
30668 if ${gcc_cv_no_pie+:} false
; then :
30669 $as_echo_n "(cached) " >&6
30671 saved_LDFLAGS
="$LDFLAGS"
30672 LDFLAGS
="$LDFLAGS -no-pie"
30673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30674 /* end confdefs.h. */
30675 int main(void) {return 0;}
30677 if ac_fn_cxx_try_link
"$LINENO"; then :
30682 rm -f core conftest.err conftest.
$ac_objext \
30683 conftest
$ac_exeext conftest.
$ac_ext
30684 LDFLAGS
="$saved_LDFLAGS"
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30687 $as_echo "$gcc_cv_no_pie" >&6; }
30688 if test "$gcc_cv_no_pie" = "yes"; then
30689 NO_PIE_FLAG
="-no-pie"
30693 # Check linker supports '-z bndplt'
30694 ld_bndplt_support
=no
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30696 $as_echo_n "checking linker -z bndplt option... " >&6; }
30697 if test x
"$ld_is_gold" = xno
; then
30698 if test $in_tree_ld = yes ; then
30699 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
30700 ld_bndplt_support
=yes
30702 elif test x
$gcc_cv_ld != x
; then
30703 # Check if linker supports -a bndplt option
30704 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30705 ld_bndplt_support
=yes
30709 if test x
"$ld_bndplt_support" = xyes
; then
30711 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30715 $as_echo "$ld_bndplt_support" >&6; }
30717 # Check linker supports '--push-state'/'--pop-state'
30718 ld_pushpopstate_support
=no
30719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30720 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30721 if test x
"$ld_is_gold" = xno
; then
30722 if test $in_tree_ld = yes ; then
30723 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
30724 ld_pushpopstate_support
=yes
30726 elif test x
$gcc_cv_ld != x
; then
30727 # Check if linker supports --push-state/--pop-state options
30728 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30729 ld_pushpopstate_support
=yes
30733 if test x
"$ld_pushpopstate_support" = xyes
; then
30735 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30739 $as_echo "$ld_pushpopstate_support" >&6; }
30741 # Configure the subdirectories
30742 # AC_CONFIG_SUBDIRS($subdirs)
30744 # Create the Makefile
30745 # and configure language subdirectories
30746 ac_config_files
="$ac_config_files $all_outputs"
30749 ac_config_commands
="$ac_config_commands default"
30751 cat >confcache
<<\_ACEOF
30752 # This file is a shell script that caches the results of configure
30753 # tests run on this system so they can be shared between configure
30754 # scripts and configure runs, see configure's option --config-cache.
30755 # It is not useful on other systems. If it contains results you don't
30756 # want to keep, you may remove or edit it.
30758 # config.status only pays attention to the cache file if you give it
30759 # the --recheck option to rerun configure.
30761 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30762 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30763 # following values.
30767 # The following way of writing the cache mishandles newlines in values,
30768 # but we know of no workaround that is simple, portable, and efficient.
30769 # So, we kill variables containing newlines.
30770 # Ultrix sh set writes to stderr and can't be redirected directly,
30771 # and sets the high bit in the cache file unless we assign to the vars.
30773 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30774 eval ac_val
=\$
$ac_var
30778 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30779 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30782 _ | IFS | as_nl
) ;; #(
30783 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30784 *) { eval $ac_var=; unset $ac_var;} ;;
30790 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30791 *${as_nl}ac_space
=\
*)
30792 # `set' does not quote correctly, so add quotes: double-quote
30793 # substitution turns \\\\ into \\, and sed turns \\ into \.
30796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30799 # `set' quotes correctly as required by POSIX, so do not add quotes.
30800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30811 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30813 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30814 if test -w "$cache_file"; then
30815 if test "x$cache_file" != "x/dev/null"; then
30816 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30817 $as_echo "$as_me: updating cache $cache_file" >&6;}
30818 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30819 cat confcache
>"$cache_file"
30821 case $cache_file in #(
30823 mv -f confcache
"$cache_file"$$
&&
30824 mv -f "$cache_file"$$
"$cache_file" ;; #(
30826 mv -f confcache
"$cache_file" ;;
30831 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30832 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30837 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30838 # Let make expand exec_prefix.
30839 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30841 DEFS
=-DHAVE_CONFIG_H
30846 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30847 # 1. Remove the extension, and $U if already installed.
30848 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30849 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30850 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30851 # will be set to the directory where LIBOBJS objects are built.
30852 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30853 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30855 LIBOBJS
=$ac_libobjs
30857 LTLIBOBJS
=$ac_ltlibobjs
30862 : "${CONFIG_STATUS=./config.status}"
30864 ac_clean_files_save
=$ac_clean_files
30865 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30867 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30869 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30871 # Generated by $as_me.
30872 # Run this file to recreate the current configuration.
30873 # Compiler output produced by configure, useful for debugging
30874 # configure, is in config.log if it exists.
30877 ac_cs_recheck=false
30880 SHELL=\${CONFIG_SHELL-$SHELL}
30883 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30884 ## -------------------- ##
30885 ## M4sh Initialization. ##
30886 ## -------------------- ##
30888 # Be more Bourne compatible
30889 DUALCASE
=1; export DUALCASE
# for MKS sh
30890 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30893 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30894 # is contrary to our usage. Disable this feature.
30895 alias -g '${1+"$@"}'='"$@"'
30896 setopt NO_GLOB_SUBST
30898 case `(set -o) 2>/dev/null` in #(
30910 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30911 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30912 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30914 # Prefer a ksh shell builtin over an external printf program on Solaris,
30915 # but without wasting forks for bash or zsh.
30916 if test -z "$BASH_VERSION$ZSH_VERSION" \
30917 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30918 as_echo='print
-r --'
30919 as_echo_n='print
-rn --'
30920 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30921 as_echo='printf %s
\n'
30922 as_echo_n='printf %s
'
30924 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30925 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30926 as_echo_n='/usr
/ucb
/echo -n'
30928 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30929 as_echo_n_body='eval
30933 expr "X$arg" : "X\\(.*\\)$as_nl";
30934 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30936 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30938 export as_echo_n_body
30939 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30941 export as_echo_body
30942 as_echo='sh
-c $as_echo_body as_echo
'
30945 # The user is always right.
30946 if test "${PATH_SEPARATOR+set}" != set; then
30948 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30949 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30956 # We need space, tab and new line, in precisely that order. Quoting is
30957 # there to prevent editors from complaining about space-tab.
30958 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30959 # splitting by setting IFS to empty value.)
30962 # Find who we are. Look in the path if we contain no directory separator.
30965 *[\\/]* ) as_myself=$0 ;;
30966 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30967 for as_dir in $PATH
30970 test -z "$as_dir" && as_dir=.
30971 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30977 # We did not find ourselves, most probably we were run as `sh COMMAND'
30978 # in which case we are not to be found in the path.
30979 if test "x$as_myself" = x
; then
30982 if test ! -f "$as_myself"; then
30983 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30987 # Unset variables that we do not need and which cause bugs (e.g. in
30988 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30989 # suppresses any "Segmentation fault" message there. '((' could
30990 # trigger a bug in pdksh 5.2.14.
30991 for as_var
in BASH_ENV ENV MAIL MAILPATH
30992 do eval test x\
${$as_var+set} = xset \
30993 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31006 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31009 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31010 # ----------------------------------------
31011 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31012 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31013 # script with STATUS, using 1 if that was 0.
31016 as_status
=$1; test $as_status -eq 0 && as_status
=1
31018 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31019 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31021 $as_echo "$as_me: error: $2" >&2
31022 as_fn_exit
$as_status
31026 # as_fn_set_status STATUS
31027 # -----------------------
31028 # Set $? to STATUS, without forking.
31029 as_fn_set_status
()
31032 } # as_fn_set_status
31034 # as_fn_exit STATUS
31035 # -----------------
31036 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31040 as_fn_set_status
$1
31046 # Portably unset VAR.
31049 { eval $1=; unset $1;}
31051 as_unset
=as_fn_unset
31052 # as_fn_append VAR VALUE
31053 # ----------------------
31054 # Append the text in VALUE to the end of the definition contained in VAR. Take
31055 # advantage of any shell optimizations that allow amortized linear growth over
31056 # repeated appends, instead of the typical quadratic growth present in naive
31058 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31059 eval 'as_fn_append ()
31070 # as_fn_arith ARG...
31071 # ------------------
31072 # Perform arithmetic evaluation on the ARGs, and store the result in the
31073 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31074 # must be portable across $(()) and expr.
31075 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31076 eval 'as_fn_arith ()
31083 as_val
=`expr "$@" || test $? -eq 1`
31088 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31089 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31095 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31096 as_basename
=basename
31101 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31107 as_me
=`$as_basename -- "$0" ||
31108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31109 X"$0" : 'X\(//\)$' \| \
31110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31112 sed '/^.*\/\([^/][^/]*\)\/*$/{
31126 # Avoid depending upon Character Ranges.
31127 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31128 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31129 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31130 as_cr_digits
='0123456789'
31131 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31133 ECHO_C
= ECHO_N
= ECHO_T
=
31134 case `echo -n x` in #(((((
31136 case `echo 'xy\c'` in
31137 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31139 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31146 rm -f conf$$ conf$$.exe conf$$.
file
31147 if test -d conf$$.dir
; then
31148 rm -f conf$$.dir
/conf$$.
file
31151 mkdir conf$$.dir
2>/dev
/null
31153 if (echo >conf$$.
file) 2>/dev
/null
; then
31154 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31156 # ... but there are two gotchas:
31157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31159 # In both cases, we have to default to `cp -pR'.
31160 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31162 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31170 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31171 rmdir conf$$.dir
2>/dev
/null
31176 # Create "$as_dir" as a directory, including parents if necessary.
31181 -*) as_dir
=.
/$as_dir;;
31183 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31187 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31188 *) as_qdir
=$as_dir;;
31190 as_dirs
="'$as_qdir' $as_dirs"
31191 as_dir
=`$as_dirname -- "$as_dir" ||
31192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31193 X"$as_dir" : 'X\(//\)[^/]' \| \
31194 X"$as_dir" : 'X\(//\)$' \| \
31195 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31196 $as_echo X"$as_dir" |
31197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31201 /^X\(\/\/\)[^/].*/{
31214 test -d "$as_dir" && break
31216 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31217 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31221 if mkdir
-p .
2>/dev
/null
; then
31222 as_mkdir_p
='mkdir -p "$as_dir"'
31224 test -d .
/-p && rmdir .
/-p
31229 # as_fn_executable_p FILE
31230 # -----------------------
31231 # Test if FILE is an executable regular file.
31232 as_fn_executable_p
()
31234 test -f "$1" && test -x "$1"
31235 } # as_fn_executable_p
31236 as_test_x
='test -x'
31237 as_executable_p
=as_fn_executable_p
31239 # Sed expression to map a string onto a valid CPP name.
31240 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31242 # Sed expression to map a string onto a valid variable name.
31243 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31247 ## ----------------------------------- ##
31248 ## Main body of $CONFIG_STATUS script. ##
31249 ## ----------------------------------- ##
31251 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31254 # Save the log message, to keep $0 and so on meaningful, and to
31255 # report actual input values of CONFIG_FILES etc. instead of their
31256 # values after options handling.
31258 This file was extended by $as_me, which was
31259 generated by GNU Autoconf 2.69. Invocation command line was
31261 CONFIG_FILES = $CONFIG_FILES
31262 CONFIG_HEADERS = $CONFIG_HEADERS
31263 CONFIG_LINKS = $CONFIG_LINKS
31264 CONFIG_COMMANDS = $CONFIG_COMMANDS
31267 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31272 case $ac_config_files in *"
31273 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31276 case $ac_config_headers in *"
31277 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31282 # Files that config.status was made for.
31283 config_files="$ac_config_files"
31284 config_headers="$ac_config_headers"
31285 config_links="$ac_config_links"
31286 config_commands="$ac_config_commands"
31290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31292 \`$as_me' instantiates files and other configuration actions
31293 from templates according to the current configuration. Unless the files
31294 and actions are specified as TAGs, all are instantiated by default.
31296 Usage: $0 [OPTION]... [TAG]...
31298 -h, --help print this help, then exit
31299 -V, --version print version number and configuration settings, then exit
31300 --config print configuration, then exit
31301 -q, --quiet, --silent
31302 do not print progress messages
31303 -d, --debug don't remove temporary files
31304 --recheck update $as_me by reconfiguring in the same conditions
31305 --file=FILE[:TEMPLATE]
31306 instantiate the configuration file FILE
31307 --header=FILE[:TEMPLATE]
31308 instantiate the configuration header FILE
31310 Configuration files:
31313 Configuration headers:
31316 Configuration links:
31319 Configuration commands:
31322 Report bugs to the package provider."
31325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31326 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31329 configured by $0, generated by GNU Autoconf 2.69,
31330 with options \\"\$ac_cs_config\\"
31332 Copyright (C) 2012 Free Software Foundation, Inc.
31333 This config.status script is free software; the Free Software Foundation
31334 gives unlimited permission to copy, distribute and modify it."
31339 test -n "\$AWK" || AWK=awk
31342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31343 # The default lists apply if the user does not specify any file.
31349 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31350 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31354 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31366 # Handling of the options.
31367 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31369 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31370 $as_echo "$ac_cs_version"; exit ;;
31371 --config |
--confi |
--conf |
--con |
--co |
--c )
31372 $as_echo "$ac_cs_config"; exit ;;
31373 --debug |
--debu |
--deb |
--de |
--d |
-d )
31375 --file |
--fil |
--fi |
--f )
31378 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31379 '') as_fn_error $?
"missing file argument" ;;
31381 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31382 ac_need_defaults
=false
;;
31383 --header |
--heade |
--head |
--hea )
31386 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31388 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31389 ac_need_defaults
=false
;;
31391 # Conflict between --help and --header
31392 as_fn_error $?
"ambiguous option: \`$1'
31393 Try \`$0 --help' for more information.";;
31394 --help |
--hel |
-h )
31395 $as_echo "$ac_cs_usage"; exit ;;
31396 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31397 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31400 # This is an error.
31401 -*) as_fn_error $?
"unrecognized option: \`$1'
31402 Try \`$0 --help' for more information." ;;
31404 *) as_fn_append ac_config_targets
" $1"
31405 ac_need_defaults
=false
;;
31411 ac_configure_extra_args
=
31413 if $ac_cs_silent; then
31415 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31420 if \$ac_cs_recheck; then
31421 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31423 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31424 CONFIG_SHELL='$SHELL'
31425 export CONFIG_SHELL
31430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31434 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31435 ## Running $as_me. ##
31441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31445 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31446 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31453 # Handling of arguments.
31454 for ac_config_target
in $ac_config_targets
31456 case $ac_config_target in
31457 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
31458 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31459 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
31460 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
31461 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31462 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
31463 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31464 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
31465 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31467 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31472 # If the user did not use the arguments to specify the items to instantiate,
31473 # then the envvar interface is used. Set only those that are not.
31474 # We use the long form for the default assignment because of an extremely
31475 # bizarre bug on SunOS 4.1.3.
31476 if $ac_need_defaults; then
31477 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31478 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31479 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31480 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31483 # Have a temporary directory for convenience. Make it in the build tree
31484 # simply because there is no reason against having it here, and in addition,
31485 # creating and moving files from /tmp can sometimes cause problems.
31486 # Hook for its removal unless debugging.
31487 # Note that there is a small window in which the directory will not be cleaned:
31488 # after its creation but before its name has been assigned to `$tmp'.
31492 trap 'exit_status=$?
31493 : "${ac_tmp:=$tmp}"
31494 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31496 trap 'as_fn_exit 1' 1 2 13 15
31498 # Create a (secure) tmp directory for tmp files.
31501 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31505 tmp
=.
/conf$$
-$RANDOM
31506 (umask 077 && mkdir
"$tmp")
31507 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31510 # Set up the scripts for CONFIG_FILES section.
31511 # No need to generate them if there are no CONFIG_FILES.
31512 # This happens for instance with `./config.status config.h'.
31513 if test -n "$CONFIG_FILES"; then
31515 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31516 ac_cs_awk_getline
=:
31517 ac_cs_awk_pipe_init
=
31518 ac_cs_awk_read_file
='
31519 while ((getline aline < (F[key])) > 0)
31522 ac_cs_awk_pipe_fini
=
31524 ac_cs_awk_getline
=false
31525 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31526 ac_cs_awk_read_file
='
31528 print "cat " F[key] " &&"
31529 '$ac_cs_awk_pipe_init
31530 # The final `:' finishes the AND list.
31531 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31533 ac_cr
=`echo X | tr X '\015'`
31534 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31535 # But we know of no other shell where ac_cr would be empty at this
31536 # point, so we can use a bashism as a fallback.
31537 if test "x$ac_cr" = x
; then
31538 eval ac_cr
=\$
\'\\r
\'
31540 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31541 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31544 ac_cs_awk_cr
=$ac_cr
31547 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31550 # Create commands to substitute file output variables.
31552 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31553 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31554 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31557 } >conf$
$files.sh
&&
31558 . .
/conf$
$files.sh ||
31559 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31560 rm -f conf$
$files.sh
31563 echo "cat >conf$$subs.awk <<_ACEOF" &&
31564 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31566 } >conf$$subs.sh ||
31567 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31568 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31570 for ac_last_try in false false false false false :; do
31571 . ./conf$$subs.sh ||
31572 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31574 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31575 if test $ac_delim_n = $ac_delim_num; then
31577 elif $ac_last_try; then
31578 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31580 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31583 rm -f conf$$subs.sh
31585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31586 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31590 s/^/S["/; s
/!.
*/"]=/
31600 s/\(.\{148\}\)..*/\1/
31602 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31607 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31614 s/\(.\{148\}\)..*/\1/
31616 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31620 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31625 ' <conf$$subs.awk | sed '
31630 ' >>$CONFIG_STATUS || ac_write_fail=1
31631 rm -f conf$$subs.awk
31632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31634 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31635 for (key in S) S_is_set[key] = 1
31637 \$ac_cs_awk_pipe_init
31641 nfields = split(line, field, "@
")
31643 len = length(field[1])
31644 for (i = 2; i < nfields; i++) {
31646 keylen = length(key)
31647 if (S_is_set[key]) {
31649 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31650 len += length(value) + length(field[++i])
31655 if (nfields == 3 && !substed) {
31657 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31658 \$ac_cs_awk_read_file
31664 \$ac_cs_awk_pipe_fini
31667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31668 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31669 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31672 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31673 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31676 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31677 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31678 # trailing colons and then remove the whole line if VPATH becomes empty
31679 # (actually we leave an empty line to preserve line numbers).
31680 if test "x
$srcdir" = x.; then
31681 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31700 fi # test -n "$CONFIG_FILES"
31702 # Set up the scripts for CONFIG_HEADERS section.
31703 # No need to generate them if there are no CONFIG_HEADERS.
31704 # This happens for instance with `./config.status Makefile'.
31705 if test -n "$CONFIG_HEADERS"; then
31706 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31710 # Transform confdefs.h into an awk script `defines.awk', embedded as
31711 # here-document in config.status, that substitutes the proper values into
31712 # config.h.in to produce config.h.
31714 # Create a delimiter string that does not exist in confdefs.h, to ease
31715 # handling of long lines.
31717 for ac_last_try in false false :; do
31718 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31719 if test -z "$ac_tt"; then
31721 elif $ac_last_try; then
31722 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31724 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31728 # For the awk script, D is an array of macro values keyed by name,
31729 # likewise P contains macro parameters if any. Preserve backslash
31730 # newline sequences.
31732 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31734 s/.\{148\}/&'"$ac_delim"'/g
31737 s/^[ ]*#[ ]*define[ ][ ]*/ /
31744 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31746 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31751 D["\
1"]=" \
3\\\\\\n
"\\/p
31753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31758 s/.\{148\}/&'"$ac_delim"'/g
31763 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31766 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31768 ' <confdefs.h | sed '
31769 s/'"$ac_delim"'/"\\\
31770 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31773 for (key in D) D_is_set[key] = 1
31776 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31778 split(line, arg, " ")
31779 if (arg[1] == "#") {
31783 defundef
= substr
(arg
[1], 2)
31786 split(mac1
, mac2
, "(") #)
31788 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31789 if (D_is_set
[macro
]) {
31790 # Preserve the white space surrounding the "#".
31791 print prefix
"define", macro P
[macro
] D
[macro
]
31794 # Replace #undef with comments. This is necessary, for example,
31795 # in the case of _POSIX_SOURCE, which is predefined and required
31796 # on some systems where configure will not decide to define it.
31797 if (defundef
== "undef") {
31798 print
"/*", prefix defundef
, macro
, "*/"
31806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31807 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31808 fi # test -n "$CONFIG_HEADERS"
31811 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31816 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31818 case $ac_mode$ac_tag in
31820 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31821 :[FH
]-) ac_tag
=-:-;;
31822 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31839 -) ac_f
="$ac_tmp/stdin";;
31840 *) # Look for the file first in the build tree, then in the source tree
31841 # (if the path is not absolute). The absolute path cannot be DOS-style,
31842 # because $ac_f cannot contain `:'.
31846 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31848 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31850 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31851 as_fn_append ac_file_inputs
" '$ac_f'"
31854 # Let's still pretend it is `configure' which instantiates (i.e., don't
31855 # use $as_me), people would be surprised to read:
31856 # /* config.h. Generated by config.status. */
31857 configure_input
='Generated from '`
31858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31860 if test x
"$ac_file" != x-
; then
31861 configure_input
="$ac_file. $configure_input"
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31863 $as_echo "$as_me: creating $ac_file" >&6;}
31865 # Neutralize special characters interpreted by sed in replacement strings.
31866 case $configure_input in #(
31867 *\
&* |
*\|
* |
*\\* )
31868 ac_sed_conf_input
=`$as_echo "$configure_input" |
31869 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31870 *) ac_sed_conf_input
=$configure_input;;
31874 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31875 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31880 ac_dir
=`$as_dirname -- "$ac_file" ||
31881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31882 X"$ac_file" : 'X\(//\)[^/]' \| \
31883 X"$ac_file" : 'X\(//\)$' \| \
31884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31885 $as_echo X"$ac_file" |
31886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31890 /^X\(\/\/\)[^/].*/{
31903 as_dir
="$ac_dir"; as_fn_mkdir_p
31907 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31909 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31910 # A ".." for each directory in $ac_dir_suffix.
31911 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31912 case $ac_top_builddir_sub in
31913 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31914 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31917 ac_abs_top_builddir
=$ac_pwd
31918 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31919 # for backward compatibility:
31920 ac_top_builddir
=$ac_top_build_prefix
31923 .
) # We are building in place.
31925 ac_top_srcdir
=$ac_top_builddir_sub
31926 ac_abs_top_srcdir
=$ac_pwd ;;
31927 [\\/]* | ?
:[\\/]* ) # Absolute name.
31928 ac_srcdir
=$srcdir$ac_dir_suffix;
31929 ac_top_srcdir
=$srcdir
31930 ac_abs_top_srcdir
=$srcdir ;;
31931 *) # Relative name.
31932 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31933 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31934 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31936 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31948 # If the template does not know about datarootdir, expand it.
31949 # FIXME: This hack should be removed a few years after 2.60.
31950 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31961 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31962 *datarootdir
*) ac_datarootdir_seen
=yes;;
31963 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31965 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31968 ac_datarootdir_hack='
31969 s&@datadir@&$datadir&g
31970 s&@docdir@&$docdir&g
31971 s&@infodir@&$infodir&g
31972 s&@localedir@&$localedir&g
31973 s&@mandir@&$mandir&g
31974 s&\\\${datarootdir}&$datarootdir&g' ;;
31978 # Neutralize VPATH when `$srcdir' = `.'.
31979 # Shell code in configure.ac might set extrasub.
31980 # FIXME: do we really want to maintain this feature?
31981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31982 ac_sed_extra="$ac_vpsub
31985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31987 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31988 s|@configure_input@|
$ac_sed_conf_input|
;t t
31989 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31990 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31991 s
&@srcdir@
&$ac_srcdir&;t t
31992 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31993 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31994 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31995 s
&@builddir@
&$ac_builddir&;t t
31996 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31997 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31998 $ac_datarootdir_hack
32000 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32001 if $ac_cs_awk_getline; then
32002 $AWK -f "$ac_tmp/subs.
awk"
32004 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
32006 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32009 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32010 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32011 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32013 which seems to be undefined. Please make sure it is defined" >&5
32014 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32015 which seems to be undefined. Please make sure it is defined" >&2;}
32017 rm -f "$ac_tmp/stdin"
32019 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32020 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32028 if test x"$ac_file" != x-; then
32030 $as_echo "/* $configure_input */" \
32031 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32032 } >"$ac_tmp/config.h" \
32033 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32034 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32035 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32036 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32039 mv "$ac_tmp/config.h" "$ac_file" \
32040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32043 $as_echo "/* $configure_input */" \
32044 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32045 || as_fn_error $? "could not create -" "$LINENO" 5
32053 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
32056 # Prefer the file from the source tree if names are identical.
32057 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32058 ac_source=$srcdir/$ac_source
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32062 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32064 if test ! -r "$ac_source"; then
32065 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32069 # Try a relative symlink, then a hard link, then a copy.
32071 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32072 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32074 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32075 ln "$ac_source" "$ac_file" 2>/dev/null ||
32076 cp -p "$ac_source" "$ac_file" ||
32077 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32080 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32081 $as_echo "$as_me: executing $ac_file commands" >&6;}
32086 case $ac_file$ac_mode in
32087 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32089 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32090 for lang in $subdirs c-family common analyzer
32092 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32094 "as":F) chmod +x as ;;
32095 "collect-ld":F) chmod +x collect-ld ;;
32096 "nm":F) chmod +x nm ;;
32098 case ${CONFIG_HEADERS} in
32099 *auto-host.h:config.in*)
32102 # Make sure all the subdirs exist.
32103 for d in $subdirs doc build common c-family
32105 test -d $d || mkdir $d
32115 ac_clean_files=$ac_clean_files_save
32117 test $ac_write_fail = 0 ||
32118 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32121 # configure is writing to config.log, and then calls config.status.
32122 # config.status does its own redirection, appending to config.log.
32123 # Unfortunately, on DOS this fails, as config.log is still kept open
32124 # by configure, so config.status won't be able to
write to it
; its
32125 # output is simply discarded. So we exec the FD to /dev/null,
32126 # effectively closing config.log, so it can be properly (re)opened and
32127 # appended to by config.status. When coming back to configure, we
32128 # need to make the FD available again.
32129 if test "$no_create" != yes; then
32131 ac_config_status_args
=
32132 test "$silent" = yes &&
32133 ac_config_status_args
="$ac_config_status_args --quiet"
32135 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32137 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32138 # would make configure fail if this is the last instruction.
32139 $ac_cs_success || as_fn_exit
1
32141 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32143 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}