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/"
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
7923 *-intelmic-* |
*-intelmicemul-*)
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 as_fn_error $?
"unknown offload target specified" "$LINENO" 5
7939 omp_device_properties
="${omp_device_properties} ${tgt}=${omp_device_property}"
7940 omp_device_property_deps
="${omp_device_property_deps} ${omp_device_property}"
7943 if test x
"$offload_targets" = x
; then
7944 offload_targets
=$tgt
7946 offload_targets
="$offload_targets,$tgt"
7953 cat >>confdefs.h
<<_ACEOF
7954 #define OFFLOAD_TARGETS "$offload_targets"
7957 if test x
"$enable_offloading" != x
; then
7959 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7963 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7967 if test x
"$enable_hsa" = x1
; then
7969 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7974 # Check whether --with-multilib-list was given.
7975 if test "${with_multilib_list+set}" = set; then :
7976 withval
=$with_multilib_list; :
7978 with_multilib_list
=default
7982 # -------------------------
7983 # Checks for other programs
7984 # -------------------------
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7989 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7990 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
7991 $as_echo_n "(cached) " >&6
7993 cat >conftest.
make <<\_ACEOF
7996 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7998 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8001 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
8003 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
8007 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8009 $as_echo "yes" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8014 SET_MAKE
="MAKE=${MAKE-make}"
8018 # Find some useful tools
8019 for ac_prog
in gawk mawk nawk
awk
8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
8022 set dummy
$ac_prog; ac_word
=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if ${ac_cv_prog_AWK+:} false
; then :
8026 $as_echo_n "(cached) " >&6
8028 if test -n "$AWK"; then
8029 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
8031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir
=.
8036 for ac_exec_ext
in '' $ac_executable_extensions; do
8037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8038 ac_cv_prog_AWK
="$ac_prog"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 if test -n "$AWK"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8051 $as_echo "$AWK" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8058 test -n "$AWK" && break
8061 # We need awk to create options.c and options.h.
8062 # Bail out if it's missing.
8064 "") as_fn_error $?
"can't build without awk, bailing out" "$LINENO" 5 ;;
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8068 $as_echo_n "checking whether ln -s works... " >&6; }
8069 if ${gcc_cv_prog_LN_S+:} false
; then :
8070 $as_echo_n "(cached) " >&6
8072 rm -f conftestdata_t
8073 echo >conftestdata_f
8074 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
8076 gcc_cv_prog_LN_S
="ln -s"
8078 if ln conftestdata_f conftestdata_t
2>/dev
/null
8082 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
8084 gcc_cv_prog_LN_S
="cp -p"
8090 rm -f conftestdata_f conftestdata_t
8093 LN_S
="$gcc_cv_prog_LN_S"
8094 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8096 $as_echo "yes" >&6; }
8098 if test "$gcc_cv_prog_LN_S" = "ln"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
8100 $as_echo "no, using ln" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
8103 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
8108 $as_echo_n "checking whether ln works... " >&6; }
8109 if ${acx_cv_prog_LN+:} false
; then :
8110 $as_echo_n "(cached) " >&6
8112 rm -f conftestdata_t
8113 echo >conftestdata_f
8114 if ln conftestdata_f conftestdata_t
2>/dev
/null
8120 rm -f conftestdata_f conftestdata_t
8123 if test $acx_cv_prog_LN = no
; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
8126 $as_echo "no, using $LN" >&6; }
8128 LN
="$acx_cv_prog_LN"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8133 if test -n "$ac_tool_prefix"; then
8134 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8135 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if ${ac_cv_prog_RANLIB+:} false
; then :
8139 $as_echo_n "(cached) " >&6
8141 if test -n "$RANLIB"; then
8142 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
8144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8148 test -z "$as_dir" && as_dir
=.
8149 for ac_exec_ext
in '' $ac_executable_extensions; do
8150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8151 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 RANLIB
=$ac_cv_prog_RANLIB
8162 if test -n "$RANLIB"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8164 $as_echo "$RANLIB" >&6; }
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8172 if test -z "$ac_cv_prog_RANLIB"; then
8173 ac_ct_RANLIB
=$RANLIB
8174 # Extract the first word of "ranlib", so it can be a program name with args.
8175 set dummy ranlib
; ac_word
=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
8179 $as_echo_n "(cached) " >&6
8181 if test -n "$ac_ct_RANLIB"; then
8182 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir
=.
8189 for ac_exec_ext
in '' $ac_executable_extensions; do
8190 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8191 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8202 if test -n "$ac_ct_RANLIB"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8204 $as_echo "$ac_ct_RANLIB" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8210 if test "x$ac_ct_RANLIB" = x
; then
8213 case $cross_compiling:$ac_tool_warned in
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8217 ac_tool_warned
=yes ;;
8219 RANLIB
=$ac_ct_RANLIB
8222 RANLIB
="$ac_cv_prog_RANLIB"
8228 # Find a good install program. We prefer a C program (faster),
8229 # so one script is as good as another. But avoid the broken or
8230 # incompatible versions:
8231 # SysV /etc/install, /usr/sbin/install
8232 # SunOS /usr/etc/install
8233 # IRIX /sbin/install
8235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8237 # ./install, which can be erroneously created by make from ./install.sh.
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8239 $as_echo_n "checking for a BSD compatible install... " >&6; }
8240 if test -z "$INSTALL"; then
8241 if ${ac_cv_path_install+:} false
; then :
8242 $as_echo_n "(cached) " >&6
8244 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8245 for ac_dir
in $PATH; do
8246 # Account for people who put trailing slashes in PATH elements.
8248 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8250 # OSF1 and SCO ODT 3.0 have their own names for install.
8251 for ac_prog
in ginstall scoinst
install; do
8252 if test -f $ac_dir/$ac_prog; then
8253 if test $ac_prog = install &&
8254 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8255 # AIX install. It has an incompatible calling convention.
8256 # OSF/1 installbsd also uses dspmsg, but is usable.
8259 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8270 if test "${ac_cv_path_install+set}" = set; then
8271 INSTALL
="$ac_cv_path_install"
8273 # As a last resort, use the slow shell script. We don't cache a
8274 # path for INSTALL within a source directory, because that will
8275 # break other packages using the cache if that directory is
8276 # removed, or if the path is relative.
8277 INSTALL
="$ac_install_sh"
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8281 $as_echo "$INSTALL" >&6; }
8283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8284 # It thinks the first close brace ends the variable substitution.
8285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8287 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8290 # See if cmp has --ignore-initial.
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8292 $as_echo_n "checking for cmp's capabilities... " >&6; }
8293 if ${gcc_cv_prog_cmp_skip+:} false
; then :
8294 $as_echo_n "(cached) " >&6
8298 gcc_cv_prog_cmp_skip
=slowcompare
8299 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8300 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8303 gcc_cv_prog_cmp_skip
=gnucompare
8306 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8307 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8308 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8311 gcc_cv_prog_cmp_skip
=fastcompare
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8319 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8320 make_compare_target
=$gcc_cv_prog_cmp_skip
8324 # See if we have the mktemp command.
8325 # Extract the first word of "mktemp", so it can be a program name with args.
8326 set dummy mktemp
; ac_word
=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_have_mktemp_command+:} false
; then :
8330 $as_echo_n "(cached) " >&6
8332 if test -n "$have_mktemp_command"; then
8333 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8339 test -z "$as_dir" && as_dir
=.
8340 for ac_exec_ext
in '' $ac_executable_extensions; do
8341 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8342 ac_cv_prog_have_mktemp_command
="yes"
8343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8353 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8354 if test -n "$have_mktemp_command"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8356 $as_echo "$have_mktemp_command" >&6; }
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8364 # See if makeinfo has been installed and is modern enough
8365 # that we can use it.
8367 # Extract the first word of "makeinfo", so it can be a program name with args.
8368 set dummy makeinfo
; ac_word
=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_prog_MAKEINFO+:} false
; then :
8372 $as_echo_n "(cached) " >&6
8374 if test -n "$MAKEINFO"; then
8375 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8381 test -z "$as_dir" && as_dir
=.
8382 for ac_exec_ext
in '' $ac_executable_extensions; do
8383 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8384 ac_cv_prog_MAKEINFO
="makeinfo"
8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 MAKEINFO
=$ac_cv_prog_MAKEINFO
8395 if test -n "$MAKEINFO"; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8397 $as_echo "$MAKEINFO" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400 $as_echo "no" >&6; }
8404 if test -n "$MAKEINFO"; then
8405 # Found it, now check the version.
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8407 $as_echo_n "checking for modern makeinfo... " >&6; }
8408 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
8409 $as_echo_n "(cached) " >&6
8411 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8412 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8414 case $ac_prog_version in
8415 '') gcc_cv_prog_makeinfo_modern
=no
;;
8416 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8417 *) gcc_cv_prog_makeinfo_modern
=no
;;
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8422 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8424 gcc_cv_prog_makeinfo_modern
=no
8426 if test $gcc_cv_prog_makeinfo_modern = no
; then
8427 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8430 if test $gcc_cv_prog_makeinfo_modern = no
; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8432 *** Makeinfo is missing or too old.
8433 *** Info documentation will not be built." >&5
8434 $as_echo "$as_me: WARNING:
8435 *** Makeinfo is missing or too old.
8436 *** Info documentation will not be built." >&2;}
8443 # Is pod2man recent enough to regenerate manpages?
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8445 $as_echo_n "checking for recent Pod::Man... " >&6; }
8446 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8448 $as_echo "yes" >&6; }
8449 GENERATED_MANPAGES
=generated-manpages
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8457 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8462 # Extract the first word of "$ac_prog", so it can be a program name with args.
8463 set dummy
$ac_prog; ac_word
=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_prog_FLEX+:} false
; then :
8467 $as_echo_n "(cached) " >&6
8469 if test -n "$FLEX"; then
8470 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8476 test -z "$as_dir" && as_dir
=.
8477 for ac_exec_ext
in '' $ac_executable_extensions; do
8478 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8479 ac_cv_prog_FLEX
="$ac_prog"
8480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 FLEX
=$ac_cv_prog_FLEX
8490 if test -n "$FLEX"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8492 $as_echo "$FLEX" >&6; }
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8499 test -n "$FLEX" && break
8501 test -n "$FLEX" || FLEX
="$MISSING flex"
8505 for ac_prog
in bison
8507 # Extract the first word of "$ac_prog", so it can be a program name with args.
8508 set dummy
$ac_prog; ac_word
=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if ${ac_cv_prog_BISON+:} false
; then :
8512 $as_echo_n "(cached) " >&6
8514 if test -n "$BISON"; then
8515 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir
=.
8522 for ac_exec_ext
in '' $ac_executable_extensions; do
8523 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_prog_BISON
="$ac_prog"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 BISON
=$ac_cv_prog_BISON
8535 if test -n "$BISON"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8537 $as_echo "$BISON" >&6; }
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540 $as_echo "no" >&6; }
8544 test -n "$BISON" && break
8546 test -n "$BISON" || BISON
="$MISSING bison"
8549 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8550 # check for build == host before using them.
8553 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8554 && test -d ..
/binutils
; then
8555 NM
='${objdir}/../binutils/nm-new'
8557 # Extract the first word of "nm", so it can be a program name with args.
8558 set dummy nm
; ac_word
=$2
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560 $as_echo_n "checking for $ac_word... " >&6; }
8561 if ${ac_cv_prog_NM+:} false
; then :
8562 $as_echo_n "(cached) " >&6
8564 if test -n "$NM"; then
8565 ac_cv_prog_NM
="$NM" # Let the user override the test.
8567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir
=.
8572 for ac_exec_ext
in '' $ac_executable_extensions; do
8573 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8586 if test -n "$NM"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8588 $as_echo "$NM" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8598 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8599 && test -d ..
/binutils
; then
8600 AR
='${objdir}/../binutils/ar'
8602 # Extract the first word of "ar", so it can be a program name with args.
8603 set dummy
ar; ac_word
=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_AR+:} false
; then :
8607 $as_echo_n "(cached) " >&6
8609 if test -n "$AR"; then
8610 ac_cv_prog_AR
="$AR" # Let the user override the test.
8612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8616 test -z "$as_dir" && as_dir
=.
8617 for ac_exec_ext
in '' $ac_executable_extensions; do
8618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8631 if test -n "$AR"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8633 $as_echo "$AR" >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8642 # The jit documentation looks better if built with sphinx, but can be
8643 # built with texinfo if sphinx is not available.
8644 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8645 # Extract the first word of "sphinx-build", so it can be a program name with args.
8646 set dummy sphinx-build
; ac_word
=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_doc_build_sys+:} false
; then :
8650 $as_echo_n "(cached) " >&6
8652 if test -n "$doc_build_sys"; then
8653 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8659 test -z "$as_dir" && as_dir
=.
8660 for ac_exec_ext
in '' $ac_executable_extensions; do
8661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8662 ac_cv_prog_doc_build_sys
="sphinx"
8663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8673 doc_build_sys
=$ac_cv_prog_doc_build_sys
8674 if test -n "$doc_build_sys"; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8676 $as_echo "$doc_build_sys" >&6; }
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8684 # --------------------
8685 # Checks for C headers
8686 # --------------------
8688 # Need to reject headers which give warnings, so that the -Werror bootstrap
8689 # works later. *sigh* This needs to come before all header checks.
8691 ac_c_preproc_warn_flag
=yes
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8694 $as_echo_n "checking for ANSI C header files... " >&6; }
8695 if ${ac_cv_header_stdc+:} false
; then :
8696 $as_echo_n "(cached) " >&6
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8713 if ac_fn_cxx_try_compile
"$LINENO"; then :
8714 ac_cv_header_stdc
=yes
8716 ac_cv_header_stdc
=no
8718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8720 if test $ac_cv_header_stdc = yes; then
8721 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8728 $EGREP "memchr" >/dev
/null
2>&1; then :
8731 ac_cv_header_stdc
=no
8737 if test $ac_cv_header_stdc = yes; then
8738 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8745 $EGREP "free" >/dev
/null
2>&1; then :
8748 ac_cv_header_stdc
=no
8754 if test $ac_cv_header_stdc = yes; then
8755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8756 if test "$cross_compiling" = yes; then :
8759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8763 #if ((' ' & 0x0FF) == 0x020)
8764 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8765 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8767 # define ISLOWER(c) \
8768 (('a' <= (c) && (c) <= 'i') \
8769 || ('j' <= (c) && (c) <= 'r') \
8770 || ('s' <= (c) && (c) <= 'z'))
8771 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8774 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8779 for (i = 0; i < 256; i++)
8780 if (XOR (islower (i), ISLOWER (i))
8781 || toupper (i) != TOUPPER (i))
8786 if ac_fn_cxx_try_run
"$LINENO"; then :
8789 ac_cv_header_stdc
=no
8791 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8792 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8798 $as_echo "$ac_cv_header_stdc" >&6; }
8799 if test $ac_cv_header_stdc = yes; then
8801 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8806 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8807 if ${ac_cv_header_time+:} false
; then :
8808 $as_echo_n "(cached) " >&6
8810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 #include <sys/types.h>
8813 #include <sys/time.h>
8819 if ((struct tm *) 0)
8825 if ac_fn_cxx_try_compile
"$LINENO"; then :
8826 ac_cv_header_time
=yes
8828 ac_cv_header_time
=no
8830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8833 $as_echo "$ac_cv_header_time" >&6; }
8834 if test $ac_cv_header_time = yes; then
8836 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8841 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8842 if ${gcc_cv_header_string+:} false
; then :
8843 $as_echo_n "(cached) " >&6
8845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8848 #include <strings.h>
8857 if ac_fn_cxx_try_compile
"$LINENO"; then :
8858 gcc_cv_header_string
=yes
8860 gcc_cv_header_string
=no
8862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8865 $as_echo "$gcc_cv_header_string" >&6; }
8866 if test $gcc_cv_header_string = yes; then
8868 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8873 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8874 if ${ac_cv_header_sys_wait_h+:} false
; then :
8875 $as_echo_n "(cached) " >&6
8877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879 #include <sys/types.h>
8880 #include <sys/wait.h>
8882 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8885 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8893 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8898 if ac_fn_cxx_try_compile
"$LINENO"; then :
8899 ac_cv_header_sys_wait_h
=yes
8901 ac_cv_header_sys_wait_h
=no
8903 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8906 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8907 if test $ac_cv_header_sys_wait_h = yes; then
8909 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8914 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8915 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
8916 $as_echo_n "(cached) " >&6
8918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8919 /* end confdefs.h. */
8920 #include <sys/types.h>
8921 #include <termios.h>
8927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8928 $EGREP "yes" >/dev
/null
2>&1; then :
8929 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8931 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8937 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8939 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8941 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8942 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
8943 $as_echo_n "(cached) " >&6
8945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947 #include <sys/types.h>
8948 #include <sys/ioctl.h>
8954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8955 $EGREP "yes" >/dev
/null
2>&1; then :
8956 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8958 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8964 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8966 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8968 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8973 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8974 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8975 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8976 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8978 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8979 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8980 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8981 cat >>confdefs.h
<<_ACEOF
8982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8989 # Check for thread headers.
8990 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8991 if test "x$ac_cv_header_thread_h" = xyes
; then :
8997 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8998 if test "x$ac_cv_header_pthread_h" = xyes
; then :
9005 # These tests can't be done till we know if we have limits.h.
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
9007 $as_echo_n "checking for CHAR_BIT... " >&6; }
9008 if ${gcc_cv_decl_char_bit+:} false
; then :
9009 $as_echo_n "(cached) " >&6
9011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9013 #ifdef HAVE_LIMITS_H
9020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9021 $EGREP "found" >/dev
/null
2>&1; then :
9022 gcc_cv_decl_char_bit
=yes
9024 gcc_cv_decl_char_bit
=no
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
9031 $as_echo "$gcc_cv_decl_char_bit" >&6; }
9032 if test $gcc_cv_decl_char_bit = no
; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
9034 $as_echo_n "checking number of bits in a byte... " >&6; }
9035 if ${gcc_cv_c_nbby+:} false
; then :
9036 $as_echo_n "(cached) " >&6
9040 while test $i -lt 65; do
9041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9048 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
9049 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
9055 if ac_fn_cxx_try_compile
"$LINENO"; then :
9056 gcc_cv_c_nbby
=$i; break
9058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9061 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
9065 $as_echo "$gcc_cv_c_nbby" >&6; }
9066 if test $gcc_cv_c_nbby = failed
; then
9067 as_fn_error $?
"cannot determine number of bits in a byte" "$LINENO" 5
9070 cat >>confdefs.h
<<_ACEOF
9071 #define CHAR_BIT $gcc_cv_c_nbby
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9077 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9078 if ${ac_cv_c_bigendian+:} false
; then :
9079 $as_echo_n "(cached) " >&6
9081 ac_cv_c_bigendian
=unknown
9082 # See if we're dealing with a universal compiler.
9083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 #ifndef __APPLE_CC__
9086 not a universal capable compiler
9091 if ac_fn_cxx_try_compile
"$LINENO"; then :
9093 # Check for potential -arch flags. It is not universal unless
9094 # there are at least two -arch flags with different values.
9097 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9098 if test -n "$ac_prev"; then
9100 i?
86 | x86_64 | ppc | ppc64
)
9101 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9104 ac_cv_c_bigendian
=universal
9110 elif test "x$ac_word" = "x-arch"; then
9115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9116 if test $ac_cv_c_bigendian = unknown
; then
9117 # See if sys/param.h defines the BYTE_ORDER macro.
9118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 #include <sys/types.h>
9121 #include <sys/param.h>
9126 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9127 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9136 if ac_fn_cxx_try_compile
"$LINENO"; then :
9137 # It does; now see whether it defined to BIG_ENDIAN or not.
9138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h. */
9140 #include <sys/types.h>
9141 #include <sys/param.h>
9146 #if BYTE_ORDER != BIG_ENDIAN
9154 if ac_fn_cxx_try_compile
"$LINENO"; then :
9155 ac_cv_c_bigendian
=yes
9157 ac_cv_c_bigendian
=no
9159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9163 if test $ac_cv_c_bigendian = unknown
; then
9164 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9172 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9180 if ac_fn_cxx_try_compile
"$LINENO"; then :
9181 # It does; now see whether it defined to _BIG_ENDIAN or not.
9182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9197 if ac_fn_cxx_try_compile
"$LINENO"; then :
9198 ac_cv_c_bigendian
=yes
9200 ac_cv_c_bigendian
=no
9202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9206 if test $ac_cv_c_bigendian = unknown
; then
9207 # Compile a test program.
9208 if test "$cross_compiling" = yes; then :
9209 # Try to guess by grepping values from an object file.
9210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9211 /* end confdefs.h. */
9212 short int ascii_mm[] =
9213 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9214 short int ascii_ii[] =
9215 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9216 int use_ascii (int i) {
9217 return ascii_mm[i] + ascii_ii[i];
9219 short int ebcdic_ii[] =
9220 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9221 short int ebcdic_mm[] =
9222 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9223 int use_ebcdic (int i) {
9224 return ebcdic_mm[i] + ebcdic_ii[i];
9231 return use_ascii (foo) == use_ebcdic (foo);
9236 if ac_fn_cxx_try_compile
"$LINENO"; then :
9237 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9238 ac_cv_c_bigendian
=yes
9240 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9241 if test "$ac_cv_c_bigendian" = unknown
; then
9242 ac_cv_c_bigendian
=no
9244 # finding both strings is unlikely to happen, but who knows?
9245 ac_cv_c_bigendian
=unknown
9249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 $ac_includes_default
9258 /* Are we little or big endian? From Harbison&Steele. */
9262 char c[sizeof (long int)];
9265 return u.c[sizeof (long int) - 1] == 1;
9271 if ac_fn_cxx_try_run
"$LINENO"; then :
9272 ac_cv_c_bigendian
=no
9274 ac_cv_c_bigendian
=yes
9276 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9277 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9283 $as_echo "$ac_cv_c_bigendian" >&6; }
9284 case $ac_cv_c_bigendian in #(
9286 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9292 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9296 as_fn_error $?
"unknown endianness
9297 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9301 # ----------------------
9302 # Checks for C++ headers
9303 # ----------------------
9306 ac_cpp
='$CXXCPP $CPPFLAGS'
9307 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9308 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9309 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9311 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9312 if test -z "$CXXCPP"; then
9313 if ${ac_cv_prog_CXXCPP+:} false
; then :
9314 $as_echo_n "(cached) " >&6
9316 # Double quotes because CXXCPP needs to be expanded
9317 for CXXCPP
in "$CXX -E" "/lib/cpp"
9320 for ac_cxx_preproc_warn_flag
in '' yes
9322 # Use a header file that comes with gcc, so configuring glibc
9323 # with a fresh cross-compiler works.
9324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9325 # <limits.h> exists even on freestanding compilers.
9326 # On the NeXT, cc -E runs the code through the compiler's parser,
9327 # not just through cpp. "Syntax error" is here to catch this case.
9328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9331 # include <limits.h>
9333 # include <assert.h>
9337 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9340 # Broken: fails on valid input.
9343 rm -f conftest.err conftest.i conftest.
$ac_ext
9345 # OK, works on sane cases. Now check whether nonexistent headers
9346 # can be detected and how.
9347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 #include <ac_nonexistent.h>
9351 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9352 # Broken: success on invalid input.
9355 # Passes both tests.
9359 rm -f conftest.err conftest.i conftest.
$ac_ext
9362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9363 rm -f conftest.i conftest.err conftest.
$ac_ext
9364 if $ac_preproc_ok; then :
9369 ac_cv_prog_CXXCPP
=$CXXCPP
9372 CXXCPP
=$ac_cv_prog_CXXCPP
9374 ac_cv_prog_CXXCPP
=$CXXCPP
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9377 $as_echo "$CXXCPP" >&6; }
9379 for ac_cxx_preproc_warn_flag
in '' yes
9381 # Use a header file that comes with gcc, so configuring glibc
9382 # with a fresh cross-compiler works.
9383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9384 # <limits.h> exists even on freestanding compilers.
9385 # On the NeXT, cc -E runs the code through the compiler's parser,
9386 # not just through cpp. "Syntax error" is here to catch this case.
9387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9390 # include <limits.h>
9392 # include <assert.h>
9396 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9399 # Broken: fails on valid input.
9402 rm -f conftest.err conftest.i conftest.
$ac_ext
9404 # OK, works on sane cases. Now check whether nonexistent headers
9405 # can be detected and how.
9406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 #include <ac_nonexistent.h>
9410 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9411 # Broken: success on invalid input.
9414 # Passes both tests.
9418 rm -f conftest.err conftest.i conftest.
$ac_ext
9421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9422 rm -f conftest.i conftest.err conftest.
$ac_ext
9423 if $ac_preproc_ok; then :
9426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9429 See \`config.log' for more details" >&5
9430 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9431 See \`config.log' for more details" >&2;}; }
9435 ac_cpp
='$CXXCPP $CPPFLAGS'
9436 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9437 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9438 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9441 for ac_header
in unordered_map
9443 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9444 if test "x$ac_cv_header_unordered_map" = xyes
; then :
9445 cat >>confdefs.h
<<_ACEOF
9446 #define HAVE_UNORDERED_MAP 1
9452 for ac_header
in tr1/unordered_map
9454 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9455 if test "x$ac_cv_header_tr1_unordered_map" = xyes
; then :
9456 cat >>confdefs.h
<<_ACEOF
9457 #define HAVE_TR1_UNORDERED_MAP 1
9463 for ac_header
in ext
/hash_map
9465 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9466 if test "x$ac_cv_header_ext_hash_map" = xyes
; then :
9467 cat >>confdefs.h
<<_ACEOF
9468 #define HAVE_EXT_HASH_MAP 1
9476 # Dependency checking.
9479 rm -rf .tst
2>/dev
/null
9480 mkdir .tst
2>/dev
/null
9481 if test -d .tst
; then
9486 rmdir .tst
2>/dev
/null
9488 DEPDIR
="${am__leading_dot}deps"
9490 ac_config_commands
="$ac_config_commands depdir"
9493 ac_config_commands
="$ac_config_commands gccdepdir"
9496 depcc
="$CXX" am_compiler_list
=
9498 am_depcomp
=$ac_aux_dir/depcomp
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9500 $as_echo_n "checking dependency style of $depcc... " >&6; }
9501 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
9502 $as_echo_n "(cached) " >&6
9504 if test -f "$am_depcomp"; then
9505 # We make a subdir and do the tests there. Otherwise we can end up
9506 # making bogus files that we don't know about and never remove. For
9507 # instance it was reported that on HP-UX the gcc test will end up
9508 # making a dummy file named `D' -- because `-MD' means `put the output
9511 # Copy depcomp to subdir because otherwise we won't find it if we're
9512 # using a relative directory.
9513 cp "$am_depcomp" conftest.dir
9515 # We will build objects and dependencies in a subdirectory because
9516 # it helps to detect inapplicable dependency modes. For instance
9517 # both Tru64's cc and ICC support -MD to output dependencies as a
9518 # side effect of compilation, but ICC will put the dependencies in
9519 # the current directory while Tru64 will put them in the object
9523 am_cv_CXX_dependencies_compiler_type
=none
9524 if test "$am_compiler_list" = ""; then
9525 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9527 for depmode
in $am_compiler_list; do
9528 if test $depmode = none
; then break; fi
9530 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9531 # Setup a source with many dependencies, because some compilers
9532 # like to wrap large dependency lists on column 80 (with \), and
9533 # we should not choose a depcomp mode which is confused by this.
9535 # We need to recreate these files for each test, as the compiler may
9536 # overwrite some of them when testing with obscure command lines.
9537 # This happens at least with the AIX C compiler.
9539 for i
in 1 2 3 4 5 6; do
9540 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9541 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9542 # Solaris 8's {/usr,}/bin/sh.
9543 touch sub
/conftst
$i.h
9545 echo "include sub/conftest.Po" > confmf
9547 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9548 # mode. It turns out that the SunPro C++ compiler does not properly
9549 # handle `-M -o', and we need to detect this.
9550 depcmd
="depmode=$depmode \
9551 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9553 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9554 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9555 if env
$depcmd > conftest.err
2>&1 &&
9556 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9557 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9558 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9559 # icc doesn't choke on unknown options, it will just issue warnings
9560 # or remarks (even with -Werror). So we grep stderr for any message
9561 # that says an option was ignored or not supported.
9562 # When given -MP, icc 7.0 and 7.1 complain thusly:
9563 # icc: Command line warning: ignoring option '-M'; no argument required
9564 # The diagnosis changed in icc 8.0:
9565 # icc: Command line remark: option '-MP' not supported
9566 if (grep 'ignoring option' conftest.err ||
9567 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9568 am_cv_CXX_dependencies_compiler_type
=$depmode
9569 $as_echo "$as_me:$LINENO: success" >&5
9573 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9574 sed -e 's/^/| /' < conftest.err
>&5
9580 am_cv_CXX_dependencies_compiler_type
=none
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9585 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9586 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9587 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
9588 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9598 # These libraries may be used by collect2.
9599 # We may need a special search path to get them linked.
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9601 $as_echo_n "checking for collect2 libraries... " >&6; }
9602 if ${gcc_cv_collect2_libs+:} false
; then :
9603 $as_echo_n "(cached) " >&6
9606 for libs
in '' -lld -lmld \
9607 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9608 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9614 /* Override any GCC internal prototype to avoid an error.
9615 Use char because int might match the return type of a GCC
9616 builtin and then its argument prototype would still apply. */
9629 if ac_fn_cxx_try_link
"$LINENO"; then :
9630 gcc_cv_collect2_libs
="$libs"; break
9632 rm -f core conftest.err conftest.
$ac_objext \
9633 conftest
$ac_exeext conftest.
$ac_ext
9636 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9639 $as_echo "$gcc_cv_collect2_libs" >&6; }
9640 case $gcc_cv_collect2_libs in
9642 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9646 # When building Ada code on Alpha, we need exc_resume which is usually in
9647 # -lexc. So test for it.
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9651 $as_echo_n "checking for library containing exc_resume... " >&6; }
9652 if ${ac_cv_search_exc_resume+:} false
; then :
9653 $as_echo_n "(cached) " >&6
9655 ac_func_search_save_LIBS
=$LIBS
9656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9669 return exc_resume ();
9674 for ac_lib
in '' exc
; do
9675 if test -z "$ac_lib"; then
9676 ac_res
="none required"
9679 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9681 if ac_fn_cxx_try_link
"$LINENO"; then :
9682 ac_cv_search_exc_resume
=$ac_res
9684 rm -f core conftest.err conftest.
$ac_objext \
9686 if ${ac_cv_search_exc_resume+:} false
; then :
9690 if ${ac_cv_search_exc_resume+:} false
; then :
9693 ac_cv_search_exc_resume
=no
9696 LIBS
=$ac_func_search_save_LIBS
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9699 $as_echo "$ac_cv_search_exc_resume" >&6; }
9700 ac_res
=$ac_cv_search_exc_resume
9701 if test "$ac_res" != no
; then :
9702 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9710 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9714 $as_echo_n "checking for library containing kstat_open... " >&6; }
9715 if ${ac_cv_search_kstat_open+:} false
; then :
9716 $as_echo_n "(cached) " >&6
9718 ac_func_search_save_LIBS
=$LIBS
9719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9722 /* Override any GCC internal prototype to avoid an error.
9723 Use char because int might match the return type of a GCC
9724 builtin and then its argument prototype would still apply. */
9732 return kstat_open ();
9737 for ac_lib
in '' kstat
; do
9738 if test -z "$ac_lib"; then
9739 ac_res
="none required"
9742 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9744 if ac_fn_cxx_try_link
"$LINENO"; then :
9745 ac_cv_search_kstat_open
=$ac_res
9747 rm -f core conftest.err conftest.
$ac_objext \
9749 if ${ac_cv_search_kstat_open+:} false
; then :
9753 if ${ac_cv_search_kstat_open+:} false
; then :
9756 ac_cv_search_kstat_open
=no
9759 LIBS
=$ac_func_search_save_LIBS
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9762 $as_echo "$ac_cv_search_kstat_open" >&6; }
9763 ac_res
=$ac_cv_search_kstat_open
9764 if test "$ac_res" != no
; then :
9765 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9769 EXTRA_GCC_LIBS
="$LIBS"
9773 # Some systems put ldexp and frexp in libm instead of libc; assume
9774 # they're both in the same place. jcf-dump needs them.
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9778 $as_echo_n "checking for library containing ldexp... " >&6; }
9779 if ${ac_cv_search_ldexp+:} false
; then :
9780 $as_echo_n "(cached) " >&6
9782 ac_func_search_save_LIBS
=$LIBS
9783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9786 /* Override any GCC internal prototype to avoid an error.
9787 Use char because int might match the return type of a GCC
9788 builtin and then its argument prototype would still apply. */
9801 for ac_lib
in '' m
; do
9802 if test -z "$ac_lib"; then
9803 ac_res
="none required"
9806 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9808 if ac_fn_cxx_try_link
"$LINENO"; then :
9809 ac_cv_search_ldexp
=$ac_res
9811 rm -f core conftest.err conftest.
$ac_objext \
9813 if ${ac_cv_search_ldexp+:} false
; then :
9817 if ${ac_cv_search_ldexp+:} false
; then :
9820 ac_cv_search_ldexp
=no
9823 LIBS
=$ac_func_search_save_LIBS
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9826 $as_echo "$ac_cv_search_ldexp" >&6; }
9827 ac_res
=$ac_cv_search_ldexp
9828 if test "$ac_res" != no
; then :
9829 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9837 # Some systems need dlopen
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9841 $as_echo_n "checking for library containing dlopen... " >&6; }
9842 if ${ac_cv_search_dlopen+:} false
; then :
9843 $as_echo_n "(cached) " >&6
9845 ac_func_search_save_LIBS
=$LIBS
9846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9849 /* Override any GCC internal prototype to avoid an error.
9850 Use char because int might match the return type of a GCC
9851 builtin and then its argument prototype would still apply. */
9864 for ac_lib
in '' dl
; do
9865 if test -z "$ac_lib"; then
9866 ac_res
="none required"
9869 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9871 if ac_fn_cxx_try_link
"$LINENO"; then :
9872 ac_cv_search_dlopen
=$ac_res
9874 rm -f core conftest.err conftest.
$ac_objext \
9876 if ${ac_cv_search_dlopen+:} false
; then :
9880 if ${ac_cv_search_dlopen+:} false
; then :
9883 ac_cv_search_dlopen
=no
9886 LIBS
=$ac_func_search_save_LIBS
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9889 $as_echo "$ac_cv_search_dlopen" >&6; }
9890 ac_res
=$ac_cv_search_dlopen
9891 if test "$ac_res" != no
; then :
9892 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9900 # Use <inttypes.h> only if it exists,
9901 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9904 $as_echo_n "checking for inttypes.h... " >&6; }
9905 if ${gcc_cv_header_inttypes_h+:} false
; then :
9906 $as_echo_n "(cached) " >&6
9908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 #define __STDC_FORMAT_MACROS
9911 #include <sys/types.h>
9912 #include <inttypes.h>
9924 if ac_fn_cxx_try_compile
"$LINENO"; then :
9925 gcc_cv_header_inttypes_h
=yes
9927 gcc_cv_header_inttypes_h
=no
9929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9933 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9934 if test $gcc_cv_header_inttypes_h = yes; then
9936 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9940 # Look for the ZSTD package.
9948 # Check whether --with-zstd was given.
9949 if test "${with_zstd+set}" = set; then :
9954 # Check whether --with-zstd-include was given.
9955 if test "${with_zstd_include+set}" = set; then :
9956 withval
=$with_zstd_include;
9960 # Check whether --with-zstd-lib was given.
9961 if test "${with_zstd_lib+set}" = set; then :
9962 withval
=$with_zstd_lib;
9965 case "x$with_zstd" in
9971 *) ZSTD_INCLUDE
=$with_zstd/include
9972 ZSTD_LIB
=$with_zstd/lib
9976 if test "x$with_zstd" != xno
; then
9977 if test "x$with_zstd_include" != x
; then
9978 ZSTD_INCLUDE
=$with_zstd_include
9980 if test "x$with_zstd_lib" != x
; then
9981 ZSTD_LIB
=$with_zstd_lib
9983 if test "x$ZSTD_INCLUDE" != x \
9984 && test "x$ZSTD_INCLUDE" != xno
; then
9985 ZSTD_CPPFLAGS
=-I$ZSTD_INCLUDE
9987 if test "x$ZSTD_LIB" != x \
9988 && test "x$ZSTD_LIB" != xno
; then
9989 ZSTD_LDFLAGS
=-L$ZSTD_LIB
9992 CXXFLAGS
="$CXXFLAGS $ZSTD_CPPFLAGS"
9993 LDFLAGS
="$LDFLAGS $ZSTD_LDFLAGS"
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zstd.h" >&5
9996 $as_echo_n "checking for zstd.h... " >&6; }
9997 if ${gcc_cv_header_zstd_h+:} false
; then :
9998 $as_echo_n "(cached) " >&6
10000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10001 /* end confdefs.h. */
10011 if ac_fn_cxx_try_compile
"$LINENO"; then :
10012 gcc_cv_header_zstd_h
=yes
10014 gcc_cv_header_zstd_h
=no
10016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_zstd_h" >&5
10020 $as_echo "$gcc_cv_header_zstd_h" >&6; }
10021 if test $gcc_cv_header_zstd_h = yes; then
10023 $as_echo "#define HAVE_ZSTD_H 1" >>confdefs.h
10025 elif test "x$with_zstd" != x
; then
10026 as_fn_error $?
"Unable to find zstd.h. See config.log for details." "$LINENO" 5
10029 # LTO can use zstd compression algorithm
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ZSTD_compress" >&5
10033 $as_echo_n "checking for library containing ZSTD_compress... " >&6; }
10034 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10035 $as_echo_n "(cached) " >&6
10037 ac_func_search_save_LIBS
=$LIBS
10038 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10047 char ZSTD_compress ();
10051 return ZSTD_compress ();
10056 for ac_lib
in '' zstd
; do
10057 if test -z "$ac_lib"; then
10058 ac_res
="none required"
10061 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10063 if ac_fn_cxx_try_link
"$LINENO"; then :
10064 ac_cv_search_ZSTD_compress
=$ac_res
10066 rm -f core conftest.err conftest.
$ac_objext \
10068 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10072 if ${ac_cv_search_ZSTD_compress+:} false
; then :
10075 ac_cv_search_ZSTD_compress
=no
10077 rm conftest.
$ac_ext
10078 LIBS
=$ac_func_search_save_LIBS
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ZSTD_compress" >&5
10081 $as_echo "$ac_cv_search_ZSTD_compress" >&6; }
10082 ac_res
=$ac_cv_search_ZSTD_compress
10083 if test "$ac_res" != no
; then :
10084 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10095 for ac_func
in times clock kill getrlimit setrlimit atoq \
10096 popen sysconf strsignal getrusage nl_langinfo \
10097 gettimeofday mbstowcs wcswidth mmap setlocale \
10098 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
10100 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10101 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10102 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10103 cat >>confdefs.h
<<_ACEOF
10104 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10111 if test x
$ac_cv_func_mbstowcs = xyes
; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
10113 $as_echo_n "checking whether mbstowcs works... " >&6; }
10114 if ${gcc_cv_func_mbstowcs_works+:} false
; then :
10115 $as_echo_n "(cached) " >&6
10117 if test "$cross_compiling" = yes; then :
10118 gcc_cv_func_mbstowcs_works
=yes
10120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 #include <stdlib.h>
10125 mbstowcs(0, "", 0);
10129 if ac_fn_cxx_try_run
"$LINENO"; then :
10130 gcc_cv_func_mbstowcs_works
=yes
10132 gcc_cv_func_mbstowcs_works
=no
10134 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10135 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
10140 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
10141 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
10143 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
10148 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10149 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10153 cat >>confdefs.h
<<_ACEOF
10154 #define ssize_t int
10159 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
10160 if test "x$ac_cv_type_caddr_t" = xyes
; then :
10164 cat >>confdefs.h
<<_ACEOF
10165 #define caddr_t char *
10172 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
10173 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10174 gcc_header_sys_mman_h
=yes
10176 gcc_header_sys_mman_h
=no
10179 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
10180 if test "x$ac_cv_func_mmap" = xyes
; then :
10186 if test "$gcc_header_sys_mman_h" != yes \
10187 ||
test "$gcc_func_mmap" != yes; then
10188 gcc_cv_func_mmap_file
=no
10189 gcc_cv_func_mmap_dev_zero
=no
10190 gcc_cv_func_mmap_anon
=no
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
10193 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
10194 if ${gcc_cv_func_mmap_file+:} false
; then :
10195 $as_echo_n "(cached) " >&6
10197 # Add a system to this blacklist if
10198 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10199 # memory area containing the same data that you'd get if you applied
10200 # read() to the same fd. The only system known to have a problem here
10201 # is VMS, where text files have record structure.
10204 gcc_cv_func_mmap_file
=no
;;
10206 gcc_cv_func_mmap_file
=yes;;
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
10210 $as_echo "$gcc_cv_func_mmap_file" >&6; }
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
10212 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
10213 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
10214 $as_echo_n "(cached) " >&6
10216 # Add a system to this blacklist if it has mmap() but /dev/zero
10217 # does not exist, or if mmapping /dev/zero does not give anonymous
10218 # zeroed pages with both the following properties:
10219 # 1. If you map N consecutive pages in with one call, and then
10220 # unmap any subset of those pages, the pages that were not
10221 # explicitly unmapped remain accessible.
10222 # 2. If you map two adjacent blocks of memory and then unmap them
10223 # both at once, they must both go away.
10224 # Systems known to be in this category are Windows (all variants),
10227 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10228 gcc_cv_func_mmap_dev_zero
=no
;;
10230 gcc_cv_func_mmap_dev_zero
=yes;;
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
10234 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
10236 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
10238 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
10239 if ${gcc_cv_decl_map_anon+:} false
; then :
10240 $as_echo_n "(cached) " >&6
10242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 #include <sys/types.h>
10245 #include <sys/mman.h>
10246 #include <unistd.h>
10248 #ifndef MAP_ANONYMOUS
10249 #define MAP_ANONYMOUS MAP_ANON
10255 int n = MAP_ANONYMOUS;
10260 if ac_fn_cxx_try_compile
"$LINENO"; then :
10261 gcc_cv_decl_map_anon
=yes
10263 gcc_cv_decl_map_anon
=no
10265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
10268 $as_echo "$gcc_cv_decl_map_anon" >&6; }
10270 if test $gcc_cv_decl_map_anon = no
; then
10271 gcc_cv_func_mmap_anon
=no
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10274 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
10275 if ${gcc_cv_func_mmap_anon+:} false
; then :
10276 $as_echo_n "(cached) " >&6
10278 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10279 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10280 # doesn't give anonymous zeroed pages with the same properties listed
10281 # above for use of /dev/zero.
10282 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10284 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10285 gcc_cv_func_mmap_anon
=no
;;
10287 gcc_cv_func_mmap_anon
=yes;;
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
10291 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
10295 if test $gcc_cv_func_mmap_file = yes; then
10297 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
10300 if test $gcc_cv_func_mmap_dev_zero = yes; then
10302 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
10305 if test $gcc_cv_func_mmap_anon = yes; then
10307 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
10314 # Under VMS, vfork works very differently than on Unix. The standard test
10315 # won't work, and it isn't easily adaptable. It makes more sense to
10317 ac_cv_func_vfork_works
=yes
10320 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10321 if test "x$ac_cv_type_pid_t" = xyes
; then :
10325 cat >>confdefs.h
<<_ACEOF
10331 for ac_header
in vfork.h
10333 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
10334 if test "x$ac_cv_header_vfork_h" = xyes
; then :
10335 cat >>confdefs.h
<<_ACEOF
10336 #define HAVE_VFORK_H 1
10342 for ac_func
in fork vfork
10344 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10345 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10346 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10347 cat >>confdefs.h
<<_ACEOF
10348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10354 if test "x$ac_cv_func_fork" = xyes
; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10356 $as_echo_n "checking for working fork... " >&6; }
10357 if ${ac_cv_func_fork_works+:} false
; then :
10358 $as_echo_n "(cached) " >&6
10360 if test "$cross_compiling" = yes; then :
10361 ac_cv_func_fork_works
=cross
10363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365 $ac_includes_default
10370 /* By Ruediger Kuhlmann. */
10371 return fork () < 0;
10377 if ac_fn_cxx_try_run
"$LINENO"; then :
10378 ac_cv_func_fork_works
=yes
10380 ac_cv_func_fork_works
=no
10382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10388 $as_echo "$ac_cv_func_fork_works" >&6; }
10391 ac_cv_func_fork_works
=$ac_cv_func_fork
10393 if test "x$ac_cv_func_fork_works" = xcross
; then
10395 *-*-amigaos* |
*-*-msdosdjgpp*)
10396 # Override, as these systems have only a dummy fork() stub
10397 ac_cv_func_fork_works
=no
10400 ac_cv_func_fork_works
=yes
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10404 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10406 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10407 if test "x$ac_cv_func_vfork" = xyes
; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10409 $as_echo_n "checking for working vfork... " >&6; }
10410 if ${ac_cv_func_vfork_works+:} false
; then :
10411 $as_echo_n "(cached) " >&6
10413 if test "$cross_compiling" = yes; then :
10414 ac_cv_func_vfork_works
=cross
10416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 /* Thanks to Paul Eggert for this test. */
10419 $ac_includes_default
10420 #include <sys/wait.h>
10421 #ifdef HAVE_VFORK_H
10422 # include <vfork.h>
10424 /* On some sparc systems, changes by the child to local and incoming
10425 argument registers are propagated back to the parent. The compiler
10426 is told about this with #include <vfork.h>, but some compilers
10427 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10428 static variable whose address is put into a register that is
10429 clobbered by the vfork. */
10432 sparc_address_test (int arg)
10434 sparc_address_test (arg) int arg;
10437 static pid_t child;
10455 pid_t parent = getpid ();
10458 sparc_address_test (0);
10463 /* Here is another test for sparc vfork register problems. This
10464 test uses lots of local variables, at least as many local
10465 variables as main has allocated so far including compiler
10466 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10467 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10468 reuse the register of parent for one of the local variables,
10469 since it will think that parent can't possibly be used any more
10470 in this routine. Assigning to the local variable will thus
10471 munge parent in the parent process. */
10473 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10474 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10475 /* Convince the compiler that p..p7 are live; otherwise, it might
10476 use the same hardware register for all 8 local variables. */
10477 if (p != p1 || p != p2 || p != p3 || p != p4
10478 || p != p5 || p != p6 || p != p7)
10481 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10482 from child file descriptors. If the child closes a descriptor
10483 before it execs or exits, this munges the parent's descriptor
10484 as well. Test for this by closing stdout in the child. */
10485 _exit(close(fileno(stdout)) != 0);
10490 while (wait(&status) != child)
10493 /* Was there some problem with vforking? */
10496 /* Did the child fail? (This shouldn't happen.) */
10499 /* Did the vfork/compiler bug occur? */
10500 || parent != getpid()
10502 /* Did the file descriptor bug occur? */
10503 || fstat(fileno(stdout), &st) != 0
10508 if ac_fn_cxx_try_run
"$LINENO"; then :
10509 ac_cv_func_vfork_works
=yes
10511 ac_cv_func_vfork_works
=no
10513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10519 $as_echo "$ac_cv_func_vfork_works" >&6; }
10522 if test "x$ac_cv_func_fork_works" = xcross
; then
10523 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10525 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10528 if test "x$ac_cv_func_vfork_works" = xyes
; then
10530 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10534 $as_echo "#define vfork fork" >>confdefs.h
10537 if test "x$ac_cv_func_fork_works" = xyes
; then
10539 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10545 if test "X$prefix" = "XNONE"; then
10546 acl_final_prefix
="$ac_default_prefix"
10548 acl_final_prefix
="$prefix"
10550 if test "X$exec_prefix" = "XNONE"; then
10551 acl_final_exec_prefix
='${prefix}'
10553 acl_final_exec_prefix
="$exec_prefix"
10555 acl_save_prefix
="$prefix"
10556 prefix
="$acl_final_prefix"
10557 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10558 prefix
="$acl_save_prefix"
10561 # Check whether --with-gnu-ld was given.
10562 if test "${with_gnu_ld+set}" = set; then :
10563 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10568 # Prepare PATH_SEPARATOR.
10569 # The user is always right.
10570 if test "${PATH_SEPARATOR+set}" != set; then
10571 echo "#! /bin/sh" >conf$$.sh
10572 echo "exit 0" >>conf$$.sh
10574 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10582 if test "$GCC" = yes; then
10583 # Check if gcc -print-prog-name=ld gives a path.
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10585 $as_echo_n "checking for ld used by GCC... " >&6; }
10588 # gcc leaves a trailing carriage return which upsets mingw
10589 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10591 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10594 # Accept absolute paths.
10595 [\\/]* |
[A-Za-z
]:[\\/]*)
10596 re_direlt
='/[^/][^/]*/\.\./'
10597 # Canonicalize the path of ld
10598 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10599 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10600 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10602 test -z "$LD" && LD
="$ac_prog"
10605 # If it fails, then pretend we aren't using GCC.
10609 # If it is relative, then search for the first ld in PATH.
10610 with_gnu_ld
=unknown
10613 elif test "$with_gnu_ld" = yes; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10615 $as_echo_n "checking for GNU ld... " >&6; }
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10618 $as_echo_n "checking for non-GNU ld... " >&6; }
10620 if ${acl_cv_path_LD+:} false
; then :
10621 $as_echo_n "(cached) " >&6
10623 if test -z "$LD"; then
10624 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10625 for ac_dir
in $PATH; do
10626 test -z "$ac_dir" && ac_dir
=.
10627 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10628 acl_cv_path_LD
="$ac_dir/$ac_prog"
10629 # Check to see if the program is GNU ld. I'd rather use --version,
10630 # but apparently some GNU ld's only accept -v.
10631 # Break only if it was the GNU/non-GNU ld that we prefer.
10632 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10633 test "$with_gnu_ld" != no
&& break
10635 test "$with_gnu_ld" != yes && break
10641 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10645 LD
="$acl_cv_path_LD"
10646 if test -n "$LD"; then
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10648 $as_echo "$LD" >&6; }
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10651 $as_echo "no" >&6; }
10653 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10655 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10656 if ${acl_cv_prog_gnu_ld+:} false
; then :
10657 $as_echo_n "(cached) " >&6
10659 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10660 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10661 acl_cv_prog_gnu_ld
=yes
10663 acl_cv_prog_gnu_ld
=no
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10667 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10668 with_gnu_ld
=$acl_cv_prog_gnu_ld
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10673 $as_echo_n "checking for shared library run path origin... " >&6; }
10674 if ${acl_cv_rpath+:} false
; then :
10675 $as_echo_n "(cached) " >&6
10678 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10679 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10681 rm -f .
/conftest.sh
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10686 $as_echo "$acl_cv_rpath" >&6; }
10688 libext
="$acl_cv_libext"
10689 shlibext
="$acl_cv_shlibext"
10690 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10691 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10692 hardcode_direct
="$acl_cv_hardcode_direct"
10693 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10694 # Check whether --enable-rpath was given.
10695 if test "${enable_rpath+set}" = set; then :
10696 enableval
=$enable_rpath; :
10710 acl_save_prefix
="$prefix"
10711 prefix
="$acl_final_prefix"
10712 acl_save_exec_prefix
="$exec_prefix"
10713 exec_prefix
="$acl_final_exec_prefix"
10715 eval additional_includedir
=\"$includedir\"
10716 eval additional_libdir
=\"$libdir\"
10718 exec_prefix
="$acl_save_exec_prefix"
10719 prefix
="$acl_save_prefix"
10722 # Check whether --with-libiconv-prefix was given.
10723 if test "${with_libiconv_prefix+set}" = set; then :
10724 withval
=$with_libiconv_prefix;
10725 if test "X$withval" = "Xno"; then
10728 if test "X$withval" = "X"; then
10730 acl_save_prefix
="$prefix"
10731 prefix
="$acl_final_prefix"
10732 acl_save_exec_prefix
="$exec_prefix"
10733 exec_prefix
="$acl_final_exec_prefix"
10735 eval additional_includedir
=\"$includedir\"
10736 eval additional_libdir
=\"$libdir\"
10738 exec_prefix
="$acl_save_exec_prefix"
10739 prefix
="$acl_save_prefix"
10742 additional_includedir
="$withval/include"
10743 additional_libdir
="$withval/lib"
10750 # Check whether --with-libiconv-type was given.
10751 if test "${with_libiconv_type+set}" = set; then :
10752 withval
=$with_libiconv_type; with_libiconv_type
=$withval
10754 with_libiconv_type
=auto
10757 lib_type
=`eval echo \$with_libiconv_type`
10764 names_already_handled
=
10765 names_next_round
='iconv '
10766 while test -n "$names_next_round"; do
10767 names_this_round
="$names_next_round"
10769 for name
in $names_this_round; do
10771 for n
in $names_already_handled; do
10772 if test "$n" = "$name"; then
10773 already_handled
=yes
10777 if test -z "$already_handled"; then
10778 names_already_handled
="$names_already_handled $name"
10779 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10780 eval value
=\"\
$HAVE_LIB$uppername\"
10781 if test -n "$value"; then
10782 if test "$value" = yes; then
10783 eval value
=\"\
$LIB$uppername\"
10784 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10785 eval value
=\"\
$LTLIB$uppername\"
10786 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10795 if test $use_additional = yes; then
10796 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10797 found_dir
="$additional_libdir"
10798 found_so
="$additional_libdir/lib$name.$shlibext"
10799 if test -f "$additional_libdir/lib$name.la"; then
10800 found_la
="$additional_libdir/lib$name.la"
10802 elif test x
$lib_type != xshared
; then
10803 if test -f "$additional_libdir/lib$name.$libext"; then
10804 found_dir
="$additional_libdir"
10805 found_a
="$additional_libdir/lib$name.$libext"
10806 if test -f "$additional_libdir/lib$name.la"; then
10807 found_la
="$additional_libdir/lib$name.la"
10812 if test "X$found_dir" = "X"; then
10813 for x
in $LDFLAGS $LTLIBICONV; do
10815 acl_save_prefix
="$prefix"
10816 prefix
="$acl_final_prefix"
10817 acl_save_exec_prefix
="$exec_prefix"
10818 exec_prefix
="$acl_final_exec_prefix"
10820 exec_prefix
="$acl_save_exec_prefix"
10821 prefix
="$acl_save_prefix"
10825 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10826 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
10828 found_so
="$dir/lib$name.$shlibext"
10829 if test -f "$dir/lib$name.la"; then
10830 found_la
="$dir/lib$name.la"
10832 elif test x
$lib_type != xshared
; then
10833 if test -f "$dir/lib$name.$libext"; then
10835 found_a
="$dir/lib$name.$libext"
10836 if test -f "$dir/lib$name.la"; then
10837 found_la
="$dir/lib$name.la"
10843 if test "X$found_dir" != "X"; then
10848 if test "X$found_dir" != "X"; then
10849 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10850 if test "X$found_so" != "X"; then
10851 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10852 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10855 for x
in $ltrpathdirs; do
10856 if test "X$x" = "X$found_dir"; then
10861 if test -z "$haveit"; then
10862 ltrpathdirs
="$ltrpathdirs $found_dir"
10864 if test "$hardcode_direct" = yes; then
10865 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10867 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10868 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10870 for x
in $rpathdirs; do
10871 if test "X$x" = "X$found_dir"; then
10876 if test -z "$haveit"; then
10877 rpathdirs
="$rpathdirs $found_dir"
10881 for x
in $LDFLAGS $LIBICONV; do
10883 acl_save_prefix
="$prefix"
10884 prefix
="$acl_final_prefix"
10885 acl_save_exec_prefix
="$exec_prefix"
10886 exec_prefix
="$acl_final_exec_prefix"
10888 exec_prefix
="$acl_save_exec_prefix"
10889 prefix
="$acl_save_prefix"
10891 if test "X$x" = "X-L$found_dir"; then
10896 if test -z "$haveit"; then
10897 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10899 if test "$hardcode_minus_L" != no
; then
10900 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10902 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10908 if test "X$found_a" != "X"; then
10909 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10911 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10914 additional_includedir
=
10915 case "$found_dir" in
10917 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10918 additional_includedir
="$basedir/include"
10921 if test "X$additional_includedir" != "X"; then
10922 if test "X$additional_includedir" != "X/usr/include"; then
10924 if test "X$additional_includedir" = "X/usr/local/include"; then
10925 if test -n "$GCC"; then
10927 linux
*) haveit
=yes;;
10931 if test -z "$haveit"; then
10932 for x
in $CPPFLAGS $INCICONV; do
10934 acl_save_prefix
="$prefix"
10935 prefix
="$acl_final_prefix"
10936 acl_save_exec_prefix
="$exec_prefix"
10937 exec_prefix
="$acl_final_exec_prefix"
10939 exec_prefix
="$acl_save_exec_prefix"
10940 prefix
="$acl_save_prefix"
10942 if test "X$x" = "X-I$additional_includedir"; then
10947 if test -z "$haveit"; then
10948 if test -d "$additional_includedir"; then
10949 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10955 if test -n "$found_la"; then
10956 save_libdir
="$libdir"
10957 case "$found_la" in
10958 */* |
*\\*) .
"$found_la" ;;
10959 *) .
"./$found_la" ;;
10961 libdir
="$save_libdir"
10962 for dep
in $dependency_libs; do
10965 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10966 if test "X$additional_libdir" != "X/usr/lib"; then
10968 if test "X$additional_libdir" = "X/usr/local/lib"; then
10969 if test -n "$GCC"; then
10971 linux
*) haveit
=yes;;
10975 if test -z "$haveit"; then
10977 for x
in $LDFLAGS $LIBICONV; do
10979 acl_save_prefix
="$prefix"
10980 prefix
="$acl_final_prefix"
10981 acl_save_exec_prefix
="$exec_prefix"
10982 exec_prefix
="$acl_final_exec_prefix"
10984 exec_prefix
="$acl_save_exec_prefix"
10985 prefix
="$acl_save_prefix"
10987 if test "X$x" = "X-L$additional_libdir"; then
10992 if test -z "$haveit"; then
10993 if test -d "$additional_libdir"; then
10994 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10998 for x
in $LDFLAGS $LTLIBICONV; do
11000 acl_save_prefix
="$prefix"
11001 prefix
="$acl_final_prefix"
11002 acl_save_exec_prefix
="$exec_prefix"
11003 exec_prefix
="$acl_final_exec_prefix"
11005 exec_prefix
="$acl_save_exec_prefix"
11006 prefix
="$acl_save_prefix"
11008 if test "X$x" = "X-L$additional_libdir"; then
11013 if test -z "$haveit"; then
11014 if test -d "$additional_libdir"; then
11015 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11022 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11023 if test "$enable_rpath" != no
; then
11025 for x
in $rpathdirs; do
11026 if test "X$x" = "X$dir"; then
11031 if test -z "$haveit"; then
11032 rpathdirs
="$rpathdirs $dir"
11035 for x
in $ltrpathdirs; do
11036 if test "X$x" = "X$dir"; then
11041 if test -z "$haveit"; then
11042 ltrpathdirs
="$ltrpathdirs $dir"
11047 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11050 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11053 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
11054 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11060 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
11061 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
11062 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11064 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
11065 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
11072 if test "X$rpathdirs" != "X"; then
11073 if test -n "$hardcode_libdir_separator"; then
11075 for found_dir
in $rpathdirs; do
11076 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11078 acl_save_libdir
="$libdir"
11080 eval flag
=\"$hardcode_libdir_flag_spec\"
11081 libdir
="$acl_save_libdir"
11082 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11084 for found_dir
in $rpathdirs; do
11085 acl_save_libdir
="$libdir"
11086 libdir
="$found_dir"
11087 eval flag
=\"$hardcode_libdir_flag_spec\"
11088 libdir
="$acl_save_libdir"
11089 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
11093 if test "X$ltrpathdirs" != "X"; then
11094 for found_dir
in $ltrpathdirs; do
11095 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11106 $as_echo_n "checking for iconv... " >&6; }
11107 if ${am_cv_func_iconv+:} false
; then :
11108 $as_echo_n "(cached) " >&6
11111 am_cv_func_iconv
="no, consider installing GNU libiconv"
11113 am_save_CPPFLAGS
="$CPPFLAGS"
11114 CPPFLAGS
="$CPPFLAGS $INCICONV"
11115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 #include <stdlib.h>
11122 iconv_t cd = iconv_open("","");
11123 iconv(cd,NULL,NULL,NULL,NULL);
11129 if ac_fn_cxx_try_link
"$LINENO"; then :
11130 am_cv_func_iconv
=yes
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11134 CPPFLAGS
="$am_save_CPPFLAGS"
11136 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
11137 for _libs
in .libs _libs
; do
11138 am_save_CPPFLAGS
="$CPPFLAGS"
11139 am_save_LIBS
="$LIBS"
11140 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
11141 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
11142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144 #include <stdlib.h>
11149 iconv_t cd = iconv_open("","");
11150 iconv(cd,NULL,NULL,NULL,NULL);
11156 if ac_fn_cxx_try_link
"$LINENO"; then :
11157 INCICONV
="-I../libiconv/include"
11158 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
11159 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
11160 am_cv_lib_iconv
=yes
11161 am_cv_func_iconv
=yes
11163 rm -f core conftest.err conftest.
$ac_objext \
11164 conftest
$ac_exeext conftest.
$ac_ext
11165 CPPFLAGS
="$am_save_CPPFLAGS"
11166 LIBS
="$am_save_LIBS"
11167 if test "$am_cv_func_iconv" = "yes"; then
11173 if test "$am_cv_func_iconv" != yes; then
11174 am_save_CPPFLAGS
="$CPPFLAGS"
11175 am_save_LIBS
="$LIBS"
11176 CPPFLAGS
="$CPPFLAGS $INCICONV"
11177 LIBS
="$LIBS $LIBICONV"
11178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 #include <stdlib.h>
11185 iconv_t cd = iconv_open("","");
11186 iconv(cd,NULL,NULL,NULL,NULL);
11192 if ac_fn_cxx_try_link
"$LINENO"; then :
11193 am_cv_lib_iconv
=yes
11194 am_cv_func_iconv
=yes
11196 rm -f core conftest.err conftest.
$ac_objext \
11197 conftest
$ac_exeext conftest.
$ac_ext
11198 CPPFLAGS
="$am_save_CPPFLAGS"
11199 LIBS
="$am_save_LIBS"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11204 $as_echo "$am_cv_func_iconv" >&6; }
11205 if test "$am_cv_func_iconv" = yes; then
11207 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11210 if test "$am_cv_lib_iconv" = yes; then
11212 for element
in $INCICONV; do
11214 for x
in $CPPFLAGS; do
11216 acl_save_prefix
="$prefix"
11217 prefix
="$acl_final_prefix"
11218 acl_save_exec_prefix
="$exec_prefix"
11219 exec_prefix
="$acl_final_exec_prefix"
11221 exec_prefix
="$acl_save_exec_prefix"
11222 prefix
="$acl_save_prefix"
11224 if test "X$x" = "X$element"; then
11229 if test -z "$haveit"; then
11230 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11235 $as_echo_n "checking how to link with libiconv... " >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11237 $as_echo "$LIBICONV" >&6; }
11245 if test "$am_cv_func_iconv" = yes; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
11247 $as_echo_n "checking for iconv declaration... " >&6; }
11248 if ${am_cv_proto_iconv+:} false
; then :
11249 $as_echo_n "(cached) " >&6
11252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11255 #include <stdlib.h>
11261 #if defined(__STDC__) || defined(__cplusplus)
11262 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11275 if ac_fn_cxx_try_compile
"$LINENO"; then :
11276 am_cv_proto_iconv_arg1
=""
11278 am_cv_proto_iconv_arg1
="const"
11280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11281 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);"
11284 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
11286 }$am_cv_proto_iconv" >&5
11288 }$am_cv_proto_iconv" >&6; }
11290 cat >>confdefs.h
<<_ACEOF
11291 #define ICONV_CONST $am_cv_proto_iconv_arg1
11297 # Until we have in-tree GNU iconv:
11299 if test -f "$LTLIBICONV"; then
11300 LIBICONV_DEP
=$LTLIBICONV
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11306 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11307 if ${am_cv_val_LC_MESSAGES+:} false
; then :
11308 $as_echo_n "(cached) " >&6
11310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312 #include <locale.h>
11321 if ac_fn_cxx_try_link
"$LINENO"; then :
11322 am_cv_val_LC_MESSAGES
=yes
11324 am_cv_val_LC_MESSAGES
=no
11326 rm -f core conftest.err conftest.
$ac_objext \
11327 conftest
$ac_exeext conftest.
$ac_ext
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11330 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11331 if test $am_cv_val_LC_MESSAGES = yes; then
11333 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11340 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11341 if ${am_cv_langinfo_codeset+:} false
; then :
11342 $as_echo_n "(cached) " >&6
11344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11346 #include <langinfo.h>
11350 char* cs = nl_langinfo(CODESET);
11355 if ac_fn_cxx_try_link
"$LINENO"; then :
11356 am_cv_langinfo_codeset
=yes
11358 am_cv_langinfo_codeset
=no
11360 rm -f core conftest.err conftest.
$ac_objext \
11361 conftest
$ac_exeext conftest.
$ac_ext
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11365 $as_echo "$am_cv_langinfo_codeset" >&6; }
11366 if test $am_cv_langinfo_codeset = yes; then
11368 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11373 # We will need to find libiberty.h and ansidecl.h
11374 saved_CFLAGS
="$CFLAGS"
11375 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11376 saved_CXXFLAGS
="$CXXFLAGS"
11377 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
11379 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
11380 # normal autoconf function for these. But force definition of
11381 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11382 # basename handling in libiberty.h.
11383 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(const char*)" | $as_tr_sh`
11384 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "$as_ac_Symbol" "
11385 #undef HAVE_DECL_BASENAME
11386 #define HAVE_DECL_BASENAME 1
11387 #include \"ansidecl.h\"
11388 #include \"system.h\"
11390 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11396 cat >>confdefs.h
<<_ACEOF
11397 #define HAVE_DECL_BASENAME $ac_have_decl
11399 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_strstr(const char*,const char*)" | $as_tr_sh`
11400 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "$as_ac_Symbol" "
11401 #undef HAVE_DECL_BASENAME
11402 #define HAVE_DECL_BASENAME 1
11403 #include \"ansidecl.h\"
11404 #include \"system.h\"
11406 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
11412 cat >>confdefs.h
<<_ACEOF
11413 #define HAVE_DECL_STRSTR $ac_have_decl
11417 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11418 madvise stpcpy strnlen strsignal strverscmp \
11419 strtol strtoul strtoll strtoull setenv unsetenv \
11420 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11421 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
11423 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11425 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11426 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11427 $as_echo_n "(cached) " >&6
11429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11432 #define $ac_tr_decl 1
11434 #include "ansidecl.h"
11435 #include "system.h"
11441 char *(*pfn) = (char *(*)) $ac_func ;
11447 if ac_fn_cxx_try_compile
"$LINENO"; then :
11448 eval "gcc_cv_have_decl_$ac_func=yes"
11450 eval "gcc_cv_have_decl_$ac_func=no"
11452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11455 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11457 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11458 #define $ac_tr_decl 1
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11463 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11464 #define $ac_tr_decl 0
11472 for ac_func
in getrlimit setrlimit getrusage
11474 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11476 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11477 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11478 $as_echo_n "(cached) " >&6
11480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11483 #define $ac_tr_decl 1
11485 #include "ansidecl.h"
11486 #include "system.h"
11487 #ifdef HAVE_SYS_RESOURCE_H
11488 #include <sys/resource.h>
11496 char *(*pfn) = (char *(*)) $ac_func ;
11502 if ac_fn_cxx_try_compile
"$LINENO"; then :
11503 eval "gcc_cv_have_decl_$ac_func=yes"
11505 eval "gcc_cv_have_decl_$ac_func=no"
11507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11510 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11512 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11513 #define $ac_tr_decl 1
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11519 #define $ac_tr_decl 0
11527 for ac_func
in mallinfo
11529 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11531 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11532 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11533 $as_echo_n "(cached) " >&6
11535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11538 #define $ac_tr_decl 1
11540 #include "ansidecl.h"
11541 #include "system.h"
11542 #ifdef HAVE_MALLOC_H
11543 #include <malloc.h>
11551 char *(*pfn) = (char *(*)) $ac_func ;
11557 if ac_fn_cxx_try_compile
"$LINENO"; then :
11558 eval "gcc_cv_have_decl_$ac_func=yes"
11560 eval "gcc_cv_have_decl_$ac_func=no"
11562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11565 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11568 #define $ac_tr_decl 1
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11573 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11574 #define $ac_tr_decl 0
11582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11585 #include "ansidecl.h"
11586 #include "system.h"
11587 #ifdef HAVE_SYS_RESOURCE_H
11588 #include <sys/resource.h>
11599 if ac_fn_cxx_try_compile
"$LINENO"; then :
11603 $as_echo "#define rlim_t long" >>confdefs.h
11606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11608 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11609 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11610 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11611 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11612 for ac_func
in ldgetname
11614 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11616 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11617 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11618 $as_echo_n "(cached) " >&6
11620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 #define $ac_tr_decl 1
11625 #include "ansidecl.h"
11626 #include "system.h"
11627 #ifdef HAVE_LDFCN_H
11638 char *(*pfn) = (char *(*)) $ac_func ;
11644 if ac_fn_cxx_try_compile
"$LINENO"; then :
11645 eval "gcc_cv_have_decl_$ac_func=yes"
11647 eval "gcc_cv_have_decl_$ac_func=no"
11649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11652 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11654 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11655 #define $ac_tr_decl 1
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11661 #define $ac_tr_decl 0
11669 for ac_func
in times
11671 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11673 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11674 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11675 $as_echo_n "(cached) " >&6
11677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11678 /* end confdefs.h. */
11680 #define $ac_tr_decl 1
11682 #include "ansidecl.h"
11683 #include "system.h"
11684 #ifdef HAVE_SYS_TIMES_H
11685 #include <sys/times.h>
11693 char *(*pfn) = (char *(*)) $ac_func ;
11699 if ac_fn_cxx_try_compile
"$LINENO"; then :
11700 eval "gcc_cv_have_decl_$ac_func=yes"
11702 eval "gcc_cv_have_decl_$ac_func=no"
11704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11707 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11710 #define $ac_tr_decl 1
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11716 #define $ac_tr_decl 0
11724 for ac_func
in sigaltstack
11726 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11728 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11729 if eval \
${gcc_cv_have_decl_$ac_func+:} false
; then :
11730 $as_echo_n "(cached) " >&6
11732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11733 /* end confdefs.h. */
11735 #define $ac_tr_decl 1
11737 #include "ansidecl.h"
11738 #include "system.h"
11739 #include <signal.h>
11746 char *(*pfn) = (char *(*)) $ac_func ;
11752 if ac_fn_cxx_try_compile
"$LINENO"; then :
11753 eval "gcc_cv_have_decl_$ac_func=yes"
11755 eval "gcc_cv_have_decl_$ac_func=no"
11757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11760 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11763 #define $ac_tr_decl 1
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11768 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11769 #define $ac_tr_decl 0
11777 # More time-related stuff.
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11779 $as_echo_n "checking for struct tms... " >&6; }
11780 if ${ac_cv_struct_tms+:} false
; then :
11781 $as_echo_n "(cached) " >&6
11784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11787 #include "ansidecl.h"
11788 #include "system.h"
11789 #ifdef HAVE_SYS_TIMES_H
11790 #include <sys/times.h>
11801 if ac_fn_cxx_try_compile
"$LINENO"; then :
11802 ac_cv_struct_tms
=yes
11804 ac_cv_struct_tms
=no
11806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11809 $as_echo "$ac_cv_struct_tms" >&6; }
11810 if test $ac_cv_struct_tms = yes; then
11812 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11816 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11817 # revisit after autoconf 2.50.
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11819 $as_echo_n "checking for clock_t... " >&6; }
11820 if ${gcc_cv_type_clock_t+:} false
; then :
11821 $as_echo_n "(cached) " >&6
11824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11827 #include "ansidecl.h"
11828 #include "system.h"
11838 if ac_fn_cxx_try_compile
"$LINENO"; then :
11839 gcc_cv_type_clock_t
=yes
11841 gcc_cv_type_clock_t
=no
11843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11846 $as_echo "$gcc_cv_type_clock_t" >&6; }
11847 if test $gcc_cv_type_clock_t = yes; then
11849 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11853 # Check if F_SETLKW is supported by fcntl.
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11855 $as_echo_n "checking for F_SETLKW... " >&6; }
11856 if ${ac_cv_f_setlkw+:} false
; then :
11857 $as_echo_n "(cached) " >&6
11860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11861 /* end confdefs.h. */
11873 return fcntl (1, F_SETLKW, &fl);
11878 if ac_fn_cxx_try_compile
"$LINENO"; then :
11883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11886 $as_echo "$ac_cv_f_setlkw" >&6; }
11887 if test $ac_cv_f_setlkw = yes; then
11889 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11893 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11894 CFLAGS
="$saved_CFLAGS"
11895 CXXFLAGS
="$saved_CXXFLAGS"
11897 # mkdir takes a single argument on some systems.
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11899 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11900 if ${gcc_cv_mkdir_takes_one_arg+:} false
; then :
11901 $as_echo_n "(cached) " >&6
11903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11904 /* end confdefs.h. */
11906 #include <sys/types.h>
11907 #ifdef HAVE_SYS_STAT_H
11908 # include <sys/stat.h>
11910 #ifdef HAVE_UNISTD_H
11911 # include <unistd.h>
11913 #ifdef HAVE_DIRECT_H
11914 # include <direct.h>
11924 if ac_fn_cxx_try_compile
"$LINENO"; then :
11925 gcc_cv_mkdir_takes_one_arg
=no
11927 gcc_cv_mkdir_takes_one_arg
=yes
11929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11932 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11933 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11935 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11946 # With Setjmp/Longjmp based exception handling.
11947 # Check whether --enable-sjlj-exceptions was given.
11948 if test "${enable_sjlj_exceptions+set}" = set; then :
11949 enableval
=$enable_sjlj_exceptions; case $target in
11951 if test $enableval != yes; then
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11953 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11958 force_sjlj_exceptions
=yes
11962 force_sjlj_exceptions
=yes
11966 force_sjlj_exceptions
=yes
11970 force_sjlj_exceptions
=no
11975 if test $force_sjlj_exceptions = yes; then
11976 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11978 cat >>confdefs.h
<<_ACEOF
11979 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11984 # --------------------------------------------------------
11985 # Build, host, and target specific configuration fragments
11986 # --------------------------------------------------------
11988 # Collect build-machine-specific information.
11989 .
${srcdir}/config.build ||
exit 1
11991 # Collect host-machine-specific information.
11992 .
${srcdir}/config.
host ||
exit 1
11996 # Collect target-machine-specific information.
11997 .
${srcdir}/config.gcc ||
exit 1
11999 extra_objs
="${host_extra_objs} ${extra_objs}"
12000 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
12002 # Default the target-machine variables that were not explicitly set.
12003 if test x
"$tm_file" = x
12004 then tm_file
=$cpu_type/$cpu_type.h
; fi
12006 if test x
"$extra_headers" = x
12007 then extra_headers
=; fi
12009 if test x
$md_file = x
12010 then md_file
=$cpu_type/$cpu_type.md
; fi
12012 if test x
$out_file = x
12013 then out_file
=$cpu_type/$cpu_type.c
; fi
12015 if test x
"$tmake_file" = x
12016 then tmake_file
=$cpu_type/t-
$cpu_type
12019 # Support --enable-initfini-array.
12020 if test x
$enable_initfini_array != xno
; then
12021 tm_file
="${tm_file} initfini-array.h"
12024 if test x
"$dwarf2" = xyes
12025 then tm_file
="$tm_file tm-dwarf2.h"
12028 # Say what files are being used for the output code and MD file.
12029 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
12030 echo "Using \`$srcdir/config/$md_file' as machine description file."
12032 # If any of the xm_file variables contain nonexistent files, warn
12033 # about them and drop them.
12036 for x
in $build_xm_file; do
12037 if test -f $srcdir/config
/$x
12039 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12040 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12043 build_xm_file
="$bx"
12046 for x
in $host_xm_file; do
12047 if test -f $srcdir/config
/$x
12049 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12050 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12056 for x
in $xm_file; do
12057 if test -f $srcdir/config
/$x
12059 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
12060 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
12066 for f
in $tm_file; do
12069 if test $count = ax
; then
12070 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
12072 echo "Using the following target machine macro files:"
12073 for f
in $tm_file; do
12074 echo " $srcdir/config/$f"
12078 if test x
$use_long_long_for_widest_fast_int = xyes
; then
12080 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
12084 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
12086 cat >>confdefs.h
<<_ACEOF
12087 #define HAVE_GNU_LD $gnu_ld_bool
12091 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
12093 cat >>confdefs.h
<<_ACEOF
12094 #define HAVE_GNU_AS $gnu_as_bool
12099 for f
in $host_xm_file; do
12102 if test $count = a
; then
12104 elif test $count = ax
; then
12105 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
12107 echo "Using the following host machine macro files:"
12108 for f
in $host_xm_file; do
12109 echo " $srcdir/config/$f"
12112 echo "Using ${out_host_hook_obj} for host machine hooks."
12114 if test "$host_xm_file" != "$build_xm_file"; then
12116 for f
in $build_xm_file; do
12119 if test $count = a
; then
12121 elif test $count = ax
; then
12122 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
12124 echo "Using the following build machine macro files:"
12125 for f
in $build_xm_file; do
12126 echo " $srcdir/config/$f"
12131 if test -n "$configured_native_system_header_dir"; then
12132 native_system_header_dir
=$configured_native_system_header_dir
12134 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
12138 powerpc
*-*-darwin*)
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
12140 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
12141 if ${gcc_cv_mcontext_underscores+:} false
; then :
12142 $as_echo_n "(cached) " >&6
12144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12147 #include <sys/cdefs.h>
12148 #include <sys/signal.h>
12149 #include <ucontext.h>
12150 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
12153 if ac_fn_cxx_try_compile
"$LINENO"; then :
12154 gcc_cv_mcontext_underscores
=no
12156 gcc_cv_mcontext_underscores
=yes
12158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
12161 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
12162 if test $gcc_cv_mcontext_underscores = yes; then
12164 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
12174 # Check if a valid thread package
12175 case ${enable_threads} in
12178 target_thread_file
='single'
12182 target_thread_file
='single'
12184 aix | dce | lynx | mipssde | posix | rtems | \
12185 single | tpf | vxworks | win32
)
12186 target_thread_file
=${enable_threads}
12189 echo "${enable_threads} is an unknown thread package" 1>&2
12194 if test x
${thread_file} = x
; then
12195 # No thread file set by target-specific clauses in config.gcc,
12196 # so use file chosen by default logic above
12197 thread_file
=${target_thread_file}
12205 if test x
$enable___cxa_atexit = xyes || \
12206 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
12207 if test x
$host = x
$target; then
12209 # mingw32 doesn't have __cxa_atexit but uses atexit registration
12210 # keyed to flag_use_cxa_atexit
12218 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
12219 if test "x$ac_cv_func___cxa_atexit" = xyes
; then :
12222 echo "__cxa_atexit can't be enabled on this target"
12228 # We can't check for __cxa_atexit when building a cross, so assume
12232 if test x
$use_cxa_atexit = xyes
; then
12234 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
12239 # Look for a file containing extra machine modes.
12240 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
12241 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
12244 cat >>confdefs.h
<<_ACEOF
12245 #define EXTRA_MODES_FILE "config/$extra_modes"
12250 # Convert extra_options into a form suitable for Makefile use.
12253 for f
in $extra_options; do
12254 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
12255 all_opt_files
="$all_opt_files $srcdir/config/$f"
12259 # auto-host.h is the file containing items generated by autoconf and is
12260 # the first file included by config.h.
12261 # If host=build, it is correct to have bconfig include auto-host.h
12262 # as well. If host!=build, we are in error and need to do more
12263 # work to find out the build config parameters.
12264 if test x
$host = x
$build
12266 build_auto
=auto-host.h
12267 HAVE_AUTO_BUILD
='# '
12269 # We create a subdir, then run autoconf in the subdir.
12270 # To prevent recursion we set host and build for the new
12271 # invocation of configure to the build for this invocation
12278 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
12279 *) realsrcdir
=..
/${srcdir};;
12281 # Clearing GMPINC is necessary to prevent host headers being
12282 # used by the build compiler. Defining GENERATOR_FILE stops
12283 # system.h from including gmp.h.
12284 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
12285 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
12286 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
12287 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
12288 ${realsrcdir}/configure \
12289 --enable-languages=${enable_languages-all} \
12290 ${enable_obsolete+--enable-obsolete="$enable_obsolete"} \
12291 ${enable_option_checking+--enable-option-checking="$enable_option_checking"} \
12292 --target=$target_alias --host=$build_alias \
12293 --build=$build_alias ||
exit # retaining $tempdir
12295 # We just finished tests for the build machine, so rename
12296 # the file auto-build.h in the gcc directory.
12297 mv auto-host.h ..
/auto-build.h
12300 build_auto
=auto-build.h
12306 tm_file
="${tm_file} defaults.h"
12307 tm_p_file
="${tm_p_file} tm-preds.h"
12308 tm_d_file
="${tm_d_file} defaults.h"
12309 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
12310 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
12311 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
12312 # put this back in temporarily.
12313 xm_file
="auto-host.h ansidecl.h ${xm_file}"
12319 # Compile in configure arguments.
12320 if test -f configargs.h
; then
12321 # Being re-configured.
12322 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
12323 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
12324 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
12325 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
12328 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
12331 # Double all backslashes and backslash all quotes to turn
12332 # gcc_config_arguments into a C string.
12333 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
12334 $gcc_config_arguments
12336 gcc_config_arguments_str
=`cat conftest.out`
12339 cat > configargs.h
<<EOF
12340 /* Generated automatically. */
12341 static const char configuration_arguments[] = "$gcc_config_arguments_str";
12342 static const char thread_model[] = "$thread_file";
12344 static const struct {
12345 const char *name, *value;
12346 } configure_default_options[] = $configure_default_options;
12349 gcc_BASEVER
=`cat $srcdir/BASE-VER`
12350 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
12351 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
12352 if test -f $srcdir/REVISION
; then
12353 gcc_REVISION
=`cat $srcdir/REVISION`
12357 cat > plugin-version.h
<<EOF
12358 #include "configargs.h"
12360 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
12361 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
12362 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
12363 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
12365 static char basever[] = "$gcc_BASEVER";
12366 static char datestamp[] = "$gcc_DATESTAMP";
12367 static char devphase[] = "$gcc_DEVPHASE";
12368 static char revision[] = "$gcc_REVISION";
12370 /* FIXME plugins: We should make the version information more precise.
12371 One way to do is to add a checksum. */
12373 static struct plugin_gcc_version gcc_version = {basever, datestamp,
12374 devphase, revision,
12375 configuration_arguments};
12378 # Determine what GCC version number to use in filesystem paths.
12380 get_gcc_base_ver
="cat"
12382 # Check whether --with-gcc-major-version-only was given.
12383 if test "${with_gcc_major_version_only+set}" = set; then :
12384 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
12385 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
12393 # Internationalization
12394 # If we haven't got the data from the intl directory,
12395 # assume NLS is disabled.
12404 if test -f ..
/intl
/config.intl
; then
12405 . ..
/intl
/config.intl
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12408 $as_echo_n "checking whether NLS is requested... " >&6; }
12409 if test x
"$USE_NLS" != xyes
; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414 $as_echo "yes" >&6; }
12416 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12420 $as_echo_n "checking for catalogs to be installed... " >&6; }
12421 # Look for .po and .gmo files in the source directory.
12424 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
12425 # If there aren't any .gmo files the shell will give us the
12426 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12428 case "$cat" in *\
**)
12431 # The quadruple backslash is collapsed to a double backslash
12432 # by the backticks, then collapsed again by the double quotes,
12433 # leaving us with one backslash in the sed expression (right
12434 # before the dot that mustn't act as a wildcard).
12435 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12436 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
12437 # The user is allowed to set LINGUAS to a list of languages to
12438 # install catalogs for. If it's empty that means "all of them."
12439 if test "x$LINGUAS" = x
; then
12440 CATALOGS
="$CATALOGS $cat"
12441 XLINGUAS
="$XLINGUAS $lang"
12443 case "$LINGUAS" in *$lang*)
12444 CATALOGS
="$CATALOGS $cat"
12445 XLINGUAS
="$XLINGUAS $lang"
12450 LINGUAS
="$XLINGUAS"
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12452 $as_echo "$LINGUAS" >&6; }
12465 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12466 # -liconv on the link line twice.
12467 case "$LIBINTL" in *$LIBICONV*)
12471 # Check whether --enable-secureplt was given.
12472 if test "${enable_secureplt+set}" = set; then :
12473 enableval
=$enable_secureplt;
12477 # Check whether --enable-mingw-wildcard was given.
12478 if test "${enable_mingw_wildcard+set}" = set; then :
12479 enableval
=$enable_mingw_wildcard;
12481 enable_mingw_wildcard
=platform
12484 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12486 cat >>confdefs.h
<<_ACEOF
12487 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12492 # Check whether --enable-large-address-aware was given.
12493 if test "${enable_large_address_aware+set}" = set; then :
12494 enableval
=$enable_large_address_aware;
12497 if test x
"$enable_large_address_aware" = xyes
; then :
12499 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12503 # Check whether --enable-leading-mingw64-underscores was given.
12504 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12505 enableval
=$enable_leading_mingw64_underscores;
12508 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12510 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12514 # Check whether --enable-cld was given.
12515 if test "${enable_cld+set}" = set; then :
12516 enableval
=$enable_cld;
12522 # Check whether --enable-frame-pointer was given.
12523 if test "${enable_frame_pointer+set}" = set; then :
12524 enableval
=$enable_frame_pointer;
12528 linux
* | gnu
* | darwin
[8912]* | cygwin
* | mingw
*)
12529 # Enable -fomit-frame-pointer by default for these systems with DWARF2.
12530 enable_frame_pointer
=no
12533 enable_frame_pointer
=yes
12541 i
[34567]86-*-* | x86_64-
*-*)
12542 if test "x$enable_cld" = xyes
; then
12543 tm_defines
="${tm_defines} USE_IX86_CLD=1"
12545 if test "x$enable_frame_pointer" = xyes
; then
12546 tm_defines
="${tm_defines} USE_IX86_FRAME_POINTER=1"
12551 # Windows32 Registry support for specifying GCC installation paths.
12552 # Check whether --enable-win32-registry was given.
12553 if test "${enable_win32_registry+set}" = set; then :
12554 enableval
=$enable_win32_registry;
12559 win32 | pe | cygwin
* | mingw32
*)
12560 if test "x$enable_win32_registry" != xno
; then
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12562 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12563 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12564 $as_echo_n "(cached) " >&6
12566 ac_func_search_save_LIBS
=$LIBS
12567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12570 /* Override any GCC internal prototype to avoid an error.
12571 Use char because int might match the return type of a GCC
12572 builtin and then its argument prototype would still apply. */
12576 char RegOpenKeyExA ();
12580 return RegOpenKeyExA ();
12585 for ac_lib
in '' advapi32
; do
12586 if test -z "$ac_lib"; then
12587 ac_res
="none required"
12590 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12592 if ac_fn_cxx_try_link
"$LINENO"; then :
12593 ac_cv_search_RegOpenKeyExA
=$ac_res
12595 rm -f core conftest.err conftest.
$ac_objext \
12597 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12601 if ${ac_cv_search_RegOpenKeyExA+:} false
; then :
12604 ac_cv_search_RegOpenKeyExA
=no
12606 rm conftest.
$ac_ext
12607 LIBS
=$ac_func_search_save_LIBS
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12610 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12611 ac_res
=$ac_cv_search_RegOpenKeyExA
12612 if test "$ac_res" != no
; then :
12613 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12616 enable_win32_registry
=no
12621 if test "x$enable_win32_registry" != xno
; then
12623 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12626 if test "x$enable_win32_registry" != xyes \
12627 && test "x$enable_win32_registry" != x
; then
12629 cat >>confdefs.h
<<_ACEOF
12630 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12638 # Get an absolute path to the GCC top-level source directory
12639 holddir
=`${PWDCMD-pwd}`
12641 topdir
=`${PWDCMD-pwd}`
12644 # Conditionalize the makefile for this host machine.
12646 for f
in ${host_xmake_file}
12648 if test -f ${srcdir}/config
/$f
12650 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12654 # Conditionalize the makefile for this target machine.
12656 for f
in ${tmake_file}
12658 if test -f ${srcdir}/config
/$f
12660 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12663 tmake_file
="${tmake_file_}${omp_device_property_tmake_file}"
12665 out_object_file
=`basename $out_file .c`.o
12666 common_out_object_file
=`basename $common_out_file .c`.o
12668 tm_file_list
="options.h"
12669 tm_include_list
="options.h insn-constants.h"
12670 for f
in $tm_file; do
12673 f
=`echo $f | sed 's/^..//'`
12674 tm_file_list
="${tm_file_list} $f"
12675 tm_include_list
="${tm_include_list} $f"
12678 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12679 tm_include_list
="${tm_include_list} $f"
12682 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12683 tm_include_list
="${tm_include_list} config/$f"
12690 for f
in $tm_p_file; do
12693 tm_p_file_list
="${tm_p_file_list} $f"
12694 tm_p_include_list
="${tm_p_include_list} $f"
12697 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12698 tm_p_include_list
="${tm_p_include_list} config/$f"
12703 tm_d_include_list
="options.h insn-constants.h"
12704 for f
in $tm_d_file; do
12707 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12708 tm_d_include_list
="${tm_d_include_list} $f"
12711 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12712 tm_d_include_list
="${tm_d_include_list} config/$f"
12719 for f
in $xm_file; do
12722 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12723 xm_include_list
="${xm_include_list} $f"
12726 xm_file_list
="${xm_file_list} $f"
12727 xm_include_list
="${xm_include_list} $f"
12730 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12731 xm_include_list
="${xm_include_list} config/$f"
12737 host_xm_include_list
=
12738 for f
in $host_xm_file; do
12741 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12742 host_xm_include_list
="${host_xm_include_list} $f"
12745 host_xm_file_list
="${host_xm_file_list} $f"
12746 host_xm_include_list
="${host_xm_include_list} $f"
12749 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12750 host_xm_include_list
="${host_xm_include_list} config/$f"
12755 build_xm_file_list
=
12756 for f
in $build_xm_file; do
12759 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12760 build_xm_include_list
="${build_xm_include_list} $f"
12762 auto-build.h | auto-host.h
)
12763 build_xm_file_list
="${build_xm_file_list} $f"
12764 build_xm_include_list
="${build_xm_include_list} $f"
12767 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12768 build_xm_include_list
="${build_xm_include_list} config/$f"
12773 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12774 # cross-compiler which does not use the native headers and libraries.
12775 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12778 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12779 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12781 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12782 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12783 if test "x$with_build_sysroot" != x
; then
12784 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12786 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12789 if test x
$host != x
$target
12791 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12793 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12794 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12795 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12798 if test "x$with_build_sysroot" != "x"; then
12799 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12800 elif test "x$with_sysroot" = x
; then
12801 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12802 elif test "x$with_sysroot" = xyes
; then
12803 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12805 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12808 target_header_dir
=${native_system_header_dir}
12811 # If this is a cross-compiler that does not
12812 # have its own set of headers then define
12815 # If this is using newlib, without having the headers available now,
12816 # then define inhibit_libc in LIBGCC2_CFLAGS.
12817 # This prevents libgcc2 from containing any code which requires libc
12819 : ${inhibit_libc=false}
12820 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12821 test x
$with_newlib = xyes
; } &&
12822 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12827 # When building gcc with a cross-compiler, we need to adjust things so
12828 # that the generator programs are still built with the native compiler.
12829 # Also, we cannot run fixincludes.
12831 # These are the normal (build=host) settings:
12832 CC_FOR_BUILD
='$(CC)'
12833 CXX_FOR_BUILD
='$(CXX)'
12834 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12835 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12836 BUILD_LDFLAGS
='$(LDFLAGS)'
12837 STMP_FIXINC
=stmp-fixinc
12839 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12840 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12842 # And these apply if build != host, or we are generating coverage data
12843 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12845 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12846 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12847 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12849 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12850 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12851 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12852 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12857 # Expand extra_headers to include complete path.
12858 # This substitutes for lots of t-* files.
12859 extra_headers_list
=
12860 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12861 for file in ${extra_headers} ; do
12862 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12865 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12866 if test x
"$use_gcc_tgmath" = xyes
12867 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12870 # Define collect2 in Makefile.
12871 case $host_can_use_collect2 in
12873 *) collect2
='collect2$(exeext)' ;;
12877 # Add a definition of USE_COLLECT2 if system wants one.
12878 case $use_collect2 in
12879 no
) use_collect2
= ;;
12882 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12883 xm_defines
="${xm_defines} USE_COLLECT2"
12884 case $host_can_use_collect2 in
12886 as_fn_error $?
"collect2 is required but cannot be built on this system" "$LINENO" 5
12893 cat >>confdefs.h
<<_ACEOF
12894 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12898 # ---------------------------
12899 # Assembler & linker features
12900 # ---------------------------
12902 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12903 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12904 # However when ld-new is first executed from the build tree, libtool will
12905 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12906 # to the build tree. While doing this we need to use the previous-stage
12907 # linker, or we have an infinite loop. The presence of a shell script as
12908 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12909 # the gcc/collect-ld script. So we need to know how libtool works, or
12910 # exec-tool will fail.
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12916 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12921 macro_version
='2.2.7a'
12922 macro_revision
='1.3134'
12936 ltmain
="$ac_aux_dir/ltmain.sh"
12938 # Backslashify metacharacters that are still active within
12939 # double-quoted strings.
12940 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12942 # Same as above, but do not quote variable references.
12943 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12945 # Sed substitution to delay expansion of an escaped shell variable in a
12946 # double_quote_subst'ed string.
12947 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12949 # Sed substitution to delay expansion of an escaped single quote.
12950 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12952 # Sed substitution to avoid accidental globbing in evaled expressions
12953 no_glob_subst
='s/\*/\\\*/g'
12955 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12956 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12957 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12960 $as_echo_n "checking how to print strings... " >&6; }
12961 # Test print first, because it will be a builtin if present.
12962 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12963 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12965 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12968 # Use this function as a fallback that always works.
12969 func_fallback_echo ()
12971 eval 'cat <<_LTECHO_EOF
12975 ECHO='func_fallback_echo
'
12978 # func_echo_all arg...
12979 # Invoke $ECHO with all args, space-separated.
12986 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12987 $as_echo "printf" >&6; } ;;
12988 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12989 $as_echo "print -r" >&6; } ;;
12990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12991 $as_echo "cat" >&6; } ;;
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13008 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13009 if ${ac_cv_path_SED+:} false; then :
13010 $as_echo_n "(cached) " >&6
13012 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13013 for ac_i in 1 2 3 4 5 6 7; do
13014 ac_script="$ac_script$as_nl$ac_script"
13016 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13017 { ac_script=; unset ac_script;}
13018 if test -z "$SED"; then
13019 ac_path_SED_found=false
13020 # Loop through the user's path and
test for each of PROGNAME-LIST
13021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13022 for as_dir
in $PATH
13025 test -z "$as_dir" && as_dir
=.
13026 for ac_prog
in sed gsed
; do
13027 for ac_exec_ext
in '' $ac_executable_extensions; do
13028 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13029 as_fn_executable_p
"$ac_path_SED" ||
continue
13030 # Check for GNU ac_path_SED and select it if it is found.
13031 # Check for GNU $ac_path_SED
13032 case `"$ac_path_SED" --version 2>&1` in
13034 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13037 $as_echo_n 0123456789 >"conftest.in"
13040 cat "conftest.in" "conftest.in" >"conftest.tmp"
13041 mv "conftest.tmp" "conftest.in"
13042 cp "conftest.in" "conftest.nl"
13043 $as_echo '' >> "conftest.nl"
13044 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13045 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13046 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13047 if test $ac_count -gt ${ac_path_SED_max-0}; then
13048 # Best one so far, save it but keep looking for a better one
13049 ac_cv_path_SED
="$ac_path_SED"
13050 ac_path_SED_max
=$ac_count
13052 # 10*(2^10) chars as input seems more than enough
13053 test $ac_count -gt 10 && break
13055 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13058 $ac_path_SED_found && break 3
13063 if test -z "$ac_cv_path_SED"; then
13064 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13067 ac_cv_path_SED
=$SED
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13072 $as_echo "$ac_cv_path_SED" >&6; }
13073 SED
="$ac_cv_path_SED"
13076 test -z "$SED" && SED
=sed
13077 Xsed
="$SED -e 1s/^X//"
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13090 $as_echo_n "checking for fgrep... " >&6; }
13091 if ${ac_cv_path_FGREP+:} false
; then :
13092 $as_echo_n "(cached) " >&6
13094 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
13095 then ac_cv_path_FGREP
="$GREP -F"
13097 if test -z "$FGREP"; then
13098 ac_path_FGREP_found
=false
13099 # Loop through the user's path and test for each of PROGNAME-LIST
13100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13101 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
13104 test -z "$as_dir" && as_dir
=.
13105 for ac_prog
in fgrep
; do
13106 for ac_exec_ext
in '' $ac_executable_extensions; do
13107 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
13108 as_fn_executable_p
"$ac_path_FGREP" ||
continue
13109 # Check for GNU ac_path_FGREP and select it if it is found.
13110 # Check for GNU $ac_path_FGREP
13111 case `"$ac_path_FGREP" --version 2>&1` in
13113 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
13116 $as_echo_n 0123456789 >"conftest.in"
13119 cat "conftest.in" "conftest.in" >"conftest.tmp"
13120 mv "conftest.tmp" "conftest.in"
13121 cp "conftest.in" "conftest.nl"
13122 $as_echo 'FGREP' >> "conftest.nl"
13123 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13124 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13125 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13126 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13127 # Best one so far, save it but keep looking for a better one
13128 ac_cv_path_FGREP
="$ac_path_FGREP"
13129 ac_path_FGREP_max
=$ac_count
13131 # 10*(2^10) chars as input seems more than enough
13132 test $ac_count -gt 10 && break
13134 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13137 $ac_path_FGREP_found && break 3
13142 if test -z "$ac_cv_path_FGREP"; then
13143 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13146 ac_cv_path_FGREP
=$FGREP
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13152 $as_echo "$ac_cv_path_FGREP" >&6; }
13153 FGREP
="$ac_cv_path_FGREP"
13156 test -z "$GREP" && GREP
=grep
13176 # Check whether --with-gnu-ld was given.
13177 if test "${with_gnu_ld+set}" = set; then :
13178 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
13184 if test "$GCC" = yes; then
13185 # Check if gcc -print-prog-name=ld gives a path.
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13187 $as_echo_n "checking for ld used by $CC... " >&6; }
13190 # gcc leaves a trailing carriage return which upsets mingw
13191 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13193 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
13196 # Accept absolute paths.
13198 re_direlt
='/[^/][^/]*/\.\./'
13199 # Canonicalize the pathname of ld
13200 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13201 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
13202 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13204 test -z "$LD" && LD
="$ac_prog"
13207 # If it fails, then pretend we aren't using GCC.
13211 # If it is relative, then search for the first ld in PATH.
13212 with_gnu_ld
=unknown
13215 elif test "$with_gnu_ld" = yes; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13217 $as_echo_n "checking for GNU ld... " >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13220 $as_echo_n "checking for non-GNU ld... " >&6; }
13222 if ${lt_cv_path_LD+:} false
; then :
13223 $as_echo_n "(cached) " >&6
13225 if test -z "$LD"; then
13226 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13227 for ac_dir
in $PATH; do
13229 test -z "$ac_dir" && ac_dir
=.
13230 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
13231 lt_cv_path_LD
="$ac_dir/$ac_prog"
13232 # Check to see if the program is GNU ld. I'd rather use --version,
13233 # but apparently some variants of GNU ld only accept -v.
13234 # Break only if it was the GNU/non-GNU ld that we prefer.
13235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13236 *GNU
* |
*'with BFD'*)
13237 test "$with_gnu_ld" != no
&& break
13240 test "$with_gnu_ld" != yes && break
13247 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
13251 LD
="$lt_cv_path_LD"
13252 if test -n "$LD"; then
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13254 $as_echo "$LD" >&6; }
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13257 $as_echo "no" >&6; }
13259 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13261 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13262 if ${lt_cv_prog_gnu_ld+:} false
; then :
13263 $as_echo_n "(cached) " >&6
13265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13266 case `$LD -v 2>&1 </dev/null` in
13267 *GNU
* |
*'with BFD'*)
13268 lt_cv_prog_gnu_ld
=yes
13271 lt_cv_prog_gnu_ld
=no
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13276 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13277 with_gnu_ld
=$lt_cv_prog_gnu_ld
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13288 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13289 if ${lt_cv_path_NM+:} false
; then :
13290 $as_echo_n "(cached) " >&6
13292 if test -n "$NM"; then
13293 # Let the user override the test.
13294 lt_cv_path_NM
="$NM"
13296 lt_nm_to_check
="${ac_tool_prefix}nm"
13297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13298 lt_nm_to_check
="$lt_nm_to_check nm"
13300 for lt_tmp_nm
in $lt_nm_to_check; do
13301 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
13302 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
13304 test -z "$ac_dir" && ac_dir
=.
13305 tmp_nm
="$ac_dir/$lt_tmp_nm"
13306 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
13307 # Check to see if the nm accepts a BSD-compat flag.
13308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13309 # nm: unknown option "B" ignored
13310 # Tru64's nm complains that /dev/null is an invalid object file
13311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13312 */dev
/null
* |
*'Invalid file or object type'*)
13313 lt_cv_path_NM
="$tmp_nm -B"
13317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13319 lt_cv_path_NM
="$tmp_nm -p"
13323 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13324 continue # so that we can try to find one that supports BSD flags
13333 : ${lt_cv_path_NM=no}
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13337 $as_echo "$lt_cv_path_NM" >&6; }
13338 if test "$lt_cv_path_NM" != "no"; then
13339 NM
="$lt_cv_path_NM"
13341 # Didn't find any BSD compatible name lister, look for dumpbin.
13342 if test -n "$DUMPBIN"; then :
13343 # Let the user override the test.
13345 if test -n "$ac_tool_prefix"; then
13346 for ac_prog
in dumpbin
"link -dump"
13348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13349 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13351 $as_echo_n "checking for $ac_word... " >&6; }
13352 if ${ac_cv_prog_DUMPBIN+:} false
; then :
13353 $as_echo_n "(cached) " >&6
13355 if test -n "$DUMPBIN"; then
13356 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
13358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13359 for as_dir
in $PATH
13362 test -z "$as_dir" && as_dir
=.
13363 for ac_exec_ext
in '' $ac_executable_extensions; do
13364 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375 DUMPBIN
=$ac_cv_prog_DUMPBIN
13376 if test -n "$DUMPBIN"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13378 $as_echo "$DUMPBIN" >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13381 $as_echo "no" >&6; }
13385 test -n "$DUMPBIN" && break
13388 if test -z "$DUMPBIN"; then
13389 ac_ct_DUMPBIN
=$DUMPBIN
13390 for ac_prog
in dumpbin
"link -dump"
13392 # Extract the first word of "$ac_prog", so it can be a program name with args.
13393 set dummy
$ac_prog; ac_word
=$2
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13395 $as_echo_n "checking for $ac_word... " >&6; }
13396 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
13397 $as_echo_n "(cached) " >&6
13399 if test -n "$ac_ct_DUMPBIN"; then
13400 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
13402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13403 for as_dir
in $PATH
13406 test -z "$as_dir" && as_dir
=.
13407 for ac_exec_ext
in '' $ac_executable_extensions; do
13408 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
13409 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
13410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13419 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
13420 if test -n "$ac_ct_DUMPBIN"; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13422 $as_echo "$ac_ct_DUMPBIN" >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13429 test -n "$ac_ct_DUMPBIN" && break
13432 if test "x$ac_ct_DUMPBIN" = x
; then
13435 case $cross_compiling:$ac_tool_warned in
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439 ac_tool_warned
=yes ;;
13441 DUMPBIN
=$ac_ct_DUMPBIN
13445 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
13447 DUMPBIN
="$DUMPBIN -symbols"
13455 if test "$DUMPBIN" != ":"; then
13459 test -z "$NM" && NM
=nm
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13467 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13468 if ${lt_cv_nm_interface+:} false
; then :
13469 $as_echo_n "(cached) " >&6
13471 lt_cv_nm_interface
="BSD nm"
13472 echo "int some_variable = 0;" > conftest.
$ac_ext
13473 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13474 (eval "$ac_compile" 2>conftest.err
)
13475 cat conftest.err
>&5
13476 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13477 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13478 cat conftest.err
>&5
13479 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13480 cat conftest.out
>&5
13481 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13482 lt_cv_nm_interface
="MS dumpbin"
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13487 $as_echo "$lt_cv_nm_interface" >&6; }
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13490 $as_echo_n "checking whether ln -s works... " >&6; }
13492 if test "$LN_S" = "ln -s"; then
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13494 $as_echo "yes" >&6; }
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13497 $as_echo "no, using $LN_S" >&6; }
13500 # find the maximum length of command line arguments
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13502 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13503 if ${lt_cv_sys_max_cmd_len+:} false
; then :
13504 $as_echo_n "(cached) " >&6
13511 # On DJGPP, this test can blow up pretty badly due to problems in libc
13512 # (any single argument exceeding 2000 bytes causes a buffer overrun
13513 # during glob expansion). Even if it were fixed, the result of this
13514 # check would be larger than it should be.
13515 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13519 # Under GNU Hurd, this test is not required because there is
13520 # no limit to the length of command line arguments.
13521 # Libtool will interpret -1 as no limit whatsoever
13522 lt_cv_sys_max_cmd_len
=-1;
13525 cygwin
* | mingw
* | cegcc
*)
13526 # On Win9x/ME, this test blows up -- it succeeds, but takes
13527 # about 5 minutes as the teststring grows exponentially.
13528 # Worse, since 9x/ME are not pre-emptively multitasking,
13529 # you end up with a "frozen" computer, even though with patience
13530 # the test eventually succeeds (with a max line length of 256k).
13531 # Instead, let's just punt: use the minimum linelength reported by
13532 # all of the supported platforms: 8192 (on NT/2K/XP).
13533 lt_cv_sys_max_cmd_len
=8192;
13537 # On MiNT this can take a long time and run out of memory.
13538 lt_cv_sys_max_cmd_len
=8192;
13542 # On AmigaOS with pdksh, this test takes hours, literally.
13543 # So we just punt and use a minimum line length of 8192.
13544 lt_cv_sys_max_cmd_len
=8192;
13547 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13548 # This has been around since 386BSD, at least. Likely further.
13549 if test -x /sbin
/sysctl
; then
13550 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13551 elif test -x /usr
/sbin
/sysctl
; then
13552 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13554 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13556 # And add a safety zone
13557 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13558 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13562 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13563 lt_cv_sys_max_cmd_len
=196608
13567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13569 # nice to cause kernel panics so lets avoid the loop below.
13570 # First set a reasonable default.
13571 lt_cv_sys_max_cmd_len
=16384
13573 if test -x /sbin
/sysconfig
; then
13574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13575 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13580 lt_cv_sys_max_cmd_len
=102400
13582 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13583 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13584 if test -n "$kargmax"; then
13585 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13587 lt_cv_sys_max_cmd_len
=32768
13591 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13592 if test -n "$lt_cv_sys_max_cmd_len"; then
13593 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13594 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13596 # Make teststring a little bigger before we do anything with it.
13597 # a 1K string should be a reasonable start.
13598 for i
in 1 2 3 4 5 6 7 8 ; do
13599 teststring
=$teststring$teststring
13601 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13602 # If test is not a shell built-in, we'll probably end up computing a
13603 # maximum length that is only half of the actual maximum length, but
13605 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13606 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13607 test $i != 17 # 1/2 MB should be enough
13610 teststring
=$teststring$teststring
13612 # Only check the string length outside the loop.
13613 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13615 # Add a significant safety factor because C++ compilers can tack on
13616 # massive amounts of additional arguments before passing them to the
13617 # linker. It appears as though 1/2 is a usable value.
13618 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13625 if test -n $lt_cv_sys_max_cmd_len ; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13627 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13630 $as_echo "none" >&6; }
13632 max_cmd_len
=$lt_cv_sys_max_cmd_len
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13644 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13645 # Try some XSI features
13647 ( _lt_dummy
="a/b/c"
13648 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13650 && eval 'test $(( 1 + 1 )) -eq 2 \
13651 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13654 $as_echo "$xsi_shell" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13658 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13660 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13662 && lt_shell_append=yes
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13664 $as_echo "$lt_shell_append" >&6; }
13667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13677 # test EBCDIC or ASCII
13678 case `echo X|tr X '\101'` in
13679 A) # ASCII based system
13680 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13681 lt_SP2NL='tr \040 \012'
13682 lt_NL2SP='tr \015\012 \040\040'
13684 *) # EBCDIC based system
13685 lt_SP2NL='tr \100 \n'
13686 lt_NL2SP='tr \r\n \100\100'
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13699 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13700 if ${lt_cv_ld_reload_flag+:} false; then :
13701 $as_echo_n "(cached
) " >&6
13703 lt_cv_ld_reload_flag='-r'
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13706 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13707 reload_flag=$lt_cv_ld_reload_flag
13708 case $reload_flag in
13710 *) reload_flag=" $reload_flag" ;;
13712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13715 if test "$GCC" = yes; then
13716 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13718 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13731 if test -n "$ac_tool_prefix"; then
13732 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13733 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13735 $as_echo_n "checking
for $ac_word...
" >&6; }
13736 if ${ac_cv_prog_OBJDUMP+:} false; then :
13737 $as_echo_n "(cached
) " >&6
13739 if test -n "$OBJDUMP"; then
13740 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13759 OBJDUMP=$ac_cv_prog_OBJDUMP
13760 if test -n "$OBJDUMP"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13762 $as_echo "$OBJDUMP" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13765 $as_echo "no
" >&6; }
13770 if test -z "$ac_cv_prog_OBJDUMP"; then
13771 ac_ct_OBJDUMP=$OBJDUMP
13772 # Extract the first word of "objdump
", so it can be a program name with args.
13773 set dummy objdump; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13775 $as_echo_n "checking
for $ac_word...
" >&6; }
13776 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13777 $as_echo_n "(cached
) " >&6
13779 if test -n "$ac_ct_OBJDUMP"; then
13780 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13789 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13799 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13800 if test -n "$ac_ct_OBJDUMP"; then
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13802 $as_echo "$ac_ct_OBJDUMP" >&6; }
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13805 $as_echo "no
" >&6; }
13808 if test "x
$ac_ct_OBJDUMP" = x; then
13811 case $cross_compiling:$ac_tool_warned in
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13814 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13815 ac_tool_warned=yes ;;
13817 OBJDUMP=$ac_ct_OBJDUMP
13820 OBJDUMP="$ac_cv_prog_OBJDUMP"
13823 test -z "$OBJDUMP" && OBJDUMP=objdump
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13834 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13835 if ${lt_cv_deplibs_check_method+:} false; then :
13836 $as_echo_n "(cached
) " >&6
13838 lt_cv_file_magic_cmd='$MAGIC_CMD'
13839 lt_cv_file_magic_test_file=
13840 lt_cv_deplibs_check_method='unknown'
13841 # Need to set the preceding variable on all platforms that support
13842 # interlibrary dependencies.
13843 # 'none' -- dependencies not supported.
13844 # `unknown' -- same as none, but documents that we really don't know.
13845 # 'pass_all' -- all dependencies passed with no checks.
13846 # 'test_compile' -- check by making test program.
13847 # 'file_magic [[regex]]' -- check by looking for files in library path
13848 # which responds to the $file_magic_cmd with a given extended regex.
13849 # If you have `file' or equivalent on your system and you're not sure
13850 # whether `pass_all' will *always* work, you probably want this one.
13854 lt_cv_deplibs_check_method=pass_all
13858 lt_cv_deplibs_check_method=pass_all
13862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13863 lt_cv_file_magic_cmd='/usr/bin/file -L'
13864 lt_cv_file_magic_test_file=/shlib/libc.so
13868 # func_win32_libid is a shell function defined in ltmain.sh
13869 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13870 lt_cv_file_magic_cmd='func_win32_libid'
13874 # Base MSYS/MinGW do not provide the 'file' command needed by
13875 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13876 # unless we find 'file', for example because we are cross-compiling.
13877 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13878 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13879 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13880 lt_cv_file_magic_cmd='func_win32_libid'
13882 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13883 lt_cv_file_magic_cmd='$OBJDUMP -f'
13888 # use the weaker test based on 'objdump'. See mingw*.
13889 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13890 lt_cv_file_magic_cmd='$OBJDUMP -f'
13893 darwin* | rhapsody*)
13894 lt_cv_deplibs_check_method=pass_all
13897 freebsd* | dragonfly*)
13898 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13901 # Not sure whether the presence of OpenBSD here was a mistake.
13902 # Let's accept both of them until this is cleared up.
13903 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13904 lt_cv_file_magic_cmd=/usr/bin/file
13905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13909 lt_cv_deplibs_check_method=pass_all
13914 lt_cv_deplibs_check_method=pass_all
13918 lt_cv_deplibs_check_method=pass_all
13921 hpux10.20* | hpux11*)
13922 lt_cv_file_magic_cmd=/usr/bin/file
13925 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13926 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13929 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]'
13930 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13933 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13934 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13940 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13944 irix5* | irix6* | nonstopux*)
13946 *-32|*"-32 ") libmagic=32-bit;;
13947 *-n32|*"-n32 ") libmagic=N32;;
13948 *-64|*"-64 ") libmagic=64-bit;;
13949 *) libmagic=never-match;;
13951 lt_cv_deplibs_check_method=pass_all
13954 # This must be Linux ELF.
13955 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13956 lt_cv_deplibs_check_method=pass_all
13960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13963 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13968 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13969 lt_cv_file_magic_cmd=/usr/bin/file
13970 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13974 lt_cv_deplibs_check_method=pass_all
13978 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13981 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13985 osf3* | osf4* | osf5*)
13986 lt_cv_deplibs_check_method=pass_all
13990 lt_cv_deplibs_check_method=pass_all
13994 lt_cv_deplibs_check_method=pass_all
13997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13998 lt_cv_deplibs_check_method=pass_all
14002 case $host_vendor in
14004 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]'
14005 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14008 lt_cv_deplibs_check_method=pass_all
14011 lt_cv_file_magic_cmd='/bin/file'
14012 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14015 lt_cv_file_magic_cmd='/bin/file'
14016 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
14017 lt_cv_file_magic_test_file=/lib/libc.so
14020 lt_cv_deplibs_check_method=pass_all
14023 lt_cv_deplibs_check_method=pass_all
14029 lt_cv_deplibs_check_method=pass_all
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
14035 $as_echo "$lt_cv_deplibs_check_method" >&6; }
14036 file_magic_cmd=$lt_cv_file_magic_cmd
14037 deplibs_check_method=$lt_cv_deplibs_check_method
14038 test -z "$deplibs_check_method" && deplibs_check_method=unknown
14051 if test -n "$ac_tool_prefix"; then
14052 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14053 set dummy ${ac_tool_prefix}ar; ac_word=$2
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14055 $as_echo_n "checking
for $ac_word...
" >&6; }
14056 if ${ac_cv_prog_AR+:} false; then :
14057 $as_echo_n "(cached
) " >&6
14059 if test -n "$AR"; then
14060 ac_cv_prog_AR="$AR" # Let the user override the test.
14062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14063 for as_dir in $PATH
14066 test -z "$as_dir" && as_dir=.
14067 for ac_exec_ext in '' $ac_executable_extensions; do
14068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14069 ac_cv_prog_AR="${ac_tool_prefix}ar"
14070 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14080 if test -n "$AR"; then
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14082 $as_echo "$AR" >&6; }
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14085 $as_echo "no
" >&6; }
14090 if test -z "$ac_cv_prog_AR"; then
14092 # Extract the first word of "ar", so it can be a program name with args.
14093 set dummy ar; ac_word=$2
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14095 $as_echo_n "checking
for $ac_word...
" >&6; }
14096 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14097 $as_echo_n "(cached
) " >&6
14099 if test -n "$ac_ct_AR"; then
14100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14103 for as_dir in $PATH
14106 test -z "$as_dir" && as_dir=.
14107 for ac_exec_ext in '' $ac_executable_extensions; do
14108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14109 ac_cv_prog_ac_ct_AR="ar"
14110 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14120 if test -n "$ac_ct_AR"; then
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14122 $as_echo "$ac_ct_AR" >&6; }
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14125 $as_echo "no
" >&6; }
14128 if test "x
$ac_ct_AR" = x; then
14131 case $cross_compiling:$ac_tool_warned in
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14134 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14135 ac_tool_warned=yes ;;
14140 AR="$ac_cv_prog_AR"
14143 test -z "$AR" && AR=ar
14144 test -z "$AR_FLAGS" && AR_FLAGS=cru
14156 if test -n "$ac_tool_prefix"; then
14157 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
14158 set dummy ${ac_tool_prefix}strip; ac_word=$2
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14160 $as_echo_n "checking
for $ac_word...
" >&6; }
14161 if ${ac_cv_prog_STRIP+:} false; then :
14162 $as_echo_n "(cached
) " >&6
14164 if test -n "$STRIP"; then
14165 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14168 for as_dir in $PATH
14171 test -z "$as_dir" && as_dir=.
14172 for ac_exec_ext in '' $ac_executable_extensions; do
14173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14174 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
14175 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14184 STRIP=$ac_cv_prog_STRIP
14185 if test -n "$STRIP"; then
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
14187 $as_echo "$STRIP" >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14190 $as_echo "no
" >&6; }
14195 if test -z "$ac_cv_prog_STRIP"; then
14197 # Extract the first word of "strip
", so it can be a program name with args.
14198 set dummy strip; ac_word=$2
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14200 $as_echo_n "checking
for $ac_word...
" >&6; }
14201 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14202 $as_echo_n "(cached
) " >&6
14204 if test -n "$ac_ct_STRIP"; then
14205 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208 for as_dir in $PATH
14211 test -z "$as_dir" && as_dir=.
14212 for ac_exec_ext in '' $ac_executable_extensions; do
14213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14214 ac_cv_prog_ac_ct_STRIP="strip
"
14215 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14224 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14225 if test -n "$ac_ct_STRIP"; then
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
14227 $as_echo "$ac_ct_STRIP" >&6; }
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14230 $as_echo "no
" >&6; }
14233 if test "x
$ac_ct_STRIP" = x; then
14236 case $cross_compiling:$ac_tool_warned in
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14239 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14240 ac_tool_warned=yes ;;
14245 STRIP="$ac_cv_prog_STRIP"
14248 test -z "$STRIP" && STRIP=:
14255 if test -n "$ac_tool_prefix"; then
14256 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
14257 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14259 $as_echo_n "checking
for $ac_word...
" >&6; }
14260 if ${ac_cv_prog_RANLIB+:} false; then :
14261 $as_echo_n "(cached
) " >&6
14263 if test -n "$RANLIB"; then
14264 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267 for as_dir in $PATH
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14273 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
14274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14283 RANLIB=$ac_cv_prog_RANLIB
14284 if test -n "$RANLIB"; then
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
14286 $as_echo "$RANLIB" >&6; }
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14289 $as_echo "no
" >&6; }
14294 if test -z "$ac_cv_prog_RANLIB"; then
14295 ac_ct_RANLIB=$RANLIB
14296 # Extract the first word of "ranlib
", so it can be a program name with args.
14297 set dummy ranlib; ac_word=$2
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14299 $as_echo_n "checking
for $ac_word...
" >&6; }
14300 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14301 $as_echo_n "(cached
) " >&6
14303 if test -n "$ac_ct_RANLIB"; then
14304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14307 for as_dir in $PATH
14310 test -z "$as_dir" && as_dir=.
14311 for ac_exec_ext in '' $ac_executable_extensions; do
14312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14313 ac_cv_prog_ac_ct_RANLIB="ranlib
"
14314 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14324 if test -n "$ac_ct_RANLIB"; then
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
14326 $as_echo "$ac_ct_RANLIB" >&6; }
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14329 $as_echo "no
" >&6; }
14332 if test "x
$ac_ct_RANLIB" = x; then
14335 case $cross_compiling:$ac_tool_warned in
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14338 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14339 ac_tool_warned=yes ;;
14341 RANLIB=$ac_ct_RANLIB
14344 RANLIB="$ac_cv_prog_RANLIB"
14347 test -z "$RANLIB" && RANLIB=:
14354 # Determine commands to create old-style static archives.
14355 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14356 old_postinstall_cmds='chmod 644 $oldlib'
14357 old_postuninstall_cmds=
14359 if test -n "$RANLIB"; then
14362 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
14365 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
14368 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
14373 lock_old_archive_extraction=yes ;;
14375 lock_old_archive_extraction=no ;;
14416 # If no C compiler was specified, use CC.
14419 # If no C compiler flags were specified, use CFLAGS.
14420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14422 # Allow CC to be a program name with arguments.
14426 # Check for command to grab the raw symbol name followed by C symbol from nm.
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
14428 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
14429 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14430 $as_echo_n "(cached
) " >&6
14433 # These are sane defaults that work on at least a few old systems.
14434 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
14436 # Character class describing NM global symbol codes.
14437 symcode='[BCDEGRST]'
14439 # Regexp to match symbols that can be accessed directly from C.
14440 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14442 # Define system-specific variables.
14447 cygwin* | mingw* | pw32* | cegcc*)
14448 symcode='[ABCDGISTW]'
14451 if test "$host_cpu" = ia64; then
14452 symcode='[ABCDEGRST]'
14455 irix* | nonstopux*)
14456 symcode='[BCDEGRST]'
14459 symcode='[BCDEGQRST]'
14470 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14478 # If we're using GNU nm, then use its standard symbol codes.
14479 case `$NM -V 2>&1` in
14480 *GNU* | *'with BFD'*)
14481 symcode='[ABCDGIRSTW]' ;;
14484 # Transform an extracted symbol line into a proper C declaration.
14485 # Some systems (esp. on ia64) link data and code symbols differently,
14486 # so use this general approach.
14487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14489 # Transform an extracted symbol line into symbol name and symbol address
14490 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14491 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'"
14493 # Handle CRLF in mingw tool chain
14497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14501 # Try without a prefix underscore, then with it.
14502 for ac_symprfx in "" "_
"; do
14504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14505 symxfrm="\\1 $ac_symprfx\\2 \\2"
14507 # Write the raw and C identifiers.
14508 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14509 # Fake it for dumpbin and say T for any non-static function
14510 # and D for any global variable.
14511 # Also find C++ and __fastcall symbols from MSVC++,
14512 # which start with @ or ?.
14513 lt_cv_sys_global_symbol_pipe="$AWK '"\
14514 " {last_section=section; section=\$ 3};"\
14515 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14516 " \$ 0!~/External *\|/{next};"\
14517 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14518 " {if(hide[section]) next};"\
14519 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14520 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14521 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14522 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14523 " ' prfx
=^
$ac_symprfx"
14525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14528 # Check to see that the pipe works correctly.
14532 cat > conftest.$ac_ext <<_LT_EOF
14537 void nm_test_func(void);
14538 void nm_test_func(void){}
14542 int main(){nm_test_var='a';nm_test_func();return(0);}
14545 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14546 (eval $ac_compile) 2>&5
14548 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14549 test $ac_status = 0; }; then
14550 # Now try to grab the symbols.
14552 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14553 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14555 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14556 test $ac_status = 0; } && test -s "$nlist"; then
14557 # Try sorting and uniquifying the output.
14558 if sort "$nlist" | uniq > "$nlist"T; then
14559 mv -f "$nlist"T "$nlist"
14564 # Make sure that we snagged all the symbols we need.
14565 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14566 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14567 cat <<_LT_EOF > conftest.$ac_ext
14573 # Now generate the symbol file.
14574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14576 cat <<_LT_EOF >> conftest.$ac_ext
14578 /* The mapping between symbol names and symbols. */
14583 lt__PROGRAM__LTX_preloaded_symbols[] =
14585 { "@PROGRAM@
", (void *) 0 },
14587 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14588 cat <<\_LT_EOF >> conftest.$ac_ext
14592 /* This works around a problem in FreeBSD linker */
14593 #ifdef FREEBSD_WORKAROUND
14594 static const void *lt_preloaded_setup() {
14595 return lt__PROGRAM__LTX_preloaded_symbols;
14603 # Now try linking the two files.
14604 mv conftest.$ac_objext conftstm.$ac_objext
14605 lt_save_LIBS="$LIBS"
14606 lt_save_CFLAGS="$CFLAGS"
14607 LIBS="conftstm.
$ac_objext"
14608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14609 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14610 (eval $ac_link) 2>&5
14612 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14613 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14616 LIBS="$lt_save_LIBS"
14617 CFLAGS="$lt_save_CFLAGS"
14619 echo "cannot
find nm_test_func
in $nlist" >&5
14622 echo "cannot
find nm_test_var
in $nlist" >&5
14625 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14628 echo "$progname: failed program was
:" >&5
14629 cat conftest.$ac_ext >&5
14631 rm -rf conftest* conftst*
14633 # Do not use the global_symbol_pipe unless it works.
14634 if test "$pipe_works" = yes; then
14637 lt_cv_sys_global_symbol_pipe=
14643 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14644 lt_cv_sys_global_symbol_to_cdecl=
14646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14648 $as_echo "failed
" >&6; }
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14651 $as_echo "ok
" >&6; }
14675 # Check whether --enable-libtool-lock was given.
14676 if test "${enable_libtool_lock+set}" = set; then :
14677 enableval=$enable_libtool_lock;
14680 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14682 # Some flags need to be propagated to the compiler or linker for good
14686 # Find out which ABI we are using.
14687 echo 'int i;' > conftest.$ac_ext
14688 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14689 (eval $ac_compile) 2>&5
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14692 test $ac_status = 0; }; then
14693 case `/usr/bin/file conftest.$ac_objext` in
14695 HPUX_IA64_MODE="32"
14698 HPUX_IA64_MODE="64"
14705 # Find out which ABI we are using.
14706 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14707 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14708 (eval $ac_compile) 2>&5
14710 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14711 test $ac_status = 0; }; then
14712 if test "$lt_cv_prog_gnu_ld" = yes; then
14713 case `/usr/bin/file conftest.$ac_objext` in
14715 LD="${LD-ld} -melf32bsmip"
14718 LD="${LD-ld} -melf32bmipn32"
14721 LD="${LD-ld} -melf64bmip"
14725 case `/usr/bin/file conftest.$ac_objext` in
14741 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14742 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14743 # Find out which ABI we are using.
14744 echo 'int i;' > conftest.$ac_ext
14745 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14746 (eval $ac_compile) 2>&5
14748 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14749 test $ac_status = 0; }; then
14750 case `/usr/bin/file conftest.o` in
14753 x86_64-*kfreebsd*-gnu)
14754 LD="${LD-ld} -m elf_i386_fbsd
"
14757 case `/usr/bin/file conftest.o` in
14759 LD="${LD-ld} -m elf32_x86_64
"
14762 LD="${LD-ld} -m elf_i386
"
14766 powerpc64le-*linux*)
14767 LD="${LD-ld} -m elf32lppclinux
"
14770 LD="${LD-ld} -m elf32ppclinux
"
14773 LD="${LD-ld} -m elf_s390
"
14776 LD="${LD-ld} -m elf32_sparc
"
14782 x86_64-*kfreebsd*-gnu)
14783 LD="${LD-ld} -m elf_x86_64_fbsd
"
14786 LD="${LD-ld} -m elf_x86_64
"
14789 LD="${LD-ld} -m elf64lppc
"
14792 LD="${LD-ld} -m elf64ppc
"
14794 s390*-*linux*|s390*-*tpf*)
14795 LD="${LD-ld} -m elf64_s390
"
14798 LD="${LD-ld} -m elf64_sparc
"
14808 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14809 SAVE_CFLAGS="$CFLAGS"
14810 CFLAGS="$CFLAGS -belf"
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14812 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14813 if ${lt_cv_cc_needs_belf+:} false; then :
14814 $as_echo_n "(cached
) " >&6
14817 ac_cpp='$CPP $CPPFLAGS'
14818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14823 /* end confdefs.h. */
14833 if ac_fn_c_try_link "$LINENO"; then :
14834 lt_cv_cc_needs_belf=yes
14836 lt_cv_cc_needs_belf=no
14838 rm -f core conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14841 ac_cpp='$CPP $CPPFLAGS'
14842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14848 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14851 CFLAGS="$SAVE_CFLAGS"
14855 # Find out which ABI we are using.
14856 echo 'int i;' > conftest.$ac_ext
14857 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14858 (eval $ac_compile) 2>&5
14860 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14861 test $ac_status = 0; }; then
14862 case `/usr/bin/file conftest.o` in
14864 case $lt_cv_prog_gnu_ld in
14865 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14867 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14879 need_locks="$enable_libtool_lock"
14883 rhapsody* | darwin*)
14884 if test -n "$ac_tool_prefix"; then
14885 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14886 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14888 $as_echo_n "checking
for $ac_word...
" >&6; }
14889 if ${ac_cv_prog_DSYMUTIL+:} false; then :
14890 $as_echo_n "(cached
) " >&6
14892 if test -n "$DSYMUTIL"; then
14893 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14896 for as_dir in $PATH
14899 test -z "$as_dir" && as_dir=.
14900 for ac_exec_ext in '' $ac_executable_extensions; do
14901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14902 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14912 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14913 if test -n "$DSYMUTIL"; then
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14915 $as_echo "$DSYMUTIL" >&6; }
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14918 $as_echo "no
" >&6; }
14923 if test -z "$ac_cv_prog_DSYMUTIL"; then
14924 ac_ct_DSYMUTIL=$DSYMUTIL
14925 # Extract the first word of "dsymutil
", so it can be a program name with args.
14926 set dummy dsymutil; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14928 $as_echo_n "checking
for $ac_word...
" >&6; }
14929 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14930 $as_echo_n "(cached
) " >&6
14932 if test -n "$ac_ct_DSYMUTIL"; then
14933 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936 for as_dir in $PATH
14939 test -z "$as_dir" && as_dir=.
14940 for ac_exec_ext in '' $ac_executable_extensions; do
14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14942 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14943 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14952 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14953 if test -n "$ac_ct_DSYMUTIL"; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14955 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14958 $as_echo "no
" >&6; }
14961 if test "x
$ac_ct_DSYMUTIL" = x; then
14964 case $cross_compiling:$ac_tool_warned in
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14967 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14968 ac_tool_warned=yes ;;
14970 DSYMUTIL=$ac_ct_DSYMUTIL
14973 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14976 if test -n "$ac_tool_prefix"; then
14977 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14978 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14980 $as_echo_n "checking
for $ac_word...
" >&6; }
14981 if ${ac_cv_prog_NMEDIT+:} false; then :
14982 $as_echo_n "(cached
) " >&6
14984 if test -n "$NMEDIT"; then
14985 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988 for as_dir in $PATH
14991 test -z "$as_dir" && as_dir=.
14992 for ac_exec_ext in '' $ac_executable_extensions; do
14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14994 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15004 NMEDIT=$ac_cv_prog_NMEDIT
15005 if test -n "$NMEDIT"; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
15007 $as_echo "$NMEDIT" >&6; }
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15010 $as_echo "no
" >&6; }
15015 if test -z "$ac_cv_prog_NMEDIT"; then
15016 ac_ct_NMEDIT=$NMEDIT
15017 # Extract the first word of "nmedit
", so it can be a program name with args.
15018 set dummy nmedit; ac_word=$2
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15020 $as_echo_n "checking
for $ac_word...
" >&6; }
15021 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15022 $as_echo_n "(cached
) " >&6
15024 if test -n "$ac_ct_NMEDIT"; then
15025 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15028 for as_dir in $PATH
15031 test -z "$as_dir" && as_dir=.
15032 for ac_exec_ext in '' $ac_executable_extensions; do
15033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15034 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
15035 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15044 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15045 if test -n "$ac_ct_NMEDIT"; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
15047 $as_echo "$ac_ct_NMEDIT" >&6; }
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15050 $as_echo "no
" >&6; }
15053 if test "x
$ac_ct_NMEDIT" = x; then
15056 case $cross_compiling:$ac_tool_warned in
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15059 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15060 ac_tool_warned=yes ;;
15062 NMEDIT=$ac_ct_NMEDIT
15065 NMEDIT="$ac_cv_prog_NMEDIT"
15068 if test -n "$ac_tool_prefix"; then
15069 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
15070 set dummy ${ac_tool_prefix}lipo; ac_word=$2
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15072 $as_echo_n "checking
for $ac_word...
" >&6; }
15073 if ${ac_cv_prog_LIPO+:} false; then :
15074 $as_echo_n "(cached
) " >&6
15076 if test -n "$LIPO"; then
15077 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080 for as_dir in $PATH
15083 test -z "$as_dir" && as_dir=.
15084 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15086 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
15087 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15096 LIPO=$ac_cv_prog_LIPO
15097 if test -n "$LIPO"; then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
15099 $as_echo "$LIPO" >&6; }
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15102 $as_echo "no
" >&6; }
15107 if test -z "$ac_cv_prog_LIPO"; then
15109 # Extract the first word of "lipo
", so it can be a program name with args.
15110 set dummy lipo; ac_word=$2
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15112 $as_echo_n "checking
for $ac_word...
" >&6; }
15113 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15114 $as_echo_n "(cached
) " >&6
15116 if test -n "$ac_ct_LIPO"; then
15117 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15120 for as_dir in $PATH
15123 test -z "$as_dir" && as_dir=.
15124 for ac_exec_ext in '' $ac_executable_extensions; do
15125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15126 ac_cv_prog_ac_ct_LIPO="lipo
"
15127 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15136 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15137 if test -n "$ac_ct_LIPO"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
15139 $as_echo "$ac_ct_LIPO" >&6; }
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15142 $as_echo "no
" >&6; }
15145 if test "x
$ac_ct_LIPO" = x; then
15148 case $cross_compiling:$ac_tool_warned in
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15151 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15152 ac_tool_warned=yes ;;
15157 LIPO="$ac_cv_prog_LIPO"
15160 if test -n "$ac_tool_prefix"; then
15161 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
15162 set dummy ${ac_tool_prefix}otool; ac_word=$2
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15164 $as_echo_n "checking
for $ac_word...
" >&6; }
15165 if ${ac_cv_prog_OTOOL+:} false; then :
15166 $as_echo_n "(cached
) " >&6
15168 if test -n "$OTOOL"; then
15169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15175 test -z "$as_dir" && as_dir=.
15176 for ac_exec_ext in '' $ac_executable_extensions; do
15177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15178 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
15179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15188 OTOOL=$ac_cv_prog_OTOOL
15189 if test -n "$OTOOL"; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
15191 $as_echo "$OTOOL" >&6; }
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15194 $as_echo "no
" >&6; }
15199 if test -z "$ac_cv_prog_OTOOL"; then
15201 # Extract the first word of "otool
", so it can be a program name with args.
15202 set dummy otool; ac_word=$2
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15204 $as_echo_n "checking
for $ac_word...
" >&6; }
15205 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15206 $as_echo_n "(cached
) " >&6
15208 if test -n "$ac_ct_OTOOL"; then
15209 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15212 for as_dir in $PATH
15215 test -z "$as_dir" && as_dir=.
15216 for ac_exec_ext in '' $ac_executable_extensions; do
15217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15218 ac_cv_prog_ac_ct_OTOOL="otool
"
15219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15228 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15229 if test -n "$ac_ct_OTOOL"; then
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
15231 $as_echo "$ac_ct_OTOOL" >&6; }
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15234 $as_echo "no
" >&6; }
15237 if test "x
$ac_ct_OTOOL" = x; then
15240 case $cross_compiling:$ac_tool_warned in
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15243 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15244 ac_tool_warned=yes ;;
15249 OTOOL="$ac_cv_prog_OTOOL"
15252 if test -n "$ac_tool_prefix"; then
15253 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
15254 set dummy ${ac_tool_prefix}otool64; ac_word=$2
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15256 $as_echo_n "checking
for $ac_word...
" >&6; }
15257 if ${ac_cv_prog_OTOOL64+:} false; then :
15258 $as_echo_n "(cached
) " >&6
15260 if test -n "$OTOOL64"; then
15261 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15264 for as_dir in $PATH
15267 test -z "$as_dir" && as_dir=.
15268 for ac_exec_ext in '' $ac_executable_extensions; do
15269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15270 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
15271 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15280 OTOOL64=$ac_cv_prog_OTOOL64
15281 if test -n "$OTOOL64"; then
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
15283 $as_echo "$OTOOL64" >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15286 $as_echo "no
" >&6; }
15291 if test -z "$ac_cv_prog_OTOOL64"; then
15292 ac_ct_OTOOL64=$OTOOL64
15293 # Extract the first word of "otool64
", so it can be a program name with args.
15294 set dummy otool64; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15296 $as_echo_n "checking
for $ac_word...
" >&6; }
15297 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15298 $as_echo_n "(cached
) " >&6
15300 if test -n "$ac_ct_OTOOL64"; then
15301 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304 for as_dir in $PATH
15307 test -z "$as_dir" && as_dir=.
15308 for ac_exec_ext in '' $ac_executable_extensions; do
15309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15310 ac_cv_prog_ac_ct_OTOOL64="otool64
"
15311 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15320 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15321 if test -n "$ac_ct_OTOOL64"; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
15323 $as_echo "$ac_ct_OTOOL64" >&6; }
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15326 $as_echo "no
" >&6; }
15329 if test "x
$ac_ct_OTOOL64" = x; then
15332 case $cross_compiling:$ac_tool_warned in
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
15335 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
15336 ac_tool_warned=yes ;;
15338 OTOOL64=$ac_ct_OTOOL64
15341 OTOOL64="$ac_cv_prog_OTOOL64"
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
15371 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
15372 if ${lt_cv_apple_cc_single_mod+:} false; then :
15373 $as_echo_n "(cached
) " >&6
15375 lt_cv_apple_cc_single_mod=no
15376 if test -z "${LT_MULTI_MODULE}"; then
15377 # By default we will add the -single_module flag. You can override
15378 # by either setting the environment variable LT_MULTI_MODULE
15379 # non-empty at configure time, or by adding -multi_module to the
15381 rm -rf libconftest.dylib*
15382 echo "int foo
(void
){return 1;}" > conftest.c
15383 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15384 -dynamiclib -Wl,-single_module conftest.c
" >&5
15385 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15386 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15388 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
15389 lt_cv_apple_cc_single_mod=yes
15391 cat conftest.err >&5
15393 rm -rf libconftest.dylib*
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
15398 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
15400 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
15401 if ${lt_cv_ld_exported_symbols_list+:} false; then :
15402 $as_echo_n "(cached
) " >&6
15404 lt_cv_ld_exported_symbols_list=no
15405 save_LDFLAGS=$LDFLAGS
15406 echo "_main
" > conftest.sym
15407 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15419 if ac_fn_c_try_link "$LINENO"; then :
15420 lt_cv_ld_exported_symbols_list=yes
15422 lt_cv_ld_exported_symbols_list=no
15424 rm -f core conftest.err conftest.$ac_objext \
15425 conftest$ac_exeext conftest.$ac_ext
15426 LDFLAGS="$save_LDFLAGS"
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
15430 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
15432 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
15433 if ${lt_cv_ld_force_load+:} false; then :
15434 $as_echo_n "(cached
) " >&6
15436 lt_cv_ld_force_load=no
15437 cat > conftest.c << _LT_EOF
15438 int forced_loaded() { return 2;}
15440 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
15441 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15442 echo "$AR cru libconftest.a conftest.o
" >&5
15443 $AR cru libconftest.a conftest.o 2>&5
15444 cat > conftest.c << _LT_EOF
15445 int main() { return 0;}
15447 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
15448 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15450 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
15451 lt_cv_ld_force_load=yes
15453 cat conftest.err >&5
15455 rm -f conftest.err libconftest.a conftest conftest.c
15456 rm -rf conftest.dSYM
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15460 $as_echo "$lt_cv_ld_force_load" >&6; }
15462 rhapsody* | darwin1.[012])
15463 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15465 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15466 darwin*) # darwin 5.x on
15467 # if running on 10.5 or later, the deployment target defaults
15468 # to the OS version, if on x86, and 10.4, the deployment
15469 # target defaults to 10.4. Don't you love it?
15470 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15471 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15472 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15474 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15476 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15480 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15481 _lt_dar_single_mod='$single_module'
15483 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15484 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15486 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15488 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15489 _lt_dsymutil='~$DSYMUTIL $lib || :'
15497 for ac_header in dlfcn.h
15499 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15500 if test "x
$ac_cv_header_dlfcn_h" = xyes; then :
15501 cat >>confdefs.h <<_ACEOF
15502 #define HAVE_DLFCN_H 1
15519 enable_win32_dll=no
15522 # Check whether --enable-shared was given.
15523 if test "${enable_shared+set}" = set; then :
15524 enableval=$enable_shared; p=${PACKAGE-default}
15526 yes) enable_shared=yes ;;
15527 no) enable_shared=no ;;
15530 # Look at the argument we got. We use all the common list separators.
15531 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15532 for pkg in $enableval; do
15534 if test "X
$pkg" = "X
$p"; then
15553 # Check whether --enable-static was given.
15554 if test "${enable_static+set}" = set; then :
15555 enableval=$enable_static; p=${PACKAGE-default}
15557 yes) enable_static=yes ;;
15558 no) enable_static=no ;;
15561 # Look at the argument we got. We use all the common list separators.
15562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15563 for pkg in $enableval; do
15565 if test "X
$pkg" = "X
$p"; then
15585 # Check whether --with-pic was given.
15586 if test "${with_pic+set}" = set; then :
15587 withval=$with_pic; pic_mode="$withval"
15593 test -z "$pic_mode" && pic_mode=default
15601 # Check whether --enable-fast-install was given.
15602 if test "${enable_fast_install+set}" = set; then :
15603 enableval=$enable_fast_install; p=${PACKAGE-default}
15605 yes) enable_fast_install=yes ;;
15606 no) enable_fast_install=no ;;
15608 enable_fast_install=no
15609 # Look at the argument we got. We use all the common list separators.
15610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15611 for pkg in $enableval; do
15613 if test "X
$pkg" = "X
$p"; then
15614 enable_fast_install=yes
15621 enable_fast_install=yes
15634 # This can be used to rebuild libtool when needed
15635 LIBTOOL_DEPS="$ltmain"
15637 # Always use our own libtool.
15638 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15665 test -z "$LN_S" && LN_S="ln -s"
15680 if test -n "${ZSH_VERSION+set}" ; then
15681 setopt NO_GLOB_SUBST
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15685 $as_echo_n "checking
for objdir...
" >&6; }
15686 if ${lt_cv_objdir+:} false; then :
15687 $as_echo_n "(cached
) " >&6
15689 rm -f .libs 2>/dev/null
15690 mkdir .libs 2>/dev/null
15691 if test -d .libs; then
15694 # MS-DOS does not allow filenames that begin with a dot.
15697 rmdir .libs 2>/dev/null
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15700 $as_echo "$lt_cv_objdir" >&6; }
15701 objdir=$lt_cv_objdir
15707 cat >>confdefs.h <<_ACEOF
15708 #define LT_OBJDIR "$lt_cv_objdir/"
15716 # AIX sometimes has problems with the GCC collect2 program. For some
15717 # reason, if we set the COLLECT_NAMES environment variable, the problems
15718 # vanish in a puff of smoke.
15719 if test "X
${COLLECT_NAMES+set}" != Xset; then
15721 export COLLECT_NAMES
15726 # Global variables:
15728 can_build_shared=yes
15730 # All known linkers require a `.a' archive for static linking (except MSVC,
15731 # which needs '.lib').
15734 with_gnu_ld="$lt_cv_prog_gnu_ld"
15737 old_CFLAGS="$CFLAGS"
15739 # Set sane defaults for various variables
15740 test -z "$CC" && CC=cc
15741 test -z "$LTCC" && LTCC=$CC
15742 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15743 test -z "$LD" && LD=ld
15744 test -z "$ac_objext" && ac_objext=o
15746 for cc_temp in $compiler""; do
15748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15754 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15757 # Only perform the check for file, if the check method requires it
15758 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15759 case $deplibs_check_method in
15761 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15763 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15764 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15765 $as_echo_n "(cached
) " >&6
15769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15772 lt_save_MAGIC_CMD="$MAGIC_CMD"
15773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15774 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15775 for ac_dir in $ac_dummy; do
15777 test -z "$ac_dir" && ac_dir=.
15778 if test -f $ac_dir/${ac_tool_prefix}file; then
15779 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15780 if test -n "$file_magic_test_file"; then
15781 case $deplibs_check_method in
15783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15786 $EGREP "$file_magic_regex" > /dev/null; then
15791 *** Warning: the command libtool uses to detect shared libraries,
15792 *** $file_magic_cmd, produces output that libtool cannot recognize.
15793 *** The result is that libtool may fail to recognize shared libraries
15794 *** as such. This will affect the creation of libtool libraries that
15795 *** depend on shared libraries, but programs linked with such libtool
15796 *** libraries will work regardless of this problem. Nevertheless, you
15797 *** may want to report the problem to your system manager and/or to
15798 *** bug-libtool@gnu.org
15808 MAGIC_CMD="$lt_save_MAGIC_CMD"
15813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15814 if test -n "$MAGIC_CMD"; then
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15816 $as_echo "$MAGIC_CMD" >&6; }
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15819 $as_echo "no
" >&6; }
15826 if test -z "$lt_cv_path_MAGIC_CMD"; then
15827 if test -n "$ac_tool_prefix"; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15829 $as_echo_n "checking
for file...
" >&6; }
15830 if ${lt_cv_path_MAGIC_CMD+:} false; then :
15831 $as_echo_n "(cached
) " >&6
15835 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15838 lt_save_MAGIC_CMD="$MAGIC_CMD"
15839 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15840 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15841 for ac_dir in $ac_dummy; do
15843 test -z "$ac_dir" && ac_dir=.
15844 if test -f $ac_dir/file; then
15845 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15846 if test -n "$file_magic_test_file"; then
15847 case $deplibs_check_method in
15849 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15850 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15851 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15852 $EGREP "$file_magic_regex" > /dev/null; then
15857 *** Warning: the command libtool uses to detect shared libraries,
15858 *** $file_magic_cmd, produces output that libtool cannot recognize.
15859 *** The result is that libtool may fail to recognize shared libraries
15860 *** as such. This will affect the creation of libtool libraries that
15861 *** depend on shared libraries, but programs linked with such libtool
15862 *** libraries will work regardless of this problem. Nevertheless, you
15863 *** may want to report the problem to your system manager and/or to
15864 *** bug-libtool@gnu.org
15874 MAGIC_CMD="$lt_save_MAGIC_CMD"
15879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15880 if test -n "$MAGIC_CMD"; then
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15882 $as_echo "$MAGIC_CMD" >&6; }
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15885 $as_echo "no
" >&6; }
15898 # Use C for the default configuration in the libtool script
15902 ac_cpp='$CPP $CPPFLAGS'
15903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15908 # Source file extension for C test sources.
15911 # Object file extension for compiled C test sources.
15915 # Code to be used in simple compile tests
15916 lt_simple_compile_test_code="int some_variable
= 0;"
15918 # Code to be used in simple link tests
15919 lt_simple_link_test_code='int main(){return(0);}'
15927 # If no C compiler was specified, use CC.
15930 # If no C compiler flags were specified, use CFLAGS.
15931 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15933 # Allow CC to be a program name with arguments.
15936 # Save the default compiler, since it gets overwritten when the other
15937 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15938 compiler_DEFAULT=$CC
15940 # save warnings/boilerplate of simple test code
15941 ac_outfile=conftest.$ac_objext
15942 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15943 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15944 _lt_compiler_boilerplate=`cat conftest.err`
15947 ac_outfile=conftest.$ac_objext
15948 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15949 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15950 _lt_linker_boilerplate=`cat conftest.err`
15955 ## There is no encapsulation within the following macros, do not change
15956 ## the running order or otherwise move them around unless you know exactly
15957 ## what you are doing...
15958 if test -n "$compiler"; then
15960 lt_prog_compiler_no_builtin_flag=
15962 if test "$GCC" = yes; then
15963 case $cc_basename in
15965 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15967 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15971 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15972 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15973 $as_echo_n "(cached
) " >&6
15975 lt_cv_prog_compiler_rtti_exceptions=no
15976 ac_outfile=conftest.$ac_objext
15977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15978 lt_compiler_flag="-fno-rtti -fno-exceptions"
15979 # Insert the option either (1) after the last *FLAGS variable, or
15980 # (2) before a word containing "conftest.
", or (3) at the end.
15981 # Note that $ac_compile itself does not contain backslashes and begins
15982 # with a dollar sign (not a hyphen), so the echo should work correctly.
15983 # The option is referenced via a variable to avoid confusing sed.
15984 lt_compile=`echo "$ac_compile" | $SED \
15985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15987 -e 's:$: $lt_compiler_flag:'`
15988 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15989 (eval "$lt_compile" 2>conftest.err)
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15993 if (exit $ac_status) && test -s "$ac_outfile"; then
15994 # The compiler can only warn and ignore the option if not recognized
15995 # So say no if there are warnings other than the usual output.
15996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15999 lt_cv_prog_compiler_rtti_exceptions=yes
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
16006 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16008 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16009 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16021 lt_prog_compiler_wl=
16022 lt_prog_compiler_pic=
16023 lt_prog_compiler_static=
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
16026 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
16028 if test "$GCC" = yes; then
16029 lt_prog_compiler_wl='-Wl,'
16030 lt_prog_compiler_static='-static'
16034 # All AIX code is PIC.
16035 if test "$host_cpu" = ia64; then
16036 # AIX 5 now supports IA64 processor
16037 lt_prog_compiler_static='-Bstatic'
16039 lt_prog_compiler_pic='-fPIC'
16045 # see comment about AmigaOS4 .so support
16046 lt_prog_compiler_pic='-fPIC'
16049 # FIXME: we need at least 68020 code to build shared libraries, but
16050 # adding the `-m68020' flag to GCC prevents building anything better,
16052 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16057 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16058 # PIC is the default for these OSes.
16061 mingw* | cygwin* | pw32* | os2* | cegcc*)
16062 # This hack is so that the source file can tell whether it is being
16063 # built for inclusion in a dll (and should export symbols for example).
16064 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16065 # (--disable-auto-import) libraries
16066 lt_prog_compiler_pic='-DDLL_EXPORT'
16069 darwin* | rhapsody*)
16070 # PIC is the default on this platform
16071 # Common symbols not allowed in MH_DYLIB files
16072 lt_prog_compiler_pic='-fno-common'
16076 # PIC is the default for Haiku.
16077 # The "-static" flag exists, but is broken.
16078 lt_prog_compiler_static=
16082 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16083 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16084 # sets the default TLS model and affects inlining.
16090 lt_prog_compiler_pic='-fPIC'
16096 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16097 # Instead, we relocate shared libraries at runtime.
16101 # Just because we use GCC doesn't mean we suddenly get shared libraries
16102 # on systems that don't support them.
16103 lt_prog_compiler_can_build_shared=no
16108 # QNX uses GNU C++, but need to define -shared option too, otherwise
16109 # it will coredump.
16110 lt_prog_compiler_pic='-fPIC -shared'
16114 if test -d /usr/nec; then
16115 lt_prog_compiler_pic=-Kconform_pic
16120 lt_prog_compiler_pic='-fPIC'
16124 case $cc_basename in
16125 nvcc*) # Cuda Compiler Driver 2.2
16126 lt_prog_compiler_wl='-Xlinker '
16127 lt_prog_compiler_pic='-Xcompiler -fPIC'
16131 # PORTME Check for flag to pass linker flags through the system compiler.
16134 lt_prog_compiler_wl='-Wl,'
16135 if test "$host_cpu" = ia64; then
16136 # AIX 5 now supports IA64 processor
16137 lt_prog_compiler_static='-Bstatic'
16139 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16143 mingw* | cygwin* | pw32* | os2* | cegcc*)
16144 # This hack is so that the source file can tell whether it is being
16145 # built for inclusion in a dll (and should export symbols for example).
16146 lt_prog_compiler_pic='-DDLL_EXPORT'
16149 hpux9* | hpux10* | hpux11*)
16150 lt_prog_compiler_wl='-Wl,'
16151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16152 # not for PA HP-UX.
16158 lt_prog_compiler_pic='+Z'
16161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16162 lt_prog_compiler_static='${wl}-a ${wl}archive'
16165 irix5* | irix6* | nonstopux*)
16166 lt_prog_compiler_wl='-Wl,'
16167 # PIC (with -KPIC) is the default.
16168 lt_prog_compiler_static='-non_shared'
16171 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16172 case $cc_basename in
16173 # old Intel for x86_64 which still supported -KPIC.
16175 lt_prog_compiler_wl='-Wl,'
16176 lt_prog_compiler_pic='-KPIC'
16177 lt_prog_compiler_static='-static'
16179 # icc used to be incompatible with GCC.
16180 # ICC 10 doesn't accept -KPIC any more.
16182 lt_prog_compiler_wl='-Wl,'
16183 lt_prog_compiler_pic='-fPIC'
16184 lt_prog_compiler_static='-static'
16186 # Lahey Fortran 8.1.
16188 lt_prog_compiler_wl='-Wl,'
16189 lt_prog_compiler_pic='--shared'
16190 lt_prog_compiler_static='--static'
16192 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16193 # Portland Group compilers (*not* the Pentium gcc compiler,
16194 # which looks to be a dead project)
16195 lt_prog_compiler_wl='-Wl,'
16196 lt_prog_compiler_pic='-fpic'
16197 lt_prog_compiler_static='-Bstatic'
16200 lt_prog_compiler_wl='-Wl,'
16201 # All Alpha code is PIC.
16202 lt_prog_compiler_static='-non_shared'
16204 xl* | bgxl* | bgf* | mpixl*)
16205 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16206 lt_prog_compiler_wl='-Wl,'
16207 lt_prog_compiler_pic='-qpic'
16208 lt_prog_compiler_static='-qstaticlink'
16211 case `$CC -V 2>&1 | sed 5q` in
16212 *Sun\ F* | *Sun*Fortran*)
16213 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16214 lt_prog_compiler_pic='-KPIC'
16215 lt_prog_compiler_static='-Bstatic'
16216 lt_prog_compiler_wl=''
16220 lt_prog_compiler_pic='-KPIC'
16221 lt_prog_compiler_static='-Bstatic'
16222 lt_prog_compiler_wl='-Wl,'
16230 lt_prog_compiler_pic='-KPIC'
16231 lt_prog_compiler_static='-Bstatic'
16235 # QNX uses GNU C++, but need to define -shared option too, otherwise
16236 # it will coredump.
16237 lt_prog_compiler_pic='-fPIC -shared'
16240 osf3* | osf4* | osf5*)
16241 lt_prog_compiler_wl='-Wl,'
16242 # All OSF/1 code is PIC.
16243 lt_prog_compiler_static='-non_shared'
16247 lt_prog_compiler_static='-non_shared'
16251 lt_prog_compiler_pic='-KPIC'
16252 lt_prog_compiler_static='-Bstatic'
16253 case $cc_basename in
16254 f77* | f90* | f95*)
16255 lt_prog_compiler_wl='-Qoption ld ';;
16257 lt_prog_compiler_wl='-Wl,';;
16262 lt_prog_compiler_wl='-Qoption ld '
16263 lt_prog_compiler_pic='-PIC'
16264 lt_prog_compiler_static='-Bstatic'
16267 sysv4 | sysv4.2uw2* | sysv4.3*)
16268 lt_prog_compiler_wl='-Wl,'
16269 lt_prog_compiler_pic='-KPIC'
16270 lt_prog_compiler_static='-Bstatic'
16274 if test -d /usr/nec ;then
16275 lt_prog_compiler_pic='-Kconform_pic'
16276 lt_prog_compiler_static='-Bstatic'
16280 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16281 lt_prog_compiler_wl='-Wl,'
16282 lt_prog_compiler_pic='-KPIC'
16283 lt_prog_compiler_static='-Bstatic'
16287 lt_prog_compiler_wl='-Wl,'
16288 lt_prog_compiler_can_build_shared=no
16292 lt_prog_compiler_pic='-pic'
16293 lt_prog_compiler_static='-Bstatic'
16297 lt_prog_compiler_can_build_shared=no
16303 # For platforms which do not support PIC, -DPIC is meaningless:
16305 lt_prog_compiler_pic=
16308 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
16312 $as_echo "$lt_prog_compiler_pic" >&6; }
16320 # Check to make sure the PIC flag actually works.
16322 if test -n "$lt_prog_compiler_pic"; then
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
16324 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
16325 if ${lt_cv_prog_compiler_pic_works+:} false; then :
16326 $as_echo_n "(cached
) " >&6
16328 lt_cv_prog_compiler_pic_works=no
16329 ac_outfile=conftest.$ac_objext
16330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16331 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
16332 # Insert the option either (1) after the last *FLAGS variable, or
16333 # (2) before a word containing "conftest.
", or (3) at the end.
16334 # Note that $ac_compile itself does not contain backslashes and begins
16335 # with a dollar sign (not a hyphen), so the echo should work correctly.
16336 # The option is referenced via a variable to avoid confusing sed.
16337 lt_compile=`echo "$ac_compile" | $SED \
16338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16340 -e 's:$: $lt_compiler_flag:'`
16341 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16342 (eval "$lt_compile" 2>conftest.err)
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16346 if (exit $ac_status) && test -s "$ac_outfile"; then
16347 # The compiler can only warn and ignore the option if not recognized
16348 # So say no if there are warnings other than the usual output.
16349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16352 lt_cv_prog_compiler_pic_works=yes
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
16359 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16361 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
16362 case $lt_prog_compiler_pic in
16364 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16367 lt_prog_compiler_pic=
16368 lt_prog_compiler_can_build_shared=no
16379 # Check to make sure the static flag actually works.
16381 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
16383 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
16384 if ${lt_cv_prog_compiler_static_works+:} false; then :
16385 $as_echo_n "(cached
) " >&6
16387 lt_cv_prog_compiler_static_works=no
16388 save_LDFLAGS="$LDFLAGS"
16389 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16390 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16391 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16392 # The linker can only warn and ignore the option if not recognized
16393 # So say no if there are warnings
16394 if test -s conftest.err; then
16395 # Append any errors to the config.log.
16396 cat conftest.err 1>&5
16397 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16399 if diff conftest.exp conftest.er2 >/dev/null; then
16400 lt_cv_prog_compiler_static_works=yes
16403 lt_cv_prog_compiler_static_works=yes
16407 LDFLAGS="$save_LDFLAGS"
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
16411 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16413 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
16416 lt_prog_compiler_static=
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16426 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16427 if ${lt_cv_prog_compiler_c_o+:} false; then :
16428 $as_echo_n "(cached
) " >&6
16430 lt_cv_prog_compiler_c_o=no
16431 $RM -r conftest 2>/dev/null
16435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16437 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16438 # Insert the option either (1) after the last *FLAGS variable, or
16439 # (2) before a word containing "conftest.
", or (3) at the end.
16440 # Note that $ac_compile itself does not contain backslashes and begins
16441 # with a dollar sign (not a hyphen), so the echo should work correctly.
16442 lt_compile=`echo "$ac_compile" | $SED \
16443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16445 -e 's:$: $lt_compiler_flag:'`
16446 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16447 (eval "$lt_compile" 2>out/conftest.err)
16449 cat out/conftest.err >&5
16450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16453 # The compiler can only warn and ignore the option if not recognized
16454 # So say no if there are warnings
16455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16458 lt_cv_prog_compiler_c_o=yes
16463 # SGI C++ compiler will create directory out/ii_files/ for
16464 # template instantiation
16465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16466 $RM out/* && rmdir out
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16473 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16481 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16482 if ${lt_cv_prog_compiler_c_o+:} false; then :
16483 $as_echo_n "(cached
) " >&6
16485 lt_cv_prog_compiler_c_o=no
16486 $RM -r conftest 2>/dev/null
16490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16492 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16493 # Insert the option either (1) after the last *FLAGS variable, or
16494 # (2) before a word containing "conftest.
", or (3) at the end.
16495 # Note that $ac_compile itself does not contain backslashes and begins
16496 # with a dollar sign (not a hyphen), so the echo should work correctly.
16497 lt_compile=`echo "$ac_compile" | $SED \
16498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16500 -e 's:$: $lt_compiler_flag:'`
16501 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16502 (eval "$lt_compile" 2>out/conftest.err)
16504 cat out/conftest.err >&5
16505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16506 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16508 # The compiler can only warn and ignore the option if not recognized
16509 # So say no if there are warnings
16510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16511 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16512 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16513 lt_cv_prog_compiler_c_o=yes
16518 # SGI C++ compiler will create directory out/ii_files/ for
16519 # template instantiation
16520 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16521 $RM out/* && rmdir out
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16528 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16533 hard_links="nottested
"
16534 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16535 # do not overwrite the value of need_locks provided by the user
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16537 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16542 ln conftest.a conftest.b 2>&5 || hard_links=no
16543 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16545 $as_echo "$hard_links" >&6; }
16546 if test "$hard_links" = no; then
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16548 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16561 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16564 allow_undefined_flag=
16565 always_export_symbols=no
16567 archive_expsym_cmds=
16568 compiler_needs_object=no
16569 enable_shared_with_static_runtimes=no
16570 export_dynamic_flag_spec=
16571 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16572 hardcode_automatic=no
16574 hardcode_direct_absolute=no
16575 hardcode_libdir_flag_spec=
16576 hardcode_libdir_flag_spec_ld=
16577 hardcode_libdir_separator=
16578 hardcode_minus_L=no
16579 hardcode_shlibpath_var=unsupported
16581 link_all_deplibs=unknown
16583 module_expsym_cmds=
16584 old_archive_from_new_cmds=
16585 old_archive_from_expsyms_cmds=
16586 thread_safe_flag_spec=
16587 whole_archive_flag_spec=
16588 # include_expsyms should be a list of space-separated symbols to be *always*
16589 # included in the symbol list
16591 # exclude_expsyms can be an extended regexp of symbols to exclude
16592 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16593 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16594 # as well as any symbol that contains `d'.
16595 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16596 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16597 # platforms (ab)use it in PIC code, but their linkers get confused if
16598 # the symbol is explicitly referenced. Since portable code cannot
16599 # rely on this symbol name, it's probably fine to never include it in
16600 # preloaded symbol tables.
16601 # Exclude shared library initialization/finalization symbols.
16602 extract_expsyms_cmds=
16605 cygwin* | mingw* | pw32* | cegcc*)
16606 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16607 # When not using gcc, we currently assume that we are using
16608 # Microsoft Visual C++.
16609 if test "$GCC" != yes; then
16614 # we just hope/assume this is gcc and not c89 (= MSVC++)
16624 # On some targets, GNU ld is compatible enough with the native linker
16625 # that we're better off using the native interface for both.
16626 lt_use_gnu_ld_interface=no
16627 if test "$with_gnu_ld" = yes; then
16630 # The AIX port of GNU ld has always aspired to compatibility
16631 # with the native linker. However, as the warning in the GNU ld
16632 # block says, versions before 2.19.5* couldn't really create working
16633 # shared libraries, regardless of the interface used.
16634 case `$LD -v 2>&1` in
16635 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16636 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16637 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16639 lt_use_gnu_ld_interface=yes
16644 lt_use_gnu_ld_interface=yes
16649 if test "$lt_use_gnu_ld_interface" = yes; then
16650 # If archive_cmds runs LD, not CC, wlarc should be empty
16653 # Set some defaults for GNU ld with shared library support. These
16654 # are reset later if shared libraries are not supported. Putting them
16655 # here allows them to be overridden if necessary.
16656 runpath_var=LD_RUN_PATH
16657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16658 export_dynamic_flag_spec='${wl}--export-dynamic'
16659 # ancient GNU ld didn't support --whole-archive et. al.
16660 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16661 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16663 whole_archive_flag_spec=
16665 supports_anon_versioning=no
16666 case `$LD -v 2>&1` in
16667 *GNU\ gold*) supports_anon_versioning=yes ;;
16668 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16669 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16670 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16671 *\ 2.11.*) ;; # other 2.11 versions
16672 *) supports_anon_versioning=yes ;;
16675 # See if GNU ld supports shared libraries.
16678 # On AIX/PPC, the GNU linker is very broken
16679 if test "$host_cpu" != ia64; then
16683 *** Warning: the GNU linker, at least up to release 2.19, is reported
16684 *** to be unable to reliably create shared libraries on AIX.
16685 *** Therefore, libtool is disabling shared libraries support. If you
16686 *** really care for shared libraries, you may want to install binutils
16687 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16688 *** You will then need to restart the configuration process.
16697 # see comment about AmigaOS4 .so support
16698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16699 archive_expsym_cmds=''
16702 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)'
16703 hardcode_libdir_flag_spec
='-L$libdir'
16704 hardcode_minus_L
=yes
16710 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16711 allow_undefined_flag
=unsupported
16712 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16713 # support --undefined. This deserves some investigation. FIXME
16714 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16720 cygwin
* | mingw
* | pw32
* | cegcc
*)
16721 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16722 # as there is no search path for DLLs.
16723 hardcode_libdir_flag_spec
='-L$libdir'
16724 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16725 allow_undefined_flag
=unsupported
16726 always_export_symbols
=no
16727 enable_shared_with_static_runtimes
=yes
16728 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16730 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16731 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16732 # If the export-symbols file already is a .def file (1st line
16733 # is EXPORTS), use it as is; otherwise, prepend...
16734 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16735 cp $export_symbols $output_objdir/$soname.def;
16737 echo EXPORTS > $output_objdir/$soname.def;
16738 cat $export_symbols >> $output_objdir/$soname.def;
16740 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16747 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16748 link_all_deplibs
=yes
16753 hardcode_shlibpath_var
=no
16754 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16755 export_dynamic_flag_spec
='${wl}-E'
16756 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16757 # Instead, shared libraries are loaded at an image base (0x10000000 by
16758 # default) and relocated if they conflict, which is a slow very memory
16759 # consuming and fragmenting process. To avoid this, we pick a random,
16760 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16761 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16762 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16763 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'
16766 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
16768 if test "$host_os" = linux-dietlibc
; then
16769 case $cc_basename in
16770 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16773 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16774 && test "$tmp_diet" = no
16776 tmp_addflag
=' $pic_flag'
16777 tmp_sharedflag
='-shared'
16778 case $cc_basename,$host_cpu in
16779 pgcc
*) # Portland Group C compiler
16780 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'
16781 tmp_addflag
=' $pic_flag'
16783 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16784 # Portland Group f77 and f90 compilers
16785 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'
16786 tmp_addflag
=' $pic_flag -Mnomain' ;;
16787 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16788 tmp_addflag
=' -i_dynamic' ;;
16789 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16790 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16791 ifc
* | ifort
*) # Intel Fortran compiler
16792 tmp_addflag
=' -nofor_main' ;;
16793 lf95
*) # Lahey Fortran 8.1
16794 whole_archive_flag_spec
=
16795 tmp_sharedflag
='--shared' ;;
16796 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16797 tmp_sharedflag
='-qmkshrobj'
16799 nvcc
*) # Cuda Compiler Driver 2.2
16800 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'
16801 compiler_needs_object
=yes
16804 case `$CC -V 2>&1 | sed 5q` in
16805 *Sun\ C
*) # Sun C 5.9
16806 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'
16807 compiler_needs_object
=yes
16808 tmp_sharedflag
='-G' ;;
16809 *Sun\ F
*) # Sun Fortran 8.3
16810 tmp_sharedflag
='-G' ;;
16812 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16814 if test "x$supports_anon_versioning" = xyes
; then
16815 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16817 echo "local: *; };" >> $output_objdir/$libname.ver~
16818 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16821 case $cc_basename in
16822 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16823 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16824 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16825 hardcode_libdir_flag_spec
=
16826 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16827 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16828 if test "x$supports_anon_versioning" = xyes
; then
16829 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16831 echo "local: *; };" >> $output_objdir/$libname.ver~
16832 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16842 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16843 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16846 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16847 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16852 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16856 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16857 *** create shared libraries on Solaris systems. Therefore, libtool
16858 *** is disabling shared libraries support. We urge you to upgrade GNU
16859 *** binutils to release 2.9.1 or newer. Another option is to modify
16860 *** your PATH or compiler configuration so that the native linker is
16861 *** used, and then restart.
16864 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16865 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16866 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16872 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16873 case `$LD -v 2>&1` in
16874 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16878 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16879 *** reliably create shared libraries on SCO systems. Therefore, libtool
16880 *** is disabling shared libraries support. We urge you to upgrade GNU
16881 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16882 *** your PATH or compiler configuration so that the native linker is
16883 *** used, and then restart.
16888 # For security reasons, it is highly recommended that you always
16889 # use absolute paths for naming shared libraries, and exclude the
16890 # DT_RUNPATH tag from executables and libraries. But doing so
16891 # requires that you compile everything twice, which is a pain.
16892 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16893 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16894 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16895 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16904 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16906 hardcode_direct
=yes
16907 hardcode_shlibpath_var
=no
16911 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16912 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16913 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16920 if test "$ld_shlibs" = no
; then
16922 hardcode_libdir_flag_spec
=
16923 export_dynamic_flag_spec
=
16924 whole_archive_flag_spec
=
16927 # PORTME fill in a description of your system's linker (not GNU ld)
16930 allow_undefined_flag
=unsupported
16931 always_export_symbols
=yes
16932 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'
16933 # Note: this linker hardcodes the directories in LIBPATH if there
16934 # are no directories specified by -L.
16935 hardcode_minus_L
=yes
16936 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16937 # Neither direct hardcoding nor static linking is supported with a
16939 hardcode_direct
=unsupported
16944 if test "$host_cpu" = ia64
; then
16945 # On IA64, the linker does run time linking by default, so we don't
16946 # have to do anything special.
16947 aix_use_runtimelinking
=no
16948 exp_sym_flag
='-Bexport'
16951 # If we're using GNU nm, then we don't want the "-C" option.
16952 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16953 # Also, AIX nm treats weak defined symbols like other global
16954 # defined symbols, whereas GNU nm marks them as "W".
16955 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16956 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'
16958 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'
16960 aix_use_runtimelinking
=no
16962 # Test if we are trying to use run time linking or normal
16963 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16964 # need to do runtime linking.
16965 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16966 for ld_flag
in $LDFLAGS; do
16967 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16968 aix_use_runtimelinking
=yes
16975 exp_sym_flag
='-bexport'
16976 no_entry_flag
='-bnoentry'
16979 # When large executables or shared objects are built, AIX ld can
16980 # have problems creating the table of contents. If linking a library
16981 # or program results in "error TOC overflow" add -mminimal-toc to
16982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16986 hardcode_direct
=yes
16987 hardcode_direct_absolute
=yes
16988 hardcode_libdir_separator
=':'
16989 link_all_deplibs
=yes
16990 file_list_spec
='${wl}-f,'
16992 if test "$GCC" = yes; then
16993 case $host_os in aix4.
[012]|aix4.
[012].
*)
16994 # We only want to do this on AIX 4.2 and lower, the check
16995 # below for broken collect2 doesn't work under 4.3+
16996 collect2name
=`${CC} -print-prog-name=collect2`
16997 if test -f "$collect2name" &&
16998 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17000 # We have reworked collect2
17003 # We have old collect2
17004 hardcode_direct
=unsupported
17005 # It fails to find uninstalled libraries when the uninstalled
17006 # path is not listed in the libpath. Setting hardcode_minus_L
17007 # to unsupported forces relinking
17008 hardcode_minus_L
=yes
17009 hardcode_libdir_flag_spec
='-L$libdir'
17010 hardcode_libdir_separator
=
17014 shared_flag
='-shared'
17015 if test "$aix_use_runtimelinking" = yes; then
17016 shared_flag
="$shared_flag "'${wl}-G'
17020 if test "$host_cpu" = ia64
; then
17021 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17022 # chokes on -Wl,-G. The following line is correct:
17025 if test "$aix_use_runtimelinking" = yes; then
17026 shared_flag
='${wl}-G'
17028 shared_flag
='${wl}-bM:SRE'
17033 export_dynamic_flag_spec
='${wl}-bexpall'
17034 # It seems that -bexpall does not export symbols beginning with
17035 # underscore (_), so it is better to generate a list of symbols to export.
17036 always_export_symbols
=yes
17037 if test "$aix_use_runtimelinking" = yes; then
17038 # Warning - without using the other runtime loading flags (-brtl),
17039 # -berok will link without error, but may produce a broken library.
17040 allow_undefined_flag
='-berok'
17041 # Determine the default libpath from the value encoded in an
17042 # empty executable.
17043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17044 /* end confdefs.h. */
17054 if ac_fn_c_try_link
"$LINENO"; then :
17056 lt_aix_libpath_sed
='
17057 /Import File Strings/,/^$/ {
17063 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17064 # Check for a 64-bit object if we didn't find anything.
17065 if test -z "$aix_libpath"; then
17066 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17069 rm -f core conftest.err conftest.
$ac_objext \
17070 conftest
$ac_exeext conftest.
$ac_ext
17071 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17073 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17074 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"
17076 if test "$host_cpu" = ia64
; then
17077 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
17078 allow_undefined_flag
="-z nodefs"
17079 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"
17081 # Determine the default libpath from the value encoded in an
17082 # empty executable.
17083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17094 if ac_fn_c_try_link
"$LINENO"; then :
17096 lt_aix_libpath_sed
='
17097 /Import File Strings/,/^$/ {
17103 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17104 # Check for a 64-bit object if we didn't find anything.
17105 if test -z "$aix_libpath"; then
17106 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17109 rm -f core conftest.err conftest.
$ac_objext \
17110 conftest
$ac_exeext conftest.
$ac_ext
17111 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17113 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
17114 # Warning - without using the other run time loading flags,
17115 # -berok will link without error, but may produce a broken library.
17116 no_undefined_flag
=' ${wl}-bernotok'
17117 allow_undefined_flag
=' ${wl}-berok'
17118 if test "$with_gnu_ld" = yes; then
17119 # We only use this code for GNU lds that support --whole-archive.
17120 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17122 # Exported symbols can be pulled into shared objects from archives
17123 whole_archive_flag_spec
='$convenience'
17125 archive_cmds_need_lc
=yes
17126 # This is similar to how AIX traditionally builds its shared libraries.
17127 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'
17135 # see comment about AmigaOS4 .so support
17136 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17137 archive_expsym_cmds
=''
17140 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)'
17141 hardcode_libdir_flag_spec
='-L$libdir'
17142 hardcode_minus_L
=yes
17148 export_dynamic_flag_spec
=-rdynamic
17151 cygwin
* | mingw
* | pw32
* | cegcc
*)
17152 # When not using gcc, we currently assume that we are using
17153 # Microsoft Visual C++.
17154 # hardcode_libdir_flag_spec is actually meaningless, as there is
17155 # no search path for DLLs.
17156 hardcode_libdir_flag_spec
=' '
17157 allow_undefined_flag
=unsupported
17158 # Tell ltmain to make .lib files, not .a files.
17160 # Tell ltmain to make .dll files, not .so files.
17162 # FIXME: Setting linknames here is a bad hack.
17163 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17164 # The linker will automatically build a .lib file if we build a DLL.
17165 old_archive_from_new_cmds
='true'
17166 # FIXME: Should let the user specify the lib program.
17167 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17168 fix_srcfile_path
='`cygpath -w "$srcfile"`'
17169 enable_shared_with_static_runtimes
=yes
17172 darwin
* | rhapsody
*)
17175 archive_cmds_need_lc
=no
17177 hardcode_automatic
=yes
17178 hardcode_shlibpath_var
=unsupported
17179 if test "$lt_cv_ld_force_load" = "yes"; then
17180 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\"`'
17182 whole_archive_flag_spec
=''
17184 link_all_deplibs
=yes
17185 allow_undefined_flag
="$_lt_dar_allow_undefined"
17186 case $cc_basename in
17187 ifort
*) _lt_dar_can_shared
=yes ;;
17188 *) _lt_dar_can_shared
=$GCC ;;
17190 if test "$_lt_dar_can_shared" = "yes"; then
17191 output_verbose_link_cmd
=func_echo_all
17192 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17193 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17194 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}"
17195 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}"
17204 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17205 hardcode_libdir_flag_spec
='-L$libdir'
17206 hardcode_shlibpath_var
=no
17209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17210 # support. Future versions do this automatically, but an explicit c++rt0.o
17211 # does not break anything, and helps significantly (at the cost of a little
17214 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17215 hardcode_libdir_flag_spec
='-R$libdir'
17216 hardcode_direct
=yes
17217 hardcode_shlibpath_var
=no
17220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17222 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17223 hardcode_direct
=yes
17224 hardcode_minus_L
=yes
17225 hardcode_shlibpath_var
=no
17228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17229 freebsd
* | dragonfly
*)
17230 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17231 hardcode_libdir_flag_spec
='-R$libdir'
17232 hardcode_direct
=yes
17233 hardcode_shlibpath_var
=no
17237 if test "$GCC" = yes; then
17238 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'
17240 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'
17242 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17243 hardcode_libdir_separator
=:
17244 hardcode_direct
=yes
17246 # hardcode_minus_L: Not really in the search PATH,
17247 # but as the default location of the library.
17248 hardcode_minus_L
=yes
17249 export_dynamic_flag_spec
='${wl}-E'
17253 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17254 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17256 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17258 if test "$with_gnu_ld" = no
; then
17259 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17260 hardcode_libdir_flag_spec_ld
='+b $libdir'
17261 hardcode_libdir_separator
=:
17262 hardcode_direct
=yes
17263 hardcode_direct_absolute
=yes
17264 export_dynamic_flag_spec
='${wl}-E'
17265 # hardcode_minus_L: Not really in the search PATH,
17266 # but as the default location of the library.
17267 hardcode_minus_L
=yes
17272 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
17275 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17278 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17281 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17287 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17290 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17294 # Older versions of the 11.00 compiler do not understand -b yet
17295 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17297 $as_echo_n "checking if $CC understands -b... " >&6; }
17298 if ${lt_cv_prog_compiler__b+:} false
; then :
17299 $as_echo_n "(cached) " >&6
17301 lt_cv_prog_compiler__b
=no
17302 save_LDFLAGS
="$LDFLAGS"
17303 LDFLAGS
="$LDFLAGS -b"
17304 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17305 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17306 # The linker can only warn and ignore the option if not recognized
17307 # So say no if there are warnings
17308 if test -s conftest.err
; then
17309 # Append any errors to the config.log.
17310 cat conftest.err
1>&5
17311 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
17312 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17313 if diff conftest.exp conftest.er2
>/dev
/null
; then
17314 lt_cv_prog_compiler__b
=yes
17317 lt_cv_prog_compiler__b
=yes
17321 LDFLAGS
="$save_LDFLAGS"
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17325 $as_echo "$lt_cv_prog_compiler__b" >&6; }
17327 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
17328 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17330 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17336 if test "$with_gnu_ld" = no
; then
17337 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
17338 hardcode_libdir_separator
=:
17343 hardcode_shlibpath_var
=no
17346 hardcode_direct
=yes
17347 hardcode_direct_absolute
=yes
17348 export_dynamic_flag_spec
='${wl}-E'
17350 # hardcode_minus_L: Not really in the search PATH,
17351 # but as the default location of the library.
17352 hardcode_minus_L
=yes
17358 irix5
* | irix6
* | nonstopux
*)
17359 if test "$GCC" = yes; then
17360 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'
17361 # Try to use the -exported_symbol ld option, if it does not
17362 # work, assume that -exports_file does not work either and
17363 # implicitly export all symbols.
17364 save_LDFLAGS
="$LDFLAGS"
17365 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17370 if ac_fn_c_try_link
"$LINENO"; then :
17371 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'
17374 rm -f core conftest.err conftest.
$ac_objext \
17375 conftest
$ac_exeext conftest.
$ac_ext
17376 LDFLAGS
="$save_LDFLAGS"
17378 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'
17379 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'
17381 archive_cmds_need_lc
='no'
17382 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17383 hardcode_libdir_separator
=:
17385 link_all_deplibs
=yes
17389 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17390 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17392 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17394 hardcode_libdir_flag_spec
='-R$libdir'
17395 hardcode_direct
=yes
17396 hardcode_shlibpath_var
=no
17400 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17401 hardcode_direct
=yes
17402 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17403 hardcode_libdir_separator
=:
17404 hardcode_shlibpath_var
=no
17411 if test -f /usr
/libexec
/ld.so
; then
17412 hardcode_direct
=yes
17413 hardcode_shlibpath_var
=no
17414 hardcode_direct_absolute
=yes
17415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17416 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17417 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17418 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17419 export_dynamic_flag_spec
='${wl}-E'
17422 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17423 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_libdir_flag_spec
='-R$libdir'
17427 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17428 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
17438 hardcode_libdir_flag_spec
='-L$libdir'
17439 hardcode_minus_L
=yes
17440 allow_undefined_flag
=unsupported
17441 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'
17442 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17446 if test "$GCC" = yes; then
17447 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17448 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'
17450 allow_undefined_flag
=' -expect_unresolved \*'
17451 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'
17453 archive_cmds_need_lc
='no'
17454 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17455 hardcode_libdir_separator
=:
17458 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17459 if test "$GCC" = yes; then
17460 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17461 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'
17462 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17464 allow_undefined_flag
=' -expect_unresolved \*'
17465 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'
17466 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~
17467 $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'
17469 # Both c and cxx compiler support -rpath directly
17470 hardcode_libdir_flag_spec
='-rpath $libdir'
17472 archive_cmds_need_lc
='no'
17473 hardcode_libdir_separator
=:
17477 no_undefined_flag
=' -z defs'
17478 if test "$GCC" = yes; then
17480 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17481 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17482 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17484 case `$CC -V 2>&1` in
17487 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17488 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17493 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17494 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17495 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17499 hardcode_libdir_flag_spec
='-R$libdir'
17500 hardcode_shlibpath_var
=no
17502 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17504 # The compiler driver will combine and reorder linker options,
17505 # but understands `-z linker_flag'. GCC discards it without `$wl',
17506 # but is careful enough not to reorder.
17507 # Supported since Solaris 2.6 (maybe 2.5.1?)
17508 if test "$GCC" = yes; then
17509 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17511 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17515 link_all_deplibs
=yes
17519 if test "x$host_vendor" = xsequent
; then
17520 # Use $CC to link under sequent, because it throws in some extra .o
17521 # files that make .init and .fini sections work.
17522 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17524 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17526 hardcode_libdir_flag_spec
='-L$libdir'
17527 hardcode_direct
=yes
17528 hardcode_minus_L
=yes
17529 hardcode_shlibpath_var
=no
17533 case $host_vendor in
17535 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17536 hardcode_direct
=yes # is this really true???
17539 ## LD is ld it makes a PLAMLIB
17540 ## CC just makes a GrossModule.
17541 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17542 reload_cmds
='$CC -r -o $output$reload_objs'
17546 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17547 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17550 runpath_var
='LD_RUN_PATH'
17551 hardcode_shlibpath_var
=no
17555 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17556 hardcode_shlibpath_var
=no
17557 export_dynamic_flag_spec
='-Bexport'
17561 if test -d /usr
/nec
; then
17562 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563 hardcode_shlibpath_var
=no
17564 runpath_var
=LD_RUN_PATH
17565 hardcode_runpath_var
=yes
17570 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17571 no_undefined_flag
='${wl}-z,text'
17572 archive_cmds_need_lc
=no
17573 hardcode_shlibpath_var
=no
17574 runpath_var
='LD_RUN_PATH'
17576 if test "$GCC" = yes; then
17577 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17578 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17580 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 sysv5
* | sco3.2v5
* | sco5v6
*)
17586 # Note: We can NOT use -z defs as we might desire, because we do not
17587 # link with -lc, and that would cause any symbols used from libc to
17588 # always be unresolved, which means just about no library would
17589 # ever link correctly. If we're not using GNU ld we use -z text
17590 # though, which does catch some bad symbols but isn't as heavy-handed
17592 no_undefined_flag
='${wl}-z,text'
17593 allow_undefined_flag
='${wl}-z,nodefs'
17594 archive_cmds_need_lc
=no
17595 hardcode_shlibpath_var
=no
17596 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17597 hardcode_libdir_separator
=':'
17598 link_all_deplibs
=yes
17599 export_dynamic_flag_spec
='${wl}-Bexport'
17600 runpath_var
='LD_RUN_PATH'
17602 if test "$GCC" = yes; then
17603 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17604 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17606 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17607 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_libdir_flag_spec
='-L$libdir'
17614 hardcode_shlibpath_var
=no
17622 if test x
$host_vendor = xsni
; then
17624 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17625 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17632 $as_echo "$ld_shlibs" >&6; }
17633 test "$ld_shlibs" = no
&& can_build_shared
=no
17635 with_gnu_ld
=$with_gnu_ld
17652 # Do we need to explicitly link libc?
17654 case "x$archive_cmds_need_lc" in
17656 # Assume -lc should be added
17657 archive_cmds_need_lc
=yes
17659 if test "$enable_shared" = yes && test "$GCC" = yes; then
17660 case $archive_cmds in
17662 # FIXME: we may have to deal with multi-command sequences.
17665 # Test whether the compiler implicitly links with -lc since on some
17666 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17667 # to ld, don't add -lc before -lgcc.
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17669 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17670 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
17671 $as_echo_n "(cached) " >&6
17674 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17677 (eval $ac_compile) 2>&5
17679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17680 test $ac_status = 0; } 2>conftest.err
; then
17683 libobjs
=conftest.
$ac_objext
17685 wl
=$lt_prog_compiler_wl
17686 pic_flag
=$lt_prog_compiler_pic
17692 lt_save_allow_undefined_flag
=$allow_undefined_flag
17693 allow_undefined_flag
=
17694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17695 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17698 test $ac_status = 0; }
17700 lt_cv_archive_cmds_need_lc
=no
17702 lt_cv_archive_cmds_need_lc
=yes
17704 allow_undefined_flag
=$lt_save_allow_undefined_flag
17706 cat conftest.err
1>&5
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17712 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17713 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17877 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17879 if test "$GCC" = yes; then
17881 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17882 *) lt_awk_arg
="/^libraries:/" ;;
17885 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17886 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17888 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17889 case $lt_search_path_spec in
17891 # if the path contains ";" then we assume it to be the separator
17892 # otherwise default to the standard path separator (i.e. ":") - it is
17893 # assumed that no part of a normal pathname contains ";" but that should
17894 # okay in the real world where ";" in dirpaths is itself problematic.
17895 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17898 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17901 # Ok, now we have the path, separated by spaces, we can step through it
17902 # and add multilib dir if necessary.
17903 lt_tmp_lt_search_path_spec
=
17904 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17905 for lt_sys_path
in $lt_search_path_spec; do
17906 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17907 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17909 test -d "$lt_sys_path" && \
17910 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17913 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17914 BEGIN {RS=" "; FS="/|\n";} {
17917 for (lt_i = NF; lt_i > 0; lt_i--) {
17918 if ($lt_i != "" && $lt_i != ".") {
17919 if ($lt_i == "..") {
17922 if (lt_count == 0) {
17923 lt_foo="/" $lt_i lt_foo;
17930 if (lt_foo != "") { lt_freq[lt_foo]++; }
17931 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17933 # AWK program above erroneously prepends '/' to C:/dos/paths
17936 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17937 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17939 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17941 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17943 library_names_spec
=
17944 libname_spec
='lib$name'
17948 postuninstall_cmds
=
17952 shlibpath_overrides_runpath
=unknown
17954 dynamic_linker
="$host_os ld.so"
17955 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17956 need_lib_prefix
=unknown
17957 hardcode_into_libs
=no
17959 # when you set need_version to no, make sure it does not cause -set_version
17960 # flags to be left without arguments
17961 need_version
=unknown
17966 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17967 shlibpath_var
=LIBPATH
17969 # AIX 3 has no versioning support, so we append a major version to the name.
17970 soname_spec
='${libname}${release}${shared_ext}$major'
17977 hardcode_into_libs
=yes
17978 if test "$host_cpu" = ia64
; then
17979 # AIX 5 supports IA64
17980 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17981 shlibpath_var
=LD_LIBRARY_PATH
17983 # With GCC up to 2.95.x, collect2 would create an import file
17984 # for dependence libraries. The import file would start with
17985 # the line `#! .'. This would cause the generated library to
17986 # depend on `.', always an invalid library. This was fixed in
17987 # development snapshots of GCC prior to 3.0.
17989 aix4 | aix4.
[01] | aix4.
[01].
*)
17990 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17992 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17995 can_build_shared
=no
17999 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18000 # soname into executable. Probably we can add versioning support to
18001 # collect2, so additional links can be useful in future.
18002 if test "$aix_use_runtimelinking" = yes; then
18003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18004 # instead of lib<name>.a to let people know that these are not
18005 # typical AIX shared libraries.
18006 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18008 # We preserve .a as extension for shared libraries through AIX4.2
18009 # and later when we are not doing run time linking.
18010 library_names_spec
='${libname}${release}.a $libname.a'
18011 soname_spec
='${libname}${release}${shared_ext}$major'
18013 shlibpath_var
=LIBPATH
18020 # Since July 2007 AmigaOS4 officially supports .so libraries.
18021 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18022 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18025 library_names_spec
='$libname.ixlibrary $libname.a'
18026 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18027 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'
18033 library_names_spec
='${libname}${shared_ext}'
18034 dynamic_linker
="$host_os ld.so"
18035 shlibpath_var
=LIBRARY_PATH
18041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042 soname_spec
='${libname}${release}${shared_ext}$major'
18043 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18044 shlibpath_var
=LD_LIBRARY_PATH
18045 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18046 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18047 # the default ld.so.conf also contains /usr/contrib/lib and
18048 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18049 # libtool to hard-code these into programs
18052 cygwin
* | mingw
* | pw32
* | cegcc
*)
18053 version_type
=windows
18058 case $GCC,$host_os in
18059 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
18060 library_names_spec
='$libname.dll.a'
18061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18062 postinstall_cmds
='base_file=`basename \${file}`~
18063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18064 dldir=$destdir/`dirname \$dlpath`~
18065 test -d \$dldir || mkdir -p \$dldir~
18066 $install_prog $dir/$dlname \$dldir/$dlname~
18067 chmod a+x \$dldir/$dlname~
18068 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18069 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18071 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18072 dlpath=$dir/\$dldll~
18074 shlibpath_overrides_runpath
=yes
18078 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18079 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18081 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
18084 # MinGW DLLs use traditional 'lib' prefix
18085 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18088 # pw32 DLLs use 'pw' prefix rather than 'lib'
18089 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18095 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18098 dynamic_linker
='Win32 ld.exe'
18099 # FIXME: first we should search . and the directory the executable is in
18103 darwin
* | rhapsody
*)
18104 dynamic_linker
="$host_os dyld"
18105 version_type
=darwin
18108 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18109 soname_spec
='${libname}${release}${major}$shared_ext'
18110 shlibpath_overrides_runpath
=yes
18111 shlibpath_var
=DYLD_LIBRARY_PATH
18112 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18114 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
18115 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18123 soname_spec
='${libname}${release}${shared_ext}$major'
18124 shlibpath_var
=LD_LIBRARY_PATH
18127 freebsd
* | dragonfly
*)
18128 # DragonFly does not have aout. When/if they implement a new
18129 # versioning mechanism, adjust this.
18130 if test -x /usr
/bin
/objformat
; then
18131 objformat
=`/usr/bin/objformat`
18134 freebsd
[23].
*) objformat
=aout
;;
18135 *) objformat
=elf
;;
18138 version_type
=freebsd-
$objformat
18139 case $version_type in
18141 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18146 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18150 shlibpath_var
=LD_LIBRARY_PATH
18153 shlibpath_overrides_runpath
=yes
18155 freebsd3.
[01]* | freebsdelf3.
[01]*)
18156 shlibpath_overrides_runpath
=yes
18157 hardcode_into_libs
=yes
18159 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18160 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18161 shlibpath_overrides_runpath
=no
18162 hardcode_into_libs
=yes
18164 *) # from 4.6 on, and DragonFly
18165 shlibpath_overrides_runpath
=yes
18166 hardcode_into_libs
=yes
18175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18176 soname_spec
='${libname}${release}${shared_ext}$major'
18177 shlibpath_var
=LD_LIBRARY_PATH
18178 hardcode_into_libs
=yes
18185 dynamic_linker
="$host_os runtime_loader"
18186 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18187 soname_spec
='${libname}${release}${shared_ext}$major'
18188 shlibpath_var
=LIBRARY_PATH
18189 shlibpath_overrides_runpath
=yes
18190 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
18191 hardcode_into_libs
=yes
18194 hpux9
* | hpux10
* | hpux11
*)
18195 # Give a soname corresponding to the major version so that dld.sl refuses to
18196 # link against other versions.
18203 hardcode_into_libs
=yes
18204 dynamic_linker
="$host_os dld.so"
18205 shlibpath_var
=LD_LIBRARY_PATH
18206 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18208 soname_spec
='${libname}${release}${shared_ext}$major'
18209 if test "X$HPUX_IA64_MODE" = X32
; then
18210 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18212 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18214 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18218 hardcode_into_libs
=yes
18219 dynamic_linker
="$host_os dld.sl"
18220 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18221 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18223 soname_spec
='${libname}${release}${shared_ext}$major'
18224 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18225 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18229 dynamic_linker
="$host_os dld.sl"
18230 shlibpath_var
=SHLIB_PATH
18231 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18233 soname_spec
='${libname}${release}${shared_ext}$major'
18236 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18237 postinstall_cmds
='chmod 555 $lib'
18238 # or fails outright, so override atomically:
18239 install_override_mode
=555
18246 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18247 soname_spec
='${libname}${release}${shared_ext}$major'
18248 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18249 shlibpath_var
=LD_LIBRARY_PATH
18250 shlibpath_overrides_runpath
=no
18251 hardcode_into_libs
=yes
18254 irix5
* | irix6
* | nonstopux
*)
18256 nonstopux
*) version_type
=nonstopux
;;
18258 if test "$lt_cv_prog_gnu_ld" = yes; then
18266 soname_spec
='${libname}${release}${shared_ext}$major'
18267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18269 irix5
* | nonstopux
*)
18270 libsuff
= shlibsuff
=
18273 case $LD in # libtool.m4 will add one of these switches to LD
18274 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18275 libsuff
= shlibsuff
= libmagic
=32-bit;;
18276 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18277 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18278 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18279 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18280 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18284 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18285 shlibpath_overrides_runpath
=no
18286 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18287 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18288 hardcode_into_libs
=yes
18291 # No shared lib support for Linux oldld, aout, or coff.
18292 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18296 # This must be Linux ELF.
18298 # uclinux* changes (here and below) have been submitted to the libtool
18299 # project, but have not yet been accepted: they are GCC-local changes
18300 # for the time being. (See
18301 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
18302 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
18306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18307 soname_spec
='${libname}${release}${shared_ext}$major'
18308 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18309 shlibpath_var
=LD_LIBRARY_PATH
18310 shlibpath_overrides_runpath
=no
18312 # Some binutils ld are patched to set DT_RUNPATH
18313 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
18314 $as_echo_n "(cached) " >&6
18316 lt_cv_shlibpath_overrides_runpath
=no
18317 save_LDFLAGS
=$LDFLAGS
18318 save_libdir
=$libdir
18319 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18320 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18332 if ac_fn_c_try_link
"$LINENO"; then :
18333 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
18334 lt_cv_shlibpath_overrides_runpath
=yes
18337 rm -f core conftest.err conftest.
$ac_objext \
18338 conftest
$ac_exeext conftest.
$ac_ext
18339 LDFLAGS
=$save_LDFLAGS
18340 libdir
=$save_libdir
18344 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
18346 # This implies no fast_install, which is unacceptable.
18347 # Some rework will be needed to allow for fast_install
18348 # before this can be enabled.
18349 hardcode_into_libs
=yes
18351 # Append ld.so.conf contents to the search path
18352 if test -f /etc
/ld.so.conf
; then
18353 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' ' '`
18354 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18357 # We used to test for /lib/ld.so.1 and disable shared libraries on
18358 # powerpc, because MkLinux only supported shared libraries with the
18359 # GNU dynamic linker. Since this was broken with cross compilers,
18360 # most powerpc-linux boxes support dynamic linking these days and
18361 # people can always --disable-shared, the test was removed, and we
18362 # assume the GNU/Linux dynamic linker is in use.
18363 dynamic_linker
='GNU/Linux ld.so'
18370 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18371 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18372 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18373 dynamic_linker
='NetBSD (a.out) ld.so'
18375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18376 soname_spec
='${libname}${release}${shared_ext}$major'
18377 dynamic_linker
='NetBSD ld.elf_so'
18379 shlibpath_var
=LD_LIBRARY_PATH
18380 shlibpath_overrides_runpath
=yes
18381 hardcode_into_libs
=yes
18386 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18387 shlibpath_var
=LD_LIBRARY_PATH
18388 shlibpath_overrides_runpath
=yes
18395 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396 soname_spec
='${libname}${release}${shared_ext}$major'
18397 shlibpath_var
=LD_LIBRARY_PATH
18398 shlibpath_overrides_runpath
=no
18399 hardcode_into_libs
=yes
18400 dynamic_linker
='ldqnx.so'
18405 sys_lib_dlsearch_path_spec
="/usr/lib"
18407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18409 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18410 *) need_version
=no
;;
18412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18413 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18414 shlibpath_var
=LD_LIBRARY_PATH
18415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18417 openbsd2.
[89] | openbsd2.
[89].
*)
18418 shlibpath_overrides_runpath
=no
18421 shlibpath_overrides_runpath
=yes
18425 shlibpath_overrides_runpath
=yes
18430 libname_spec
='$name'
18433 library_names_spec
='$libname${shared_ext} $libname.a'
18434 dynamic_linker
='OS/2 ld.exe'
18435 shlibpath_var
=LIBPATH
18438 osf3
* | osf4
* | osf5
*)
18442 soname_spec
='${libname}${release}${shared_ext}$major'
18443 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18444 shlibpath_var
=LD_LIBRARY_PATH
18445 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18446 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18457 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18458 soname_spec
='${libname}${release}${shared_ext}$major'
18459 shlibpath_var
=LD_LIBRARY_PATH
18460 shlibpath_overrides_runpath
=yes
18461 hardcode_into_libs
=yes
18462 # ldd complains unless libraries are executable
18463 postinstall_cmds
='chmod +x $lib'
18468 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18469 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18470 shlibpath_var
=LD_LIBRARY_PATH
18471 shlibpath_overrides_runpath
=yes
18472 if test "$with_gnu_ld" = yes; then
18480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18481 soname_spec
='${libname}${release}${shared_ext}$major'
18482 shlibpath_var
=LD_LIBRARY_PATH
18483 case $host_vendor in
18485 shlibpath_overrides_runpath
=no
18487 runpath_var
=LD_RUN_PATH
18495 shlibpath_overrides_runpath
=no
18496 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18502 if test -d /usr
/nec
;then
18504 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18505 soname_spec
='$libname${shared_ext}.$major'
18506 shlibpath_var
=LD_LIBRARY_PATH
18510 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18511 version_type
=freebsd-elf
18514 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18515 soname_spec
='${libname}${release}${shared_ext}$major'
18516 shlibpath_var
=LD_LIBRARY_PATH
18517 shlibpath_overrides_runpath
=yes
18518 hardcode_into_libs
=yes
18519 if test "$with_gnu_ld" = yes; then
18520 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18522 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18525 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18529 sys_lib_dlsearch_path_spec
='/usr/lib'
18533 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18538 shlibpath_var
=LD_LIBRARY_PATH
18539 shlibpath_overrides_runpath
=no
18540 hardcode_into_libs
=yes
18545 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18546 soname_spec
='${libname}${release}${shared_ext}$major'
18547 shlibpath_var
=LD_LIBRARY_PATH
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18555 $as_echo "$dynamic_linker" >&6; }
18556 test "$dynamic_linker" = no
&& can_build_shared
=no
18558 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18559 if test "$GCC" = yes; then
18560 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18563 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18564 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18566 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18567 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18664 if test -n "$hardcode_libdir_flag_spec" ||
18665 test -n "$runpath_var" ||
18666 test "X$hardcode_automatic" = "Xyes" ; then
18668 # We can hardcode non-existent directories.
18669 if test "$hardcode_direct" != no
&&
18670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18671 # have to relink, otherwise we might link with an installed library
18672 # when we should be linking with a yet-to-be-installed one
18673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18674 test "$hardcode_minus_L" != no
; then
18675 # Linking always hardcodes the temporary library directory.
18676 hardcode_action
=relink
18678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18679 hardcode_action
=immediate
18682 # We cannot hardcode anything, or else we can only hardcode existing
18684 hardcode_action
=unsupported
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18687 $as_echo "$hardcode_action" >&6; }
18689 if test "$hardcode_action" = relink ||
18690 test "$inherit_rpath" = yes; then
18691 # Fast installation is not supported
18692 enable_fast_install
=no
18693 elif test "$shlibpath_overrides_runpath" = yes ||
18694 test "$enable_shared" = no
; then
18695 # Fast installation is not necessary
18696 enable_fast_install
=needless
18704 if test "x$enable_dlopen" != xyes
; then
18705 enable_dlopen
=unknown
18706 enable_dlopen_self
=unknown
18707 enable_dlopen_self_static
=unknown
18714 lt_cv_dlopen
="load_add_on"
18716 lt_cv_dlopen_self
=yes
18719 mingw
* | pw32
* | cegcc
*)
18720 lt_cv_dlopen
="LoadLibrary"
18725 lt_cv_dlopen
="dlopen"
18730 # if libdl is installed we need to link against it
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18733 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18734 $as_echo_n "(cached) " >&6
18736 ac_check_lib_save_LIBS
=$LIBS
18738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18739 /* end confdefs.h. */
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18756 if ac_fn_c_try_link
"$LINENO"; then :
18757 ac_cv_lib_dl_dlopen
=yes
18759 ac_cv_lib_dl_dlopen
=no
18761 rm -f core conftest.err conftest.
$ac_objext \
18762 conftest
$ac_exeext conftest.
$ac_ext
18763 LIBS
=$ac_check_lib_save_LIBS
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18767 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18768 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18771 lt_cv_dlopen
="dyld"
18773 lt_cv_dlopen_self
=yes
18780 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18781 if test "x$ac_cv_func_shl_load" = xyes
; then :
18782 lt_cv_dlopen
="shl_load"
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18785 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18786 if ${ac_cv_lib_dld_shl_load+:} false
; then :
18787 $as_echo_n "(cached) " >&6
18789 ac_check_lib_save_LIBS
=$LIBS
18791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18794 /* Override any GCC internal prototype to avoid an error.
18795 Use char because int might match the return type of a GCC
18796 builtin and then its argument prototype would still apply. */
18804 return shl_load ();
18809 if ac_fn_c_try_link
"$LINENO"; then :
18810 ac_cv_lib_dld_shl_load
=yes
18812 ac_cv_lib_dld_shl_load
=no
18814 rm -f core conftest.err conftest.
$ac_objext \
18815 conftest
$ac_exeext conftest.
$ac_ext
18816 LIBS
=$ac_check_lib_save_LIBS
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18819 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18820 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
18821 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18823 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18824 if test "x$ac_cv_func_dlopen" = xyes
; then :
18825 lt_cv_dlopen
="dlopen"
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18829 if ${ac_cv_lib_dl_dlopen+:} false
; then :
18830 $as_echo_n "(cached) " >&6
18832 ac_check_lib_save_LIBS
=$LIBS
18834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18852 if ac_fn_c_try_link
"$LINENO"; then :
18853 ac_cv_lib_dl_dlopen
=yes
18855 ac_cv_lib_dl_dlopen
=no
18857 rm -f core conftest.err conftest.
$ac_objext \
18858 conftest
$ac_exeext conftest.
$ac_ext
18859 LIBS
=$ac_check_lib_save_LIBS
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18863 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
18864 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18868 if ${ac_cv_lib_svld_dlopen+:} false
; then :
18869 $as_echo_n "(cached) " >&6
18871 ac_check_lib_save_LIBS
=$LIBS
18872 LIBS
="-lsvld $LIBS"
18873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18874 /* end confdefs.h. */
18876 /* Override any GCC internal prototype to avoid an error.
18877 Use char because int might match the return type of a GCC
18878 builtin and then its argument prototype would still apply. */
18891 if ac_fn_c_try_link
"$LINENO"; then :
18892 ac_cv_lib_svld_dlopen
=yes
18894 ac_cv_lib_svld_dlopen
=no
18896 rm -f core conftest.err conftest.
$ac_objext \
18897 conftest
$ac_exeext conftest.
$ac_ext
18898 LIBS
=$ac_check_lib_save_LIBS
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18902 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
18903 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18906 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18907 if ${ac_cv_lib_dld_dld_link+:} false
; then :
18908 $as_echo_n "(cached) " >&6
18910 ac_check_lib_save_LIBS
=$LIBS
18912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18915 /* Override any GCC internal prototype to avoid an error.
18916 Use char because int might match the return type of a GCC
18917 builtin and then its argument prototype would still apply. */
18925 return dld_link ();
18930 if ac_fn_c_try_link
"$LINENO"; then :
18931 ac_cv_lib_dld_dld_link
=yes
18933 ac_cv_lib_dld_dld_link
=no
18935 rm -f core conftest.err conftest.
$ac_objext \
18936 conftest
$ac_exeext conftest.
$ac_ext
18937 LIBS
=$ac_check_lib_save_LIBS
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18940 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18941 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
18942 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18963 if test "x$lt_cv_dlopen" != xno
; then
18969 case $lt_cv_dlopen in
18971 save_CPPFLAGS
="$CPPFLAGS"
18972 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18974 save_LDFLAGS
="$LDFLAGS"
18975 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18978 LIBS
="$lt_cv_dlopen_libs $LIBS"
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18981 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18982 if ${lt_cv_dlopen_self+:} false
; then :
18983 $as_echo_n "(cached) " >&6
18985 if test "$cross_compiling" = yes; then :
18986 lt_cv_dlopen_self
=cross
18988 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18989 lt_status
=$lt_dlunknown
18990 cat > conftest.
$ac_ext <<_LT_EOF
18991 #line 18991 "configure"
18992 #include "confdefs.h"
19001 # define LT_DLGLOBAL RTLD_GLOBAL
19004 # define LT_DLGLOBAL DL_GLOBAL
19006 # define LT_DLGLOBAL 0
19010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19011 find out it does not work in some platform. */
19012 #ifndef LT_DLLAZY_OR_NOW
19014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19017 # define LT_DLLAZY_OR_NOW DL_LAZY
19020 # define LT_DLLAZY_OR_NOW RTLD_NOW
19023 # define LT_DLLAZY_OR_NOW DL_NOW
19025 # define LT_DLLAZY_OR_NOW 0
19032 /* When -fvisbility=hidden is used, assume the code has been annotated
19033 correspondingly for the symbols needed. */
19034 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19035 void fnord () __attribute__((visibility("default")));
19038 void fnord () { int i=42; }
19041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19042 int status = $lt_dlunknown;
19046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19049 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19050 else puts (dlerror ());
19052 /* dlclose (self); */
19060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19061 (eval $ac_link) 2>&5
19063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19064 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19065 (.
/conftest
; exit; ) >&5 2>/dev
/null
19067 case x
$lt_status in
19068 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
19069 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
19070 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
19073 # compilation failed
19074 lt_cv_dlopen_self
=no
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19082 $as_echo "$lt_cv_dlopen_self" >&6; }
19084 if test "x$lt_cv_dlopen_self" = xyes
; then
19085 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19087 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19088 if ${lt_cv_dlopen_self_static+:} false
; then :
19089 $as_echo_n "(cached) " >&6
19091 if test "$cross_compiling" = yes; then :
19092 lt_cv_dlopen_self_static
=cross
19094 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
19095 lt_status
=$lt_dlunknown
19096 cat > conftest.
$ac_ext <<_LT_EOF
19097 #line 19097 "configure"
19098 #include "confdefs.h"
19107 # define LT_DLGLOBAL RTLD_GLOBAL
19110 # define LT_DLGLOBAL DL_GLOBAL
19112 # define LT_DLGLOBAL 0
19116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19117 find out it does not work in some platform. */
19118 #ifndef LT_DLLAZY_OR_NOW
19120 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19123 # define LT_DLLAZY_OR_NOW DL_LAZY
19126 # define LT_DLLAZY_OR_NOW RTLD_NOW
19129 # define LT_DLLAZY_OR_NOW DL_NOW
19131 # define LT_DLLAZY_OR_NOW 0
19138 /* When -fvisbility=hidden is used, assume the code has been annotated
19139 correspondingly for the symbols needed. */
19140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19141 void fnord () __attribute__((visibility("default")));
19144 void fnord () { int i=42; }
19147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19148 int status = $lt_dlunknown;
19152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19156 else puts (dlerror ());
19158 /* dlclose (self); */
19166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19167 (eval $ac_link) 2>&5
19169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19170 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
19171 (.
/conftest
; exit; ) >&5 2>/dev
/null
19173 case x
$lt_status in
19174 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
19175 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
19176 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
19179 # compilation failed
19180 lt_cv_dlopen_self_static
=no
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19188 $as_echo "$lt_cv_dlopen_self_static" >&6; }
19191 CPPFLAGS
="$save_CPPFLAGS"
19192 LDFLAGS
="$save_LDFLAGS"
19197 case $lt_cv_dlopen_self in
19198 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
19199 *) enable_dlopen_self
=unknown
;;
19202 case $lt_cv_dlopen_self_static in
19203 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
19204 *) enable_dlopen_self_static
=unknown
;;
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19227 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
19228 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
19229 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
19230 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19234 # FIXME - insert some real tests, host_os isn't really good enough
19237 if test -n "$STRIP" ; then
19238 striplib
="$STRIP -x"
19239 old_striplib
="$STRIP -S"
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241 $as_echo "yes" >&6; }
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244 $as_echo "no" >&6; }
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19265 # Report which library types will actually be built
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19267 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19269 $as_echo "$can_build_shared" >&6; }
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19272 $as_echo_n "checking whether to build shared libraries... " >&6; }
19273 test "$can_build_shared" = "no" && enable_shared
=no
19275 # On AIX, shared libraries and static libraries use the same namespace, and
19276 # are all built from PIC.
19279 test "$enable_shared" = yes && enable_static
=no
19280 if test -n "$RANLIB"; then
19281 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
19282 postinstall_cmds
='$RANLIB $lib'
19287 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
19288 test "$enable_shared" = yes && enable_static
=no
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19293 $as_echo "$enable_shared" >&6; }
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19296 $as_echo_n "checking whether to build static libraries... " >&6; }
19297 # Make sure either enable_shared or enable_static is yes.
19298 test "$enable_shared" = yes || enable_static
=yes
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19300 $as_echo "$enable_static" >&6; }
19307 ac_cpp
='$CXXCPP $CPPFLAGS'
19308 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19309 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19310 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19314 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
19315 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
19316 (test "X$CXX" != "Xg++"))) ; then
19318 ac_cpp
='$CXXCPP $CPPFLAGS'
19319 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19323 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19324 if test -z "$CXXCPP"; then
19325 if ${ac_cv_prog_CXXCPP+:} false
; then :
19326 $as_echo_n "(cached) " >&6
19328 # Double quotes because CXXCPP needs to be expanded
19329 for CXXCPP
in "$CXX -E" "/lib/cpp"
19331 ac_preproc_ok
=false
19332 for ac_cxx_preproc_warn_flag
in '' yes
19334 # Use a header file that comes with gcc, so configuring glibc
19335 # with a fresh cross-compiler works.
19336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19337 # <limits.h> exists even on freestanding compilers.
19338 # On the NeXT, cc -E runs the code through the compiler's parser,
19339 # not just through cpp. "Syntax error" is here to catch this case.
19340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19343 # include <limits.h>
19345 # include <assert.h>
19349 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19352 # Broken: fails on valid input.
19355 rm -f conftest.err conftest.i conftest.
$ac_ext
19357 # OK, works on sane cases. Now check whether nonexistent headers
19358 # can be detected and how.
19359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19360 /* end confdefs.h. */
19361 #include <ac_nonexistent.h>
19363 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19364 # Broken: success on invalid input.
19367 # Passes both tests.
19371 rm -f conftest.err conftest.i conftest.
$ac_ext
19374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19375 rm -f conftest.i conftest.err conftest.
$ac_ext
19376 if $ac_preproc_ok; then :
19381 ac_cv_prog_CXXCPP
=$CXXCPP
19384 CXXCPP
=$ac_cv_prog_CXXCPP
19386 ac_cv_prog_CXXCPP
=$CXXCPP
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19389 $as_echo "$CXXCPP" >&6; }
19390 ac_preproc_ok
=false
19391 for ac_cxx_preproc_warn_flag
in '' yes
19393 # Use a header file that comes with gcc, so configuring glibc
19394 # with a fresh cross-compiler works.
19395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19396 # <limits.h> exists even on freestanding compilers.
19397 # On the NeXT, cc -E runs the code through the compiler's parser,
19398 # not just through cpp. "Syntax error" is here to catch this case.
19399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19402 # include <limits.h>
19404 # include <assert.h>
19408 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19411 # Broken: fails on valid input.
19414 rm -f conftest.err conftest.i conftest.
$ac_ext
19416 # OK, works on sane cases. Now check whether nonexistent headers
19417 # can be detected and how.
19418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19420 #include <ac_nonexistent.h>
19422 if ac_fn_cxx_try_cpp
"$LINENO"; then :
19423 # Broken: success on invalid input.
19426 # Passes both tests.
19430 rm -f conftest.err conftest.i conftest.
$ac_ext
19433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19434 rm -f conftest.i conftest.err conftest.
$ac_ext
19435 if $ac_preproc_ok; then :
19438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19440 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
19441 See \`config.log' for more details" "$LINENO" 5; }
19445 ac_cpp
='$CXXCPP $CPPFLAGS'
19446 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19447 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19448 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19451 _lt_caught_CXX_error
=yes
19455 ac_cpp
='$CXXCPP $CPPFLAGS'
19456 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19460 archive_cmds_need_lc_CXX
=no
19461 allow_undefined_flag_CXX
=
19462 always_export_symbols_CXX
=no
19463 archive_expsym_cmds_CXX
=
19464 compiler_needs_object_CXX
=no
19465 export_dynamic_flag_spec_CXX
=
19466 hardcode_direct_CXX
=no
19467 hardcode_direct_absolute_CXX
=no
19468 hardcode_libdir_flag_spec_CXX
=
19469 hardcode_libdir_flag_spec_ld_CXX
=
19470 hardcode_libdir_separator_CXX
=
19471 hardcode_minus_L_CXX
=no
19472 hardcode_shlibpath_var_CXX
=unsupported
19473 hardcode_automatic_CXX
=no
19474 inherit_rpath_CXX
=no
19476 module_expsym_cmds_CXX
=
19477 link_all_deplibs_CXX
=unknown
19478 old_archive_cmds_CXX
=$old_archive_cmds
19479 reload_flag_CXX
=$reload_flag
19480 reload_cmds_CXX
=$reload_cmds
19481 no_undefined_flag_CXX
=
19482 whole_archive_flag_spec_CXX
=
19483 enable_shared_with_static_runtimes_CXX
=no
19485 # Source file extension for C++ test sources.
19488 # Object file extension for compiled C++ test sources.
19492 # No sense in running all these tests if we already determined that
19493 # the CXX compiler isn't working. Some variables (like enable_shared)
19494 # are currently assumed to apply to all compilers on this platform,
19495 # and will be corrupted by setting them based on a non-working compiler.
19496 if test "$_lt_caught_CXX_error" != yes; then
19497 # Code to be used in simple compile tests
19498 lt_simple_compile_test_code
="int some_variable = 0;"
19500 # Code to be used in simple link tests
19501 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19503 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19510 # If no C compiler was specified, use CC.
19513 # If no C compiler flags were specified, use CFLAGS.
19514 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19516 # Allow CC to be a program name with arguments.
19520 # save warnings/boilerplate of simple test code
19521 ac_outfile
=conftest.
$ac_objext
19522 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19523 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19524 _lt_compiler_boilerplate
=`cat conftest.err`
19527 ac_outfile
=conftest.
$ac_objext
19528 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19529 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19530 _lt_linker_boilerplate
=`cat conftest.err`
19534 # Allow CC to be a program name with arguments.
19539 lt_save_with_gnu_ld
=$with_gnu_ld
19540 lt_save_path_LD
=$lt_cv_path_LD
19541 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19542 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19544 $as_unset lt_cv_prog_gnu_ld
19546 if test -n "${lt_cv_path_LDCXX+set}"; then
19547 lt_cv_path_LD
=$lt_cv_path_LDCXX
19549 $as_unset lt_cv_path_LD
19551 test -z "${LDCXX+set}" || LD
=$LDCXX
19555 for cc_temp
in $compiler""; do
19557 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19558 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19563 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19566 if test -n "$compiler"; then
19567 # We don't want -fno-exception when compiling C++ code, so set the
19568 # no_builtin_flag separately
19569 if test "$GXX" = yes; then
19570 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19572 lt_prog_compiler_no_builtin_flag_CXX
=
19575 if test "$GXX" = yes; then
19576 # Set up default GNU C++ configuration
19580 # Check whether --with-gnu-ld was given.
19581 if test "${with_gnu_ld+set}" = set; then :
19582 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19588 if test "$GCC" = yes; then
19589 # Check if gcc -print-prog-name=ld gives a path.
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19591 $as_echo_n "checking for ld used by $CC... " >&6; }
19594 # gcc leaves a trailing carriage return which upsets mingw
19595 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19597 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19600 # Accept absolute paths.
19602 re_direlt
='/[^/][^/]*/\.\./'
19603 # Canonicalize the pathname of ld
19604 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19605 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19606 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19608 test -z "$LD" && LD
="$ac_prog"
19611 # If it fails, then pretend we aren't using GCC.
19615 # If it is relative, then search for the first ld in PATH.
19616 with_gnu_ld
=unknown
19619 elif test "$with_gnu_ld" = yes; then
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19621 $as_echo_n "checking for GNU ld... " >&6; }
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19624 $as_echo_n "checking for non-GNU ld... " >&6; }
19626 if ${lt_cv_path_LD+:} false
; then :
19627 $as_echo_n "(cached) " >&6
19629 if test -z "$LD"; then
19630 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19631 for ac_dir
in $PATH; do
19633 test -z "$ac_dir" && ac_dir
=.
19634 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19635 lt_cv_path_LD
="$ac_dir/$ac_prog"
19636 # Check to see if the program is GNU ld. I'd rather use --version,
19637 # but apparently some variants of GNU ld only accept -v.
19638 # Break only if it was the GNU/non-GNU ld that we prefer.
19639 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19640 *GNU
* |
*'with BFD'*)
19641 test "$with_gnu_ld" != no
&& break
19644 test "$with_gnu_ld" != yes && break
19651 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19655 LD
="$lt_cv_path_LD"
19656 if test -n "$LD"; then
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19658 $as_echo "$LD" >&6; }
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661 $as_echo "no" >&6; }
19663 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19665 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19666 if ${lt_cv_prog_gnu_ld+:} false
; then :
19667 $as_echo_n "(cached) " >&6
19669 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19670 case `$LD -v 2>&1 </dev/null` in
19671 *GNU
* |
*'with BFD'*)
19672 lt_cv_prog_gnu_ld
=yes
19675 lt_cv_prog_gnu_ld
=no
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19680 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19681 with_gnu_ld
=$lt_cv_prog_gnu_ld
19689 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19690 # archiving commands below assume that GNU ld is being used.
19691 if test "$with_gnu_ld" = yes; then
19692 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19693 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'
19695 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19696 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19698 # If archive_cmds runs LD, not CC, wlarc should be empty
19699 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19700 # investigate it a little bit more. (MM)
19703 # ancient GNU ld didn't support --whole-archive et. al.
19704 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19705 $GREP 'no-whole-archive' > /dev
/null
; then
19706 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19708 whole_archive_flag_spec_CXX
=
19714 # A generic and very simple default shared library creation
19715 # command for GNU C++ for the case where it uses the native
19716 # linker, instead of GNU ld. If possible, this setting should
19717 # overridden to take advantage of the native linker features on
19718 # the platform it is being used on.
19719 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19722 # Commands to make compiler produce verbose output that lists
19723 # what "hidden" libraries, object files and flags are used when
19724 # linking a shared library.
19725 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19733 # PORTME: fill in a description of your system's C++ link characteristics
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19735 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19739 # FIXME: insert proper C++ library support
19743 if test "$host_cpu" = ia64
; then
19744 # On IA64, the linker does run time linking by default, so we don't
19745 # have to do anything special.
19746 aix_use_runtimelinking
=no
19747 exp_sym_flag
='-Bexport'
19750 aix_use_runtimelinking
=no
19752 # Test if we are trying to use run time linking or normal
19753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19754 # need to do runtime linking.
19755 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19756 for ld_flag
in $LDFLAGS; do
19759 aix_use_runtimelinking
=yes
19767 exp_sym_flag
='-bexport'
19768 no_entry_flag
='-bnoentry'
19771 # When large executables or shared objects are built, AIX ld can
19772 # have problems creating the table of contents. If linking a library
19773 # or program results in "error TOC overflow" add -mminimal-toc to
19774 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19775 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19777 archive_cmds_CXX
=''
19778 hardcode_direct_CXX
=yes
19779 hardcode_direct_absolute_CXX
=yes
19780 hardcode_libdir_separator_CXX
=':'
19781 link_all_deplibs_CXX
=yes
19782 file_list_spec_CXX
='${wl}-f,'
19784 if test "$GXX" = yes; then
19785 case $host_os in aix4.
[012]|aix4.
[012].
*)
19786 # We only want to do this on AIX 4.2 and lower, the check
19787 # below for broken collect2 doesn't work under 4.3+
19788 collect2name
=`${CC} -print-prog-name=collect2`
19789 if test -f "$collect2name" &&
19790 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19792 # We have reworked collect2
19795 # We have old collect2
19796 hardcode_direct_CXX
=unsupported
19797 # It fails to find uninstalled libraries when the uninstalled
19798 # path is not listed in the libpath. Setting hardcode_minus_L
19799 # to unsupported forces relinking
19800 hardcode_minus_L_CXX
=yes
19801 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19802 hardcode_libdir_separator_CXX
=
19805 shared_flag
='-shared'
19806 if test "$aix_use_runtimelinking" = yes; then
19807 shared_flag
="$shared_flag "'${wl}-G'
19811 if test "$host_cpu" = ia64
; then
19812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19813 # chokes on -Wl,-G. The following line is correct:
19816 if test "$aix_use_runtimelinking" = yes; then
19817 shared_flag
='${wl}-G'
19819 shared_flag
='${wl}-bM:SRE'
19824 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19825 # It seems that -bexpall does not export symbols beginning with
19826 # underscore (_), so it is better to generate a list of symbols to
19828 always_export_symbols_CXX
=yes
19829 if test "$aix_use_runtimelinking" = yes; then
19830 # Warning - without using the other runtime loading flags (-brtl),
19831 # -berok will link without error, but may produce a broken library.
19832 allow_undefined_flag_CXX
='-berok'
19833 # Determine the default libpath from the value encoded in an empty
19835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19836 /* end confdefs.h. */
19846 if ac_fn_cxx_try_link
"$LINENO"; then :
19848 lt_aix_libpath_sed
='
19849 /Import File Strings/,/^$/ {
19855 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19856 # Check for a 64-bit object if we didn't find anything.
19857 if test -z "$aix_libpath"; then
19858 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19861 rm -f core conftest.err conftest.
$ac_objext \
19862 conftest
$ac_exeext conftest.
$ac_ext
19863 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19865 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19867 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"
19869 if test "$host_cpu" = ia64
; then
19870 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19871 allow_undefined_flag_CXX
="-z nodefs"
19872 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"
19874 # Determine the default libpath from the value encoded in an
19875 # empty executable.
19876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19877 /* end confdefs.h. */
19887 if ac_fn_cxx_try_link
"$LINENO"; then :
19889 lt_aix_libpath_sed
='
19890 /Import File Strings/,/^$/ {
19896 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19897 # Check for a 64-bit object if we didn't find anything.
19898 if test -z "$aix_libpath"; then
19899 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19902 rm -f core conftest.err conftest.
$ac_objext \
19903 conftest
$ac_exeext conftest.
$ac_ext
19904 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19906 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19907 # Warning - without using the other run time loading flags,
19908 # -berok will link without error, but may produce a broken library.
19909 no_undefined_flag_CXX
=' ${wl}-bernotok'
19910 allow_undefined_flag_CXX
=' ${wl}-berok'
19911 if test "$with_gnu_ld" = yes; then
19912 # We only use this code for GNU lds that support --whole-archive.
19913 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19915 # Exported symbols can be pulled into shared objects from archives
19916 whole_archive_flag_spec_CXX
='$convenience'
19918 archive_cmds_need_lc_CXX
=yes
19919 # This is similar to how AIX traditionally builds its shared
19921 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'
19927 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19928 allow_undefined_flag_CXX
=unsupported
19929 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19930 # support --undefined. This deserves some investigation. FIXME
19931 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19938 case $cc_basename in
19940 # FIXME: insert proper C++ library support
19946 cygwin
* | mingw
* | pw32
* | cegcc
*)
19947 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19948 # as there is no search path for DLLs.
19949 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19950 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19951 allow_undefined_flag_CXX
=unsupported
19952 always_export_symbols_CXX
=no
19953 enable_shared_with_static_runtimes_CXX
=yes
19955 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19956 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'
19957 # If the export-symbols file already is a .def file (1st line
19958 # is EXPORTS), use it as is; otherwise, prepend...
19959 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19960 cp $export_symbols $output_objdir/$soname.def;
19962 echo EXPORTS > $output_objdir/$soname.def;
19963 cat $export_symbols >> $output_objdir/$soname.def;
19965 $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'
19970 darwin
* | rhapsody
*)
19973 archive_cmds_need_lc_CXX
=no
19974 hardcode_direct_CXX
=no
19975 hardcode_automatic_CXX
=yes
19976 hardcode_shlibpath_var_CXX
=unsupported
19977 if test "$lt_cv_ld_force_load" = "yes"; then
19978 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\"`'
19980 whole_archive_flag_spec_CXX
=''
19982 link_all_deplibs_CXX
=yes
19983 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19984 case $cc_basename in
19985 ifort
*) _lt_dar_can_shared
=yes ;;
19986 *) _lt_dar_can_shared
=$GCC ;;
19988 if test "$_lt_dar_can_shared" = "yes"; then
19989 output_verbose_link_cmd
=func_echo_all
19990 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}"
19991 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19992 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}"
19993 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}"
19994 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19995 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}"
19996 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}"
20006 case $cc_basename in
20008 # FIXME: insert proper C++ library support
20012 # Green Hills C++ Compiler
20013 # FIXME: insert proper C++ library support
20017 # FIXME: insert proper C++ library support
20024 # C++ shared libraries reported to be fairly broken before
20030 archive_cmds_need_lc_CXX
=no
20033 freebsd
* | dragonfly
*)
20034 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20043 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20044 link_all_deplibs_CXX
=yes
20048 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20049 hardcode_libdir_separator_CXX
=:
20050 export_dynamic_flag_spec_CXX
='${wl}-E'
20051 hardcode_direct_CXX
=yes
20052 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20053 # but as the default
20054 # location of the library.
20056 case $cc_basename in
20058 # FIXME: insert proper C++ library support
20062 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'
20063 # Commands to make compiler produce verbose output that lists
20064 # what "hidden" libraries, object files and flags are used when
20065 # linking a shared library.
20067 # There doesn't appear to be a way to prevent this compiler from
20068 # explicitly linking system object files so we need to strip them
20069 # from the output so that they don't get included in the library
20071 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"'
20074 if test "$GXX" = yes; then
20075 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'
20077 # FIXME: insert proper C++ library support
20085 if test $with_gnu_ld = no
; then
20086 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
20087 hardcode_libdir_separator_CXX
=:
20093 export_dynamic_flag_spec_CXX
='${wl}-E'
20099 hardcode_direct_CXX
=no
20100 hardcode_shlibpath_var_CXX
=no
20103 hardcode_direct_CXX
=yes
20104 hardcode_direct_absolute_CXX
=yes
20105 hardcode_minus_L_CXX
=yes # Not in the search PATH,
20106 # but as the default
20107 # location of the library.
20111 case $cc_basename in
20113 # FIXME: insert proper C++ library support
20119 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20122 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20125 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20128 # Commands to make compiler produce verbose output that lists
20129 # what "hidden" libraries, object files and flags are used when
20130 # linking a shared library.
20132 # There doesn't appear to be a way to prevent this compiler from
20133 # explicitly linking system object files so we need to strip them
20134 # from the output so that they don't get included in the library
20136 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"'
20139 if test "$GXX" = yes; then
20140 if test $with_gnu_ld = no
; then
20143 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20146 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20149 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'
20154 # FIXME: insert proper C++ library support
20162 hardcode_direct_CXX
=no
20163 hardcode_shlibpath_var_CXX
=no
20164 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20165 export_dynamic_flag_spec_CXX
='${wl}-E'
20166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20167 # Instead, shared libraries are loaded at an image base (0x10000000 by
20168 # default) and relocated if they conflict, which is a slow very memory
20169 # consuming and fragmenting process. To avoid this, we pick a random,
20170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20172 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'
20173 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'
20176 case $cc_basename in
20179 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'
20181 # Archives containing C++ object files must be created using
20182 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
20183 # necessary to make sure instantiated templates are included
20185 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
20188 if test "$GXX" = yes; then
20189 if test "$with_gnu_ld" = no
; then
20190 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'
20192 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'
20195 link_all_deplibs_CXX
=yes
20198 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20199 hardcode_libdir_separator_CXX
=:
20200 inherit_rpath_CXX
=yes
20203 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20204 case $cc_basename in
20206 # Kuck and Associates, Inc. (KAI) C++ Compiler
20208 # KCC will only create a shared library if the output file
20209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20210 # to its proper name (with version) after linking.
20211 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'
20212 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'
20213 # Commands to make compiler produce verbose output that lists
20214 # what "hidden" libraries, object files and flags are used when
20215 # linking a shared library.
20217 # There doesn't appear to be a way to prevent this compiler from
20218 # explicitly linking system object files so we need to strip them
20219 # from the output so that they don't get included in the library
20221 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"'
20223 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20224 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20226 # Archives containing C++ object files must be created using
20227 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20228 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
20233 # version 8.0 and above of icpc choke on multiply defined symbols
20234 # if we add $predep_objects and $postdep_objects, however 7.1 and
20235 # earlier do not add the objects themselves.
20236 case `$CC -V 2>&1` in
20238 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20239 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'
20241 *) # Version 8.0 or newer
20244 ia64
*) tmp_idyn
=' -i_dynamic';;
20246 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20247 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'
20250 archive_cmds_need_lc_CXX
=no
20251 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20252 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20253 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
20256 # Portland Group C++ compiler
20258 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
20259 prelink_cmds_CXX
='tpldir=Template.dir~
20261 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20262 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20263 old_archive_cmds_CXX
='tpldir=Template.dir~
20265 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20266 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20268 archive_cmds_CXX
='tpldir=Template.dir~
20270 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20271 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20272 archive_expsym_cmds_CXX
='tpldir=Template.dir~
20274 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20275 $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'
20277 *) # Version 6 and above use weak symbols
20278 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
20279 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'
20283 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
20284 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20285 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'
20289 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20290 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'
20292 runpath_var
=LD_RUN_PATH
20293 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20294 hardcode_libdir_separator_CXX
=:
20296 # Commands to make compiler produce verbose output that lists
20297 # what "hidden" libraries, object files and flags are used when
20298 # linking a shared library.
20300 # There doesn't appear to be a way to prevent this compiler from
20301 # explicitly linking system object files so we need to strip them
20302 # from the output so that they don't get included in the library
20304 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'
20306 xl
* | mpixl
* | bgxl
*)
20307 # IBM XL 8.0 on PPC, with GNU ld
20308 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20309 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
20310 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20311 if test "x$supports_anon_versioning" = xyes
; then
20312 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
20313 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20314 echo "local: *; };" >> $output_objdir/$libname.ver~
20315 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20319 case `$CC -V 2>&1 | sed 5q` in
20322 no_undefined_flag_CXX
=' -zdefs'
20323 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20324 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'
20325 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20326 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'
20327 compiler_needs_object_CXX
=yes
20329 # Not sure whether something based on
20330 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20332 output_verbose_link_cmd
='func_echo_all'
20334 # Archives containing C++ object files must be created using
20335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20336 # necessary to make sure instantiated templates are included
20338 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20346 # FIXME: insert proper C++ library support
20351 # FIXME: insert proper C++ library support
20356 case $cc_basename in
20358 # FIXME: insert proper C++ library support
20362 # FIXME: insert proper C++ library support
20369 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20370 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20372 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20373 hardcode_direct_CXX
=yes
20374 hardcode_shlibpath_var_CXX
=no
20376 # Workaround some broken pre-1.5 toolchains
20377 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20385 # C++ shared libraries are fairly broken
20390 if test -f /usr
/libexec
/ld.so
; then
20391 hardcode_direct_CXX
=yes
20392 hardcode_shlibpath_var_CXX
=no
20393 hardcode_direct_absolute_CXX
=yes
20394 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20395 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20397 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
20398 export_dynamic_flag_spec_CXX
='${wl}-E'
20399 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20401 output_verbose_link_cmd
=func_echo_all
20407 osf3
* | osf4
* | osf5
*)
20408 case $cc_basename in
20410 # Kuck and Associates, Inc. (KAI) C++ Compiler
20412 # KCC will only create a shared library if the output file
20413 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20414 # to its proper name (with version) after linking.
20415 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'
20417 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
20418 hardcode_libdir_separator_CXX
=:
20420 # Archives containing C++ object files must be created using
20421 # the KAI C++ compiler.
20423 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
20424 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
20428 # Rational C++ 2.4.1
20429 # FIXME: insert proper C++ library support
20435 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20436 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'
20437 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20440 allow_undefined_flag_CXX
=' -expect_unresolved \*'
20441 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'
20442 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20443 echo "-hidden">> $lib.exp~
20444 $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~
20446 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
20450 hardcode_libdir_separator_CXX
=:
20452 # Commands to make compiler produce verbose output that lists
20453 # what "hidden" libraries, object files and flags are used when
20454 # linking a shared library.
20456 # There doesn't appear to be a way to prevent this compiler from
20457 # explicitly linking system object files so we need to strip them
20458 # from the output so that they don't get included in the library
20460 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"'
20463 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20464 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20467 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'
20470 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'
20474 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20475 hardcode_libdir_separator_CXX
=:
20477 # Commands to make compiler produce verbose output that lists
20478 # what "hidden" libraries, object files and flags are used when
20479 # linking a shared library.
20480 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20483 # FIXME: insert proper C++ library support
20491 # FIXME: insert proper C++ library support
20496 case $cc_basename in
20499 # FIXME: insert proper C++ library support
20504 # FIXME: insert proper C++ library support
20508 # FIXME: insert proper C++ library support
20515 case $cc_basename in
20517 # Sun C++ 4.2, 5.x and Centerline C++
20518 archive_cmds_need_lc_CXX
=yes
20519 no_undefined_flag_CXX
=' -zdefs'
20520 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20521 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20522 $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'
20524 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20525 hardcode_shlibpath_var_CXX
=no
20527 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20529 # The compiler driver will combine and reorder linker options,
20530 # but understands `-z linker_flag'.
20531 # Supported since Solaris 2.6 (maybe 2.5.1?)
20532 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20535 link_all_deplibs_CXX
=yes
20537 output_verbose_link_cmd
='func_echo_all'
20539 # Archives containing C++ object files must be created using
20540 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20541 # necessary to make sure instantiated templates are included
20543 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20546 # Green Hills C++ Compiler
20547 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20549 # The C++ compiler must be used to create the archive.
20550 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20553 # GNU C++ compiler with Solaris linker
20554 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20555 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20556 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20557 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20558 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20559 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20561 # Commands to make compiler produce verbose output that lists
20562 # what "hidden" libraries, object files and flags are used when
20563 # linking a shared library.
20564 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20566 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20568 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20569 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20570 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20572 # Commands to make compiler produce verbose output that lists
20573 # what "hidden" libraries, object files and flags are used when
20574 # linking a shared library.
20575 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20578 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20580 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20582 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20590 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20591 no_undefined_flag_CXX
='${wl}-z,text'
20592 archive_cmds_need_lc_CXX
=no
20593 hardcode_shlibpath_var_CXX
=no
20594 runpath_var
='LD_RUN_PATH'
20596 case $cc_basename in
20598 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20599 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20602 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20603 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20608 sysv5
* | sco3.2v5
* | sco5v6
*)
20609 # Note: We can NOT use -z defs as we might desire, because we do not
20610 # link with -lc, and that would cause any symbols used from libc to
20611 # always be unresolved, which means just about no library would
20612 # ever link correctly. If we're not using GNU ld we use -z text
20613 # though, which does catch some bad symbols but isn't as heavy-handed
20615 no_undefined_flag_CXX
='${wl}-z,text'
20616 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20617 archive_cmds_need_lc_CXX
=no
20618 hardcode_shlibpath_var_CXX
=no
20619 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20620 hardcode_libdir_separator_CXX
=':'
20621 link_all_deplibs_CXX
=yes
20622 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20623 runpath_var
='LD_RUN_PATH'
20625 case $cc_basename in
20627 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20628 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20629 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20630 '"$old_archive_cmds_CXX"
20631 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20632 '"$reload_cmds_CXX"
20635 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20636 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20642 case $cc_basename in
20644 # NonStop-UX NCC 3.20
20645 # FIXME: insert proper C++ library support
20649 # FIXME: insert proper C++ library support
20656 # FIXME: insert proper C++ library support
20661 # FIXME: insert proper C++ library support
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20667 $as_echo "$ld_shlibs_CXX" >&6; }
20668 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20674 ## There is no encapsulation within the following macros, do not change
20675 ## the running order or otherwise move them around unless you know exactly
20676 ## what you are doing...
20677 # Dependencies to place before and after the object being linked:
20678 predep_objects_CXX
=
20679 postdep_objects_CXX
=
20682 compiler_lib_search_path_CXX
=
20684 cat > conftest.
$ac_ext <<_LT_EOF
20688 Foo (void) { a = 0; }
20694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20695 (eval $ac_compile) 2>&5
20697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20698 test $ac_status = 0; }; then
20699 # Parse the compiler output and extract the necessary
20700 # objects, libraries and library flags.
20702 # Sentinel used to keep track of whether or not we are before
20703 # the conftest object file.
20704 pre_test_object_deps_done
=no
20706 for p
in `eval "$output_verbose_link_cmd"`; do
20710 # Some compilers place space between "-{L,R}" and the path.
20711 # Remove the space.
20712 if test $p = "-L" ||
20713 test $p = "-R"; then
20720 if test "$pre_test_object_deps_done" = no
; then
20723 # Internal compiler library paths should come after those
20724 # provided the user. The postdeps already come after the
20725 # user supplied libs so there is no need to process them.
20726 if test -z "$compiler_lib_search_path_CXX"; then
20727 compiler_lib_search_path_CXX
="${prev}${p}"
20729 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20732 # The "-l" case would never come before the object being
20733 # linked, so don't bother handling this case.
20736 if test -z "$postdeps_CXX"; then
20737 postdeps_CXX
="${prev}${p}"
20739 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20745 # This assumes that the test object file only shows up
20746 # once in the compiler output.
20747 if test "$p" = "conftest.$objext"; then
20748 pre_test_object_deps_done
=yes
20752 if test "$pre_test_object_deps_done" = no
; then
20753 if test -z "$predep_objects_CXX"; then
20754 predep_objects_CXX
="$p"
20756 predep_objects_CXX
="$predep_objects_CXX $p"
20759 if test -z "$postdep_objects_CXX"; then
20760 postdep_objects_CXX
="$p"
20762 postdep_objects_CXX
="$postdep_objects_CXX $p"
20767 *) ;; # Ignore the rest.
20775 echo "libtool.m4: error: problem compiling CXX test program"
20778 $RM -f confest.
$objext
20780 # PORTME: override above test on systems where it is broken
20783 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20784 # hack all around it, let's just trust "g++" to DTRT.
20785 predep_objects_CXX
=
20786 postdep_objects_CXX
=
20791 case `$CC -V 2>&1 | sed 5q` in
20795 # The more standards-conforming stlport4 library is
20796 # incompatible with the Cstd library. Avoid specifying
20797 # it if it's in CXXFLAGS. Ignore libCrun as
20798 # -library=stlport4 depends on it.
20799 case " $CXX $CXXFLAGS " in
20800 *" -library=stlport4 "*)
20801 solaris_use_stlport4
=yes
20805 if test "$solaris_use_stlport4" != yes; then
20806 postdeps_CXX
='-library=Cstd -library=Crun'
20813 case $cc_basename in
20815 # The more standards-conforming stlport4 library is
20816 # incompatible with the Cstd library. Avoid specifying
20817 # it if it's in CXXFLAGS. Ignore libCrun as
20818 # -library=stlport4 depends on it.
20819 case " $CXX $CXXFLAGS " in
20820 *" -library=stlport4 "*)
20821 solaris_use_stlport4
=yes
20825 # Adding this requires a known-good setup of shared libraries for
20826 # Sun compiler versions before 5.6, else PIC objects from an old
20827 # archive will be linked into the output, leading to subtle bugs.
20828 if test "$solaris_use_stlport4" != yes; then
20829 postdeps_CXX
='-library=Cstd -library=Crun'
20837 case " $postdeps_CXX " in
20838 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20840 compiler_lib_search_dirs_CXX
=
20841 if test -n "${compiler_lib_search_path_CXX}"; then
20842 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20875 lt_prog_compiler_wl_CXX
=
20876 lt_prog_compiler_pic_CXX
=
20877 lt_prog_compiler_static_CXX
=
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20880 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20882 # C++ specific cases for pic, static, wl, etc.
20883 if test "$GXX" = yes; then
20884 lt_prog_compiler_wl_CXX
='-Wl,'
20885 lt_prog_compiler_static_CXX
='-static'
20889 # All AIX code is PIC.
20890 if test "$host_cpu" = ia64
; then
20891 # AIX 5 now supports IA64 processor
20892 lt_prog_compiler_static_CXX
='-Bstatic'
20894 lt_prog_compiler_pic_CXX
='-fPIC'
20900 # see comment about AmigaOS4 .so support
20901 lt_prog_compiler_pic_CXX
='-fPIC'
20904 # FIXME: we need at least 68020 code to build shared libraries, but
20905 # adding the `-m68020' flag to GCC prevents building anything better,
20907 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20912 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20913 # PIC is the default for these OSes.
20915 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20916 # This hack is so that the source file can tell whether it is being
20917 # built for inclusion in a dll (and should export symbols for example).
20918 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20919 # (--disable-auto-import) libraries
20920 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20922 darwin
* | rhapsody
*)
20923 # PIC is the default on this platform
20924 # Common symbols not allowed in MH_DYLIB files
20925 lt_prog_compiler_pic_CXX
='-fno-common'
20928 # DJGPP does not support shared libraries at all
20929 lt_prog_compiler_pic_CXX
=
20932 # PIC is the default for Haiku.
20933 # The "-static" flag exists, but is broken.
20934 lt_prog_compiler_static_CXX
=
20937 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20938 # Instead, we relocate shared libraries at runtime.
20941 if test -d /usr
/nec
; then
20942 lt_prog_compiler_pic_CXX
=-Kconform_pic
20946 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20947 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20948 # sets the default TLS model and affects inlining.
20953 lt_prog_compiler_pic_CXX
='-fPIC'
20958 # QNX uses GNU C++, but need to define -shared option too, otherwise
20959 # it will coredump.
20960 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20963 lt_prog_compiler_pic_CXX
='-fPIC'
20969 # All AIX code is PIC.
20970 if test "$host_cpu" = ia64
; then
20971 # AIX 5 now supports IA64 processor
20972 lt_prog_compiler_static_CXX
='-Bstatic'
20974 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20978 case $cc_basename in
20980 # Green Hills C++ Compiler
20981 # _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"
20986 case $cc_basename in
20988 lt_prog_compiler_pic_CXX
='-KPIC'
20991 # Green Hills C++ Compiler
20992 lt_prog_compiler_pic_CXX
='-pic'
20998 freebsd
* | dragonfly
*)
20999 # FreeBSD uses GNU C++
21001 hpux9
* | hpux10
* | hpux11
*)
21002 case $cc_basename in
21004 lt_prog_compiler_wl_CXX
='-Wl,'
21005 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21006 if test "$host_cpu" != ia64
; then
21007 lt_prog_compiler_pic_CXX
='+Z'
21011 lt_prog_compiler_wl_CXX
='-Wl,'
21012 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
21018 lt_prog_compiler_pic_CXX
='+Z'
21027 # This is c89, which is MS Visual C++ (no shared libs)
21028 # Anyone wants to do a port?
21030 irix5
* | irix6
* | nonstopux
*)
21031 case $cc_basename in
21033 lt_prog_compiler_wl_CXX
='-Wl,'
21034 lt_prog_compiler_static_CXX
='-non_shared'
21035 # CC pic flag -KPIC is the default.
21041 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21042 case $cc_basename in
21045 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21046 lt_prog_compiler_pic_CXX
='-fPIC'
21049 # old Intel C++ for x86_64 which still supported -KPIC.
21050 lt_prog_compiler_wl_CXX
='-Wl,'
21051 lt_prog_compiler_pic_CXX
='-KPIC'
21052 lt_prog_compiler_static_CXX
='-static'
21055 # Intel C++, used to be incompatible with GCC.
21056 # ICC 10 doesn't accept -KPIC any more.
21057 lt_prog_compiler_wl_CXX
='-Wl,'
21058 lt_prog_compiler_pic_CXX
='-fPIC'
21059 lt_prog_compiler_static_CXX
='-static'
21062 # Portland Group C++ compiler
21063 lt_prog_compiler_wl_CXX
='-Wl,'
21064 lt_prog_compiler_pic_CXX
='-fpic'
21065 lt_prog_compiler_static_CXX
='-Bstatic'
21069 # Make sure the PIC flag is empty. It appears that all Alpha
21070 # Linux and Compaq Tru64 Unix objects are PIC.
21071 lt_prog_compiler_pic_CXX
=
21072 lt_prog_compiler_static_CXX
='-non_shared'
21074 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
21075 # IBM XL 8.0, 9.0 on PPC and BlueGene
21076 lt_prog_compiler_wl_CXX
='-Wl,'
21077 lt_prog_compiler_pic_CXX
='-qpic'
21078 lt_prog_compiler_static_CXX
='-qstaticlink'
21081 case `$CC -V 2>&1 | sed 5q` in
21084 lt_prog_compiler_pic_CXX
='-KPIC'
21085 lt_prog_compiler_static_CXX
='-Bstatic'
21086 lt_prog_compiler_wl_CXX
='-Qoption ld '
21097 case $cc_basename in
21099 lt_prog_compiler_pic_CXX
='-W c,exportall'
21108 # QNX uses GNU C++, but need to define -shared option too, otherwise
21109 # it will coredump.
21110 lt_prog_compiler_pic_CXX
='-fPIC -shared'
21112 osf3
* | osf4
* | osf5
*)
21113 case $cc_basename in
21115 lt_prog_compiler_wl_CXX
='--backend -Wl,'
21118 # Rational C++ 2.4.1
21119 lt_prog_compiler_pic_CXX
='-pic'
21122 # Digital/Compaq C++
21123 lt_prog_compiler_wl_CXX
='-Wl,'
21124 # Make sure the PIC flag is empty. It appears that all Alpha
21125 # Linux and Compaq Tru64 Unix objects are PIC.
21126 lt_prog_compiler_pic_CXX
=
21127 lt_prog_compiler_static_CXX
='-non_shared'
21136 case $cc_basename in
21138 # Sun C++ 4.2, 5.x and Centerline C++
21139 lt_prog_compiler_pic_CXX
='-KPIC'
21140 lt_prog_compiler_static_CXX
='-Bstatic'
21141 lt_prog_compiler_wl_CXX
='-Qoption ld '
21144 # Green Hills C++ Compiler
21145 lt_prog_compiler_pic_CXX
='-PIC'
21152 case $cc_basename in
21155 lt_prog_compiler_pic_CXX
='-pic'
21156 lt_prog_compiler_static_CXX
='-Bstatic'
21160 lt_prog_compiler_pic_CXX
='-pic'
21166 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21167 case $cc_basename in
21169 lt_prog_compiler_wl_CXX
='-Wl,'
21170 lt_prog_compiler_pic_CXX
='-KPIC'
21171 lt_prog_compiler_static_CXX
='-Bstatic'
21176 case $cc_basename in
21178 # NonStop-UX NCC 3.20
21179 lt_prog_compiler_pic_CXX
='-KPIC'
21188 lt_prog_compiler_can_build_shared_CXX
=no
21194 # For platforms which do not support PIC, -DPIC is meaningless:
21196 lt_prog_compiler_pic_CXX
=
21199 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
21203 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
21208 # Check to make sure the PIC flag actually works.
21210 if test -n "$lt_prog_compiler_pic_CXX"; then
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21212 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21213 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
21214 $as_echo_n "(cached) " >&6
21216 lt_cv_prog_compiler_pic_works_CXX
=no
21217 ac_outfile
=conftest.
$ac_objext
21218 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21219 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
21220 # Insert the option either (1) after the last *FLAGS variable, or
21221 # (2) before a word containing "conftest.", or (3) at the end.
21222 # Note that $ac_compile itself does not contain backslashes and begins
21223 # with a dollar sign (not a hyphen), so the echo should work correctly.
21224 # The option is referenced via a variable to avoid confusing sed.
21225 lt_compile
=`echo "$ac_compile" | $SED \
21226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21228 -e 's:$: $lt_compiler_flag:'`
21229 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21230 (eval "$lt_compile" 2>conftest.err
)
21232 cat conftest.err
>&5
21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 if (exit $ac_status) && test -s "$ac_outfile"; then
21235 # The compiler can only warn and ignore the option if not recognized
21236 # So say no if there are warnings other than the usual output.
21237 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
21238 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21239 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21240 lt_cv_prog_compiler_pic_works_CXX
=yes
21246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21247 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21249 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
21250 case $lt_prog_compiler_pic_CXX in
21252 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
21255 lt_prog_compiler_pic_CXX
=
21256 lt_prog_compiler_can_build_shared_CXX
=no
21264 # Check to make sure the static flag actually works.
21266 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
21267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21268 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21269 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
21270 $as_echo_n "(cached) " >&6
21272 lt_cv_prog_compiler_static_works_CXX
=no
21273 save_LDFLAGS
="$LDFLAGS"
21274 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21275 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21276 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21277 # The linker can only warn and ignore the option if not recognized
21278 # So say no if there are warnings
21279 if test -s conftest.err
; then
21280 # Append any errors to the config.log.
21281 cat conftest.err
1>&5
21282 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
21283 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21284 if diff conftest.exp conftest.er2
>/dev
/null
; then
21285 lt_cv_prog_compiler_static_works_CXX
=yes
21288 lt_cv_prog_compiler_static_works_CXX
=yes
21292 LDFLAGS
="$save_LDFLAGS"
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21296 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21298 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
21301 lt_prog_compiler_static_CXX
=
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21309 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21310 $as_echo_n "(cached) " >&6
21312 lt_cv_prog_compiler_c_o_CXX
=no
21313 $RM -r conftest
2>/dev
/null
21317 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21319 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21320 # Insert the option either (1) after the last *FLAGS variable, or
21321 # (2) before a word containing "conftest.", or (3) at the end.
21322 # Note that $ac_compile itself does not contain backslashes and begins
21323 # with a dollar sign (not a hyphen), so the echo should work correctly.
21324 lt_compile
=`echo "$ac_compile" | $SED \
21325 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21327 -e 's:$: $lt_compiler_flag:'`
21328 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21329 (eval "$lt_compile" 2>out
/conftest.err
)
21331 cat out
/conftest.err
>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21335 # The compiler can only warn and ignore the option if not recognized
21336 # So say no if there are warnings
21337 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21338 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21339 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21340 lt_cv_prog_compiler_c_o_CXX
=yes
21345 # SGI C++ compiler will create directory out/ii_files/ for
21346 # template instantiation
21347 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21348 $RM out
/* && rmdir out
21354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21355 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21360 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21361 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
21362 $as_echo_n "(cached) " >&6
21364 lt_cv_prog_compiler_c_o_CXX
=no
21365 $RM -r conftest
2>/dev
/null
21369 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21371 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21372 # Insert the option either (1) after the last *FLAGS variable, or
21373 # (2) before a word containing "conftest.", or (3) at the end.
21374 # Note that $ac_compile itself does not contain backslashes and begins
21375 # with a dollar sign (not a hyphen), so the echo should work correctly.
21376 lt_compile
=`echo "$ac_compile" | $SED \
21377 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21378 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21379 -e 's:$: $lt_compiler_flag:'`
21380 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21381 (eval "$lt_compile" 2>out
/conftest.err
)
21383 cat out
/conftest.err
>&5
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21387 # The compiler can only warn and ignore the option if not recognized
21388 # So say no if there are warnings
21389 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
21390 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21391 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21392 lt_cv_prog_compiler_c_o_CXX
=yes
21397 # SGI C++ compiler will create directory out/ii_files/ for
21398 # template instantiation
21399 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
21400 $RM out
/* && rmdir out
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21407 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21412 hard_links
="nottested"
21413 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
21414 # do not overwrite the value of need_locks provided by the user
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21416 $as_echo_n "checking if we can lock with hard links... " >&6; }
21419 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21421 ln conftest.a conftest.b
2>&5 || hard_links
=no
21422 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21424 $as_echo "$hard_links" >&6; }
21425 if test "$hard_links" = no
; then
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21427 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21437 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21439 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21442 # If we're using GNU nm, then we don't want the "-C" option.
21443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21444 # Also, AIX nm treats weak defined symbols like other global defined
21445 # symbols, whereas GNU nm marks them as "W".
21446 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
21447 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'
21449 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'
21453 export_symbols_cmds_CXX
="$ltdll_cmds"
21455 cygwin
* | mingw
* | cegcc
*)
21456 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'
21459 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21462 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21465 $as_echo "$ld_shlibs_CXX" >&6; }
21466 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21468 with_gnu_ld_CXX
=$with_gnu_ld
21476 # Do we need to explicitly link libc?
21478 case "x$archive_cmds_need_lc_CXX" in
21480 # Assume -lc should be added
21481 archive_cmds_need_lc_CXX
=yes
21483 if test "$enable_shared" = yes && test "$GCC" = yes; then
21484 case $archive_cmds_CXX in
21486 # FIXME: we may have to deal with multi-command sequences.
21489 # Test whether the compiler implicitly links with -lc since on some
21490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21491 # to ld, don't add -lc before -lgcc.
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21493 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21494 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
21495 $as_echo_n "(cached) " >&6
21498 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21501 (eval $ac_compile) 2>&5
21503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21504 test $ac_status = 0; } 2>conftest.err
; then
21507 libobjs
=conftest.
$ac_objext
21509 wl
=$lt_prog_compiler_wl_CXX
21510 pic_flag
=$lt_prog_compiler_pic_CXX
21516 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21517 allow_undefined_flag_CXX
=
21518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21519 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21522 test $ac_status = 0; }
21524 lt_cv_archive_cmds_need_lc_CXX
=no
21526 lt_cv_archive_cmds_need_lc_CXX
=yes
21528 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21530 cat conftest.err
1>&5
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21536 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21537 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21608 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21610 library_names_spec
=
21611 libname_spec
='lib$name'
21615 postuninstall_cmds
=
21619 shlibpath_overrides_runpath
=unknown
21621 dynamic_linker
="$host_os ld.so"
21622 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21623 need_lib_prefix
=unknown
21624 hardcode_into_libs
=no
21626 # when you set need_version to no, make sure it does not cause -set_version
21627 # flags to be left without arguments
21628 need_version
=unknown
21633 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21634 shlibpath_var
=LIBPATH
21636 # AIX 3 has no versioning support, so we append a major version to the name.
21637 soname_spec
='${libname}${release}${shared_ext}$major'
21644 hardcode_into_libs
=yes
21645 if test "$host_cpu" = ia64
; then
21646 # AIX 5 supports IA64
21647 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21648 shlibpath_var
=LD_LIBRARY_PATH
21650 # With GCC up to 2.95.x, collect2 would create an import file
21651 # for dependence libraries. The import file would start with
21652 # the line `#! .'. This would cause the generated library to
21653 # depend on `.', always an invalid library. This was fixed in
21654 # development snapshots of GCC prior to 3.0.
21656 aix4 | aix4.
[01] | aix4.
[01].
*)
21657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21659 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21662 can_build_shared
=no
21666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21667 # soname into executable. Probably we can add versioning support to
21668 # collect2, so additional links can be useful in future.
21669 if test "$aix_use_runtimelinking" = yes; then
21670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21671 # instead of lib<name>.a to let people know that these are not
21672 # typical AIX shared libraries.
21673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21675 # We preserve .a as extension for shared libraries through AIX4.2
21676 # and later when we are not doing run time linking.
21677 library_names_spec
='${libname}${release}.a $libname.a'
21678 soname_spec
='${libname}${release}${shared_ext}$major'
21680 shlibpath_var
=LIBPATH
21687 # Since July 2007 AmigaOS4 officially supports .so libraries.
21688 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21689 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21692 library_names_spec
='$libname.ixlibrary $libname.a'
21693 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21694 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'
21700 library_names_spec
='${libname}${shared_ext}'
21701 dynamic_linker
="$host_os ld.so"
21702 shlibpath_var
=LIBRARY_PATH
21708 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21709 soname_spec
='${libname}${release}${shared_ext}$major'
21710 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21711 shlibpath_var
=LD_LIBRARY_PATH
21712 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21713 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21714 # the default ld.so.conf also contains /usr/contrib/lib and
21715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21716 # libtool to hard-code these into programs
21719 cygwin
* | mingw
* | pw32
* | cegcc
*)
21720 version_type
=windows
21725 case $GCC,$host_os in
21726 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21727 library_names_spec
='$libname.dll.a'
21728 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21729 postinstall_cmds
='base_file=`basename \${file}`~
21730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21731 dldir=$destdir/`dirname \$dlpath`~
21732 test -d \$dldir || mkdir -p \$dldir~
21733 $install_prog $dir/$dlname \$dldir/$dlname~
21734 chmod a+x \$dldir/$dlname~
21735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21738 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21739 dlpath=$dir/\$dldll~
21741 shlibpath_overrides_runpath
=yes
21745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21746 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21750 # MinGW DLLs use traditional 'lib' prefix
21751 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21754 # pw32 DLLs use 'pw' prefix rather than 'lib'
21755 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21761 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21764 dynamic_linker
='Win32 ld.exe'
21765 # FIXME: first we should search . and the directory the executable is in
21769 darwin
* | rhapsody
*)
21770 dynamic_linker
="$host_os dyld"
21771 version_type
=darwin
21774 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21775 soname_spec
='${libname}${release}${major}$shared_ext'
21776 shlibpath_overrides_runpath
=yes
21777 shlibpath_var
=DYLD_LIBRARY_PATH
21778 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21780 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21787 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21788 soname_spec
='${libname}${release}${shared_ext}$major'
21789 shlibpath_var
=LD_LIBRARY_PATH
21792 freebsd
* | dragonfly
*)
21793 # DragonFly does not have aout. When/if they implement a new
21794 # versioning mechanism, adjust this.
21795 if test -x /usr
/bin
/objformat
; then
21796 objformat
=`/usr/bin/objformat`
21799 freebsd
[23].
*) objformat
=aout
;;
21800 *) objformat
=elf
;;
21803 version_type
=freebsd-
$objformat
21804 case $version_type in
21806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21811 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21815 shlibpath_var
=LD_LIBRARY_PATH
21818 shlibpath_overrides_runpath
=yes
21820 freebsd3.
[01]* | freebsdelf3.
[01]*)
21821 shlibpath_overrides_runpath
=yes
21822 hardcode_into_libs
=yes
21824 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21825 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21826 shlibpath_overrides_runpath
=no
21827 hardcode_into_libs
=yes
21829 *) # from 4.6 on, and DragonFly
21830 shlibpath_overrides_runpath
=yes
21831 hardcode_into_libs
=yes
21840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21841 soname_spec
='${libname}${release}${shared_ext}$major'
21842 shlibpath_var
=LD_LIBRARY_PATH
21843 hardcode_into_libs
=yes
21850 dynamic_linker
="$host_os runtime_loader"
21851 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21852 soname_spec
='${libname}${release}${shared_ext}$major'
21853 shlibpath_var
=LIBRARY_PATH
21854 shlibpath_overrides_runpath
=yes
21855 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21856 hardcode_into_libs
=yes
21859 hpux9
* | hpux10
* | hpux11
*)
21860 # Give a soname corresponding to the major version so that dld.sl refuses to
21861 # link against other versions.
21868 hardcode_into_libs
=yes
21869 dynamic_linker
="$host_os dld.so"
21870 shlibpath_var
=LD_LIBRARY_PATH
21871 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21872 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21873 soname_spec
='${libname}${release}${shared_ext}$major'
21874 if test "X$HPUX_IA64_MODE" = X32
; then
21875 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21877 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21879 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21883 hardcode_into_libs
=yes
21884 dynamic_linker
="$host_os dld.sl"
21885 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21886 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21887 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21888 soname_spec
='${libname}${release}${shared_ext}$major'
21889 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21890 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21894 dynamic_linker
="$host_os dld.sl"
21895 shlibpath_var
=SHLIB_PATH
21896 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21897 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898 soname_spec
='${libname}${release}${shared_ext}$major'
21901 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21902 postinstall_cmds
='chmod 555 $lib'
21903 # or fails outright, so override atomically:
21904 install_override_mode
=555
21911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21912 soname_spec
='${libname}${release}${shared_ext}$major'
21913 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21914 shlibpath_var
=LD_LIBRARY_PATH
21915 shlibpath_overrides_runpath
=no
21916 hardcode_into_libs
=yes
21919 irix5
* | irix6
* | nonstopux
*)
21921 nonstopux
*) version_type
=nonstopux
;;
21923 if test "$lt_cv_prog_gnu_ld" = yes; then
21931 soname_spec
='${libname}${release}${shared_ext}$major'
21932 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21934 irix5
* | nonstopux
*)
21935 libsuff
= shlibsuff
=
21938 case $LD in # libtool.m4 will add one of these switches to LD
21939 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21940 libsuff
= shlibsuff
= libmagic
=32-bit;;
21941 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21942 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21943 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21944 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21945 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21949 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21950 shlibpath_overrides_runpath
=no
21951 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21952 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21953 hardcode_into_libs
=yes
21956 # No shared lib support for Linux oldld, aout, or coff.
21957 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21961 # This must be Linux ELF.
21963 # uclinux* changes (here and below) have been submitted to the libtool
21964 # project, but have not yet been accepted: they are GCC-local changes
21965 # for the time being. (See
21966 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
21967 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
21971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21972 soname_spec
='${libname}${release}${shared_ext}$major'
21973 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21974 shlibpath_var
=LD_LIBRARY_PATH
21975 shlibpath_overrides_runpath
=no
21977 # Some binutils ld are patched to set DT_RUNPATH
21978 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
21979 $as_echo_n "(cached) " >&6
21981 lt_cv_shlibpath_overrides_runpath
=no
21982 save_LDFLAGS
=$LDFLAGS
21983 save_libdir
=$libdir
21984 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21985 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21997 if ac_fn_cxx_try_link
"$LINENO"; then :
21998 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21999 lt_cv_shlibpath_overrides_runpath
=yes
22002 rm -f core conftest.err conftest.
$ac_objext \
22003 conftest
$ac_exeext conftest.
$ac_ext
22004 LDFLAGS
=$save_LDFLAGS
22005 libdir
=$save_libdir
22009 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
22011 # This implies no fast_install, which is unacceptable.
22012 # Some rework will be needed to allow for fast_install
22013 # before this can be enabled.
22014 hardcode_into_libs
=yes
22016 # Append ld.so.conf contents to the search path
22017 if test -f /etc
/ld.so.conf
; then
22018 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' ' '`
22019 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
22022 # We used to test for /lib/ld.so.1 and disable shared libraries on
22023 # powerpc, because MkLinux only supported shared libraries with the
22024 # GNU dynamic linker. Since this was broken with cross compilers,
22025 # most powerpc-linux boxes support dynamic linking these days and
22026 # people can always --disable-shared, the test was removed, and we
22027 # assume the GNU/Linux dynamic linker is in use.
22028 dynamic_linker
='GNU/Linux ld.so'
22035 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
22036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22037 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22038 dynamic_linker
='NetBSD (a.out) ld.so'
22040 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22041 soname_spec
='${libname}${release}${shared_ext}$major'
22042 dynamic_linker
='NetBSD ld.elf_so'
22044 shlibpath_var
=LD_LIBRARY_PATH
22045 shlibpath_overrides_runpath
=yes
22046 hardcode_into_libs
=yes
22051 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22052 shlibpath_var
=LD_LIBRARY_PATH
22053 shlibpath_overrides_runpath
=yes
22060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22061 soname_spec
='${libname}${release}${shared_ext}$major'
22062 shlibpath_var
=LD_LIBRARY_PATH
22063 shlibpath_overrides_runpath
=no
22064 hardcode_into_libs
=yes
22065 dynamic_linker
='ldqnx.so'
22070 sys_lib_dlsearch_path_spec
="/usr/lib"
22072 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22074 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
22075 *) need_version
=no
;;
22077 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22078 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22079 shlibpath_var
=LD_LIBRARY_PATH
22080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22082 openbsd2.
[89] | openbsd2.
[89].
*)
22083 shlibpath_overrides_runpath
=no
22086 shlibpath_overrides_runpath
=yes
22090 shlibpath_overrides_runpath
=yes
22095 libname_spec
='$name'
22098 library_names_spec
='$libname${shared_ext} $libname.a'
22099 dynamic_linker
='OS/2 ld.exe'
22100 shlibpath_var
=LIBPATH
22103 osf3
* | osf4
* | osf5
*)
22107 soname_spec
='${libname}${release}${shared_ext}$major'
22108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22109 shlibpath_var
=LD_LIBRARY_PATH
22110 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22111 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
22122 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22123 soname_spec
='${libname}${release}${shared_ext}$major'
22124 shlibpath_var
=LD_LIBRARY_PATH
22125 shlibpath_overrides_runpath
=yes
22126 hardcode_into_libs
=yes
22127 # ldd complains unless libraries are executable
22128 postinstall_cmds
='chmod +x $lib'
22133 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22134 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22135 shlibpath_var
=LD_LIBRARY_PATH
22136 shlibpath_overrides_runpath
=yes
22137 if test "$with_gnu_ld" = yes; then
22145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22146 soname_spec
='${libname}${release}${shared_ext}$major'
22147 shlibpath_var
=LD_LIBRARY_PATH
22148 case $host_vendor in
22150 shlibpath_overrides_runpath
=no
22152 runpath_var
=LD_RUN_PATH
22160 shlibpath_overrides_runpath
=no
22161 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
22167 if test -d /usr
/nec
;then
22169 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22170 soname_spec
='$libname${shared_ext}.$major'
22171 shlibpath_var
=LD_LIBRARY_PATH
22175 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
22176 version_type
=freebsd-elf
22179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22180 soname_spec
='${libname}${release}${shared_ext}$major'
22181 shlibpath_var
=LD_LIBRARY_PATH
22182 shlibpath_overrides_runpath
=yes
22183 hardcode_into_libs
=yes
22184 if test "$with_gnu_ld" = yes; then
22185 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22187 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
22190 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
22194 sys_lib_dlsearch_path_spec
='/usr/lib'
22198 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
22202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22203 shlibpath_var
=LD_LIBRARY_PATH
22204 shlibpath_overrides_runpath
=no
22205 hardcode_into_libs
=yes
22210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22211 soname_spec
='${libname}${release}${shared_ext}$major'
22212 shlibpath_var
=LD_LIBRARY_PATH
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22220 $as_echo "$dynamic_linker" >&6; }
22221 test "$dynamic_linker" = no
&& can_build_shared
=no
22223 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
22224 if test "$GCC" = yes; then
22225 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22228 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22229 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
22231 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22232 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22273 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22274 hardcode_action_CXX
=
22275 if test -n "$hardcode_libdir_flag_spec_CXX" ||
22276 test -n "$runpath_var_CXX" ||
22277 test "X$hardcode_automatic_CXX" = "Xyes" ; then
22279 # We can hardcode non-existent directories.
22280 if test "$hardcode_direct_CXX" != no
&&
22281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22282 # have to relink, otherwise we might link with an installed library
22283 # when we should be linking with a yet-to-be-installed one
22284 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22285 test "$hardcode_minus_L_CXX" != no
; then
22286 # Linking always hardcodes the temporary library directory.
22287 hardcode_action_CXX
=relink
22289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22290 hardcode_action_CXX
=immediate
22293 # We cannot hardcode anything, or else we can only hardcode existing
22295 hardcode_action_CXX
=unsupported
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22298 $as_echo "$hardcode_action_CXX" >&6; }
22300 if test "$hardcode_action_CXX" = relink ||
22301 test "$inherit_rpath_CXX" = yes; then
22302 # Fast installation is not supported
22303 enable_fast_install
=no
22304 elif test "$shlibpath_overrides_runpath" = yes ||
22305 test "$enable_shared" = no
; then
22306 # Fast installation is not necessary
22307 enable_fast_install
=needless
22316 fi # test -n "$compiler"
22322 with_gnu_ld
=$lt_save_with_gnu_ld
22323 lt_cv_path_LDCXX
=$lt_cv_path_LD
22324 lt_cv_path_LD
=$lt_save_path_LD
22325 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
22326 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
22327 fi # test "$_lt_caught_CXX_error" != yes
22330 ac_cpp
='$CXXCPP $CPPFLAGS'
22331 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
22350 # Only expand once:
22356 # Identify the assembler which will work hand-in-glove with the newly
22357 # built GCC, so that we can examine its features. This is the assembler
22358 # which will be driven by the driver program.
22360 # If build != host, and we aren't building gas in-tree, we identify a
22361 # build->target assembler and hope that it will have the same features
22362 # as the host->target assembler we'll be using.
22363 gcc_cv_gas_major_version
=
22364 gcc_cv_gas_minor_version
=
22365 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
22367 if ${gcc_cv_as+:} false
; then :
22371 if test -x "$DEFAULT_ASSEMBLER"; then
22372 gcc_cv_as
="$DEFAULT_ASSEMBLER"
22373 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
22374 && test -f ..
/gas
/Makefile \
22375 && test x
$build = x
$host; then
22376 gcc_cv_as
=..
/gas
/as-new
$build_exeext
22377 elif test -x as
$build_exeext; then
22378 # Build using assembler in the current directory.
22379 gcc_cv_as
=.
/as
$build_exeext
22380 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
22381 gcc_cv_as
="$AS_FOR_TARGET"
22383 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
22384 set dummy
$AS_FOR_TARGET; ac_word
=$2
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22386 $as_echo_n "checking for $ac_word... " >&6; }
22387 if ${ac_cv_path_gcc_cv_as+:} false
; then :
22388 $as_echo_n "(cached) " >&6
22392 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
22395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22396 for as_dir
in $PATH
22399 test -z "$as_dir" && as_dir
=.
22400 for ac_exec_ext
in '' $ac_executable_extensions; do
22401 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22402 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
22403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22413 gcc_cv_as
=$ac_cv_path_gcc_cv_as
22414 if test -n "$gcc_cv_as"; then
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22416 $as_echo "$gcc_cv_as" >&6; }
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22419 $as_echo "no" >&6; }
22426 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
22428 case "$ORIGINAL_AS_FOR_TARGET" in
22429 .
/as | .
/as
$build_exeext) ;;
22430 *) ac_config_files
="$ac_config_files as:exec-tool.in"
22434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
22435 $as_echo_n "checking what assembler to use... " >&6; }
22436 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
22437 # Single tree build which includes gas. We want to prefer it
22438 # over whatever linker top-level may have detected, since
22439 # we'll use what we're building after installation anyway.
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
22441 $as_echo "newly built gas" >&6; }
22443 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22444 for f
in $gcc_cv_as_bfd_srcdir/configure \
22445 $gcc_cv_as_gas_srcdir/configure \
22446 $gcc_cv_as_gas_srcdir/configure.ac \
22447 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
22448 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22449 if test x
$gcc_cv_gas_version != x
; then
22453 case $gcc_cv_gas_version in
22455 *) as_fn_error $?
"cannot find version of in-tree assembler" "$LINENO" 5;;
22457 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
22458 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22459 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
22460 case $gcc_cv_gas_patch_version in
22461 "") gcc_cv_gas_patch_version
="0" ;;
22463 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22464 + $gcc_cv_gas_minor_version \) \* 1000 \
22465 + $gcc_cv_gas_patch_version`
22467 in_tree_gas_is_elf
=no
22468 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22469 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22470 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22472 in_tree_gas_is_elf
=yes
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22476 $as_echo "$gcc_cv_as" >&6; }
22481 # Check whether --enable-ld was given.
22482 if test "${enable_ld+set}" = set; then :
22483 enableval
=$enable_ld; case "${enableval}" in
22491 install_gold_as_default
=no
22492 # Check whether --enable-gold was given.
22493 if test "${enable_gold+set}" = set; then :
22494 enableval
=$enable_gold; case "${enableval}" in
22496 install_gold_as_default
=yes
22499 if test x
${default_ld} != x
; then
22500 install_gold_as_default
=yes
22506 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
22512 # Identify the linker which will work hand-in-glove with the newly
22513 # built GCC, so that we can examine its features. This is the linker
22514 # which will be driven by the driver program.
22516 # If build != host, and we aren't building gas in-tree, we identify a
22517 # build->target linker and hope that it will have the same features
22518 # as the host->target linker we'll be using.
22519 gcc_cv_gld_major_version
=
22520 gcc_cv_gld_minor_version
=
22521 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22522 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22523 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22525 if ${gcc_cv_ld+:} false
; then :
22529 if test -x "$DEFAULT_LINKER"; then
22530 gcc_cv_ld
="$DEFAULT_LINKER"
22531 elif test $install_gold_as_default = yes \
22532 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22533 && test -f ..
/gold
/Makefile \
22534 && test x
$build = x
$host; then
22535 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22536 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22537 && test -f ..
/ld
/Makefile \
22538 && test x
$build = x
$host; then
22539 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22540 elif test -x collect-ld
$build_exeext; then
22541 # Build using linker in the current directory.
22542 gcc_cv_ld
=.
/collect-ld
$build_exeext
22543 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22544 gcc_cv_ld
="$LD_FOR_TARGET"
22546 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22547 set dummy
$LD_FOR_TARGET; ac_word
=$2
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22549 $as_echo_n "checking for $ac_word... " >&6; }
22550 if ${ac_cv_path_gcc_cv_ld+:} false
; then :
22551 $as_echo_n "(cached) " >&6
22555 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22559 for as_dir
in $PATH
22562 test -z "$as_dir" && as_dir
=.
22563 for ac_exec_ext
in '' $ac_executable_extensions; do
22564 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22565 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22576 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22577 if test -n "$gcc_cv_ld"; then
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22579 $as_echo "$gcc_cv_ld" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22582 $as_echo "no" >&6; }
22589 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22590 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22591 # if the PLUGIN_LD is set ld-new, just have it as ld
22592 # as that is the installed named.
22593 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22594 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22595 PLUGIN_LD_SUFFIX
=ld
22598 # Check whether --with-plugin-ld was given.
22599 if test "${with_plugin_ld+set}" = set; then :
22600 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22601 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22602 PLUGIN_LD_SUFFIX
="$withval"
22608 cat >>confdefs.h
<<_ACEOF
22609 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22613 # Check to see if we are using gold instead of ld
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22615 $as_echo_n "checking whether we are using gold... " >&6; }
22617 if test x
$gcc_cv_ld != x
; then
22618 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22619 |
grep "GNU gold" > /dev
/null
; then
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22624 $as_echo "$ld_is_gold" >&6; }
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22627 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22628 # Check to see if default ld is not gold, but gold is
22629 # available and has support for split stack. If gcc was configured
22630 # with gold then no checking is done.
22632 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22634 # For platforms other than powerpc64*, enable as appropriate.
22636 gold_non_default
=no
22637 ld_gold
=`which ${gcc_cv_ld}.gold`
22638 # Make sure this gold has minimal split stack support
22639 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22640 ld_vers
=`$ld_gold --version | sed 1q`
22641 gold_vers
=`echo $ld_vers | sed -n \
22642 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22644 # check that the gold version contains the complete split stack support
22645 # on powerpc64 big and little endian
22647 case "$gold_vers" in
22648 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22650 *) gold_non_default
=no
22656 if test $gold_non_default = yes; then
22658 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22663 $as_echo "$gold_non_default" >&6; }
22665 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22667 case "$ORIGINAL_LD_FOR_TARGET" in
22668 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22669 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22674 $as_echo_n "checking what linker to use... " >&6; }
22675 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22676 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22677 # Single tree build which includes ld. We want to prefer it
22678 # over whatever linker top-level may have detected, since
22679 # we'll use what we're building after installation anyway.
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22681 $as_echo "newly built ld" >&6; }
22683 in_tree_ld_is_elf
=no
22684 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22685 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22686 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22687 in_tree_ld_is_elf
=yes
22688 elif test "$ld_is_gold" = yes; then
22689 in_tree_ld_is_elf
=yes
22691 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
22693 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22694 if test x
$gcc_cv_gld_version != x
; then
22698 case $gcc_cv_gld_version in
22700 *) as_fn_error $?
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22702 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22703 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22704 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22705 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22708 $as_echo "$gcc_cv_ld" >&6; }
22710 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22711 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22712 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22718 # Figure out what nm we will be using.
22719 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22720 if ${gcc_cv_nm+:} false
; then :
22724 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22725 && test -f ..
/binutils
/Makefile \
22726 && test x
$build = x
$host; then
22727 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22728 elif test -x nm
$build_exeext; then
22729 gcc_cv_nm
=.
/nm
$build_exeext
22730 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22731 gcc_cv_nm
="$NM_FOR_TARGET"
22733 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22734 set dummy
$NM_FOR_TARGET; ac_word
=$2
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22736 $as_echo_n "checking for $ac_word... " >&6; }
22737 if ${ac_cv_path_gcc_cv_nm+:} false
; then :
22738 $as_echo_n "(cached) " >&6
22742 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22746 for as_dir
in $PATH
22749 test -z "$as_dir" && as_dir
=.
22750 for ac_exec_ext
in '' $ac_executable_extensions; do
22751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22752 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22763 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22764 if test -n "$gcc_cv_nm"; then
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22766 $as_echo "$gcc_cv_nm" >&6; }
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22769 $as_echo "no" >&6; }
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22777 $as_echo_n "checking what nm to use... " >&6; }
22778 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22779 # Single tree build which includes binutils.
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22781 $as_echo "newly built nm" >&6; }
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22785 $as_echo "$gcc_cv_nm" >&6; }
22789 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22791 case "$ORIGINAL_NM_FOR_TARGET" in
22792 .
/nm | .
/nm
$build_exeext) ;;
22793 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22798 # Figure out what objdump we will be using.
22799 if ${gcc_cv_objdump+:} false
; then :
22803 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22804 && test -f ..
/binutils
/Makefile \
22805 && test x
$build = x
$host; then
22806 # Single tree build which includes binutils.
22807 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22808 elif test -x objdump
$build_exeext; then
22809 gcc_cv_objdump
=.
/objdump
$build_exeext
22810 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22811 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22813 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22814 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22816 $as_echo_n "checking for $ac_word... " >&6; }
22817 if ${ac_cv_path_gcc_cv_objdump+:} false
; then :
22818 $as_echo_n "(cached) " >&6
22820 case $gcc_cv_objdump in
22822 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22826 for as_dir
in $PATH
22829 test -z "$as_dir" && as_dir
=.
22830 for ac_exec_ext
in '' $ac_executable_extensions; do
22831 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22832 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22843 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22844 if test -n "$gcc_cv_objdump"; then
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22846 $as_echo "$gcc_cv_objdump" >&6; }
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22849 $as_echo "no" >&6; }
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22857 $as_echo_n "checking what objdump to use... " >&6; }
22858 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22859 # Single tree build which includes binutils.
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22861 $as_echo "newly built objdump" >&6; }
22862 elif test x
$gcc_cv_objdump = x
; then
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22864 $as_echo "not found" >&6; }
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22867 $as_echo "$gcc_cv_objdump" >&6; }
22870 # Figure out what readelf we will be using.
22871 if ${gcc_cv_readelf+:} false
; then :
22875 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22876 && test -f ..
/binutils
/Makefile \
22877 && test x
$build = x
$host; then
22878 # Single tree build which includes binutils.
22879 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22880 elif test -x readelf
$build_exeext; then
22881 gcc_cv_readelf
=.
/readelf
$build_exeext
22882 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22883 gcc_cv_readelf
="$READELF_FOR_TARGET"
22885 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22886 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22888 $as_echo_n "checking for $ac_word... " >&6; }
22889 if ${ac_cv_path_gcc_cv_readelf+:} false
; then :
22890 $as_echo_n "(cached) " >&6
22892 case $gcc_cv_readelf in
22894 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22898 for as_dir
in $PATH
22901 test -z "$as_dir" && as_dir
=.
22902 for ac_exec_ext
in '' $ac_executable_extensions; do
22903 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22904 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22915 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22916 if test -n "$gcc_cv_readelf"; then
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22918 $as_echo "$gcc_cv_readelf" >&6; }
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22921 $as_echo "no" >&6; }
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22929 $as_echo_n "checking what readelf to use... " >&6; }
22930 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22931 # Single tree build which includes binutils.
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22933 $as_echo "newly built readelf" >&6; }
22934 elif test x
$gcc_cv_readelf = x
; then
22935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22936 $as_echo "not found" >&6; }
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22939 $as_echo "$gcc_cv_readelf" >&6; }
22942 # Figure out what otool we will be using.
22943 if ${gcc_cv_otool+:} false
; then :
22947 if test -x otool
$build_exeext; then
22948 gcc_cv_otool
=.
/otool
$build_exeext
22949 elif ( set dummy
$OTOOL_FOR_TARGET; test -x $2 ); then
22950 gcc_cv_otool
="$OTOOL_FOR_TARGET"
22952 # Extract the first word of "$OTOOL_FOR_TARGET", so it can be a program name with args.
22953 set dummy
$OTOOL_FOR_TARGET; ac_word
=$2
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22955 $as_echo_n "checking for $ac_word... " >&6; }
22956 if ${ac_cv_path_gcc_cv_otool+:} false
; then :
22957 $as_echo_n "(cached) " >&6
22959 case $gcc_cv_otool in
22961 ac_cv_path_gcc_cv_otool
="$gcc_cv_otool" # Let the user override the test with a path.
22964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22965 for as_dir
in $PATH
22968 test -z "$as_dir" && as_dir
=.
22969 for ac_exec_ext
in '' $ac_executable_extensions; do
22970 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
22971 ac_cv_path_gcc_cv_otool
="$as_dir/$ac_word$ac_exec_ext"
22972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22982 gcc_cv_otool
=$ac_cv_path_gcc_cv_otool
22983 if test -n "$gcc_cv_otool"; then
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
22985 $as_echo "$gcc_cv_otool" >&6; }
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22988 $as_echo "no" >&6; }
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what otool to use" >&5
22996 $as_echo_n "checking what otool to use... " >&6; }
22997 if test x
$gcc_cv_otool = x
; then
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22999 $as_echo "not found" >&6; }
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_otool" >&5
23002 $as_echo "$gcc_cv_otool" >&6; }
23005 # Figure out what assembler alignment features are present.
23006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
23007 $as_echo_n "checking assembler flags... " >&6; }
23008 if ${gcc_cv_as_flags+:} false
; then :
23009 $as_echo_n "(cached) " >&6
23012 i
[34567]86-*-linux*)
23013 gcc_cv_as_flags
=--32
23015 x86_64-
*-linux-gnux32)
23016 gcc_cv_as_flags
=--x32
23019 gcc_cv_as_flags
=--64
23021 powerpc
*-*-darwin*)
23022 gcc_cv_as_flags
="-arch ppc"
23025 gcc_cv_as_flags
=" "
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
23030 $as_echo "$gcc_cv_as_flags" >&6; }
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
23033 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
23034 if ${gcc_cv_as_balign_and_p2align+:} false
; then :
23035 $as_echo_n "(cached) " >&6
23037 gcc_cv_as_balign_and_p2align
=no
23038 if test $in_tree_gas = yes; then
23039 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
23040 then gcc_cv_as_balign_and_p2align
=yes
23042 elif test x
$gcc_cv_as != x
; then
23043 $as_echo '.balign 4
23044 .p2align 2' > conftest.s
23045 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23047 (eval $ac_try) 2>&5
23049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23050 test $ac_status = 0; }; }
23052 gcc_cv_as_balign_and_p2align
=yes
23054 echo "configure: failed program was" >&5
23057 rm -f conftest.o conftest.s
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
23061 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
23062 if test $gcc_cv_as_balign_and_p2align = yes; then
23064 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
23070 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
23071 if ${gcc_cv_as_max_skip_p2align+:} false
; then :
23072 $as_echo_n "(cached) " >&6
23074 gcc_cv_as_max_skip_p2align
=no
23075 if test $in_tree_gas = yes; then
23076 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23077 then gcc_cv_as_max_skip_p2align
=yes
23079 elif test x
$gcc_cv_as != x
; then
23080 $as_echo '.p2align 4,,7' > conftest.s
23081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23083 (eval $ac_try) 2>&5
23085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23086 test $ac_status = 0; }; }
23088 gcc_cv_as_max_skip_p2align
=yes
23090 echo "configure: failed program was" >&5
23093 rm -f conftest.o conftest.s
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
23097 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
23098 if test $gcc_cv_as_max_skip_p2align = yes; then
23100 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
23106 $as_echo_n "checking assembler for .literal16... " >&6; }
23107 if ${gcc_cv_as_literal16+:} false
; then :
23108 $as_echo_n "(cached) " >&6
23110 gcc_cv_as_literal16
=no
23111 if test $in_tree_gas = yes; then
23112 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
23113 then gcc_cv_as_literal16
=yes
23115 elif test x
$gcc_cv_as != x
; then
23116 $as_echo '.literal16' > conftest.s
23117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23119 (eval $ac_try) 2>&5
23121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23122 test $ac_status = 0; }; }
23124 gcc_cv_as_literal16
=yes
23126 echo "configure: failed program was" >&5
23129 rm -f conftest.o conftest.s
23132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
23133 $as_echo "$gcc_cv_as_literal16" >&6; }
23134 if test $gcc_cv_as_literal16 = yes; then
23136 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
23142 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
23143 if ${gcc_cv_as_subsection_m1+:} false
; then :
23144 $as_echo_n "(cached) " >&6
23146 gcc_cv_as_subsection_m1
=no
23147 if test $in_tree_gas = yes; then
23148 if test $in_tree_gas_is_elf = yes \
23149 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
23150 then gcc_cv_as_subsection_m1
=yes
23152 elif test x
$gcc_cv_as != x
; then
23153 $as_echo 'conftest_label1: .word 0
23155 conftest_label2: .word 0
23156 .previous' > conftest.s
23157 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23159 (eval $ac_try) 2>&5
23161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23162 test $ac_status = 0; }; }
23164 if test x
$gcc_cv_nm != x
; then
23165 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
23166 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
23167 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
23169 else gcc_cv_as_subsection_m1
=yes
23171 rm -f conftest.nm1 conftest.nm2
23174 echo "configure: failed program was" >&5
23177 rm -f conftest.o conftest.s
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
23181 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
23182 if test $gcc_cv_as_subsection_m1 = yes; then
23184 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
23190 $as_echo_n "checking assembler for .weak... " >&6; }
23191 if ${gcc_cv_as_weak+:} false
; then :
23192 $as_echo_n "(cached) " >&6
23195 if test $in_tree_gas = yes; then
23196 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
23197 then gcc_cv_as_weak
=yes
23199 elif test x
$gcc_cv_as != x
; then
23200 $as_echo ' .weak foobar' > conftest.s
23201 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23203 (eval $ac_try) 2>&5
23205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23206 test $ac_status = 0; }; }
23210 echo "configure: failed program was" >&5
23213 rm -f conftest.o conftest.s
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
23217 $as_echo "$gcc_cv_as_weak" >&6; }
23218 if test $gcc_cv_as_weak = yes; then
23220 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
23226 $as_echo_n "checking assembler for .weakref... " >&6; }
23227 if ${gcc_cv_as_weakref+:} false
; then :
23228 $as_echo_n "(cached) " >&6
23230 gcc_cv_as_weakref
=no
23231 if test $in_tree_gas = yes; then
23232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23233 then gcc_cv_as_weakref
=yes
23235 elif test x
$gcc_cv_as != x
; then
23236 $as_echo ' .weakref foobar, barfnot' > conftest.s
23237 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239 (eval $ac_try) 2>&5
23241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242 test $ac_status = 0; }; }
23244 gcc_cv_as_weakref
=yes
23246 echo "configure: failed program was" >&5
23249 rm -f conftest.o conftest.s
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
23253 $as_echo "$gcc_cv_as_weakref" >&6; }
23254 if test $gcc_cv_as_weakref = yes; then
23256 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
23262 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
23263 if ${gcc_cv_as_nsubspa_comdat+:} false
; then :
23264 $as_echo_n "(cached) " >&6
23266 gcc_cv_as_nsubspa_comdat
=no
23267 if test $in_tree_gas = yes; then
23268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23269 then gcc_cv_as_nsubspa_comdat
=yes
23271 elif test x
$gcc_cv_as != x
; then
23272 $as_echo ' .SPACE $TEXT$
23273 .NSUBSPA $CODE$,COMDAT' > conftest.s
23274 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23276 (eval $ac_try) 2>&5
23278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23279 test $ac_status = 0; }; }
23281 gcc_cv_as_nsubspa_comdat
=yes
23283 echo "configure: failed program was" >&5
23286 rm -f conftest.o conftest.s
23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
23290 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
23291 if test $gcc_cv_as_nsubspa_comdat = yes; then
23293 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
23298 # .hidden needs to be supported in both the assembler and the linker,
23299 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
23300 # This is irritatingly difficult to feature test for; we have to check the
23301 # date string after the version number. If we've got an in-tree
23302 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
23304 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
23305 case "${target}" in
23307 conftest_s
=' .globl foobar,hidden'
23310 conftest_s
=' .hidden foobar
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
23315 $as_echo_n "checking assembler for .hidden... " >&6; }
23316 if ${gcc_cv_as_hidden+:} false
; then :
23317 $as_echo_n "(cached) " >&6
23319 gcc_cv_as_hidden
=no
23320 if test $in_tree_gas = yes; then
23321 if test $in_tree_gas_is_elf = yes \
23322 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
23323 then gcc_cv_as_hidden
=yes
23325 elif test x
$gcc_cv_as != x
; then
23326 $as_echo "$conftest_s" > conftest.s
23327 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23329 (eval $ac_try) 2>&5
23331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23332 test $ac_status = 0; }; }
23334 gcc_cv_as_hidden
=yes
23336 echo "configure: failed program was" >&5
23339 rm -f conftest.o conftest.s
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
23343 $as_echo "$gcc_cv_as_hidden" >&6; }
23346 case "${target}" in
23348 # Darwin as has some visibility support, though with a different syntax.
23349 gcc_cv_as_hidden
=yes
23353 # gnu_indirect_function type is an extension proposed at
23354 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
23355 # selection of function implementation
23356 # Check whether --enable-gnu-indirect-function was given.
23357 if test "${enable_gnu_indirect_function+set}" = set; then :
23358 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
23360 *) as_fn_error $?
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
23361 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23364 enable_gnu_indirect_function
="$default_gnu_indirect_function"
23368 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
23370 cat >>confdefs.h
<<_ACEOF
23371 #define HAVE_GNU_INDIRECT_FUNCTION $gif
23376 if test $in_tree_ld != yes ; then
23377 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
23378 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23379 if test x
"$ld_is_gold" = xyes
; then
23380 # GNU gold --version looks like this:
23382 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
23384 # We extract the binutils version which is more familiar and specific
23385 # than the gold version.
23386 ld_vers
=`echo $ld_ver | sed -n \
23387 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23389 # GNU ld --version looks like this:
23391 # GNU ld (GNU Binutils) 2.21.51.20110225
23392 ld_vers
=`echo $ld_ver | sed -n \
23393 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23395 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)\(-*\)\([01][0-9]\)\2\([0-3][0-9]\).*$,\1\3\4,p'`
23396 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23397 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23398 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
23400 case "${target}" in
23402 # Solaris 2 ld -V output looks like this for a regular version:
23404 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
23406 # but test versions add stuff at the end:
23408 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
23410 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
23411 # numbers can be used in ld.so.1 feature checks even if a different
23412 # linker is configured.
23413 ld_ver
=`$gcc_cv_ld -V 2>&1`
23414 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
23415 ld_vers
=`echo $ld_ver | sed -n \
23416 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
23417 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23418 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
23426 $as_echo_n "checking linker for .hidden support... " >&6; }
23427 if ${gcc_cv_ld_hidden+:} false
; then :
23428 $as_echo_n "(cached) " >&6
23430 if test $in_tree_ld = yes ; then
23431 gcc_cv_ld_hidden
=no
23432 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 \
23433 && test $in_tree_ld_is_elf = yes; then
23434 gcc_cv_ld_hidden
=yes
23437 gcc_cv_ld_hidden
=yes
23438 if test x
"$ld_is_gold" = xyes
; then
23440 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23441 case "${target}" in
23442 mmix-knuth-mmixware
)
23443 # The linker emits by default mmo, not ELF, so "no" is appropriate.
23444 gcc_cv_ld_hidden
=no
23447 if test 0"$ld_date" -lt 20020404; then
23448 if test -n "$ld_date"; then
23449 # If there was date string, but was earlier than 2002-04-04, fail
23450 gcc_cv_ld_hidden
=no
23451 elif test -z "$ld_vers"; then
23452 # If there was no date string nor ld version number, something is wrong
23453 gcc_cv_ld_hidden
=no
23455 test -z "$ld_vers_patch" && ld_vers_patch
=0
23456 if test "$ld_vers_major" -lt 2; then
23457 gcc_cv_ld_hidden
=no
23458 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
23459 gcc_cv_ld_hidden
="no"
23460 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
23461 gcc_cv_ld_hidden
=no
23466 case "${target}" in
23468 gcc_cv_ld_hidden
=yes
23471 # Darwin ld has some visibility support.
23472 gcc_cv_ld_hidden
=yes
23474 hppa64
*-*-hpux* | ia64
*-*-hpux*)
23475 gcc_cv_ld_hidden
=yes
23478 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
23479 # .symbolic was only added in Solaris 9 12/02.
23480 gcc_cv_ld_hidden
=yes
23483 gcc_cv_ld_hidden
=no
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
23490 $as_echo "$gcc_cv_ld_hidden" >&6; }
23491 libgcc_visibility
=no
23494 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
23495 libgcc_visibility
=yes
23497 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
23502 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
23503 gcc_cv_ld_ro_rw_mix
=unknown
23504 if test $in_tree_ld = yes ; then
23505 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 \
23506 && test $in_tree_ld_is_elf = yes; then
23507 gcc_cv_ld_ro_rw_mix
=read-write
23509 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23510 echo '.section myfoosect, "a"' > conftest1.s
23511 echo '.section myfoosect, "aw"' > conftest2.s
23512 echo '.byte 1' >> conftest2.s
23513 echo '.section myfoosect, "a"' > conftest3.s
23514 echo '.byte 0' >> conftest3.s
23515 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
23516 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
23517 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
23518 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
23519 conftest2.o conftest3.o
> /dev
/null
2>&1; then
23520 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
23521 | sed -e '/myfoosect/!d' -e N`
23522 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23523 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23524 gcc_cv_ld_ro_rw_mix
=read-only
23526 gcc_cv_ld_ro_rw_mix
=read-write
23530 rm -f conftest.
* conftest
[123].
*
23532 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23534 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23538 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23540 # Check whether --enable-initfini-array was given.
23541 if test "${enable_initfini_array+set}" = set; then :
23542 enableval
=$enable_initfini_array;
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23546 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23547 if ${gcc_cv_initfini_array+:} false
; then :
23548 $as_echo_n "(cached) " >&6
23550 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23551 case "${target}" in
23553 if test "$cross_compiling" = yes; then :
23554 gcc_cv_initfini_array
=no
23556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23557 /* end confdefs.h. */
23560 #error Not an ELF OS
23562 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23563 if it can be used. */
23565 int main (void) { return x; }
23566 int foo (void) { x = 0; }
23567 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23570 if ac_fn_cxx_try_run
"$LINENO"; then :
23571 gcc_cv_initfini_array
=yes
23573 gcc_cv_initfini_array
=no
23575 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23576 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23580 gcc_cv_initfini_array
=no
23581 if test $in_tree_ld = yes ; then
23582 if test "$gcc_cv_gld_major_version" -eq 2 \
23583 -a "$gcc_cv_gld_minor_version" -ge 22 \
23584 -o "$gcc_cv_gld_major_version" -gt 2 \
23585 && test $in_tree_ld_is_elf = yes; then
23586 gcc_cv_initfini_array
=yes
23588 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23589 case $target:$gas in
23592 sh_type
='%progbits'
23594 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23596 sh_type
='@progbits'
23598 sparc
*-*-solaris2*:no
)
23600 sh_type
='#progbits'
23604 case "$target:$gnu_ld" in
23606 cat > conftest.s
<<EOF
23607 .section .dtors,$sh_flags,$sh_type
23609 .byte 'A', 'A', 'A', 'A'
23610 .section .ctors,$sh_flags,$sh_type
23612 .byte 'B', 'B', 'B', 'B'
23613 .section .fini_array.65530,$sh_flags,$sh_type
23615 .byte 'C', 'C', 'C', 'C'
23616 .section .init_array.65530,$sh_flags,$sh_type
23618 .byte 'D', 'D', 'D', 'D'
23619 .section .dtors.64528,$sh_flags,$sh_type
23621 .byte 'E', 'E', 'E', 'E'
23622 .section .ctors.64528,$sh_flags,$sh_type
23624 .byte 'F', 'F', 'F', 'F'
23625 .section .fini_array.01005,$sh_flags,$sh_type
23627 .byte 'G', 'G', 'G', 'G'
23628 .section .init_array.01005,$sh_flags,$sh_type
23630 .byte 'H', 'H', 'H', 'H'
23635 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23636 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23637 && $gcc_cv_objdump -s -j .init_array conftest \
23638 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23639 && $gcc_cv_objdump -s -j .fini_array conftest \
23640 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23641 gcc_cv_initfini_array
=yes
23645 # When Solaris ld added constructor priority support, it was
23646 # decided to only handle .init_array.N/.fini_array.N since
23647 # there was no need for backwards compatibility with
23648 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23649 # sections with correct execution order resp. to
23650 # .init_array/.fini_array, while gld merges them into
23651 # .init_array/.fini_array.
23652 cat > conftest.s
<<EOF
23653 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23655 .byte 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'
23656 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23658 .byte 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'
23659 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23661 .byte 'G', 'G', 'G', 'G', 'G', 'G', 'G', 'G'
23662 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23664 .byte 'H', 'H', 'H', 'H', 'H', 'H', 'H', 'H'
23669 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23670 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23671 && $gcc_cv_objdump -s -j .init_array conftest \
23672 |
grep HHHHHHHHDDDDDDDD
> /dev
/null
2>&1 \
23673 && $gcc_cv_objdump -s -j .fini_array conftest \
23674 |
grep GGGGGGGGCCCCCCCC
> /dev
/null
2>&1; then
23675 gcc_cv_initfini_array
=yes
23679 rm -f conftest conftest.
*
23681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23682 /* end confdefs.h. */
23685 # error Not an ELF OS
23687 #include <stdlib.h>
23688 #if defined __GLIBC_PREREQ
23689 # if __GLIBC_PREREQ (2, 4)
23691 # error GLIBC 2.4 required
23694 # if defined __sun__ && defined __svr4__
23695 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23697 # error The C library not known to support .init_array/.fini_array
23702 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23705 gcc_cv_initfini_array
=no
23707 rm -f conftest.err conftest.i conftest.
$ac_ext;;
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23711 $as_echo_n "checking cross compile... guessing... " >&6; }
23712 gcc_cv_initfini_array
=no
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23716 $as_echo "$gcc_cv_initfini_array" >&6; }
23717 enable_initfini_array
=$gcc_cv_initfini_array
23722 cat >>confdefs.h
<<_ACEOF
23723 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23728 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23730 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23731 if ${gcc_cv_as_leb128+:} false
; then :
23732 $as_echo_n "(cached) " >&6
23734 gcc_cv_as_leb128
=no
23735 if test $in_tree_gas = yes; then
23736 if test $in_tree_gas_is_elf = yes \
23737 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23738 then gcc_cv_as_leb128
=yes
23740 elif test x
$gcc_cv_as != x
; then
23747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; }
23754 # GAS versions before 2.11 do not support uleb128,
23755 # despite appearing to.
23756 # ??? There exists an elf-specific test that will crash
23757 # the assembler. Perhaps it's better to figure out whether
23758 # arbitrary sections are supported and try the test.
23759 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23760 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23761 as_vers
=`echo $as_ver | sed -n \
23762 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23763 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23764 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23765 if test $as_major -eq 2 && test $as_minor -lt 11
23767 else gcc_cv_as_leb128
=yes
23771 echo "configure: failed program was" >&5
23774 rm -f conftest.o conftest.s
23777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23778 $as_echo "$gcc_cv_as_leb128" >&6; }
23779 if test $gcc_cv_as_leb128 = yes; then
23781 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23784 if test $gcc_cv_as_leb128 != yes; then
23786 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23790 # Determine if an .eh_frame section is read-only.
23791 gcc_fn_eh_frame_ro
() {
23792 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23793 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23794 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23797 # Check if we have assembler support for unwind directives.
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23799 $as_echo_n "checking assembler for cfi directives... " >&6; }
23800 if ${gcc_cv_as_cfi_directive+:} false
; then :
23801 $as_echo_n "(cached) " >&6
23803 gcc_cv_as_cfi_directive
=no
23804 if test x
$gcc_cv_as != x
; then
23810 .cfi_escape 1, 2, 3, 4, 5
23811 .cfi_endproc' > conftest.s
23812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23814 (eval $ac_try) 2>&5
23816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23817 test $ac_status = 0; }; }
23821 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23822 # read-only and read-write sections, we need to make sure that the
23823 # assembler used emits read-write .eh_frame sections.
23824 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23825 gcc_cv_as_cfi_directive
=yes
23826 elif test "x$gcc_cv_objdump" = x
; then
23827 # No objdump, err on the side of caution.
23828 gcc_cv_as_cfi_directive
=no
23830 if test x
$gas = xyes
; then
23838 sparc
*-*-solaris2.
*)
23839 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23840 if gcc_fn_eh_frame_ro
$as_32_opt \
23841 || gcc_fn_eh_frame_ro
$as_64_opt; then
23842 gcc_cv_as_cfi_directive
=no
23844 gcc_cv_as_cfi_directive
=yes
23847 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23848 # On Solaris/x86, make sure that GCC and assembler agree on using
23849 # read-only .eh_frame sections for 64-bit.
23850 if gcc_fn_eh_frame_ro
$as_32_opt; then
23851 gcc_cv_as_cfi_directive
=no
23852 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23853 gcc_cv_as_cfi_directive
=yes
23855 gcc_cv_as_cfi_directive
=no
23862 gcc_cv_as_cfi_directive
=yes
23866 echo "configure: failed program was" >&5
23869 rm -f conftest.o conftest.s
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23873 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23876 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23878 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23879 if ${gcc_cv_as_cfi_advance_working+:} false
; then :
23880 $as_echo_n "(cached) " >&6
23882 gcc_cv_as_cfi_advance_working
=no
23883 if test x
$gcc_cv_as != x
; then
23886 .cfi_adjust_cfa_offset 64
23888 .cfi_adjust_cfa_offset 128
23889 .cfi_endproc' > conftest.s
23890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23892 (eval $ac_try) 2>&5
23894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23895 test $ac_status = 0; }; }
23898 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23899 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23900 gcc_cv_as_cfi_advance_working
=yes
23904 echo "configure: failed program was" >&5
23907 rm -f conftest.o conftest.s
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23911 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23915 # no objdump, err on the side of caution
23916 gcc_cv_as_cfi_advance_working
=no
23920 cat >>confdefs.h
<<_ACEOF
23921 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23922 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23928 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23929 if ${gcc_cv_as_cfi_personality_directive+:} false
; then :
23930 $as_echo_n "(cached) " >&6
23932 gcc_cv_as_cfi_personality_directive
=no
23933 if test x
$gcc_cv_as != x
; then
23936 .cfi_personality 0, symbol
23937 .cfi_endproc' > conftest.s
23938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23940 (eval $ac_try) 2>&5
23942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23943 test $ac_status = 0; }; }
23945 gcc_cv_as_cfi_personality_directive
=yes
23947 echo "configure: failed program was" >&5
23950 rm -f conftest.o conftest.s
23953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23954 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23958 cat >>confdefs.h
<<_ACEOF
23959 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes; then echo 1; else echo 0; fi`
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23964 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23965 if ${gcc_cv_as_cfi_sections_directive+:} false
; then :
23966 $as_echo_n "(cached) " >&6
23968 gcc_cv_as_cfi_sections_directive
=no
23969 if test x
$gcc_cv_as != x
; then
23971 .cfi_sections .debug_frame, .eh_frame
23973 .cfi_endproc' > conftest.s
23974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; }
23982 win32 | pe | cygwin
* | mingw32
*)
23983 # Need to check that we generated the correct relocation for the
23984 # .debug_frame section. This was fixed for binutils 2.21.
23985 gcc_cv_as_cfi_sections_directive
=no
23986 if test "x$gcc_cv_objdump" != x
; then
23987 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23988 grep secrel
> /dev
/null
; then
23989 gcc_cv_as_cfi_sections_directive
=yes
23994 gcc_cv_as_cfi_sections_directive
=yes
23998 echo "configure: failed program was" >&5
24001 rm -f conftest.o conftest.s
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
24005 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
24010 cat >>confdefs.h
<<_ACEOF
24011 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; then echo 1; else echo 0; fi`
24015 # GAS versions up to and including 2.11.0 may mis-optimize
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
24018 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
24019 if ${gcc_cv_as_eh_frame+:} false
; then :
24020 $as_echo_n "(cached) " >&6
24022 gcc_cv_as_eh_frame
=no
24023 if test $in_tree_gas = yes; then
24024 if test $in_tree_gas_is_elf = yes \
24025 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24026 then gcc_cv_as_eh_frame
=yes
24028 elif test x
$gcc_cv_as != x
; then
24035 .section .eh_frame,"aw",@progbits
24037 .4byte .LECIE1-.LSCIE1
24051 .4byte .LEFDE1-.LASFDE1
24053 .4byte .LASFDE1-__FRAME_BEGIN__
24060 .LEFDE1:' > conftest.s
24061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24063 (eval $ac_try) 2>&5
24065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24066 test $ac_status = 0; }; }
24068 cat > conftest.lit
<<EOF
24069 0000 10000000 00000000 017a0001 781a0004 .........z..x...
24070 0010 01000000 12000000 18000000 00000000 ................
24071 0020 08000000 04080000 0044 .........D
24073 cat > conftest.big
<<EOF
24074 0000 00000010 00000000 017a0001 781a0004 .........z..x...
24075 0010 00000001 00000012 00000018 00000000 ................
24076 0020 00000008 04000000 0844 .........D
24078 # If the assembler didn't choke, and we can objdump,
24079 # and we got the correct data, then succeed.
24080 # The text in the here-document typically retains its unix-style line
24081 # endings, while the output of objdump will use host line endings.
24082 # Therefore, use diff -b for the comparisons.
24083 if test x
$gcc_cv_objdump != x \
24084 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
24085 |
tail -3 > conftest.got \
24086 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
24087 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
24089 gcc_cv_as_eh_frame
=yes
24090 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
24091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24092 (eval $ac_try) 2>&5
24094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24095 test $ac_status = 0; }; }; then
24096 gcc_cv_as_eh_frame
=buggy
24098 # Uh oh, what do we do now?
24099 gcc_cv_as_eh_frame
=no
24102 echo "configure: failed program was" >&5
24105 rm -f conftest.o conftest.s
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
24109 $as_echo "$gcc_cv_as_eh_frame" >&6; }
24113 if test $gcc_cv_as_eh_frame = buggy
; then
24115 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
24119 # Test if the assembler supports the section flag 'e' or #exclude for
24120 # specifying an excluded section.
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24122 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24123 if ${gcc_cv_as_section_exclude_e+:} false
; then :
24124 $as_echo_n "(cached) " >&6
24126 gcc_cv_as_section_exclude_e
=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24129 then gcc_cv_as_section_exclude_e
=yes
24131 elif test x
$gcc_cv_as != x
; then
24132 $as_echo '.section foo1,"e"
24133 .byte 0,0,0,0' > conftest.s
24134 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136 (eval $ac_try) 2>&5
24138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139 test $ac_status = 0; }; }
24141 gcc_cv_as_section_exclude_e
=yes
24143 echo "configure: failed program was" >&5
24146 rm -f conftest.o conftest.s
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
24150 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
24153 if test $gcc_cv_as_section_exclude_e = no
; then
24154 case "${target}" in
24155 # Solaris as uses #exclude instead.
24157 case "${target}" in
24158 sparc
*-*-solaris2*)
24159 conftest_s
='.section "foo1", #exclude'
24161 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24162 conftest_s
='.section foo1, #exclude'
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
24168 $as_echo_n "checking assembler for section exclude flag... " >&6; }
24169 if ${gcc_cv_as_section_exclude_hash+:} false
; then :
24170 $as_echo_n "(cached) " >&6
24172 gcc_cv_as_section_exclude_hash
=no
24173 if test x
$gcc_cv_as != x
; then
24174 $as_echo "$conftest_s
24175 .byte 0,0,0,0" > conftest.s
24176 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24178 (eval $ac_try) 2>&5
24180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24181 test $ac_status = 0; }; }
24183 gcc_cv_as_section_exclude_hash
=yes
24185 echo "configure: failed program was" >&5
24188 rm -f conftest.o conftest.s
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
24192 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
24197 cat >>confdefs.h
<<_ACEOF
24198 #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`
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24203 $as_echo_n "checking assembler for section merging support... " >&6; }
24204 if ${gcc_cv_as_shf_merge+:} false
; then :
24205 $as_echo_n "(cached) " >&6
24207 gcc_cv_as_shf_merge
=no
24208 if test $in_tree_gas = yes; then
24209 if test $in_tree_gas_is_elf = yes \
24210 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24211 then gcc_cv_as_shf_merge
=yes
24213 elif test x
$gcc_cv_as != x
; then
24214 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
24215 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24217 (eval $ac_try) 2>&5
24219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24220 test $ac_status = 0; }; }
24222 gcc_cv_as_shf_merge
=yes
24224 echo "configure: failed program was" >&5
24227 rm -f conftest.o conftest.s
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24231 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24234 if test $gcc_cv_as_shf_merge = no
; then
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
24236 $as_echo_n "checking assembler for section merging support... " >&6; }
24237 if ${gcc_cv_as_shf_merge+:} false
; then :
24238 $as_echo_n "(cached) " >&6
24240 gcc_cv_as_shf_merge
=no
24241 if test $in_tree_gas = yes; then
24242 if test $in_tree_gas_is_elf = yes \
24243 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24244 then gcc_cv_as_shf_merge
=yes
24246 elif test x
$gcc_cv_as != x
; then
24247 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
24248 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24250 (eval $ac_try) 2>&5
24252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24253 test $ac_status = 0; }; }
24255 gcc_cv_as_shf_merge
=yes
24257 echo "configure: failed program was" >&5
24260 rm -f conftest.o conftest.s
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
24264 $as_echo "$gcc_cv_as_shf_merge" >&6; }
24269 cat >>confdefs.h
<<_ACEOF
24270 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
24274 gcc_cv_ld_aligned_shf_merge
=yes
24276 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
24278 sparc
*-*-solaris2.11
*)
24279 if test x
"$gnu_ld" = xno \
24280 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
24281 gcc_cv_ld_aligned_shf_merge
=no
24286 cat >>confdefs.h
<<_ACEOF
24287 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
24292 $as_echo_n "checking assembler for stabs directive... " >&6; }
24293 if ${gcc_cv_as_stabs_directive+:} false
; then :
24294 $as_echo_n "(cached) " >&6
24296 gcc_cv_as_stabs_directive
=no
24297 if test x
$gcc_cv_as != x
; then
24298 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
24299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24301 (eval $ac_try) 2>&5
24303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24304 test $ac_status = 0; }; }
24306 gcc_cv_as_stabs_directive
=yes
24308 echo "configure: failed program was" >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
24315 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
24316 if test $gcc_cv_as_stabs_directive = yes; then
24318 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
24324 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
24325 if ${gcc_cv_as_comdat_group+:} false
; then :
24326 $as_echo_n "(cached) " >&6
24328 gcc_cv_as_comdat_group
=no
24329 if test $in_tree_gas = yes; then
24330 if test $in_tree_gas_is_elf = yes \
24331 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24332 then gcc_cv_as_comdat_group
=yes
24334 elif test x
$gcc_cv_as != x
; then
24335 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
24336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24343 gcc_cv_as_comdat_group
=yes
24345 echo "configure: failed program was" >&5
24348 rm -f conftest.o conftest.s
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
24352 $as_echo "$gcc_cv_as_comdat_group" >&6; }
24355 if test $gcc_cv_as_comdat_group = yes; then
24356 gcc_cv_as_comdat_group_percent
=no
24357 gcc_cv_as_comdat_group_group
=no
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
24360 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
24361 if ${gcc_cv_as_comdat_group_percent+:} false
; then :
24362 $as_echo_n "(cached) " >&6
24364 gcc_cv_as_comdat_group_percent
=no
24365 if test $in_tree_gas = yes; then
24366 if test $in_tree_gas_is_elf = yes \
24367 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24368 then gcc_cv_as_comdat_group_percent
=yes
24370 elif test x
$gcc_cv_as != x
; then
24371 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
24372 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24379 gcc_cv_as_comdat_group_percent
=yes
24381 echo "configure: failed program was" >&5
24384 rm -f conftest.o conftest.s
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
24388 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
24391 if test $gcc_cv_as_comdat_group_percent = yes; then
24392 gcc_cv_as_comdat_group_group
=no
24394 case "${target}" in
24395 # Sun as uses a completely different syntax.
24397 case "${target}" in
24398 sparc
*-*-solaris2*)
24400 .group foo,".text%foo",#comdat
24401 .section ".text%foo", #alloc,#execinstr,#progbits
24406 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24408 .group foo,.text%foo,#comdat
24409 .section .text%foo, "ax", @progbits
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
24416 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
24417 if ${gcc_cv_as_comdat_group_group+:} false
; then :
24418 $as_echo_n "(cached) " >&6
24420 gcc_cv_as_comdat_group_group
=no
24421 if test x
$gcc_cv_as != x
; then
24422 $as_echo "$conftest_s" > conftest.s
24423 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24425 (eval $ac_try) 2>&5
24427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24428 test $ac_status = 0; }; }
24430 gcc_cv_as_comdat_group_group
=yes
24432 echo "configure: failed program was" >&5
24435 rm -f conftest.o conftest.s
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
24439 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
24444 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
24445 gcc_cv_as_comdat_group_group
=no
24449 if test x
"$ld_is_gold" = xyes
; then
24451 elif test $in_tree_ld = yes ; then
24453 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 \
24454 && test $in_tree_ld_is_elf = yes; then
24457 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24459 if test 0"$ld_date" -lt 20050308; then
24460 if test -n "$ld_date"; then
24461 # If there was date string, but was earlier than 2005-03-08, fail
24463 elif test "$ld_vers_major" -lt 2; then
24465 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
24470 case "${target}" in
24471 *-*-solaris2.1
[1-9]*)
24473 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
24474 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
24477 # If using Sun as for COMDAT group as emitted by GCC, one needs at
24478 # least ld version 1.2267.
24479 if test "$ld_vers_major" -gt 1; then
24481 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
24483 elif test "$ld_vers_minor" -ge 2267; then
24488 # Assume linkers other than GNU ld don't support COMDAT group.
24493 # Allow overriding the automatic COMDAT group tests above.
24494 # Check whether --enable-comdat was given.
24495 if test "${enable_comdat+set}" = set; then :
24496 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
24499 if test $comdat_group = no
; then
24500 gcc_cv_as_comdat_group
=no
24501 gcc_cv_as_comdat_group_percent
=no
24502 gcc_cv_as_comdat_group_group
=no
24505 cat >>confdefs.h
<<_ACEOF
24506 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24507 || test $gcc_cv_as_comdat_group_percent = yes \
24508 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24512 # Restrict this test to Solaris/x86: other targets define this statically.
24513 case "${target}" in
24514 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24516 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24517 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24518 hidden_linkonce
=yes
24520 case "${target}" in
24521 # Full support for hidden thunks in linkonce sections only appeared in
24522 # Solaris 11/OpenSolaris.
24523 *-*-solaris2.1
[1-9]*)
24524 hidden_linkonce
=yes
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24532 $as_echo "$hidden_linkonce" >&6; }
24534 cat >>confdefs.h
<<_ACEOF
24535 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24542 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24543 if ${gcc_cv_as_is_stmt+:} false
; then :
24544 $as_echo_n "(cached) " >&6
24546 gcc_cv_as_is_stmt
=no
24547 if test $in_tree_gas = yes; then
24548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24549 then gcc_cv_as_is_stmt
=yes
24551 elif test x
$gcc_cv_as != x
; then
24554 .loc 1 1 0 is_stmt 1' > conftest.s
24555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24557 (eval $ac_try) 2>&5
24559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24560 test $ac_status = 0; }; }
24562 gcc_cv_as_is_stmt
=yes
24564 echo "configure: failed program was" >&5
24567 rm -f conftest.o conftest.s
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24571 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24572 if test $gcc_cv_as_is_stmt = yes; then
24574 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24580 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24581 if ${gcc_cv_as_discriminator+:} false
; then :
24582 $as_echo_n "(cached) " >&6
24584 gcc_cv_as_discriminator
=no
24585 if test $in_tree_gas = yes; then
24586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24587 then gcc_cv_as_discriminator
=yes
24589 elif test x
$gcc_cv_as != x
; then
24592 .loc 1 1 0 discriminator 1' > conftest.s
24593 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24595 (eval $ac_try) 2>&5
24597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24598 test $ac_status = 0; }; }
24600 gcc_cv_as_discriminator
=yes
24602 echo "configure: failed program was" >&5
24605 rm -f conftest.o conftest.s
24608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24609 $as_echo "$gcc_cv_as_discriminator" >&6; }
24610 if test $gcc_cv_as_discriminator = yes; then
24612 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24617 # Catch the newlib flag of the same name so we can gate GCC features on it.
24618 # Check whether --enable-newlib-nano-formatted-io was given.
24619 if test "${enable_newlib_nano_formatted_io+set}" = set; then :
24620 enableval
=$enable_newlib_nano_formatted_io; case "${enableval}" in
24624 as_fn_error $?
"unknown newlib-nano-formatted-io setting $enableval" "$LINENO" 5
24630 # Thread-local storage - the check is heavily parameterized.
24638 .section ".tdata","awT",@progbits
24641 ldq $27,__tls_get_addr($29) !literal!1
24642 lda $16,foo($29) !tlsgd!1
24643 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24644 ldq $27,__tls_get_addr($29) !literal!2
24645 lda $16,foo($29) !tlsldm!2
24646 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24647 ldq $1,foo($29) !gotdtprel
24648 ldah $2,foo($29) !dtprelhi
24649 lda $3,foo($2) !dtprello
24650 lda $4,foo($29) !dtprel
24651 ldq $1,foo($29) !gottprel
24652 ldah $2,foo($29) !tprelhi
24653 lda $3,foo($2) !tprello
24654 lda $4,foo($29) !tprel'
24657 tls_as_opt
=--fatal-warnings
24661 add_s r0,r0, @foo@tpoff'
24665 cris-
*-*|crisv32-
*-*)
24667 .section ".tdata","awT",@progbits
24674 tls_as_opt
=--fatal-warnings
24678 .section ".tdata","awT",@progbits
24681 call #gettlsoff(x)'
24690 .section ".tdata","awT",@progbits
24694 addil LT%foo-$tls_gdidx$,gp
24695 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24698 addil LT%foo-$tls_ldidx$,gp
24700 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24701 addil LR%foo-$tls_dtpoff$,%ret0
24702 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24704 addil LT%foo-$tls_ieoff$,gp
24705 ldw RT%foo-$tls_ieoff$(%r1),%t2
24708 addil LR%foo-$tls_leoff$,%t1
24709 ldo RR%foo-$tls_leoff$(%r1),%t2'
24712 tls_as_opt
=--fatal-warnings
24716 .section ".tdata","awT",%progbits
24719 .word foo(gottpoff)
24727 i
[34567]86-*-* | x86_64-
*-*)
24729 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.
*)
24736 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24738 .section .tdata,"awt",@progbits'
24743 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24747 .section ".tdata","awT",@progbits'
24751 tls_as_opt
="--fatal-warnings"
24755 conftest_s
="$conftest_s
24759 leal foo@tlsgd(,%ebx,1), %eax
24760 leal foo@tlsldm(%ebx), %eax
24761 leal foo@dtpoff(%eax), %edx
24762 movl foo@gottpoff(%ebx), %eax
24763 subl foo@gottpoff(%ebx), %eax
24764 addl foo@gotntpoff(%ebx), %eax
24765 movl foo@indntpoff, %eax
24766 movl \$foo@tpoff, %eax
24767 subl \$foo@tpoff, %eax
24768 leal foo@ntpoff(%ecx), %eax"
24771 if test x
$on_solaris = xyes
; then
24773 yes) tls_as_opt
="$tls_as_opt --64" ;;
24774 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24777 conftest_s
="$conftest_s
24781 leaq foo@tlsgd(%rip), %rdi
24782 leaq foo@tlsld(%rip), %rdi
24783 leaq foo@dtpoff(%rax), %rdx
24784 movq foo@gottpoff(%rip), %rax
24785 movq \$foo@tpoff, %rax"
24791 .section ".tdata","awT",@progbits
24794 addl r16 = @ltoff(@dtpmod(foo#)), gp
24795 addl r17 = @ltoff(@dtprel(foo#)), gp
24796 addl r18 = @ltoff(@tprel(foo#)), gp
24797 addl r19 = @dtprel(foo#), gp
24798 adds r21 = @dtprel(foo#), r13
24799 movl r23 = @dtprel(foo#)
24800 addl r20 = @tprel(foo#), gp
24801 adds r22 = @tprel(foo#), r13
24802 movl r24 = @tprel(foo#)'
24805 tls_as_opt
=--fatal-warnings
24809 .section .tdata,"awT",@progbits
24813 addik r5,r20,x@TLSGD
24814 addik r5,r20,x@TLSLDM'
24817 tls_as_opt
='--fatal-warnings'
24821 .section .tdata,"awT",@progbits
24825 addiu $4, $28, %tlsgd(x)
24826 addiu $4, $28, %tlsldm(x)
24827 lui $4, %dtprel_hi(x)
24828 addiu $4, $4, %dtprel_lo(x)
24829 lw $4, %gottprel(x)($28)
24830 lui $4, %tprel_hi(x)
24831 addiu $4, $4, %tprel_lo(x)'
24834 tls_as_opt
='-32 --fatal-warnings'
24838 .section .tdata,"awT",@progbits
24843 move.l x@TLSGD(%a5),%a0
24844 move.l x@TLSLDM(%a5),%a0
24845 move.l x@TLSLDO(%a5),%a0
24846 move.l x@TLSIE(%a5),%a0
24847 move.l x@TLSLE(%a5),%a0'
24850 tls_as_opt
='--fatal-warnings'
24854 .section ".tdata","awT",@progbits'
24857 tls_as_opt
="--fatal-warnings"
24861 .section ".tdata","awT",%progbits
24865 add x0, x0, #:tlsgd_lo12:x
24870 tls_as_opt
='--fatal-warnings'
24874 .section ".tdata","awT",@progbits
24877 l.movhi r3, tpoffha(foo)
24879 l.lwz r4, tpofflo(foo)(r3)'
24882 tls_as_opt
=--fatal-warnings
24886 .extern __get_tpointer
24904 .section ".tdata","awT",@progbits
24912 addi 3,2,ld0@got@tlsgd
24918 addi 3,2,x1@got@tlsld
24924 addis 9,3,x2@dtprel@ha
24925 addi 9,9,x2@dtprel@l
24928 ld 9,x3@got@dtprel(2)
24934 tls_as_opt
="-a64 --fatal-warnings"
24938 .section ".tdata","awT",@progbits
24946 addi 3,31,ld0@got@tlsgd
24948 addi 3,31,x1@got@tlsld
24951 addis 9,3,x2@dtprel@ha
24952 addi 9,9,x2@dtprel@l
24953 lwz 9,x3@got@tprel(31)
24956 addis 9,2,x2@tprel@ha
24957 addi 9,9,x2@tprel@l'
24960 tls_as_opt
="-a32 --fatal-warnings"
24964 .section .tdata,"awT",@progbits
24968 call __tls_get_addr'
24971 tls_as_opt
='--fatal-warnings'
24975 .section ".tdata","awT",@progbits
24982 .long foo@GOTNTPOFF
24983 .long foo@INDNTPOFF
24984 l %r1,foo@GOTNTPOFF(%r12)
24985 l %r1,0(%r1):tls_load:foo
24986 bas %r14,0(%r1,%r13):tls_gdcall:foo
24987 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24990 tls_as_opt
="-m31 --fatal-warnings"
24994 .section ".tdata","awT",@progbits
25001 .quad foo@GOTNTPOFF
25002 lg %r1,foo@GOTNTPOFF(%r12)
25003 larl %r1,foo@INDNTPOFF
25004 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
25005 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
25008 tls_as_opt
="-m64 -Aesame --fatal-warnings"
25010 sh-
*-* | sh
[123456789lbe
]*-*-*)
25012 .section ".tdata","awT",@progbits
25022 tls_as_opt
=--fatal-warnings
25026 sparc
*-sun-solaris2.
*)
25033 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
25035 .section ".tdata",#alloc,#write,#tls'
25040 .section ".tdata","awT",@progbits'
25043 tls_as_opt
="-32 --fatal-warnings"
25045 conftest_s
="$conftest_s
25048 sethi %tgd_hi22(foo), %o0
25049 add %o0, %tgd_lo10(foo), %o1
25050 add %l7, %o1, %o0, %tgd_add(foo)
25051 call __tls_get_addr, %tgd_call(foo)
25052 sethi %tldm_hi22(foo), %l1
25053 add %l1, %tldm_lo10(foo), %l2
25054 add %l7, %l2, %o0, %tldm_add(foo)
25055 call __tls_get_addr, %tldm_call(foo)
25056 sethi %tldo_hix22(foo), %l3
25057 xor %l3, %tldo_lox10(foo), %l4
25058 add %o0, %l4, %l5, %tldo_add(foo)
25059 sethi %tie_hi22(foo), %o3
25060 add %o3, %tie_lo10(foo), %o3
25061 ld [%l7 + %o3], %o2, %tie_ld(foo)
25062 add %g7, %o2, %o4, %tie_add(foo)
25063 sethi %tle_hix22(foo), %l1
25064 xor %l1, %tle_lox10(foo), %o5
25065 ld [%g7 + %o5], %o1"
25069 .section ".tdata","awT",@progbits
25072 addli r0, zero, tls_gd(foo)
25073 auli r0, zero, tls_gd_ha16(foo)
25074 addli r0, r0, tls_gd_lo16(foo)
25076 addli r0, zero, tls_ie(foo)
25077 auli r0, r0, tls_ie_ha16(foo)
25078 addli r0, r0, tls_ie_lo16(foo)'
25081 tls_as_opt
="--fatal-warnings"
25085 .section ".tdata","awT",@progbits
25088 shl16insli r0, zero, hw0_last_tls_gd(foo)
25089 shl16insli r0, zero, hw1_last_tls_gd(foo)
25090 shl16insli r0, r0, hw0_tls_gd(foo)
25092 shl16insli r0, zero, hw1_last_tls_ie(foo)
25093 shl16insli r0, r0, hw0_tls_ie(foo)'
25096 tls_as_opt
="--fatal-warnings"
25100 .section ".tdata","awT",@progbits
25103 movi a8, foo@TLSFUNC
25104 movi a10, foo@TLSARG
25105 callx8.tls a8, foo@TLSCALL'
25111 if test "x$enable_tls" = xno
; then
25112 : # TLS explicitly disabled.
25113 elif test "x$enable_tls" = xyes
; then
25114 set_have_as_tls
=yes # TLS explicitly enabled.
25115 elif test -z "$tls_first_major"; then
25116 : # If we don't have a check, assume no support.
25118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
25119 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
25120 if ${gcc_cv_as_tls+:} false
; then :
25121 $as_echo_n "(cached) " >&6
25124 if test $in_tree_gas = yes; then
25125 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
25126 then gcc_cv_as_tls
=yes
25128 elif test x
$gcc_cv_as != x
; then
25129 $as_echo "$conftest_s" > conftest.s
25130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
25131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25132 (eval $ac_try) 2>&5
25134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25135 test $ac_status = 0; }; }
25139 echo "configure: failed program was" >&5
25142 rm -f conftest.o conftest.s
25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
25146 $as_echo "$gcc_cv_as_tls" >&6; }
25147 if test $gcc_cv_as_tls = yes; then
25148 set_have_as_tls
=yes
25152 if test $set_have_as_tls = yes ; then
25154 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
25158 # Target-specific assembler checks.
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
25161 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
25162 gcc_cv_ld_static_dynamic
=no
25163 gcc_cv_ld_static_option
='-Bstatic'
25164 gcc_cv_ld_dynamic_option
='-Bdynamic'
25165 if test $in_tree_ld = yes ; then
25166 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
25167 gcc_cv_ld_static_dynamic
=yes
25169 elif test x
$gcc_cv_ld != x
; then
25170 # Check if linker supports -Bstatic/-Bdynamic option
25171 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
25172 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
25173 gcc_cv_ld_static_dynamic
=yes
25176 # AIX ld uses -b flags
25177 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
25178 gcc_cv_ld_static_dynamic
=yes
25179 gcc_cv_ld_static_option
="-bstatic"
25180 gcc_cv_ld_dynamic_option
="-bdynamic"
25182 # HP-UX ld uses -a flags to select between shared and archive.
25184 if test x
"$gnu_ld" = xno
; then
25185 gcc_cv_ld_static_dynamic
=yes
25186 gcc_cv_ld_static_option
="-aarchive_shared"
25187 gcc_cv_ld_dynamic_option
="-adefault"
25190 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
25192 gcc_cv_ld_static_dynamic
=yes
25197 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
25199 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
25202 cat >>confdefs.h
<<_ACEOF
25203 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
25207 cat >>confdefs.h
<<_ACEOF
25208 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
25213 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
25216 $as_echo_n "checking linker --version-script option... " >&6; }
25217 gcc_cv_ld_version_script
=no
25218 ld_version_script_option
=''
25219 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25220 gcc_cv_ld_version_script
=yes
25221 ld_version_script_option
='--version-script'
25222 elif test x
$gcc_cv_ld != x
; then
25224 # Solaris 2 ld always supports -M. It also supports a subset of
25225 # --version-script since Solaris 11.4, but requires
25226 # -z gnu-version-script-compat to activate.
25228 gcc_cv_ld_version_script
=yes
25229 ld_version_script_option
='-M'
25233 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
25235 $as_echo "$gcc_cv_ld_version_script" >&6; }
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
25239 $as_echo_n "checking linker soname option... " >&6; }
25240 gcc_cv_ld_soname
=no
25241 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
25242 gcc_cv_ld_soname
=yes
25243 ld_soname_option
='-soname'
25244 elif test x
$gcc_cv_ld != x
; then
25247 gcc_cv_ld_soname
=yes
25248 ld_soname_option
='-install_name'
25250 # Solaris 2 ld always supports -h. It also supports --soname for GNU
25251 # ld compatiblity since some Solaris 10 update.
25253 gcc_cv_ld_soname
=yes
25254 ld_soname_option
='-h'
25258 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
25260 $as_echo "$gcc_cv_ld_soname" >&6; }
25263 if test x
"$demangler_in_ld" = xyes
; then
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
25265 $as_echo_n "checking linker --demangle support... " >&6; }
25266 gcc_cv_ld_demangle
=no
25267 if test $in_tree_ld = yes; then
25268 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 \
25269 gcc_cv_ld_demangle
=yes
25271 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
25272 # Check if the GNU linker supports --demangle option
25273 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
25274 gcc_cv_ld_demangle
=yes
25277 if test x
"$gcc_cv_ld_demangle" = xyes
; then
25279 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
25283 $as_echo "$gcc_cv_ld_demangle" >&6; }
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
25287 $as_echo_n "checking linker plugin support... " >&6; }
25288 gcc_cv_lto_plugin
=0
25289 if test -f liblto_plugin.la
; then
25290 save_ld_ver
="$ld_ver"
25291 save_ld_vers_major
="$ld_vers_major"
25292 save_ld_vers_minor
="$ld_vers_minor"
25293 save_ld_is_gold
="$ld_is_gold"
25297 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
25299 # FIXME: ld_is_gold?
25300 ld_vers_major
="$gcc_cv_gld_major_version"
25301 ld_vers_minor
="$gcc_cv_gld_minor_version"
25303 # Determine plugin linker version.
25304 # FIXME: Partial duplicate from above, generalize.
25305 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
25306 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25307 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
25309 ld_vers
=`echo $ld_ver | sed -n \
25310 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
25312 ld_vers
=`echo $ld_ver | sed -n \
25313 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
25315 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
25316 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
25320 # Determine plugin support.
25321 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25322 # Require GNU ld or gold 2.21+ for plugin support by default.
25323 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
25324 gcc_cv_lto_plugin
=2
25325 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
25326 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
25327 gcc_cv_lto_plugin
=1
25331 ld_ver
="$save_ld_ver"
25332 ld_vers_major
="$save_ld_vers_major"
25333 ld_vers_minor
="$save_ld_vers_minor"
25334 ld_is_gold
="$save_ld_is_gold"
25337 cat >>confdefs.h
<<_ACEOF
25338 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
25342 $as_echo "$gcc_cv_lto_plugin" >&6; }
25344 # Target OS-specific assembler checks.
25346 case "$target_os" in
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
25349 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
25350 if ${gcc_cv_as_mmacosx_version_min+:} false
; then :
25351 $as_echo_n "(cached) " >&6
25353 gcc_cv_as_mmacosx_version_min
=no
25354 if test x
$gcc_cv_as != x
; then
25355 $as_echo '.text' > conftest.s
25356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
25357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25358 (eval $ac_try) 2>&5
25360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25361 test $ac_status = 0; }; }
25363 gcc_cv_as_mmacosx_version_min
=yes
25365 echo "configure: failed program was" >&5
25368 rm -f conftest.o conftest.s
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
25372 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
25373 if test $gcc_cv_as_mmacosx_version_min = yes; then
25375 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
25382 # Target CPU-specific assembler checks.
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
25387 $as_echo_n "checking assembler for -mabi option... " >&6; }
25388 if ${gcc_cv_as_aarch64_mabi+:} false
; then :
25389 $as_echo_n "(cached) " >&6
25391 gcc_cv_as_aarch64_mabi
=no
25392 if test x
$gcc_cv_as != x
; then
25393 $as_echo '.text' > conftest.s
25394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
25395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25396 (eval $ac_try) 2>&5
25398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25399 test $ac_status = 0; }; }
25401 gcc_cv_as_aarch64_mabi
=yes
25403 echo "configure: failed program was" >&5
25406 rm -f conftest.o conftest.s
25409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
25410 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
25413 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
25415 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
25418 if test x
$with_abi = xilp32
; then
25419 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25420 Upgrade the Assembler." "$LINENO" 5
25422 if test x
"$with_multilib_list" = xdefault
; then
25423 TM_MULTILIB_CONFIG
=lp64
25425 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
25426 for aarch64_multilib
in ${aarch64_multilibs}; do
25427 case ${aarch64_multilib} in
25429 as_fn_error $?
"Assembler does not support -mabi=ilp32.\
25430 Upgrade the Assembler." "$LINENO" 5
25438 # Check if we have binutils support for relocations types needed by -fpic
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
25440 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
25441 if ${gcc_cv_as_aarch64_picreloc+:} false
; then :
25442 $as_echo_n "(cached) " >&6
25444 gcc_cv_as_aarch64_picreloc
=no
25445 if test x
$gcc_cv_as != x
; then
25448 ldr x0, [x2, #:gotpage_lo15:globalsym]
25450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25452 (eval $ac_try) 2>&5
25454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25455 test $ac_status = 0; }; }
25457 gcc_cv_as_aarch64_picreloc
=yes
25459 echo "configure: failed program was" >&5
25462 rm -f conftest.o conftest.s
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
25466 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
25467 if test $gcc_cv_as_aarch64_picreloc = yes; then
25469 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
25473 # Enable Branch Target Identification Mechanism and Return Address
25474 # Signing by default.
25475 # Check whether --enable-standard-branch-protection was given.
25476 if test "${enable_standard_branch_protection+set}" = set; then :
25477 enableval
=$enable_standard_branch_protection;
25480 tm_defines
="${tm_defines} TARGET_ENABLE_BTI=1 TARGET_ENABLE_PAC_RET=1"
25485 as_fn_error $?
"'$enableval' is an invalid value for --enable-standard-branch-protection.\
25486 Valid choices are 'yes' and 'no'." "$LINENO" 5
25492 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
25493 # Check whether --enable-fix-cortex-a53-835769 was given.
25494 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
25495 enableval
=$enable_fix_cortex_a53_835769;
25498 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
25503 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
25504 Valid choices are 'yes' and 'no'." "$LINENO" 5
25511 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
25512 # Check whether --enable-fix-cortex-a53-843419 was given.
25513 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
25514 enableval
=$enable_fix_cortex_a53_843419;
25517 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
25522 as_fn_error $?
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
25523 Valid choices are 'yes' and 'no'." "$LINENO" 5
25532 # All TARGET_ABI_OSF targets.
25533 alpha
*-*-linux* | alpha
*-*-*bsd
*)
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
25535 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
25536 if ${gcc_cv_as_alpha_explicit_relocs+:} false
; then :
25537 $as_echo_n "(cached) " >&6
25539 gcc_cv_as_alpha_explicit_relocs
=no
25540 if test $in_tree_gas = yes; then
25541 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
25542 then gcc_cv_as_alpha_explicit_relocs
=yes
25544 elif test x
$gcc_cv_as != x
; then
25545 $as_echo ' .set nomacro
25547 extbl $3, $2, $3 !lituse_bytoff!1
25548 ldq $2, a($29) !literal!1
25549 ldq $4, b($29) !literal!2
25550 ldq_u $3, 0($2) !lituse_base!1
25551 ldq $27, f($29) !literal!5
25552 jsr $26, ($27), f !lituse_jsr!5
25553 ldah $29, 0($26) !gpdisp!3
25554 lda $0, c($29) !gprel
25555 ldah $1, d($29) !gprelhigh
25556 lda $1, d($1) !gprellow
25557 lda $29, 0($29) !gpdisp!3' > conftest.s
25558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25560 (eval $ac_try) 2>&5
25562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25563 test $ac_status = 0; }; }
25565 gcc_cv_as_alpha_explicit_relocs
=yes
25567 echo "configure: failed program was" >&5
25570 rm -f conftest.o conftest.s
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25574 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25575 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25577 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25582 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25583 if ${gcc_cv_as_alpha_jsrdirect_relocs+:} false
; then :
25584 $as_echo_n "(cached) " >&6
25586 gcc_cv_as_alpha_jsrdirect_relocs
=no
25587 if test $in_tree_gas = yes; then
25588 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25589 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25591 elif test x
$gcc_cv_as != x
; then
25592 $as_echo ' .set nomacro
25594 ldq $27, a($29) !literal!1
25595 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25596 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598 (eval $ac_try) 2>&5
25600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601 test $ac_status = 0; }; }
25603 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25605 echo "configure: failed program was" >&5
25608 rm -f conftest.o conftest.s
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25612 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25613 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25615 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25623 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25624 if ${gcc_cv_as_avr_mlink_relax+:} false
; then :
25625 $as_echo_n "(cached) " >&6
25627 gcc_cv_as_avr_mlink_relax
=no
25628 if test x
$gcc_cv_as != x
; then
25629 $as_echo '.text' > conftest.s
25630 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25632 (eval $ac_try) 2>&5
25634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25635 test $ac_status = 0; }; }
25637 gcc_cv_as_avr_mlink_relax
=yes
25639 echo "configure: failed program was" >&5
25642 rm -f conftest.o conftest.s
25645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25646 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25647 if test $gcc_cv_as_avr_mlink_relax = yes; then
25649 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25655 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25656 if ${gcc_cv_as_avr_mrmw+:} false
; then :
25657 $as_echo_n "(cached) " >&6
25659 gcc_cv_as_avr_mrmw
=no
25660 if test x
$gcc_cv_as != x
; then
25661 $as_echo '.text' > conftest.s
25662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25664 (eval $ac_try) 2>&5
25666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25667 test $ac_status = 0; }; }
25669 gcc_cv_as_avr_mrmw
=yes
25671 echo "configure: failed program was" >&5
25674 rm -f conftest.o conftest.s
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25678 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25679 if test $gcc_cv_as_avr_mrmw = yes; then
25681 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25687 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25688 if ${gcc_cv_as_avr_mgccisr+:} false
; then :
25689 $as_echo_n "(cached) " >&6
25691 gcc_cv_as_avr_mgccisr
=no
25692 if test x
$gcc_cv_as != x
; then
25698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25700 (eval $ac_try) 2>&5
25702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25703 test $ac_status = 0; }; }
25705 gcc_cv_as_avr_mgccisr
=yes
25707 echo "configure: failed program was" >&5
25710 rm -f conftest.o conftest.s
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25714 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25715 if test $gcc_cv_as_avr_mgccisr = yes; then
25717 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25722 # Check how default linker description file implements .rodata for
25723 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25724 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25726 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25727 cat > conftest.s
<<EOF
25728 .section .rodata,"a",@progbits
25730 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25735 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25737 (eval $ac_try) 2>&5
25739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25740 test $ac_status = 0; }; }
25741 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25743 (eval $ac_try) 2>&5
25745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25746 test $ac_status = 0; }; }
25747 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25753 if test -s conftest.nm
25755 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25757 $as_echo "yes" >&6; }
25759 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25763 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25764 echo "$as_me: nm output was" >&5
25765 cat conftest.nm
>&5
25766 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25767 { $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
25768 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25772 $as_echo "test failed" >&6; }
25773 echo "$as_me: failed program was" >&5
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25776 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25778 rm -f conftest.s conftest.o conftest.elf conftest.nm
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25783 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25784 if ${gcc_cv_as_cris_no_mul_bug+:} false
; then :
25785 $as_echo_n "(cached) " >&6
25787 gcc_cv_as_cris_no_mul_bug
=no
25788 if test $in_tree_gas = yes; then
25789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25790 then gcc_cv_as_cris_no_mul_bug
=yes
25792 elif test x
$gcc_cv_as != x
; then
25793 $as_echo '.text' > conftest.s
25794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25796 (eval $ac_try) 2>&5
25798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25799 test $ac_status = 0; }; }
25801 gcc_cv_as_cris_no_mul_bug
=yes
25803 echo "configure: failed program was" >&5
25806 rm -f conftest.o conftest.s
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25810 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25811 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25813 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25821 $as_echo_n "checking assembler for -relax option... " >&6; }
25822 if ${gcc_cv_as_sparc_relax+:} false
; then :
25823 $as_echo_n "(cached) " >&6
25825 gcc_cv_as_sparc_relax
=no
25826 if test x
$gcc_cv_as != x
; then
25827 $as_echo '.text' > conftest.s
25828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25830 (eval $ac_try) 2>&5
25832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25833 test $ac_status = 0; }; }
25835 gcc_cv_as_sparc_relax
=yes
25837 echo "configure: failed program was" >&5
25840 rm -f conftest.o conftest.s
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25844 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25845 if test $gcc_cv_as_sparc_relax = yes; then
25847 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25853 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25854 if ${gcc_cv_as_sparc_gotdata_op+:} false
; then :
25855 $as_echo_n "(cached) " >&6
25857 gcc_cv_as_sparc_gotdata_op
=no
25858 if test x
$gcc_cv_as != x
; then
25864 sethi %gdop_hix22(foo), %g1
25865 xor %g1, %gdop_lox10(foo), %g1
25866 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25869 (eval $ac_try) 2>&5
25871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25872 test $ac_status = 0; }; }
25874 if test x
$gcc_cv_ld != x \
25875 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25876 if test x
$gcc_cv_objdump != x
; then
25877 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25878 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25879 gcc_cv_as_sparc_gotdata_op
=no
25881 gcc_cv_as_sparc_gotdata_op
=yes
25887 echo "configure: failed program was" >&5
25890 rm -f conftest.o conftest.s
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25894 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25895 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25897 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25903 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25904 if ${gcc_cv_as_sparc_ua_pcrel+:} false
; then :
25905 $as_echo_n "(cached) " >&6
25907 gcc_cv_as_sparc_ua_pcrel
=no
25908 if test x
$gcc_cv_as != x
; then
25915 .uaword %r_disp32(foo)' > conftest.s
25916 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }
25923 if test x
$gcc_cv_ld != x \
25924 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25925 gcc_cv_as_sparc_ua_pcrel
=yes
25929 echo "configure: failed program was" >&5
25932 rm -f conftest.o conftest.s
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25936 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25937 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25939 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25943 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25944 if ${gcc_cv_as_sparc_ua_pcrel_hidden+:} false
; then :
25945 $as_echo_n "(cached) " >&6
25947 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25948 if test x
$gcc_cv_as != x
; then
25952 .uaword %r_disp32(foo)
25953 .byte 0x32, 0x33, 0x34
25957 .skip 4' > conftest.s
25958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25960 (eval $ac_try) 2>&5
25962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25963 test $ac_status = 0; }; }
25965 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25966 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25967 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25968 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25969 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25970 |
grep 'DISP32' > /dev
/null
2>&1; then
25973 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25978 echo "configure: failed program was" >&5
25981 rm -f conftest.o conftest.s
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25985 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25986 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25988 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25994 # unaligned pcrel relocs
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25997 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25998 if ${gcc_cv_as_sparc_offsetable_lo10+:} false
; then :
25999 $as_echo_n "(cached) " >&6
26001 gcc_cv_as_sparc_offsetable_lo10
=no
26002 if test x
$gcc_cv_as != x
; then
26004 or %g1, %lo(ab) + 12, %g1
26005 or %g1, %lo(ab + 12), %g1' > conftest.s
26006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
26007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26008 (eval $ac_try) 2>&5
26010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26011 test $ac_status = 0; }; }
26013 if test x
$gcc_cv_objdump != x \
26014 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
26015 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
26016 gcc_cv_as_sparc_offsetable_lo10
=yes
26019 echo "configure: failed program was" >&5
26022 rm -f conftest.o conftest.s
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
26026 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
26027 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
26029 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
26034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
26035 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
26036 if ${gcc_cv_as_sparc_fmaf+:} false
; then :
26037 $as_echo_n "(cached) " >&6
26039 gcc_cv_as_sparc_fmaf
=no
26040 if test x
$gcc_cv_as != x
; then
26042 .register %g2, #scratch
26043 .register %g3, #scratch
26045 fmaddd %f0, %f2, %f4, %f6
26046 addxccc %g1, %g2, %g3
26047 fsrl32 %f2, %f4, %f8
26048 fnaddd %f10, %f12, %f14' > conftest.s
26049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
26050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26051 (eval $ac_try) 2>&5
26053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26054 test $ac_status = 0; }; }
26056 gcc_cv_as_sparc_fmaf
=yes
26058 echo "configure: failed program was" >&5
26061 rm -f conftest.o conftest.s
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
26065 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
26066 if test $gcc_cv_as_sparc_fmaf = yes; then
26068 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
26074 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
26075 if ${gcc_cv_as_sparc_sparc4+:} false
; then :
26076 $as_echo_n "(cached) " >&6
26078 gcc_cv_as_sparc_sparc4
=no
26079 if test x
$gcc_cv_as != x
; then
26081 .register %g2, #scratch
26082 .register %g3, #scratch
26085 1: cwbneg %g2, %g3, 1f
26088 aes_kexpand0 %f4, %f6, %f8
26089 des_round %f38, %f40, %f42, %f44
26090 camellia_f %f54, %f56, %f58, %f60
26091 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
26092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
26093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26094 (eval $ac_try) 2>&5
26096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26097 test $ac_status = 0; }; }
26099 gcc_cv_as_sparc_sparc4
=yes
26101 echo "configure: failed program was" >&5
26104 rm -f conftest.o conftest.s
26107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
26108 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
26109 if test $gcc_cv_as_sparc_sparc4 = yes; then
26111 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
26117 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
26118 if ${gcc_cv_as_sparc_sparc5+:} false
; then :
26119 $as_echo_n "(cached) " >&6
26121 gcc_cv_as_sparc_sparc5
=no
26122 if test x
$gcc_cv_as != x
; then
26124 .register %g2, #scratch
26125 .register %g3, #scratch
26127 subxc %g1, %g2, %g3
26128 fpadd8 %f0, %f2, %f4' > conftest.s
26129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
26130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26131 (eval $ac_try) 2>&5
26133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26134 test $ac_status = 0; }; }
26136 gcc_cv_as_sparc_sparc5
=yes
26138 echo "configure: failed program was" >&5
26141 rm -f conftest.o conftest.s
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
26145 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
26146 if test $gcc_cv_as_sparc_sparc5 = yes; then
26148 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
26153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
26154 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
26155 if ${gcc_cv_as_sparc_sparc6+:} false
; then :
26156 $as_echo_n "(cached) " >&6
26158 gcc_cv_as_sparc_sparc6
=no
26159 if test x
$gcc_cv_as != x
; then
26161 .register %g2, #scratch
26162 .register %g3, #scratch
26165 fpsll64x %f0, %f2, %f4' > conftest.s
26166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26173 gcc_cv_as_sparc_sparc6
=yes
26175 echo "configure: failed program was" >&5
26178 rm -f conftest.o conftest.s
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
26182 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
26183 if test $gcc_cv_as_sparc_sparc6 = yes; then
26185 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
26191 $as_echo_n "checking assembler for LEON instructions... " >&6; }
26192 if ${gcc_cv_as_sparc_leon+:} false
; then :
26193 $as_echo_n "(cached) " >&6
26195 gcc_cv_as_sparc_leon
=no
26196 if test x
$gcc_cv_as != x
; then
26198 .register %g2, #scratch
26199 .register %g3, #scratch
26203 casa [%g2] 0xb, %g3, %g1' > conftest.s
26204 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
26205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26206 (eval $ac_try) 2>&5
26208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26209 test $ac_status = 0; }; }
26211 gcc_cv_as_sparc_leon
=yes
26213 echo "configure: failed program was" >&5
26216 rm -f conftest.o conftest.s
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
26220 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
26221 if test $gcc_cv_as_sparc_leon = yes; then
26223 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
26229 i
[34567]86-*-* | x86_64-
*-*)
26232 # Full C++ conformance when using a shared libstdc++-v3 requires some
26233 # support from the Cygwin DLL, which in more recent versions exports
26234 # wrappers to aid in interposing and redirecting operators new, delete,
26235 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
26236 # are configuring for a version of Cygwin that exports the wrappers.
26237 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
26238 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
26239 if test "x$ac_cv_func___wrap__Znaj" = xyes
; then :
26240 gcc_ac_cygwin_dll_wrappers
=yes
26242 gcc_ac_cygwin_dll_wrappers
=no
26246 # Can't check presence of libc functions during cross-compile, so
26247 # we just have to assume we're building for an up-to-date target.
26248 gcc_ac_cygwin_dll_wrappers
=yes
26251 cat >>confdefs.h
<<_ACEOF
26252 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
26257 cygwin
* | pe | mingw32
*)
26258 # Recent binutils allows the three-operand form of ".comm" on PE. This
26259 # definition is used unconditionally to initialise the default state of
26260 # the target option variable that governs usage of the feature.
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
26262 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
26263 if ${gcc_cv_as_comm_has_align+:} false
; then :
26264 $as_echo_n "(cached) " >&6
26266 gcc_cv_as_comm_has_align
=no
26267 if test $in_tree_gas = yes; then
26268 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26269 then gcc_cv_as_comm_has_align
=yes
26271 elif test x
$gcc_cv_as != x
; then
26272 $as_echo '.comm foo,1,32' > conftest.s
26273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26275 (eval $ac_try) 2>&5
26277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26278 test $ac_status = 0; }; }
26280 gcc_cv_as_comm_has_align
=yes
26282 echo "configure: failed program was" >&5
26285 rm -f conftest.o conftest.s
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
26289 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
26293 cat >>confdefs.h
<<_ACEOF
26294 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
26297 # Used for DWARF 2 in PE
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
26299 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
26300 if ${gcc_cv_as_ix86_pe_secrel32+:} false
; then :
26301 $as_echo_n "(cached) " >&6
26303 gcc_cv_as_ix86_pe_secrel32
=no
26304 if test $in_tree_gas = yes; then
26305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
26306 then gcc_cv_as_ix86_pe_secrel32
=yes
26308 elif test x
$gcc_cv_as != x
; then
26312 .secrel32 foo' > conftest.s
26313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26320 if test x
$gcc_cv_ld != x \
26321 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
26322 gcc_cv_as_ix86_pe_secrel32
=yes
26326 echo "configure: failed program was" >&5
26329 rm -f conftest.o conftest.s
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
26333 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
26334 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
26336 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
26340 # Test if the assembler supports the extended form of the .section
26341 # directive that specifies section alignment. LTO support uses this,
26342 # but normally only after installation, so we warn but don't fail the
26343 # configure if LTO is enabled but the assembler does not support it.
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
26345 $as_echo_n "checking assembler for .section with alignment... " >&6; }
26346 if ${gcc_cv_as_section_has_align+:} false
; then :
26347 $as_echo_n "(cached) " >&6
26349 gcc_cv_as_section_has_align
=no
26350 if test $in_tree_gas = yes; then
26351 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
26352 then gcc_cv_as_section_has_align
=yes
26354 elif test x
$gcc_cv_as != x
; then
26355 $as_echo '.section lto_test,"dr0"' > conftest.s
26356 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
26357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26358 (eval $ac_try) 2>&5
26360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26361 test $ac_status = 0; }; }
26363 gcc_cv_as_section_has_align
=yes
26365 echo "configure: failed program was" >&5
26368 rm -f conftest.o conftest.s
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
26372 $as_echo "$gcc_cv_as_section_has_align" >&6; }
26375 if test x
$gcc_cv_as_section_has_align != xyes
; then
26376 case ",$enable_languages," in
26378 { $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
26379 $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;}
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
26387 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
26388 if ${gcc_cv_as_ix86_xbrace_comment+:} false
; then :
26389 $as_echo_n "(cached) " >&6
26391 gcc_cv_as_ix86_xbrace_comment
=no
26392 if test x
$gcc_cv_as != x
; then
26393 $as_echo '.text' > conftest.s
26394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
26395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26396 (eval $ac_try) 2>&5
26398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26399 test $ac_status = 0; }; }
26401 gcc_cv_as_ix86_xbrace_comment
=yes
26403 echo "configure: failed program was" >&5
26406 rm -f conftest.o conftest.s
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
26410 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
26411 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
26413 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
26418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
26419 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
26420 if ${gcc_cv_as_ix86_filds+:} false
; then :
26421 $as_echo_n "(cached) " >&6
26423 gcc_cv_as_ix86_filds
=no
26424 if test x
$gcc_cv_as != x
; then
26425 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
26426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26433 gcc_cv_as_ix86_filds
=yes
26435 echo "configure: failed program was" >&5
26438 rm -f conftest.o conftest.s
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
26442 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
26443 if test $gcc_cv_as_ix86_filds = yes; then
26445 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
26451 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
26452 if ${gcc_cv_as_ix86_fildq+:} false
; then :
26453 $as_echo_n "(cached) " >&6
26455 gcc_cv_as_ix86_fildq
=no
26456 if test x
$gcc_cv_as != x
; then
26457 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
26458 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26460 (eval $ac_try) 2>&5
26462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26463 test $ac_status = 0; }; }
26465 gcc_cv_as_ix86_fildq
=yes
26467 echo "configure: failed program was" >&5
26470 rm -f conftest.o conftest.s
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
26474 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
26475 if test $gcc_cv_as_ix86_fildq = yes; then
26477 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
26483 $as_echo_n "checking assembler for cmov syntax... " >&6; }
26484 if ${gcc_cv_as_ix86_cmov_sun_syntax+:} false
; then :
26485 $as_echo_n "(cached) " >&6
26487 gcc_cv_as_ix86_cmov_sun_syntax
=no
26488 if test x
$gcc_cv_as != x
; then
26489 $as_echo 'cmovl.l %edx, %eax' > conftest.s
26490 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26492 (eval $ac_try) 2>&5
26494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26495 test $ac_status = 0; }; }
26497 gcc_cv_as_ix86_cmov_sun_syntax
=yes
26499 echo "configure: failed program was" >&5
26502 rm -f conftest.o conftest.s
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
26506 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
26507 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
26509 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
26515 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
26516 if ${gcc_cv_as_ix86_ffreep+:} false
; then :
26517 $as_echo_n "(cached) " >&6
26519 gcc_cv_as_ix86_ffreep
=no
26520 if test x
$gcc_cv_as != x
; then
26521 $as_echo 'ffreep %st(1)' > conftest.s
26522 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26524 (eval $ac_try) 2>&5
26526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26527 test $ac_status = 0; }; }
26529 gcc_cv_as_ix86_ffreep
=yes
26531 echo "configure: failed program was" >&5
26534 rm -f conftest.o conftest.s
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26538 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26539 if test $gcc_cv_as_ix86_ffreep = yes; then
26541 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26547 $as_echo_n "checking assembler for .quad directive... " >&6; }
26548 if ${gcc_cv_as_ix86_quad+:} false
; then :
26549 $as_echo_n "(cached) " >&6
26551 gcc_cv_as_ix86_quad
=no
26552 if test x
$gcc_cv_as != x
; then
26553 $as_echo '.quad 0' > conftest.s
26554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556 (eval $ac_try) 2>&5
26558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559 test $ac_status = 0; }; }
26561 gcc_cv_as_ix86_quad
=yes
26563 echo "configure: failed program was" >&5
26566 rm -f conftest.o conftest.s
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26570 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26571 if test $gcc_cv_as_ix86_quad = yes; then
26573 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26579 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26580 if ${gcc_cv_as_ix86_sahf+:} false
; then :
26581 $as_echo_n "(cached) " >&6
26583 gcc_cv_as_ix86_sahf
=no
26584 if test x
$gcc_cv_as != x
; then
26587 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26589 (eval $ac_try) 2>&5
26591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26592 test $ac_status = 0; }; }
26594 gcc_cv_as_ix86_sahf
=yes
26596 echo "configure: failed program was" >&5
26599 rm -f conftest.o conftest.s
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26603 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26604 if test $gcc_cv_as_ix86_sahf = yes; then
26606 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26612 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26613 if ${gcc_cv_as_ix86_interunit_movq+:} false
; then :
26614 $as_echo_n "(cached) " >&6
26616 gcc_cv_as_ix86_interunit_movq
=no
26617 if test x
$gcc_cv_as != x
; then
26620 movq %rax, %xmm0' > conftest.s
26621 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26623 (eval $ac_try) 2>&5
26625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26626 test $ac_status = 0; }; }
26628 gcc_cv_as_ix86_interunit_movq
=yes
26630 echo "configure: failed program was" >&5
26633 rm -f conftest.o conftest.s
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26637 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26641 cat >>confdefs.h
<<_ACEOF
26642 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26647 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26648 if ${gcc_cv_as_ix86_hle+:} false
; then :
26649 $as_echo_n "(cached) " >&6
26651 gcc_cv_as_ix86_hle
=no
26652 if test x
$gcc_cv_as != x
; then
26653 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26654 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26656 (eval $ac_try) 2>&5
26658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26659 test $ac_status = 0; }; }
26661 gcc_cv_as_ix86_hle
=yes
26663 echo "configure: failed program was" >&5
26666 rm -f conftest.o conftest.s
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26670 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26671 if test $gcc_cv_as_ix86_hle = yes; then
26673 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26679 $as_echo_n "checking assembler for swap suffix... " >&6; }
26680 if ${gcc_cv_as_ix86_swap+:} false
; then :
26681 $as_echo_n "(cached) " >&6
26683 gcc_cv_as_ix86_swap
=no
26684 if test x
$gcc_cv_as != x
; then
26685 $as_echo 'movl.s %esp, %ebp' > conftest.s
26686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26688 (eval $ac_try) 2>&5
26690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26691 test $ac_status = 0; }; }
26693 gcc_cv_as_ix86_swap
=yes
26695 echo "configure: failed program was" >&5
26698 rm -f conftest.o conftest.s
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26702 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26703 if test $gcc_cv_as_ix86_swap = yes; then
26705 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26711 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26712 if ${gcc_cv_as_ix86_diff_sect_delta+:} false
; then :
26713 $as_echo_n "(cached) " >&6
26715 gcc_cv_as_ix86_diff_sect_delta
=no
26716 if test x
$gcc_cv_as != x
; then
26717 $as_echo '.section .rodata
26723 .L2: nop' > conftest.s
26724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26731 gcc_cv_as_ix86_diff_sect_delta
=yes
26733 echo "configure: failed program was" >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26740 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26741 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26743 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26749 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26750 if ${gcc_cv_as_ix86_rep_lock_prefix+:} false
; then :
26751 $as_echo_n "(cached) " >&6
26753 gcc_cv_as_ix86_rep_lock_prefix
=no
26754 if test x
$gcc_cv_as != x
; then
26755 $as_echo 'rep movsl
26760 lock addl %edi, (%eax,%esi)
26761 lock orl $0, (%esp)' > conftest.s
26762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26764 (eval $ac_try) 2>&5
26766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26767 test $ac_status = 0; }; }
26769 gcc_cv_as_ix86_rep_lock_prefix
=yes
26771 echo "configure: failed program was" >&5
26774 rm -f conftest.o conftest.s
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26778 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26779 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26781 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26787 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26788 if ${gcc_cv_as_ix86_ud2+:} false
; then :
26789 $as_echo_n "(cached) " >&6
26791 gcc_cv_as_ix86_ud2
=no
26792 if test x
$gcc_cv_as != x
; then
26793 $as_echo 'ud2' > conftest.s
26794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26796 (eval $ac_try) 2>&5
26798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26799 test $ac_status = 0; }; }
26801 gcc_cv_as_ix86_ud2
=yes
26803 echo "configure: failed program was" >&5
26806 rm -f conftest.o conftest.s
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26810 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26811 if test $gcc_cv_as_ix86_ud2 = yes; then
26813 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26818 # Enforce 32-bit output with gas and gld.
26819 if test x
$gas = xyes
; then
26820 as_ix86_gas_32_opt
="--32"
26822 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26823 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26824 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26826 ld_ix86_gld_32_opt
="-melf_i386"
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26831 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26832 if ${gcc_cv_as_ix86_tlsgdplt+:} false
; then :
26833 $as_echo_n "(cached) " >&6
26835 gcc_cv_as_ix86_tlsgdplt
=no
26836 if test x
$gcc_cv_as != x
; then
26837 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26840 (eval $ac_try) 2>&5
26842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26843 test $ac_status = 0; }; }
26845 if test x
$gcc_cv_ld != x \
26846 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26847 gcc_cv_as_ix86_tlsgdplt
=yes
26851 echo "configure: failed program was" >&5
26854 rm -f conftest.o conftest.s
26857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26858 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26859 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26861 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26867 .section .tdata,"aw'$tls_section_flag'",@progbits
26869 .section .text,"ax",@progbits
26870 call tls_ld@tlsldmplt'
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26873 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26874 if ${gcc_cv_as_ix86_tlsldmplt+:} false
; then :
26875 $as_echo_n "(cached) " >&6
26877 gcc_cv_as_ix86_tlsldmplt
=no
26878 if test x
$gcc_cv_as != x
; then
26879 $as_echo "$conftest_s" > conftest.s
26880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26887 if test x
$gcc_cv_ld != x \
26888 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26889 gcc_cv_as_ix86_tlsldmplt
=yes
26893 echo "configure: failed program was" >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26900 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26904 cat >>confdefs.h
<<_ACEOF
26905 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26910 .section .text,"ax",@progbits
26912 .type _start, @function
26914 leal value@tlsldm(%ebx), %eax
26915 call ___tls_get_addr@plt
26917 .section .tdata,"aw'$tls_section_flag'",@progbits
26918 .type value, @object
26920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26921 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26922 if ${gcc_cv_as_ix86_tlsldm+:} false
; then :
26923 $as_echo_n "(cached) " >&6
26925 gcc_cv_as_ix86_tlsldm
=no
26926 if test x
$gcc_cv_as != x
; then
26927 $as_echo "$conftest_s" > conftest.s
26928 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26930 (eval $ac_try) 2>&5
26932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26933 test $ac_status = 0; }; }
26935 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26936 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26937 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26938 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26939 gcc_cv_as_ix86_tlsldm
=yes
26944 echo "configure: failed program was" >&5
26947 rm -f conftest.o conftest.s
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26951 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26955 cat >>confdefs.h
<<_ACEOF
26956 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26970 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26971 if ${gcc_cv_as_ix86_got32x+:} false
; then :
26972 $as_echo_n "(cached) " >&6
26974 gcc_cv_as_ix86_got32x
=no
26975 if test x
$gcc_cv_as != x
; then
26976 $as_echo "$conftest_s" > conftest.s
26977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26979 (eval $ac_try) 2>&5
26981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26982 test $ac_status = 0; }; }
26984 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26985 && test x
$gcc_cv_readelf != x \
26986 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26987 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26988 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26989 if $gcc_cv_objdump -dw conftest
2>&1 \
26990 |
grep 0xffffff > /dev
/null
2>&1; then
26991 gcc_cv_as_ix86_got32x
=no
26993 gcc_cv_as_ix86_got32x
=yes
26998 echo "configure: failed program was" >&5
27001 rm -f conftest.o conftest.s
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
27005 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
27009 cat >>confdefs.h
<<_ACEOF
27010 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
27015 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
27016 if ${gcc_cv_as_ix86_gotoff_in_data+:} false
; then :
27017 $as_echo_n "(cached) " >&6
27019 gcc_cv_as_ix86_gotoff_in_data
=no
27020 if test $in_tree_gas = yes; then
27021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27022 then gcc_cv_as_ix86_gotoff_in_data
=yes
27024 elif test x
$gcc_cv_as != x
; then
27029 .long .L0@GOTOFF' > conftest.s
27030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27032 (eval $ac_try) 2>&5
27034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27035 test $ac_status = 0; }; }
27037 gcc_cv_as_ix86_gotoff_in_data
=yes
27039 echo "configure: failed program was" >&5
27042 rm -f conftest.o conftest.s
27045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
27046 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
27050 cat >>confdefs.h
<<_ACEOF
27051 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
27056 .section .text,"ax",@progbits
27058 .type _start, @function
27060 leal ld@tlsldm(%ecx), %eax
27061 call *___tls_get_addr@GOT(%ecx)
27062 leal gd@tlsgd(%ecx), %eax
27063 call *___tls_get_addr@GOT(%ecx)
27065 .section .tdata,"aw'$tls_section_flag'",@progbits
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
27074 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
27075 if ${gcc_cv_as_ix86_tls_get_addr_via_got+:} false
; then :
27076 $as_echo_n "(cached) " >&6
27078 gcc_cv_as_ix86_tls_get_addr_via_got
=no
27079 if test x
$gcc_cv_as != x
; then
27080 $as_echo "$conftest_s" > conftest.s
27081 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
27082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27083 (eval $ac_try) 2>&5
27085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27086 test $ac_status = 0; }; }
27088 if test x
$gcc_cv_ld != x \
27089 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
27090 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
27094 echo "configure: failed program was" >&5
27097 rm -f conftest.o conftest.s
27100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
27101 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
27105 cat >>confdefs.h
<<_ACEOF
27106 #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`
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
27113 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
27114 if ${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+:} false
; then :
27115 $as_echo_n "(cached) " >&6
27117 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
27118 if test $in_tree_gas = yes; then
27119 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27120 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27122 elif test x
$gcc_cv_as != x
; then
27124 addl r15 = @ltoffx(x#), gp
27126 ld8.mov r16 = [r15], x#
27128 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27130 (eval $ac_try) 2>&5
27132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27133 test $ac_status = 0; }; }
27135 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
27137 echo "configure: failed program was" >&5
27140 rm -f conftest.o conftest.s
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
27144 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
27145 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
27147 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
27159 $as_echo_n "checking assembler for .machine directive support... " >&6; }
27160 if ${gcc_cv_as_machine_directive+:} false
; then :
27161 $as_echo_n "(cached) " >&6
27163 gcc_cv_as_machine_directive
=no
27164 if test x
$gcc_cv_as != x
; then
27165 $as_echo ' .machine ppc7400' > conftest.s
27166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27168 (eval $ac_try) 2>&5
27170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27171 test $ac_status = 0; }; }
27173 gcc_cv_as_machine_directive
=yes
27175 echo "configure: failed program was" >&5
27178 rm -f conftest.o conftest.s
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
27182 $as_echo "$gcc_cv_as_machine_directive" >&6; }
27185 if test x
$gcc_cv_as_machine_directive != xyes
; then
27186 echo "*** This target requires an assembler supporting \".machine\"" >&2
27187 echo you can get it from
: https
://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
27188 test x
$build = x
$target && exit 1
27194 *-*-aix*) conftest_s
=' .machine "pwr5"
27197 *-*-darwin*) conftest_s
=' .text
27199 *) conftest_s
=' .machine power4
27204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
27205 $as_echo_n "checking assembler for mfcr field support... " >&6; }
27206 if ${gcc_cv_as_powerpc_mfcrf+:} false
; then :
27207 $as_echo_n "(cached) " >&6
27209 gcc_cv_as_powerpc_mfcrf
=no
27210 if test $in_tree_gas = yes; then
27211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27212 then gcc_cv_as_powerpc_mfcrf
=yes
27214 elif test x
$gcc_cv_as != x
; then
27215 $as_echo "$conftest_s" > conftest.s
27216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27218 (eval $ac_try) 2>&5
27220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27221 test $ac_status = 0; }; }
27223 gcc_cv_as_powerpc_mfcrf
=yes
27225 echo "configure: failed program was" >&5
27228 rm -f conftest.o conftest.s
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
27232 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
27233 if test $gcc_cv_as_powerpc_mfcrf = yes; then
27235 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
27241 *-*-aix*) conftest_s
=' .csect .text[PR]
27243 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
27247 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
27248 *) conftest_s
=' .text
27250 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
27254 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
27255 if ${gcc_cv_as_powerpc_rel16+:} false
; then :
27256 $as_echo_n "(cached) " >&6
27258 gcc_cv_as_powerpc_rel16
=no
27259 if test $in_tree_gas = yes; then
27260 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
27261 then gcc_cv_as_powerpc_rel16
=yes
27263 elif test x
$gcc_cv_as != x
; then
27264 $as_echo "$conftest_s" > conftest.s
27265 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27267 (eval $ac_try) 2>&5
27269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27270 test $ac_status = 0; }; }
27272 gcc_cv_as_powerpc_rel16
=yes
27274 echo "configure: failed program was" >&5
27277 rm -f conftest.o conftest.s
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
27281 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
27282 if test $gcc_cv_as_powerpc_rel16 = yes; then
27284 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
27290 *-*-aix*) conftest_s
=' .machine "pwr7"
27293 *) conftest_s
=' .machine power7
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
27299 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
27300 if ${gcc_cv_as_powerpc_vsx+:} false
; then :
27301 $as_echo_n "(cached) " >&6
27303 gcc_cv_as_powerpc_vsx
=no
27304 if test $in_tree_gas = yes; then
27305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
27306 then gcc_cv_as_powerpc_vsx
=yes
27308 elif test x
$gcc_cv_as != x
; then
27309 $as_echo "$conftest_s" > conftest.s
27310 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
27311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27312 (eval $ac_try) 2>&5
27314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27315 test $ac_status = 0; }; }
27317 gcc_cv_as_powerpc_vsx
=yes
27319 echo "configure: failed program was" >&5
27322 rm -f conftest.o conftest.s
27325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
27326 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
27327 if test $gcc_cv_as_powerpc_vsx = yes; then
27329 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27335 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27336 if ${gcc_cv_as_powerpc_gnu_attribute+:} false
; then :
27337 $as_echo_n "(cached) " >&6
27339 gcc_cv_as_powerpc_gnu_attribute
=no
27340 if test $in_tree_gas = yes; then
27341 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27342 then gcc_cv_as_powerpc_gnu_attribute
=yes
27344 elif test x
$gcc_cv_as != x
; then
27345 $as_echo '.gnu_attribute 4,1' > conftest.s
27346 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27348 (eval $ac_try) 2>&5
27350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27351 test $ac_status = 0; }; }
27353 gcc_cv_as_powerpc_gnu_attribute
=yes
27355 echo "configure: failed program was" >&5
27358 rm -f conftest.o conftest.s
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
27362 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
27363 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
27365 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
27371 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
27372 if ${gcc_cv_as_powerpc_entry_markers+:} false
; then :
27373 $as_echo_n "(cached) " >&6
27375 gcc_cv_as_powerpc_entry_markers
=no
27376 if test $in_tree_gas = yes; then
27377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27378 then gcc_cv_as_powerpc_entry_markers
=yes
27380 elif test x
$gcc_cv_as != x
; then
27381 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
27382 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
27383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27384 (eval $ac_try) 2>&5
27386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27387 test $ac_status = 0; }; }
27389 gcc_cv_as_powerpc_entry_markers
=yes
27391 echo "configure: failed program was" >&5
27394 rm -f conftest.o conftest.s
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
27398 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
27399 if test $gcc_cv_as_powerpc_entry_markers = yes; then
27401 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for plt sequence marker support" >&5
27407 $as_echo_n "checking assembler for plt sequence marker support... " >&6; }
27408 if ${gcc_cv_as_powerpc_pltseq_markers+:} false
; then :
27409 $as_echo_n "(cached) " >&6
27411 gcc_cv_as_powerpc_pltseq_markers
=no
27412 if test $in_tree_gas = yes; then
27413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
27414 then gcc_cv_as_powerpc_pltseq_markers
=yes
27416 elif test x
$gcc_cv_as != x
; then
27417 $as_echo ' .reloc .,R_PPC_PLTSEQ; nop' > conftest.s
27418 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 --fatal-warnings -o conftest.o conftest.s >&5'
27419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27420 (eval $ac_try) 2>&5
27422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27423 test $ac_status = 0; }; }
27425 gcc_cv_as_powerpc_pltseq_markers
=yes
27427 echo "configure: failed program was" >&5
27430 rm -f conftest.o conftest.s
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_pltseq_markers" >&5
27434 $as_echo "$gcc_cv_as_powerpc_pltseq_markers" >&6; }
27435 if test $gcc_cv_as_powerpc_pltseq_markers = yes; then
27437 $as_echo "#define HAVE_AS_PLTSEQ 1" >>confdefs.h
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
27445 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
27446 if ${gcc_cv_as_aix_ref+:} false
; then :
27447 $as_echo_n "(cached) " >&6
27449 gcc_cv_as_aix_ref
=no
27450 if test $in_tree_gas = yes; then
27451 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27452 then gcc_cv_as_aix_ref
=yes
27454 elif test x
$gcc_cv_as != x
; then
27455 $as_echo ' .csect stuff[rw]
27461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27463 (eval $ac_try) 2>&5
27465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27466 test $ac_status = 0; }; }
27468 gcc_cv_as_aix_ref
=yes
27470 echo "configure: failed program was" >&5
27473 rm -f conftest.o conftest.s
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
27477 $as_echo "$gcc_cv_as_aix_ref" >&6; }
27478 if test $gcc_cv_as_aix_ref = yes; then
27480 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
27486 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
27487 if ${gcc_cv_as_aix_dwloc+:} false
; then :
27488 $as_echo_n "(cached) " >&6
27490 gcc_cv_as_aix_dwloc
=no
27491 if test $in_tree_gas = yes; then
27492 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
27493 then gcc_cv_as_aix_dwloc
=yes
27495 elif test x
$gcc_cv_as != x
; then
27496 $as_echo ' .dwsect 0xA0000
27500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502 (eval $ac_try) 2>&5
27504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505 test $ac_status = 0; }; }
27507 gcc_cv_as_aix_dwloc
=yes
27509 echo "configure: failed program was" >&5
27512 rm -f conftest.o conftest.s
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
27516 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
27517 if test $gcc_cv_as_aix_dwloc = yes; then
27519 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27529 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27530 if ${gcc_cv_as_mips_explicit_relocs+:} false
; then :
27531 $as_echo_n "(cached) " >&6
27533 gcc_cv_as_mips_explicit_relocs
=no
27534 if test $in_tree_gas = yes; then
27535 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27536 then gcc_cv_as_mips_explicit_relocs
=yes
27538 elif test x
$gcc_cv_as != x
; then
27539 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27542 (eval $ac_try) 2>&5
27544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27545 test $ac_status = 0; }; }
27547 gcc_cv_as_mips_explicit_relocs
=yes
27549 echo "configure: failed program was" >&5
27552 rm -f conftest.o conftest.s
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27556 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27557 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27558 if test x
$target_cpu_default = x
27559 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27560 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27566 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27567 if ${gcc_cv_as_mips_no_shared+:} false
; then :
27568 $as_echo_n "(cached) " >&6
27570 gcc_cv_as_mips_no_shared
=no
27571 if test $in_tree_gas = yes; then
27572 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27573 then gcc_cv_as_mips_no_shared
=yes
27575 elif test x
$gcc_cv_as != x
; then
27576 $as_echo 'nop' > conftest.s
27577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27579 (eval $ac_try) 2>&5
27581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582 test $ac_status = 0; }; }
27584 gcc_cv_as_mips_no_shared
=yes
27586 echo "configure: failed program was" >&5
27589 rm -f conftest.o conftest.s
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27593 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27594 if test $gcc_cv_as_mips_no_shared = yes; then
27596 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27602 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27603 if ${gcc_cv_as_mips_gnu_attribute+:} false
; then :
27604 $as_echo_n "(cached) " >&6
27606 gcc_cv_as_mips_gnu_attribute
=no
27607 if test $in_tree_gas = yes; then
27608 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27609 then gcc_cv_as_mips_gnu_attribute
=yes
27611 elif test x
$gcc_cv_as != x
; then
27612 $as_echo '.gnu_attribute 4,1' > conftest.s
27613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27615 (eval $ac_try) 2>&5
27617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27618 test $ac_status = 0; }; }
27620 gcc_cv_as_mips_gnu_attribute
=yes
27622 echo "configure: failed program was" >&5
27625 rm -f conftest.o conftest.s
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27629 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27630 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27632 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27638 $as_echo_n "checking assembler for .module support... " >&6; }
27639 if ${gcc_cv_as_mips_dot_module+:} false
; then :
27640 $as_echo_n "(cached) " >&6
27642 gcc_cv_as_mips_dot_module
=no
27643 if test x
$gcc_cv_as != x
; then
27644 $as_echo '.module mips2
27645 .module fp=xx' > conftest.s
27646 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27648 (eval $ac_try) 2>&5
27650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27651 test $ac_status = 0; }; }
27653 gcc_cv_as_mips_dot_module
=yes
27655 echo "configure: failed program was" >&5
27658 rm -f conftest.o conftest.s
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27662 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27663 if test $gcc_cv_as_mips_dot_module = yes; then
27665 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27669 if test x
$gcc_cv_as_mips_dot_module = xno \
27670 && test x
$with_fp_32 != x
; then
27671 as_fn_error $?
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27675 $as_echo_n "checking assembler for .micromips support... " >&6; }
27676 if ${gcc_cv_as_micromips_support+:} false
; then :
27677 $as_echo_n "(cached) " >&6
27679 gcc_cv_as_micromips_support
=no
27680 if test x
$gcc_cv_as != x
; then
27681 $as_echo '.set micromips' > conftest.s
27682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27684 (eval $ac_try) 2>&5
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; }
27689 gcc_cv_as_micromips_support
=yes
27691 echo "configure: failed program was" >&5
27694 rm -f conftest.o conftest.s
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27698 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27699 if test $gcc_cv_as_micromips_support = yes; then
27701 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27707 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27708 if ${gcc_cv_as_mips_dtprelword+:} false
; then :
27709 $as_echo_n "(cached) " >&6
27711 gcc_cv_as_mips_dtprelword
=no
27712 if test $in_tree_gas = yes; then
27713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27714 then gcc_cv_as_mips_dtprelword
=yes
27716 elif test x
$gcc_cv_as != x
; then
27717 $as_echo '.section .tdata,"awT",@progbits
27721 .dtprelword x+0x8000' > conftest.s
27722 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27724 (eval $ac_try) 2>&5
27726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27727 test $ac_status = 0; }; }
27729 gcc_cv_as_mips_dtprelword
=yes
27731 echo "configure: failed program was" >&5
27734 rm -f conftest.o conftest.s
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27738 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27739 if test $gcc_cv_as_mips_dtprelword = yes; then
27741 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27747 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27748 if ${gcc_cv_as_mips_dspr1_mult+:} false
; then :
27749 $as_echo_n "(cached) " >&6
27751 gcc_cv_as_mips_dspr1_mult
=no
27752 if test x
$gcc_cv_as != x
; then
27753 $as_echo ' .set mips32r2
27761 multu $ac3,$4,$5' > conftest.s
27762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27764 (eval $ac_try) 2>&5
27766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27767 test $ac_status = 0; }; }
27769 gcc_cv_as_mips_dspr1_mult
=yes
27771 echo "configure: failed program was" >&5
27774 rm -f conftest.o conftest.s
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27778 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27779 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27781 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27787 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27788 gcc_cv_as_ld_jalr_reloc
=no
27789 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27790 if test $in_tree_ld = yes ; then
27791 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 \
27792 && test $in_tree_ld_is_elf = yes; then
27793 gcc_cv_as_ld_jalr_reloc
=yes
27795 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27796 echo ' .ent x' > conftest.s
27797 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27798 echo ' lw $25,%call16(y)($28)' >> conftest.s
27799 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27800 echo '1: jalr $25' >> conftest.s
27801 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27802 echo '1: jalr $25' >> conftest.s
27803 echo ' .end x' >> conftest.s
27804 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27805 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27806 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27807 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27808 gcc_cv_as_ld_jalr_reloc
=yes
27814 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27815 if test x
$target_cpu_default = x
; then
27816 target_cpu_default
=MASK_RELAX_PIC_CALLS
27818 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27822 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27825 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27826 if ${gcc_cv_ld_mips_personality_relaxation+:} false
; then :
27827 $as_echo_n "(cached) " >&6
27829 gcc_cv_ld_mips_personality_relaxation
=no
27830 if test $in_tree_ld = yes ; then
27831 if test "$gcc_cv_gld_major_version" -eq 2 \
27832 -a "$gcc_cv_gld_minor_version" -ge 21 \
27833 -o "$gcc_cv_gld_major_version" -gt 2; then
27834 gcc_cv_ld_mips_personality_relaxation
=yes
27836 elif test x
$gcc_cv_as != x \
27837 -a x
$gcc_cv_ld != x \
27838 -a x
$gcc_cv_readelf != x
; then
27839 cat > conftest.s
<<EOF
27841 .cfi_personality 0x80,indirect_ptr
27848 .section .data,"aw",@progbits
27852 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27853 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27854 if $gcc_cv_readelf -d conftest
2>&1 \
27855 |
grep TEXTREL
> /dev
/null
2>&1; then
27857 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27858 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27861 gcc_cv_ld_mips_personality_relaxation
=yes
27865 rm -f conftest.s conftest.o conftest
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27868 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27869 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27871 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27876 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27877 if ${gcc_cv_as_mips_nan+:} false
; then :
27878 $as_echo_n "(cached) " >&6
27880 gcc_cv_as_mips_nan
=no
27881 if test x
$gcc_cv_as != x
; then
27882 $as_echo '' > conftest.s
27883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27885 (eval $ac_try) 2>&5
27887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27888 test $ac_status = 0; }; }
27890 gcc_cv_as_mips_nan
=yes
27892 echo "configure: failed program was" >&5
27895 rm -f conftest.o conftest.s
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27899 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27900 if test $gcc_cv_as_mips_nan = yes; then
27902 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27906 if test x
$gcc_cv_as_mips_nan = xno \
27907 && test x
$with_nan != x
; then
27908 as_fn_error $?
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27912 # Earlier GAS versions generically support .gnu_attribute, but the
27913 # msp430 assembler will not do anything with it.
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27915 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27916 if ${gcc_cv_as_msp430_gnu_attribute+:} false
; then :
27917 $as_echo_n "(cached) " >&6
27919 gcc_cv_as_msp430_gnu_attribute
=no
27920 if test $in_tree_gas = yes; then
27921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27922 then gcc_cv_as_msp430_gnu_attribute
=yes
27924 elif test x
$gcc_cv_as != x
; then
27925 $as_echo '.gnu_attribute 4,1' > conftest.s
27926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27928 (eval $ac_try) 2>&5
27930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; }
27933 gcc_cv_as_msp430_gnu_attribute
=yes
27935 echo "configure: failed program was" >&5
27938 rm -f conftest.o conftest.s
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_gnu_attribute" >&5
27942 $as_echo "$gcc_cv_as_msp430_gnu_attribute" >&6; }
27943 if test $gcc_cv_as_msp430_gnu_attribute = yes; then
27945 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .mspabi_attribute support" >&5
27950 $as_echo_n "checking assembler for .mspabi_attribute support... " >&6; }
27951 if ${gcc_cv_as_msp430_mspabi_attribute+:} false
; then :
27952 $as_echo_n "(cached) " >&6
27954 gcc_cv_as_msp430_mspabi_attribute
=no
27955 if test $in_tree_gas = yes; then
27956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 33 \) \* 1000 + 50`
27957 then gcc_cv_as_msp430_mspabi_attribute
=yes
27959 elif test x
$gcc_cv_as != x
; then
27960 $as_echo '.mspabi_attribute 4,1' > conftest.s
27961 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27963 (eval $ac_try) 2>&5
27965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27966 test $ac_status = 0; }; }
27968 gcc_cv_as_msp430_mspabi_attribute
=yes
27970 echo "configure: failed program was" >&5
27973 rm -f conftest.o conftest.s
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_msp430_mspabi_attribute" >&5
27977 $as_echo "$gcc_cv_as_msp430_mspabi_attribute" >&6; }
27978 if test $gcc_cv_as_msp430_mspabi_attribute = yes; then
27980 $as_echo "#define HAVE_AS_MSPABI_ATTRIBUTE 1" >>confdefs.h
27984 if test x
$enable_newlib_nano_formatted_io = xyes
; then
27986 $as_echo "#define HAVE_NEWLIB_NANO_FORMATTED_IO 1" >>confdefs.h
27991 # Versions 2.33 and earlier lacked support for the %gotoff relocation
27992 # syntax that is documented in the ABI specification.
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for support for %gotoff relocations in constant data" >&5
27994 $as_echo_n "checking assembler for support for %gotoff relocations in constant data... " >&6; }
27995 if ${gcc_cv_as_nios2_gotoff_relocation+:} false
; then :
27996 $as_echo_n "(cached) " >&6
27998 gcc_cv_as_nios2_gotoff_relocation
=no
27999 if test x
$gcc_cv_as != x
; then
28000 $as_echo ' .extern foo
28002 .long %gotoff(foo)' > conftest.s
28003 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28005 (eval $ac_try) 2>&5
28007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28008 test $ac_status = 0; }; }
28010 gcc_cv_as_nios2_gotoff_relocation
=yes
28012 echo "configure: failed program was" >&5
28015 rm -f conftest.o conftest.s
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nios2_gotoff_relocation" >&5
28019 $as_echo "$gcc_cv_as_nios2_gotoff_relocation" >&6; }
28020 if test $gcc_cv_as_nios2_gotoff_relocation = yes; then
28022 $as_echo "#define HAVE_AS_NIOS2_GOTOFF_RELOCATION 1" >>confdefs.h
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .attribute support" >&5
28029 $as_echo_n "checking assembler for .attribute support... " >&6; }
28030 if ${gcc_cv_as_riscv_attribute+:} false
; then :
28031 $as_echo_n "(cached) " >&6
28033 gcc_cv_as_riscv_attribute
=no
28034 if test $in_tree_gas = yes; then
28035 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 32 \) \* 1000 + 0`
28036 then gcc_cv_as_riscv_attribute
=yes
28038 elif test x
$gcc_cv_as != x
; then
28039 $as_echo '.attribute stack_align,4' > conftest.s
28040 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28042 (eval $ac_try) 2>&5
28044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28045 test $ac_status = 0; }; }
28047 gcc_cv_as_riscv_attribute
=yes
28049 echo "configure: failed program was" >&5
28052 rm -f conftest.o conftest.s
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_riscv_attribute" >&5
28056 $as_echo "$gcc_cv_as_riscv_attribute" >&6; }
28057 if test $gcc_cv_as_riscv_attribute = yes; then
28059 $as_echo "#define HAVE_AS_RISCV_ATTRIBUTE 1" >>confdefs.h
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
28066 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
28067 if ${gcc_cv_as_s390_gnu_attribute+:} false
; then :
28068 $as_echo_n "(cached) " >&6
28070 gcc_cv_as_s390_gnu_attribute
=no
28071 if test $in_tree_gas = yes; then
28072 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28073 then gcc_cv_as_s390_gnu_attribute
=yes
28075 elif test x
$gcc_cv_as != x
; then
28076 $as_echo '.gnu_attribute 8,1' > conftest.s
28077 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28079 (eval $ac_try) 2>&5
28081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28082 test $ac_status = 0; }; }
28084 gcc_cv_as_s390_gnu_attribute
=yes
28086 echo "configure: failed program was" >&5
28089 rm -f conftest.o conftest.s
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
28093 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
28094 if test $gcc_cv_as_s390_gnu_attribute = yes; then
28096 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
28101 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
28102 if ${gcc_cv_as_s390_machine_machinemode+:} false
; then :
28103 $as_echo_n "(cached) " >&6
28105 gcc_cv_as_s390_machine_machinemode
=no
28106 if test $in_tree_gas = yes; then
28107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
28108 then gcc_cv_as_s390_machine_machinemode
=yes
28110 elif test x
$gcc_cv_as != x
; then
28111 $as_echo ' .machinemode push
28114 .machine pop' > conftest.s
28115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28117 (eval $ac_try) 2>&5
28119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28120 test $ac_status = 0; }; }
28122 gcc_cv_as_s390_machine_machinemode
=yes
28124 echo "configure: failed program was" >&5
28127 rm -f conftest.o conftest.s
28130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
28131 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
28132 if test $gcc_cv_as_s390_machine_machinemode = yes; then
28134 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
28139 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
28140 if ${gcc_cv_as_s390_architecture_modifiers+:} false
; then :
28141 $as_echo_n "(cached) " >&6
28143 gcc_cv_as_s390_architecture_modifiers
=no
28144 if test $in_tree_gas = yes; then
28145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
28146 then gcc_cv_as_s390_architecture_modifiers
=yes
28148 elif test x
$gcc_cv_as != x
; then
28149 $as_echo ' .machine z13+vx ' > conftest.s
28150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28152 (eval $ac_try) 2>&5
28154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28155 test $ac_status = 0; }; }
28157 gcc_cv_as_s390_architecture_modifiers
=yes
28159 echo "configure: failed program was" >&5
28162 rm -f conftest.o conftest.s
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
28166 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
28167 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
28169 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector load/store alignment hints" >&5
28174 $as_echo_n "checking assembler for vector load/store alignment hints... " >&6; }
28175 if ${gcc_cv_as_s390_vector_loadstore_alignment_hints+:} false
; then :
28176 $as_echo_n "(cached) " >&6
28178 gcc_cv_as_s390_vector_loadstore_alignment_hints
=no
28179 if test $in_tree_gas = yes; then
28180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 31 \) \* 1000 + 0`
28181 then gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28183 elif test x
$gcc_cv_as != x
; then
28184 $as_echo ' vl %v24,0(%r15),3 ' > conftest.s
28185 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28187 (eval $ac_try) 2>&5
28189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28190 test $ac_status = 0; }; }
28192 gcc_cv_as_s390_vector_loadstore_alignment_hints
=yes
28194 echo "configure: failed program was" >&5
28197 rm -f conftest.o conftest.s
28200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_vector_loadstore_alignment_hints" >&5
28201 $as_echo "$gcc_cv_as_s390_vector_loadstore_alignment_hints" >&6; }
28202 if test $gcc_cv_as_s390_vector_loadstore_alignment_hints = yes; then
28204 $as_echo "#define HAVE_AS_VECTOR_LOADSTORE_ALIGNMENT_HINTS 1" >>confdefs.h
28212 # Mips and HP-UX need the GNU assembler.
28213 # Linux on IA64 might be able to use the Intel assembler.
28216 mips
*-*-* |
*-*-hpux* )
28217 if test x
$gas_flag = xyes \
28218 ||
test x
"$host" != x
"$build" \
28219 ||
test ! -x "$gcc_cv_as" \
28220 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
28223 echo "*** This configuration requires the GNU assembler" >&2
28229 # ??? Not all targets support dwarf2 debug_line, even within a version
28230 # of gas. Moreover, we need to emit a valid instruction to trigger any
28231 # info to the output file. So, as supported targets are added to gas 2.11,
28232 # add some instruction here to (also) show we expect this might work.
28233 # ??? Once 2.11 is released, probably need to add first known working
28234 # version to the per-target configury.
28235 case "$cpu_type" in
28236 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
28237 | microblaze | mips | nds32 | nios2 | pa | riscv | rs6000 | score | sparc \
28238 | tilegx | tilepro | visium | xstormy16 | xtensa
)
28248 if test x
"$insn" != x
; then
28250 .file 1 \"conftest.s\"
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
28254 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
28255 if ${gcc_cv_as_dwarf2_debug_line+:} false
; then :
28256 $as_echo_n "(cached) " >&6
28258 gcc_cv_as_dwarf2_debug_line
=no
28259 if test $in_tree_gas = yes; then
28260 if test $in_tree_gas_is_elf = yes \
28261 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28262 then gcc_cv_as_dwarf2_debug_line
=yes
28264 elif test x
$gcc_cv_as != x
; then
28265 $as_echo "$conftest_s" > conftest.s
28266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28268 (eval $ac_try) 2>&5
28270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28271 test $ac_status = 0; }; }
28273 if test x
$gcc_cv_objdump != x \
28274 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
28275 |
grep debug_line
> /dev
/null
2>&1; then
28276 gcc_cv_as_dwarf2_debug_line
=yes
28277 elif test x
$gcc_cv_otool != x \
28278 && $gcc_cv_otool -l conftest.o
2> /dev
/null \
28279 |
grep debug_line
> /dev
/null
2>&1; then
28280 gcc_cv_as_dwarf2_debug_line
=yes
28283 echo "configure: failed program was" >&5
28286 rm -f conftest.o conftest.s
28289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
28290 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
28294 # The .debug_line file table must be in the exact order that
28295 # we specified the files, since these indices are also used
28296 # by DW_AT_decl_file. Approximate this test by testing if
28297 # the assembler bitches if the same index is assigned twice.
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
28299 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
28300 if ${gcc_cv_as_dwarf2_file_buggy+:} false
; then :
28301 $as_echo_n "(cached) " >&6
28303 gcc_cv_as_dwarf2_file_buggy
=no
28304 if test x
$gcc_cv_as != x
; then
28305 $as_echo ' .file 1 "foo.s"
28306 .file 1 "bar.s"' > conftest.s
28307 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28309 (eval $ac_try) 2>&5
28311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28312 test $ac_status = 0; }; }
28314 gcc_cv_as_dwarf2_file_buggy
=yes
28316 echo "configure: failed program was" >&5
28319 rm -f conftest.o conftest.s
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
28323 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
28327 if test $gcc_cv_as_dwarf2_debug_line = yes \
28328 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
28330 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
28333 if test $gcc_cv_as_leb128 = yes; then
28335 .file 1 \"conftest.s\"
28336 .loc 1 3 0 view .LVU1
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
28343 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
28344 if ${gcc_cv_as_dwarf2_debug_view+:} false
; then :
28345 $as_echo_n "(cached) " >&6
28347 gcc_cv_as_dwarf2_debug_view
=no
28348 if test $in_tree_gas = yes; then
28349 if test $in_tree_gas_is_elf = yes \
28350 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
28351 then gcc_cv_as_dwarf2_debug_view
=yes
28353 elif test x
$gcc_cv_as != x
; then
28354 $as_echo "$conftest_s" > conftest.s
28355 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28357 (eval $ac_try) 2>&5
28359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28360 test $ac_status = 0; }; }
28362 gcc_cv_as_dwarf2_debug_view
=yes
28364 echo "configure: failed program was" >&5
28367 rm -f conftest.o conftest.s
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
28371 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
28372 if test $gcc_cv_as_dwarf2_debug_view = yes; then
28374 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
28382 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
28383 if ${gcc_cv_as_gdwarf2_flag+:} false
; then :
28384 $as_echo_n "(cached) " >&6
28386 gcc_cv_as_gdwarf2_flag
=no
28387 if test $in_tree_gas = yes; then
28388 if test $in_tree_gas_is_elf = yes \
28389 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28390 then gcc_cv_as_gdwarf2_flag
=yes
28392 elif test x
$gcc_cv_as != x
; then
28393 $as_echo "$insn" > conftest.s
28394 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
28395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28396 (eval $ac_try) 2>&5
28398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28399 test $ac_status = 0; }; }
28401 gcc_cv_as_gdwarf2_flag
=yes
28403 echo "configure: failed program was" >&5
28406 rm -f conftest.o conftest.s
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
28410 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
28411 if test $gcc_cv_as_gdwarf2_flag = yes; then
28413 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
28419 $as_echo_n "checking assembler for --gstabs option... " >&6; }
28420 if ${gcc_cv_as_gstabs_flag+:} false
; then :
28421 $as_echo_n "(cached) " >&6
28423 gcc_cv_as_gstabs_flag
=no
28424 if test $in_tree_gas = yes; then
28425 if test $in_tree_gas_is_elf = yes \
28426 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
28427 then gcc_cv_as_gstabs_flag
=yes
28429 elif test x
$gcc_cv_as != x
; then
28430 $as_echo "$insn" > conftest.s
28431 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
28432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28433 (eval $ac_try) 2>&5
28435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28436 test $ac_status = 0; }; }
28438 gcc_cv_as_gstabs_flag
=yes
28440 echo "configure: failed program was" >&5
28443 rm -f conftest.o conftest.s
28446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
28447 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
28448 if test $gcc_cv_as_gstabs_flag = yes; then
28450 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
28455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
28456 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
28457 if ${gcc_cv_as_debug_prefix_map_flag+:} false
; then :
28458 $as_echo_n "(cached) " >&6
28460 gcc_cv_as_debug_prefix_map_flag
=no
28461 if test $in_tree_gas = yes; then
28462 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
28463 then gcc_cv_as_debug_prefix_map_flag
=yes
28465 elif test x
$gcc_cv_as != x
; then
28466 $as_echo "$insn" > conftest.s
28467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
28468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28469 (eval $ac_try) 2>&5
28471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28472 test $ac_status = 0; }; }
28474 gcc_cv_as_debug_prefix_map_flag
=yes
28476 echo "configure: failed program was" >&5
28479 rm -f conftest.o conftest.s
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
28483 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
28484 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
28486 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
28493 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
28494 if ${gcc_cv_as_compress_debug+:} false
; then :
28495 $as_echo_n "(cached) " >&6
28497 gcc_cv_as_compress_debug
=no
28498 if test x
$gcc_cv_as != x
; then
28499 $as_echo '' > conftest.s
28500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28502 (eval $ac_try) 2>&5
28504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28505 test $ac_status = 0; }; }
28507 # gas compiled without zlib cannot compress debug sections and warns
28508 # about it, but still exits successfully. So check for this, too.
28509 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
28511 gcc_cv_as_compress_debug
=0
28512 # Since binutils 2.26, gas supports --compress-debug-sections=type,
28513 # defaulting to the ELF gABI format.
28514 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
28516 gcc_cv_as_compress_debug
=2
28517 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28518 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28519 # Before binutils 2.26, gas only supported --compress-debug-options and
28520 # emitted the traditional GNU format.
28521 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
28523 gcc_cv_as_compress_debug
=1
28524 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
28525 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
28527 gcc_cv_as_compress_debug
=0
28530 echo "configure: failed program was" >&5
28533 rm -f conftest.o conftest.s
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
28537 $as_echo "$gcc_cv_as_compress_debug" >&6; }
28541 cat >>confdefs.h
<<_ACEOF
28542 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
28546 cat >>confdefs.h
<<_ACEOF
28547 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
28551 cat >>confdefs.h
<<_ACEOF
28552 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
28556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
28557 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
28558 if ${gcc_cv_as_lcomm_with_alignment+:} false
; then :
28559 $as_echo_n "(cached) " >&6
28561 gcc_cv_as_lcomm_with_alignment
=no
28562 if test x
$gcc_cv_as != x
; then
28563 $as_echo '.lcomm bar,4,16' > conftest.s
28564 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28566 (eval $ac_try) 2>&5
28568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28569 test $ac_status = 0; }; }
28571 gcc_cv_as_lcomm_with_alignment
=yes
28573 echo "configure: failed program was" >&5
28576 rm -f conftest.o conftest.s
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
28580 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
28581 if test $gcc_cv_as_lcomm_with_alignment = yes; then
28583 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
28588 if test x
$with_sysroot = x
&& test x
$host = x
$target \
28589 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
28590 && test "$prefix" != "NONE"; then
28592 cat >>confdefs.h
<<_ACEOF
28593 #define PREFIX_INCLUDE_DIR "$prefix/include"
28598 # Determine the version of glibc, if any, used on the target.
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
28600 $as_echo_n "checking for target glibc version... " >&6; }
28602 # Check whether --with-glibc-version was given.
28603 if test "${with_glibc_version+set}" = set; then :
28604 withval
=$with_glibc_version;
28605 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
28606 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
28607 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
28609 as_fn_error $?
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
28613 glibc_version_major
=0
28614 glibc_version_minor
=0
28615 if test -f $target_header_dir/features.h \
28616 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
28617 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
28618 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
28619 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
28624 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
28626 cat >>confdefs.h
<<_ACEOF
28627 #define TARGET_GLIBC_MAJOR $glibc_version_major
28631 cat >>confdefs.h
<<_ACEOF
28632 #define TARGET_GLIBC_MINOR $glibc_version_minor
28636 # Check whether --enable-gnu-unique-object was given.
28637 if test "${enable_gnu_unique_object+set}" = set; then :
28638 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
28640 *) as_fn_error $?
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
28641 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
28645 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
28646 if ${gcc_cv_as_gnu_unique_object+:} false
; then :
28647 $as_echo_n "(cached) " >&6
28649 gcc_cv_as_gnu_unique_object
=no
28650 if test $in_tree_gas = yes; then
28651 if test $in_tree_gas_is_elf = yes \
28652 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
28653 then gcc_cv_as_gnu_unique_object
=yes
28655 elif test x
$gcc_cv_as != x
; then
28656 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
28657 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
28658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28659 (eval $ac_try) 2>&5
28661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28662 test $ac_status = 0; }; }
28664 gcc_cv_as_gnu_unique_object
=yes
28666 echo "configure: failed program was" >&5
28669 rm -f conftest.o conftest.s
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
28673 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
28674 if test $gcc_cv_as_gnu_unique_object = yes; then
28675 # We need to unquote above to to use the definition from config.gcc.
28676 # Also check for ld.so support, i.e. glibc 2.11 or higher.
28678 if test $glibc_version_major -gt 2 \
28679 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
28680 enable_gnu_unique_object
=yes
28687 if test x
$enable_gnu_unique_object = xyes
; then
28689 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
28694 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
28695 if ${gcc_cv_as_line_zero+:} false
; then :
28696 $as_echo_n "(cached) " >&6
28698 gcc_cv_as_line_zero
=no
28699 if test $in_tree_gas = yes; then
28700 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
28701 then gcc_cv_as_line_zero
=yes
28703 elif test "x$gcc_cv_as" != x
; then
28704 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
28705 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
28706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28707 (eval $ac_try) 2>&5
28709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28710 test $ac_status = 0; }; } &&
28711 test "x`cat conftest.out`" = x
28713 gcc_cv_as_line_zero
=yes
28715 echo "configure: failed program was" >&5
28717 echo "configure: error output was" >&5
28718 cat conftest.out
>&5
28720 rm -f conftest.o conftest.s conftest.out
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28724 $as_echo "$gcc_cv_as_line_zero" >&6; }
28725 if test "x$gcc_cv_as_line_zero" = xyes
; then
28727 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28732 $as_echo_n "checking support for thin archives... " >&6; }
28733 thin_archive_support
=no
28734 echo 'int main (void) { return 0; }' > conftest.c
28735 if ($AR --version |
sed 1q |
grep "GNU ar" \
28736 && $CC $CFLAGS -c conftest.c \
28737 && $AR rcT conftest.a conftest.o \
28738 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28739 thin_archive_support
=yes
28741 rm -f conftest.c conftest.o conftest.a conftest
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28743 $as_echo "$thin_archive_support" >&6; }
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28747 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28748 gcc_cv_ld_eh_frame_hdr
=no
28749 if test $in_tree_ld = yes ; then
28750 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 \
28751 && test $in_tree_ld_is_elf = yes; then
28752 gcc_cv_ld_eh_frame_hdr
=yes
28754 elif test x
$gcc_cv_ld != x
; then
28755 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28756 # Check if linker supports --eh-frame-hdr option
28757 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28758 gcc_cv_ld_eh_frame_hdr
=yes
28763 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28764 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28765 gcc_cv_ld_eh_frame_hdr
=yes
28772 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28774 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28778 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28781 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28782 gcc_cv_ld_eh_frame_ciev3
=no
28783 if test $in_tree_ld = yes ; then
28784 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 \
28785 && test $in_tree_ld_is_elf = yes; then
28786 gcc_cv_ld_eh_frame_ciev3
=yes
28788 elif test x
$gcc_cv_ld != x
; then
28789 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28790 gcc_cv_ld_eh_frame_ciev3
=yes
28791 if test 0"$ld_date" -lt 20040513; then
28792 if test -n "$ld_date"; then
28793 # If there was date string, but was earlier than 2004-05-13, fail
28794 gcc_cv_ld_eh_frame_ciev3
=no
28795 elif test "$ld_vers_major" -lt 2; then
28796 gcc_cv_ld_eh_frame_ciev3
=no
28797 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28798 gcc_cv_ld_eh_frame_ciev3
=no
28804 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28805 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28806 gcc_cv_ld_eh_frame_ciev3
=yes
28813 cat >>confdefs.h
<<_ACEOF
28814 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28818 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28821 $as_echo_n "checking linker position independent executable support... " >&6; }
28823 if test $in_tree_ld = yes ; then
28825 # Full PIE support on Solaris was only introduced in gld 2.26.
28826 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28827 *) gcc_gld_pie_min_version
=15 ;;
28829 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 \
28830 && test $in_tree_ld_is_elf = yes; then
28833 elif test x
$gcc_cv_ld != x
; then
28834 # Check if linker supports -pie option
28835 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28839 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28840 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28847 *-*-solaris2.1
[1-9]*)
28848 # Solaris 11.3 added PIE support.
28849 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28856 if test x
"$gcc_cv_ld_pie" = xyes
; then
28858 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28862 $as_echo "$gcc_cv_ld_pie" >&6; }
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28865 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28866 gcc_cv_ld_pie_copyreloc
=no
28867 if test $gcc_cv_ld_pie = yes ; then
28868 if test $in_tree_ld = yes ; then
28869 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
28870 gcc_cv_ld_pie_copyreloc
=yes
28872 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28873 # Check if linker supports -pie option with copy reloc
28875 i?
86-*-linux* | x86_64-
*-linux*)
28876 cat > conftest1.s
<<EOF
28879 .type a_glob, @object
28884 cat > conftest2.s
<<EOF
28887 .type main, @function
28889 movl %eax, a_glob(%rip)
28892 .section .data.rel,"aw",@progbits
28897 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28898 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28899 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28900 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28901 gcc_cv_ld_pie_copyreloc
=yes
28903 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28909 cat >>confdefs.h
<<_ACEOF
28910 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28914 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28917 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28918 gcc_cv_ld_eh_gc_sections
=no
28919 if test $in_tree_ld = yes ; then
28920 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 \
28921 && test $in_tree_ld_is_elf = yes; then
28922 gcc_cv_ld_eh_gc_sections
=yes
28924 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28925 cat > conftest.s
<<EOF
28928 .type _start, @function
28931 .size _start, .-_start
28932 .section .text.foo,"ax",@progbits
28933 .type foo, @function
28937 .section .gcc_except_table.foo,"a",@progbits
28940 .section .eh_frame,"a",@progbits
28943 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28944 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28945 |
grep "gc-sections option ignored" > /dev
/null
; then
28946 gcc_cv_ld_eh_gc_sections
=no
28947 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28948 |
grep gcc_except_table
> /dev
/null
; then
28949 gcc_cv_ld_eh_gc_sections
=yes
28950 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28951 if test x
$gcc_cv_as_comdat_group != xyes
; then
28952 gcc_cv_ld_eh_gc_sections
=no
28953 cat > conftest.s
<<EOF
28956 .type _start, @function
28959 .size _start, .-_start
28960 .section .gnu.linkonce.t.foo,"ax",@progbits
28961 .type foo, @function
28965 .section .gcc_except_table.foo,"a",@progbits
28968 .section .eh_frame,"a",@progbits
28971 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28972 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28973 |
grep "gc-sections option ignored" > /dev
/null
; then
28974 gcc_cv_ld_eh_gc_sections
=no
28975 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28976 |
grep gcc_except_table
> /dev
/null
; then
28977 gcc_cv_ld_eh_gc_sections
=yes
28983 rm -f conftest.s conftest.o conftest
28987 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28988 gcc_cv_ld_eh_gc_sections
=no
28991 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28993 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28997 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
29000 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
29001 gcc_cv_ld_eh_gc_sections_bug
=no
29002 if test $in_tree_ld = yes ; then
29003 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 \
29004 && test $in_tree_ld_is_elf = yes; then
29005 gcc_cv_ld_eh_gc_sections_bug
=yes
29007 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
29008 gcc_cv_ld_eh_gc_sections_bug
=yes
29009 cat > conftest.s
<<EOF
29012 .type _start, @function
29015 .size _start, .-_start
29016 .section .text.startup.foo,"ax",@progbits
29017 .type foo, @function
29021 .section .gcc_except_table.foo,"a",@progbits
29024 .section .eh_frame,"a",@progbits
29027 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
29028 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
29029 |
grep "gc-sections option ignored" > /dev
/null
; then
29031 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
29032 |
grep gcc_except_table
> /dev
/null
; then
29033 gcc_cv_ld_eh_gc_sections_bug
=no
29036 rm -f conftest.s conftest.o conftest
29038 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
29040 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
29044 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
29046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
29047 $as_echo_n "checking linker for compressed debug sections... " >&6; }
29048 # gold/gld support compressed debug sections since binutils 2.19/2.21
29049 # In binutils 2.26, gld gained support for the ELF gABI format.
29050 if test $in_tree_ld = yes ; then
29051 gcc_cv_ld_compress_debug
=0
29052 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 \
29053 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
29054 gcc_cv_ld_compress_debug
=2
29055 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29056 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 \
29057 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
29058 gcc_cv_ld_compress_debug
=3
29059 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29060 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 \
29061 && test $in_tree_ld_is_elf = yes; then
29062 gcc_cv_ld_compress_debug
=1
29064 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29065 if test "$ld_vers_major" -lt 2 \
29066 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
29067 gcc_cv_ld_compress_debug
=0
29068 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
29069 gcc_cv_ld_compress_debug
=1
29071 gcc_cv_ld_compress_debug
=3
29072 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29074 if test $ld_is_gold = yes; then
29075 gcc_cv_ld_compress_debug
=2
29076 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
29079 case "${target}" in
29081 # Introduced in Solaris 11.2.
29082 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
29083 gcc_cv_ld_compress_debug
=3
29084 gcc_cv_ld_compress_debug_option
="-z compress-sections"
29086 gcc_cv_ld_compress_debug
=0
29090 # Assume linkers other than GNU ld don't support compessed debug
29092 gcc_cv_ld_compress_debug
=0
29097 cat >>confdefs.h
<<_ACEOF
29098 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
29102 cat >>confdefs.h
<<_ACEOF
29103 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
29107 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
29109 if test x
"$ld64_flag" = x
"yes"; then
29111 # Set defaults for possibly untestable items.
29112 gcc_cv_ld64_export_dynamic
=0
29114 if test "$build" = "$host"; then
29120 # On Darwin, because of FAT library support, it is often possible to execute
29121 # exes from compatible archs even when the host differs from the build system.
29122 case "$build","$host" in
29123 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
29124 darwin_try_test
=1;;
29128 # If the configurer specified a minimum ld64 version to be supported, then use
29129 # that to determine feature support.
29130 if test x
"${gcc_cv_ld64_version}" != x
; then
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
29132 $as_echo_n "checking ld64 specified version... " >&6; }
29133 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
29135 $as_echo "$gcc_cv_ld64_major" >&6; }
29136 if test "$gcc_cv_ld64_major" -ge 236; then
29137 gcc_cv_ld64_export_dynamic
=1
29139 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
29140 # If the version was not specified, try to find it.
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
29142 $as_echo_n "checking linker version... " >&6; }
29143 if test x
"${gcc_cv_ld64_version}" = x
; then
29144 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
29147 $as_echo "$gcc_cv_ld64_version" >&6; }
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
29150 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
29151 gcc_cv_ld64_export_dynamic
=1
29152 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
29153 gcc_cv_ld64_export_dynamic
=0
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
29156 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
29159 if test x
"${gcc_cv_ld64_version}" != x
; then
29161 cat >>confdefs.h
<<_ACEOF
29162 #define LD64_VERSION "${gcc_cv_ld64_version}"
29168 cat >>confdefs.h
<<_ACEOF
29169 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
29179 $as_echo_n "checking linker --as-needed support... " >&6; }
29180 if ${gcc_cv_ld_as_needed+:} false
; then :
29181 $as_echo_n "(cached) " >&6
29183 gcc_cv_ld_as_needed
=no
29184 gcc_cv_ld_as_needed_option
='--as-needed'
29185 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
29186 if test $in_tree_ld = yes ; then
29187 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 \
29188 && test $in_tree_ld_is_elf = yes; then
29189 gcc_cv_ld_as_needed
=yes
29190 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
29191 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29192 gcc_cv_ld_no_as_needed_option
='--pop-state'
29195 elif test x
$gcc_cv_ld != x
; then
29196 # Check if linker supports --as-needed and --no-as-needed options
29197 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
29198 gcc_cv_ld_as_needed
=yes
29199 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
29200 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
29201 && echo "$ld_ver" |
grep GNU
> /dev
/null \
29202 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
29203 # Use these options only when both ld.bfd and ld.gold support
29204 # --push-state/--pop-state, which unfortunately wasn't added
29205 # at the same time.
29206 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
29207 gcc_cv_ld_no_as_needed_option
='--pop-state'
29210 case "$target:$gnu_ld" in
29212 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
29214 gcc_cv_ld_as_needed
=yes
29215 gcc_cv_ld_as_needed_option
="-z ignore"
29216 gcc_cv_ld_no_as_needed_option
="-z record"
29220 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
29221 # dl_iterate_phdr, i.e. since Solaris 11.
29223 *-*-solaris2.1
[1-9]*)
29225 i?
86-*-* | x86_64-
*-*)
29226 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
29227 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
29228 gcc_cv_ld_as_needed
=no
29234 gcc_cv_ld_as_needed
=no
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
29240 $as_echo "$gcc_cv_ld_as_needed" >&6; }
29241 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
29243 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
29246 cat >>confdefs.h
<<_ACEOF
29247 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
29251 cat >>confdefs.h
<<_ACEOF
29252 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
29258 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
29259 saved_LDFLAGS
="$LDFLAGS"
29260 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
29261 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
29262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29263 /* end confdefs.h. */
29264 int main(void) {return 0;}
29266 if ac_fn_cxx_try_link
"$LINENO"; then :
29267 gcc_cv_ld_clearcap
=yes; break
29269 gcc_cv_ld_clearcap
=no
29271 rm -f core conftest.err conftest.
$ac_objext \
29272 conftest
$ac_exeext conftest.
$ac_ext
29274 LDFLAGS
="$saved_LDFLAGS"
29275 if test "x$gcc_cv_ld_clearcap" = xyes
; then
29277 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
29279 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
29283 $as_echo "$gcc_cv_ld_clearcap" >&6; }
29289 emul_name
="-melf32lppc"
29292 emul_name
="-melf32ppc"
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
29296 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
29297 if ${gcc_cv_ld_ppc_attr+:} false
; then :
29298 $as_echo_n "(cached) " >&6
29300 gcc_cv_ld_ppc_attr
=no
29301 if test x
"$ld_is_gold" = xyes
; then
29302 gcc_cv_ld_ppc_attr
=yes
29303 elif test $in_tree_ld = yes ; then
29304 if test "$gcc_cv_gld_major_version" -eq 2 \
29305 -a "$gcc_cv_gld_minor_version" -ge 28 \
29306 -o "$gcc_cv_gld_major_version" -gt 2; then
29307 gcc_cv_ld_ppc_attr
=yes
29309 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29310 # check that merging the long double .gnu_attribute doesn't warn
29311 cat > conftest1.s
<<EOF
29314 cat > conftest2.s
<<EOF
29317 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29318 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29319 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
29320 && test ! -s conftest.err
; then
29321 gcc_cv_ld_ppc_attr
=yes
29323 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
29327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
29328 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
29329 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
29331 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
29337 case "$target:$tm_file" in
29338 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
29341 emul_name
="-melf64lppc"
29344 emul_name
="-melf64ppc"
29347 emul_name
="-melf64ppc_fbsd"
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
29351 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
29352 if ${gcc_cv_ld_no_dot_syms+:} false
; then :
29353 $as_echo_n "(cached) " >&6
29355 gcc_cv_ld_no_dot_syms
=no
29356 if test x
"$ld_is_gold" = xyes
; then
29357 gcc_cv_ld_no_dot_syms
=yes
29358 elif test $in_tree_ld = yes ; then
29359 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
29360 gcc_cv_ld_no_dot_syms
=yes
29362 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29363 cat > conftest1.s
<<EOF
29367 cat > conftest2.s
<<EOF
29368 .section ".opd","aw"
29371 .type foo,@function
29373 .quad .LEfoo,.TOC.@tocbase,0
29379 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
29380 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
29381 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
29382 gcc_cv_ld_no_dot_syms
=yes
29384 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
29389 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
29390 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
29392 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29397 $as_echo_n "checking linker large toc support... " >&6; }
29398 if ${gcc_cv_ld_large_toc+:} false
; then :
29399 $as_echo_n "(cached) " >&6
29401 gcc_cv_ld_large_toc
=no
29402 if test x
"$ld_is_gold" = xyes
; then
29403 gcc_cv_ld_large_toc
=yes
29404 elif test $in_tree_ld = yes ; then
29405 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
29406 gcc_cv_ld_large_toc
=yes
29408 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
29409 cat > conftest.s
<<EOF
29410 .section ".tbss","awT",@nobits
29416 addis 9,13,ie0@got@tprel@ha
29417 ld 9,ie0@got@tprel@l(9)
29419 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29420 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
29421 gcc_cv_ld_large_toc
=yes
29423 rm -f conftest conftest.o conftest.s
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29428 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29429 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29431 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
29436 $as_echo_n "checking linker toc pointer alignment... " >&6; }
29437 if ${gcc_cv_ld_toc_align+:} false
; then :
29438 $as_echo_n "(cached) " >&6
29440 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
29441 cat > conftest.s
<<EOF
29446 .section .data.rel.ro,"aw",@progbits
29451 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
29452 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
29453 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)) }'`
29455 rm -f conftest conftest.o conftest.s
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
29460 $as_echo "$gcc_cv_ld_toc_align" >&6; }
29461 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
29463 cat >>confdefs.h
<<_ACEOF
29464 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
29474 $as_echo_n "checking linker large toc support... " >&6; }
29475 if ${gcc_cv_ld_large_toc+:} false
; then :
29476 $as_echo_n "(cached) " >&6
29478 gcc_cv_ld_large_toc
=no
29479 if test x
$gcc_cv_as != x
; then
29480 cat > conftest.s
<<EOF
29490 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
29491 gcc_cv_ld_large_toc
=yes
29493 rm -f conftest conftest.o conftest.s
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
29498 $as_echo "$gcc_cv_ld_large_toc" >&6; }
29499 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
29501 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
29507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
29508 $as_echo_n "checking linker --build-id support... " >&6; }
29509 if ${gcc_cv_ld_buildid+:} false
; then :
29510 $as_echo_n "(cached) " >&6
29512 gcc_cv_ld_buildid
=no
29513 if test $in_tree_ld = yes ; then
29514 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29515 "$gcc_cv_gld_minor_version" -ge 18 -o \
29516 "$gcc_cv_gld_major_version" -gt 2 \
29517 && test $in_tree_ld_is_elf = yes; then
29518 gcc_cv_ld_buildid
=yes
29520 elif test x
$gcc_cv_ld != x
; then
29521 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
29522 gcc_cv_ld_buildid
=yes
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
29527 $as_echo "$gcc_cv_ld_buildid" >&6; }
29528 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29530 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
29534 # Check whether --enable-linker-build-id was given.
29535 if test "${enable_linker_build_id+set}" = set; then :
29536 enableval
=$enable_linker_build_id;
29538 enable_linker_build_id
=no
29542 if test x
"$enable_linker_build_id" = xyes
; then
29543 if test x
"$gcc_cv_ld_buildid" = xyes
; then
29545 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
29549 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
29553 # In binutils 2.21, GNU ld gained support for new emulations fully
29554 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
29555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
29556 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
29557 if ${gcc_cv_ld_sol2_emulation+:} false
; then :
29558 $as_echo_n "(cached) " >&6
29560 gcc_cv_ld_sol2_emulation
=no
29561 if test $in_tree_ld = yes ; then
29562 if test "$gcc_cv_gld_major_version" -eq 2 -a \
29563 "$gcc_cv_gld_minor_version" -ge 21 -o \
29564 "$gcc_cv_gld_major_version" -gt 2 \
29565 && test $in_tree_ld_is_elf = yes; then
29566 gcc_cv_ld_sol2_emulation
=yes
29568 elif test x
$gcc_cv_ld != x
; then
29569 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
29570 grep _sol2
> /dev
/null
; then
29571 gcc_cv_ld_sol2_emulation
=yes
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
29576 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
29577 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
29579 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
29583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
29584 $as_echo_n "checking linker --sysroot support... " >&6; }
29585 if ${gcc_cv_ld_sysroot+:} false
; then :
29586 $as_echo_n "(cached) " >&6
29588 gcc_cv_ld_sysroot
=no
29589 if test $in_tree_ld = yes ; then
29590 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
29591 gcc_cv_ld_sysroot
=yes
29593 elif test x
$gcc_cv_ld != x
; then
29594 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
29595 gcc_cv_ld_sysroot
=yes
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
29600 $as_echo "$gcc_cv_ld_sysroot" >&6; }
29601 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
29603 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
29609 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
29611 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
29612 if ${gcc_cv_solaris_crts+:} false
; then :
29613 $as_echo_n "(cached) " >&6
29615 gcc_cv_solaris_crts
=no
29616 if test x
$host != x
$target; then
29617 if test "x$with_sysroot" = xyes
; then
29618 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
29620 target_sysroot
="${with_sysroot}"
29623 target_libdir
="$target_sysroot/usr/lib"
29624 # At the time they were added, gcrt1.o became a symlink for backwards
29625 # compatibility on x86, while crt1.o was added on sparc, so check for that.
29627 i?
86-*-solaris2* | x86_64-
*-solaris2*)
29628 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
29630 sparc
*-*-solaris2*)
29631 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
29636 $as_echo "$gcc_cv_solaris_crts" >&6; }
29639 if test x
$gcc_cv_solaris_crts = xyes
; then
29641 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
29645 # Check whether --enable-libssp was given.
29646 if test "${enable_libssp+set}" = set; then :
29647 enableval
=$enable_libssp; case "${enableval}" in
29651 as_fn_error $?
"unknown libssp setting $enableval" "$LINENO" 5
29657 # Test for stack protector support in target C library.
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
29659 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
29660 if ${gcc_cv_libc_provides_ssp+:} false
; then :
29661 $as_echo_n "(cached) " >&6
29663 gcc_cv_libc_provides_ssp
=no
29664 if test "x$enable_libssp" = "xno"; then
29665 gcc_cv_libc_provides_ssp
=yes
29666 elif test "x$enable_libssp" = "xyes"; then
29667 gcc_cv_libc_provides_ssp
=no
29671 # All versions of musl provide stack protector
29672 gcc_cv_libc_provides_ssp
=yes;;
29673 *-*-linux* |
*-*-kfreebsd*-gnu)
29674 # glibc 2.4 and later provides __stack_chk_fail and
29675 # either __stack_chk_guard, or TLS access to stack guard canary.
29677 if test $glibc_version_major -gt 2 \
29678 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29679 gcc_cv_libc_provides_ssp
=yes
29682 if test -f $target_header_dir/features.h \
29683 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
29684 $target_header_dir/features.h
> /dev
/null
; then
29685 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
29686 $target_header_dir/features.h
> /dev
/null
&& \
29687 test -f $target_header_dir/bits
/uClibc_config.h
&& \
29688 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
29689 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
29690 gcc_cv_libc_provides_ssp
=yes
29692 # all versions of Bionic support stack protector
29693 elif test -f $target_header_dir/sys
/cdefs.h \
29694 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
29695 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
29696 gcc_cv_libc_provides_ssp
=yes
29701 # Avoid complicated tests (see
29702 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
29703 # simply assert that glibc does provide this, which is true for all
29704 # realistically usable GNU/Hurd configurations.
29705 # All supported versions of musl provide it as well
29706 gcc_cv_libc_provides_ssp
=yes;;
29707 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
29708 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
29709 if test "x$ac_cv_func___stack_chk_fail" = xyes
; then :
29710 gcc_cv_libc_provides_ssp
=yes
29712 echo "no __stack_chk_fail on this target"
29716 *) gcc_cv_libc_provides_ssp
=no
;;
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29721 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29723 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29725 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29729 # Check whether --enable-default-ssp was given.
29730 # Check whether --enable-default-ssp was given.
29731 if test "${enable_default_ssp+set}" = set; then :
29732 enableval
=$enable_default_ssp;
29733 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29735 ia64
*-*-*) enable_default_ssp
=no
;;
29736 *) enable_default_ssp
=$enableval ;;
29739 enable_default_ssp
=no
29742 enable_default_ssp
=no
29745 if test x
$enable_default_ssp = xyes
; then
29747 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29752 # Test for <sys/sdt.h> on the target.
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29755 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29757 if test -f $target_header_dir/sys
/sdt.h
; then
29760 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29764 $as_echo "$have_sys_sdt_h" >&6; }
29766 # Check if TFmode long double should be used by default or not.
29767 # Some glibc targets used DFmode long double, but with glibc 2.4
29768 # and later they can use TFmode.
29770 powerpc
*-*-linux* | \
29771 sparc
*-*-linux* | \
29775 # Check whether --with-long-double-128 was given.
29776 if test "${with_long_double_128+set}" = set; then :
29777 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29781 s390
*-*-linux-musl*)
29782 gcc_cv_target_ldbl128
=yes
29784 powerpc
*-*-linux-musl*)
29785 gcc_cv_target_ldbl128
=no
29789 if test $glibc_version_major -gt 2 \
29790 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29791 gcc_cv_target_ldbl128
=yes
29794 gcc_cv_target_ldbl128
=no
29795 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29796 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29797 && gcc_cv_target_ldbl128
=yes
29808 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29810 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29814 # Check if TFmode long double target should use the IBM extended double or IEEE
29815 # 128-bit floating point formats if long doubles are 128-bits long. The long
29816 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29817 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29820 # Check whether --with-long-double-format was given.
29821 if test "${with_long_double_format+set}" = set; then :
29822 withval
=$with_long_double_format;
29823 case "$target:$with_long_double_format" in
29824 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29827 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29828 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29829 case "$with_cpu" in
29830 power7 | power8 | power9 | power1
*)
29834 as_fn_error $?
"Configuration option --with-long-double-format is only \
29835 supported if the default cpu is power7 or newer" "$LINENO" 5
29836 with_long_double_format
=""
29840 xpowerpc64
*-*-linux*:*)
29841 as_fn_error $?
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29842 with_long_double_format
=""
29845 as_fn_error $?
"Configure option --with-long-double-format is only supported \
29846 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29847 with_long_double_format
=""
29853 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29854 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29855 gcc_cv_libc_provides_hwcap_in_tcb
=no
29859 if test $glibc_version_major -gt 2 \
29860 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29861 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29865 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29867 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29871 # Check if the target LIBC handles PT_GNU_STACK.
29872 gcc_cv_libc_gnustack
=unknown
29876 if test $glibc_version_major -gt 2 \
29877 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 31 ); then :
29878 gcc_cv_libc_gnustack
=yes
29882 if test x
$gcc_cv_libc_gnustack = xyes
; then
29884 $as_echo "#define TARGET_LIBC_GNUSTACK 1" >>confdefs.h
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29889 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29890 gcc_cv_target_dl_iterate_phdr
=unknown
29893 # <link.h> needs both a dl_iterate_phdr declaration and support for
29894 # compilation with largefile support.
29895 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29896 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29897 gcc_cv_target_dl_iterate_phdr
=yes
29899 gcc_cv_target_dl_iterate_phdr
=no
29902 *-*-dragonfly* |
*-*-freebsd*)
29903 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29904 gcc_cv_target_dl_iterate_phdr
=yes
29906 gcc_cv_target_dl_iterate_phdr
=no
29910 gcc_cv_target_dl_iterate_phdr
=yes
29914 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29916 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29920 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29922 # We no longer support different GC mechanisms. Emit an error if
29923 # the user configures with --with-gc.
29925 # Check whether --with-gc was given.
29926 if test "${with_gc+set}" = set; then :
29927 withval
=$with_gc; as_fn_error $?
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29931 # Libraries to use on the host. This will normally be set by the top
29932 # level Makefile. Here we simply capture the value for our Makefile.
29933 if test -z "${HOST_LIBS+set}"; then
29938 # Use the system's zlib library.
29940 # Use the system's zlib library.
29941 zlibdir
="-L\$(top_builddir)/../zlib"
29942 zlibinc
="-I\$(top_srcdir)/../zlib"
29944 # Check whether --with-system-zlib was given.
29945 if test "${with_system_zlib+set}" = set; then :
29946 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29959 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29960 # Check whether --enable-maintainer-mode was given.
29961 if test "${enable_maintainer_mode+set}" = set; then :
29962 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29969 $as_echo "$maintainer_mode" >&6; }
29971 if test "$maintainer_mode" = "yes"; then
29978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29979 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29980 # Check whether --enable-link-mutex was given.
29981 if test "${enable_link_mutex+set}" = set; then :
29982 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29988 $as_echo "$do_link_mutex" >&6; }
29990 if test "$do_link_mutex" = "yes"; then
29993 DO_LINK_MUTEX
=false
30001 # Make empty files to contain the specs and options for each language.
30002 # Then add #include lines to for a compiler that has specs and/or options.
30008 # These (without "all_") are set in each config-lang.in.
30009 # `language' must be a single word so is spelled singularly.
30012 all_outputs
='Makefile'
30013 # List of language configure and makefile fragments.
30014 all_lang_configurefrags
=
30015 all_lang_makefrags
=
30016 # Additional files for gengtype
30017 all_gtfiles
="$target_gtfiles"
30019 # These are the languages that are set in --enable-languages,
30020 # and are available in the GCC tree.
30021 all_selected_languages
=
30023 # Add the language fragments.
30024 # Languages are added via two mechanisms. Some information must be
30025 # recorded in makefile variables, these are defined in config-lang.in.
30026 # We accumulate them and plug them into the main Makefile.
30027 # The other mechanism is a set of hooks for each of the main targets
30028 # like `clean', `install', etc.
30030 language_hooks
="Make-hooks"
30032 for lang
in ${srcdir}/*/config-lang.
in
30034 test "$lang" = "${srcdir}/*/config-lang.in" && continue
30036 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
30037 if test "x$lang_alias" = x
30039 echo "$lang doesn't set \$language." 1>&2
30042 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
30043 subdirs
="$subdirs $subdir"
30045 # $gcc_subdir is where the gcc integration files are to be found
30046 # for a language, both for internal compiler purposes (compiler
30047 # sources implementing front-end to GCC tree converters), and for
30048 # build infrastructure purposes (Make-lang.in, etc.)
30050 # This will be <subdir> (relative to $srcdir) if a line like
30051 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
30052 # is found in <langdir>/config-lang.in, and will remain <langdir>
30055 # Except for the language alias (fetched above), the regular
30056 # "config-lang.in" contents are always retrieved from $gcc_subdir,
30057 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
30058 # only this and the language alias.
30060 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
30061 if [ "$gcc_subdir" = "" ]; then
30062 gcc_subdir
="$subdir"
30065 case ",$enable_languages," in
30067 all_selected_languages
="$all_selected_languages $lang_alias"
30068 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
30069 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
30080 .
${srcdir}/$gcc_subdir/config-lang.
in
30081 if test "x$language" = x
30083 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
30088 case ",$enable_languages," in
30089 *,$lang_alias,*) ;;
30091 for i
in $subdir_requires; do
30092 test -f "${srcdir}/$i/config-lang.in" && continue
30100 all_lang_configurefrags
="$all_lang_configurefrags \$(srcdir)/$gcc_subdir/config-lang.in"
30101 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
30102 if test -f $srcdir/$gcc_subdir/lang.opt
; then
30103 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
30104 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
30106 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
30107 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
30109 all_languages
="$all_languages $language"
30110 all_compilers
="$all_compilers $compilers"
30111 all_outputs
="$all_outputs $outputs"
30112 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
30113 case ",$enable_languages," in
30116 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
30126 for language
in $all_selected_languages
30128 check_languages
="$check_languages check-$language"
30131 selftest_languages
=
30132 for language
in $all_selected_languages
30134 selftest_languages
="$selftest_languages selftest-$language"
30137 # We link each language in with a set of hooks, reached indirectly via
30138 # lang.${target}. Only do so for selected languages.
30142 target_list
="all.cross start.encap rest.encap tags \
30143 install-common install-man install-info install-pdf install-html dvi \
30144 pdf html uninstall info man srcextra srcman srcinfo \
30145 mostlyclean clean distclean maintainer-clean install-plugin"
30147 for t
in $target_list
30150 for lang
in $all_selected_languages
30154 echo "lang.$t: $x" >> Make-hooks
30158 # Option include files
30161 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
30162 option_includes
="option-includes.mk"
30171 echo "dir ." > .gdbinit
30172 echo "dir ${srcdir}" >> .gdbinit
30173 if test x
$gdb_needs_out_file_path = xyes
30175 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
30177 if test "x$subdirs" != x
; then
30180 echo "dir ${srcdir}/$s" >> .gdbinit
30183 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
30184 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
30186 # Put a breakpoint on __asan_report_error to help with debugging buffer
30189 *-fsanitize=address
*)
30190 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
30194 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
30198 # Find a directory in which to install a shared libgcc.
30200 # Check whether --enable-version-specific-runtime-libs was given.
30201 if test "${enable_version_specific_runtime_libs+set}" = set; then :
30202 enableval
=$enable_version_specific_runtime_libs;
30206 # Substitute configuration variables
30275 if test x
${build} = x
${host} ; then
30276 if test x
${host} = x
${target} ; then
30277 echo "Links are now set up to build a native compiler for ${target}." 1>&2
30279 echo "Links are now set up to build a cross-compiler" 1>&2
30280 echo " from ${host} to ${target}." 1>&2
30283 if test x
${host} = x
${target} ; then
30284 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
30285 echo " for ${target}." 1>&2
30287 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
30288 echo " from ${host} to ${target}." 1>&2
30297 if test "x${ISLLIBS}" != "x" ; then
30299 $as_echo "#define HAVE_isl 1" >>confdefs.h
30303 # Check for plugin support
30304 # Check whether --enable-plugin was given.
30305 if test "${enable_plugin+set}" = set; then :
30306 enableval
=$enable_plugin; enable_plugin
=$enableval
30308 enable_plugin
=yes; default_plugin
=yes
30317 # Since plugin support under MinGW is not as straightforward as on
30318 # other platforms (e.g., we have to link import library, etc), we
30319 # only enable it if explicitly requested.
30320 if test x
"$default_plugin" = x
"yes"; then
30322 elif test x
"$enable_plugin" = x
"yes"; then
30323 # Use make's target variable to derive import library name.
30324 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
30329 if test x
$build = x
$host; then
30330 export_sym_check
="nm${exeext} -g"
30331 elif test x
$host = x
$target; then
30332 export_sym_check
="$gcc_cv_nm -g"
30338 if test x
$build = x
$host; then
30339 export_sym_check
="objdump${exeext} -T"
30340 elif test x
$host = x
$target; then
30341 export_sym_check
="$gcc_cv_objdump -T"
30348 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
30351 $as_echo_n "checking for exported symbols... " >&6; }
30352 if test "x$export_sym_check" != x
; then
30353 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
30354 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30355 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30356 : # No need to use a flag
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30358 $as_echo "yes" >&6; }
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30361 $as_echo "yes" >&6; }
30362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
30363 $as_echo_n "checking for -rdynamic... " >&6; }
30364 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
30365 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
30366 plugin_rdynamic
=yes
30367 pluginlibs
="-rdynamic"
30372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
30373 $as_echo "$plugin_rdynamic" >&6; }
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
30377 $as_echo "unable to check" >&6; }
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
30383 $as_echo_n "checking for library containing dlopen... " >&6; }
30384 if ${ac_cv_search_dlopen+:} false
; then :
30385 $as_echo_n "(cached) " >&6
30387 ac_func_search_save_LIBS
=$LIBS
30388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30389 /* end confdefs.h. */
30391 /* Override any GCC internal prototype to avoid an error.
30392 Use char because int might match the return type of a GCC
30393 builtin and then its argument prototype would still apply. */
30406 for ac_lib
in '' dl
; do
30407 if test -z "$ac_lib"; then
30408 ac_res
="none required"
30411 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
30413 if ac_fn_cxx_try_link
"$LINENO"; then :
30414 ac_cv_search_dlopen
=$ac_res
30416 rm -f core conftest.err conftest.
$ac_objext \
30418 if ${ac_cv_search_dlopen+:} false
; then :
30422 if ${ac_cv_search_dlopen+:} false
; then :
30425 ac_cv_search_dlopen
=no
30427 rm conftest.
$ac_ext
30428 LIBS
=$ac_func_search_save_LIBS
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
30431 $as_echo "$ac_cv_search_dlopen" >&6; }
30432 ac_res
=$ac_cv_search_dlopen
30433 if test "$ac_res" != no
; then :
30434 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
30438 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
30439 pluginlibs
="$pluginlibs -ldl"
30443 # Check that we can build shared objects with -fPIC -shared
30444 saved_LDFLAGS
="$LDFLAGS"
30445 saved_CFLAGS
="$CFLAGS"
30448 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
30449 CFLAGS
="$CFLAGS -fPIC"
30450 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
30453 CFLAGS
="$CFLAGS -fPIC"
30454 LDFLAGS
="$LDFLAGS -fPIC -shared"
30457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
30458 $as_echo_n "checking for -fPIC -shared... " >&6; }
30459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30460 /* end confdefs.h. */
30470 if ac_fn_cxx_try_link
"$LINENO"; then :
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30472 $as_echo "yes" >&6; }; have_pic_shared
=yes
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30475 $as_echo "no" >&6; }; have_pic_shared
=no
30477 rm -f core conftest.err conftest.
$ac_objext \
30478 conftest
$ac_exeext conftest.
$ac_ext
30479 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
30483 LDFLAGS
="$saved_LDFLAGS"
30484 CFLAGS
="$saved_CFLAGS"
30486 # If plugin support had been requested but not available, fail.
30487 if test x
"$enable_plugin" = x
"no" ; then
30488 if test x
"$default_plugin" != x
"yes"; then
30490 Building GCC with plugin support requires a host that supports
30491 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
30498 if test x
"$enable_plugin" = x
"yes"; then
30500 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
30505 # Enable --enable-host-shared
30506 # Check whether --enable-host-shared was given.
30507 if test "${enable_host_shared+set}" = set; then :
30508 enableval
=$enable_host_shared; PICFLAG
=-fPIC
30517 # Check whether --enable-libquadmath-support was given.
30518 if test "${enable_libquadmath_support+set}" = set; then :
30519 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
30521 ENABLE_LIBQUADMATH_SUPPORT
=yes
30524 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
30526 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
30531 # Specify what hash style to use by default.
30533 # Check whether --with-linker-hash-style was given.
30534 if test "${with_linker_hash_style+set}" = set; then :
30535 withval
=$with_linker_hash_style; case x
"$withval" in
30537 LINKER_HASH_STYLE
=sysv
30540 LINKER_HASH_STYLE
=gnu
30543 LINKER_HASH_STYLE
=both
30546 as_fn_error $?
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
30550 LINKER_HASH_STYLE
=''
30553 if test x
"${LINKER_HASH_STYLE}" != x
; then
30555 cat >>confdefs.h
<<_ACEOF
30556 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
30561 # Specify what should be the default of -fdiagnostics-color option.
30563 # Check whether --with-diagnostics-color was given.
30564 if test "${with_diagnostics_color+set}" = set; then :
30565 withval
=$with_diagnostics_color; case x
"$withval" in
30567 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
30570 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30573 DIAGNOSTICS_COLOR_DEFAULT
=-1
30576 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
30579 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
30583 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
30587 cat >>confdefs.h
<<_ACEOF
30588 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
30592 # Specify what should be the default of -fdiagnostics-urls option.
30594 # Check whether --with-diagnostics-urls was given.
30595 if test "${with_diagnostics_urls+set}" = set; then :
30596 withval
=$with_diagnostics_urls; case x
"$withval" in
30598 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_NO
30601 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
30604 DIAGNOSTICS_URLS_DEFAULT
=-1
30607 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_YES
30610 as_fn_error $?
"$withval is an invalid option to --with-diagnostics-urls" "$LINENO" 5
30614 DIAGNOSTICS_URLS_DEFAULT
=DIAGNOSTICS_URL_AUTO
30618 cat >>confdefs.h
<<_ACEOF
30619 #define DIAGNOSTICS_URLS_DEFAULT $DIAGNOSTICS_URLS_DEFAULT
30623 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
30624 # of jit/jit-playback.c.
30625 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
30626 echo "gcc_driver_version: ${gcc_driver_version}"
30627 cat > gcc-driver-name.h
<<EOF
30628 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
30631 # Check whether --enable-default-pie was given.
30632 # Check whether --enable-default-pie was given.
30633 if test "${enable_default_pie+set}" = set; then :
30634 enableval
=$enable_default_pie; enable_default_pie
=$enableval
30636 enable_default_pie
=no
30639 if test x
$enable_default_pie = xyes
; then
30641 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
30646 # Check if -fno-PIE works.
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
30648 $as_echo_n "checking for -fno-PIE option... " >&6; }
30649 if ${gcc_cv_c_no_fpie+:} false
; then :
30650 $as_echo_n "(cached) " >&6
30652 saved_CXXFLAGS
="$CXXFLAGS"
30653 CXXFLAGS
="$CXXFLAGS -fno-PIE"
30654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30655 /* end confdefs.h. */
30656 int main(void) {return 0;}
30658 if ac_fn_cxx_try_compile
"$LINENO"; then :
30659 gcc_cv_c_no_fpie
=yes
30661 gcc_cv_c_no_fpie
=no
30663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30664 CXXFLAGS
="$saved_CXXFLAGS"
30666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
30667 $as_echo "$gcc_cv_c_no_fpie" >&6; }
30668 if test "$gcc_cv_c_no_fpie" = "yes"; then
30669 NO_PIE_CFLAGS
="-fno-PIE"
30673 # Check if -no-pie works.
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
30675 $as_echo_n "checking for -no-pie option... " >&6; }
30676 if ${gcc_cv_no_pie+:} false
; then :
30677 $as_echo_n "(cached) " >&6
30679 saved_LDFLAGS
="$LDFLAGS"
30680 LDFLAGS
="$LDFLAGS -no-pie"
30681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30682 /* end confdefs.h. */
30683 int main(void) {return 0;}
30685 if ac_fn_cxx_try_link
"$LINENO"; then :
30690 rm -f core conftest.err conftest.
$ac_objext \
30691 conftest
$ac_exeext conftest.
$ac_ext
30692 LDFLAGS
="$saved_LDFLAGS"
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
30695 $as_echo "$gcc_cv_no_pie" >&6; }
30696 if test "$gcc_cv_no_pie" = "yes"; then
30697 NO_PIE_FLAG
="-no-pie"
30701 # Check linker supports '-z bndplt'
30702 ld_bndplt_support
=no
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
30704 $as_echo_n "checking linker -z bndplt option... " >&6; }
30705 if test x
"$ld_is_gold" = xno
; then
30706 if test $in_tree_ld = yes ; then
30707 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
30708 ld_bndplt_support
=yes
30710 elif test x
$gcc_cv_ld != x
; then
30711 # Check if linker supports -a bndplt option
30712 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
30713 ld_bndplt_support
=yes
30717 if test x
"$ld_bndplt_support" = xyes
; then
30719 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
30723 $as_echo "$ld_bndplt_support" >&6; }
30725 # Check linker supports '--push-state'/'--pop-state'
30726 ld_pushpopstate_support
=no
30727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
30728 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
30729 if test x
"$ld_is_gold" = xno
; then
30730 if test $in_tree_ld = yes ; then
30731 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
30732 ld_pushpopstate_support
=yes
30734 elif test x
$gcc_cv_ld != x
; then
30735 # Check if linker supports --push-state/--pop-state options
30736 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
30737 ld_pushpopstate_support
=yes
30741 if test x
"$ld_pushpopstate_support" = xyes
; then
30743 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
30747 $as_echo "$ld_pushpopstate_support" >&6; }
30749 # Configure the subdirectories
30750 # AC_CONFIG_SUBDIRS($subdirs)
30752 # Create the Makefile
30753 # and configure language subdirectories
30754 ac_config_files
="$ac_config_files $all_outputs"
30757 ac_config_commands
="$ac_config_commands default"
30759 cat >confcache
<<\_ACEOF
30760 # This file is a shell script that caches the results of configure
30761 # tests run on this system so they can be shared between configure
30762 # scripts and configure runs, see configure's option --config-cache.
30763 # It is not useful on other systems. If it contains results you don't
30764 # want to keep, you may remove or edit it.
30766 # config.status only pays attention to the cache file if you give it
30767 # the --recheck option to rerun configure.
30769 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30771 # following values.
30775 # The following way of writing the cache mishandles newlines in values,
30776 # but we know of no workaround that is simple, portable, and efficient.
30777 # So, we kill variables containing newlines.
30778 # Ultrix sh set writes to stderr and can't be redirected directly,
30779 # and sets the high bit in the cache file unless we assign to the vars.
30781 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30782 eval ac_val
=\$
$ac_var
30786 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30787 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30790 _ | IFS | as_nl
) ;; #(
30791 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30792 *) { eval $ac_var=; unset $ac_var;} ;;
30798 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30799 *${as_nl}ac_space
=\
*)
30800 # `set' does not quote correctly, so add quotes: double-quote
30801 # substitution turns \\\\ into \\, and sed turns \\ into \.
30804 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30807 # `set' quotes correctly as required by POSIX, so do not add quotes.
30808 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30819 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30821 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30822 if test -w "$cache_file"; then
30823 if test "x$cache_file" != "x/dev/null"; then
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30825 $as_echo "$as_me: updating cache $cache_file" >&6;}
30826 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
30827 cat confcache
>"$cache_file"
30829 case $cache_file in #(
30831 mv -f confcache
"$cache_file"$$
&&
30832 mv -f "$cache_file"$$
"$cache_file" ;; #(
30834 mv -f confcache
"$cache_file" ;;
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30845 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30846 # Let make expand exec_prefix.
30847 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30849 DEFS
=-DHAVE_CONFIG_H
30854 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30855 # 1. Remove the extension, and $U if already installed.
30856 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30857 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30858 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30859 # will be set to the directory where LIBOBJS objects are built.
30860 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30861 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30863 LIBOBJS
=$ac_libobjs
30865 LTLIBOBJS
=$ac_ltlibobjs
30870 : "${CONFIG_STATUS=./config.status}"
30872 ac_clean_files_save
=$ac_clean_files
30873 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30879 # Generated by $as_me.
30880 # Run this file to recreate the current configuration.
30881 # Compiler output produced by configure, useful for debugging
30882 # configure, is in config.log if it exists.
30885 ac_cs_recheck=false
30888 SHELL=\${CONFIG_SHELL-$SHELL}
30891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30892 ## -------------------- ##
30893 ## M4sh Initialization. ##
30894 ## -------------------- ##
30896 # Be more Bourne compatible
30897 DUALCASE
=1; export DUALCASE
# for MKS sh
30898 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30902 # is contrary to our usage. Disable this feature.
30903 alias -g '${1+"$@"}'='"$@"'
30904 setopt NO_GLOB_SUBST
30906 case `(set -o) 2>/dev/null` in #(
30918 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30919 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30922 # Prefer a ksh shell builtin over an external printf program on Solaris,
30923 # but without wasting forks for bash or zsh.
30924 if test -z "$BASH_VERSION$ZSH_VERSION" \
30925 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30926 as_echo='print
-r --'
30927 as_echo_n='print
-rn --'
30928 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30929 as_echo='printf %s
\n'
30930 as_echo_n='printf %s
'
30932 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30933 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30934 as_echo_n='/usr
/ucb
/echo -n'
30936 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30937 as_echo_n_body='eval
30941 expr "X$arg" : "X\\(.*\\)$as_nl";
30942 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30944 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30946 export as_echo_n_body
30947 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30949 export as_echo_body
30950 as_echo='sh
-c $as_echo_body as_echo
'
30953 # The user is always right.
30954 if test "${PATH_SEPARATOR+set}" != set; then
30956 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30957 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30964 # We need space, tab and new line, in precisely that order. Quoting is
30965 # there to prevent editors from complaining about space-tab.
30966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30967 # splitting by setting IFS to empty value.)
30970 # Find who we are. Look in the path if we contain no directory separator.
30973 *[\\/]* ) as_myself=$0 ;;
30974 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30975 for as_dir in $PATH
30978 test -z "$as_dir" && as_dir=.
30979 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30985 # We did not find ourselves, most probably we were run as `sh COMMAND'
30986 # in which case we are not to be found in the path.
30987 if test "x$as_myself" = x
; then
30990 if test ! -f "$as_myself"; then
30991 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30995 # Unset variables that we do not need and which cause bugs (e.g. in
30996 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30997 # suppresses any "Segmentation fault" message there. '((' could
30998 # trigger a bug in pdksh 5.2.14.
30999 for as_var
in BASH_ENV ENV MAIL MAILPATH
31000 do eval test x\
${$as_var+set} = xset \
31001 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31014 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31017 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31018 # ----------------------------------------
31019 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31020 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31021 # script with STATUS, using 1 if that was 0.
31024 as_status
=$1; test $as_status -eq 0 && as_status
=1
31026 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31027 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31029 $as_echo "$as_me: error: $2" >&2
31030 as_fn_exit
$as_status
31034 # as_fn_set_status STATUS
31035 # -----------------------
31036 # Set $? to STATUS, without forking.
31037 as_fn_set_status
()
31040 } # as_fn_set_status
31042 # as_fn_exit STATUS
31043 # -----------------
31044 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31048 as_fn_set_status
$1
31054 # Portably unset VAR.
31057 { eval $1=; unset $1;}
31059 as_unset
=as_fn_unset
31060 # as_fn_append VAR VALUE
31061 # ----------------------
31062 # Append the text in VALUE to the end of the definition contained in VAR. Take
31063 # advantage of any shell optimizations that allow amortized linear growth over
31064 # repeated appends, instead of the typical quadratic growth present in naive
31066 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31067 eval 'as_fn_append ()
31078 # as_fn_arith ARG...
31079 # ------------------
31080 # Perform arithmetic evaluation on the ARGs, and store the result in the
31081 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31082 # must be portable across $(()) and expr.
31083 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31084 eval 'as_fn_arith ()
31091 as_val
=`expr "$@" || test $? -eq 1`
31096 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31097 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31103 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31104 as_basename
=basename
31109 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31115 as_me
=`$as_basename -- "$0" ||
31116 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31117 X"$0" : 'X\(//\)$' \| \
31118 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31120 sed '/^.*\/\([^/][^/]*\)\/*$/{
31134 # Avoid depending upon Character Ranges.
31135 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31136 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31137 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31138 as_cr_digits
='0123456789'
31139 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31141 ECHO_C
= ECHO_N
= ECHO_T
=
31142 case `echo -n x` in #(((((
31144 case `echo 'xy\c'` in
31145 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31147 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31154 rm -f conf$$ conf$$.exe conf$$.
file
31155 if test -d conf$$.dir
; then
31156 rm -f conf$$.dir
/conf$$.
file
31159 mkdir conf$$.dir
2>/dev
/null
31161 if (echo >conf$$.
file) 2>/dev
/null
; then
31162 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31164 # ... but there are two gotchas:
31165 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31166 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31167 # In both cases, we have to default to `cp -pR'.
31168 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31170 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31178 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31179 rmdir conf$$.dir
2>/dev
/null
31184 # Create "$as_dir" as a directory, including parents if necessary.
31189 -*) as_dir
=.
/$as_dir;;
31191 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31195 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31196 *) as_qdir
=$as_dir;;
31198 as_dirs
="'$as_qdir' $as_dirs"
31199 as_dir
=`$as_dirname -- "$as_dir" ||
31200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31201 X"$as_dir" : 'X\(//\)[^/]' \| \
31202 X"$as_dir" : 'X\(//\)$' \| \
31203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31204 $as_echo X"$as_dir" |
31205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31209 /^X\(\/\/\)[^/].*/{
31222 test -d "$as_dir" && break
31224 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31225 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31229 if mkdir
-p .
2>/dev
/null
; then
31230 as_mkdir_p
='mkdir -p "$as_dir"'
31232 test -d .
/-p && rmdir .
/-p
31237 # as_fn_executable_p FILE
31238 # -----------------------
31239 # Test if FILE is an executable regular file.
31240 as_fn_executable_p
()
31242 test -f "$1" && test -x "$1"
31243 } # as_fn_executable_p
31244 as_test_x
='test -x'
31245 as_executable_p
=as_fn_executable_p
31247 # Sed expression to map a string onto a valid CPP name.
31248 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31250 # Sed expression to map a string onto a valid variable name.
31251 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31255 ## ----------------------------------- ##
31256 ## Main body of $CONFIG_STATUS script. ##
31257 ## ----------------------------------- ##
31259 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31262 # Save the log message, to keep $0 and so on meaningful, and to
31263 # report actual input values of CONFIG_FILES etc. instead of their
31264 # values after options handling.
31266 This file was extended by $as_me, which was
31267 generated by GNU Autoconf 2.69. Invocation command line was
31269 CONFIG_FILES = $CONFIG_FILES
31270 CONFIG_HEADERS = $CONFIG_HEADERS
31271 CONFIG_LINKS = $CONFIG_LINKS
31272 CONFIG_COMMANDS = $CONFIG_COMMANDS
31275 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31280 case $ac_config_files in *"
31281 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31284 case $ac_config_headers in *"
31285 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31290 # Files that config.status was made for.
31291 config_files="$ac_config_files"
31292 config_headers="$ac_config_headers"
31293 config_links="$ac_config_links"
31294 config_commands="$ac_config_commands"
31298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31300 \`$as_me' instantiates files and other configuration actions
31301 from templates according to the current configuration. Unless the files
31302 and actions are specified as TAGs, all are instantiated by default.
31304 Usage: $0 [OPTION]... [TAG]...
31306 -h, --help print this help, then exit
31307 -V, --version print version number and configuration settings, then exit
31308 --config print configuration, then exit
31309 -q, --quiet, --silent
31310 do not print progress messages
31311 -d, --debug don't remove temporary files
31312 --recheck update $as_me by reconfiguring in the same conditions
31313 --file=FILE[:TEMPLATE]
31314 instantiate the configuration file FILE
31315 --header=FILE[:TEMPLATE]
31316 instantiate the configuration header FILE
31318 Configuration files:
31321 Configuration headers:
31324 Configuration links:
31327 Configuration commands:
31330 Report bugs to the package provider."
31333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31334 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31337 configured by $0, generated by GNU Autoconf 2.69,
31338 with options \\"\$ac_cs_config\\"
31340 Copyright (C) 2012 Free Software Foundation, Inc.
31341 This config.status script is free software; the Free Software Foundation
31342 gives unlimited permission to copy, distribute and modify it."
31347 test -n "\$AWK" || AWK=awk
31350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31351 # The default lists apply if the user does not specify any file.
31357 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31358 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31362 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31374 # Handling of the options.
31375 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31377 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31378 $as_echo "$ac_cs_version"; exit ;;
31379 --config |
--confi |
--conf |
--con |
--co |
--c )
31380 $as_echo "$ac_cs_config"; exit ;;
31381 --debug |
--debu |
--deb |
--de |
--d |
-d )
31383 --file |
--fil |
--fi |
--f )
31386 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31387 '') as_fn_error $?
"missing file argument" ;;
31389 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31390 ac_need_defaults
=false
;;
31391 --header |
--heade |
--head |
--hea )
31394 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31396 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31397 ac_need_defaults
=false
;;
31399 # Conflict between --help and --header
31400 as_fn_error $?
"ambiguous option: \`$1'
31401 Try \`$0 --help' for more information.";;
31402 --help |
--hel |
-h )
31403 $as_echo "$ac_cs_usage"; exit ;;
31404 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31405 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31408 # This is an error.
31409 -*) as_fn_error $?
"unrecognized option: \`$1'
31410 Try \`$0 --help' for more information." ;;
31412 *) as_fn_append ac_config_targets
" $1"
31413 ac_need_defaults
=false
;;
31419 ac_configure_extra_args
=
31421 if $ac_cs_silent; then
31423 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31428 if \$ac_cs_recheck; then
31429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31432 CONFIG_SHELL='$SHELL'
31433 export CONFIG_SHELL
31438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31443 ## Running $as_me. ##
31449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31453 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31454 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
31459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31461 # Handling of arguments.
31462 for ac_config_target
in $ac_config_targets
31464 case $ac_config_target in
31465 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
31466 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
31467 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
31468 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
31469 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
31470 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
31471 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
31472 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
31473 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
31475 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31480 # If the user did not use the arguments to specify the items to instantiate,
31481 # then the envvar interface is used. Set only those that are not.
31482 # We use the long form for the default assignment because of an extremely
31483 # bizarre bug on SunOS 4.1.3.
31484 if $ac_need_defaults; then
31485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
31486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
31487 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
31488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
31491 # Have a temporary directory for convenience. Make it in the build tree
31492 # simply because there is no reason against having it here, and in addition,
31493 # creating and moving files from /tmp can sometimes cause problems.
31494 # Hook for its removal unless debugging.
31495 # Note that there is a small window in which the directory will not be cleaned:
31496 # after its creation but before its name has been assigned to `$tmp'.
31500 trap 'exit_status=$?
31501 : "${ac_tmp:=$tmp}"
31502 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31504 trap 'as_fn_exit 1' 1 2 13 15
31506 # Create a (secure) tmp directory for tmp files.
31509 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31513 tmp
=.
/conf$$
-$RANDOM
31514 (umask 077 && mkdir
"$tmp")
31515 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
31518 # Set up the scripts for CONFIG_FILES section.
31519 # No need to generate them if there are no CONFIG_FILES.
31520 # This happens for instance with `./config.status config.h'.
31521 if test -n "$CONFIG_FILES"; then
31523 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
31524 ac_cs_awk_getline
=:
31525 ac_cs_awk_pipe_init
=
31526 ac_cs_awk_read_file
='
31527 while ((getline aline < (F[key])) > 0)
31530 ac_cs_awk_pipe_fini
=
31532 ac_cs_awk_getline
=false
31533 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
31534 ac_cs_awk_read_file
='
31536 print "cat " F[key] " &&"
31537 '$ac_cs_awk_pipe_init
31538 # The final `:' finishes the AND list.
31539 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
31541 ac_cr
=`echo X | tr X '\015'`
31542 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31543 # But we know of no other shell where ac_cr would be empty at this
31544 # point, so we can use a bashism as a fallback.
31545 if test "x$ac_cr" = x
; then
31546 eval ac_cr
=\$
\'\\r
\'
31548 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31549 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31552 ac_cs_awk_cr
=$ac_cr
31555 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31558 # Create commands to substitute file output variables.
31560 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31561 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31562 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
31565 } >conf$
$files.sh
&&
31566 . .
/conf$
$files.sh ||
31567 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
31568 rm -f conf$
$files.sh
31571 echo "cat >conf$$subs.awk <<_ACEOF" &&
31572 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31574 } >conf$$subs.sh ||
31575 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31576 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31578 for ac_last_try in false false false false false :; do
31579 . ./conf$$subs.sh ||
31580 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31582 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
31583 if test $ac_delim_n = $ac_delim_num; then
31585 elif $ac_last_try; then
31586 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
31588 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31591 rm -f conf$$subs.sh
31593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31594 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
31598 s/^/S["/; s
/!.
*/"]=/
31608 s/\(.\{148\}\)..*/\1/
31610 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
31615 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31622 s/\(.\{148\}\)..*/\1/
31624 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
31628 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
31633 ' <conf$$subs.awk | sed '
31638 ' >>$CONFIG_STATUS || ac_write_fail=1
31639 rm -f conf$$subs.awk
31640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31642 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
31643 for (key in S) S_is_set[key] = 1
31645 \$ac_cs_awk_pipe_init
31649 nfields = split(line, field, "@
")
31651 len = length(field[1])
31652 for (i = 2; i < nfields; i++) {
31654 keylen = length(key)
31655 if (S_is_set[key]) {
31657 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31658 len += length(value) + length(field[++i])
31663 if (nfields == 3 && !substed) {
31665 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
31666 \$ac_cs_awk_read_file
31672 \$ac_cs_awk_pipe_fini
31675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31676 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31677 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
31680 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
31681 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
31684 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31685 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
31686 # trailing colons and then remove the whole line if VPATH becomes empty
31687 # (actually we leave an empty line to preserve line numbers).
31688 if test "x
$srcdir" = x.; then
31689 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
31707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31708 fi # test -n "$CONFIG_FILES"
31710 # Set up the scripts for CONFIG_HEADERS section.
31711 # No need to generate them if there are no CONFIG_HEADERS.
31712 # This happens for instance with `./config.status Makefile'.
31713 if test -n "$CONFIG_HEADERS"; then
31714 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
31718 # Transform confdefs.h into an awk script `defines.awk', embedded as
31719 # here-document in config.status, that substitutes the proper values into
31720 # config.h.in to produce config.h.
31722 # Create a delimiter string that does not exist in confdefs.h, to ease
31723 # handling of long lines.
31725 for ac_last_try in false false :; do
31726 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
31727 if test -z "$ac_tt"; then
31729 elif $ac_last_try; then
31730 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
31732 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
31736 # For the awk script, D is an array of macro values keyed by name,
31737 # likewise P contains macro parameters if any. Preserve backslash
31738 # newline sequences.
31740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31742 s/.\{148\}/&'"$ac_delim"'/g
31745 s/^[ ]*#[ ]*define[ ][ ]*/ /
31752 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
31754 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
31758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
31759 D["\
1"]=" \
3\\\\\\n
"\\/p
31761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
31766 s/.\{148\}/&'"$ac_delim"'/g
31771 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
31774 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
31776 ' <confdefs.h | sed '
31777 s/'"$ac_delim"'/"\\\
31778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31781 for (key in D) D_is_set[key] = 1
31784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31786 split(line, arg, " ")
31787 if (arg[1] == "#") {
31791 defundef
= substr
(arg
[1], 2)
31794 split(mac1
, mac2
, "(") #)
31796 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31797 if (D_is_set
[macro
]) {
31798 # Preserve the white space surrounding the "#".
31799 print prefix
"define", macro P
[macro
] D
[macro
]
31802 # Replace #undef with comments. This is necessary, for example,
31803 # in the case of _POSIX_SOURCE, which is predefined and required
31804 # on some systems where configure will not decide to define it.
31805 if (defundef
== "undef") {
31806 print
"/*", prefix defundef
, macro
, "*/"
31814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31815 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
31816 fi # test -n "$CONFIG_HEADERS"
31819 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31824 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31826 case $ac_mode$ac_tag in
31828 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31829 :[FH
]-) ac_tag
=-:-;;
31830 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31847 -) ac_f
="$ac_tmp/stdin";;
31848 *) # Look for the file first in the build tree, then in the source tree
31849 # (if the path is not absolute). The absolute path cannot be DOS-style,
31850 # because $ac_f cannot contain `:'.
31854 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31856 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31858 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31859 as_fn_append ac_file_inputs
" '$ac_f'"
31862 # Let's still pretend it is `configure' which instantiates (i.e., don't
31863 # use $as_me), people would be surprised to read:
31864 # /* config.h. Generated by config.status. */
31865 configure_input
='Generated from '`
31866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31868 if test x
"$ac_file" != x-
; then
31869 configure_input
="$ac_file. $configure_input"
31870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31871 $as_echo "$as_me: creating $ac_file" >&6;}
31873 # Neutralize special characters interpreted by sed in replacement strings.
31874 case $configure_input in #(
31875 *\
&* |
*\|
* |
*\\* )
31876 ac_sed_conf_input
=`$as_echo "$configure_input" |
31877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31878 *) ac_sed_conf_input
=$configure_input;;
31882 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
31883 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
31888 ac_dir
=`$as_dirname -- "$ac_file" ||
31889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31890 X"$ac_file" : 'X\(//\)[^/]' \| \
31891 X"$ac_file" : 'X\(//\)$' \| \
31892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31893 $as_echo X"$ac_file" |
31894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31898 /^X\(\/\/\)[^/].*/{
31911 as_dir
="$ac_dir"; as_fn_mkdir_p
31915 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31917 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31918 # A ".." for each directory in $ac_dir_suffix.
31919 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31920 case $ac_top_builddir_sub in
31921 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31922 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31925 ac_abs_top_builddir
=$ac_pwd
31926 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31927 # for backward compatibility:
31928 ac_top_builddir
=$ac_top_build_prefix
31931 .
) # We are building in place.
31933 ac_top_srcdir
=$ac_top_builddir_sub
31934 ac_abs_top_srcdir
=$ac_pwd ;;
31935 [\\/]* | ?
:[\\/]* ) # Absolute name.
31936 ac_srcdir
=$srcdir$ac_dir_suffix;
31937 ac_top_srcdir
=$srcdir
31938 ac_abs_top_srcdir
=$srcdir ;;
31939 *) # Relative name.
31940 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31941 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31942 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31944 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31956 # If the template does not know about datarootdir, expand it.
31957 # FIXME: This hack should be removed a few years after 2.60.
31958 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31970 *datarootdir
*) ac_datarootdir_seen
=yes;;
31971 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31976 ac_datarootdir_hack='
31977 s&@datadir@&$datadir&g
31978 s&@docdir@&$docdir&g
31979 s&@infodir@&$infodir&g
31980 s&@localedir@&$localedir&g
31981 s&@mandir@&$mandir&g
31982 s&\\\${datarootdir}&$datarootdir&g' ;;
31986 # Neutralize VPATH when `$srcdir' = `.'.
31987 # Shell code in configure.ac might set extrasub.
31988 # FIXME: do we really want to maintain this feature?
31989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31990 ac_sed_extra="$ac_vpsub
31993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31995 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31996 s|@configure_input@|
$ac_sed_conf_input|
;t t
31997 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31998 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31999 s
&@srcdir@
&$ac_srcdir&;t t
32000 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32001 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32002 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32003 s
&@builddir@
&$ac_builddir&;t t
32004 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32005 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32006 $ac_datarootdir_hack
32008 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32009 if $ac_cs_awk_getline; then
32010 $AWK -f "$ac_tmp/subs.
awk"
32012 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
32014 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32017 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32019 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32021 which seems to be undefined. Please make sure it is defined" >&5
32022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32023 which seems to be undefined. Please make sure it is defined" >&2;}
32025 rm -f "$ac_tmp/stdin"
32027 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32028 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32036 if test x"$ac_file" != x-; then
32038 $as_echo "/* $configure_input */" \
32039 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32040 } >"$ac_tmp/config.h" \
32041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32042 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32047 mv "$ac_tmp/config.h" "$ac_file" \
32048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32051 $as_echo "/* $configure_input */" \
32052 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32053 || as_fn_error $? "could not create -" "$LINENO" 5
32061 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
32064 # Prefer the file from the source tree if names are identical.
32065 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32066 ac_source=$srcdir/$ac_source
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32070 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
32072 if test ! -r "$ac_source"; then
32073 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32077 # Try a relative symlink, then a hard link, then a copy.
32079 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32080 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32082 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32083 ln "$ac_source" "$ac_file" 2>/dev/null ||
32084 cp -p "$ac_source" "$ac_file" ||
32085 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32088 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32089 $as_echo "$as_me: executing $ac_file commands" >&6;}
32094 case $ac_file$ac_mode in
32095 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
32097 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
32098 for lang in $subdirs c-family common analyzer
32100 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
32102 "as":F) chmod +x as ;;
32103 "collect-ld":F) chmod +x collect-ld ;;
32104 "nm":F) chmod +x nm ;;
32106 case ${CONFIG_HEADERS} in
32107 *auto-host.h:config.in*)
32110 # Make sure all the subdirs exist.
32111 for d in $subdirs doc build common c-family
32113 test -d $d || mkdir $d
32123 ac_clean_files=$ac_clean_files_save
32125 test $ac_write_fail = 0 ||
32126 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32129 # configure is writing to config.log, and then calls config.status.
32130 # config.status does its own redirection, appending to config.log.
32131 # Unfortunately, on DOS this fails, as config.log is still kept open
32132 # by configure, so config.status won't be able to
write to it
; its
32133 # output is simply discarded. So we exec the FD to /dev/null,
32134 # effectively closing config.log, so it can be properly (re)opened and
32135 # appended to by config.status. When coming back to configure, we
32136 # need to make the FD available again.
32137 if test "$no_create" != yes; then
32139 ac_config_status_args
=
32140 test "$silent" = yes &&
32141 ac_config_status_args
="$ac_config_status_args --quiet"
32143 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
32145 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32146 # would make configure fail if this is the last instruction.
32147 $ac_cs_success || as_fn_exit
1
32149 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
32150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32151 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}