2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
764 CROSS_SYSTEM_HEADER_DIR
765 TARGET_SYSTEM_ROOT_DEFINE
771 ENABLE_BUILD_WITH_CXX
774 valgrind_path_defines
846 program_transform_name
857 ac_subst_files
='language_hooks'
859 enable_option_checking
864 enable_generated_files_in_srcdir
873 enable_gather_detailed_mem_stats
874 enable_build_with_cxx
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
899 enable_leading_mingw64_underscores
901 enable_win32_registry
908 enable_gnu_unique_object
909 enable_linker_build_id
913 enable_maintainer_mode
914 enable_version_specific_runtime_libs
918 ac_precious_vars
='build_alias
941 # Initialize some variables set by options.
943 ac_init_version
=false
944 ac_unrecognized_opts
=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name
=s
,x
,x
,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir
='${exec_prefix}/bin'
970 sbindir
='${exec_prefix}/sbin'
971 libexecdir
='${exec_prefix}/libexec'
972 datarootdir
='${prefix}/share'
973 datadir
='${datarootdir}'
974 sysconfdir
='${prefix}/etc'
975 sharedstatedir
='${prefix}/com'
976 localstatedir
='${prefix}/var'
977 includedir
='${prefix}/include'
978 oldincludedir
='/usr/include'
979 docdir
='${datarootdir}/doc/${PACKAGE}'
980 infodir
='${datarootdir}/info'
985 libdir
='${exec_prefix}/lib'
986 localedir
='${datarootdir}/locale'
987 mandir
='${datarootdir}/man'
993 # If the previous option needs an argument, assign it.
994 if test -n "$ac_prev"; then
995 eval $ac_prev=\
$ac_option
1001 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1013 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1014 bindir
=$ac_optarg ;;
1016 -build |
--build |
--buil |
--bui |
--bu)
1017 ac_prev
=build_alias
;;
1018 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1019 build_alias
=$ac_optarg ;;
1021 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1022 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1023 ac_prev
=cache_file
;;
1024 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1025 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1026 cache_file
=$ac_optarg ;;
1028 --config-cache |
-C)
1029 cache_file
=config.cache
;;
1031 -datadir |
--datadir |
--datadi |
--datad)
1033 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1034 datadir
=$ac_optarg ;;
1036 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1037 |
--dataroo |
--dataro |
--datar)
1038 ac_prev
=datarootdir
;;
1039 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1040 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1041 datarootdir
=$ac_optarg ;;
1043 -disable-* |
--disable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=no
;;
1059 -docdir |
--docdir |
--docdi |
--doc |
--do)
1061 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1062 docdir
=$ac_optarg ;;
1064 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1066 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1067 dvidir
=$ac_optarg ;;
1069 -enable-* |
--enable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=\
$ac_optarg ;;
1085 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1086 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1087 |
--exec |
--exe |
--ex)
1088 ac_prev
=exec_prefix
;;
1089 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1090 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1091 |
--exec=* |
--exe=* |
--ex=*)
1092 exec_prefix
=$ac_optarg ;;
1094 -gas |
--gas |
--ga |
--g)
1095 # Obsolete; use --with-gas.
1098 -help |
--help |
--hel |
--he |
-h)
1099 ac_init_help
=long
;;
1100 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1101 ac_init_help
=recursive
;;
1102 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1103 ac_init_help
=short
;;
1105 -host |
--host |
--hos |
--ho)
1106 ac_prev
=host_alias
;;
1107 -host=* |
--host=* |
--hos=* |
--ho=*)
1108 host_alias
=$ac_optarg ;;
1110 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1112 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1114 htmldir
=$ac_optarg ;;
1116 -includedir |
--includedir |
--includedi |
--included |
--include \
1117 |
--includ |
--inclu |
--incl |
--inc)
1118 ac_prev
=includedir
;;
1119 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1120 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1121 includedir
=$ac_optarg ;;
1123 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1125 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1126 infodir
=$ac_optarg ;;
1128 -libdir |
--libdir |
--libdi |
--libd)
1130 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1131 libdir
=$ac_optarg ;;
1133 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1134 |
--libexe |
--libex |
--libe)
1135 ac_prev
=libexecdir
;;
1136 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1137 |
--libexe=* |
--libex=* |
--libe=*)
1138 libexecdir
=$ac_optarg ;;
1140 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1141 ac_prev
=localedir
;;
1142 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1143 localedir
=$ac_optarg ;;
1145 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1146 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1147 ac_prev
=localstatedir
;;
1148 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1149 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1150 localstatedir
=$ac_optarg ;;
1152 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1154 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1155 mandir
=$ac_optarg ;;
1157 -nfp |
--nfp |
--nf)
1158 # Obsolete; use --without-fp.
1161 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1162 |
--no-cr |
--no-c |
-n)
1165 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1166 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1169 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1170 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1171 |
--oldin |
--oldi |
--old |
--ol |
--o)
1172 ac_prev
=oldincludedir
;;
1173 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1174 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1175 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1176 oldincludedir
=$ac_optarg ;;
1178 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1180 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1181 prefix
=$ac_optarg ;;
1183 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1184 |
--program-pre |
--program-pr |
--program-p)
1185 ac_prev
=program_prefix
;;
1186 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1187 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1188 program_prefix
=$ac_optarg ;;
1190 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1191 |
--program-suf |
--program-su |
--program-s)
1192 ac_prev
=program_suffix
;;
1193 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1194 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1195 program_suffix
=$ac_optarg ;;
1197 -program-transform-name |
--program-transform-name \
1198 |
--program-transform-nam |
--program-transform-na \
1199 |
--program-transform-n |
--program-transform- \
1200 |
--program-transform |
--program-transfor \
1201 |
--program-transfo |
--program-transf \
1202 |
--program-trans |
--program-tran \
1203 |
--progr-tra |
--program-tr |
--program-t)
1204 ac_prev
=program_transform_name
;;
1205 -program-transform-name=* |
--program-transform-name=* \
1206 |
--program-transform-nam=* |
--program-transform-na=* \
1207 |
--program-transform-n=* |
--program-transform-=* \
1208 |
--program-transform=* |
--program-transfor=* \
1209 |
--program-transfo=* |
--program-transf=* \
1210 |
--program-trans=* |
--program-tran=* \
1211 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1212 program_transform_name
=$ac_optarg ;;
1214 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1216 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1217 pdfdir
=$ac_optarg ;;
1219 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1221 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1224 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1225 |
-silent |
--silent |
--silen |
--sile |
--sil)
1228 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1230 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1232 sbindir
=$ac_optarg ;;
1234 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1235 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1236 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1238 ac_prev
=sharedstatedir
;;
1239 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1240 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1241 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1243 sharedstatedir
=$ac_optarg ;;
1245 -site |
--site |
--sit)
1247 -site=* |
--site=* |
--sit=*)
1250 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1252 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1253 srcdir
=$ac_optarg ;;
1255 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1256 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1257 ac_prev
=sysconfdir
;;
1258 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1259 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1260 sysconfdir
=$ac_optarg ;;
1262 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1263 ac_prev
=target_alias
;;
1264 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1265 target_alias
=$ac_optarg ;;
1267 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1270 -version |
--version |
--versio |
--versi |
--vers |
-V)
1271 ac_init_version
=: ;;
1274 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1277 as_fn_error
"invalid package name: $ac_useropt"
1278 ac_useropt_orig
=$ac_useropt
1279 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280 case $ac_user_opts in
1284 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285 ac_unrecognized_sep
=', ';;
1287 eval with_
$ac_useropt=\
$ac_optarg ;;
1289 -without-* |
--without-*)
1290 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1293 as_fn_error
"invalid package name: $ac_useropt"
1294 ac_useropt_orig
=$ac_useropt
1295 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep
=', ';;
1303 eval with_
$ac_useropt=no
;;
1306 # Obsolete; use --with-x.
1309 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1310 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1311 ac_prev
=x_includes
;;
1312 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1313 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1314 x_includes
=$ac_optarg ;;
1316 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1317 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1318 ac_prev
=x_libraries
;;
1319 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1320 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1321 x_libraries
=$ac_optarg ;;
1323 -*) as_fn_error
"unrecognized option: \`$ac_option'
1324 Try \`$0 --help' for more information."
1328 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 case $ac_envvar in #(
1331 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1332 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1334 eval $ac_envvar=\
$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1350 as_fn_error
"missing argument to $ac_option"
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1356 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1357 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1361 # Check all directory arguments for consistency.
1362 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363 datadir sysconfdir sharedstatedir localstatedir includedir \
1364 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365 libdir localedir mandir
1367 eval ac_val
=\$
$ac_var
1368 # Remove trailing slashes.
1371 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372 eval $ac_var=\
$ac_val;;
1374 # Be sure to have absolute directory names.
1376 [\\/$
]* | ?
:[\\/]* ) continue;;
1377 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1379 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1382 # There might be people who depend on the old broken behavior: `$host'
1383 # used to hold the argument of --host etc.
1384 # FIXME: To remove some day.
1387 target
=$target_alias
1389 # FIXME: To remove some day.
1390 if test "x$host_alias" != x
; then
1391 if test "x$build_alias" = x
; then
1392 cross_compiling
=maybe
1393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
1395 elif test "x$build_alias" != "x$host_alias"; then
1401 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1403 test "$silent" = yes && exec 6>/dev
/null
1406 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1407 ac_ls_di
=`ls -di .` &&
1408 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1409 as_fn_error
"working directory cannot be determined"
1410 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411 as_fn_error
"pwd does not report name of working directory"
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted
=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir
=`$as_dirname -- "$as_myself" ||
1419 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$as_myself" : 'X\(//\)[^/]' \| \
1421 X"$as_myself" : 'X\(//\)$' \| \
1422 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423 $as_echo X"$as_myself" |
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted
=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1450 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1452 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1454 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1456 # When building in place, set srcdir=.
1457 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 # Remove unnecessary trailing slashes from srcdir.
1461 # Double slashes in file names in object file debugging info
1462 # mess up M-x gdb in Emacs.
1464 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1466 for ac_var
in $ac_precious_vars; do
1467 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1468 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1469 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1470 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1474 # Report the --help message.
1476 if test "$ac_init_help" = "long"; then
1477 # Omit some internal or obsolete options to make the list less imposing.
1478 # This message is too long to be a string in the A/UX 3.1 sh.
1480 \`configure' configures this package to adapt to many kinds of systems.
1482 Usage: $0 [OPTION]... [VAR=VALUE]...
1484 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485 VAR=VALUE. See below for descriptions of some of the useful variables.
1487 Defaults for the options are specified in brackets.
1490 -h, --help display this help and exit
1491 --help=short display options specific to this package
1492 --help=recursive display the short help of all the included packages
1493 -V, --version display version information and exit
1494 -q, --quiet, --silent do not print \`checking...' messages
1495 --cache-file=FILE cache test results in FILE [disabled]
1496 -C, --config-cache alias for \`--cache-file=config.cache'
1497 -n, --no-create do not create output files
1498 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1500 Installation directories:
1501 --prefix=PREFIX install architecture-independent files in PREFIX
1502 [$ac_default_prefix]
1503 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 By default, \`make install' will install all the files in
1507 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509 for instance \`--prefix=\$HOME'.
1511 For better control, use the options below.
1513 Fine tuning of the installation directories:
1514 --bindir=DIR user executables [EPREFIX/bin]
1515 --sbindir=DIR system admin executables [EPREFIX/sbin]
1516 --libexecdir=DIR program executables [EPREFIX/libexec]
1517 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1518 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1543 --build=BUILD configure
for building on BUILD
[guessed
]
1544 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1545 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1549 if test -n "$ac_init_help"; then
1554 --disable-option-checking ignore unrecognized
--enable/--with options
1555 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1556 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1557 --enable-generated-files-in-srcdir
1558 put copies of generated files
in source dir
1559 intended
for creating
source tarballs
for users
1560 without texinfo bison or flex.
1561 --enable-werror-always enable -Werror despite compiler version
1562 --enable-checking=LIST
1563 enable expensive run-time checks. With LIST
,
1564 enable only specific categories of checks.
1565 Categories are
: yes,no
,all
,none
,release.
1566 Flags are
: assert
,df
,fold,gc
,gcac
,gimple
,misc
,
1567 rtlflag
,rtl
,runtime
,tree
,valgrind
,types.
1568 --enable-coverage=LEVEL
1569 enable compiler
's code coverage collection.
1570 Use to measure compiler performance and locate
1571 unused parts of the compiler. With LEVEL, specify
1572 optimization. Values are opt, noopt,
1574 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1575 --enable-build-with-cxx build with C++ compiler instead of C compiler
1576 --enable-multilib enable library support for multiple ABIs
1577 --enable-__cxa_atexit enable __cxa_atexit for C++
1578 --enable-decimal-float={no,yes,bid,dpd}
1579 enable decimal float extension to C. Selecting 'bid
'
1580 or 'dpd
' choses which decimal floating point format
1582 --enable-fixed-point enable fixed-point arithmetic extension to C
1583 --enable-threads enable thread usage for target GCC
1584 --enable-threads=LIB use LIB thread package for target GCC
1585 --enable-tls enable or disable generation of tls code
1586 overriding the assembler check for tls support
1587 --enable-objc-gc enable the use of Boehm's garbage collector with
1588 the GNU Objective-C runtime
1589 --disable-shared don
't provide a shared libgcc
1590 --enable-intermodule build the compiler in one step
1591 --enable-languages=LIST specify which front-ends to build
1592 --disable-rpath do not hardcode runtime library paths
1593 --enable-initfini-array use .init_array/.fini_array sections
1594 --enable-sjlj-exceptions
1595 arrange to use setjmp/longjmp exception handling
1596 --enable-secureplt enable -msecure-plt by default for PowerPC
1597 --enable-leading-mingw64-underscores
1598 Enable leading underscores on 64 bit mingw targets
1599 --enable-cld enable -mcld by default for 32bit x86
1600 --disable-win32-registry
1601 disable lookup of installation paths in the
1602 Registry on Windows hosts
1603 --enable-win32-registry enable registry lookup (default)
1604 --enable-win32-registry=KEY
1605 use KEY instead of GCC version as the last portion
1607 --enable-shared[=PKGS] build shared libraries [default=yes]
1608 --enable-static[=PKGS] build static libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --enable-comdat enable COMDAT group support
1613 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1615 --enable-linker-build-id
1616 compiler will always pass --build-id to linker
1617 --enable-maintainer-mode
1618 enable make rules and dependencies not useful
1619 (and sometimes confusing) to the casual installer
1620 --enable-version-specific-runtime-libs
1621 specify that runtime libraries should be
1622 installed in a compiler-specific directory
1623 --enable-plugin enable plugin support
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-build-libsubdir=DIR Directory where to find libraries for build system
1629 --with-local-prefix=DIR specifies directory to put local include
1630 --with-gxx-include-dir=DIR
1631 specifies directory to put g++ header files
1632 --with-cpp-install-dir=DIR
1633 install the user visible C preprocessor in DIR
1634 (relative to PREFIX) as well as PREFIX/bin
1635 --with-gnu-ld arrange to work with GNU ld.
1636 --with-ld arrange to use the specified ld (full pathname)
1637 --with-demangler-in-ld try to use demangler in GNU ld.
1638 --with-gnu-as arrange to work with GNU as
1639 --with-as arrange to use the specified as (full pathname)
1640 --with-stabs arrange to use stabs instead of host debug format
1641 --with-dwarf2 force the default debug format to be DWARF 2
1642 --with-build-sysroot=sysroot
1643 use sysroot as the system root during the build
1644 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1645 --with-specs=SPECS add SPECS to driver command-line processing
1646 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1647 --with-bugurl=URL Direct users to URL to report a bug
1648 --with-multilib-list Select multilibs (SH only)
1649 --with-gnu-ld assume the C compiler uses GNU ld default=no
1650 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1651 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1652 --with-system-libunwind use installed libunwind
1653 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1655 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1656 --with-plugin-ld=[ARG
] specify the plugin linker
1657 --with-long-double-128 Use
128-bit long double by default.
1658 --with-gc={page
,zone
} choose the garbage collection mechanism to use
1660 --with-system-zlib use installed libz
1661 --with-slibdir=DIR shared libraries
in DIR
[LIBDIR
]
1663 Some influential environment variables
:
1664 CC C compiler
command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1667 nonstandard directory
<lib dir
>
1668 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1669 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1670 you have headers
in a nonstandard directory
<include dir
>
1671 CXX C
++ compiler
command
1672 CXXFLAGS C
++ compiler flags
1674 CXXCPP C
++ preprocessor
1675 GMPLIBS How to link GMP
1676 GMPINC How to
find GMP include files
1677 PPLLIBS How to link PPL
1678 PPLINC How to
find PPL include files
1679 CLOOGLIBS How to link CLOOG
1680 CLOOGINC How to
find CLOOG include files
1681 LIBELFLIBS How to link libelf
1682 LIBELFINC How to
find libelf include files
1684 Use these variables to override the choices made by
`configure' or to help
1685 it to find libraries and programs with nonstandard names/locations.
1687 Report bugs to the package provider.
1692 if test "$ac_init_help" = "recursive"; then
1693 # If there are subdirs, report their specific --help.
1694 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1695 test -d "$ac_dir" ||
1696 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1704 # A ".." for each directory in $ac_dir_suffix.
1705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1706 case $ac_top_builddir_sub in
1707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1711 ac_abs_top_builddir=$ac_pwd
1712 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713 # for backward compatibility:
1714 ac_top_builddir=$ac_top_build_prefix
1717 .) # We are building in place.
1719 ac_top_srcdir=$ac_top_builddir_sub
1720 ac_abs_top_srcdir=$ac_pwd ;;
1721 [\\/]* | ?:[\\/]* ) # Absolute name.
1722 ac_srcdir=$srcdir$ac_dir_suffix;
1723 ac_top_srcdir=$srcdir
1724 ac_abs_top_srcdir=$srcdir ;;
1726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727 ac_top_srcdir=$ac_top_build_prefix$srcdir
1728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1730 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732 cd "$ac_dir" || { ac_status=$?; continue; }
1733 # Check for guested configure.
1734 if test -f "$ac_srcdir/configure.gnu"; then
1736 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737 elif test -f "$ac_srcdir/configure"; then
1739 $SHELL "$ac_srcdir/configure" --help=recursive
1741 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743 cd "$ac_pwd" || { ac_status=$?; break; }
1747 test -n "$ac_init_help" && exit $ac_status
1748 if $ac_init_version; then
1751 generated by GNU Autoconf 2.64
1753 Copyright (C) 2009 Free Software Foundation, Inc.
1754 This configure script is free software; the Free Software Foundation
1755 gives unlimited permission to copy, distribute and modify it.
1760 ## ------------------------ ##
1761 ## Autoconf initialization. ##
1762 ## ------------------------ ##
1764 # ac_fn_c_try_compile LINENO
1765 # --------------------------
1766 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1767 ac_fn_c_try_compile ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1774 *) ac_try_echo
=$ac_try;;
1776 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1780 if test -s conftest.err
; then
1781 grep -v '^ *+' conftest.err
>conftest.er1
1782 cat conftest.er1
>&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.
$ac_objext; then :
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.
$ac_ext >&5
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1800 } # ac_fn_c_try_compile
1802 # ac_fn_cxx_try_compile LINENO
1803 # ----------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_cxx_try_compile
()
1807 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1808 rm -f conftest.
$ac_objext
1809 if { { ac_try
="$ac_compile"
1811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_cxx_try_compile
1840 # ac_fn_c_try_cpp LINENO
1841 # ----------------------
1842 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1849 *) ac_try_echo
=$ac_try;;
1851 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855 if test -s conftest.err
; then
1856 grep -v '^ *+' conftest.err
>conftest.er1
1857 cat conftest.er1
>&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } >/dev
/null
&& {
1862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.
$ac_ext >&5
1872 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1877 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1878 # -------------------------------------------------------
1879 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1880 # the include files in INCLUDES and setting the cache variable VAR
1882 ac_fn_c_check_header_mongrel
()
1884 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1885 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1889 $as_echo_n "(cached) " >&6
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1895 # Is the header compilable?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1897 $as_echo_n "checking $2 usability... " >&6; }
1898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1903 if ac_fn_c_try_compile
"$LINENO"; then :
1904 ac_header_compiler
=yes
1906 ac_header_compiler
=no
1908 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1910 $as_echo "$ac_header_compiler" >&6; }
1912 # Is the header present?
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1914 $as_echo_n "checking $2 presence... " >&6; }
1915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1919 if ac_fn_c_try_cpp
"$LINENO"; then :
1920 ac_header_preproc
=yes
1922 ac_header_preproc
=no
1924 rm -f conftest.err conftest.
$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1926 $as_echo "$ac_header_preproc" >&6; }
1928 # So? What about this header?
1929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1932 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1938 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1940 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1942 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1944 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1946 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1952 $as_echo_n "(cached) " >&6
1954 eval "$3=\$ac_header_compiler"
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1962 } # ac_fn_c_check_header_mongrel
1964 # ac_fn_c_try_run LINENO
1965 # ----------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1967 # that executables *can* be run.
1970 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1971 if { { ac_try
="$ac_link"
1973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>&5
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1981 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1982 { { case "(($ac_try" in
1983 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1984 *) ac_try_echo
=$ac_try;;
1986 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_try") 2>&5
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; }; }; then :
1994 $as_echo "$as_me: program exited with status $ac_status" >&5
1995 $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.
$ac_ext >&5
1998 ac_retval
=$ac_status
2000 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2006 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists and can be compiled using the include files in
2009 # INCLUDES, setting the cache variable VAR accordingly.
2010 ac_fn_c_check_header_compile
()
2012 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2018 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2023 if ac_fn_c_try_compile
"$LINENO"; then :
2028 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2035 } # ac_fn_c_check_header_compile
2037 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2038 # --------------------------------------------
2039 # Tries to find the compile-time value of EXPR in a program that includes
2040 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2042 ac_fn_c_compute_int
()
2044 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2045 if test "$cross_compiling" = yes; then
2046 # Depending upon the size, compute the lo and hi bounds.
2047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2053 static int test_array [1 - 2 * !(($2) >= 0)];
2060 if ac_fn_c_try_compile
"$LINENO"; then :
2063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2069 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076 if ac_fn_c_try_compile
"$LINENO"; then :
2077 ac_hi
=$ac_mid; break
2079 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2080 if test $ac_lo -le $ac_mid; then
2084 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2095 static int test_array [1 - 2 * !(($2) < 0)];
2102 if ac_fn_c_try_compile
"$LINENO"; then :
2105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2106 /* end confdefs.h. */
2111 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2118 if ac_fn_c_try_compile
"$LINENO"; then :
2119 ac_lo
=$ac_mid; break
2121 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2122 if test $ac_mid -le $ac_hi; then
2126 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2136 # Binary search between lo and hi bounds.
2137 while test "x$ac_lo" != "x$ac_hi"; do
2138 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2152 if ac_fn_c_try_compile
"$LINENO"; then :
2155 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2160 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2167 static long int longval () { return $2; }
2168 static unsigned long int ulongval () { return $2; }
2175 FILE *f = fopen ("conftest.val", "w");
2180 long int i = longval ();
2183 fprintf (f, "%ld", i);
2187 unsigned long int i = ulongval ();
2190 fprintf (f, "%lu", i);
2192 /* Do not output a trailing newline, as this causes \r\n confusion
2193 on some platforms. */
2194 return ferror (f) || fclose (f) != 0;
2200 if ac_fn_c_try_run
"$LINENO"; then :
2201 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2205 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2206 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2213 } # ac_fn_c_compute_int
2215 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2216 # -------------------------------------------
2217 # Tests whether TYPE exists after having included INCLUDES, setting cache
2218 # variable VAR accordingly.
2219 ac_fn_c_check_type
()
2221 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2225 $as_echo_n "(cached) " >&6
2228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2229 /* end confdefs.h. */
2240 if ac_fn_c_try_compile
"$LINENO"; then :
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2253 if ac_fn_c_try_compile
"$LINENO"; then :
2258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2267 } # ac_fn_c_check_type
2269 # ac_fn_c_find_intX_t LINENO BITS VAR
2270 # -----------------------------------
2271 # Finds a signed integer type with width BITS, setting cache variable VAR
2273 ac_fn_c_find_intX_t
()
2275 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2277 $as_echo_n "checking for int$2_t... " >&6; }
2278 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2279 $as_echo_n "(cached) " >&6
2282 for ac_type
in int
$2_t 'int' 'long int' \
2283 'long long int' 'short int' 'signed char'; do
2284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2286 $ac_includes_default
2290 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2297 if ac_fn_c_try_compile
"$LINENO"; then :
2298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 $ac_includes_default
2304 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2305 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2312 if ac_fn_c_try_compile
"$LINENO"; then :
2319 eval "$3=\$ac_type" ;;
2322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2326 if test "x$as_val" = x
""no
; then :
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2335 $as_echo "$ac_res" >&6; }
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2338 } # ac_fn_c_find_intX_t
2340 # ac_fn_c_try_link LINENO
2341 # -----------------------
2342 # Try to link conftest.$ac_ext, and return whether this succeeded.
2345 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2346 rm -f conftest.
$ac_objext conftest
$ac_exeext
2347 if { { ac_try
="$ac_link"
2349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2353 $as_echo "$ac_try_echo"; } >&5
2354 (eval "$ac_link") 2>conftest.err
2356 if test -s conftest.err; then
2357 grep -v '^ *+' conftest.err >conftest.er1
2358 cat conftest.er1 >&5
2359 mv -f conftest.er1 conftest.err
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; } && {
2363 test -z "$ac_c_werror_flag" ||
2364 test ! -s conftest.err
2365 } && test -s conftest$ac_exeext && {
2366 test "$cross_compiling" = yes ||
2367 $as_test_x conftest$ac_exeext
2371 $as_echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2376 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2377 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2378 # interfere with the next link command; also delete a directory that is
2379 # left behind by Apple's compiler. We do this before executing the actions.
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2384 } # ac_fn_c_try_link
2386 # ac_fn_c_find_uintX_t LINENO BITS VAR
2387 # ------------------------------------
2388 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2390 ac_fn_c_find_uintX_t ()
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2394 $as_echo_n "checking for uint$2_t... " >&6; }
2395 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2396 $as_echo_n "(cached) " >&6
2399 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2400 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2403 $ac_includes_default
2407 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2414 if ac_fn_c_try_compile "$LINENO"; then :
2419 eval "$3=\$ac_type" ;;
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 if test "x$as_val" = x""no; then :
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2436 } # ac_fn_c_find_uintX_t
2438 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2439 # ----------------------------------------------
2440 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2441 ac_fn_c_check_header_preproc ()
2443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2445 $as_echo_n "checking for $2... " >&6; }
2446 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2447 $as_echo_n "(cached) " >&6
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2453 if ac_fn_c_try_cpp "$LINENO"; then :
2458 rm -f conftest.err conftest.$ac_ext
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2465 } # ac_fn_c_check_header_preproc
2467 # ac_fn_c_check_func LINENO FUNC VAR
2468 # ----------------------------------
2469 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2470 ac_fn_c_check_func ()
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2476 $as_echo_n "(cached) " >&6
2478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h. */
2480 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2482 #define $2 innocuous_$2
2484 /* System header to define __stub macros and hopefully few prototypes,
2485 which can conflict with char $2 (); below.
2486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2487 <limits.h> exists even on freestanding compilers. */
2490 # include <limits.h>
2492 # include <assert.h>
2497 /* Override any GCC internal prototype to avoid an error.
2498 Use char because int might match the return type of a GCC
2499 builtin and then its argument prototype would still apply. */
2504 /* The GNU C library defines this for functions which it implements
2505 to always fail with ENOSYS. Some functions are actually named
2506 something starting with __ and the normal name is an alias. */
2507 #if defined __stub_$2 || defined __stub___$2
2519 if ac_fn_c_try_link "$LINENO"; then :
2524 rm -f core conftest.err conftest.$ac_objext \
2525 conftest$ac_exeext conftest.$ac_ext
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532 } # ac_fn_c_check_func
2534 # ac_fn_cxx_try_cpp LINENO
2535 # ------------------------
2536 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2537 ac_fn_cxx_try_cpp ()
2539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2540 if { { ac_try="$ac_cpp conftest.$ac_ext"
2542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2543 *) ac_try_echo
=$ac_try;;
2545 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2549 if test -s conftest.err
; then
2550 grep -v '^ *+' conftest.err
>conftest.er1
2551 cat conftest.er1
>&5
2552 mv -f conftest.er1 conftest.err
2554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2555 test $ac_status = 0; } >/dev
/null
&& {
2556 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2557 test ! -s conftest.err
2561 $as_echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.
$ac_ext >&5
2566 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2569 } # ac_fn_cxx_try_cpp
2571 # ac_fn_cxx_try_link LINENO
2572 # -------------------------
2573 # Try to link conftest.$ac_ext, and return whether this succeeded.
2574 ac_fn_cxx_try_link
()
2576 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2577 rm -f conftest.
$ac_objext conftest
$ac_exeext
2578 if { { ac_try
="$ac_link"
2580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2584 $as_echo "$ac_try_echo"; } >&5
2585 (eval "$ac_link") 2>conftest.err
2587 if test -s conftest.err; then
2588 grep -v '^ *+' conftest.err >conftest.er1
2589 cat conftest.er1 >&5
2590 mv -f conftest.er1 conftest.err
2592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2593 test $ac_status = 0; } && {
2594 test -z "$ac_cxx_werror_flag" ||
2595 test ! -s conftest.err
2596 } && test -s conftest$ac_exeext && {
2597 test "$cross_compiling" = yes ||
2598 $as_test_x conftest$ac_exeext
2602 $as_echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2609 # interfere with the next link command; also delete a directory that is
2610 # left behind by Apple's compiler. We do this before executing the actions.
2611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 } # ac_fn_cxx_try_link
2616 cat >config.log <<_ACEOF
2617 This file contains any messages produced by compilers while
2618 running configure, to aid debugging if configure makes a mistake.
2620 It was created by $as_me, which was
2621 generated by GNU Autoconf 2.64. Invocation command line was
2633 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2634 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2635 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2636 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2637 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2639 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2640 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2642 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2643 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2644 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2645 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2646 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2647 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2648 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 $as_echo "PATH: $as_dir"
2673 # Keep a trace of the command line.
2674 # Strip out --no-create and --no-recursion so they do not pile up.
2675 # Strip out --silent because we don't want to record it for future runs.
2676 # Also quote any args containing shell meta-characters.
2677 # Make two passes to allow for proper duplicate-argument suppression.
2681 ac_must_keep_next=false
2687 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2689 | -silent | --silent | --silen | --sile | --sil)
2692 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2695 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2697 as_fn_append ac_configure_args1 " '$ac_arg'"
2698 if test $ac_must_keep_next = true; then
2699 ac_must_keep_next=false # Got value, back to normal.
2702 *=* | --config-cache | -C | -disable-* | --disable-* \
2703 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2704 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2705 | -with-* | --with-* | -without-* | --without-* | --x)
2706 case "$ac_configure_args0 " in
2707 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2710 -* ) ac_must_keep_next=true ;;
2713 as_fn_append ac_configure_args " '$ac_arg'"
2718 { ac_configure_args0=; unset ac_configure_args0;}
2719 { ac_configure_args1=; unset ac_configure_args1;}
2721 # When interrupted or exit'd, cleanup temporary files, and complete
2722 # config.log. We remove comments because anyway the quotes in there
2723 # would cause problems or look ugly.
2724 # WARNING: Use '\'' to represent an apostrophe within the trap.
2725 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2726 trap 'exit_status=$?
2727 # Save into config.log some information that might help in debugging.
2732 ## ---------------- ##
2733 ## Cache variables. ##
2734 ## ---------------- ##
2737 # The following way of writing the cache mishandles newlines in values,
2739 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2740 eval ac_val=\$$ac_var
2744 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2745 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2748 _ | IFS | as_nl) ;; #(
2749 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2750 *) { eval $ac_var=; unset $ac_var;} ;;
2755 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2756 *${as_nl}ac_space=\ *)
2758 "s/'\''/'\''\\\\'\'''\''/g;
2759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2762 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2770 ## ----------------- ##
2771 ## Output variables. ##
2772 ## ----------------- ##
2775 for ac_var in $ac_subst_vars
2777 eval ac_val=\$$ac_var
2779 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2781 $as_echo "$ac_var='\''$ac_val'\''"
2785 if test -n "$ac_subst_files"; then
2787 ## ------------------- ##
2788 ## File substitutions. ##
2789 ## ------------------- ##
2792 for ac_var in $ac_subst_files
2794 eval ac_val=\$$ac_var
2796 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2798 $as_echo "$ac_var='\''$ac_val'\''"
2803 if test -s confdefs.h; then
2813 test "$ac_signal" != 0 &&
2814 $as_echo "$as_me: caught signal $ac_signal"
2815 $as_echo "$as_me: exit $exit_status"
2817 rm -f core *.core core.conftest.* &&
2818 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2821 for ac_signal in 1 2 13 15; do
2822 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2826 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2827 rm -f -r conftest* confdefs.h
2829 $as_echo "/* confdefs.h */" > confdefs.h
2831 # Predefined preprocessor variables.
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_NAME "$PACKAGE_NAME"
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_STRING "$PACKAGE_STRING"
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2853 cat >>confdefs.h <<_ACEOF
2854 #define PACKAGE_URL "$PACKAGE_URL"
2858 # Let the site file select an alternate cache file if it wants to.
2859 # Prefer an explicitly selected file to automatically selected ones.
2862 if test -n "$CONFIG_SITE"; then
2863 ac_site_file1=$CONFIG_SITE
2864 elif test "x$prefix" != xNONE; then
2865 ac_site_file1=$prefix/share/config.site
2866 ac_site_file2=$prefix/etc/config.site
2868 ac_site_file1=$ac_default_prefix/share/config.site
2869 ac_site_file2=$ac_default_prefix/etc/config.site
2871 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2873 test "x$ac_site_file" = xNONE && continue
2874 if test -r "$ac_site_file"; then
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2876 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2877 sed 's/^/| /' "$ac_site_file" >&5
2882 if test -r "$cache_file"; then
2883 # Some versions of bash will fail to source /dev/null (special
2884 # files actually), so we avoid doing that.
2885 if test -f "$cache_file"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2887 $as_echo "$as_me: loading cache $cache_file" >&6;}
2889 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2890 *) . "./$cache_file";;
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2895 $as_echo "$as_me: creating cache $cache_file" >&6;}
2899 # Check that the precious variables saved in the cache have kept the same
2901 ac_cache_corrupted=false
2902 for ac_var in $ac_precious_vars; do
2903 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2904 eval ac_new_set=\$ac_env_${ac_var}_set
2905 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2906 eval ac_new_val=\$ac_env_${ac_var}_value
2907 case $ac_old_set,$ac_new_set in
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2910 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2914 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2915 ac_cache_corrupted=: ;;
2918 if test "x$ac_old_val" != "x$ac_new_val"; then
2919 # differences in whitespace do not lead to failure.
2920 ac_old_val_w=`echo x
$ac_old_val`
2921 ac_new_val_w=`echo x
$ac_new_val`
2922 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2924 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2925 ac_cache_corrupted=:
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2928 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2929 eval $ac_var=\$ac_old_val
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2932 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2934 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2937 # Pass precious variables to config.status.
2938 if test "$ac_new_set" = set; then
2940 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2941 *) ac_arg=$ac_var=$ac_new_val ;;
2943 case " $ac_configure_args " in
2944 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2945 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2949 if $ac_cache_corrupted; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2953 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2954 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2956 ## -------------------- ##
2957 ## Main body of script. ##
2958 ## -------------------- ##
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2971 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2974 gcc_version=`cat $srcdir/BASE-VER
`
2976 # Determine the host, build, and target systems
2978 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2979 for ac_t in install-sh install.sh shtool; do
2980 if test -f "$ac_dir/$ac_t"; then
2982 ac_install_sh="$ac_aux_dir/$ac_t -c"
2987 if test -z "$ac_aux_dir"; then
2988 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2991 # These three variables are undocumented and unsupported,
2992 # and are intended to be withdrawn in a future Autoconf release.
2993 # They can cause serious problems if a builder's source tree is in a directory
2994 # whose full name contains unusual characters.
2995 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2996 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2997 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3000 # Make sure we can run config.sub.
3001 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3002 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3005 $as_echo_n "checking build system type... " >&6; }
3006 if test "${ac_cv_build+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 ac_build_alias=$build_alias
3010 test "x$ac_build_alias" = x &&
3011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3012 test "x$ac_build_alias" = x &&
3013 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3015 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3019 $as_echo "$ac_cv_build" >&6; }
3020 case $ac_cv_build in
3022 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 ac_save_IFS=$IFS; IFS='-'
3031 # Remember, the first character of IFS is used to create $*,
3032 # except with old shells:
3035 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3039 $as_echo_n "checking host system type... " >&6; }
3040 if test "${ac_cv_host+set}" = set; then :
3041 $as_echo_n "(cached) " >&6
3043 if test "x$host_alias" = x; then
3044 ac_cv_host=$ac_cv_build
3046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3047 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3052 $as_echo "$ac_cv_host" >&6; }
3055 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 ac_save_IFS=$IFS; IFS='-'
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3068 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3072 $as_echo_n "checking target system type... " >&6; }
3073 if test "${ac_cv_target+set}" = set; then :
3074 $as_echo_n "(cached) " >&6
3076 if test "x$target_alias" = x; then
3077 ac_cv_target=$ac_cv_host
3079 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3080 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3085 $as_echo "$ac_cv_target" >&6; }
3086 case $ac_cv_target in
3088 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3090 target=$ac_cv_target
3091 ac_save_IFS=$IFS; IFS='-'
3097 # Remember, the first character of IFS is used to create $*,
3098 # except with old shells:
3101 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3104 # The aliases save the names the user supplied, while $host etc.
3105 # will get canonicalized.
3106 test -n "$target_alias" &&
3107 test "$program_prefix$program_suffix$program_transform_name" = \
3109 program_prefix=${target_alias}-
3111 # Determine the noncanonical target name, for directory use.
3112 case ${build_alias} in
3113 "") build_noncanonical=${build} ;;
3114 *) build_noncanonical=${build_alias} ;;
3117 case ${host_alias} in
3118 "") host_noncanonical=${build_noncanonical} ;;
3119 *) host_noncanonical=${host_alias} ;;
3122 case ${target_alias} in
3123 "") target_noncanonical=${host_noncanonical} ;;
3124 *) target_noncanonical=${target_alias} ;;
3130 # Determine the target- and build-specific subdirectories
3132 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3133 # have matching libraries, they should use host libraries: Makefile.tpl
3134 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3135 # However, they still use the build modules, because the corresponding
3136 # host modules (e.g. bison) are only built for the host when bootstrap
3138 # - build_subdir is where we find build modules, and never changes.
3139 # - build_libsubdir is where we find build libraries, and can be overridden.
3141 # Prefix 'build-' so this never conflicts with target_subdir.
3142 build_subdir="build-${build_noncanonical}"
3144 # Check whether --with-build-libsubdir was given.
3145 if test "${with_build_libsubdir+set}" = set; then :
3146 withval=$with_build_libsubdir; build_libsubdir="$withval"
3148 build_libsubdir="$build_subdir"
3151 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3152 if ( test $srcdir = . && test -d gcc ) \
3153 || test -d $srcdir/../host-${host_noncanonical}; then
3154 host_subdir="host-${host_noncanonical}"
3159 target_subdir=${target_noncanonical}
3162 # Set program_transform_name
3163 test "$program_prefix" != NONE &&
3164 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3165 # Use a double $ so make ignores it.
3166 test "$program_suffix" != NONE &&
3167 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3168 # Double any \ or $.
3169 # By default was `s
,x
,x
', remove it if useless.
3170 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3171 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3174 # Check for bogus environment variables.
3175 # Test if LIBRARY_PATH contains the notation for the current directory
3176 # since this would lead to problems installing/building glibc.
3177 # LIBRARY_PATH contains the current directory if one of the following
3179 # - one of the terminals (":" and ";") is the first or last sign
3180 # - two terminals occur directly after each other
3181 # - the path contains an element with a dot in it
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3183 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3184 case ${LIBRARY_PATH} in
3185 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3186 library_path_setting="contains current directory"
3189 library_path_setting="ok"
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3193 $as_echo "$library_path_setting" >&6; }
3194 if test "$library_path_setting" != "ok"; then
3196 *** LIBRARY_PATH shouldn't contain the current directory when
3197 *** building gcc. Please change the environment variable
3198 *** and run configure again.
" "$LINENO" 5
3201 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3202 # since this would lead to problems installing/building glibc.
3203 # GCC_EXEC_PREFIX contains the current directory if one of the following
3205 # - one of the terminals (":" and ";") is the first or last sign
3206 # - two terminals occur directly after each other
3207 # - the path contains an element with a dot in it
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3209 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3210 case ${GCC_EXEC_PREFIX} in
3211 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3212 gcc_exec_prefix_setting="contains current directory
"
3215 gcc_exec_prefix_setting="ok
"
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3219 $as_echo "$gcc_exec_prefix_setting" >&6; }
3220 if test "$gcc_exec_prefix_setting" != "ok
"; then
3222 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3223 *** building gcc. Please change the environment variable
3224 *** and run configure again." "$LINENO" 5
3231 # Specify the local prefix
3234 # Check whether --with-local-prefix was given.
3235 if test "${with_local_prefix+set}" = set; then :
3236 withval=$with_local_prefix; case "${withval}" in
3237 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3239 *) local_prefix=$with_local_prefix ;;
3244 # Default local prefix if it is empty
3245 if test x$local_prefix = x; then
3246 local_prefix=/usr/local
3249 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3250 # passed in by the toplevel make and thus we'd get different behavior
3251 # depending on where we built the sources.
3252 gcc_gxx_include_dir
=
3253 # Specify the g++ header file directory
3255 # Check whether --with-gxx-include-dir was given.
3256 if test "${with_gxx_include_dir+set}" = set; then :
3257 withval
=$with_gxx_include_dir; case "${withval}" in
3258 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3260 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3265 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3266 if test x
${gcc_gxx_include_dir} = x
; then
3267 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3268 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3270 libstdcxx_incdir
='include/c++/$(version)'
3271 if test x
$host != x
$target; then
3272 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3274 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3279 # Check whether --with-cpp_install_dir was given.
3280 if test "${with_cpp_install_dir+set}" = set; then :
3281 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3282 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3283 elif test x
$withval != xno
; then
3284 cpp_install_dir
=$withval
3289 # We would like to our source tree to be readonly. However when releases or
3290 # pre-releases are generated, the flex/bison generated files as well as the
3291 # various formats of manuals need to be included along with the rest of the
3292 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3296 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3297 # Check whether --enable-generated-files-in-srcdir was given.
3298 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3299 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3301 generated_files_in_srcdir
=no
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3306 $as_echo "$generated_files_in_srcdir" >&6; }
3308 if test "$generated_files_in_srcdir" = "yes"; then
3315 # -------------------
3316 # Find default linker
3317 # -------------------
3321 # Check whether --with-gnu-ld was given.
3322 if test "${with_gnu_ld+set}" = set; then :
3323 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3329 # With pre-defined ld
3331 # Check whether --with-ld was given.
3332 if test "${with_ld+set}" = set; then :
3333 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3336 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3337 if test ! -x "$DEFAULT_LINKER"; then
3338 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3339 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3343 cat >>confdefs.h
<<_ACEOF
3344 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3349 gnu_ld
=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3351 cat >>confdefs.h
<<_ACEOF
3352 #define HAVE_GNU_LD $gnu_ld
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3357 $as_echo_n "checking whether a default linker was specified... " >&6; }
3358 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3359 if test x
"$gnu_ld_flag" = x
"no"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3361 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3364 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3371 # With demangler in GNU ld
3373 # Check whether --with-demangler-in-ld was given.
3374 if test "${with_demangler_in_ld+set}" = set; then :
3375 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3381 # ----------------------
3382 # Find default assembler
3383 # ----------------------
3387 # Check whether --with-gnu-as was given.
3388 if test "${with_gnu_as+set}" = set; then :
3389 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3396 # Check whether --with-as was given.
3397 if test "${with_as+set}" = set; then :
3398 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3401 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3402 if test ! -x "$DEFAULT_ASSEMBLER"; then
3403 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3404 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3408 cat >>confdefs.h
<<_ACEOF
3409 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3414 gnu_as
=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3416 cat >>confdefs.h
<<_ACEOF
3417 #define HAVE_GNU_AS $gnu_as
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3422 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3423 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3424 if test x
"$gas_flag" = x
"no"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3426 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3429 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3440 # If a non-executable a.out is present (e.g. created by GNU as above even if
3441 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3442 # file, even when creating an executable, so an execution test fails.
3443 # Remove possible default executable files to avoid this.
3445 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3446 # Autoconf includes it.
3447 rm -f a.out a.exe b.out
3449 # Find the native compiler
3451 ac_cpp
='$CPP $CPPFLAGS'
3452 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3457 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC
="$CC" # Let the user override the test.
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_exec_ext
in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3494 if test -z "$ac_cv_prog_CC"; then
3496 # Extract the first word of "gcc", so it can be a program name with args.
3497 set dummy gcc
; ac_word
=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CC
="gcc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3532 if test "x$ac_ct_CC" = x
; then
3535 case $cross_compiling:$ac_tool_warned in
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned
=yes ;;
3547 if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if test "${ac_cv_prog_CC+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC
="$CC" # Let the user override the test.
3559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir
=.
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 if test -n "$CC"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3579 $as_echo "$CC" >&6; }
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3588 if test -z "$CC"; then
3589 # Extract the first word of "cc", so it can be a program name with args.
3590 set dummy cc
; ac_word
=$2
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3592 $as_echo_n "checking for $ac_word... " >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then :
3594 $as_echo_n "(cached) " >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC
="$CC" # Let the user override the test.
3600 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir
=.
3605 for ac_exec_ext
in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3608 ac_prog_rejected
=yes
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 if test $ac_prog_rejected = yes; then
3620 # We found a bogon in the path, so make sure we never use it.
3621 set dummy
$ac_cv_prog_CC
3623 if test $# != 0; then
3624 # We chose a different compiler from the bogus one.
3625 # However, it has the same basename, so the bogon will be chosen
3626 # first if we set CC to just the basename; use the full file name.
3628 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3634 if test -n "$CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3636 $as_echo "$CC" >&6; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 for ac_prog
in cl.exe
3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC
="$CC" # Let the user override the test.
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir
=.
3663 for ac_exec_ext
in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$CC"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3685 test -n "$CC" && break
3688 if test -z "$CC"; then
3690 for ac_prog
in cl.exe
3692 # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy
$ac_prog; ac_word
=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
3699 if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir
=.
3707 for ac_exec_ext
in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_ac_ct_CC
="$ac_prog"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3722 $as_echo "$ac_ct_CC" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3729 test -n "$ac_ct_CC" && break
3732 if test "x$ac_ct_CC" = x
; then
3735 case $cross_compiling:$ac_tool_warned in
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned
=yes ;;
3748 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750 as_fn_error
"no acceptable C compiler found in \$PATH
3751 See \`config.log' for more details." "$LINENO" 5; }
3753 # Provide some information about the compiler.
3754 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3757 for ac_option
in --version -v -V -qversion; do
3758 { { ac_try
="$ac_compiler $ac_option >&5"
3760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764 $as_echo "$ac_try_echo"; } >&5
3765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3767 if test -s conftest.err; then
3769 ... rest of stderr output deleted ...
3770 10q' conftest.err >conftest.er1
3771 cat conftest.er1 >&5
3772 rm -f conftest.er1 conftest.err
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3789 ac_clean_files_save=$ac_clean_files
3790 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3791 # Try to create an executable without -o first, disregard a.out.
3792 # It will help us diagnose broken compilers, and finding out an intuition
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3795 $as_echo_n "checking for C compiler default output file name... " >&6; }
3796 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3798 # The possible output files:
3799 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3802 for ac_file in $ac_files
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3811 if { { ac_try="$ac_link_default"
3813 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3814 *) ac_try_echo
=$ac_try;;
3816 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_link_default") 2>&5
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; then :
3822 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3823 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3824 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3825 # so that the user can short-circuit this test for compilers unknown to
3827 for ac_file
in $ac_files ''
3829 test -f "$ac_file" ||
continue
3831 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3834 # We found the default executable, but exeext='' is most
3838 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3840 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3842 # We set ac_cv_exeext here because the later test for it is not
3843 # safe: cross compilers may not add the suffix if given an `-o'
3844 # argument, so we may need to know it at that point already.
3845 # Even if this section looks crufty: it has the advantage of
3852 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3858 $as_echo "$ac_file" >&6; }
3859 if test -z "$ac_file"; then :
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.
$ac_ext >&5
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865 { as_fn_set_status
77
3866 as_fn_error
"C compiler cannot create executables
3867 See \`config.log' for more details." "$LINENO" 5; }; }
3869 ac_exeext
=$ac_cv_exeext
3871 # Check that the compiler produces executables we can run. If not, either
3872 # the compiler is broken, or we cross compile.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3874 $as_echo_n "checking whether the C compiler works... " >&6; }
3875 # If not cross compiling, check that we can run a simple program.
3876 if test "$cross_compiling" != yes; then
3877 if { ac_try
='./$ac_file'
3878 { { case "(($ac_try" in
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_try") 2>&5
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; }; then
3890 if test "$cross_compiling" = maybe; then
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error "cannot run C compiled programs.
3896 If you meant to cross compile
, use \
`--host'.
3897 See \`config.log
' for more details." "$LINENO" 5; }
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3902 $as_echo "yes" >&6; }
3904 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3905 ac_clean_files=$ac_clean_files_save
3906 # Check that the compiler produces executables we can run. If not, either
3907 # the compiler is broken, or we cross compile.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3909 $as_echo_n "checking whether we are cross compiling... " >&6; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3911 $as_echo "$cross_compiling" >&6; }
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3914 $as_echo_n "checking for suffix of executables... " >&6; }
3915 if { { ac_try="$ac_link"
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_link") 2>&5
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; then :
3926 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3927 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3928 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3930 for ac_file
in conftest.exe conftest conftest.
*; do
3931 test -f "$ac_file" ||
continue
3933 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3934 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3942 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3943 See \`config.log' for more details." "$LINENO" 5; }
3945 rm -f conftest
$ac_cv_exeext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3947 $as_echo "$ac_cv_exeext" >&6; }
3949 rm -f conftest.
$ac_ext
3950 EXEEXT
=$ac_cv_exeext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3953 $as_echo_n "checking for suffix of object files... " >&6; }
3954 if test "${ac_cv_objext+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3968 rm -f conftest.o conftest.obj
3969 if { { ac_try
="$ac_compile"
3971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_compile") 2>&5
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; then :
3980 for ac_file in conftest.o conftest.obj conftest.*; do
3981 test -f "$ac_file" || continue;
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 as_fn_error "cannot compute suffix of object files
: cannot compile
3995 See \
`config.log' for more details." "$LINENO" 5; }
3997 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4000 $as_echo "$ac_cv_objext" >&6; }
4001 OBJEXT=$ac_cv_objext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4004 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4005 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4022 if ac_fn_c_try_compile "$LINENO"; then :
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4032 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4033 if test $ac_compiler_gnu = yes; then
4038 ac_test_CFLAGS=${CFLAGS+set}
4039 ac_save_CFLAGS=$CFLAGS
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4041 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4042 if test "${ac_cv_prog_cc_g+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4045 ac_save_c_werror_flag=$ac_c_werror_flag
4046 ac_c_werror_flag=yes
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4060 if ac_fn_c_try_compile "$LINENO"; then :
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4075 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4091 if ac_fn_c_try_compile "$LINENO"; then :
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_c_werror_flag=$ac_save_c_werror_flag
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4102 $as_echo "$ac_cv_prog_cc_g" >&6; }
4103 if test "$ac_test_CFLAGS" = set; then
4104 CFLAGS=$ac_save_CFLAGS
4105 elif test $ac_cv_prog_cc_g = yes; then
4106 if test "$GCC" = yes; then
4112 if test "$GCC" = yes; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4119 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4120 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4123 ac_cv_prog_cc_c89=no
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4129 #include <sys/types.h>
4130 #include <sys/stat.h>
4131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4132 struct buf { int x; };
4133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4134 static char *e (p, i)
4140 static char *f (char * (*g) (char **, int), char **p, ...)
4145 s = g (p, va_arg (v,int));
4150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4151 function prototypes and stuff, but not '\xHH' hex character constants.
4152 These don't provoke an error unfortunately, instead are silently treated
4153 as 'x'. The following induces an error, until -std is added to get
4154 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4155 array size at least. It's necessary to write '\x00'==0 to get something
4156 that's true only with -std. */
4157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4160 inside strings and character constants. */
4162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4164 int test (int i, double x);
4165 struct s1 {int (*f) (int a);};
4166 struct s2 {int (*f) (double a);};
4167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4173 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4179 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4181 CC="$ac_save_CC $ac_arg"
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_prog_cc_c89=$ac_arg
4185 rm -f core conftest.err conftest.$ac_objext
4186 test "x$ac_cv_prog_cc_c89" != "xno" && break
4188 rm -f conftest.$ac_ext
4193 case "x$ac_cv_prog_cc_c89" in
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 $as_echo "none needed" >&6; } ;;
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4199 $as_echo "unsupported" >&6; } ;;
4201 CC="$CC $ac_cv_prog_cc_c89"
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4203 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4205 if test "x$ac_cv_prog_cc_c89" != xno; then :
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 if test "x$CC" != xcc; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4217 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4220 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4222 set dummy $CC; ac_cc=`$as_echo "$2" |
4223 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4224 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4225 $as_echo_n "(cached) " >&6
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4238 # Make sure it works both with $CC and with simple cc.
4239 # We do the test twice because some compilers refuse to overwrite an
4240 # existing .o file with -o, though they will create one.
4241 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4243 if { { case "(($ac_try" in
4244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4245 *) ac_try_echo
=$ac_try;;
4247 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4248 $as_echo "$ac_try_echo"; } >&5
4249 (eval "$ac_try") 2>&5
4251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4252 test $ac_status = 0; } &&
4253 test -f conftest2.
$ac_objext && { { case "(($ac_try" in
4254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4258 $as_echo "$ac_try_echo"; } >&5
4259 (eval "$ac_try") 2>&5
4261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4262 test $ac_status = 0; };
4264 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4265 if test "x$CC" != xcc; then
4266 # Test first that cc exists at all.
4267 if { ac_try='cc -c conftest.$ac_ext >&5'
4268 { { case "(($ac_try" in
4269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4270 *) ac_try_echo
=$ac_try;;
4272 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_try") 2>&5
4276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4277 test $ac_status = 0; }; }; then
4278 ac_try
='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 if { { case "(($ac_try" in
4281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285 $as_echo "$ac_try_echo"; } >&5
4286 (eval "$ac_try") 2>&5
4288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4289 test $ac_status = 0; } &&
4290 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4292 *) ac_try_echo
=$ac_try;;
4294 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_try") 2>&5
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; };
4304 # cc exists but doesn't like -o.
4305 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4310 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
4312 rm -f core conftest
*
4315 if eval test \
$ac_cv_prog_cc_${ac_cc}_c_o
= yes; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4317 $as_echo "yes" >&6; }
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320 $as_echo "no" >&6; }
4322 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4326 # expand $ac_aux_dir to an absolute path
4327 am_aux_dir
=`cd $ac_aux_dir && pwd`
4329 # FIXME: we rely on the cache variable name because
4330 # there is no other way.
4332 am_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4333 eval am_t
=\
$ac_cv_prog_cc_${am_cc}_c_o
4334 if test "$am_t" != yes; then
4335 # Losing compiler, so override with the script.
4336 # FIXME: It is wrong to rewrite CC.
4337 # But if we don't then we get into trouble of one sort or another.
4338 # A longer-term fix would be to have automake use am__CC in this case,
4339 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4340 CC
="$am_aux_dir/compile $CC"
4345 ac_cpp
='$CXXCPP $CPPFLAGS'
4346 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4349 if test -z "$CXX"; then
4350 if test -n "$CCC"; then
4353 if test -n "$ac_tool_prefix"; then
4354 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4357 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if test "${ac_cv_prog_CXX+set}" = set; then :
4361 $as_echo_n "(cached) " >&6
4363 if test -n "$CXX"; then
4364 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
4366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir
=.
4371 for ac_exec_ext
in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 if test -n "$CXX"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4386 $as_echo "$CXX" >&6; }
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4393 test -n "$CXX" && break
4396 if test -z "$CXX"; then
4398 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4400 # Extract the first word of "$ac_prog", so it can be a program name with args.
4401 set dummy
$ac_prog; ac_word
=$2
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4403 $as_echo_n "checking for $ac_word... " >&6; }
4404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 if test -n "$ac_ct_CXX"; then
4408 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4414 test -z "$as_dir" && as_dir
=.
4415 for ac_exec_ext
in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4428 if test -n "$ac_ct_CXX"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4430 $as_echo "$ac_ct_CXX" >&6; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4433 $as_echo "no" >&6; }
4437 test -n "$ac_ct_CXX" && break
4440 if test "x$ac_ct_CXX" = x
; then
4443 case $cross_compiling:$ac_tool_warned in
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447 ac_tool_warned
=yes ;;
4455 # Provide some information about the compiler.
4456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4459 for ac_option
in --version -v -V -qversion; do
4460 { { ac_try
="$ac_compiler $ac_option >&5"
4462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 $as_echo "$ac_try_echo"; } >&5
4467 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4469 if test -s conftest.err; then
4471 ... rest of stderr output deleted ...
4472 10q' conftest.err >conftest.er1
4473 cat conftest.er1 >&5
4474 rm -f conftest.er1 conftest.err
4476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477 test $ac_status = 0; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4481 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4482 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4483 $as_echo_n "(cached) " >&6
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4499 if ac_fn_cxx_try_compile "$LINENO"; then :
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4509 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4510 if test $ac_compiler_gnu = yes; then
4515 ac_test_CXXFLAGS=${CXXFLAGS+set}
4516 ac_save_CXXFLAGS=$CXXFLAGS
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4518 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4519 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4520 $as_echo_n "(cached) " >&6
4522 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4523 ac_cxx_werror_flag=yes
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4537 if ac_fn_cxx_try_compile "$LINENO"; then :
4538 ac_cv_prog_cxx_g=yes
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4552 if ac_fn_cxx_try_compile "$LINENO"; then :
4555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4568 if ac_fn_cxx_try_compile "$LINENO"; then :
4569 ac_cv_prog_cxx_g=yes
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4579 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4580 if test "$ac_test_CXXFLAGS" = set; then
4581 CXXFLAGS=$ac_save_CXXFLAGS
4582 elif test $ac_cv_prog_cxx_g = yes; then
4583 if test "$GXX" = yes; then
4589 if test "$GXX" = yes; then
4596 ac_cpp='$CPP $CPPFLAGS'
4597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4606 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4612 if test -n "$GNATBIND"; then
4613 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 GNATBIND=$ac_cv_prog_GNATBIND
4633 if test -n "$GNATBIND"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4635 $as_echo "$GNATBIND" >&6; }
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4643 if test -z "$ac_cv_prog_GNATBIND"; then
4644 ac_ct_GNATBIND=$GNATBIND
4645 # Extract the first word of "gnatbind", so it can be a program name with args.
4646 set dummy gnatbind; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
4652 if test -n "$ac_ct_GNATBIND"; then
4653 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4673 if test -n "$ac_ct_GNATBIND"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4675 $as_echo "$ac_ct_GNATBIND" >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4681 if test "x$ac_ct_GNATBIND" = x; then
4684 case $cross_compiling:$ac_tool_warned in
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned=yes ;;
4690 GNATBIND=$ac_ct_GNATBIND
4693 GNATBIND="$ac_cv_prog_GNATBIND"
4696 if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4698 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 if test -n "$GNATMAKE"; then
4705 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 GNATMAKE=$ac_cv_prog_GNATMAKE
4725 if test -n "$GNATMAKE"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4727 $as_echo "$GNATMAKE" >&6; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4735 if test -z "$ac_cv_prog_GNATMAKE"; then
4736 ac_ct_GNATMAKE=$GNATMAKE
4737 # Extract the first word of "gnatmake", so it can be a program name with args.
4738 set dummy gnatmake; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4744 if test -n "$ac_ct_GNATMAKE"; then
4745 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir=.
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4765 if test -n "$ac_ct_GNATMAKE"; then
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4767 $as_echo "$ac_ct_GNATMAKE" >&6; }
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770 $as_echo "no" >&6; }
4773 if test "x$ac_ct_GNATMAKE" = x; then
4776 case $cross_compiling:$ac_tool_warned in
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780 ac_tool_warned=yes ;;
4782 GNATMAKE=$ac_ct_GNATMAKE
4785 GNATMAKE="$ac_cv_prog_GNATMAKE"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4789 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4790 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4791 $as_echo_n "(cached) " >&6
4793 cat >conftest.adb <<EOF
4794 procedure conftest is begin null; end conftest;
4796 acx_cv_cc_gcc_supports_ada=no
4797 # There is a bug in old released versions of GCC which causes the
4798 # driver to exit successfully when the appropriate language module
4799 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4800 # Therefore we must check for the error message as well as an
4801 # unsuccessful exit.
4802 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4803 # given a .adb file, but produce no object file. So we must check
4804 # if an object file was really produced to guard against this.
4805 errors=`(${CC} -I"$srcdir"/ada
-c conftest.adb
) 2>&1 ||
echo failure
`
4806 if test x"$errors" = x && test -f conftest.$ac_objext; then
4807 acx_cv_cc_gcc_supports_ada=yes
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4812 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4814 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4821 # autoconf is lame and doesn't give us any substitution variable for this.
4822 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" = no"; then
4823 NO_MINUS_C_MINUS_O=yes
4825 OUTPUT_OPTION='-o $@'
4830 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4831 # optimizations to be activated explicitly by the toplevel.
4833 */prev-gcc/xgcc*) ;;
4834 *) CFLAGS=`echo $CFLAGS |
sed "s/-O[s0-9]* *//" ` ;;
4838 # -------------------------
4839 # Check C compiler features
4840 # -------------------------
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4849 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4850 # On Suns, sometimes $CPP names a directory.
4851 if test -n "$CPP" && test -d "$CPP"; then
4854 if test -z "$CPP"; then
4855 if test "${ac_cv_prog_CPP+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4858 # Double quotes because CPP needs to be expanded
4859 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4862 for ac_c_preproc_warn_flag in '' yes
4864 # Use a header file that comes with gcc, so configuring glibc
4865 # with a fresh cross-compiler works.
4866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4867 # <limits.h> exists even on freestanding compilers.
4868 # On the NeXT, cc -E runs the code through the compiler's parser,
4869 # not just through cpp. "Syntax error" is here to catch this case.
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4873 # include <limits.h>
4875 # include <assert.h>
4879 if ac_fn_c_try_cpp "$LINENO"; then :
4882 # Broken: fails on valid input.
4885 rm -f conftest.err conftest.$ac_ext
4887 # OK, works on sane cases. Now check whether nonexistent headers
4888 # can be detected and how.
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #include <ac_nonexistent.h>
4893 if ac_fn_c_try_cpp "$LINENO"; then :
4894 # Broken: success on invalid input.
4897 # Passes both tests.
4901 rm -f conftest.err conftest.$ac_ext
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.
$ac_ext
4906 if $ac_preproc_ok; then :
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4919 $as_echo "$CPP" >&6; }
4921 for ac_c_preproc_warn_flag
in '' yes
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4932 # include <limits.h>
4934 # include <assert.h>
4938 if ac_fn_c_try_cpp
"$LINENO"; then :
4941 # Broken: fails on valid input.
4944 rm -f conftest.err conftest.
$ac_ext
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 #include <ac_nonexistent.h>
4952 if ac_fn_c_try_cpp
"$LINENO"; then :
4953 # Broken: success on invalid input.
4956 # Passes both tests.
4960 rm -f conftest.err conftest.
$ac_ext
4963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4964 rm -f conftest.err conftest.
$ac_ext
4965 if $ac_preproc_ok; then :
4968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4970 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4971 See \`config.log' for more details." "$LINENO" 5; }
4975 ac_cpp
='$CPP $CPPFLAGS'
4976 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4982 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4983 if test "${ac_cv_path_GREP+set}" = set; then :
4984 $as_echo_n "(cached) " >&6
4986 if test -z "$GREP"; then
4987 ac_path_GREP_found
=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4990 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4993 test -z "$as_dir" && as_dir
=.
4994 for ac_prog
in grep ggrep
; do
4995 for ac_exec_ext
in '' $ac_executable_extensions; do
4996 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4998 # Check for GNU ac_path_GREP and select it if it is found.
4999 # Check for GNU $ac_path_GREP
5000 case `"$ac_path_GREP" --version 2>&1` in
5002 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5005 $as_echo_n 0123456789 >"conftest.in"
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 $as_echo 'GREP' >> "conftest.nl"
5012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5013 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5014 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_GREP
="$ac_path_GREP"
5018 ac_path_GREP_max
=$ac_count
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5023 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5026 $ac_path_GREP_found && break 3
5031 if test -z "$ac_cv_path_GREP"; then
5032 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5035 ac_cv_path_GREP
=$GREP
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5040 $as_echo "$ac_cv_path_GREP" >&6; }
5041 GREP
="$ac_cv_path_GREP"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5045 $as_echo_n "checking for egrep... " >&6; }
5046 if test "${ac_cv_path_EGREP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5050 then ac_cv_path_EGREP
="$GREP -E"
5052 if test -z "$EGREP"; then
5053 ac_path_EGREP_found
=false
5054 # Loop through the user's path and test for each of PROGNAME-LIST
5055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5056 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5059 test -z "$as_dir" && as_dir
=.
5060 for ac_prog
in egrep; do
5061 for ac_exec_ext
in '' $ac_executable_extensions; do
5062 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5063 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5064 # Check for GNU ac_path_EGREP and select it if it is found.
5065 # Check for GNU $ac_path_EGREP
5066 case `"$ac_path_EGREP" --version 2>&1` in
5068 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5071 $as_echo_n 0123456789 >"conftest.in"
5074 cat "conftest.in" "conftest.in" >"conftest.tmp"
5075 mv "conftest.tmp" "conftest.in"
5076 cp "conftest.in" "conftest.nl"
5077 $as_echo 'EGREP' >> "conftest.nl"
5078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5079 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5080 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5082 # Best one so far, save it but keep looking for a better one
5083 ac_cv_path_EGREP
="$ac_path_EGREP"
5084 ac_path_EGREP_max
=$ac_count
5086 # 10*(2^10) chars as input seems more than enough
5087 test $ac_count -gt 10 && break
5089 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5092 $ac_path_EGREP_found && break 3
5097 if test -z "$ac_cv_path_EGREP"; then
5098 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5101 ac_cv_path_EGREP
=$EGREP
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5107 $as_echo "$ac_cv_path_EGREP" >&6; }
5108 EGREP
="$ac_cv_path_EGREP"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5112 $as_echo_n "checking for ANSI C header files... " >&6; }
5113 if test "${ac_cv_header_stdc+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5131 if ac_fn_c_try_compile
"$LINENO"; then :
5132 ac_cv_header_stdc
=yes
5134 ac_cv_header_stdc
=no
5136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5138 if test $ac_cv_header_stdc = yes; then
5139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5146 $EGREP "memchr" >/dev
/null
2>&1; then :
5149 ac_cv_header_stdc
=no
5155 if test $ac_cv_header_stdc = yes; then
5156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5163 $EGREP "free" >/dev
/null
2>&1; then :
5166 ac_cv_header_stdc
=no
5172 if test $ac_cv_header_stdc = yes; then
5173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5174 if test "$cross_compiling" = yes; then :
5177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5181 #if ((' ' & 0x0FF) == 0x020)
5182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5185 # define ISLOWER(c) \
5186 (('a' <= (c) && (c) <= 'i') \
5187 || ('j' <= (c) && (c) <= 'r') \
5188 || ('s' <= (c) && (c) <= 'z'))
5189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5197 for (i = 0; i < 256; i++)
5198 if (XOR (islower (i), ISLOWER (i))
5199 || toupper (i) != TOUPPER (i))
5204 if ac_fn_c_try_run
"$LINENO"; then :
5207 ac_cv_header_stdc
=no
5209 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5210 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5216 $as_echo "$ac_cv_header_stdc" >&6; }
5217 if test $ac_cv_header_stdc = yes; then
5219 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5224 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5225 inttypes.h stdint.h unistd.h
5227 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5228 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5230 eval as_val
=\$
$as_ac_Header
5231 if test "x$as_val" = x
""yes; then :
5232 cat >>confdefs.h
<<_ACEOF
5233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5242 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5243 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5250 if test "$MINIX" = yes; then
5252 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5255 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5258 $as_echo "#define _MINIX 1" >>confdefs.h
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5264 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5265 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5271 # define __EXTENSIONS__ 1
5272 $ac_includes_default
5281 if ac_fn_c_try_compile
"$LINENO"; then :
5282 ac_cv_safe_to_define___extensions__
=yes
5284 ac_cv_safe_to_define___extensions__
=no
5286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5289 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5290 test $ac_cv_safe_to_define___extensions__ = yes &&
5291 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5293 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5295 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5297 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5299 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5303 ac_cpp
='$CPP $CPPFLAGS'
5304 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5308 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5309 # On Suns, sometimes $CPP names a directory.
5310 if test -n "$CPP" && test -d "$CPP"; then
5313 if test -z "$CPP"; then
5314 if test "${ac_cv_prog_CPP+set}" = set; then :
5315 $as_echo_n "(cached) " >&6
5317 # Double quotes because CPP needs to be expanded
5318 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5321 for ac_c_preproc_warn_flag
in '' yes
5323 # Use a header file that comes with gcc, so configuring glibc
5324 # with a fresh cross-compiler works.
5325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5326 # <limits.h> exists even on freestanding compilers.
5327 # On the NeXT, cc -E runs the code through the compiler's parser,
5328 # not just through cpp. "Syntax error" is here to catch this case.
5329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5332 # include <limits.h>
5334 # include <assert.h>
5338 if ac_fn_c_try_cpp
"$LINENO"; then :
5341 # Broken: fails on valid input.
5344 rm -f conftest.err conftest.
$ac_ext
5346 # OK, works on sane cases. Now check whether nonexistent headers
5347 # can be detected and how.
5348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 #include <ac_nonexistent.h>
5352 if ac_fn_c_try_cpp
"$LINENO"; then :
5353 # Broken: success on invalid input.
5356 # Passes both tests.
5360 rm -f conftest.err conftest.
$ac_ext
5363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5364 rm -f conftest.err conftest.
$ac_ext
5365 if $ac_preproc_ok; then :
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5378 $as_echo "$CPP" >&6; }
5380 for ac_c_preproc_warn_flag
in '' yes
5382 # Use a header file that comes with gcc, so configuring glibc
5383 # with a fresh cross-compiler works.
5384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5385 # <limits.h> exists even on freestanding compilers.
5386 # On the NeXT, cc -E runs the code through the compiler's parser,
5387 # not just through cpp. "Syntax error" is here to catch this case.
5388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5391 # include <limits.h>
5393 # include <assert.h>
5397 if ac_fn_c_try_cpp
"$LINENO"; then :
5400 # Broken: fails on valid input.
5403 rm -f conftest.err conftest.
$ac_ext
5405 # OK, works on sane cases. Now check whether nonexistent headers
5406 # can be detected and how.
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <ac_nonexistent.h>
5411 if ac_fn_c_try_cpp
"$LINENO"; then :
5412 # Broken: success on invalid input.
5415 # Passes both tests.
5419 rm -f conftest.err conftest.
$ac_ext
5422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5423 rm -f conftest.err conftest.
$ac_ext
5424 if $ac_preproc_ok; then :
5427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5429 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5430 See \`config.log' for more details." "$LINENO" 5; }
5434 ac_cpp
='$CPP $CPPFLAGS'
5435 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5440 $as_echo_n "checking for inline... " >&6; }
5441 if test "${ac_cv_c_inline+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5445 for ac_kw
in inline __inline__ __inline
; do
5446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5450 static $ac_kw foo_t static_foo () {return 0; }
5451 $ac_kw foo_t foo () {return 0; }
5455 if ac_fn_c_try_compile
"$LINENO"; then :
5456 ac_cv_c_inline
=$ac_kw
5458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5459 test "$ac_cv_c_inline" != no
&& break
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5464 $as_echo "$ac_cv_c_inline" >&6; }
5466 case $ac_cv_c_inline in
5469 case $ac_cv_c_inline in
5471 *) ac_val
=$ac_cv_c_inline;;
5473 cat >>confdefs.h
<<_ACEOF
5475 #define inline $ac_val
5482 # sizeof(char) is 1 by definition.
5483 # The cast to long int works around a bug in the HP C Compiler
5484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5486 # This bug is HP SR number 8606223364.
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5488 $as_echo_n "checking size of void *... " >&6; }
5489 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5492 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5495 if test "$ac_cv_type_void_p" = yes; then
5496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5498 { as_fn_set_status
77
5499 as_fn_error
"cannot compute sizeof (void *)
5500 See \`config.log' for more details." "$LINENO" 5; }; }
5502 ac_cv_sizeof_void_p
=0
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5508 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5512 cat >>confdefs.h
<<_ACEOF
5513 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5517 # The cast to long int works around a bug in the HP C Compiler
5518 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5519 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5520 # This bug is HP SR number 8606223364.
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5522 $as_echo_n "checking size of short... " >&6; }
5523 if test "${ac_cv_sizeof_short+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5526 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5529 if test "$ac_cv_type_short" = yes; then
5530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5532 { as_fn_set_status
77
5533 as_fn_error
"cannot compute sizeof (short)
5534 See \`config.log' for more details." "$LINENO" 5; }; }
5536 ac_cv_sizeof_short
=0
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5542 $as_echo "$ac_cv_sizeof_short" >&6; }
5546 cat >>confdefs.h
<<_ACEOF
5547 #define SIZEOF_SHORT $ac_cv_sizeof_short
5551 # The cast to long int works around a bug in the HP C Compiler
5552 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5553 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5554 # This bug is HP SR number 8606223364.
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5556 $as_echo_n "checking size of int... " >&6; }
5557 if test "${ac_cv_sizeof_int+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5560 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5563 if test "$ac_cv_type_int" = yes; then
5564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5566 { as_fn_set_status
77
5567 as_fn_error
"cannot compute sizeof (int)
5568 See \`config.log' for more details." "$LINENO" 5; }; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5576 $as_echo "$ac_cv_sizeof_int" >&6; }
5580 cat >>confdefs.h
<<_ACEOF
5581 #define SIZEOF_INT $ac_cv_sizeof_int
5585 # The cast to long int works around a bug in the HP C Compiler
5586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5588 # This bug is HP SR number 8606223364.
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5590 $as_echo_n "checking size of long... " >&6; }
5591 if test "${ac_cv_sizeof_long+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5594 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5597 if test "$ac_cv_type_long" = yes; then
5598 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5600 { as_fn_set_status
77
5601 as_fn_error
"cannot compute sizeof (long)
5602 See \`config.log' for more details." "$LINENO" 5; }; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5610 $as_echo "$ac_cv_sizeof_long" >&6; }
5614 cat >>confdefs.h
<<_ACEOF
5615 #define SIZEOF_LONG $ac_cv_sizeof_long
5619 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5620 if test "x$ac_cv_type_long_long" = x
""yes; then :
5622 cat >>confdefs.h
<<_ACEOF
5623 #define HAVE_LONG_LONG 1
5626 # The cast to long int works around a bug in the HP C Compiler
5627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5629 # This bug is HP SR number 8606223364.
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5631 $as_echo_n "checking size of long long... " >&6; }
5632 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5635 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5638 if test "$ac_cv_type_long_long" = yes; then
5639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5641 { as_fn_set_status
77
5642 as_fn_error
"cannot compute sizeof (long long)
5643 See \`config.log' for more details." "$LINENO" 5; }; }
5645 ac_cv_sizeof_long_long
=0
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5651 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5655 cat >>confdefs.h
<<_ACEOF
5656 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5662 ac_fn_c_check_type
"$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5663 if test "x$ac_cv_type___int64" = x
""yes; then :
5665 cat >>confdefs.h
<<_ACEOF
5666 #define HAVE___INT64 1
5669 # The cast to long int works around a bug in the HP C Compiler
5670 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5671 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5672 # This bug is HP SR number 8606223364.
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5674 $as_echo_n "checking size of __int64... " >&6; }
5675 if test "${ac_cv_sizeof___int64+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5678 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5681 if test "$ac_cv_type___int64" = yes; then
5682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5684 { as_fn_set_status
77
5685 as_fn_error
"cannot compute sizeof (__int64)
5686 See \`config.log' for more details." "$LINENO" 5; }; }
5688 ac_cv_sizeof___int64
=0
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5694 $as_echo "$ac_cv_sizeof___int64" >&6; }
5698 cat >>confdefs.h
<<_ACEOF
5699 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5705 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5706 case $ac_cv_c_int8_t in #(
5710 cat >>confdefs.h
<<_ACEOF
5711 #define int8_t $ac_cv_c_int8_t
5716 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5717 case $ac_cv_c_int16_t in #(
5721 cat >>confdefs.h
<<_ACEOF
5722 #define int16_t $ac_cv_c_int16_t
5727 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5728 case $ac_cv_c_int32_t in #(
5732 cat >>confdefs.h
<<_ACEOF
5733 #define int32_t $ac_cv_c_int32_t
5738 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5739 case $ac_cv_c_int64_t in #(
5743 cat >>confdefs.h
<<_ACEOF
5744 #define int64_t $ac_cv_c_int64_t
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5751 $as_echo_n "checking for long long int... " >&6; }
5752 if test "${ac_cv_type_long_long_int+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5758 /* For now, do not test the preprocessor; as of 2007 there are too many
5759 implementations with broken preprocessors. Perhaps this can
5760 be revisited in 2012. In the meantime, code should not expect
5761 #if to work with literals wider than 32 bits. */
5762 /* Test literals. */
5763 long long int ll = 9223372036854775807ll;
5764 long long int nll = -9223372036854775807LL;
5765 unsigned long long int ull = 18446744073709551615ULL;
5766 /* Test constant expressions. */
5767 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5769 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5775 /* Test availability of runtime routines for shift and division. */
5776 long long int llmax = 9223372036854775807ll;
5777 unsigned long long int ullmax = 18446744073709551615ull;
5778 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5779 | (llmax / ll) | (llmax % ll)
5780 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5781 | (ullmax / ull) | (ullmax % ull));
5787 if ac_fn_c_try_link
"$LINENO"; then :
5788 if test "$cross_compiling" = yes; then :
5789 ac_cv_type_long_long_int
=yes
5791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5792 /* end confdefs.h. */
5796 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5797 # define LLONG_MAX (HALF - 1 + HALF)
5802 long long int n = 1;
5806 long long int m = n << i;
5809 if (LLONG_MAX / 2 < m)
5817 if ac_fn_c_try_run
"$LINENO"; then :
5818 ac_cv_type_long_long_int
=yes
5820 ac_cv_type_long_long_int
=no
5822 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5823 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5827 ac_cv_type_long_long_int
=no
5829 rm -f core conftest.err conftest.
$ac_objext \
5830 conftest
$ac_exeext conftest.
$ac_ext
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5833 $as_echo "$ac_cv_type_long_long_int" >&6; }
5834 if test $ac_cv_type_long_long_int = yes; then
5836 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5842 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5843 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
5845 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5848 test $ac_cv_type_long_long_int = yes \
5849 && ac_type
='long long int' \
5850 || ac_type
='long int'
5852 cat >>confdefs.h
<<_ACEOF
5853 #define intmax_t $ac_type
5860 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5861 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
5863 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5866 for ac_type
in 'int' 'long int' 'long long int'; do
5867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 $ac_includes_default
5873 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5880 if ac_fn_c_try_compile
"$LINENO"; then :
5882 cat >>confdefs.h
<<_ACEOF
5883 #define intptr_t $ac_type
5888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 test -z "$ac_type" && break
5894 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5895 case $ac_cv_c_uint8_t in #(
5899 $as_echo "#define _UINT8_T 1" >>confdefs.h
5902 cat >>confdefs.h
<<_ACEOF
5903 #define uint8_t $ac_cv_c_uint8_t
5908 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5909 case $ac_cv_c_uint16_t in #(
5914 cat >>confdefs.h
<<_ACEOF
5915 #define uint16_t $ac_cv_c_uint16_t
5920 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5921 case $ac_cv_c_uint32_t in #(
5925 $as_echo "#define _UINT32_T 1" >>confdefs.h
5928 cat >>confdefs.h
<<_ACEOF
5929 #define uint32_t $ac_cv_c_uint32_t
5934 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5935 case $ac_cv_c_uint64_t in #(
5939 $as_echo "#define _UINT64_T 1" >>confdefs.h
5942 cat >>confdefs.h
<<_ACEOF
5943 #define uint64_t $ac_cv_c_uint64_t
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5950 $as_echo_n "checking for unsigned long long int... " >&6; }
5951 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5957 /* For now, do not test the preprocessor; as of 2007 there are too many
5958 implementations with broken preprocessors. Perhaps this can
5959 be revisited in 2012. In the meantime, code should not expect
5960 #if to work with literals wider than 32 bits. */
5961 /* Test literals. */
5962 long long int ll = 9223372036854775807ll;
5963 long long int nll = -9223372036854775807LL;
5964 unsigned long long int ull = 18446744073709551615ULL;
5965 /* Test constant expressions. */
5966 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5968 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5974 /* Test availability of runtime routines for shift and division. */
5975 long long int llmax = 9223372036854775807ll;
5976 unsigned long long int ullmax = 18446744073709551615ull;
5977 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5978 | (llmax / ll) | (llmax % ll)
5979 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5980 | (ullmax / ull) | (ullmax % ull));
5986 if ac_fn_c_try_link
"$LINENO"; then :
5987 ac_cv_type_unsigned_long_long_int
=yes
5989 ac_cv_type_unsigned_long_long_int
=no
5991 rm -f core conftest.err conftest.
$ac_objext \
5992 conftest
$ac_exeext conftest.
$ac_ext
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5995 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5996 if test $ac_cv_type_unsigned_long_long_int = yes; then
5998 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6004 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6005 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6007 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6010 test $ac_cv_type_unsigned_long_long_int = yes \
6011 && ac_type
='unsigned long long int' \
6012 || ac_type
='unsigned long int'
6014 cat >>confdefs.h
<<_ACEOF
6015 #define uintmax_t $ac_type
6022 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6023 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6025 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6028 for ac_type
in 'unsigned int' 'unsigned long int' \
6029 'unsigned long long int'; do
6030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 $ac_includes_default
6036 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6043 if ac_fn_c_try_compile
"$LINENO"; then :
6045 cat >>confdefs.h
<<_ACEOF
6046 #define uintptr_t $ac_type
6051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6052 test -z "$ac_type" && break
6070 # ---------------------
6071 # Warnings and checking
6072 # ---------------------
6074 # Check $CC warning features (if it's GCC).
6075 # We want to use -pedantic, but we don't want warnings about
6078 # * overlong strings
6079 # So, we only use -pedantic if we can disable those warnings.
6082 save_CFLAGS
="$CFLAGS"
6083 for option
in -W -Wall -Wwrite-strings -Wcast-qual; do
6084 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6087 $as_echo_n "checking whether $CC supports $option... " >&6; }
6088 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6089 $as_echo_n "(cached) " >&6
6092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6103 if ac_fn_c_try_compile
"$LINENO"; then :
6104 eval "$as_acx_Woption=yes"
6106 eval "$as_acx_Woption=no"
6108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6111 eval ac_res
=\$
$as_acx_Woption
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6113 $as_echo "$ac_res" >&6; }
6114 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6115 loose_warn
="$loose_warn${loose_warn:+ }$option"
6118 CFLAGS
="$save_CFLAGS"
6121 save_CFLAGS
="$CFLAGS"
6122 for option
in -Wstrict-prototypes -Wmissing-prototypes; do
6123 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6126 $as_echo_n "checking whether $CC supports $option... " >&6; }
6127 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6128 $as_echo_n "(cached) " >&6
6131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6142 if ac_fn_c_try_compile
"$LINENO"; then :
6143 eval "$as_acx_Woption=yes"
6145 eval "$as_acx_Woption=no"
6147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6150 eval ac_res
=\$
$as_acx_Woption
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6152 $as_echo "$ac_res" >&6; }
6153 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6154 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$option"
6157 CFLAGS
="$save_CFLAGS"
6160 save_CFLAGS
="$CFLAGS"
6161 for option
in -Wmissing-format-attribute; do
6162 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6165 $as_echo_n "checking whether $CC supports $option... " >&6; }
6166 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6167 $as_echo_n "(cached) " >&6
6170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6181 if ac_fn_c_try_compile
"$LINENO"; then :
6182 eval "$as_acx_Woption=yes"
6184 eval "$as_acx_Woption=no"
6186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6189 eval ac_res
=\$
$as_acx_Woption
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6191 $as_echo "$ac_res" >&6; }
6192 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6193 strict_warn
="$strict_warn${strict_warn:+ }$option"
6196 CFLAGS
="$save_CFLAGS"
6199 save_CFLAGS
="$CFLAGS"
6200 for option
in -Wold-style-definition -Wc++-compat; do
6201 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6204 $as_echo_n "checking whether $CC supports $option... " >&6; }
6205 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6206 $as_echo_n "(cached) " >&6
6209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6220 if ac_fn_c_try_compile
"$LINENO"; then :
6221 eval "$as_acx_Woption=yes"
6223 eval "$as_acx_Woption=no"
6225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6228 eval ac_res
=\$
$as_acx_Woption
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6230 $as_echo "$ac_res" >&6; }
6231 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6232 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$option"
6235 CFLAGS
="$save_CFLAGS"
6237 if test "$GCC" = yes; then :
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6239 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6240 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6243 save_CFLAGS
="$CFLAGS"
6244 CFLAGS
="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6256 if ac_fn_c_try_compile
"$LINENO"; then :
6257 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=yes
6259 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings
=no
6261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 CFLAGS
="$save_CFLAGS"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6265 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6266 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6267 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6272 # Check whether --enable-werror-always was given.
6273 if test "${enable_werror_always+set}" = set; then :
6274 enableval
=$enable_werror_always;
6276 enable_werror_always
=no
6279 if test $enable_werror_always = yes; then :
6280 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6285 # The above macros do nothing if the compiler is not GCC. However, the
6286 # Makefile has more goo to add other flags, so these variables are used
6287 # to enable warnings only for GCC.
6290 if test "x$GCC" = "xyes"; then
6291 warn_cflags
='$(GCC_WARN_CFLAGS)'
6292 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6297 # Enable expensive internal checks
6299 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6303 # Check whether --enable-checking was given.
6304 if test "${enable_checking+set}" = set; then :
6305 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6308 # Determine the default checks.
6309 if test x
$is_release = x
; then
6310 ac_checking_flags
=yes
6312 ac_checking_flags
=release
6316 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6317 for check
in release
$ac_checking_flags
6320 # these set all the flags to specific states
6321 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6322 ac_fold_checking
= ; ac_gc_checking
=1 ;
6323 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6324 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6325 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6326 ac_types_checking
=1 ;;
6327 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6328 ac_fold_checking
= ; ac_gc_checking
= ;
6329 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6330 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6331 ac_tree_checking
= ; ac_valgrind_checking
= ;
6332 ac_types_checking
= ;;
6333 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6334 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6335 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6336 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6337 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6338 ac_types_checking
=1 ;;
6339 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6340 ac_fold_checking
= ; ac_gc_checking
= ;
6341 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6342 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6343 ac_tree_checking
= ; ac_valgrind_checking
= ;
6344 ac_types_checking
= ;;
6345 # these enable particular checks
6346 assert
) ac_assert_checking
=1 ;;
6347 df
) ac_df_checking
=1 ;;
6348 fold) ac_fold_checking
=1 ;;
6349 gc
) ac_gc_checking
=1 ;;
6350 gcac
) ac_gc_always_collect
=1 ;;
6351 gimple
) ac_gimple_checking
=1 ;;
6352 misc
) ac_checking
=1 ;;
6353 rtl
) ac_rtl_checking
=1 ;;
6354 rtlflag
) ac_rtlflag_checking
=1 ;;
6355 runtime
) ac_runtime_checking
=1 ;;
6356 tree
) ac_tree_checking
=1 ;;
6357 types
) ac_types_checking
=1 ;;
6358 valgrind
) ac_valgrind_checking
=1 ;;
6359 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6365 if test x
$ac_checking != x
; then
6367 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6369 nocommon_flag
=-fno-common
6372 if test x
$ac_df_checking != x
; then
6374 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6377 if test x
$ac_assert_checking != x
; then
6379 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6382 if test x
$ac_gimple_checking != x
; then
6384 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6388 if test x
$ac_runtime_checking != x
; then
6390 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6393 if test x
$ac_tree_checking != x
; then
6395 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6397 TREEBROWSER
=tree-browser.o
6399 if test x
$ac_types_checking != x
; then
6401 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6405 if test x
$ac_rtl_checking != x
; then
6407 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6410 if test x
$ac_rtlflag_checking != x
; then
6412 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6415 if test x
$ac_gc_checking != x
; then
6417 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6420 if test x
$ac_gc_always_collect != x
; then
6422 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6425 if test x
$ac_fold_checking != x
; then
6427 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6430 valgrind_path_defines
=
6433 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6434 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6442 if test x
$ac_valgrind_checking != x
; then
6443 # It is certainly possible that there's valgrind but no valgrind.h.
6444 # GCC relies on making annotations so we must have both.
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6446 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 #include <valgrind/memcheck.h>
6450 #ifndef VALGRIND_DISCARD
6451 #error VALGRIND_DISCARD not defined
6454 if ac_fn_c_try_cpp
"$LINENO"; then :
6455 gcc_cv_header_valgrind_memcheck_h
=yes
6457 gcc_cv_header_valgrind_memcheck_h
=no
6459 rm -f conftest.err conftest.
$ac_ext
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6461 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6463 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <memcheck.h>
6467 #ifndef VALGRIND_DISCARD
6468 #error VALGRIND_DISCARD not defined
6471 if ac_fn_c_try_cpp
"$LINENO"; then :
6472 gcc_cv_header_memcheck_h
=yes
6474 gcc_cv_header_memcheck_h
=no
6476 rm -f conftest.err conftest.
$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6478 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6480 # Prepare PATH_SEPARATOR.
6481 # The user is always right.
6482 if test "${PATH_SEPARATOR+set}" != set; then
6483 echo "#! /bin/sh" >conf$$.sh
6484 echo "exit 0" >>conf$$.sh
6486 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6494 # Find out how to test for executable files. Don't use a zero-byte file,
6495 # as systems may use methods other than mode bits to determine executability.
6496 cat >conf$$.
file <<_ASEOF
6500 chmod +x conf$$.
file
6501 if test -x conf$$.
file >/dev
/null
2>&1; then
6502 ac_executable_p
="test -x"
6504 ac_executable_p
="test -f"
6508 # Extract the first word of "valgrind", so it can be a program name with args.
6509 set dummy valgrind
; ac_word
=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6513 $as_echo_n "(cached) " >&6
6515 case "$valgrind_path" in
6517 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6520 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6521 for ac_dir
in $PATH; do
6523 test -z "$ac_dir" && ac_dir
=.
6524 for ac_exec_ext
in '' $ac_executable_extensions; do
6525 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6526 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6527 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6537 valgrind_path
="$ac_cv_path_valgrind_path"
6538 if test -n "$valgrind_path"; then
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6540 $as_echo "$valgrind_path" >&6; }
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6546 if test "x$valgrind_path" = "x" \
6547 ||
(test $have_valgrind_h = no \
6548 && test $gcc_cv_header_memcheck_h = no \
6549 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6550 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6552 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6553 valgrind_command
="$valgrind_path -q"
6555 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6557 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6559 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6562 if test $gcc_cv_header_memcheck_h = yes; then
6564 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6571 # Enable code coverage collection
6572 # Check whether --enable-coverage was given.
6573 if test "${enable_coverage+set}" = set; then :
6574 enableval
=$enable_coverage; case "${enableval}" in
6576 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6579 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6582 # a.k.a. --disable-coverage
6586 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6595 # Check whether --enable-gather-detailed-mem-stats was given.
6596 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6597 enableval
=$enable_gather_detailed_mem_stats;
6599 enable_gather_detailed_mem_stats
=no
6602 if test x
$enable_gather_detailed_mem_stats = xyes
; then
6604 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6608 # -------------------------------
6609 # Miscenalleous configure options
6610 # -------------------------------
6612 # See if we are building gcc with C++.
6613 # Check whether --enable-build-with-cxx was given.
6614 if test "${enable_build_with_cxx+set}" = set; then :
6615 enableval
=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX
=$enableval
6617 ENABLE_BUILD_WITH_CXX
=no
6624 # Check whether --with-stabs was given.
6625 if test "${with_stabs+set}" = set; then :
6626 withval
=$with_stabs; stabs
="$with_stabs"
6632 # Determine whether or not multilibs are enabled.
6633 # Check whether --enable-multilib was given.
6634 if test "${enable_multilib+set}" = set; then :
6635 enableval
=$enable_multilib;
6642 # Enable __cxa_atexit for C++.
6643 # Check whether --enable-__cxa_atexit was given.
6644 if test "${enable___cxa_atexit+set}" = set; then :
6645 enableval
=$enable___cxa_atexit;
6649 # Enable C extension for decimal float if target supports it.
6650 # Check whether --enable-decimal-float was given.
6651 if test "${enable_decimal_float+set}" = set; then :
6652 enableval
=$enable_decimal_float;
6653 case $enable_decimal_float in
6654 yes | no | bid | dpd
) ;;
6655 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6656 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6662 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux*)
6663 enable_decimal_float
=yes
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6667 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6668 enable_decimal_float
=no
6675 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6677 cat >>confdefs.h
<<_ACEOF
6678 #define ENABLE_DECIMAL_FLOAT $dfp
6682 # x86's use BID format instead of DPD
6683 case x
$enable_decimal_float in
6686 i?
86*-*-linux* | x86_64
*-*-linux*)
6687 enable_decimal_float
=bid
6690 enable_decimal_float
=dpd
6695 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6696 # dependency on libdecnumber.
6697 enable_decimal_float
=dpd
6702 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6704 cat >>confdefs.h
<<_ACEOF
6705 #define ENABLE_DECIMAL_BID_FORMAT $bid
6709 # Enable C extension for fixed-point arithmetic.
6710 # Check whether --enable-fixed-point was given.
6711 if test "${enable_fixed_point+set}" = set; then :
6712 enableval
=$enable_fixed_point;
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6721 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6722 enable_fixed_point
=no
6725 enable_fixed_point
=yes
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6731 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6732 enable_fixed_point
=no
6740 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6742 cat >>confdefs.h
<<_ACEOF
6743 #define ENABLE_FIXED_POINT $fixedpoint
6748 # Pass with no value to take the default
6749 # Pass with a value to specify a thread package
6750 # Check whether --enable-threads was given.
6751 if test "${enable_threads+set}" = set; then :
6752 enableval
=$enable_threads;
6758 # Check whether --enable-tls was given.
6759 if test "${enable_tls+set}" = set; then :
6760 enableval
=$enable_tls;
6763 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
6764 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6772 # Check whether --enable-objc-gc was given.
6773 if test "${enable_objc_gc+set}" = set; then :
6774 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
6785 # Check whether --with-dwarf2 was given.
6786 if test "${with_dwarf2+set}" = set; then :
6787 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
6793 # Check whether --enable-shared was given.
6794 if test "${enable_shared+set}" = set; then :
6795 enableval
=$enable_shared;
6796 case $enable_shared in
6800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
6801 for pkg
in $enableval; do
6802 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
6817 # Check whether --with-build-sysroot was given.
6818 if test "${with_build_sysroot+set}" = set; then :
6819 withval
=$with_build_sysroot;
6824 # Check whether --with-sysroot was given.
6825 if test "${with_sysroot+set}" = set; then :
6826 withval
=$with_sysroot;
6827 case ${with_sysroot} in
6828 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6829 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
6832 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6833 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6835 if test "x$prefix" = xNONE
; then
6836 test_prefix
=/usr
/local
6840 if test "x$exec_prefix" = xNONE
; then
6841 test_exec_prefix
=$test_prefix
6843 test_exec_prefix
=$exec_prefix
6845 case ${TARGET_SYSTEM_ROOT} in
6846 "${test_prefix}"|
"${test_prefix}/"*|\
6847 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
6848 '${prefix}'|
'${prefix}/'*|\
6849 '${exec_prefix}'|
'${exec_prefix}/'*)
6850 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6851 TARGET_SYSTEM_ROOT_DEFINE
="$t"
6858 TARGET_SYSTEM_ROOT_DEFINE
=
6859 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
6868 # Check whether --with-specs was given.
6869 if test "${with_specs+set}" = set; then :
6870 withval
=$with_specs; CONFIGURE_SPECS
=$withval
6878 # Build with intermodule optimisations
6879 # Check whether --enable-intermodule was given.
6880 if test "${enable_intermodule+set}" = set; then :
6881 enableval
=$enable_intermodule; case ${enable_intermodule} in
6882 yes) onestep
="-onestep";;
6893 # Check whether --with-pkgversion was given.
6894 if test "${with_pkgversion+set}" = set; then :
6895 withval
=$with_pkgversion; case "$withval" in
6896 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
6898 *) PKGVERSION
="($withval) " ;;
6909 # Check whether --with-bugurl was given.
6910 if test "${with_bugurl+set}" = set; then :
6911 withval
=$with_bugurl; case "$withval" in
6912 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
6915 *) BUGURL
="$withval"
6919 BUGURL
="http://gcc.gnu.org/bugs.html"
6929 REPORT_BUGS_TO
="<$BUGURL>"
6930 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
6937 # Sanity check enable_languages in case someone does not run the toplevel
6938 # configure # script.
6939 # Check whether --enable-languages was given.
6940 if test "${enable_languages+set}" = set; then :
6941 enableval
=$enable_languages; case ,${enable_languages}, in
6943 # go safe -- we cannot be much sure without the toplevel
6945 # analysis of which target libs are present and usable
6949 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
6954 enable_languages
=c
,${enable_languages}
6963 # Check whether --with-multilib-list was given.
6964 if test "${with_multilib_list+set}" = set; then :
6965 withval
=$with_multilib_list; :
6967 with_multilib_list
=default
6971 # -------------------------
6972 # Checks for other programs
6973 # -------------------------
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6976 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6978 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6979 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6980 $as_echo_n "(cached) " >&6
6982 cat >conftest.
make <<\_ACEOF
6985 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6987 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6988 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6990 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6992 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6996 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6998 $as_echo "yes" >&6; }
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7003 SET_MAKE
="MAKE=${MAKE-make}"
7007 # Find some useful tools
7008 for ac_prog
in gawk mawk nawk
awk
7010 # Extract the first word of "$ac_prog", so it can be a program name with args.
7011 set dummy
$ac_prog; ac_word
=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if test "${ac_cv_prog_AWK+set}" = set; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$AWK"; then
7018 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir
=.
7025 for ac_exec_ext
in '' $ac_executable_extensions; do
7026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7027 ac_cv_prog_AWK
="$ac_prog"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 if test -n "$AWK"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7040 $as_echo "$AWK" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7047 test -n "$AWK" && break
7050 # We need awk to create options.c and options.h.
7051 # Bail out if it's missing.
7053 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7057 $as_echo_n "checking whether ln -s works... " >&6; }
7058 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7061 rm -f conftestdata_t
7062 echo >conftestdata_f
7063 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7065 gcc_cv_prog_LN_S
="ln -s"
7067 if ln conftestdata_f conftestdata_t
2>/dev
/null
7071 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7073 gcc_cv_prog_LN_S
="cp -p"
7079 rm -f conftestdata_f conftestdata_t
7082 LN_S
="$gcc_cv_prog_LN_S"
7083 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085 $as_echo "yes" >&6; }
7087 if test "$gcc_cv_prog_LN_S" = "ln"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7089 $as_echo "no, using ln" >&6; }
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7092 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7097 $as_echo_n "checking whether ln works... " >&6; }
7098 if test "${acx_cv_prog_LN+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7101 rm -f conftestdata_t
7102 echo >conftestdata_f
7103 if ln conftestdata_f conftestdata_t
2>/dev
/null
7109 rm -f conftestdata_f conftestdata_t
7112 if test $acx_cv_prog_LN = no
; then
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7115 $as_echo "no, using $LN" >&6; }
7117 LN
="$acx_cv_prog_LN"
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7119 $as_echo "yes" >&6; }
7122 if test -n "$ac_tool_prefix"; then
7123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7124 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7128 $as_echo_n "(cached) " >&6
7130 if test -n "$RANLIB"; then
7131 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7137 test -z "$as_dir" && as_dir
=.
7138 for ac_exec_ext
in '' $ac_executable_extensions; do
7139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7140 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 RANLIB
=$ac_cv_prog_RANLIB
7151 if test -n "$RANLIB"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7153 $as_echo "$RANLIB" >&6; }
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7161 if test -z "$ac_cv_prog_RANLIB"; then
7162 ac_ct_RANLIB
=$RANLIB
7163 # Extract the first word of "ranlib", so it can be a program name with args.
7164 set dummy ranlib
; ac_word
=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7170 if test -n "$ac_ct_RANLIB"; then
7171 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir
=.
7178 for ac_exec_ext
in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7191 if test -n "$ac_ct_RANLIB"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7193 $as_echo "$ac_ct_RANLIB" >&6; }
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7199 if test "x$ac_ct_RANLIB" = x
; then
7202 case $cross_compiling:$ac_tool_warned in
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7206 ac_tool_warned
=yes ;;
7208 RANLIB
=$ac_ct_RANLIB
7211 RANLIB
="$ac_cv_prog_RANLIB"
7216 # By default, the Darwin ranlib will not treat common symbols as
7217 # definitions when building the archive table of contents. Other
7218 # ranlibs do that; pass an option to the Darwin ranlib that makes
7219 # it behave similarly.
7227 # Find a good install program. We prefer a C program (faster),
7228 # so one script is as good as another. But avoid the broken or
7229 # incompatible versions:
7230 # SysV /etc/install, /usr/sbin/install
7231 # SunOS /usr/etc/install
7232 # IRIX /sbin/install
7234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7236 # ./install, which can be erroneously created by make from ./install.sh.
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7238 $as_echo_n "checking for a BSD compatible install... " >&6; }
7239 if test -z "$INSTALL"; then
7240 if test "${ac_cv_path_install+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7243 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7244 for ac_dir
in $PATH; do
7245 # Account for people who put trailing slashes in PATH elements.
7247 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7249 # OSF1 and SCO ODT 3.0 have their own names for install.
7250 for ac_prog
in ginstall scoinst
install; do
7251 if test -f $ac_dir/$ac_prog; then
7252 if test $ac_prog = install &&
7253 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7254 # AIX install. It has an incompatible calling convention.
7255 # OSF/1 installbsd also uses dspmsg, but is usable.
7258 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7269 if test "${ac_cv_path_install+set}" = set; then
7270 INSTALL
="$ac_cv_path_install"
7272 # As a last resort, use the slow shell script. We don't cache a
7273 # path for INSTALL within a source directory, because that will
7274 # break other packages using the cache if that directory is
7275 # removed, or if the path is relative.
7276 INSTALL
="$ac_install_sh"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7280 $as_echo "$INSTALL" >&6; }
7282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7283 # It thinks the first close brace ends the variable substitution.
7284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7286 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7289 # See if cmp has --ignore-initial.
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7291 $as_echo_n "checking for cmp's capabilities... " >&6; }
7292 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7297 gcc_cv_prog_cmp_skip
=slowcompare
7298 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7299 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7302 gcc_cv_prog_cmp_skip
=gnucompare
7305 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7306 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7307 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7310 gcc_cv_prog_cmp_skip
=fastcompare
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7318 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7319 make_compare_target
=$gcc_cv_prog_cmp_skip
7323 # See if we have the mktemp command.
7324 # Extract the first word of "mktemp", so it can be a program name with args.
7325 set dummy mktemp
; ac_word
=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7331 if test -n "$have_mktemp_command"; then
7332 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7334 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir
=.
7339 for ac_exec_ext
in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_have_mktemp_command
="yes"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7352 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7353 if test -n "$have_mktemp_command"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7355 $as_echo "$have_mktemp_command" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7363 # See if makeinfo has been installed and is modern enough
7364 # that we can use it.
7366 # Extract the first word of "makeinfo", so it can be a program name with args.
7367 set dummy makeinfo
; ac_word
=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7373 if test -n "$MAKEINFO"; then
7374 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7380 test -z "$as_dir" && as_dir
=.
7381 for ac_exec_ext
in '' $ac_executable_extensions; do
7382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7383 ac_cv_prog_MAKEINFO
="makeinfo"
7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 MAKEINFO
=$ac_cv_prog_MAKEINFO
7394 if test -n "$MAKEINFO"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7396 $as_echo "$MAKEINFO" >&6; }
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7403 if test -n "$MAKEINFO"; then
7404 # Found it, now check the version.
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7406 $as_echo_n "checking for modern makeinfo... " >&6; }
7407 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7410 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7411 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7413 case $ac_prog_version in
7414 '') gcc_cv_prog_makeinfo_modern
=no
;;
7415 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7416 *) gcc_cv_prog_makeinfo_modern
=no
;;
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7421 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7423 gcc_cv_prog_makeinfo_modern
=no
7425 if test $gcc_cv_prog_makeinfo_modern = no
; then
7426 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7429 if test $gcc_cv_prog_makeinfo_modern = no
; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7431 *** Makeinfo is missing or too old.
7432 *** Info documentation will not be built." >&5
7433 $as_echo "$as_me: WARNING:
7434 *** Makeinfo is missing or too old.
7435 *** Info documentation will not be built." >&2;}
7442 # Is pod2man recent enough to regenerate manpages?
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7444 $as_echo_n "checking for recent Pod::Man... " >&6; }
7445 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7447 $as_echo "yes" >&6; }
7448 GENERATED_MANPAGES
=generated-manpages
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7456 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7461 # Extract the first word of "$ac_prog", so it can be a program name with args.
7462 set dummy
$ac_prog; ac_word
=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if test "${ac_cv_prog_FLEX+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7468 if test -n "$FLEX"; then
7469 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir
=.
7476 for ac_exec_ext
in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_prog_FLEX
="$ac_prog"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 FLEX
=$ac_cv_prog_FLEX
7489 if test -n "$FLEX"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7491 $as_echo "$FLEX" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7498 test -n "$FLEX" && break
7500 test -n "$FLEX" || FLEX
="$MISSING flex"
7504 for ac_prog
in bison
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy
$ac_prog; ac_word
=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_BISON+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7513 if test -n "$BISON"; then
7514 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir
=.
7521 for ac_exec_ext
in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_BISON
="$ac_prog"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 BISON
=$ac_cv_prog_BISON
7534 if test -n "$BISON"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7536 $as_echo "$BISON" >&6; }
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7543 test -n "$BISON" && break
7545 test -n "$BISON" || BISON
="$MISSING bison"
7548 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7549 # check for build == host before using them.
7552 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7553 && test -d ..
/binutils
; then
7554 NM
='${objdir}/../binutils/nm-new'
7556 # Extract the first word of "nm", so it can be a program name with args.
7557 set dummy nm
; ac_word
=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if test "${ac_cv_prog_NM+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7563 if test -n "$NM"; then
7564 ac_cv_prog_NM
="$NM" # Let the user override the test.
7566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir
=.
7571 for ac_exec_ext
in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7585 if test -n "$NM"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7587 $as_echo "$NM" >&6; }
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7597 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
7598 && test -d ..
/binutils
; then
7599 AR
='${objdir}/../binutils/ar'
7601 # Extract the first word of "ar", so it can be a program name with args.
7602 set dummy
ar; ac_word
=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if test "${ac_cv_prog_AR+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7608 if test -n "$AR"; then
7609 ac_cv_prog_AR
="$AR" # Let the user override the test.
7611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir
=.
7616 for ac_exec_ext
in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7630 if test -n "$AR"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7632 $as_echo "$AR" >&6; }
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7642 # --------------------
7643 # Checks for C headers
7644 # --------------------
7646 # Need to reject headers which give warnings, so that the -Werror bootstrap
7647 # works later. *sigh* This needs to come before all header checks.
7649 ac_c_preproc_warn_flag
=yes
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7652 $as_echo_n "checking for ANSI C header files... " >&6; }
7653 if test "${ac_cv_header_stdc+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7671 if ac_fn_c_try_compile
"$LINENO"; then :
7672 ac_cv_header_stdc
=yes
7674 ac_cv_header_stdc
=no
7676 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7678 if test $ac_cv_header_stdc = yes; then
7679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7686 $EGREP "memchr" >/dev
/null
2>&1; then :
7689 ac_cv_header_stdc
=no
7695 if test $ac_cv_header_stdc = yes; then
7696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7703 $EGREP "free" >/dev
/null
2>&1; then :
7706 ac_cv_header_stdc
=no
7712 if test $ac_cv_header_stdc = yes; then
7713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7714 if test "$cross_compiling" = yes; then :
7717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7721 #if ((' ' & 0x0FF) == 0x020)
7722 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7723 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7725 # define ISLOWER(c) \
7726 (('a' <= (c) && (c) <= 'i') \
7727 || ('j' <= (c) && (c) <= 'r') \
7728 || ('s' <= (c) && (c) <= 'z'))
7729 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7732 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7737 for (i = 0; i < 256; i++)
7738 if (XOR (islower (i), ISLOWER (i))
7739 || toupper (i) != TOUPPER (i))
7744 if ac_fn_c_try_run
"$LINENO"; then :
7747 ac_cv_header_stdc
=no
7749 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7750 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7756 $as_echo "$ac_cv_header_stdc" >&6; }
7757 if test $ac_cv_header_stdc = yes; then
7759 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7764 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7765 if test "${ac_cv_header_time+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 #include <sys/types.h>
7771 #include <sys/time.h>
7777 if ((struct tm *) 0)
7783 if ac_fn_c_try_compile
"$LINENO"; then :
7784 ac_cv_header_time
=yes
7786 ac_cv_header_time
=no
7788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7791 $as_echo "$ac_cv_header_time" >&6; }
7792 if test $ac_cv_header_time = yes; then
7794 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7799 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7800 if test "${gcc_cv_header_string+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7806 #include <strings.h>
7815 if ac_fn_c_try_compile
"$LINENO"; then :
7816 gcc_cv_header_string
=yes
7818 gcc_cv_header_string
=no
7820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7823 $as_echo "$gcc_cv_header_string" >&6; }
7824 if test $gcc_cv_header_string = yes; then
7826 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7831 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7832 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7833 $as_echo_n "(cached) " >&6
7835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 #include <sys/types.h>
7838 #include <sys/wait.h>
7840 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7843 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7851 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7856 if ac_fn_c_try_compile
"$LINENO"; then :
7857 ac_cv_header_sys_wait_h
=yes
7859 ac_cv_header_sys_wait_h
=no
7861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7864 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7865 if test $ac_cv_header_sys_wait_h = yes; then
7867 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7871 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
7872 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
7873 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
7874 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7876 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7877 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
7878 eval as_val
=\$
$as_ac_Header
7879 if test "x$as_val" = x
""yes; then :
7880 cat >>confdefs.h
<<_ACEOF
7881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7888 # Check for thread headers.
7889 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
7890 if test "x$ac_cv_header_thread_h" = x
""yes; then :
7896 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7897 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
7904 # These tests can't be done till we know if we have limits.h.
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7906 $as_echo_n "checking for CHAR_BIT... " >&6; }
7907 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7908 $as_echo_n "(cached) " >&6
7910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #ifdef HAVE_LIMITS_H
7919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7920 $EGREP "found" >/dev
/null
2>&1; then :
7921 gcc_cv_decl_char_bit
=yes
7923 gcc_cv_decl_char_bit
=no
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7930 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7931 if test $gcc_cv_decl_char_bit = no
; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7933 $as_echo_n "checking number of bits in a byte... " >&6; }
7934 if test "${gcc_cv_c_nbby+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7939 while test $i -lt 65; do
7940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7947 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7948 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7954 if ac_fn_c_try_compile
"$LINENO"; then :
7955 gcc_cv_c_nbby
=$i; break
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7960 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7964 $as_echo "$gcc_cv_c_nbby" >&6; }
7965 if test $gcc_cv_c_nbby = failed
; then
7966 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
7969 cat >>confdefs.h
<<_ACEOF
7970 #define CHAR_BIT $gcc_cv_c_nbby
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7976 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7977 if test "${ac_cv_c_bigendian+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7980 ac_cv_c_bigendian
=unknown
7981 # See if we're dealing with a universal compiler.
7982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 #ifndef __APPLE_CC__
7985 not a universal capable compiler
7990 if ac_fn_c_try_compile
"$LINENO"; then :
7992 # Check for potential -arch flags. It is not universal unless
7993 # there are at least two -arch flags with different values.
7996 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7997 if test -n "$ac_prev"; then
7999 i?
86 | x86_64 | ppc | ppc64
)
8000 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8003 ac_cv_c_bigendian
=universal
8009 elif test "x$ac_word" = "x-arch"; then
8014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8015 if test $ac_cv_c_bigendian = unknown
; then
8016 # See if sys/param.h defines the BYTE_ORDER macro.
8017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h. */
8019 #include <sys/types.h>
8020 #include <sys/param.h>
8025 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8026 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8035 if ac_fn_c_try_compile
"$LINENO"; then :
8036 # It does; now see whether it defined to BIG_ENDIAN or not.
8037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #include <sys/types.h>
8040 #include <sys/param.h>
8045 #if BYTE_ORDER != BIG_ENDIAN
8053 if ac_fn_c_try_compile
"$LINENO"; then :
8054 ac_cv_c_bigendian
=yes
8056 ac_cv_c_bigendian
=no
8058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8062 if test $ac_cv_c_bigendian = unknown
; then
8063 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8065 /* end confdefs.h. */
8071 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8079 if ac_fn_c_try_compile
"$LINENO"; then :
8080 # It does; now see whether it defined to _BIG_ENDIAN or not.
8081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8096 if ac_fn_c_try_compile
"$LINENO"; then :
8097 ac_cv_c_bigendian
=yes
8099 ac_cv_c_bigendian
=no
8101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8105 if test $ac_cv_c_bigendian = unknown
; then
8106 # Compile a test program.
8107 if test "$cross_compiling" = yes; then :
8108 # Try to guess by grepping values from an object file.
8109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8110 /* end confdefs.h. */
8111 short int ascii_mm[] =
8112 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8113 short int ascii_ii[] =
8114 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8115 int use_ascii (int i) {
8116 return ascii_mm[i] + ascii_ii[i];
8118 short int ebcdic_ii[] =
8119 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8120 short int ebcdic_mm[] =
8121 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8122 int use_ebcdic (int i) {
8123 return ebcdic_mm[i] + ebcdic_ii[i];
8130 return use_ascii (foo) == use_ebcdic (foo);
8135 if ac_fn_c_try_compile
"$LINENO"; then :
8136 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8137 ac_cv_c_bigendian
=yes
8139 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8140 if test "$ac_cv_c_bigendian" = unknown
; then
8141 ac_cv_c_bigendian
=no
8143 # finding both strings is unlikely to happen, but who knows?
8144 ac_cv_c_bigendian
=unknown
8148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8151 /* end confdefs.h. */
8152 $ac_includes_default
8157 /* Are we little or big endian? From Harbison&Steele. */
8161 char c[sizeof (long int)];
8164 return u.c[sizeof (long int) - 1] == 1;
8170 if ac_fn_c_try_run
"$LINENO"; then :
8171 ac_cv_c_bigendian
=no
8173 ac_cv_c_bigendian
=yes
8175 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8176 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8182 $as_echo "$ac_cv_c_bigendian" >&6; }
8183 case $ac_cv_c_bigendian in #(
8185 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8191 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8195 as_fn_error
"unknown endianness
8196 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8205 # These libraries may be used by collect2.
8206 # We may need a special search path to get them linked.
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8208 $as_echo_n "checking for collect2 libraries... " >&6; }
8209 if test "${gcc_cv_collect2_libs+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8213 for libs
in '' -lld -lmld \
8214 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8215 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8221 /* Override any GCC internal prototype to avoid an error.
8222 Use char because int might match the return type of a GCC
8223 builtin and then its argument prototype would still apply. */
8236 if ac_fn_c_try_link
"$LINENO"; then :
8237 gcc_cv_collect2_libs
="$libs"; break
8239 rm -f core conftest.err conftest.
$ac_objext \
8240 conftest
$ac_exeext conftest.
$ac_ext
8243 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8246 $as_echo "$gcc_cv_collect2_libs" >&6; }
8247 case $gcc_cv_collect2_libs in
8249 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
8253 # When building Ada code on Alpha, we need exc_resume which is usually in
8254 # -lexc. So test for it.
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8258 $as_echo_n "checking for library containing exc_resume... " >&6; }
8259 if test "${ac_cv_search_exc_resume+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8262 ac_func_search_save_LIBS
=$LIBS
8263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8266 /* Override any GCC internal prototype to avoid an error.
8267 Use char because int might match the return type of a GCC
8268 builtin and then its argument prototype would still apply. */
8276 return exc_resume ();
8281 for ac_lib
in '' exc
; do
8282 if test -z "$ac_lib"; then
8283 ac_res
="none required"
8286 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8288 if ac_fn_c_try_link
"$LINENO"; then :
8289 ac_cv_search_exc_resume
=$ac_res
8291 rm -f core conftest.err conftest.
$ac_objext \
8293 if test "${ac_cv_search_exc_resume+set}" = set; then :
8297 if test "${ac_cv_search_exc_resume+set}" = set; then :
8300 ac_cv_search_exc_resume
=no
8303 LIBS
=$ac_func_search_save_LIBS
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8306 $as_echo "$ac_cv_search_exc_resume" >&6; }
8307 ac_res
=$ac_cv_search_exc_resume
8308 if test "$ac_res" != no
; then :
8309 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8317 # Some systems put ldexp and frexp in libm instead of libc; assume
8318 # they're both in the same place. jcf-dump needs them.
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8322 $as_echo_n "checking for library containing ldexp... " >&6; }
8323 if test "${ac_cv_search_ldexp+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
8326 ac_func_search_save_LIBS
=$LIBS
8327 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8330 /* Override any GCC internal prototype to avoid an error.
8331 Use char because int might match the return type of a GCC
8332 builtin and then its argument prototype would still apply. */
8345 for ac_lib
in '' m
; do
8346 if test -z "$ac_lib"; then
8347 ac_res
="none required"
8350 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8352 if ac_fn_c_try_link
"$LINENO"; then :
8353 ac_cv_search_ldexp
=$ac_res
8355 rm -f core conftest.err conftest.
$ac_objext \
8357 if test "${ac_cv_search_ldexp+set}" = set; then :
8361 if test "${ac_cv_search_ldexp+set}" = set; then :
8364 ac_cv_search_ldexp
=no
8367 LIBS
=$ac_func_search_save_LIBS
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8370 $as_echo "$ac_cv_search_ldexp" >&6; }
8371 ac_res
=$ac_cv_search_ldexp
8372 if test "$ac_res" != no
; then :
8373 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8381 # Use <inttypes.h> only if it exists,
8382 # doesn't clash with <sys/types.h>, and declares intmax_t.
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8384 $as_echo_n "checking for inttypes.h... " >&6; }
8385 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8386 $as_echo_n "(cached) " >&6
8388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <sys/types.h>
8391 #include <inttypes.h>
8400 if ac_fn_c_try_compile
"$LINENO"; then :
8401 gcc_cv_header_inttypes_h
=yes
8403 gcc_cv_header_inttypes_h
=no
8405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8409 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8410 if test $gcc_cv_header_inttypes_h = yes; then
8412 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8418 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
8419 sysconf strsignal getrusage nl_langinfo \
8420 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8421 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
8423 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8424 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8425 eval as_val
=\$
$as_ac_var
8426 if test "x$as_val" = x
""yes; then :
8427 cat >>confdefs.h
<<_ACEOF
8428 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8435 save_CPPFLAGS
="$CPPFLAGS"
8437 LIBS
="$LIBS $LIBELFLIBS"
8438 for ac_func
in elf_getshdrstrndx
8440 ac_fn_c_check_func
"$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8441 if test "x$ac_cv_func_elf_getshdrstrndx" = x
""yes; then :
8442 cat >>confdefs.h
<<_ACEOF
8443 #define HAVE_ELF_GETSHDRSTRNDX 1
8447 for ac_func
in elf_getshstrndx
8449 ac_fn_c_check_func
"$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8450 if test "x$ac_cv_func_elf_getshstrndx" = x
""yes; then :
8451 cat >>confdefs.h
<<_ACEOF
8452 #define HAVE_ELF_GETSHSTRNDX 1
8454 if test "$cross_compiling" = yes; then :
8455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8457 as_fn_error
"cannot run test program while cross compiling
8458 See \`config.log' for more details." "$LINENO" 5; }
8460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8466 return elf_getshstrndx (NULL, 0) == 0;
8469 if ac_fn_c_try_run
"$LINENO"; then :
8471 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8486 CPPFLAGS
="$save_CPPFLAGS"
8488 if test x
$ac_cv_func_mbstowcs = xyes
; then
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8490 $as_echo_n "checking whether mbstowcs works... " >&6; }
8491 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8494 if test "$cross_compiling" = yes; then :
8495 gcc_cv_func_mbstowcs_works
=yes
8497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8506 if ac_fn_c_try_run
"$LINENO"; then :
8507 gcc_cv_func_mbstowcs_works
=yes
8509 gcc_cv_func_mbstowcs_works
=no
8511 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8512 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8517 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8518 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
8520 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8525 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8526 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
8530 cat >>confdefs.h
<<_ACEOF
8536 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8537 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
8541 cat >>confdefs.h
<<_ACEOF
8542 #define caddr_t char *
8549 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8550 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
8551 gcc_header_sys_mman_h
=yes
8553 gcc_header_sys_mman_h
=no
8556 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
8557 if test "x$ac_cv_func_mmap" = x
""yes; then :
8563 if test "$gcc_header_sys_mman_h" != yes \
8564 ||
test "$gcc_func_mmap" != yes; then
8565 gcc_cv_func_mmap_file
=no
8566 gcc_cv_func_mmap_dev_zero
=no
8567 gcc_cv_func_mmap_anon
=no
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8570 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8571 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8572 $as_echo_n "(cached) " >&6
8574 # Add a system to this blacklist if
8575 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8576 # memory area containing the same data that you'd get if you applied
8577 # read() to the same fd. The only system known to have a problem here
8578 # is VMS, where text files have record structure.
8581 gcc_cv_func_mmap_file
=no
;;
8583 gcc_cv_func_mmap_file
=yes;;
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8587 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8589 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8590 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8591 $as_echo_n "(cached) " >&6
8593 # Add a system to this blacklist if it has mmap() but /dev/zero
8594 # does not exist, or if mmapping /dev/zero does not give anonymous
8595 # zeroed pages with both the following properties:
8596 # 1. If you map N consecutive pages in with one call, and then
8597 # unmap any subset of those pages, the pages that were not
8598 # explicitly unmapped remain accessible.
8599 # 2. If you map two adjacent blocks of memory and then unmap them
8600 # both at once, they must both go away.
8601 # Systems known to be in this category are Windows (all variants),
8604 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
8605 gcc_cv_func_mmap_dev_zero
=no
;;
8607 gcc_cv_func_mmap_dev_zero
=yes;;
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8611 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8613 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8615 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8616 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621 #include <sys/types.h>
8622 #include <sys/mman.h>
8625 #ifndef MAP_ANONYMOUS
8626 #define MAP_ANONYMOUS MAP_ANON
8632 int n = MAP_ANONYMOUS;
8637 if ac_fn_c_try_compile
"$LINENO"; then :
8638 gcc_cv_decl_map_anon
=yes
8640 gcc_cv_decl_map_anon
=no
8642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8645 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8647 if test $gcc_cv_decl_map_anon = no
; then
8648 gcc_cv_func_mmap_anon
=no
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8651 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8652 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8656 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8657 # doesn't give anonymous zeroed pages with the same properties listed
8658 # above for use of /dev/zero.
8659 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8661 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
8662 gcc_cv_func_mmap_anon
=no
;;
8664 gcc_cv_func_mmap_anon
=yes;;
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8668 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8672 if test $gcc_cv_func_mmap_file = yes; then
8674 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8677 if test $gcc_cv_func_mmap_dev_zero = yes; then
8679 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8682 if test $gcc_cv_func_mmap_anon = yes; then
8684 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8691 # Under VMS, vfork works very differently than on Unix. The standard test
8692 # won't work, and it isn't easily adaptable. It makes more sense to
8694 ac_cv_func_vfork_works
=yes
8697 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8698 if test "x$ac_cv_type_pid_t" = x
""yes; then :
8702 cat >>confdefs.h
<<_ACEOF
8708 for ac_header
in vfork.h
8710 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8711 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
8712 cat >>confdefs.h
<<_ACEOF
8713 #define HAVE_VFORK_H 1
8719 for ac_func
in fork vfork
8721 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8722 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8723 eval as_val
=\$
$as_ac_var
8724 if test "x$as_val" = x
""yes; then :
8725 cat >>confdefs.h
<<_ACEOF
8726 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8732 if test "x$ac_cv_func_fork" = xyes
; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8734 $as_echo_n "checking for working fork... " >&6; }
8735 if test "${ac_cv_func_fork_works+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8738 if test "$cross_compiling" = yes; then :
8739 ac_cv_func_fork_works
=cross
8741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 $ac_includes_default
8748 /* By Ruediger Kuhlmann. */
8755 if ac_fn_c_try_run
"$LINENO"; then :
8756 ac_cv_func_fork_works
=yes
8758 ac_cv_func_fork_works
=no
8760 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8761 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8766 $as_echo "$ac_cv_func_fork_works" >&6; }
8769 ac_cv_func_fork_works
=$ac_cv_func_fork
8771 if test "x$ac_cv_func_fork_works" = xcross
; then
8773 *-*-amigaos* |
*-*-msdosdjgpp*)
8774 # Override, as these systems have only a dummy fork() stub
8775 ac_cv_func_fork_works
=no
8778 ac_cv_func_fork_works
=yes
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8782 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8784 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8785 if test "x$ac_cv_func_vfork" = xyes
; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8787 $as_echo_n "checking for working vfork... " >&6; }
8788 if test "${ac_cv_func_vfork_works+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8791 if test "$cross_compiling" = yes; then :
8792 ac_cv_func_vfork_works
=cross
8794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h. */
8796 /* Thanks to Paul Eggert for this test. */
8797 $ac_includes_default
8798 #include <sys/wait.h>
8802 /* On some sparc systems, changes by the child to local and incoming
8803 argument registers are propagated back to the parent. The compiler
8804 is told about this with #include <vfork.h>, but some compilers
8805 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8806 static variable whose address is put into a register that is
8807 clobbered by the vfork. */
8810 sparc_address_test (int arg)
8812 sparc_address_test (arg) int arg;
8833 pid_t parent = getpid ();
8836 sparc_address_test (0);
8841 /* Here is another test for sparc vfork register problems. This
8842 test uses lots of local variables, at least as many local
8843 variables as main has allocated so far including compiler
8844 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8845 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8846 reuse the register of parent for one of the local variables,
8847 since it will think that parent can't possibly be used any more
8848 in this routine. Assigning to the local variable will thus
8849 munge parent in the parent process. */
8851 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8852 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8853 /* Convince the compiler that p..p7 are live; otherwise, it might
8854 use the same hardware register for all 8 local variables. */
8855 if (p != p1 || p != p2 || p != p3 || p != p4
8856 || p != p5 || p != p6 || p != p7)
8859 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8860 from child file descriptors. If the child closes a descriptor
8861 before it execs or exits, this munges the parent's descriptor
8862 as well. Test for this by closing stdout in the child. */
8863 _exit(close(fileno(stdout)) != 0);
8868 while (wait(&status) != child)
8871 /* Was there some problem with vforking? */
8874 /* Did the child fail? (This shouldn't happen.) */
8877 /* Did the vfork/compiler bug occur? */
8878 || parent != getpid()
8880 /* Did the file descriptor bug occur? */
8881 || fstat(fileno(stdout), &st) != 0
8886 if ac_fn_c_try_run
"$LINENO"; then :
8887 ac_cv_func_vfork_works
=yes
8889 ac_cv_func_vfork_works
=no
8891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8897 $as_echo "$ac_cv_func_vfork_works" >&6; }
8900 if test "x$ac_cv_func_fork_works" = xcross
; then
8901 ac_cv_func_vfork_works
=$ac_cv_func_vfork
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8903 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8906 if test "x$ac_cv_func_vfork_works" = xyes
; then
8908 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8912 $as_echo "#define vfork fork" >>confdefs.h
8915 if test "x$ac_cv_func_fork_works" = xyes
; then
8917 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8923 if test "X$prefix" = "XNONE"; then
8924 acl_final_prefix
="$ac_default_prefix"
8926 acl_final_prefix
="$prefix"
8928 if test "X$exec_prefix" = "XNONE"; then
8929 acl_final_exec_prefix
='${prefix}'
8931 acl_final_exec_prefix
="$exec_prefix"
8933 acl_save_prefix
="$prefix"
8934 prefix
="$acl_final_prefix"
8935 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8936 prefix
="$acl_save_prefix"
8939 # Check whether --with-gnu-ld was given.
8940 if test "${with_gnu_ld+set}" = set; then :
8941 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8946 # Prepare PATH_SEPARATOR.
8947 # The user is always right.
8948 if test "${PATH_SEPARATOR+set}" != set; then
8949 echo "#! /bin/sh" >conf$$.sh
8950 echo "exit 0" >>conf$$.sh
8952 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8960 if test "$GCC" = yes; then
8961 # Check if gcc -print-prog-name=ld gives a path.
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8963 $as_echo_n "checking for ld used by GCC... " >&6; }
8966 # gcc leaves a trailing carriage return which upsets mingw
8967 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8969 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8972 # Accept absolute paths.
8973 [\\/]* |
[A-Za-z
]:[\\/]*)
8974 re_direlt
='/[^/][^/]*/\.\./'
8975 # Canonicalize the path of ld
8976 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8977 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8978 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8980 test -z "$LD" && LD
="$ac_prog"
8983 # If it fails, then pretend we aren't using GCC.
8987 # If it is relative, then search for the first ld in PATH.
8991 elif test "$with_gnu_ld" = yes; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8993 $as_echo_n "checking for GNU ld... " >&6; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8996 $as_echo_n "checking for non-GNU ld... " >&6; }
8998 if test "${acl_cv_path_LD+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9001 if test -z "$LD"; then
9002 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9003 for ac_dir
in $PATH; do
9004 test -z "$ac_dir" && ac_dir
=.
9005 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9006 acl_cv_path_LD
="$ac_dir/$ac_prog"
9007 # Check to see if the program is GNU ld. I'd rather use --version,
9008 # but apparently some GNU ld's only accept -v.
9009 # Break only if it was the GNU/non-GNU ld that we prefer.
9010 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9011 test "$with_gnu_ld" != no
&& break
9013 test "$with_gnu_ld" != yes && break
9019 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9023 LD
="$acl_cv_path_LD"
9024 if test -n "$LD"; then
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9026 $as_echo "$LD" >&6; }
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029 $as_echo "no" >&6; }
9031 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9033 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9034 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9037 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9038 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9039 acl_cv_prog_gnu_ld
=yes
9041 acl_cv_prog_gnu_ld
=no
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9045 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9046 with_gnu_ld
=$acl_cv_prog_gnu_ld
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9051 $as_echo_n "checking for shared library run path origin... " >&6; }
9052 if test "${acl_cv_rpath+set}" = set; then :
9053 $as_echo_n "(cached) " >&6
9056 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9057 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9064 $as_echo "$acl_cv_rpath" >&6; }
9066 libext
="$acl_cv_libext"
9067 shlibext
="$acl_cv_shlibext"
9068 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9069 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9070 hardcode_direct
="$acl_cv_hardcode_direct"
9071 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9072 # Check whether --enable-rpath was given.
9073 if test "${enable_rpath+set}" = set; then :
9074 enableval
=$enable_rpath; :
9088 acl_save_prefix
="$prefix"
9089 prefix
="$acl_final_prefix"
9090 acl_save_exec_prefix
="$exec_prefix"
9091 exec_prefix
="$acl_final_exec_prefix"
9093 eval additional_includedir
=\"$includedir\"
9094 eval additional_libdir
=\"$libdir\"
9096 exec_prefix
="$acl_save_exec_prefix"
9097 prefix
="$acl_save_prefix"
9100 # Check whether --with-libiconv-prefix was given.
9101 if test "${with_libiconv_prefix+set}" = set; then :
9102 withval
=$with_libiconv_prefix;
9103 if test "X$withval" = "Xno"; then
9106 if test "X$withval" = "X"; then
9108 acl_save_prefix
="$prefix"
9109 prefix
="$acl_final_prefix"
9110 acl_save_exec_prefix
="$exec_prefix"
9111 exec_prefix
="$acl_final_exec_prefix"
9113 eval additional_includedir
=\"$includedir\"
9114 eval additional_libdir
=\"$libdir\"
9116 exec_prefix
="$acl_save_exec_prefix"
9117 prefix
="$acl_save_prefix"
9120 additional_includedir
="$withval/include"
9121 additional_libdir
="$withval/lib"
9132 names_already_handled
=
9133 names_next_round
='iconv '
9134 while test -n "$names_next_round"; do
9135 names_this_round
="$names_next_round"
9137 for name
in $names_this_round; do
9139 for n
in $names_already_handled; do
9140 if test "$n" = "$name"; then
9145 if test -z "$already_handled"; then
9146 names_already_handled
="$names_already_handled $name"
9147 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9148 eval value
=\"\
$HAVE_LIB$uppername\"
9149 if test -n "$value"; then
9150 if test "$value" = yes; then
9151 eval value
=\"\
$LIB$uppername\"
9152 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9153 eval value
=\"\
$LTLIB$uppername\"
9154 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9163 if test $use_additional = yes; then
9164 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9165 found_dir
="$additional_libdir"
9166 found_so
="$additional_libdir/lib$name.$shlibext"
9167 if test -f "$additional_libdir/lib$name.la"; then
9168 found_la
="$additional_libdir/lib$name.la"
9171 if test -f "$additional_libdir/lib$name.$libext"; then
9172 found_dir
="$additional_libdir"
9173 found_a
="$additional_libdir/lib$name.$libext"
9174 if test -f "$additional_libdir/lib$name.la"; then
9175 found_la
="$additional_libdir/lib$name.la"
9180 if test "X$found_dir" = "X"; then
9181 for x
in $LDFLAGS $LTLIBICONV; do
9183 acl_save_prefix
="$prefix"
9184 prefix
="$acl_final_prefix"
9185 acl_save_exec_prefix
="$exec_prefix"
9186 exec_prefix
="$acl_final_exec_prefix"
9188 exec_prefix
="$acl_save_exec_prefix"
9189 prefix
="$acl_save_prefix"
9193 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9194 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9196 found_so
="$dir/lib$name.$shlibext"
9197 if test -f "$dir/lib$name.la"; then
9198 found_la
="$dir/lib$name.la"
9201 if test -f "$dir/lib$name.$libext"; then
9203 found_a
="$dir/lib$name.$libext"
9204 if test -f "$dir/lib$name.la"; then
9205 found_la
="$dir/lib$name.la"
9211 if test "X$found_dir" != "X"; then
9216 if test "X$found_dir" != "X"; then
9217 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9218 if test "X$found_so" != "X"; then
9219 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9220 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9223 for x
in $ltrpathdirs; do
9224 if test "X$x" = "X$found_dir"; then
9229 if test -z "$haveit"; then
9230 ltrpathdirs
="$ltrpathdirs $found_dir"
9232 if test "$hardcode_direct" = yes; then
9233 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9235 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9236 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9238 for x
in $rpathdirs; do
9239 if test "X$x" = "X$found_dir"; then
9244 if test -z "$haveit"; then
9245 rpathdirs
="$rpathdirs $found_dir"
9249 for x
in $LDFLAGS $LIBICONV; do
9251 acl_save_prefix
="$prefix"
9252 prefix
="$acl_final_prefix"
9253 acl_save_exec_prefix
="$exec_prefix"
9254 exec_prefix
="$acl_final_exec_prefix"
9256 exec_prefix
="$acl_save_exec_prefix"
9257 prefix
="$acl_save_prefix"
9259 if test "X$x" = "X-L$found_dir"; then
9264 if test -z "$haveit"; then
9265 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9267 if test "$hardcode_minus_L" != no
; then
9268 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9270 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9276 if test "X$found_a" != "X"; then
9277 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9279 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9282 additional_includedir
=
9283 case "$found_dir" in
9285 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9286 additional_includedir
="$basedir/include"
9289 if test "X$additional_includedir" != "X"; then
9290 if test "X$additional_includedir" != "X/usr/include"; then
9292 if test "X$additional_includedir" = "X/usr/local/include"; then
9293 if test -n "$GCC"; then
9295 linux
*) haveit
=yes;;
9299 if test -z "$haveit"; then
9300 for x
in $CPPFLAGS $INCICONV; do
9302 acl_save_prefix
="$prefix"
9303 prefix
="$acl_final_prefix"
9304 acl_save_exec_prefix
="$exec_prefix"
9305 exec_prefix
="$acl_final_exec_prefix"
9307 exec_prefix
="$acl_save_exec_prefix"
9308 prefix
="$acl_save_prefix"
9310 if test "X$x" = "X-I$additional_includedir"; then
9315 if test -z "$haveit"; then
9316 if test -d "$additional_includedir"; then
9317 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9323 if test -n "$found_la"; then
9324 save_libdir
="$libdir"
9326 */* |
*\\*) .
"$found_la" ;;
9327 *) .
"./$found_la" ;;
9329 libdir
="$save_libdir"
9330 for dep
in $dependency_libs; do
9333 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9334 if test "X$additional_libdir" != "X/usr/lib"; then
9336 if test "X$additional_libdir" = "X/usr/local/lib"; then
9337 if test -n "$GCC"; then
9339 linux
*) haveit
=yes;;
9343 if test -z "$haveit"; then
9345 for x
in $LDFLAGS $LIBICONV; do
9347 acl_save_prefix
="$prefix"
9348 prefix
="$acl_final_prefix"
9349 acl_save_exec_prefix
="$exec_prefix"
9350 exec_prefix
="$acl_final_exec_prefix"
9352 exec_prefix
="$acl_save_exec_prefix"
9353 prefix
="$acl_save_prefix"
9355 if test "X$x" = "X-L$additional_libdir"; then
9360 if test -z "$haveit"; then
9361 if test -d "$additional_libdir"; then
9362 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9366 for x
in $LDFLAGS $LTLIBICONV; do
9368 acl_save_prefix
="$prefix"
9369 prefix
="$acl_final_prefix"
9370 acl_save_exec_prefix
="$exec_prefix"
9371 exec_prefix
="$acl_final_exec_prefix"
9373 exec_prefix
="$acl_save_exec_prefix"
9374 prefix
="$acl_save_prefix"
9376 if test "X$x" = "X-L$additional_libdir"; then
9381 if test -z "$haveit"; then
9382 if test -d "$additional_libdir"; then
9383 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9390 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9391 if test "$enable_rpath" != no
; then
9393 for x
in $rpathdirs; do
9394 if test "X$x" = "X$dir"; then
9399 if test -z "$haveit"; then
9400 rpathdirs
="$rpathdirs $dir"
9403 for x
in $ltrpathdirs; do
9404 if test "X$x" = "X$dir"; then
9409 if test -z "$haveit"; then
9410 ltrpathdirs
="$ltrpathdirs $dir"
9415 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9418 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9421 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9422 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9428 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9429 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9435 if test "X$rpathdirs" != "X"; then
9436 if test -n "$hardcode_libdir_separator"; then
9438 for found_dir
in $rpathdirs; do
9439 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9441 acl_save_libdir
="$libdir"
9443 eval flag
=\"$hardcode_libdir_flag_spec\"
9444 libdir
="$acl_save_libdir"
9445 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9447 for found_dir
in $rpathdirs; do
9448 acl_save_libdir
="$libdir"
9450 eval flag
=\"$hardcode_libdir_flag_spec\"
9451 libdir
="$acl_save_libdir"
9452 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9456 if test "X$ltrpathdirs" != "X"; then
9457 for found_dir
in $ltrpathdirs; do
9458 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9468 am_save_CPPFLAGS
="$CPPFLAGS"
9470 for element
in $INCICONV; do
9472 for x
in $CPPFLAGS; do
9474 acl_save_prefix
="$prefix"
9475 prefix
="$acl_final_prefix"
9476 acl_save_exec_prefix
="$exec_prefix"
9477 exec_prefix
="$acl_final_exec_prefix"
9479 exec_prefix
="$acl_save_exec_prefix"
9480 prefix
="$acl_save_prefix"
9482 if test "X$x" = "X$element"; then
9487 if test -z "$haveit"; then
9488 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9494 $as_echo_n "checking for iconv... " >&6; }
9495 if test "${am_cv_func_iconv+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
9499 am_cv_func_iconv
="no, consider installing GNU libiconv"
9501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9508 iconv_t cd = iconv_open("","");
9509 iconv(cd,NULL,NULL,NULL,NULL);
9515 if ac_fn_c_try_link
"$LINENO"; then :
9516 am_cv_func_iconv
=yes
9518 rm -f core conftest.err conftest.
$ac_objext \
9519 conftest
$ac_exeext conftest.
$ac_ext
9520 if test "$am_cv_func_iconv" != yes; then
9521 am_save_LIBS
="$LIBS"
9522 LIBS
="$LIBS $LIBICONV"
9523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9530 iconv_t cd = iconv_open("","");
9531 iconv(cd,NULL,NULL,NULL,NULL);
9537 if ac_fn_c_try_link
"$LINENO"; then :
9539 am_cv_func_iconv
=yes
9541 rm -f core conftest.err conftest.
$ac_objext \
9542 conftest
$ac_exeext conftest.
$ac_ext
9543 LIBS
="$am_save_LIBS"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9548 $as_echo "$am_cv_func_iconv" >&6; }
9549 if test "$am_cv_func_iconv" = yes; then
9551 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9554 if test "$am_cv_lib_iconv" = yes; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9556 $as_echo_n "checking how to link with libiconv... " >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9558 $as_echo "$LIBICONV" >&6; }
9560 CPPFLAGS
="$am_save_CPPFLAGS"
9567 if test "$am_cv_func_iconv" = yes; then
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9569 $as_echo_n "checking for iconv declaration... " >&6; }
9570 if test "${am_cv_proto_iconv+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9583 #if defined(__STDC__) || defined(__cplusplus)
9584 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9597 if ac_fn_c_try_compile
"$LINENO"; then :
9598 am_cv_proto_iconv_arg1
=""
9600 am_cv_proto_iconv_arg1
="const"
9602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9603 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);"
9606 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9608 }$am_cv_proto_iconv" >&5
9610 }$am_cv_proto_iconv" >&6; }
9612 cat >>confdefs.h
<<_ACEOF
9613 #define ICONV_CONST $am_cv_proto_iconv_arg1
9618 # Until we have in-tree GNU iconv:
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9624 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9625 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9626 $as_echo_n "(cached) " >&6
9628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9639 if ac_fn_c_try_link
"$LINENO"; then :
9640 am_cv_val_LC_MESSAGES
=yes
9642 am_cv_val_LC_MESSAGES
=no
9644 rm -f core conftest.err conftest.
$ac_objext \
9645 conftest
$ac_exeext conftest.
$ac_ext
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9648 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9649 if test $am_cv_val_LC_MESSAGES = yes; then
9651 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9658 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9659 if test "${am_cv_langinfo_codeset+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 #include <langinfo.h>
9668 char* cs = nl_langinfo(CODESET);
9673 if ac_fn_c_try_link
"$LINENO"; then :
9674 am_cv_langinfo_codeset
=yes
9676 am_cv_langinfo_codeset
=no
9678 rm -f core conftest.err conftest.
$ac_objext \
9679 conftest
$ac_exeext conftest.
$ac_ext
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9683 $as_echo "$am_cv_langinfo_codeset" >&6; }
9684 if test $am_cv_langinfo_codeset = yes; then
9686 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9691 # We will need to find libiberty.h and ansidecl.h
9692 saved_CFLAGS
="$CFLAGS"
9693 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9694 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
9695 strsignal strstr strverscmp \
9696 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9697 free
basename getopt
clock getpagesize 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
9699 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9701 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9702 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9703 $as_echo_n "(cached) " >&6
9705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9708 #define $ac_tr_decl 1
9710 #include "ansidecl.h"
9717 char *(*pfn) = (char *(*)) $ac_func ;
9723 if ac_fn_c_try_compile
"$LINENO"; then :
9724 eval "gcc_cv_have_decl_$ac_func=yes"
9726 eval "gcc_cv_have_decl_$ac_func=no"
9728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9731 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9733 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9734 #define $ac_tr_decl 1
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9740 #define $ac_tr_decl 0
9748 for ac_func
in getrlimit setrlimit getrusage
9750 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9752 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9753 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9754 $as_echo_n "(cached) " >&6
9756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9757 /* end confdefs.h. */
9759 #define $ac_tr_decl 1
9761 #include "ansidecl.h"
9763 #ifdef HAVE_SYS_RESOURCE_H
9764 #include <sys/resource.h>
9772 char *(*pfn) = (char *(*)) $ac_func ;
9778 if ac_fn_c_try_compile
"$LINENO"; then :
9779 eval "gcc_cv_have_decl_$ac_func=yes"
9781 eval "gcc_cv_have_decl_$ac_func=no"
9783 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9786 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9788 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9789 #define $ac_tr_decl 1
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9795 #define $ac_tr_decl 0
9803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9806 #include "ansidecl.h"
9808 #ifdef HAVE_SYS_RESOURCE_H
9809 #include <sys/resource.h>
9820 if ac_fn_c_try_compile
"$LINENO"; then :
9824 $as_echo "#define rlim_t long" >>confdefs.h
9827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9829 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9830 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9831 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9832 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9833 for ac_func
in ldgetname
9835 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9837 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9838 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9839 $as_echo_n "(cached) " >&6
9841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9842 /* end confdefs.h. */
9844 #define $ac_tr_decl 1
9846 #include "ansidecl.h"
9859 char *(*pfn) = (char *(*)) $ac_func ;
9865 if ac_fn_c_try_compile
"$LINENO"; then :
9866 eval "gcc_cv_have_decl_$ac_func=yes"
9868 eval "gcc_cv_have_decl_$ac_func=no"
9870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9873 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9875 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9876 #define $ac_tr_decl 1
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9882 #define $ac_tr_decl 0
9890 for ac_func
in times
9892 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9894 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9895 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9896 $as_echo_n "(cached) " >&6
9898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9901 #define $ac_tr_decl 1
9903 #include "ansidecl.h"
9905 #ifdef HAVE_SYS_TIMES_H
9906 #include <sys/times.h>
9914 char *(*pfn) = (char *(*)) $ac_func ;
9920 if ac_fn_c_try_compile
"$LINENO"; then :
9921 eval "gcc_cv_have_decl_$ac_func=yes"
9923 eval "gcc_cv_have_decl_$ac_func=no"
9925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9928 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9930 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9931 #define $ac_tr_decl 1
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9936 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9937 #define $ac_tr_decl 0
9945 for ac_func
in sigaltstack
9947 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9949 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9950 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9951 $as_echo_n "(cached) " >&6
9953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9954 /* end confdefs.h. */
9956 #define $ac_tr_decl 1
9958 #include "ansidecl.h"
9967 char *(*pfn) = (char *(*)) $ac_func ;
9973 if ac_fn_c_try_compile
"$LINENO"; then :
9974 eval "gcc_cv_have_decl_$ac_func=yes"
9976 eval "gcc_cv_have_decl_$ac_func=no"
9978 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9981 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9983 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
9984 #define $ac_tr_decl 1
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9989 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
9990 #define $ac_tr_decl 0
9998 # More time-related stuff.
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10000 $as_echo_n "checking for struct tms... " >&6; }
10001 if test "${ac_cv_struct_tms+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
10005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10006 /* end confdefs.h. */
10008 #include "ansidecl.h"
10009 #include "system.h"
10010 #ifdef HAVE_SYS_TIMES_H
10011 #include <sys/times.h>
10022 if ac_fn_c_try_compile
"$LINENO"; then :
10023 ac_cv_struct_tms
=yes
10025 ac_cv_struct_tms
=no
10027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10030 $as_echo "$ac_cv_struct_tms" >&6; }
10031 if test $ac_cv_struct_tms = yes; then
10033 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10037 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10038 # revisit after autoconf 2.50.
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10040 $as_echo_n "checking for clock_t... " >&6; }
10041 if test "${gcc_cv_type_clock_t+set}" = set; then :
10042 $as_echo_n "(cached) " >&6
10045 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10048 #include "ansidecl.h"
10049 #include "system.h"
10059 if ac_fn_c_try_compile
"$LINENO"; then :
10060 gcc_cv_type_clock_t
=yes
10062 gcc_cv_type_clock_t
=no
10064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10067 $as_echo "$gcc_cv_type_clock_t" >&6; }
10068 if test $gcc_cv_type_clock_t = yes; then
10070 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10074 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10075 CFLAGS
="$saved_CFLAGS"
10077 # Check whether --enable-initfini-array was given.
10078 if test "${enable_initfini_array+set}" = set; then :
10079 enableval
=$enable_initfini_array;
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10083 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10084 if test "${gcc_cv_initfini_array+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10087 if test "$cross_compiling" = yes; then :
10088 gcc_cv_initfini_array
=no
10090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10094 int main (void) { return x; }
10095 int foo (void) { x = 0; }
10096 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10098 if ac_fn_c_try_run
"$LINENO"; then :
10099 gcc_cv_initfini_array
=yes
10101 gcc_cv_initfini_array
=no
10103 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10104 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10109 $as_echo "$gcc_cv_initfini_array" >&6; }
10110 enable_initfini_array
=$gcc_cv_initfini_array
10114 if test $enable_initfini_array = yes; then
10116 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10120 # mkdir takes a single argument on some systems.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10122 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10123 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 #include <sys/types.h>
10130 #ifdef HAVE_SYS_STAT_H
10131 # include <sys/stat.h>
10133 #ifdef HAVE_UNISTD_H
10134 # include <unistd.h>
10136 #ifdef HAVE_DIRECT_H
10137 # include <direct.h>
10147 if ac_fn_c_try_compile
"$LINENO"; then :
10148 gcc_cv_mkdir_takes_one_arg
=no
10150 gcc_cv_mkdir_takes_one_arg
=yes
10152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10155 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10156 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10158 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10169 # With Setjmp/Longjmp based exception handling.
10170 # Check whether --enable-sjlj-exceptions was given.
10171 if test "${enable_sjlj_exceptions+set}" = set; then :
10172 enableval
=$enable_sjlj_exceptions; case $target in
10174 if test $enableval != yes; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10176 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10181 force_sjlj_exceptions
=yes
10185 force_sjlj_exceptions
=yes
10189 force_sjlj_exceptions
=no
10194 if test $force_sjlj_exceptions = yes; then
10195 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
10197 cat >>confdefs.h
<<_ACEOF
10198 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10203 # For platforms with the unwind ABI which includes an unwind library,
10204 # libunwind, we can choose to use the system libunwind.
10205 # config.gcc also contains tests of with_system_libunwind.
10208 # Check whether --with-system-libunwind was given.
10209 if test "${with_system_libunwind+set}" = set; then :
10210 withval
=$with_system_libunwind;
10213 # If system-libunwind was not specifically set, pick a default setting.
10214 if test x
$with_system_libunwind = x
; then
10216 ia64-
*-hpux*) with_system_libunwind
=yes ;;
10217 *) with_system_libunwind
=no
;;
10220 # Based on system-libunwind and target, do we have ipinfo?
10221 if test x
$with_system_libunwind = xyes
; then
10223 ia64-
*-*) have_unwind_getipinfo
=no
;;
10224 *) have_unwind_getipinfo
=yes ;;
10227 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10230 *-*-darwin[3-8]|
*-*-darwin[3-8].
*) have_unwind_getipinfo
=no
;;
10231 *) have_unwind_getipinfo
=yes ;;
10236 if test x
$have_unwind_getipinfo = xyes
; then
10238 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10243 # --------------------------------------------------------
10244 # Build, host, and target specific configuration fragments
10245 # --------------------------------------------------------
10247 # Collect build-machine-specific information.
10248 .
${srcdir}/config.build
10250 # Collect host-machine-specific information.
10251 .
${srcdir}/config.
host
10255 # Collect target-machine-specific information.
10256 .
${srcdir}/config.gcc
10258 extra_objs
="${host_extra_objs} ${extra_objs}"
10259 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
10261 # Default the target-machine variables that were not explicitly set.
10262 if test x
"$tm_file" = x
10263 then tm_file
=$cpu_type/$cpu_type.h
; fi
10265 if test x
"$extra_headers" = x
10266 then extra_headers
=; fi
10268 if test x
$md_file = x
10269 then md_file
=$cpu_type/$cpu_type.md
; fi
10271 if test x
$out_file = x
10272 then out_file
=$cpu_type/$cpu_type.c
; fi
10274 if test x
"$tmake_file" = x
10275 then tmake_file
=$cpu_type/t-
$cpu_type
10278 if test x
"$dwarf2" = xyes
10279 then tm_file
="$tm_file tm-dwarf2.h"
10282 # Say what files are being used for the output code and MD file.
10283 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10284 echo "Using \`$srcdir/config/$md_file' as machine description file."
10286 # If any of the xm_file variables contain nonexistent files, warn
10287 # about them and drop them.
10290 for x
in $build_xm_file; do
10291 if test -f $srcdir/config
/$x
10293 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10294 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10297 build_xm_file
="$bx"
10300 for x
in $host_xm_file; do
10301 if test -f $srcdir/config
/$x
10303 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10304 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10310 for x
in $xm_file; do
10311 if test -f $srcdir/config
/$x
10313 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10314 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10320 for f
in $tm_file; do
10323 if test $count = ax
; then
10324 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10326 echo "Using the following target machine macro files:"
10327 for f
in $tm_file; do
10328 echo " $srcdir/config/$f"
10332 if test x
$need_64bit_hwint = xyes
; then
10334 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10338 if test x
$use_long_long_for_widest_fast_int = xyes
; then
10340 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10345 for f
in $host_xm_file; do
10348 if test $count = a
; then
10350 elif test $count = ax
; then
10351 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10353 echo "Using the following host machine macro files:"
10354 for f
in $host_xm_file; do
10355 echo " $srcdir/config/$f"
10358 echo "Using ${out_host_hook_obj} for host machine hooks."
10360 if test "$host_xm_file" != "$build_xm_file"; then
10362 for f
in $build_xm_file; do
10365 if test $count = a
; then
10367 elif test $count = ax
; then
10368 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10370 echo "Using the following build machine macro files:"
10371 for f
in $build_xm_file; do
10372 echo " $srcdir/config/$f"
10378 powerpc
*-*-darwin*)
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10380 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10381 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10382 $as_echo_n "(cached) " >&6
10384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10385 /* end confdefs.h. */
10387 #include <sys/cdefs.h>
10388 #include <sys/signal.h>
10389 #include <ucontext.h>
10390 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10393 if ac_fn_c_try_compile
"$LINENO"; then :
10394 gcc_cv_mcontext_underscores
=no
10396 gcc_cv_mcontext_underscores
=yes
10398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10401 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10402 if test $gcc_cv_mcontext_underscores = yes; then
10404 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10414 # Check if a valid thread package
10415 case ${enable_threads} in
10418 target_thread_file
='single'
10422 target_thread_file
='single'
10424 aix | dce | gnat | irix | posix | posix95 | rtems | \
10425 single | solaris | vxworks | win32 | mipssde
)
10426 target_thread_file
=${enable_threads}
10429 echo "${enable_threads} is an unknown thread package" 1>&2
10434 if test x
${thread_file} = x
; then
10435 # No thread file set by target-specific clauses in config.gcc,
10436 # so use file chosen by default logic above
10437 thread_file
=${target_thread_file}
10440 # Make gthr-default.h if we have a thread file.
10442 if test $thread_file != single
; then
10443 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10444 if diff gthr-default.h-t gthr-default.h
2>/dev
/null
; then
10445 rm -f gthr-default.h-t
10447 mv -f gthr-default.h-t gthr-default.h
10449 gthread_flags
=-DHAVE_GTHR_DEFAULT
10458 if test x
$enable___cxa_atexit = xyes || \
10459 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
10460 if test x
$host = x
$target; then
10462 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10463 # keyed to flag_use_cxa_atexit
10468 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10469 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
10472 echo "__cxa_atexit can't be enabled on this target"
10478 # We can't check for __cxa_atexit when building a cross, so assume
10482 if test x
$use_cxa_atexit = xyes
; then
10484 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10489 # Look for a file containing extra machine modes.
10490 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
10491 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
10494 cat >>confdefs.h
<<_ACEOF
10495 #define EXTRA_MODES_FILE "config/$extra_modes"
10500 # Convert extra_options into a form suitable for Makefile use.
10502 for f
in $extra_options; do
10503 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
10507 # auto-host.h is the file containing items generated by autoconf and is
10508 # the first file included by config.h.
10509 # If host=build, it is correct to have bconfig include auto-host.h
10510 # as well. If host!=build, we are in error and need to do more
10511 # work to find out the build config parameters.
10512 if test x
$host = x
$build
10514 build_auto
=auto-host.h
10516 # We create a subdir, then run autoconf in the subdir.
10517 # To prevent recursion we set host and build for the new
10518 # invocation of configure to the build for this invocation
10525 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
10526 *) realsrcdir
=..
/${srcdir};;
10528 saved_CFLAGS
="${CFLAGS}"
10529 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
10530 LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
10531 ${realsrcdir}/configure \
10532 --enable-languages=${enable_languages-all} \
10533 --target=$target_alias --host=$build_alias --build=$build_alias
10534 CFLAGS
="${saved_CFLAGS}"
10536 # We just finished tests for the build machine, so rename
10537 # the file auto-build.h in the gcc directory.
10538 mv auto-host.h ..
/auto-build.h
10541 build_auto
=auto-build.h
10545 tm_file
="${tm_file} defaults.h"
10546 tm_p_file
="${tm_p_file} tm-preds.h"
10547 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
10548 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
10549 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10550 # put this back in temporarily.
10551 xm_file
="auto-host.h ansidecl.h ${xm_file}"
10557 # Compile in configure arguments.
10558 if test -f configargs.h
; then
10559 # Being re-configured.
10560 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10561 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10563 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10566 # Double all backslashes and backslash all quotes to turn
10567 # gcc_config_arguments into a C string.
10568 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10569 $gcc_config_arguments
10571 gcc_config_arguments_str
=`cat conftest.out`
10574 cat > configargs.h
<<EOF
10575 /* Generated automatically. */
10576 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10577 static const char thread_model[] = "$thread_file";
10579 static const struct {
10580 const char *name, *value;
10581 } configure_default_options[] = $configure_default_options;
10584 gcc_BASEVER
=`cat $srcdir/BASE-VER`
10585 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
10586 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
10587 if test -f $srcdir/REVISION
; then
10588 gcc_REVISION
=`cat $srcdir/REVISION`
10592 cat > plugin-version.h
<<EOF
10593 #include "configargs.h"
10595 static char basever[] = "$gcc_BASEVER";
10596 static char datestamp[] = "$gcc_DATESTAMP";
10597 static char devphase[] = "$gcc_DEVPHASE";
10598 static char revision[] = "$gcc_REVISION";
10600 /* FIXME plugins: We should make the version information more precise.
10601 One way to do is to add a checksum. */
10603 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10604 devphase, revision,
10605 configuration_arguments};
10608 # Internationalization
10609 # If we haven't got the data from the intl directory,
10610 # assume NLS is disabled.
10619 if test -f ..
/intl
/config.intl
; then
10620 . ..
/intl
/config.intl
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10623 $as_echo_n "checking whether NLS is requested... " >&6; }
10624 if test x
"$USE_NLS" != xyes
; then
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10626 $as_echo "no" >&6; }
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10629 $as_echo "yes" >&6; }
10631 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10635 $as_echo_n "checking for catalogs to be installed... " >&6; }
10636 # Look for .po and .gmo files in the source directory.
10639 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
10640 # If there aren't any .gmo files the shell will give us the
10641 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10643 case "$cat" in *\
**)
10646 # The quadruple backslash is collapsed to a double backslash
10647 # by the backticks, then collapsed again by the double quotes,
10648 # leaving us with one backslash in the sed expression (right
10649 # before the dot that mustn't act as a wildcard).
10650 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10651 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
10652 # The user is allowed to set LINGUAS to a list of languages to
10653 # install catalogs for. If it's empty that means "all of them."
10654 if test "x$LINGUAS" = x
; then
10655 CATALOGS
="$CATALOGS $cat"
10656 XLINGUAS
="$XLINGUAS $lang"
10658 case "$LINGUAS" in *$lang*)
10659 CATALOGS
="$CATALOGS $cat"
10660 XLINGUAS
="$XLINGUAS $lang"
10665 LINGUAS
="$XLINGUAS"
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10667 $as_echo "$LINGUAS" >&6; }
10680 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10681 # -liconv on the link line twice.
10682 case "$LIBINTL" in *$LIBICONV*)
10686 # Check whether --enable-secureplt was given.
10687 if test "${enable_secureplt+set}" = set; then :
10688 enableval
=$enable_secureplt;
10692 # Check whether --enable-leading-mingw64-underscores was given.
10693 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10694 enableval
=$enable_leading_mingw64_underscores;
10697 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
10699 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10703 # Check whether --enable-cld was given.
10704 if test "${enable_cld+set}" = set; then :
10705 enableval
=$enable_cld;
10711 # Windows32 Registry support for specifying GCC installation paths.
10712 # Check whether --enable-win32-registry was given.
10713 if test "${enable_win32_registry+set}" = set; then :
10714 enableval
=$enable_win32_registry;
10719 win32 | pe | cygwin
* | mingw32
* | uwin
*)
10720 if test "x$enable_win32_registry" != xno
; then
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10722 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10723 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10726 ac_func_search_save_LIBS
=$LIBS
10727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10728 /* end confdefs.h. */
10730 /* Override any GCC internal prototype to avoid an error.
10731 Use char because int might match the return type of a GCC
10732 builtin and then its argument prototype would still apply. */
10736 char RegOpenKeyExA ();
10740 return RegOpenKeyExA ();
10745 for ac_lib
in '' advapi32
; do
10746 if test -z "$ac_lib"; then
10747 ac_res
="none required"
10750 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10752 if ac_fn_c_try_link
"$LINENO"; then :
10753 ac_cv_search_RegOpenKeyExA
=$ac_res
10755 rm -f core conftest.err conftest.
$ac_objext \
10757 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10761 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10764 ac_cv_search_RegOpenKeyExA
=no
10766 rm conftest.
$ac_ext
10767 LIBS
=$ac_func_search_save_LIBS
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10770 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10771 ac_res
=$ac_cv_search_RegOpenKeyExA
10772 if test "$ac_res" != no
; then :
10773 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10776 enable_win32_registry
=no
10781 if test "x$enable_win32_registry" != xno
; then
10783 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10786 if test "x$enable_win32_registry" != xyes \
10787 && test "x$enable_win32_registry" != x
; then
10789 cat >>confdefs.h
<<_ACEOF
10790 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10798 # Get an absolute path to the GCC top-level source directory
10799 holddir
=`${PWDCMD-pwd}`
10801 topdir
=`${PWDCMD-pwd}`
10804 # Conditionalize the makefile for this host machine.
10806 for f
in ${host_xmake_file}
10808 if test -f ${srcdir}/config
/$f
10810 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
10814 # Conditionalize the makefile for this target machine.
10816 for f
in ${tmake_file}
10818 if test -f ${srcdir}/config
/$f
10820 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
10823 tmake_file
="${tmake_file_}"
10825 out_object_file
=`basename $out_file .c`.o
10827 tm_file_list
="options.h"
10828 tm_include_list
="options.h insn-constants.h"
10829 for f
in $tm_file; do
10832 f
=`echo $f | sed 's/^..//'`
10833 tm_file_list
="${tm_file_list} $f"
10834 tm_include_list
="${tm_include_list} $f"
10837 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
10838 tm_include_list
="${tm_include_list} $f"
10841 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
10842 tm_include_list
="${tm_include_list} config/$f"
10849 for f
in $tm_p_file; do
10852 tm_p_file_list
="${tm_p_file_list} $f"
10853 tm_p_include_list
="${tm_p_include_list} $f"
10856 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
10857 tm_p_include_list
="${tm_p_include_list} config/$f"
10863 for f
in $xm_file; do
10866 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
10867 xm_include_list
="${xm_include_list} $f"
10870 xm_file_list
="${xm_file_list} $f"
10871 xm_include_list
="${xm_include_list} $f"
10874 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
10875 xm_include_list
="${xm_include_list} config/$f"
10881 host_xm_include_list
=
10882 for f
in $host_xm_file; do
10885 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
10886 host_xm_include_list
="${host_xm_include_list} $f"
10889 host_xm_file_list
="${host_xm_file_list} $f"
10890 host_xm_include_list
="${host_xm_include_list} $f"
10893 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
10894 host_xm_include_list
="${host_xm_include_list} config/$f"
10899 build_xm_file_list
=
10900 for f
in $build_xm_file; do
10903 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
10904 build_xm_include_list
="${build_xm_include_list} $f"
10906 auto-build.h | auto-host.h
)
10907 build_xm_file_list
="${build_xm_file_list} $f"
10908 build_xm_include_list
="${build_xm_include_list} $f"
10911 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
10912 build_xm_include_list
="${build_xm_include_list} config/$f"
10917 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10918 # cross-compiler which does not use the native headers and libraries.
10919 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10922 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10924 if test "x$with_build_sysroot" != x
; then
10925 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10927 # This value is used, even on a native system, because
10928 # CROSS_SYSTEM_HEADER_DIR is just
10929 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10930 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
10933 if test x
$host != x
$target
10935 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
10937 SYSTEM_HEADER_DIR
=$build_system_header_dir
10938 case "$host","$target" in
10939 # Darwin crosses can use the host system's libraries and headers,
10940 # because of the fat library support. Of course, it must be the
10941 # same version of Darwin on both sides. Allow the user to
10942 # just say --target=foo-darwin without a version number to mean
10943 # "the version on this system".
10944 *-*-darwin*,*-*-darwin*)
10945 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
10946 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
10947 if test $hostos = $targetos -o $targetos = darwin
; then
10949 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
10954 i?
86-*-*,x86_64-
*-* \
10955 | powerpc
*-*-*,powerpc64
*-*-*)
10956 CROSS
="$CROSS -DNATIVE_CROSS" ;;
10958 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
10959 SYSTEM_HEADER_DIR
=$build_system_header_dir
10962 # If this is a cross-compiler that does not
10963 # have its own set of headers then define
10966 # If this is using newlib, without having the headers available now,
10967 # then define inhibit_libc in LIBGCC2_CFLAGS.
10968 # This prevents libgcc2 from containing any code which requires libc
10970 : ${inhibit_libc=false}
10971 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
10972 test x
$with_newlib = xyes
; } &&
10973 { test "x$with_headers" = x ||
test "x$with_headers" = xno
; } ; then
10978 # When building gcc with a cross-compiler, we need to adjust things so
10979 # that the generator programs are still built with the native compiler.
10980 # Also, we cannot run fixincludes.
10982 # These are the normal (build=host) settings:
10983 CC_FOR_BUILD
='$(CC)'
10984 BUILD_CFLAGS
='$(ALL_CFLAGS)'
10985 BUILD_LDFLAGS
='$(LDFLAGS)'
10986 STMP_FIXINC
=stmp-fixinc
10988 # And these apply if build != host, or we are generating coverage data
10989 if test x
$build != x
$host ||
test "x$coverage_flags" != x
10991 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10992 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
10995 # Expand extra_headers to include complete path.
10996 # This substitutes for lots of t-* files.
10997 extra_headers_list
=
10998 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10999 for file in ${extra_headers} ; do
11000 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11003 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11004 if test x
"$use_gcc_tgmath" = xyes
11005 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11008 # Define collect2 in Makefile.
11009 case $host_can_use_collect2 in
11011 *) collect2
='collect2$(exeext)' ;;
11015 # Add a definition of USE_COLLECT2 if system wants one.
11016 case $use_collect2 in
11017 no
) use_collect2
= ;;
11020 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11021 xm_defines
="${xm_defines} USE_COLLECT2"
11022 case $host_can_use_collect2 in
11024 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11030 # ---------------------------
11031 # Assembler & linker features
11032 # ---------------------------
11034 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11035 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11036 # However when ld-new is first executed from the build tree, libtool will
11037 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11038 # to the build tree. While doing this we need to use the previous-stage
11039 # linker, or we have an infinite loop. The presence of a shell script as
11040 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11041 # the gcc/collect-ld script. So we need to know how libtool works, or
11042 # exec-tool will fail.
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11048 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11053 macro_version
='2.2.7a'
11054 macro_revision
='1.3134'
11068 ltmain
="$ac_aux_dir/ltmain.sh"
11070 # Backslashify metacharacters that are still active within
11071 # double-quoted strings.
11072 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
11074 # Same as above, but do not quote variable references.
11075 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
11077 # Sed substitution to delay expansion of an escaped shell variable in a
11078 # double_quote_subst'ed string.
11079 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11081 # Sed substitution to delay expansion of an escaped single quote.
11082 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
11084 # Sed substitution to avoid accidental globbing in evaled expressions
11085 no_glob_subst
='s/\*/\\\*/g'
11087 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11088 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11089 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11092 $as_echo_n "checking how to print strings... " >&6; }
11093 # Test print first, because it will be a builtin if present.
11094 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11095 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11097 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11100 # Use this function as a fallback that always works.
11101 func_fallback_echo ()
11103 eval 'cat <<_LTECHO_EOF
11107 ECHO='func_fallback_echo
'
11110 # func_echo_all arg...
11111 # Invoke $ECHO with all args, space-separated.
11118 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11119 $as_echo "printf" >&6; } ;;
11120 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11121 $as_echo "print -r" >&6; } ;;
11122 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11123 $as_echo "cat" >&6; } ;;
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11140 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11141 if test "${ac_cv_path_SED+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11144 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11145 for ac_i in 1 2 3 4 5 6 7; do
11146 ac_script="$ac_script$as_nl$ac_script"
11148 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11149 { ac_script=; unset ac_script;}
11150 if test -z "$SED"; then
11151 ac_path_SED_found=false
11152 # Loop through the user's path and
test for each of PROGNAME-LIST
11153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11154 for as_dir
in $PATH
11157 test -z "$as_dir" && as_dir
=.
11158 for ac_prog
in sed gsed
; do
11159 for ac_exec_ext
in '' $ac_executable_extensions; do
11160 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
11161 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
11162 # Check for GNU ac_path_SED and select it if it is found.
11163 # Check for GNU $ac_path_SED
11164 case `"$ac_path_SED" --version 2>&1` in
11166 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
11169 $as_echo_n 0123456789 >"conftest.in"
11172 cat "conftest.in" "conftest.in" >"conftest.tmp"
11173 mv "conftest.tmp" "conftest.in"
11174 cp "conftest.in" "conftest.nl"
11175 $as_echo '' >> "conftest.nl"
11176 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11177 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11178 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11179 if test $ac_count -gt ${ac_path_SED_max-0}; then
11180 # Best one so far, save it but keep looking for a better one
11181 ac_cv_path_SED
="$ac_path_SED"
11182 ac_path_SED_max
=$ac_count
11184 # 10*(2^10) chars as input seems more than enough
11185 test $ac_count -gt 10 && break
11187 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11190 $ac_path_SED_found && break 3
11195 if test -z "$ac_cv_path_SED"; then
11196 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
11199 ac_cv_path_SED
=$SED
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11204 $as_echo "$ac_cv_path_SED" >&6; }
11205 SED
="$ac_cv_path_SED"
11208 test -z "$SED" && SED
=sed
11209 Xsed
="$SED -e 1s/^X//"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11222 $as_echo_n "checking for fgrep... " >&6; }
11223 if test "${ac_cv_path_FGREP+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11226 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
11227 then ac_cv_path_FGREP
="$GREP -F"
11229 if test -z "$FGREP"; then
11230 ac_path_FGREP_found
=false
11231 # Loop through the user's path and test for each of PROGNAME-LIST
11232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11233 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11236 test -z "$as_dir" && as_dir
=.
11237 for ac_prog
in fgrep
; do
11238 for ac_exec_ext
in '' $ac_executable_extensions; do
11239 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
11240 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
11241 # Check for GNU ac_path_FGREP and select it if it is found.
11242 # Check for GNU $ac_path_FGREP
11243 case `"$ac_path_FGREP" --version 2>&1` in
11245 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
11248 $as_echo_n 0123456789 >"conftest.in"
11251 cat "conftest.in" "conftest.in" >"conftest.tmp"
11252 mv "conftest.tmp" "conftest.in"
11253 cp "conftest.in" "conftest.nl"
11254 $as_echo 'FGREP' >> "conftest.nl"
11255 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11256 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11257 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11258 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11259 # Best one so far, save it but keep looking for a better one
11260 ac_cv_path_FGREP
="$ac_path_FGREP"
11261 ac_path_FGREP_max
=$ac_count
11263 # 10*(2^10) chars as input seems more than enough
11264 test $ac_count -gt 10 && break
11266 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11269 $ac_path_FGREP_found && break 3
11274 if test -z "$ac_cv_path_FGREP"; then
11275 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11278 ac_cv_path_FGREP
=$FGREP
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11284 $as_echo "$ac_cv_path_FGREP" >&6; }
11285 FGREP
="$ac_cv_path_FGREP"
11288 test -z "$GREP" && GREP
=grep
11308 # Check whether --with-gnu-ld was given.
11309 if test "${with_gnu_ld+set}" = set; then :
11310 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
11316 if test "$GCC" = yes; then
11317 # Check if gcc -print-prog-name=ld gives a path.
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11319 $as_echo_n "checking for ld used by $CC... " >&6; }
11322 # gcc leaves a trailing carriage return which upsets mingw
11323 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11325 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
11328 # Accept absolute paths.
11330 re_direlt
='/[^/][^/]*/\.\./'
11331 # Canonicalize the pathname of ld
11332 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11333 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
11334 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11336 test -z "$LD" && LD
="$ac_prog"
11339 # If it fails, then pretend we aren't using GCC.
11343 # If it is relative, then search for the first ld in PATH.
11344 with_gnu_ld
=unknown
11347 elif test "$with_gnu_ld" = yes; then
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11349 $as_echo_n "checking for GNU ld... " >&6; }
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11352 $as_echo_n "checking for non-GNU ld... " >&6; }
11354 if test "${lt_cv_path_LD+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11357 if test -z "$LD"; then
11358 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11359 for ac_dir
in $PATH; do
11361 test -z "$ac_dir" && ac_dir
=.
11362 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
11363 lt_cv_path_LD
="$ac_dir/$ac_prog"
11364 # Check to see if the program is GNU ld. I'd rather use --version,
11365 # but apparently some variants of GNU ld only accept -v.
11366 # Break only if it was the GNU/non-GNU ld that we prefer.
11367 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11368 *GNU
* |
*'with BFD'*)
11369 test "$with_gnu_ld" != no
&& break
11372 test "$with_gnu_ld" != yes && break
11379 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
11383 LD
="$lt_cv_path_LD"
11384 if test -n "$LD"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11386 $as_echo "$LD" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11391 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11393 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11394 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11395 $as_echo_n "(cached) " >&6
11397 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11398 case `$LD -v 2>&1 </dev/null` in
11399 *GNU
* |
*'with BFD'*)
11400 lt_cv_prog_gnu_ld
=yes
11403 lt_cv_prog_gnu_ld
=no
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11408 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11409 with_gnu_ld
=$lt_cv_prog_gnu_ld
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11420 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11421 if test "${lt_cv_path_NM+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
11424 if test -n "$NM"; then
11425 # Let the user override the test.
11426 lt_cv_path_NM
="$NM"
11428 lt_nm_to_check
="${ac_tool_prefix}nm"
11429 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11430 lt_nm_to_check
="$lt_nm_to_check nm"
11432 for lt_tmp_nm
in $lt_nm_to_check; do
11433 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11434 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
11436 test -z "$ac_dir" && ac_dir
=.
11437 tmp_nm
="$ac_dir/$lt_tmp_nm"
11438 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
11439 # Check to see if the nm accepts a BSD-compat flag.
11440 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11441 # nm: unknown option "B" ignored
11442 # Tru64's nm complains that /dev/null is an invalid object file
11443 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11444 */dev
/null
* |
*'Invalid file or object type'*)
11445 lt_cv_path_NM
="$tmp_nm -B"
11449 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11451 lt_cv_path_NM
="$tmp_nm -p"
11455 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11456 continue # so that we can try to find one that supports BSD flags
11465 : ${lt_cv_path_NM=no}
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11469 $as_echo "$lt_cv_path_NM" >&6; }
11470 if test "$lt_cv_path_NM" != "no"; then
11471 NM
="$lt_cv_path_NM"
11473 # Didn't find any BSD compatible name lister, look for dumpbin.
11474 if test -n "$DUMPBIN"; then :
11475 # Let the user override the test.
11477 if test -n "$ac_tool_prefix"; then
11478 for ac_prog
in dumpbin
"link -dump"
11480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11481 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483 $as_echo_n "checking for $ac_word... " >&6; }
11484 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
11487 if test -n "$DUMPBIN"; then
11488 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
11490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11491 for as_dir
in $PATH
11494 test -z "$as_dir" && as_dir
=.
11495 for ac_exec_ext
in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11497 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11507 DUMPBIN
=$ac_cv_prog_DUMPBIN
11508 if test -n "$DUMPBIN"; then
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11510 $as_echo "$DUMPBIN" >&6; }
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513 $as_echo "no" >&6; }
11517 test -n "$DUMPBIN" && break
11520 if test -z "$DUMPBIN"; then
11521 ac_ct_DUMPBIN
=$DUMPBIN
11522 for ac_prog
in dumpbin
"link -dump"
11524 # Extract the first word of "$ac_prog", so it can be a program name with args.
11525 set dummy
$ac_prog; ac_word
=$2
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 $as_echo_n "checking for $ac_word... " >&6; }
11528 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11531 if test -n "$ac_ct_DUMPBIN"; then
11532 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
11534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11535 for as_dir
in $PATH
11538 test -z "$as_dir" && as_dir
=.
11539 for ac_exec_ext
in '' $ac_executable_extensions; do
11540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11541 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
11542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11551 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
11552 if test -n "$ac_ct_DUMPBIN"; then
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11554 $as_echo "$ac_ct_DUMPBIN" >&6; }
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11557 $as_echo "no" >&6; }
11561 test -n "$ac_ct_DUMPBIN" && break
11564 if test "x$ac_ct_DUMPBIN" = x
; then
11567 case $cross_compiling:$ac_tool_warned in
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11571 ac_tool_warned
=yes ;;
11573 DUMPBIN
=$ac_ct_DUMPBIN
11577 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11579 DUMPBIN
="$DUMPBIN -symbols"
11587 if test "$DUMPBIN" != ":"; then
11591 test -z "$NM" && NM
=nm
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11599 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11600 if test "${lt_cv_nm_interface+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11603 lt_cv_nm_interface
="BSD nm"
11604 echo "int some_variable = 0;" > conftest.
$ac_ext
11605 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11606 (eval "$ac_compile" 2>conftest.err
)
11607 cat conftest.err
>&5
11608 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11609 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
11610 cat conftest.err
>&5
11611 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11612 cat conftest.out
>&5
11613 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
11614 lt_cv_nm_interface
="MS dumpbin"
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11619 $as_echo "$lt_cv_nm_interface" >&6; }
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11622 $as_echo_n "checking whether ln -s works... " >&6; }
11624 if test "$LN_S" = "ln -s"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11626 $as_echo "yes" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11629 $as_echo "no, using $LN_S" >&6; }
11632 # find the maximum length of command line arguments
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11634 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11635 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11636 $as_echo_n "(cached) " >&6
11643 # On DJGPP, this test can blow up pretty badly due to problems in libc
11644 # (any single argument exceeding 2000 bytes causes a buffer overrun
11645 # during glob expansion). Even if it were fixed, the result of this
11646 # check would be larger than it should be.
11647 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11651 # Under GNU Hurd, this test is not required because there is
11652 # no limit to the length of command line arguments.
11653 # Libtool will interpret -1 as no limit whatsoever
11654 lt_cv_sys_max_cmd_len
=-1;
11657 cygwin
* | mingw
* | cegcc
*)
11658 # On Win9x/ME, this test blows up -- it succeeds, but takes
11659 # about 5 minutes as the teststring grows exponentially.
11660 # Worse, since 9x/ME are not pre-emptively multitasking,
11661 # you end up with a "frozen" computer, even though with patience
11662 # the test eventually succeeds (with a max line length of 256k).
11663 # Instead, let's just punt: use the minimum linelength reported by
11664 # all of the supported platforms: 8192 (on NT/2K/XP).
11665 lt_cv_sys_max_cmd_len
=8192;
11669 # On MiNT this can take a long time and run out of memory.
11670 lt_cv_sys_max_cmd_len
=8192;
11674 # On AmigaOS with pdksh, this test takes hours, literally.
11675 # So we just punt and use a minimum line length of 8192.
11676 lt_cv_sys_max_cmd_len
=8192;
11679 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11680 # This has been around since 386BSD, at least. Likely further.
11681 if test -x /sbin
/sysctl
; then
11682 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11683 elif test -x /usr
/sbin
/sysctl
; then
11684 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11686 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11688 # And add a safety zone
11689 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11690 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11694 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11695 lt_cv_sys_max_cmd_len
=196608
11699 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11700 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11701 # nice to cause kernel panics so lets avoid the loop below.
11702 # First set a reasonable default.
11703 lt_cv_sys_max_cmd_len
=16384
11705 if test -x /sbin
/sysconfig
; then
11706 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11707 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11712 lt_cv_sys_max_cmd_len
=102400
11714 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11715 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11716 if test -n "$kargmax"; then
11717 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11719 lt_cv_sys_max_cmd_len
=32768
11723 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11724 if test -n "$lt_cv_sys_max_cmd_len"; then
11725 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11726 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11728 # Make teststring a little bigger before we do anything with it.
11729 # a 1K string should be a reasonable start.
11730 for i
in 1 2 3 4 5 6 7 8 ; do
11731 teststring
=$teststring$teststring
11733 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11734 # If test is not a shell built-in, we'll probably end up computing a
11735 # maximum length that is only half of the actual maximum length, but
11737 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11738 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
11739 test $i != 17 # 1/2 MB should be enough
11742 teststring
=$teststring$teststring
11744 # Only check the string length outside the loop.
11745 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
11747 # Add a significant safety factor because C++ compilers can tack on
11748 # massive amounts of additional arguments before passing them to the
11749 # linker. It appears as though 1/2 is a usable value.
11750 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11757 if test -n $lt_cv_sys_max_cmd_len ; then
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11759 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11762 $as_echo "none" >&6; }
11764 max_cmd_len
=$lt_cv_sys_max_cmd_len
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11776 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11777 # Try some XSI features
11779 ( _lt_dummy
="a/b/c"
11780 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11782 && eval 'test $(( 1 + 1 )) -eq 2 \
11783 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
11786 $as_echo "$xsi_shell" >&6; }
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
11790 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
11792 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
11794 && lt_shell_append=yes
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
11796 $as_echo "$lt_shell_append" >&6; }
11799 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11809 # test EBCDIC or ASCII
11810 case `echo X|tr X '\101'` in
11811 A) # ASCII based system
11812 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11813 lt_SP2NL='tr \040 \012'
11814 lt_NL2SP='tr \015\012 \040\040'
11816 *) # EBCDIC based system
11817 lt_SP2NL='tr \100 \n'
11818 lt_NL2SP='tr \r\n \100\100'
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
11831 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
11832 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11833 $as_echo_n "(cached
) " >&6
11835 lt_cv_ld_reload_flag='-r'
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
11838 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11839 reload_flag=$lt_cv_ld_reload_flag
11840 case $reload_flag in
11842 *) reload_flag=" $reload_flag" ;;
11844 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11847 if test "$GCC" = yes; then
11848 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11850 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11863 if test -n "$ac_tool_prefix"; then
11864 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
11865 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11867 $as_echo_n "checking
for $ac_word...
" >&6; }
11868 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11869 $as_echo_n "(cached
) " >&6
11871 if test -n "$OBJDUMP"; then
11872 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11878 test -z "$as_dir" && as_dir=.
11879 for ac_exec_ext in '' $ac_executable_extensions; do
11880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
11882 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11891 OBJDUMP=$ac_cv_prog_OBJDUMP
11892 if test -n "$OBJDUMP"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
11894 $as_echo "$OBJDUMP" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11897 $as_echo "no
" >&6; }
11902 if test -z "$ac_cv_prog_OBJDUMP"; then
11903 ac_ct_OBJDUMP=$OBJDUMP
11904 # Extract the first word of "objdump
", so it can be a program name with args.
11905 set dummy objdump; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11907 $as_echo_n "checking
for $ac_word...
" >&6; }
11908 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11909 $as_echo_n "(cached
) " >&6
11911 if test -n "$ac_ct_OBJDUMP"; then
11912 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915 for as_dir in $PATH
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11921 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
11922 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11931 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11932 if test -n "$ac_ct_OBJDUMP"; then
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
11934 $as_echo "$ac_ct_OBJDUMP" >&6; }
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11937 $as_echo "no
" >&6; }
11940 if test "x
$ac_ct_OBJDUMP" = x; then
11943 case $cross_compiling:$ac_tool_warned in
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
11946 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
11947 ac_tool_warned=yes ;;
11949 OBJDUMP=$ac_ct_OBJDUMP
11952 OBJDUMP="$ac_cv_prog_OBJDUMP"
11955 test -z "$OBJDUMP" && OBJDUMP=objdump
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
11966 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
11967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11968 $as_echo_n "(cached
) " >&6
11970 lt_cv_file_magic_cmd='$MAGIC_CMD'
11971 lt_cv_file_magic_test_file=
11972 lt_cv_deplibs_check_method='unknown'
11973 # Need to set the preceding variable on all platforms that support
11974 # interlibrary dependencies.
11975 # 'none' -- dependencies not supported.
11976 # `unknown' -- same as none, but documents that we really don't know.
11977 # 'pass_all' -- all dependencies passed with no checks.
11978 # 'test_compile' -- check by making test program.
11979 # 'file_magic [[regex]]' -- check by looking for files in library path
11980 # which responds to the $file_magic_cmd with a given extended regex.
11981 # If you have `file' or equivalent on your system and you're not sure
11982 # whether `pass_all' will *always* work, you probably want this one.
11986 lt_cv_deplibs_check_method=pass_all
11990 lt_cv_deplibs_check_method=pass_all
11994 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11995 lt_cv_file_magic_cmd='/usr/bin/file -L'
11996 lt_cv_file_magic_test_file=/shlib/libc.so
12000 # func_win32_libid is a shell function defined in ltmain.sh
12001 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12002 lt_cv_file_magic_cmd='func_win32_libid'
12006 # Base MSYS/MinGW do not provide the 'file' command needed by
12007 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12008 # unless we find 'file', for example because we are cross-compiling.
12009 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12010 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12012 lt_cv_file_magic_cmd='func_win32_libid'
12014 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12015 lt_cv_file_magic_cmd='$OBJDUMP -f'
12020 # use the weaker test based on 'objdump'. See mingw*.
12021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12022 lt_cv_file_magic_cmd='$OBJDUMP -f'
12025 darwin* | rhapsody*)
12026 lt_cv_deplibs_check_method=pass_all
12029 freebsd* | dragonfly*)
12030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12033 # Not sure whether the presence of OpenBSD here was a mistake.
12034 # Let's accept both of them until this is cleared up.
12035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12036 lt_cv_file_magic_cmd=/usr/bin/file
12037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12041 lt_cv_deplibs_check_method=pass_all
12046 lt_cv_deplibs_check_method=pass_all
12050 lt_cv_deplibs_check_method=pass_all
12053 hpux10.20* | hpux11*)
12054 lt_cv_file_magic_cmd=/usr/bin/file
12057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12058 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12061 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]'
12062 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12066 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12072 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12076 irix5* | irix6* | nonstopux*)
12078 *-32|*"-32 ") libmagic=32-bit;;
12079 *-n32|*"-n32 ") libmagic=N32;;
12080 *-64|*"-64 ") libmagic=64-bit;;
12081 *) libmagic=never-match;;
12083 lt_cv_deplibs_check_method=pass_all
12086 # This must be Linux ELF.
12087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12088 lt_cv_deplibs_check_method=pass_all
12092 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12101 lt_cv_file_magic_cmd=/usr/bin/file
12102 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12106 lt_cv_deplibs_check_method=pass_all
12110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
12111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12117 osf3* | osf4* | osf5*)
12118 lt_cv_deplibs_check_method=pass_all
12122 lt_cv_deplibs_check_method=pass_all
12126 lt_cv_deplibs_check_method=pass_all
12129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12130 lt_cv_deplibs_check_method=pass_all
12134 case $host_vendor in
12136 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]'
12137 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12140 lt_cv_deplibs_check_method=pass_all
12143 lt_cv_file_magic_cmd='/bin/file'
12144 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12147 lt_cv_file_magic_cmd='/bin/file'
12148 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
12149 lt_cv_file_magic_test_file=/lib/libc.so
12152 lt_cv_deplibs_check_method=pass_all
12155 lt_cv_deplibs_check_method=pass_all
12161 lt_cv_deplibs_check_method=pass_all
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
12167 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12168 file_magic_cmd=$lt_cv_file_magic_cmd
12169 deplibs_check_method=$lt_cv_deplibs_check_method
12170 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12183 if test -n "$ac_tool_prefix"; then
12184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12185 set dummy ${ac_tool_prefix}ar; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12187 $as_echo_n "checking
for $ac_word...
" >&6; }
12188 if test "${ac_cv_prog_AR+set}" = set; then :
12189 $as_echo_n "(cached
) " >&6
12191 if test -n "$AR"; then
12192 ac_cv_prog_AR="$AR" # Let the user override the test.
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12201 ac_cv_prog_AR="${ac_tool_prefix}ar"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12212 if test -n "$AR"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12214 $as_echo "$AR" >&6; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12217 $as_echo "no
" >&6; }
12222 if test -z "$ac_cv_prog_AR"; then
12224 # Extract the first word of "ar", so it can be a program name with args.
12225 set dummy ar; ac_word=$2
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12227 $as_echo_n "checking
for $ac_word...
" >&6; }
12228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12229 $as_echo_n "(cached
) " >&6
12231 if test -n "$ac_ct_AR"; then
12232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235 for as_dir in $PATH
12238 test -z "$as_dir" && as_dir=.
12239 for ac_exec_ext in '' $ac_executable_extensions; do
12240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12241 ac_cv_prog_ac_ct_AR="ar"
12242 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12252 if test -n "$ac_ct_AR"; then
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12254 $as_echo "$ac_ct_AR" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12257 $as_echo "no
" >&6; }
12260 if test "x
$ac_ct_AR" = x; then
12263 case $cross_compiling:$ac_tool_warned in
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12266 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12267 ac_tool_warned=yes ;;
12272 AR="$ac_cv_prog_AR"
12275 test -z "$AR" && AR=ar
12276 test -z "$AR_FLAGS" && AR_FLAGS=cru
12288 if test -n "$ac_tool_prefix"; then
12289 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
12290 set dummy ${ac_tool_prefix}strip; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12292 $as_echo_n "checking
for $ac_word...
" >&6; }
12293 if test "${ac_cv_prog_STRIP+set}" = set; then :
12294 $as_echo_n "(cached
) " >&6
12296 if test -n "$STRIP"; then
12297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12316 STRIP=$ac_cv_prog_STRIP
12317 if test -n "$STRIP"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12319 $as_echo "$STRIP" >&6; }
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12322 $as_echo "no
" >&6; }
12327 if test -z "$ac_cv_prog_STRIP"; then
12329 # Extract the first word of "strip
", so it can be a program name with args.
12330 set dummy strip; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12332 $as_echo_n "checking
for $ac_word...
" >&6; }
12333 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12334 $as_echo_n "(cached
) " >&6
12336 if test -n "$ac_ct_STRIP"; then
12337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12346 ac_cv_prog_ac_ct_STRIP="strip
"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12357 if test -n "$ac_ct_STRIP"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
12359 $as_echo "$ac_ct_STRIP" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12362 $as_echo "no
" >&6; }
12365 if test "x
$ac_ct_STRIP" = x; then
12368 case $cross_compiling:$ac_tool_warned in
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12371 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12372 ac_tool_warned=yes ;;
12377 STRIP="$ac_cv_prog_STRIP"
12380 test -z "$STRIP" && STRIP=:
12387 if test -n "$ac_tool_prefix"; then
12388 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
12389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12391 $as_echo_n "checking
for $ac_word...
" >&6; }
12392 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12393 $as_echo_n "(cached
) " >&6
12395 if test -n "$RANLIB"; then
12396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12415 RANLIB=$ac_cv_prog_RANLIB
12416 if test -n "$RANLIB"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12418 $as_echo "$RANLIB" >&6; }
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12421 $as_echo "no
" >&6; }
12426 if test -z "$ac_cv_prog_RANLIB"; then
12427 ac_ct_RANLIB=$RANLIB
12428 # Extract the first word of "ranlib
", so it can be a program name with args.
12429 set dummy ranlib; ac_word=$2
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12431 $as_echo_n "checking
for $ac_word...
" >&6; }
12432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12433 $as_echo_n "(cached
) " >&6
12435 if test -n "$ac_ct_RANLIB"; then
12436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12439 for as_dir in $PATH
12442 test -z "$as_dir" && as_dir=.
12443 for ac_exec_ext in '' $ac_executable_extensions; do
12444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12445 ac_cv_prog_ac_ct_RANLIB="ranlib
"
12446 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12456 if test -n "$ac_ct_RANLIB"; then
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
12458 $as_echo "$ac_ct_RANLIB" >&6; }
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12461 $as_echo "no
" >&6; }
12464 if test "x
$ac_ct_RANLIB" = x; then
12467 case $cross_compiling:$ac_tool_warned in
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12470 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12471 ac_tool_warned=yes ;;
12473 RANLIB=$ac_ct_RANLIB
12476 RANLIB="$ac_cv_prog_RANLIB"
12479 test -z "$RANLIB" && RANLIB=:
12486 # Determine commands to create old-style static archives.
12487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12488 old_postinstall_cmds='chmod 644 $oldlib'
12489 old_postuninstall_cmds=
12491 if test -n "$RANLIB"; then
12494 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
12497 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
12500 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
12505 lock_old_archive_extraction=yes ;;
12507 lock_old_archive_extraction=no ;;
12548 # If no C compiler was specified, use CC.
12551 # If no C compiler flags were specified, use CFLAGS.
12552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12554 # Allow CC to be a program name with arguments.
12558 # Check for command to grab the raw symbol name followed by C symbol from nm.
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
12560 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
12561 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12562 $as_echo_n "(cached
) " >&6
12565 # These are sane defaults that work on at least a few old systems.
12566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12568 # Character class describing NM global symbol codes.
12569 symcode='[BCDEGRST]'
12571 # Regexp to match symbols that can be accessed directly from C.
12572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12574 # Define system-specific variables.
12579 cygwin* | mingw* | pw32* | cegcc*)
12580 symcode='[ABCDGISTW]'
12583 if test "$host_cpu" = ia64; then
12584 symcode='[ABCDEGRST]'
12587 irix* | nonstopux*)
12588 symcode='[BCDEGRST]'
12591 symcode='[BCDEGQRST]'
12602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12610 # If we're using GNU nm, then use its standard symbol codes.
12611 case `$NM -V 2>&1` in
12612 *GNU* | *'with BFD'*)
12613 symcode='[ABCDGIRSTW]' ;;
12616 # Transform an extracted symbol line into a proper C declaration.
12617 # Some systems (esp. on ia64) link data and code symbols differently,
12618 # so use this general approach.
12619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12621 # Transform an extracted symbol line into symbol name and symbol address
12622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12623 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'"
12625 # Handle CRLF in mingw tool chain
12629 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12633 # Try without a prefix underscore, then with it.
12634 for ac_symprfx in "" "_
"; do
12636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12637 symxfrm="\\1 $ac_symprfx\\2 \\2"
12639 # Write the raw and C identifiers.
12640 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
12641 # Fake it for dumpbin and say T for any non-static function
12642 # and D for any global variable.
12643 # Also find C++ and __fastcall symbols from MSVC++,
12644 # which start with @ or ?.
12645 lt_cv_sys_global_symbol_pipe="$AWK '"\
12646 " {last_section=section; section=\$ 3};"\
12647 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12648 " \$ 0!~/External *\|/{next};"\
12649 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12650 " {if(hide[section]) next};"\
12651 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12652 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12653 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12654 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12655 " ' prfx
=^
$ac_symprfx"
12657 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12660 # Check to see that the pipe works correctly.
12664 cat > conftest.$ac_ext <<_LT_EOF
12669 void nm_test_func(void);
12670 void nm_test_func(void){}
12674 int main(){nm_test_var='a';nm_test_func();return(0);}
12677 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12678 (eval $ac_compile) 2>&5
12680 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12681 test $ac_status = 0; }; then
12682 # Now try to grab the symbols.
12684 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
12685 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12687 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12688 test $ac_status = 0; } && test -s "$nlist"; then
12689 # Try sorting and uniquifying the output.
12690 if sort "$nlist" | uniq > "$nlist"T; then
12691 mv -f "$nlist"T "$nlist"
12696 # Make sure that we snagged all the symbols we need.
12697 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12698 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12699 cat <<_LT_EOF > conftest.$ac_ext
12705 # Now generate the symbol file.
12706 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12708 cat <<_LT_EOF >> conftest.$ac_ext
12710 /* The mapping between symbol names and symbols. */
12715 lt__PROGRAM__LTX_preloaded_symbols[] =
12717 { "@PROGRAM@
", (void *) 0 },
12719 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12720 cat <<\_LT_EOF >> conftest.$ac_ext
12724 /* This works around a problem in FreeBSD linker */
12725 #ifdef FREEBSD_WORKAROUND
12726 static const void *lt_preloaded_setup() {
12727 return lt__PROGRAM__LTX_preloaded_symbols;
12735 # Now try linking the two files.
12736 mv conftest.$ac_objext conftstm.$ac_objext
12737 lt_save_LIBS="$LIBS"
12738 lt_save_CFLAGS="$CFLAGS"
12739 LIBS="conftstm.
$ac_objext"
12740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12741 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12742 (eval $ac_link) 2>&5
12744 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12745 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12748 LIBS="$lt_save_LIBS"
12749 CFLAGS="$lt_save_CFLAGS"
12751 echo "cannot
find nm_test_func
in $nlist" >&5
12754 echo "cannot
find nm_test_var
in $nlist" >&5
12757 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
12760 echo "$progname: failed program was
:" >&5
12761 cat conftest.$ac_ext >&5
12763 rm -rf conftest* conftst*
12765 # Do not use the global_symbol_pipe unless it works.
12766 if test "$pipe_works" = yes; then
12769 lt_cv_sys_global_symbol_pipe=
12775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12776 lt_cv_sys_global_symbol_to_cdecl=
12778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
12780 $as_echo "failed
" >&6; }
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
12783 $as_echo "ok
" >&6; }
12807 # Check whether --enable-libtool-lock was given.
12808 if test "${enable_libtool_lock+set}" = set; then :
12809 enableval=$enable_libtool_lock;
12812 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
12814 # Some flags need to be propagated to the compiler or linker for good
12818 # Find out which ABI we are using.
12819 echo 'int i;' > conftest.$ac_ext
12820 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12821 (eval $ac_compile) 2>&5
12823 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12824 test $ac_status = 0; }; then
12825 case `/usr/bin/file conftest.$ac_objext` in
12827 HPUX_IA64_MODE="32"
12830 HPUX_IA64_MODE="64"
12837 # Find out which ABI we are using.
12838 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
12839 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12840 (eval $ac_compile) 2>&5
12842 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12843 test $ac_status = 0; }; then
12844 if test "$lt_cv_prog_gnu_ld" = yes; then
12845 case `/usr/bin/file conftest.$ac_objext` in
12847 LD="${LD-ld} -melf32bsmip"
12850 LD="${LD-ld} -melf32bmipn32"
12853 LD="${LD-ld} -melf64bmip"
12857 case `/usr/bin/file conftest.$ac_objext` in
12873 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12874 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12875 # Find out which ABI we are using.
12876 echo 'int i;' > conftest.$ac_ext
12877 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12878 (eval $ac_compile) 2>&5
12880 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12881 test $ac_status = 0; }; then
12882 case `/usr/bin/file conftest.o` in
12885 x86_64-*kfreebsd*-gnu)
12886 LD="${LD-ld} -m elf_i386_fbsd
"
12889 LD="${LD-ld} -m elf_i386
"
12891 ppc64-*linux*|powerpc64-*linux*)
12892 LD="${LD-ld} -m elf32ppclinux
"
12895 LD="${LD-ld} -m elf_s390
"
12898 LD="${LD-ld} -m elf32_sparc
"
12904 x86_64-*kfreebsd*-gnu)
12905 LD="${LD-ld} -m elf_x86_64_fbsd
"
12908 LD="${LD-ld} -m elf_x86_64
"
12910 ppc*-*linux*|powerpc*-*linux*)
12911 LD="${LD-ld} -m elf64ppc
"
12913 s390*-*linux*|s390*-*tpf*)
12914 LD="${LD-ld} -m elf64_s390
"
12917 LD="${LD-ld} -m elf64_sparc
"
12927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12928 SAVE_CFLAGS="$CFLAGS"
12929 CFLAGS="$CFLAGS -belf"
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
12931 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
12932 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12933 $as_echo_n "(cached
) " >&6
12936 ac_cpp='$CPP $CPPFLAGS'
12937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12952 if ac_fn_c_try_link "$LINENO"; then :
12953 lt_cv_cc_needs_belf=yes
12955 lt_cv_cc_needs_belf=no
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
12960 ac_cpp='$CPP $CPPFLAGS'
12961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
12967 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12968 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12969 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12970 CFLAGS="$SAVE_CFLAGS"
12974 # Find out which ABI we are using.
12975 echo 'int i;' > conftest.$ac_ext
12976 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12977 (eval $ac_compile) 2>&5
12979 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
12980 test $ac_status = 0; }; then
12981 case `/usr/bin/file conftest.o` in
12983 case $lt_cv_prog_gnu_ld in
12984 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
12986 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12998 need_locks="$enable_libtool_lock"
13002 rhapsody* | darwin*)
13003 if test -n "$ac_tool_prefix"; then
13004 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13005 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13007 $as_echo_n "checking
for $ac_word...
" >&6; }
13008 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13009 $as_echo_n "(cached
) " >&6
13011 if test -n "$DSYMUTIL"; then
13012 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015 for as_dir in $PATH
13018 test -z "$as_dir" && as_dir=.
13019 for ac_exec_ext in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13022 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13031 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13032 if test -n "$DSYMUTIL"; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13034 $as_echo "$DSYMUTIL" >&6; }
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13037 $as_echo "no
" >&6; }
13042 if test -z "$ac_cv_prog_DSYMUTIL"; then
13043 ac_ct_DSYMUTIL=$DSYMUTIL
13044 # Extract the first word of "dsymutil
", so it can be a program name with args.
13045 set dummy dsymutil; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13047 $as_echo_n "checking
for $ac_word...
" >&6; }
13048 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13049 $as_echo_n "(cached
) " >&6
13051 if test -n "$ac_ct_DSYMUTIL"; then
13052 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13071 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13072 if test -n "$ac_ct_DSYMUTIL"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
13074 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13077 $as_echo "no
" >&6; }
13080 if test "x
$ac_ct_DSYMUTIL" = x; then
13083 case $cross_compiling:$ac_tool_warned in
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13086 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13087 ac_tool_warned=yes ;;
13089 DSYMUTIL=$ac_ct_DSYMUTIL
13092 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13095 if test -n "$ac_tool_prefix"; then
13096 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
13097 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13099 $as_echo_n "checking
for $ac_word...
" >&6; }
13100 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13101 $as_echo_n "(cached
) " >&6
13103 if test -n "$NMEDIT"; then
13104 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13107 for as_dir in $PATH
13110 test -z "$as_dir" && as_dir=.
13111 for ac_exec_ext in '' $ac_executable_extensions; do
13112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13113 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
13114 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13123 NMEDIT=$ac_cv_prog_NMEDIT
13124 if test -n "$NMEDIT"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
13126 $as_echo "$NMEDIT" >&6; }
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13129 $as_echo "no
" >&6; }
13134 if test -z "$ac_cv_prog_NMEDIT"; then
13135 ac_ct_NMEDIT=$NMEDIT
13136 # Extract the first word of "nmedit
", so it can be a program name with args.
13137 set dummy nmedit; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13139 $as_echo_n "checking
for $ac_word...
" >&6; }
13140 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13141 $as_echo_n "(cached
) " >&6
13143 if test -n "$ac_ct_NMEDIT"; then
13144 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13163 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13164 if test -n "$ac_ct_NMEDIT"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
13166 $as_echo "$ac_ct_NMEDIT" >&6; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13169 $as_echo "no
" >&6; }
13172 if test "x
$ac_ct_NMEDIT" = x; then
13175 case $cross_compiling:$ac_tool_warned in
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13178 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13179 ac_tool_warned=yes ;;
13181 NMEDIT=$ac_ct_NMEDIT
13184 NMEDIT="$ac_cv_prog_NMEDIT"
13187 if test -n "$ac_tool_prefix"; then
13188 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
13189 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13191 $as_echo_n "checking
for $ac_word...
" >&6; }
13192 if test "${ac_cv_prog_LIPO+set}" = set; then :
13193 $as_echo_n "(cached
) " >&6
13195 if test -n "$LIPO"; then
13196 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199 for as_dir in $PATH
13202 test -z "$as_dir" && as_dir=.
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13205 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
13206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13215 LIPO=$ac_cv_prog_LIPO
13216 if test -n "$LIPO"; then
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
13218 $as_echo "$LIPO" >&6; }
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13221 $as_echo "no
" >&6; }
13226 if test -z "$ac_cv_prog_LIPO"; then
13228 # Extract the first word of "lipo
", so it can be a program name with args.
13229 set dummy lipo; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13231 $as_echo_n "checking
for $ac_word...
" >&6; }
13232 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13233 $as_echo_n "(cached
) " >&6
13235 if test -n "$ac_ct_LIPO"; then
13236 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_ac_ct_LIPO="lipo
"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13255 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13256 if test -n "$ac_ct_LIPO"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
13258 $as_echo "$ac_ct_LIPO" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13261 $as_echo "no
" >&6; }
13264 if test "x
$ac_ct_LIPO" = x; then
13267 case $cross_compiling:$ac_tool_warned in
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13270 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13271 ac_tool_warned=yes ;;
13276 LIPO="$ac_cv_prog_LIPO"
13279 if test -n "$ac_tool_prefix"; then
13280 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
13281 set dummy ${ac_tool_prefix}otool; ac_word=$2
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13283 $as_echo_n "checking
for $ac_word...
" >&6; }
13284 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13285 $as_echo_n "(cached
) " >&6
13287 if test -n "$OTOOL"; then
13288 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13294 test -z "$as_dir" && as_dir=.
13295 for ac_exec_ext in '' $ac_executable_extensions; do
13296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13297 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
13298 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13307 OTOOL=$ac_cv_prog_OTOOL
13308 if test -n "$OTOOL"; then
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13310 $as_echo "$OTOOL" >&6; }
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13313 $as_echo "no
" >&6; }
13318 if test -z "$ac_cv_prog_OTOOL"; then
13320 # Extract the first word of "otool
", so it can be a program name with args.
13321 set dummy otool; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13323 $as_echo_n "checking
for $ac_word...
" >&6; }
13324 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13325 $as_echo_n "(cached
) " >&6
13327 if test -n "$ac_ct_OTOOL"; then
13328 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337 ac_cv_prog_ac_ct_OTOOL="otool
"
13338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13347 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13348 if test -n "$ac_ct_OTOOL"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
13350 $as_echo "$ac_ct_OTOOL" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13353 $as_echo "no
" >&6; }
13356 if test "x
$ac_ct_OTOOL" = x; then
13359 case $cross_compiling:$ac_tool_warned in
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13362 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13363 ac_tool_warned=yes ;;
13368 OTOOL="$ac_cv_prog_OTOOL"
13371 if test -n "$ac_tool_prefix"; then
13372 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
13373 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13375 $as_echo_n "checking
for $ac_word...
" >&6; }
13376 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13377 $as_echo_n "(cached
) " >&6
13379 if test -n "$OTOOL64"; then
13380 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13399 OTOOL64=$ac_cv_prog_OTOOL64
13400 if test -n "$OTOOL64"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
13402 $as_echo "$OTOOL64" >&6; }
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13405 $as_echo "no
" >&6; }
13410 if test -z "$ac_cv_prog_OTOOL64"; then
13411 ac_ct_OTOOL64=$OTOOL64
13412 # Extract the first word of "otool64
", so it can be a program name with args.
13413 set dummy otool64; ac_word=$2
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13415 $as_echo_n "checking
for $ac_word...
" >&6; }
13416 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13417 $as_echo_n "(cached
) " >&6
13419 if test -n "$ac_ct_OTOOL64"; then
13420 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423 for as_dir in $PATH
13426 test -z "$as_dir" && as_dir=.
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13429 ac_cv_prog_ac_ct_OTOOL64="otool64
"
13430 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13439 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13440 if test -n "$ac_ct_OTOOL64"; then
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
13442 $as_echo "$ac_ct_OTOOL64" >&6; }
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13445 $as_echo "no
" >&6; }
13448 if test "x
$ac_ct_OTOOL64" = x; then
13451 case $cross_compiling:$ac_tool_warned in
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13454 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13455 ac_tool_warned=yes ;;
13457 OTOOL64=$ac_ct_OTOOL64
13460 OTOOL64="$ac_cv_prog_OTOOL64"
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
13490 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
13491 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13492 $as_echo_n "(cached
) " >&6
13494 lt_cv_apple_cc_single_mod=no
13495 if test -z "${LT_MULTI_MODULE}"; then
13496 # By default we will add the -single_module flag. You can override
13497 # by either setting the environment variable LT_MULTI_MODULE
13498 # non-empty at configure time, or by adding -multi_module to the
13500 rm -rf libconftest.dylib*
13501 echo "int foo
(void
){return 1;}" > conftest.c
13502 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13503 -dynamiclib -Wl,-single_module conftest.c
" >&5
13504 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13505 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13507 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13508 lt_cv_apple_cc_single_mod=yes
13510 cat conftest.err >&5
13512 rm -rf libconftest.dylib*
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
13517 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
13519 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
13520 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13521 $as_echo_n "(cached
) " >&6
13523 lt_cv_ld_exported_symbols_list=no
13524 save_LDFLAGS=$LDFLAGS
13525 echo "_main
" > conftest.sym
13526 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13528 /* end confdefs.h. */
13538 if ac_fn_c_try_link "$LINENO"; then :
13539 lt_cv_ld_exported_symbols_list=yes
13541 lt_cv_ld_exported_symbols_list=no
13543 rm -f core conftest.err conftest.$ac_objext \
13544 conftest$ac_exeext conftest.$ac_ext
13545 LDFLAGS="$save_LDFLAGS"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
13549 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
13551 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
13552 if test "${lt_cv_ld_force_load+set}" = set; then :
13553 $as_echo_n "(cached
) " >&6
13555 lt_cv_ld_force_load=no
13556 cat > conftest.c << _LT_EOF
13557 int forced_loaded() { return 2;}
13559 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
13560 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13561 echo "$AR cru libconftest.a conftest.o
" >&5
13562 $AR cru libconftest.a conftest.o 2>&5
13563 cat > conftest.c << _LT_EOF
13564 int main() { return 0;}
13566 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
13567 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13569 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13570 lt_cv_ld_force_load=yes
13572 cat conftest.err >&5
13574 rm -f conftest.err libconftest.a conftest conftest.c
13575 rm -rf conftest.dSYM
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
13579 $as_echo "$lt_cv_ld_force_load" >&6; }
13581 rhapsody* | darwin1.[012])
13582 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13585 darwin*) # darwin 5.x on
13586 # if running on 10.5 or later, the deployment target defaults
13587 # to the OS version, if on x86, and 10.4, the deployment
13588 # target defaults to 10.4. Don't you love it?
13589 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13590 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13591 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13593 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13595 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13599 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13600 _lt_dar_single_mod='$single_module'
13602 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13603 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13607 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
13608 _lt_dsymutil='~$DSYMUTIL $lib || :'
13615 for ac_header in dlfcn.h
13617 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
13618 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
13619 cat >>confdefs.h <<_ACEOF
13620 #define HAVE_DLFCN_H 1
13638 enable_win32_dll=no
13641 # Check whether --enable-shared was given.
13642 if test "${enable_shared+set}" = set; then :
13643 enableval=$enable_shared; p=${PACKAGE-default}
13645 yes) enable_shared=yes ;;
13646 no) enable_shared=no ;;
13649 # Look at the argument we got. We use all the common list separators.
13650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13651 for pkg in $enableval; do
13653 if test "X
$pkg" = "X
$p"; then
13672 # Check whether --enable-static was given.
13673 if test "${enable_static+set}" = set; then :
13674 enableval=$enable_static; p=${PACKAGE-default}
13676 yes) enable_static=yes ;;
13677 no) enable_static=no ;;
13680 # Look at the argument we got. We use all the common list separators.
13681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13682 for pkg in $enableval; do
13684 if test "X
$pkg" = "X
$p"; then
13704 # Check whether --with-pic was given.
13705 if test "${with_pic+set}" = set; then :
13706 withval=$with_pic; pic_mode="$withval"
13712 test -z "$pic_mode" && pic_mode=default
13720 # Check whether --enable-fast-install was given.
13721 if test "${enable_fast_install+set}" = set; then :
13722 enableval=$enable_fast_install; p=${PACKAGE-default}
13724 yes) enable_fast_install=yes ;;
13725 no) enable_fast_install=no ;;
13727 enable_fast_install=no
13728 # Look at the argument we got. We use all the common list separators.
13729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13730 for pkg in $enableval; do
13732 if test "X
$pkg" = "X
$p"; then
13733 enable_fast_install=yes
13740 enable_fast_install=yes
13753 # This can be used to rebuild libtool when needed
13754 LIBTOOL_DEPS="$ltmain"
13756 # Always use our own libtool.
13757 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13784 test -z "$LN_S" && LN_S="ln -s"
13799 if test -n "${ZSH_VERSION+set}" ; then
13800 setopt NO_GLOB_SUBST
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
13804 $as_echo_n "checking
for objdir...
" >&6; }
13805 if test "${lt_cv_objdir+set}" = set; then :
13806 $as_echo_n "(cached
) " >&6
13808 rm -f .libs 2>/dev/null
13809 mkdir .libs 2>/dev/null
13810 if test -d .libs; then
13813 # MS-DOS does not allow filenames that begin with a dot.
13816 rmdir .libs 2>/dev/null
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
13819 $as_echo "$lt_cv_objdir" >&6; }
13820 objdir=$lt_cv_objdir
13826 cat >>confdefs.h <<_ACEOF
13827 #define LT_OBJDIR "$lt_cv_objdir/"
13835 # AIX sometimes has problems with the GCC collect2 program. For some
13836 # reason, if we set the COLLECT_NAMES environment variable, the problems
13837 # vanish in a puff of smoke.
13838 if test "X
${COLLECT_NAMES+set}" != Xset; then
13840 export COLLECT_NAMES
13845 # Global variables:
13847 can_build_shared=yes
13849 # All known linkers require a `.a' archive for static linking (except MSVC,
13850 # which needs '.lib').
13853 with_gnu_ld="$lt_cv_prog_gnu_ld"
13856 old_CFLAGS="$CFLAGS"
13858 # Set sane defaults for various variables
13859 test -z "$CC" && CC=cc
13860 test -z "$LTCC" && LTCC=$CC
13861 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13862 test -z "$LD" && LD=ld
13863 test -z "$ac_objext" && ac_objext=o
13865 for cc_temp in $compiler""; do
13867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13873 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
13876 # Only perform the check for file, if the check method requires it
13877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13878 case $deplibs_check_method in
13880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
13882 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
13883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13884 $as_echo_n "(cached
) " >&6
13888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13891 lt_save_MAGIC_CMD="$MAGIC_CMD"
13892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13893 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13894 for ac_dir in $ac_dummy; do
13896 test -z "$ac_dir" && ac_dir=.
13897 if test -f $ac_dir/${ac_tool_prefix}file; then
13898 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13899 if test -n "$file_magic_test_file"; then
13900 case $deplibs_check_method in
13902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13905 $EGREP "$file_magic_regex" > /dev/null; then
13910 *** Warning: the command libtool uses to detect shared libraries,
13911 *** $file_magic_cmd, produces output that libtool cannot recognize.
13912 *** The result is that libtool may fail to recognize shared libraries
13913 *** as such. This will affect the creation of libtool libraries that
13914 *** depend on shared libraries, but programs linked with such libtool
13915 *** libraries will work regardless of this problem. Nevertheless, you
13916 *** may want to report the problem to your system manager and/or to
13917 *** bug-libtool@gnu.org
13927 MAGIC_CMD="$lt_save_MAGIC_CMD"
13932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13933 if test -n "$MAGIC_CMD"; then
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
13935 $as_echo "$MAGIC_CMD" >&6; }
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13938 $as_echo "no
" >&6; }
13945 if test -z "$lt_cv_path_MAGIC_CMD"; then
13946 if test -n "$ac_tool_prefix"; then
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
13948 $as_echo_n "checking
for file...
" >&6; }
13949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13950 $as_echo_n "(cached
) " >&6
13954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13957 lt_save_MAGIC_CMD="$MAGIC_CMD"
13958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13959 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
13960 for ac_dir in $ac_dummy; do
13962 test -z "$ac_dir" && ac_dir=.
13963 if test -f $ac_dir/file; then
13964 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13965 if test -n "$file_magic_test_file"; then
13966 case $deplibs_check_method in
13968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
13969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13971 $EGREP "$file_magic_regex" > /dev/null; then
13976 *** Warning: the command libtool uses to detect shared libraries,
13977 *** $file_magic_cmd, produces output that libtool cannot recognize.
13978 *** The result is that libtool may fail to recognize shared libraries
13979 *** as such. This will affect the creation of libtool libraries that
13980 *** depend on shared libraries, but programs linked with such libtool
13981 *** libraries will work regardless of this problem. Nevertheless, you
13982 *** may want to report the problem to your system manager and/or to
13983 *** bug-libtool@gnu.org
13993 MAGIC_CMD="$lt_save_MAGIC_CMD"
13998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13999 if test -n "$MAGIC_CMD"; then
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14001 $as_echo "$MAGIC_CMD" >&6; }
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14004 $as_echo "no
" >&6; }
14017 # Use C for the default configuration in the libtool script
14021 ac_cpp='$CPP $CPPFLAGS'
14022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14027 # Source file extension for C test sources.
14030 # Object file extension for compiled C test sources.
14034 # Code to be used in simple compile tests
14035 lt_simple_compile_test_code="int some_variable
= 0;"
14037 # Code to be used in simple link tests
14038 lt_simple_link_test_code='int main(){return(0);}'
14046 # If no C compiler was specified, use CC.
14049 # If no C compiler flags were specified, use CFLAGS.
14050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14052 # Allow CC to be a program name with arguments.
14055 # Save the default compiler, since it gets overwritten when the other
14056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14057 compiler_DEFAULT=$CC
14059 # save warnings/boilerplate of simple test code
14060 ac_outfile=conftest.$ac_objext
14061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14063 _lt_compiler_boilerplate=`cat conftest.err`
14066 ac_outfile=conftest.$ac_objext
14067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14069 _lt_linker_boilerplate=`cat conftest.err`
14074 ## There is no encapsulation within the following macros, do not change
14075 ## the running order or otherwise move them around unless you know exactly
14076 ## what you are doing...
14077 if test -n "$compiler"; then
14079 lt_prog_compiler_no_builtin_flag=
14081 if test "$GCC" = yes; then
14082 case $cc_basename in
14084 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
14090 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
14091 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14092 $as_echo_n "(cached
) " >&6
14094 lt_cv_prog_compiler_rtti_exceptions=no
14095 ac_outfile=conftest.$ac_objext
14096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14097 lt_compiler_flag="-fno-rtti -fno-exceptions"
14098 # Insert the option either (1) after the last *FLAGS variable, or
14099 # (2) before a word containing "conftest.
", or (3) at the end.
14100 # Note that $ac_compile itself does not contain backslashes and begins
14101 # with a dollar sign (not a hyphen), so the echo should work correctly.
14102 # The option is referenced via a variable to avoid confusing sed.
14103 lt_compile=`echo "$ac_compile" | $SED \
14104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14106 -e 's:$: $lt_compiler_flag:'`
14107 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14108 (eval "$lt_compile" 2>conftest.err)
14110 cat conftest.err >&5
14111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14112 if (exit $ac_status) && test -s "$ac_outfile"; then
14113 # The compiler can only warn and ignore the option if not recognized
14114 # So say no if there are warnings other than the usual output.
14115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14118 lt_cv_prog_compiler_rtti_exceptions=yes
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
14125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14140 lt_prog_compiler_wl=
14141 lt_prog_compiler_pic=
14142 lt_prog_compiler_static=
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
14145 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
14147 if test "$GCC" = yes; then
14148 lt_prog_compiler_wl='-Wl,'
14149 lt_prog_compiler_static='-static'
14153 # All AIX code is PIC.
14154 if test "$host_cpu" = ia64; then
14155 # AIX 5 now supports IA64 processor
14156 lt_prog_compiler_static='-Bstatic'
14163 # see comment about AmigaOS4 .so support
14164 lt_prog_compiler_pic='-fPIC'
14167 # FIXME: we need at least 68020 code to build shared libraries, but
14168 # adding the `-m68020' flag to GCC prevents building anything better,
14170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14176 # PIC is the default for these OSes.
14179 mingw* | cygwin* | pw32* | os2* | cegcc*)
14180 # This hack is so that the source file can tell whether it is being
14181 # built for inclusion in a dll (and should export symbols for example).
14182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14183 # (--disable-auto-import) libraries
14184 lt_prog_compiler_pic='-DDLL_EXPORT'
14187 darwin* | rhapsody*)
14188 # PIC is the default on this platform
14189 # Common symbols not allowed in MH_DYLIB files
14190 lt_prog_compiler_pic='-fno-common'
14194 # PIC is the default for Haiku.
14195 # The "-static" flag exists, but is broken.
14196 lt_prog_compiler_static=
14200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14202 # sets the default TLS model and affects inlining.
14208 lt_prog_compiler_pic='-fPIC'
14214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14215 # Instead, we relocate shared libraries at runtime.
14219 # Just because we use GCC doesn't mean we suddenly get shared libraries
14220 # on systems that don't support them.
14221 lt_prog_compiler_can_build_shared=no
14226 # QNX uses GNU C++, but need to define -shared option too, otherwise
14227 # it will coredump.
14228 lt_prog_compiler_pic='-fPIC -shared'
14232 if test -d /usr/nec; then
14233 lt_prog_compiler_pic=-Kconform_pic
14238 lt_prog_compiler_pic='-fPIC'
14242 case $cc_basename in
14243 nvcc*) # Cuda Compiler Driver 2.2
14244 lt_prog_compiler_wl='-Xlinker '
14245 lt_prog_compiler_pic='-Xcompiler -fPIC'
14249 # PORTME Check for flag to pass linker flags through the system compiler.
14252 lt_prog_compiler_wl='-Wl,'
14253 if test "$host_cpu" = ia64; then
14254 # AIX 5 now supports IA64 processor
14255 lt_prog_compiler_static='-Bstatic'
14257 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14261 mingw* | cygwin* | pw32* | os2* | cegcc*)
14262 # This hack is so that the source file can tell whether it is being
14263 # built for inclusion in a dll (and should export symbols for example).
14264 lt_prog_compiler_pic='-DDLL_EXPORT'
14267 hpux9* | hpux10* | hpux11*)
14268 lt_prog_compiler_wl='-Wl,'
14269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14270 # not for PA HP-UX.
14276 lt_prog_compiler_pic='+Z'
14279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14280 lt_prog_compiler_static='${wl}-a ${wl}archive'
14283 irix5* | irix6* | nonstopux*)
14284 lt_prog_compiler_wl='-Wl,'
14285 # PIC (with -KPIC) is the default.
14286 lt_prog_compiler_static='-non_shared'
14289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14290 case $cc_basename in
14291 # old Intel for x86_64 which still supported -KPIC.
14293 lt_prog_compiler_wl='-Wl,'
14294 lt_prog_compiler_pic='-KPIC'
14295 lt_prog_compiler_static='-static'
14297 # icc used to be incompatible with GCC.
14298 # ICC 10 doesn't accept -KPIC any more.
14300 lt_prog_compiler_wl='-Wl,'
14301 lt_prog_compiler_pic='-fPIC'
14302 lt_prog_compiler_static='-static'
14304 # Lahey Fortran 8.1.
14306 lt_prog_compiler_wl='-Wl,'
14307 lt_prog_compiler_pic='--shared'
14308 lt_prog_compiler_static='--static'
14310 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14311 # Portland Group compilers (*not* the Pentium gcc compiler,
14312 # which looks to be a dead project)
14313 lt_prog_compiler_wl='-Wl,'
14314 lt_prog_compiler_pic='-fpic'
14315 lt_prog_compiler_static='-Bstatic'
14318 lt_prog_compiler_wl='-Wl,'
14319 # All Alpha code is PIC.
14320 lt_prog_compiler_static='-non_shared'
14322 xl* | bgxl* | bgf* | mpixl*)
14323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14324 lt_prog_compiler_wl='-Wl,'
14325 lt_prog_compiler_pic='-qpic'
14326 lt_prog_compiler_static='-qstaticlink'
14329 case `$CC -V 2>&1 | sed 5q` in
14330 *Sun\ F* | *Sun*Fortran*)
14331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14332 lt_prog_compiler_pic='-KPIC'
14333 lt_prog_compiler_static='-Bstatic'
14334 lt_prog_compiler_wl=''
14338 lt_prog_compiler_pic='-KPIC'
14339 lt_prog_compiler_static='-Bstatic'
14340 lt_prog_compiler_wl='-Wl,'
14348 lt_prog_compiler_pic='-KPIC'
14349 lt_prog_compiler_static='-Bstatic'
14353 # QNX uses GNU C++, but need to define -shared option too, otherwise
14354 # it will coredump.
14355 lt_prog_compiler_pic='-fPIC -shared'
14358 osf3* | osf4* | osf5*)
14359 lt_prog_compiler_wl='-Wl,'
14360 # All OSF/1 code is PIC.
14361 lt_prog_compiler_static='-non_shared'
14365 lt_prog_compiler_static='-non_shared'
14369 lt_prog_compiler_pic='-KPIC'
14370 lt_prog_compiler_static='-Bstatic'
14371 case $cc_basename in
14372 f77* | f90* | f95*)
14373 lt_prog_compiler_wl='-Qoption ld ';;
14375 lt_prog_compiler_wl='-Wl,';;
14380 lt_prog_compiler_wl='-Qoption ld '
14381 lt_prog_compiler_pic='-PIC'
14382 lt_prog_compiler_static='-Bstatic'
14385 sysv4 | sysv4.2uw2* | sysv4.3*)
14386 lt_prog_compiler_wl='-Wl,'
14387 lt_prog_compiler_pic='-KPIC'
14388 lt_prog_compiler_static='-Bstatic'
14392 if test -d /usr/nec ;then
14393 lt_prog_compiler_pic='-Kconform_pic'
14394 lt_prog_compiler_static='-Bstatic'
14398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14399 lt_prog_compiler_wl='-Wl,'
14400 lt_prog_compiler_pic='-KPIC'
14401 lt_prog_compiler_static='-Bstatic'
14405 lt_prog_compiler_wl='-Wl,'
14406 lt_prog_compiler_can_build_shared=no
14410 lt_prog_compiler_pic='-pic'
14411 lt_prog_compiler_static='-Bstatic'
14415 lt_prog_compiler_can_build_shared=no
14421 # For platforms which do not support PIC, -DPIC is meaningless:
14423 lt_prog_compiler_pic=
14426 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
14430 $as_echo "$lt_prog_compiler_pic" >&6; }
14438 # Check to make sure the PIC flag actually works.
14440 if test -n "$lt_prog_compiler_pic"; then
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
14442 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
14443 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14444 $as_echo_n "(cached
) " >&6
14446 lt_cv_prog_compiler_pic_works=no
14447 ac_outfile=conftest.$ac_objext
14448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14450 # Insert the option either (1) after the last *FLAGS variable, or
14451 # (2) before a word containing "conftest.
", or (3) at the end.
14452 # Note that $ac_compile itself does not contain backslashes and begins
14453 # with a dollar sign (not a hyphen), so the echo should work correctly.
14454 # The option is referenced via a variable to avoid confusing sed.
14455 lt_compile=`echo "$ac_compile" | $SED \
14456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14458 -e 's:$: $lt_compiler_flag:'`
14459 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14460 (eval "$lt_compile" 2>conftest.err)
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14464 if (exit $ac_status) && test -s "$ac_outfile"; then
14465 # The compiler can only warn and ignore the option if not recognized
14466 # So say no if there are warnings other than the usual output.
14467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14470 lt_cv_prog_compiler_pic_works=yes
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
14477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14480 case $lt_prog_compiler_pic in
14482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14485 lt_prog_compiler_pic=
14486 lt_prog_compiler_can_build_shared=no
14497 # Check to make sure the static flag actually works.
14499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
14501 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
14502 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14503 $as_echo_n "(cached
) " >&6
14505 lt_cv_prog_compiler_static_works=no
14506 save_LDFLAGS="$LDFLAGS"
14507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14510 # The linker can only warn and ignore the option if not recognized
14511 # So say no if there are warnings
14512 if test -s conftest.err; then
14513 # Append any errors to the config.log.
14514 cat conftest.err 1>&5
14515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14517 if diff conftest.exp conftest.er2 >/dev/null; then
14518 lt_cv_prog_compiler_static_works=yes
14521 lt_cv_prog_compiler_static_works=yes
14525 LDFLAGS="$save_LDFLAGS"
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
14529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14534 lt_prog_compiler_static=
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14544 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14546 $as_echo_n "(cached
) " >&6
14548 lt_cv_prog_compiler_c_o=no
14549 $RM -r conftest 2>/dev/null
14553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14555 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14556 # Insert the option either (1) after the last *FLAGS variable, or
14557 # (2) before a word containing "conftest.
", or (3) at the end.
14558 # Note that $ac_compile itself does not contain backslashes and begins
14559 # with a dollar sign (not a hyphen), so the echo should work correctly.
14560 lt_compile=`echo "$ac_compile" | $SED \
14561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563 -e 's:$: $lt_compiler_flag:'`
14564 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14565 (eval "$lt_compile" 2>out/conftest.err)
14567 cat out/conftest.err >&5
14568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14571 # The compiler can only warn and ignore the option if not recognized
14572 # So say no if there are warnings
14573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14576 lt_cv_prog_compiler_c_o=yes
14581 # SGI C++ compiler will create directory out/ii_files/ for
14582 # template instantiation
14583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14584 $RM out/* && rmdir out
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
14599 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
14600 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14601 $as_echo_n "(cached
) " >&6
14603 lt_cv_prog_compiler_c_o=no
14604 $RM -r conftest 2>/dev/null
14608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14610 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
14611 # Insert the option either (1) after the last *FLAGS variable, or
14612 # (2) before a word containing "conftest.
", or (3) at the end.
14613 # Note that $ac_compile itself does not contain backslashes and begins
14614 # with a dollar sign (not a hyphen), so the echo should work correctly.
14615 lt_compile=`echo "$ac_compile" | $SED \
14616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618 -e 's:$: $lt_compiler_flag:'`
14619 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
14620 (eval "$lt_compile" 2>out/conftest.err)
14622 cat out/conftest.err >&5
14623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14626 # The compiler can only warn and ignore the option if not recognized
14627 # So say no if there are warnings
14628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14631 lt_cv_prog_compiler_c_o=yes
14636 # SGI C++ compiler will create directory out/ii_files/ for
14637 # template instantiation
14638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14639 $RM out/* && rmdir out
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
14646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14651 hard_links="nottested
"
14652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14653 # do not overwrite the value of need_locks provided by the user
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
14655 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
14658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 ln conftest.a conftest.b 2>&5 || hard_links=no
14661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
14663 $as_echo "$hard_links" >&6; }
14664 if test "$hard_links" = no; then
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
14666 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
14679 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
14682 allow_undefined_flag=
14683 always_export_symbols=no
14685 archive_expsym_cmds=
14686 compiler_needs_object=no
14687 enable_shared_with_static_runtimes=no
14688 export_dynamic_flag_spec=
14689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14690 hardcode_automatic=no
14692 hardcode_direct_absolute=no
14693 hardcode_libdir_flag_spec=
14694 hardcode_libdir_flag_spec_ld=
14695 hardcode_libdir_separator=
14696 hardcode_minus_L=no
14697 hardcode_shlibpath_var=unsupported
14699 link_all_deplibs=unknown
14701 module_expsym_cmds=
14702 old_archive_from_new_cmds=
14703 old_archive_from_expsyms_cmds=
14704 thread_safe_flag_spec=
14705 whole_archive_flag_spec=
14706 # include_expsyms should be a list of space-separated symbols to be *always*
14707 # included in the symbol list
14709 # exclude_expsyms can be an extended regexp of symbols to exclude
14710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14712 # as well as any symbol that contains `d'.
14713 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14715 # platforms (ab)use it in PIC code, but their linkers get confused if
14716 # the symbol is explicitly referenced. Since portable code cannot
14717 # rely on this symbol name, it's probably fine to never include it in
14718 # preloaded symbol tables.
14719 # Exclude shared library initialization/finalization symbols.
14720 extract_expsyms_cmds=
14723 cygwin* | mingw* | pw32* | cegcc*)
14724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14725 # When not using gcc, we currently assume that we are using
14726 # Microsoft Visual C++.
14727 if test "$GCC" != yes; then
14732 # we just hope/assume this is gcc and not c89 (= MSVC++)
14742 # On some targets, GNU ld is compatible enough with the native linker
14743 # that we're better off using the native interface for both.
14744 lt_use_gnu_ld_interface=no
14745 if test "$with_gnu_ld" = yes; then
14748 # The AIX port of GNU ld has always aspired to compatibility
14749 # with the native linker. However, as the warning in the GNU ld
14750 # block says, versions before 2.19.5* couldn't really create working
14751 # shared libraries, regardless of the interface used.
14752 case `$LD -v 2>&1` in
14753 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14754 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14755 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14757 lt_use_gnu_ld_interface=yes
14762 lt_use_gnu_ld_interface=yes
14767 if test "$lt_use_gnu_ld_interface" = yes; then
14768 # If archive_cmds runs LD, not CC, wlarc should be empty
14771 # Set some defaults for GNU ld with shared library support. These
14772 # are reset later if shared libraries are not supported. Putting them
14773 # here allows them to be overridden if necessary.
14774 runpath_var=LD_RUN_PATH
14775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14776 export_dynamic_flag_spec='${wl}--export-dynamic'
14777 # ancient GNU ld didn't support --whole-archive et. al.
14778 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14779 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14781 whole_archive_flag_spec=
14783 supports_anon_versioning=no
14784 case `$LD -v 2>&1` in
14785 *GNU\ gold*) supports_anon_versioning=yes ;;
14786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14789 *\ 2.11.*) ;; # other 2.11 versions
14790 *) supports_anon_versioning=yes ;;
14793 # See if GNU ld supports shared libraries.
14796 # On AIX/PPC, the GNU linker is very broken
14797 if test "$host_cpu" != ia64; then
14801 *** Warning: the GNU linker, at least up to release 2.19, is reported
14802 *** to be unable to reliably create shared libraries on AIX.
14803 *** Therefore, libtool is disabling shared libraries support. If you
14804 *** really care for shared libraries, you may want to install binutils
14805 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14806 *** You will then need to restart the configuration process.
14815 # see comment about AmigaOS4 .so support
14816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14817 archive_expsym_cmds=''
14820 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)'
14821 hardcode_libdir_flag_spec
='-L$libdir'
14822 hardcode_minus_L
=yes
14828 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14829 allow_undefined_flag
=unsupported
14830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14831 # support --undefined. This deserves some investigation. FIXME
14832 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14838 cygwin
* | mingw
* | pw32
* | cegcc
*)
14839 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14840 # as there is no search path for DLLs.
14841 hardcode_libdir_flag_spec
='-L$libdir'
14842 export_dynamic_flag_spec
='${wl}--export-all-symbols'
14843 allow_undefined_flag
=unsupported
14844 always_export_symbols
=no
14845 enable_shared_with_static_runtimes
=yes
14846 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14848 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
14849 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14850 # If the export-symbols file already is a .def file (1st line
14851 # is EXPORTS), use it as is; otherwise, prepend...
14852 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14853 cp $export_symbols $output_objdir/$soname.def;
14855 echo EXPORTS > $output_objdir/$soname.def;
14856 cat $export_symbols >> $output_objdir/$soname.def;
14858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14865 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14866 link_all_deplibs
=yes
14871 hardcode_shlibpath_var
=no
14872 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
14873 export_dynamic_flag_spec
='${wl}-E'
14874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14875 # Instead, shared libraries are loaded at an image base (0x10000000 by
14876 # default) and relocated if they conflict, which is a slow very memory
14877 # consuming and fragmenting process. To avoid this, we pick a random,
14878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14880 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14881 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'
14884 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14886 if test "$host_os" = linux-dietlibc
; then
14887 case $cc_basename in
14888 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
14891 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
14892 && test "$tmp_diet" = no
14895 tmp_sharedflag
='-shared'
14896 case $cc_basename,$host_cpu in
14897 pgcc
*) # Portland Group C compiler
14898 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'
14899 tmp_addflag
=' $pic_flag'
14901 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
14902 # Portland Group f77 and f90 compilers
14903 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'
14904 tmp_addflag
=' $pic_flag -Mnomain' ;;
14905 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14906 tmp_addflag
=' -i_dynamic' ;;
14907 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14908 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14909 ifc
* | ifort
*) # Intel Fortran compiler
14910 tmp_addflag
=' -nofor_main' ;;
14911 lf95
*) # Lahey Fortran 8.1
14912 whole_archive_flag_spec
=
14913 tmp_sharedflag
='--shared' ;;
14914 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14915 tmp_sharedflag
='-qmkshrobj'
14917 nvcc
*) # Cuda Compiler Driver 2.2
14918 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'
14919 compiler_needs_object
=yes
14922 case `$CC -V 2>&1 | sed 5q` in
14923 *Sun\ C
*) # Sun C 5.9
14924 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'
14925 compiler_needs_object
=yes
14926 tmp_sharedflag
='-G' ;;
14927 *Sun\ F
*) # Sun Fortran 8.3
14928 tmp_sharedflag
='-G' ;;
14930 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14932 if test "x$supports_anon_versioning" = xyes
; then
14933 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14935 echo "local: *; };" >> $output_objdir/$libname.ver~
14936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14939 case $cc_basename in
14940 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
14941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14942 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
14943 hardcode_libdir_flag_spec
=
14944 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
14945 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14946 if test "x$supports_anon_versioning" = xyes
; then
14947 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
14948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14949 echo "local: *; };" >> $output_objdir/$libname.ver~
14950 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14960 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
14961 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14964 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14970 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
14974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14975 *** create shared libraries on Solaris systems. Therefore, libtool
14976 *** is disabling shared libraries support. We urge you to upgrade GNU
14977 *** binutils to release 2.9.1 or newer. Another option is to modify
14978 *** your PATH or compiler configuration so that the native linker is
14979 *** used, and then restart.
14982 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
14983 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14984 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14990 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14991 case `$LD -v 2>&1` in
14992 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14997 *** reliably create shared libraries on SCO systems. Therefore, libtool
14998 *** is disabling shared libraries support. We urge you to upgrade GNU
14999 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15000 *** your PATH or compiler configuration so that the native linker is
15001 *** used, and then restart.
15006 # For security reasons, it is highly recommended that you always
15007 # use absolute paths for naming shared libraries, and exclude the
15008 # DT_RUNPATH tag from executables and libraries. But doing so
15009 # requires that you compile everything twice, which is a pain.
15010 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15011 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15012 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15013 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15022 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15024 hardcode_direct
=yes
15025 hardcode_shlibpath_var
=no
15029 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15030 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15038 if test "$ld_shlibs" = no
; then
15040 hardcode_libdir_flag_spec
=
15041 export_dynamic_flag_spec
=
15042 whole_archive_flag_spec
=
15045 # PORTME fill in a description of your system's linker (not GNU ld)
15048 allow_undefined_flag
=unsupported
15049 always_export_symbols
=yes
15050 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'
15051 # Note: this linker hardcodes the directories in LIBPATH if there
15052 # are no directories specified by -L.
15053 hardcode_minus_L
=yes
15054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15055 # Neither direct hardcoding nor static linking is supported with a
15057 hardcode_direct
=unsupported
15062 if test "$host_cpu" = ia64
; then
15063 # On IA64, the linker does run time linking by default, so we don't
15064 # have to do anything special.
15065 aix_use_runtimelinking
=no
15066 exp_sym_flag
='-Bexport'
15069 # If we're using GNU nm, then we don't want the "-C" option.
15070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15071 # Also, AIX nm treats weak defined symbols like other global
15072 # defined symbols, whereas GNU nm marks them as "W".
15073 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
15074 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'
15076 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15078 aix_use_runtimelinking
=no
15080 # Test if we are trying to use run time linking or normal
15081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15082 # need to do runtime linking.
15083 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
15084 for ld_flag
in $LDFLAGS; do
15085 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
15086 aix_use_runtimelinking
=yes
15093 exp_sym_flag
='-bexport'
15094 no_entry_flag
='-bnoentry'
15097 # When large executables or shared objects are built, AIX ld can
15098 # have problems creating the table of contents. If linking a library
15099 # or program results in "error TOC overflow" add -mminimal-toc to
15100 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15101 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15104 hardcode_direct
=yes
15105 hardcode_direct_absolute
=yes
15106 hardcode_libdir_separator
=':'
15107 link_all_deplibs
=yes
15108 file_list_spec
='${wl}-f,'
15110 if test "$GCC" = yes; then
15111 case $host_os in aix4.
[012]|aix4.
[012].
*)
15112 # We only want to do this on AIX 4.2 and lower, the check
15113 # below for broken collect2 doesn't work under 4.3+
15114 collect2name
=`${CC} -print-prog-name=collect2`
15115 if test -f "$collect2name" &&
15116 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
15118 # We have reworked collect2
15121 # We have old collect2
15122 hardcode_direct
=unsupported
15123 # It fails to find uninstalled libraries when the uninstalled
15124 # path is not listed in the libpath. Setting hardcode_minus_L
15125 # to unsupported forces relinking
15126 hardcode_minus_L
=yes
15127 hardcode_libdir_flag_spec
='-L$libdir'
15128 hardcode_libdir_separator
=
15132 shared_flag
='-shared'
15133 if test "$aix_use_runtimelinking" = yes; then
15134 shared_flag
="$shared_flag "'${wl}-G'
15138 if test "$host_cpu" = ia64
; then
15139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15140 # chokes on -Wl,-G. The following line is correct:
15143 if test "$aix_use_runtimelinking" = yes; then
15144 shared_flag
='${wl}-G'
15146 shared_flag
='${wl}-bM:SRE'
15151 export_dynamic_flag_spec
='${wl}-bexpall'
15152 # It seems that -bexpall does not export symbols beginning with
15153 # underscore (_), so it is better to generate a list of symbols to export.
15154 always_export_symbols
=yes
15155 if test "$aix_use_runtimelinking" = yes; then
15156 # Warning - without using the other runtime loading flags (-brtl),
15157 # -berok will link without error, but may produce a broken library.
15158 allow_undefined_flag
='-berok'
15159 # Determine the default libpath from the value encoded in an
15160 # empty executable.
15161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15162 /* end confdefs.h. */
15172 if ac_fn_c_try_link
"$LINENO"; then :
15174 lt_aix_libpath_sed
='
15175 /Import File Strings/,/^$/ {
15181 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15182 # Check for a 64-bit object if we didn't find anything.
15183 if test -z "$aix_libpath"; then
15184 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15187 rm -f core conftest.err conftest.
$ac_objext \
15188 conftest
$ac_exeext conftest.
$ac_ext
15189 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15191 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15192 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"
15194 if test "$host_cpu" = ia64
; then
15195 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
15196 allow_undefined_flag
="-z nodefs"
15197 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"
15199 # Determine the default libpath from the value encoded in an
15200 # empty executable.
15201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15212 if ac_fn_c_try_link
"$LINENO"; then :
15214 lt_aix_libpath_sed
='
15215 /Import File Strings/,/^$/ {
15221 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15222 # Check for a 64-bit object if we didn't find anything.
15223 if test -z "$aix_libpath"; then
15224 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15227 rm -f core conftest.err conftest.
$ac_objext \
15228 conftest
$ac_exeext conftest.
$ac_ext
15229 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15231 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
15232 # Warning - without using the other run time loading flags,
15233 # -berok will link without error, but may produce a broken library.
15234 no_undefined_flag
=' ${wl}-bernotok'
15235 allow_undefined_flag
=' ${wl}-berok'
15236 if test "$with_gnu_ld" = yes; then
15237 # We only use this code for GNU lds that support --whole-archive.
15238 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15240 # Exported symbols can be pulled into shared objects from archives
15241 whole_archive_flag_spec
='$convenience'
15243 archive_cmds_need_lc
=yes
15244 # This is similar to how AIX traditionally builds its shared libraries.
15245 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'
15253 # see comment about AmigaOS4 .so support
15254 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15255 archive_expsym_cmds
=''
15258 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)'
15259 hardcode_libdir_flag_spec
='-L$libdir'
15260 hardcode_minus_L
=yes
15266 export_dynamic_flag_spec
=-rdynamic
15269 cygwin
* | mingw
* | pw32
* | cegcc
*)
15270 # When not using gcc, we currently assume that we are using
15271 # Microsoft Visual C++.
15272 # hardcode_libdir_flag_spec is actually meaningless, as there is
15273 # no search path for DLLs.
15274 hardcode_libdir_flag_spec
=' '
15275 allow_undefined_flag
=unsupported
15276 # Tell ltmain to make .lib files, not .a files.
15278 # Tell ltmain to make .dll files, not .so files.
15280 # FIXME: Setting linknames here is a bad hack.
15281 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15282 # The linker will automatically build a .lib file if we build a DLL.
15283 old_archive_from_new_cmds
='true'
15284 # FIXME: Should let the user specify the lib program.
15285 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15286 fix_srcfile_path
='`cygpath -w "$srcfile"`'
15287 enable_shared_with_static_runtimes
=yes
15290 darwin
* | rhapsody
*)
15293 archive_cmds_need_lc
=no
15295 hardcode_automatic
=yes
15296 hardcode_shlibpath_var
=unsupported
15297 if test "$lt_cv_ld_force_load" = "yes"; then
15298 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\"`'
15300 whole_archive_flag_spec
=''
15302 link_all_deplibs
=yes
15303 allow_undefined_flag
="$_lt_dar_allow_undefined"
15304 case $cc_basename in
15305 ifort
*) _lt_dar_can_shared
=yes ;;
15306 *) _lt_dar_can_shared
=$GCC ;;
15308 if test "$_lt_dar_can_shared" = "yes"; then
15309 output_verbose_link_cmd
=func_echo_all
15310 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15311 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15312 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}"
15313 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}"
15322 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15323 hardcode_libdir_flag_spec
='-L$libdir'
15324 hardcode_shlibpath_var
=no
15331 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15332 # support. Future versions do this automatically, but an explicit c++rt0.o
15333 # does not break anything, and helps significantly (at the cost of a little
15336 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15337 hardcode_libdir_flag_spec
='-R$libdir'
15338 hardcode_direct
=yes
15339 hardcode_shlibpath_var
=no
15342 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15344 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15345 hardcode_direct
=yes
15346 hardcode_minus_L
=yes
15347 hardcode_shlibpath_var
=no
15350 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15351 freebsd
* | dragonfly
*)
15352 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15353 hardcode_libdir_flag_spec
='-R$libdir'
15354 hardcode_direct
=yes
15355 hardcode_shlibpath_var
=no
15359 if test "$GCC" = yes; then
15360 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'
15362 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'
15364 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15365 hardcode_libdir_separator
=:
15366 hardcode_direct
=yes
15368 # hardcode_minus_L: Not really in the search PATH,
15369 # but as the default location of the library.
15370 hardcode_minus_L
=yes
15371 export_dynamic_flag_spec
='${wl}-E'
15375 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15376 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15378 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15380 if test "$with_gnu_ld" = no
; then
15381 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15382 hardcode_libdir_flag_spec_ld
='+b $libdir'
15383 hardcode_libdir_separator
=:
15384 hardcode_direct
=yes
15385 hardcode_direct_absolute
=yes
15386 export_dynamic_flag_spec
='${wl}-E'
15387 # hardcode_minus_L: Not really in the search PATH,
15388 # but as the default location of the library.
15389 hardcode_minus_L
=yes
15394 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
15397 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15400 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15403 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15409 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15412 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15416 # Older versions of the 11.00 compiler do not understand -b yet
15417 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15419 $as_echo_n "checking if $CC understands -b... " >&6; }
15420 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15421 $as_echo_n "(cached) " >&6
15423 lt_cv_prog_compiler__b
=no
15424 save_LDFLAGS
="$LDFLAGS"
15425 LDFLAGS
="$LDFLAGS -b"
15426 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
15427 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
15428 # The linker can only warn and ignore the option if not recognized
15429 # So say no if there are warnings
15430 if test -s conftest.err
; then
15431 # Append any errors to the config.log.
15432 cat conftest.err
1>&5
15433 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
15434 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
15435 if diff conftest.exp conftest.er2
>/dev
/null
; then
15436 lt_cv_prog_compiler__b
=yes
15439 lt_cv_prog_compiler__b
=yes
15443 LDFLAGS
="$save_LDFLAGS"
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15447 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15449 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
15450 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15452 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15458 if test "$with_gnu_ld" = no
; then
15459 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
15460 hardcode_libdir_separator
=:
15465 hardcode_shlibpath_var
=no
15468 hardcode_direct
=yes
15469 hardcode_direct_absolute
=yes
15470 export_dynamic_flag_spec
='${wl}-E'
15472 # hardcode_minus_L: Not really in the search PATH,
15473 # but as the default location of the library.
15474 hardcode_minus_L
=yes
15480 irix5
* | irix6
* | nonstopux
*)
15481 if test "$GCC" = yes; then
15482 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'
15483 # Try to use the -exported_symbol ld option, if it does not
15484 # work, assume that -exports_file does not work either and
15485 # implicitly export all symbols.
15486 save_LDFLAGS
="$LDFLAGS"
15487 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15492 if ac_fn_c_try_link
"$LINENO"; then :
15493 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'
15496 rm -f core conftest.err conftest.
$ac_objext \
15497 conftest
$ac_exeext conftest.
$ac_ext
15498 LDFLAGS
="$save_LDFLAGS"
15500 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'
15501 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'
15503 archive_cmds_need_lc
='no'
15504 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15505 hardcode_libdir_separator
=:
15507 link_all_deplibs
=yes
15511 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15512 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15514 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15516 hardcode_libdir_flag_spec
='-R$libdir'
15517 hardcode_direct
=yes
15518 hardcode_shlibpath_var
=no
15522 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_direct
=yes
15524 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15525 hardcode_libdir_separator
=:
15526 hardcode_shlibpath_var
=no
15533 if test -f /usr
/libexec
/ld.so
; then
15534 hardcode_direct
=yes
15535 hardcode_shlibpath_var
=no
15536 hardcode_direct_absolute
=yes
15537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15538 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15539 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15540 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15541 export_dynamic_flag_spec
='${wl}-E'
15544 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15545 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_libdir_flag_spec
='-R$libdir'
15549 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15550 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15560 hardcode_libdir_flag_spec
='-L$libdir'
15561 hardcode_minus_L
=yes
15562 allow_undefined_flag
=unsupported
15563 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'
15564 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15568 if test "$GCC" = yes; then
15569 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15570 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'
15572 allow_undefined_flag
=' -expect_unresolved \*'
15573 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'
15575 archive_cmds_need_lc
='no'
15576 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15577 hardcode_libdir_separator
=:
15580 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15581 if test "$GCC" = yes; then
15582 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
15583 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'
15584 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15586 allow_undefined_flag
=' -expect_unresolved \*'
15587 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'
15588 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~
15589 $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'
15591 # Both c and cxx compiler support -rpath directly
15592 hardcode_libdir_flag_spec
='-rpath $libdir'
15594 archive_cmds_need_lc
='no'
15595 hardcode_libdir_separator
=:
15599 no_undefined_flag
=' -z defs'
15600 if test "$GCC" = yes; then
15602 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15603 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15604 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15606 case `$CC -V 2>&1` in
15609 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15610 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15611 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15615 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15617 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15621 hardcode_libdir_flag_spec
='-R$libdir'
15622 hardcode_shlibpath_var
=no
15624 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15626 # The compiler driver will combine and reorder linker options,
15627 # but understands `-z linker_flag'. GCC discards it without `$wl',
15628 # but is careful enough not to reorder.
15629 # Supported since Solaris 2.6 (maybe 2.5.1?)
15630 if test "$GCC" = yes; then
15631 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15633 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
15637 link_all_deplibs
=yes
15641 if test "x$host_vendor" = xsequent
; then
15642 # Use $CC to link under sequent, because it throws in some extra .o
15643 # files that make .init and .fini sections work.
15644 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15646 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15648 hardcode_libdir_flag_spec
='-L$libdir'
15649 hardcode_direct
=yes
15650 hardcode_minus_L
=yes
15651 hardcode_shlibpath_var
=no
15655 case $host_vendor in
15657 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15658 hardcode_direct
=yes # is this really true???
15661 ## LD is ld it makes a PLAMLIB
15662 ## CC just makes a GrossModule.
15663 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15664 reload_cmds
='$CC -r -o $output$reload_objs'
15668 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15669 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
15672 runpath_var
='LD_RUN_PATH'
15673 hardcode_shlibpath_var
=no
15677 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15678 hardcode_shlibpath_var
=no
15679 export_dynamic_flag_spec
='-Bexport'
15683 if test -d /usr
/nec
; then
15684 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15685 hardcode_shlibpath_var
=no
15686 runpath_var
=LD_RUN_PATH
15687 hardcode_runpath_var
=yes
15692 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15693 no_undefined_flag
='${wl}-z,text'
15694 archive_cmds_need_lc
=no
15695 hardcode_shlibpath_var
=no
15696 runpath_var
='LD_RUN_PATH'
15698 if test "$GCC" = yes; then
15699 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15700 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15703 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 sysv5
* | sco3.2v5
* | sco5v6
*)
15708 # Note: We can NOT use -z defs as we might desire, because we do not
15709 # link with -lc, and that would cause any symbols used from libc to
15710 # always be unresolved, which means just about no library would
15711 # ever link correctly. If we're not using GNU ld we use -z text
15712 # though, which does catch some bad symbols but isn't as heavy-handed
15714 no_undefined_flag
='${wl}-z,text'
15715 allow_undefined_flag
='${wl}-z,nodefs'
15716 archive_cmds_need_lc
=no
15717 hardcode_shlibpath_var
=no
15718 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
15719 hardcode_libdir_separator
=':'
15720 link_all_deplibs
=yes
15721 export_dynamic_flag_spec
='${wl}-Bexport'
15722 runpath_var
='LD_RUN_PATH'
15724 if test "$GCC" = yes; then
15725 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15726 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15734 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15735 hardcode_libdir_flag_spec
='-L$libdir'
15736 hardcode_shlibpath_var
=no
15744 if test x
$host_vendor = xsni
; then
15746 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
15747 export_dynamic_flag_spec
='${wl}-Blargedynsym'
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15754 $as_echo "$ld_shlibs" >&6; }
15755 test "$ld_shlibs" = no
&& can_build_shared
=no
15757 with_gnu_ld
=$with_gnu_ld
15774 # Do we need to explicitly link libc?
15776 case "x$archive_cmds_need_lc" in
15778 # Assume -lc should be added
15779 archive_cmds_need_lc
=yes
15781 if test "$enable_shared" = yes && test "$GCC" = yes; then
15782 case $archive_cmds in
15784 # FIXME: we may have to deal with multi-command sequences.
15787 # Test whether the compiler implicitly links with -lc since on some
15788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15789 # to ld, don't add -lc before -lgcc.
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15791 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15792 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15793 $as_echo_n "(cached) " >&6
15796 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15799 (eval $ac_compile) 2>&5
15801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15802 test $ac_status = 0; } 2>conftest.err
; then
15805 libobjs
=conftest.
$ac_objext
15807 wl
=$lt_prog_compiler_wl
15808 pic_flag
=$lt_prog_compiler_pic
15814 lt_save_allow_undefined_flag
=$allow_undefined_flag
15815 allow_undefined_flag
=
15816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15817 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15820 test $ac_status = 0; }
15822 lt_cv_archive_cmds_need_lc
=no
15824 lt_cv_archive_cmds_need_lc
=yes
15826 allow_undefined_flag
=$lt_save_allow_undefined_flag
15828 cat conftest.err
1>&5
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15834 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15835 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16001 if test "$GCC" = yes; then
16003 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16004 *) lt_awk_arg
="/^libraries:/" ;;
16007 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16008 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16010 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16011 case $lt_search_path_spec in
16013 # if the path contains ";" then we assume it to be the separator
16014 # otherwise default to the standard path separator (i.e. ":") - it is
16015 # assumed that no part of a normal pathname contains ";" but that should
16016 # okay in the real world where ";" in dirpaths is itself problematic.
16017 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16020 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16023 # Ok, now we have the path, separated by spaces, we can step through it
16024 # and add multilib dir if necessary.
16025 lt_tmp_lt_search_path_spec
=
16026 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16027 for lt_sys_path
in $lt_search_path_spec; do
16028 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16029 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16031 test -d "$lt_sys_path" && \
16032 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16035 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16036 BEGIN {RS=" "; FS="/|\n";} {
16039 for (lt_i = NF; lt_i > 0; lt_i--) {
16040 if ($lt_i != "" && $lt_i != ".") {
16041 if ($lt_i == "..") {
16044 if (lt_count == 0) {
16045 lt_foo="/" $lt_i lt_foo;
16052 if (lt_foo != "") { lt_freq[lt_foo]++; }
16053 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16055 # AWK program above erroneously prepends '/' to C:/dos/paths
16058 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
16059 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16061 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16063 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
16065 library_names_spec
=
16066 libname_spec
='lib$name'
16070 postuninstall_cmds
=
16074 shlibpath_overrides_runpath
=unknown
16076 dynamic_linker
="$host_os ld.so"
16077 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
16078 need_lib_prefix
=unknown
16079 hardcode_into_libs
=no
16081 # when you set need_version to no, make sure it does not cause -set_version
16082 # flags to be left without arguments
16083 need_version
=unknown
16088 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
16089 shlibpath_var
=LIBPATH
16091 # AIX 3 has no versioning support, so we append a major version to the name.
16092 soname_spec
='${libname}${release}${shared_ext}$major'
16099 hardcode_into_libs
=yes
16100 if test "$host_cpu" = ia64
; then
16101 # AIX 5 supports IA64
16102 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16103 shlibpath_var
=LD_LIBRARY_PATH
16105 # With GCC up to 2.95.x, collect2 would create an import file
16106 # for dependence libraries. The import file would start with
16107 # the line `#! .'. This would cause the generated library to
16108 # depend on `.', always an invalid library. This was fixed in
16109 # development snapshots of GCC prior to 3.0.
16111 aix4 | aix4.
[01] | aix4.
[01].
*)
16112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16114 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
16117 can_build_shared
=no
16121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16122 # soname into executable. Probably we can add versioning support to
16123 # collect2, so additional links can be useful in future.
16124 if test "$aix_use_runtimelinking" = yes; then
16125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16126 # instead of lib<name>.a to let people know that these are not
16127 # typical AIX shared libraries.
16128 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130 # We preserve .a as extension for shared libraries through AIX4.2
16131 # and later when we are not doing run time linking.
16132 library_names_spec
='${libname}${release}.a $libname.a'
16133 soname_spec
='${libname}${release}${shared_ext}$major'
16135 shlibpath_var
=LIBPATH
16142 # Since July 2007 AmigaOS4 officially supports .so libraries.
16143 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 library_names_spec
='$libname.ixlibrary $libname.a'
16148 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16149 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'
16155 library_names_spec
='${libname}${shared_ext}'
16156 dynamic_linker
="$host_os ld.so"
16157 shlibpath_var
=LIBRARY_PATH
16163 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec
='${libname}${release}${shared_ext}$major'
16165 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
16166 shlibpath_var
=LD_LIBRARY_PATH
16167 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16168 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
16169 # the default ld.so.conf also contains /usr/contrib/lib and
16170 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16171 # libtool to hard-code these into programs
16174 cygwin
* | mingw
* | pw32
* | cegcc
*)
16175 version_type
=windows
16180 case $GCC,$host_os in
16181 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
16182 library_names_spec
='$libname.dll.a'
16183 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16184 postinstall_cmds
='base_file=`basename \${file}`~
16185 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16186 dldir=$destdir/`dirname \$dlpath`~
16187 test -d \$dldir || mkdir -p \$dldir~
16188 $install_prog $dir/$dlname \$dldir/$dlname~
16189 chmod a+x \$dldir/$dlname~
16190 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16191 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16193 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16194 dlpath=$dir/\$dldll~
16196 shlibpath_overrides_runpath
=yes
16200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16201 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16203 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
16206 # MinGW DLLs use traditional 'lib' prefix
16207 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16210 # pw32 DLLs use 'pw' prefix rather than 'lib'
16211 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16217 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16220 dynamic_linker
='Win32 ld.exe'
16221 # FIXME: first we should search . and the directory the executable is in
16225 darwin
* | rhapsody
*)
16226 dynamic_linker
="$host_os dyld"
16227 version_type
=darwin
16230 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16231 soname_spec
='${libname}${release}${major}$shared_ext'
16232 shlibpath_overrides_runpath
=yes
16233 shlibpath_var
=DYLD_LIBRARY_PATH
16234 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
16236 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
16237 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
16244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16245 soname_spec
='${libname}${release}${shared_ext}$major'
16246 shlibpath_var
=LD_LIBRARY_PATH
16253 freebsd
* | dragonfly
*)
16254 # DragonFly does not have aout. When/if they implement a new
16255 # versioning mechanism, adjust this.
16256 if test -x /usr
/bin
/objformat
; then
16257 objformat
=`/usr/bin/objformat`
16260 freebsd
[123]*) objformat
=aout
;;
16261 *) objformat
=elf
;;
16264 version_type
=freebsd-
$objformat
16265 case $version_type in
16267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16272 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16276 shlibpath_var
=LD_LIBRARY_PATH
16279 shlibpath_overrides_runpath
=yes
16281 freebsd3.
[01]* | freebsdelf3.
[01]*)
16282 shlibpath_overrides_runpath
=yes
16283 hardcode_into_libs
=yes
16285 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
16286 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
16287 shlibpath_overrides_runpath
=no
16288 hardcode_into_libs
=yes
16290 *) # from 4.6 on, and DragonFly
16291 shlibpath_overrides_runpath
=yes
16292 hardcode_into_libs
=yes
16301 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16302 soname_spec
='${libname}${release}${shared_ext}$major'
16303 shlibpath_var
=LD_LIBRARY_PATH
16304 hardcode_into_libs
=yes
16311 dynamic_linker
="$host_os runtime_loader"
16312 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16313 soname_spec
='${libname}${release}${shared_ext}$major'
16314 shlibpath_var
=LIBRARY_PATH
16315 shlibpath_overrides_runpath
=yes
16316 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16317 hardcode_into_libs
=yes
16320 hpux9
* | hpux10
* | hpux11
*)
16321 # Give a soname corresponding to the major version so that dld.sl refuses to
16322 # link against other versions.
16329 hardcode_into_libs
=yes
16330 dynamic_linker
="$host_os dld.so"
16331 shlibpath_var
=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16333 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334 soname_spec
='${libname}${release}${shared_ext}$major'
16335 if test "X$HPUX_IA64_MODE" = X32
; then
16336 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16338 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
16340 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16344 hardcode_into_libs
=yes
16345 dynamic_linker
="$host_os dld.sl"
16346 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
16347 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
16348 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 soname_spec
='${libname}${release}${shared_ext}$major'
16350 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16351 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
16355 dynamic_linker
="$host_os dld.sl"
16356 shlibpath_var
=SHLIB_PATH
16357 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
16358 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16359 soname_spec
='${libname}${release}${shared_ext}$major'
16362 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16363 postinstall_cmds
='chmod 555 $lib'
16364 # or fails outright, so override atomically:
16365 install_override_mode
=555
16372 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16373 soname_spec
='${libname}${release}${shared_ext}$major'
16374 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
16375 shlibpath_var
=LD_LIBRARY_PATH
16376 shlibpath_overrides_runpath
=no
16377 hardcode_into_libs
=yes
16380 irix5
* | irix6
* | nonstopux
*)
16382 nonstopux
*) version_type
=nonstopux
;;
16384 if test "$lt_cv_prog_gnu_ld" = yes; then
16392 soname_spec
='${libname}${release}${shared_ext}$major'
16393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16395 irix5
* | nonstopux
*)
16396 libsuff
= shlibsuff
=
16399 case $LD in # libtool.m4 will add one of these switches to LD
16400 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
16401 libsuff
= shlibsuff
= libmagic
=32-bit;;
16402 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
16403 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
16404 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
16405 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
16406 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
16410 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
16411 shlibpath_overrides_runpath
=no
16412 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16413 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
16414 hardcode_into_libs
=yes
16417 # No shared lib support for Linux oldld, aout, or coff.
16418 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
16422 # This must be Linux ELF.
16423 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16427 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec
='${libname}${release}${shared_ext}$major'
16429 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16430 shlibpath_var
=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath
=no
16433 # Some binutils ld are patched to set DT_RUNPATH
16434 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16435 $as_echo_n "(cached) " >&6
16437 lt_cv_shlibpath_overrides_runpath
=no
16438 save_LDFLAGS
=$LDFLAGS
16439 save_libdir
=$libdir
16440 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16441 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16443 /* end confdefs.h. */
16453 if ac_fn_c_try_link
"$LINENO"; then :
16454 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
16455 lt_cv_shlibpath_overrides_runpath
=yes
16458 rm -f core conftest.err conftest.
$ac_objext \
16459 conftest
$ac_exeext conftest.
$ac_ext
16460 LDFLAGS
=$save_LDFLAGS
16461 libdir
=$save_libdir
16465 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
16467 # This implies no fast_install, which is unacceptable.
16468 # Some rework will be needed to allow for fast_install
16469 # before this can be enabled.
16470 hardcode_into_libs
=yes
16472 # Append ld.so.conf contents to the search path
16473 if test -f /etc
/ld.so.conf
; then
16474 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' ' '`
16475 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
16478 # We used to test for /lib/ld.so.1 and disable shared libraries on
16479 # powerpc, because MkLinux only supported shared libraries with the
16480 # GNU dynamic linker. Since this was broken with cross compilers,
16481 # most powerpc-linux boxes support dynamic linking these days and
16482 # people can always --disable-shared, the test was removed, and we
16483 # assume the GNU/Linux dynamic linker is in use.
16484 dynamic_linker
='GNU/Linux ld.so'
16491 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16492 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16493 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16494 dynamic_linker
='NetBSD (a.out) ld.so'
16496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16497 soname_spec
='${libname}${release}${shared_ext}$major'
16498 dynamic_linker
='NetBSD ld.elf_so'
16500 shlibpath_var
=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath
=yes
16502 hardcode_into_libs
=yes
16507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508 shlibpath_var
=LD_LIBRARY_PATH
16509 shlibpath_overrides_runpath
=yes
16516 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16517 soname_spec
='${libname}${release}${shared_ext}$major'
16518 shlibpath_var
=LD_LIBRARY_PATH
16519 shlibpath_overrides_runpath
=no
16520 hardcode_into_libs
=yes
16521 dynamic_linker
='ldqnx.so'
16526 sys_lib_dlsearch_path_spec
="/usr/lib"
16528 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16530 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
16531 *) need_version
=no
;;
16533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16534 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16535 shlibpath_var
=LD_LIBRARY_PATH
16536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16538 openbsd2.
[89] | openbsd2.
[89].
*)
16539 shlibpath_overrides_runpath
=no
16542 shlibpath_overrides_runpath
=yes
16546 shlibpath_overrides_runpath
=yes
16551 libname_spec
='$name'
16554 library_names_spec
='$libname${shared_ext} $libname.a'
16555 dynamic_linker
='OS/2 ld.exe'
16556 shlibpath_var
=LIBPATH
16559 osf3
* | osf4
* | osf5
*)
16563 soname_spec
='${libname}${release}${shared_ext}$major'
16564 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 shlibpath_var
=LD_LIBRARY_PATH
16566 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16567 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 soname_spec
='${libname}${release}${shared_ext}$major'
16580 shlibpath_var
=LD_LIBRARY_PATH
16581 shlibpath_overrides_runpath
=yes
16582 hardcode_into_libs
=yes
16583 # ldd complains unless libraries are executable
16584 postinstall_cmds
='chmod +x $lib'
16589 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16590 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16591 shlibpath_var
=LD_LIBRARY_PATH
16592 shlibpath_overrides_runpath
=yes
16593 if test "$with_gnu_ld" = yes; then
16601 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16602 soname_spec
='${libname}${release}${shared_ext}$major'
16603 shlibpath_var
=LD_LIBRARY_PATH
16604 case $host_vendor in
16606 shlibpath_overrides_runpath
=no
16608 runpath_var
=LD_RUN_PATH
16616 shlibpath_overrides_runpath
=no
16617 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16623 if test -d /usr
/nec
;then
16625 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16626 soname_spec
='$libname${shared_ext}.$major'
16627 shlibpath_var
=LD_LIBRARY_PATH
16631 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16632 version_type
=freebsd-elf
16635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16636 soname_spec
='${libname}${release}${shared_ext}$major'
16637 shlibpath_var
=LD_LIBRARY_PATH
16638 shlibpath_overrides_runpath
=yes
16639 hardcode_into_libs
=yes
16640 if test "$with_gnu_ld" = yes; then
16641 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16643 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16646 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16650 sys_lib_dlsearch_path_spec
='/usr/lib'
16654 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 shlibpath_var
=LD_LIBRARY_PATH
16660 shlibpath_overrides_runpath
=no
16661 hardcode_into_libs
=yes
16666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16667 soname_spec
='${libname}${release}${shared_ext}$major'
16668 shlibpath_var
=LD_LIBRARY_PATH
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16676 $as_echo "$dynamic_linker" >&6; }
16677 test "$dynamic_linker" = no
&& can_build_shared
=no
16679 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16680 if test "$GCC" = yes; then
16681 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16684 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16685 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
16687 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16688 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16783 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16785 if test -n "$hardcode_libdir_flag_spec" ||
16786 test -n "$runpath_var" ||
16787 test "X$hardcode_automatic" = "Xyes" ; then
16789 # We can hardcode non-existent directories.
16790 if test "$hardcode_direct" != no
&&
16791 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16792 # have to relink, otherwise we might link with an installed library
16793 # when we should be linking with a yet-to-be-installed one
16794 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16795 test "$hardcode_minus_L" != no
; then
16796 # Linking always hardcodes the temporary library directory.
16797 hardcode_action
=relink
16799 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16800 hardcode_action
=immediate
16803 # We cannot hardcode anything, or else we can only hardcode existing
16805 hardcode_action
=unsupported
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16808 $as_echo "$hardcode_action" >&6; }
16810 if test "$hardcode_action" = relink ||
16811 test "$inherit_rpath" = yes; then
16812 # Fast installation is not supported
16813 enable_fast_install
=no
16814 elif test "$shlibpath_overrides_runpath" = yes ||
16815 test "$enable_shared" = no
; then
16816 # Fast installation is not necessary
16817 enable_fast_install
=needless
16825 if test "x$enable_dlopen" != xyes
; then
16826 enable_dlopen
=unknown
16827 enable_dlopen_self
=unknown
16828 enable_dlopen_self_static
=unknown
16835 lt_cv_dlopen
="load_add_on"
16837 lt_cv_dlopen_self
=yes
16840 mingw
* | pw32
* | cegcc
*)
16841 lt_cv_dlopen
="LoadLibrary"
16846 lt_cv_dlopen
="dlopen"
16851 # if libdl is installed we need to link against it
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16853 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16854 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16855 $as_echo_n "(cached) " >&6
16857 ac_check_lib_save_LIBS
=$LIBS
16859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16862 /* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16877 if ac_fn_c_try_link
"$LINENO"; then :
16878 ac_cv_lib_dl_dlopen
=yes
16880 ac_cv_lib_dl_dlopen
=no
16882 rm -f core conftest.err conftest.
$ac_objext \
16883 conftest
$ac_exeext conftest.
$ac_ext
16884 LIBS
=$ac_check_lib_save_LIBS
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16887 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16888 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16889 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16892 lt_cv_dlopen
="dyld"
16894 lt_cv_dlopen_self
=yes
16901 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
16902 if test "x$ac_cv_func_shl_load" = x
""yes; then :
16903 lt_cv_dlopen
="shl_load"
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16906 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16907 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16910 ac_check_lib_save_LIBS
=$LIBS
16912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16915 /* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
16925 return shl_load ();
16930 if ac_fn_c_try_link
"$LINENO"; then :
16931 ac_cv_lib_dld_shl_load
=yes
16933 ac_cv_lib_dld_shl_load
=no
16935 rm -f core conftest.err conftest.
$ac_objext \
16936 conftest
$ac_exeext conftest.
$ac_ext
16937 LIBS
=$ac_check_lib_save_LIBS
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16940 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16941 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
16942 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
16944 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
16945 if test "x$ac_cv_func_dlopen" = x
""yes; then :
16946 lt_cv_dlopen
="dlopen"
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16951 $as_echo_n "(cached) " >&6
16953 ac_check_lib_save_LIBS
=$LIBS
16955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16956 /* end confdefs.h. */
16958 /* Override any GCC internal prototype to avoid an error.
16959 Use char because int might match the return type of a GCC
16960 builtin and then its argument prototype would still apply. */
16973 if ac_fn_c_try_link
"$LINENO"; then :
16974 ac_cv_lib_dl_dlopen
=yes
16976 ac_cv_lib_dl_dlopen
=no
16978 rm -f core conftest.err conftest.
$ac_objext \
16979 conftest
$ac_exeext conftest.
$ac_ext
16980 LIBS
=$ac_check_lib_save_LIBS
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16984 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
16985 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16988 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16990 $as_echo_n "(cached) " >&6
16992 ac_check_lib_save_LIBS
=$LIBS
16993 LIBS
="-lsvld $LIBS"
16994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16997 /* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17012 if ac_fn_c_try_link
"$LINENO"; then :
17013 ac_cv_lib_svld_dlopen
=yes
17015 ac_cv_lib_svld_dlopen
=no
17017 rm -f core conftest.err conftest.
$ac_objext \
17018 conftest
$ac_exeext conftest.
$ac_ext
17019 LIBS
=$ac_check_lib_save_LIBS
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17022 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17023 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17024 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17027 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17028 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17031 ac_check_lib_save_LIBS
=$LIBS
17033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17036 /* Override any GCC internal prototype to avoid an error.
17037 Use char because int might match the return type of a GCC
17038 builtin and then its argument prototype would still apply. */
17046 return dld_link ();
17051 if ac_fn_c_try_link
"$LINENO"; then :
17052 ac_cv_lib_dld_dld_link
=yes
17054 ac_cv_lib_dld_dld_link
=no
17056 rm -f core conftest.err conftest.
$ac_objext \
17057 conftest
$ac_exeext conftest.
$ac_ext
17058 LIBS
=$ac_check_lib_save_LIBS
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17061 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17062 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
17063 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
17084 if test "x$lt_cv_dlopen" != xno
; then
17090 case $lt_cv_dlopen in
17092 save_CPPFLAGS
="$CPPFLAGS"
17093 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
17095 save_LDFLAGS
="$LDFLAGS"
17096 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
17099 LIBS
="$lt_cv_dlopen_libs $LIBS"
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17102 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17103 if test "${lt_cv_dlopen_self+set}" = set; then :
17104 $as_echo_n "(cached) " >&6
17106 if test "$cross_compiling" = yes; then :
17107 lt_cv_dlopen_self
=cross
17109 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17110 lt_status
=$lt_dlunknown
17111 cat > conftest.
$ac_ext <<_LT_EOF
17112 #line 17112 "configure"
17113 #include "confdefs.h"
17122 # define LT_DLGLOBAL RTLD_GLOBAL
17125 # define LT_DLGLOBAL DL_GLOBAL
17127 # define LT_DLGLOBAL 0
17131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17132 find out it does not work in some platform. */
17133 #ifndef LT_DLLAZY_OR_NOW
17135 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17138 # define LT_DLLAZY_OR_NOW DL_LAZY
17141 # define LT_DLLAZY_OR_NOW RTLD_NOW
17144 # define LT_DLLAZY_OR_NOW DL_NOW
17146 # define LT_DLLAZY_OR_NOW 0
17153 /* When -fvisbility=hidden is used, assume the code has been annotated
17154 correspondingly for the symbols needed. */
17155 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17156 void fnord () __attribute__((visibility("default")));
17159 void fnord () { int i=42; }
17162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17163 int status = $lt_dlunknown;
17167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17170 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17171 else puts (dlerror ());
17173 /* dlclose (self); */
17181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17182 (eval $ac_link) 2>&5
17184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17185 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17186 (.
/conftest
; exit; ) >&5 2>/dev
/null
17188 case x
$lt_status in
17189 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
17190 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
17191 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
17194 # compilation failed
17195 lt_cv_dlopen_self
=no
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17203 $as_echo "$lt_cv_dlopen_self" >&6; }
17205 if test "x$lt_cv_dlopen_self" = xyes
; then
17206 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17208 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17209 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17210 $as_echo_n "(cached) " >&6
17212 if test "$cross_compiling" = yes; then :
17213 lt_cv_dlopen_self_static
=cross
17215 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
17216 lt_status
=$lt_dlunknown
17217 cat > conftest.
$ac_ext <<_LT_EOF
17218 #line 17218 "configure"
17219 #include "confdefs.h"
17228 # define LT_DLGLOBAL RTLD_GLOBAL
17231 # define LT_DLGLOBAL DL_GLOBAL
17233 # define LT_DLGLOBAL 0
17237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17238 find out it does not work in some platform. */
17239 #ifndef LT_DLLAZY_OR_NOW
17241 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17244 # define LT_DLLAZY_OR_NOW DL_LAZY
17247 # define LT_DLLAZY_OR_NOW RTLD_NOW
17250 # define LT_DLLAZY_OR_NOW DL_NOW
17252 # define LT_DLLAZY_OR_NOW 0
17259 /* When -fvisbility=hidden is used, assume the code has been annotated
17260 correspondingly for the symbols needed. */
17261 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17262 void fnord () __attribute__((visibility("default")));
17265 void fnord () { int i=42; }
17268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17269 int status = $lt_dlunknown;
17273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17277 else puts (dlerror ());
17279 /* dlclose (self); */
17287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17288 (eval $ac_link) 2>&5
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
17292 (.
/conftest
; exit; ) >&5 2>/dev
/null
17294 case x
$lt_status in
17295 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
17296 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
17297 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
17300 # compilation failed
17301 lt_cv_dlopen_self_static
=no
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17309 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17312 CPPFLAGS
="$save_CPPFLAGS"
17313 LDFLAGS
="$save_LDFLAGS"
17318 case $lt_cv_dlopen_self in
17319 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
17320 *) enable_dlopen_self
=unknown
;;
17323 case $lt_cv_dlopen_self_static in
17324 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
17325 *) enable_dlopen_self_static
=unknown
;;
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17348 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17349 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
17350 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
17351 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17353 $as_echo "yes" >&6; }
17355 # FIXME - insert some real tests, host_os isn't really good enough
17358 if test -n "$STRIP" ; then
17359 striplib
="$STRIP -x"
17360 old_striplib
="$STRIP -S"
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17365 $as_echo "no" >&6; }
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17370 $as_echo "no" >&6; }
17386 # Report which library types will actually be built
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17388 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17390 $as_echo "$can_build_shared" >&6; }
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17393 $as_echo_n "checking whether to build shared libraries... " >&6; }
17394 test "$can_build_shared" = "no" && enable_shared
=no
17396 # On AIX, shared libraries and static libraries use the same namespace, and
17397 # are all built from PIC.
17400 test "$enable_shared" = yes && enable_static
=no
17401 if test -n "$RANLIB"; then
17402 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
17403 postinstall_cmds
='$RANLIB $lib'
17408 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
17409 test "$enable_shared" = yes && enable_static
=no
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17414 $as_echo "$enable_shared" >&6; }
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17417 $as_echo_n "checking whether to build static libraries... " >&6; }
17418 # Make sure either enable_shared or enable_static is yes.
17419 test "$enable_shared" = yes || enable_static
=yes
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17421 $as_echo "$enable_static" >&6; }
17428 ac_cpp
='$CPP $CPPFLAGS'
17429 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17430 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17431 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17435 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17436 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17437 (test "X$CXX" != "Xg++"))) ; then
17439 ac_cpp
='$CXXCPP $CPPFLAGS'
17440 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17444 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17445 if test -z "$CXXCPP"; then
17446 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17447 $as_echo_n "(cached) " >&6
17449 # Double quotes because CXXCPP needs to be expanded
17450 for CXXCPP
in "$CXX -E" "/lib/cpp"
17452 ac_preproc_ok
=false
17453 for ac_cxx_preproc_warn_flag
in '' yes
17455 # Use a header file that comes with gcc, so configuring glibc
17456 # with a fresh cross-compiler works.
17457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17458 # <limits.h> exists even on freestanding compilers.
17459 # On the NeXT, cc -E runs the code through the compiler's parser,
17460 # not just through cpp. "Syntax error" is here to catch this case.
17461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17464 # include <limits.h>
17466 # include <assert.h>
17470 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17473 # Broken: fails on valid input.
17476 rm -f conftest.err conftest.
$ac_ext
17478 # OK, works on sane cases. Now check whether nonexistent headers
17479 # can be detected and how.
17480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482 #include <ac_nonexistent.h>
17484 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17485 # Broken: success on invalid input.
17488 # Passes both tests.
17492 rm -f conftest.err conftest.
$ac_ext
17495 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17496 rm -f conftest.err conftest.
$ac_ext
17497 if $ac_preproc_ok; then :
17502 ac_cv_prog_CXXCPP
=$CXXCPP
17505 CXXCPP
=$ac_cv_prog_CXXCPP
17507 ac_cv_prog_CXXCPP
=$CXXCPP
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17510 $as_echo "$CXXCPP" >&6; }
17511 ac_preproc_ok
=false
17512 for ac_cxx_preproc_warn_flag
in '' yes
17514 # Use a header file that comes with gcc, so configuring glibc
17515 # with a fresh cross-compiler works.
17516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17517 # <limits.h> exists even on freestanding compilers.
17518 # On the NeXT, cc -E runs the code through the compiler's parser,
17519 # not just through cpp. "Syntax error" is here to catch this case.
17520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17523 # include <limits.h>
17525 # include <assert.h>
17529 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17532 # Broken: fails on valid input.
17535 rm -f conftest.err conftest.
$ac_ext
17537 # OK, works on sane cases. Now check whether nonexistent headers
17538 # can be detected and how.
17539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17540 /* end confdefs.h. */
17541 #include <ac_nonexistent.h>
17543 if ac_fn_cxx_try_cpp
"$LINENO"; then :
17544 # Broken: success on invalid input.
17547 # Passes both tests.
17551 rm -f conftest.err conftest.
$ac_ext
17554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17555 rm -f conftest.err conftest.
$ac_ext
17556 if $ac_preproc_ok; then :
17559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17561 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
17562 See \`config.log' for more details." "$LINENO" 5; }
17566 ac_cpp
='$CPP $CPPFLAGS'
17567 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17568 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17569 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17572 _lt_caught_CXX_error
=yes
17576 ac_cpp
='$CXXCPP $CPPFLAGS'
17577 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17578 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17579 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17581 archive_cmds_need_lc_CXX
=no
17582 allow_undefined_flag_CXX
=
17583 always_export_symbols_CXX
=no
17584 archive_expsym_cmds_CXX
=
17585 compiler_needs_object_CXX
=no
17586 export_dynamic_flag_spec_CXX
=
17587 hardcode_direct_CXX
=no
17588 hardcode_direct_absolute_CXX
=no
17589 hardcode_libdir_flag_spec_CXX
=
17590 hardcode_libdir_flag_spec_ld_CXX
=
17591 hardcode_libdir_separator_CXX
=
17592 hardcode_minus_L_CXX
=no
17593 hardcode_shlibpath_var_CXX
=unsupported
17594 hardcode_automatic_CXX
=no
17595 inherit_rpath_CXX
=no
17597 module_expsym_cmds_CXX
=
17598 link_all_deplibs_CXX
=unknown
17599 old_archive_cmds_CXX
=$old_archive_cmds
17600 reload_flag_CXX
=$reload_flag
17601 reload_cmds_CXX
=$reload_cmds
17602 no_undefined_flag_CXX
=
17603 whole_archive_flag_spec_CXX
=
17604 enable_shared_with_static_runtimes_CXX
=no
17606 # Source file extension for C++ test sources.
17609 # Object file extension for compiled C++ test sources.
17613 # No sense in running all these tests if we already determined that
17614 # the CXX compiler isn't working. Some variables (like enable_shared)
17615 # are currently assumed to apply to all compilers on this platform,
17616 # and will be corrupted by setting them based on a non-working compiler.
17617 if test "$_lt_caught_CXX_error" != yes; then
17618 # Code to be used in simple compile tests
17619 lt_simple_compile_test_code
="int some_variable = 0;"
17621 # Code to be used in simple link tests
17622 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
17624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17631 # If no C compiler was specified, use CC.
17634 # If no C compiler flags were specified, use CFLAGS.
17635 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
17637 # Allow CC to be a program name with arguments.
17641 # save warnings/boilerplate of simple test code
17642 ac_outfile
=conftest.
$ac_objext
17643 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
17644 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17645 _lt_compiler_boilerplate
=`cat conftest.err`
17648 ac_outfile
=conftest.
$ac_objext
17649 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
17650 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
17651 _lt_linker_boilerplate
=`cat conftest.err`
17655 # Allow CC to be a program name with arguments.
17660 lt_save_with_gnu_ld
=$with_gnu_ld
17661 lt_save_path_LD
=$lt_cv_path_LD
17662 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17663 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
17665 $as_unset lt_cv_prog_gnu_ld
17667 if test -n "${lt_cv_path_LDCXX+set}"; then
17668 lt_cv_path_LD
=$lt_cv_path_LDCXX
17670 $as_unset lt_cv_path_LD
17672 test -z "${LDCXX+set}" || LD
=$LDCXX
17676 for cc_temp
in $compiler""; do
17678 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17679 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17684 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17687 if test -n "$compiler"; then
17688 # We don't want -fno-exception when compiling C++ code, so set the
17689 # no_builtin_flag separately
17690 if test "$GXX" = yes; then
17691 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
17693 lt_prog_compiler_no_builtin_flag_CXX
=
17696 if test "$GXX" = yes; then
17697 # Set up default GNU C++ configuration
17701 # Check whether --with-gnu-ld was given.
17702 if test "${with_gnu_ld+set}" = set; then :
17703 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
17709 if test "$GCC" = yes; then
17710 # Check if gcc -print-prog-name=ld gives a path.
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17712 $as_echo_n "checking for ld used by $CC... " >&6; }
17715 # gcc leaves a trailing carriage return which upsets mingw
17716 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17718 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
17721 # Accept absolute paths.
17723 re_direlt
='/[^/][^/]*/\.\./'
17724 # Canonicalize the pathname of ld
17725 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17726 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
17727 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17729 test -z "$LD" && LD
="$ac_prog"
17732 # If it fails, then pretend we aren't using GCC.
17736 # If it is relative, then search for the first ld in PATH.
17737 with_gnu_ld
=unknown
17740 elif test "$with_gnu_ld" = yes; then
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17742 $as_echo_n "checking for GNU ld... " >&6; }
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17745 $as_echo_n "checking for non-GNU ld... " >&6; }
17747 if test "${lt_cv_path_LD+set}" = set; then :
17748 $as_echo_n "(cached) " >&6
17750 if test -z "$LD"; then
17751 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
17752 for ac_dir
in $PATH; do
17754 test -z "$ac_dir" && ac_dir
=.
17755 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
17756 lt_cv_path_LD
="$ac_dir/$ac_prog"
17757 # Check to see if the program is GNU ld. I'd rather use --version,
17758 # but apparently some variants of GNU ld only accept -v.
17759 # Break only if it was the GNU/non-GNU ld that we prefer.
17760 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17761 *GNU
* |
*'with BFD'*)
17762 test "$with_gnu_ld" != no
&& break
17765 test "$with_gnu_ld" != yes && break
17772 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
17776 LD
="$lt_cv_path_LD"
17777 if test -n "$LD"; then
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17779 $as_echo "$LD" >&6; }
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17782 $as_echo "no" >&6; }
17784 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17786 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17787 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17788 $as_echo_n "(cached) " >&6
17790 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17791 case `$LD -v 2>&1 </dev/null` in
17792 *GNU
* |
*'with BFD'*)
17793 lt_cv_prog_gnu_ld
=yes
17796 lt_cv_prog_gnu_ld
=no
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17801 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17802 with_gnu_ld
=$lt_cv_prog_gnu_ld
17810 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17811 # archiving commands below assume that GNU ld is being used.
17812 if test "$with_gnu_ld" = yes; then
17813 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17814 archive_expsym_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17816 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
17817 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
17819 # If archive_cmds runs LD, not CC, wlarc should be empty
17820 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17821 # investigate it a little bit more. (MM)
17824 # ancient GNU ld didn't support --whole-archive et. al.
17825 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17826 $GREP 'no-whole-archive' > /dev
/null
; then
17827 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17829 whole_archive_flag_spec_CXX
=
17835 # A generic and very simple default shared library creation
17836 # command for GNU C++ for the case where it uses the native
17837 # linker, instead of GNU ld. If possible, this setting should
17838 # overridden to take advantage of the native linker features on
17839 # the platform it is being used on.
17840 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17843 # Commands to make compiler produce verbose output that lists
17844 # what "hidden" libraries, object files and flags are used when
17845 # linking a shared library.
17846 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17854 # PORTME: fill in a description of your system's C++ link characteristics
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17856 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17860 # FIXME: insert proper C++ library support
17864 if test "$host_cpu" = ia64
; then
17865 # On IA64, the linker does run time linking by default, so we don't
17866 # have to do anything special.
17867 aix_use_runtimelinking
=no
17868 exp_sym_flag
='-Bexport'
17871 aix_use_runtimelinking
=no
17873 # Test if we are trying to use run time linking or normal
17874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17875 # need to do runtime linking.
17876 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
17877 for ld_flag
in $LDFLAGS; do
17880 aix_use_runtimelinking
=yes
17888 exp_sym_flag
='-bexport'
17889 no_entry_flag
='-bnoentry'
17892 # When large executables or shared objects are built, AIX ld can
17893 # have problems creating the table of contents. If linking a library
17894 # or program results in "error TOC overflow" add -mminimal-toc to
17895 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17896 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17898 archive_cmds_CXX
=''
17899 hardcode_direct_CXX
=yes
17900 hardcode_direct_absolute_CXX
=yes
17901 hardcode_libdir_separator_CXX
=':'
17902 link_all_deplibs_CXX
=yes
17903 file_list_spec_CXX
='${wl}-f,'
17905 if test "$GXX" = yes; then
17906 case $host_os in aix4.
[012]|aix4.
[012].
*)
17907 # We only want to do this on AIX 4.2 and lower, the check
17908 # below for broken collect2 doesn't work under 4.3+
17909 collect2name
=`${CC} -print-prog-name=collect2`
17910 if test -f "$collect2name" &&
17911 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
17913 # We have reworked collect2
17916 # We have old collect2
17917 hardcode_direct_CXX
=unsupported
17918 # It fails to find uninstalled libraries when the uninstalled
17919 # path is not listed in the libpath. Setting hardcode_minus_L
17920 # to unsupported forces relinking
17921 hardcode_minus_L_CXX
=yes
17922 hardcode_libdir_flag_spec_CXX
='-L$libdir'
17923 hardcode_libdir_separator_CXX
=
17926 shared_flag
='-shared'
17927 if test "$aix_use_runtimelinking" = yes; then
17928 shared_flag
="$shared_flag "'${wl}-G'
17932 if test "$host_cpu" = ia64
; then
17933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17934 # chokes on -Wl,-G. The following line is correct:
17937 if test "$aix_use_runtimelinking" = yes; then
17938 shared_flag
='${wl}-G'
17940 shared_flag
='${wl}-bM:SRE'
17945 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
17946 # It seems that -bexpall does not export symbols beginning with
17947 # underscore (_), so it is better to generate a list of symbols to
17949 always_export_symbols_CXX
=yes
17950 if test "$aix_use_runtimelinking" = yes; then
17951 # Warning - without using the other runtime loading flags (-brtl),
17952 # -berok will link without error, but may produce a broken library.
17953 allow_undefined_flag_CXX
='-berok'
17954 # Determine the default libpath from the value encoded in an empty
17956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17967 if ac_fn_cxx_try_link
"$LINENO"; then :
17969 lt_aix_libpath_sed
='
17970 /Import File Strings/,/^$/ {
17976 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17977 # Check for a 64-bit object if we didn't find anything.
17978 if test -z "$aix_libpath"; then
17979 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17982 rm -f core conftest.err conftest.
$ac_objext \
17983 conftest
$ac_exeext conftest.
$ac_ext
17984 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17986 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
17988 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"
17990 if test "$host_cpu" = ia64
; then
17991 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
17992 allow_undefined_flag_CXX
="-z nodefs"
17993 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"
17995 # Determine the default libpath from the value encoded in an
17996 # empty executable.
17997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h. */
18008 if ac_fn_cxx_try_link
"$LINENO"; then :
18010 lt_aix_libpath_sed
='
18011 /Import File Strings/,/^$/ {
18017 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18018 # Check for a 64-bit object if we didn't find anything.
18019 if test -z "$aix_libpath"; then
18020 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18023 rm -f core conftest.err conftest.
$ac_objext \
18024 conftest
$ac_exeext conftest.
$ac_ext
18025 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18027 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18028 # Warning - without using the other run time loading flags,
18029 # -berok will link without error, but may produce a broken library.
18030 no_undefined_flag_CXX
=' ${wl}-bernotok'
18031 allow_undefined_flag_CXX
=' ${wl}-berok'
18032 if test "$with_gnu_ld" = yes; then
18033 # We only use this code for GNU lds that support --whole-archive.
18034 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18036 # Exported symbols can be pulled into shared objects from archives
18037 whole_archive_flag_spec_CXX
='$convenience'
18039 archive_cmds_need_lc_CXX
=yes
18040 # This is similar to how AIX traditionally builds its shared
18042 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'
18048 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18049 allow_undefined_flag_CXX
=unsupported
18050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18051 # support --undefined. This deserves some investigation. FIXME
18052 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18059 case $cc_basename in
18061 # FIXME: insert proper C++ library support
18067 cygwin
* | mingw
* | pw32
* | cegcc
*)
18068 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18069 # as there is no search path for DLLs.
18070 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18071 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
18072 allow_undefined_flag_CXX
=unsupported
18073 always_export_symbols_CXX
=no
18074 enable_shared_with_static_runtimes_CXX
=yes
18076 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
18077 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'
18078 # If the export-symbols file already is a .def file (1st line
18079 # is EXPORTS), use it as is; otherwise, prepend...
18080 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18081 cp $export_symbols $output_objdir/$soname.def;
18083 echo EXPORTS > $output_objdir/$soname.def;
18084 cat $export_symbols >> $output_objdir/$soname.def;
18086 $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'
18091 darwin
* | rhapsody
*)
18094 archive_cmds_need_lc_CXX
=no
18095 hardcode_direct_CXX
=no
18096 hardcode_automatic_CXX
=yes
18097 hardcode_shlibpath_var_CXX
=unsupported
18098 if test "$lt_cv_ld_force_load" = "yes"; then
18099 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\"`'
18101 whole_archive_flag_spec_CXX
=''
18103 link_all_deplibs_CXX
=yes
18104 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
18105 case $cc_basename in
18106 ifort
*) _lt_dar_can_shared
=yes ;;
18107 *) _lt_dar_can_shared
=$GCC ;;
18109 if test "$_lt_dar_can_shared" = "yes"; then
18110 output_verbose_link_cmd
=func_echo_all
18111 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}"
18112 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18113 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}"
18114 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}"
18115 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18116 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}"
18117 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}"
18127 case $cc_basename in
18129 # FIXME: insert proper C++ library support
18133 # Green Hills C++ Compiler
18134 # FIXME: insert proper C++ library support
18138 # FIXME: insert proper C++ library support
18145 # C++ shared libraries reported to be fairly broken before
18151 archive_cmds_need_lc_CXX
=no
18154 freebsd
* | dragonfly
*)
18155 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18164 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18165 link_all_deplibs_CXX
=yes
18169 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18170 hardcode_libdir_separator_CXX
=:
18171 export_dynamic_flag_spec_CXX
='${wl}-E'
18172 hardcode_direct_CXX
=yes
18173 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18174 # but as the default
18175 # location of the library.
18177 case $cc_basename in
18179 # FIXME: insert proper C++ library support
18183 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'
18184 # Commands to make compiler produce verbose output that lists
18185 # what "hidden" libraries, object files and flags are used when
18186 # linking a shared library.
18188 # There doesn't appear to be a way to prevent this compiler from
18189 # explicitly linking system object files so we need to strip them
18190 # from the output so that they don't get included in the library
18192 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"'
18195 if test "$GXX" = yes; then
18196 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'
18198 # FIXME: insert proper C++ library support
18206 if test $with_gnu_ld = no
; then
18207 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
18208 hardcode_libdir_separator_CXX
=:
18214 export_dynamic_flag_spec_CXX
='${wl}-E'
18220 hardcode_direct_CXX
=no
18221 hardcode_shlibpath_var_CXX
=no
18224 hardcode_direct_CXX
=yes
18225 hardcode_direct_absolute_CXX
=yes
18226 hardcode_minus_L_CXX
=yes # Not in the search PATH,
18227 # but as the default
18228 # location of the library.
18232 case $cc_basename in
18234 # FIXME: insert proper C++ library support
18240 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18243 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18246 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18249 # Commands to make compiler produce verbose output that lists
18250 # what "hidden" libraries, object files and flags are used when
18251 # linking a shared library.
18253 # There doesn't appear to be a way to prevent this compiler from
18254 # explicitly linking system object files so we need to strip them
18255 # from the output so that they don't get included in the library
18257 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"'
18260 if test "$GXX" = yes; then
18261 if test $with_gnu_ld = no
; then
18264 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18267 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18270 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'
18275 # FIXME: insert proper C++ library support
18283 hardcode_direct_CXX
=no
18284 hardcode_shlibpath_var_CXX
=no
18285 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18286 export_dynamic_flag_spec_CXX
='${wl}-E'
18287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18288 # Instead, shared libraries are loaded at an image base (0x10000000 by
18289 # default) and relocated if they conflict, which is a slow very memory
18290 # consuming and fragmenting process. To avoid this, we pick a random,
18291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18293 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'
18294 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'
18297 case $cc_basename in
18300 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'
18302 # Archives containing C++ object files must be created using
18303 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18304 # necessary to make sure instantiated templates are included
18306 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
18309 if test "$GXX" = yes; then
18310 if test "$with_gnu_ld" = no
; then
18311 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'
18313 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'
18316 link_all_deplibs_CXX
=yes
18319 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18320 hardcode_libdir_separator_CXX
=:
18321 inherit_rpath_CXX
=yes
18324 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
18325 case $cc_basename in
18327 # Kuck and Associates, Inc. (KAI) C++ Compiler
18329 # KCC will only create a shared library if the output file
18330 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18331 # to its proper name (with version) after linking.
18332 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'
18333 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'
18334 # Commands to make compiler produce verbose output that lists
18335 # what "hidden" libraries, object files and flags are used when
18336 # linking a shared library.
18338 # There doesn't appear to be a way to prevent this compiler from
18339 # explicitly linking system object files so we need to strip them
18340 # from the output so that they don't get included in the library
18342 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"'
18344 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18345 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18347 # Archives containing C++ object files must be created using
18348 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18349 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
18354 # version 8.0 and above of icpc choke on multiply defined symbols
18355 # if we add $predep_objects and $postdep_objects, however 7.1 and
18356 # earlier do not add the objects themselves.
18357 case `$CC -V 2>&1` in
18359 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18360 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'
18362 *) # Version 8.0 or newer
18365 ia64
*) tmp_idyn
=' -i_dynamic';;
18367 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18368 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'
18371 archive_cmds_need_lc_CXX
=no
18372 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18373 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18374 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18377 # Portland Group C++ compiler
18379 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
18380 prelink_cmds_CXX
='tpldir=Template.dir~
18382 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18383 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18384 old_archive_cmds_CXX
='tpldir=Template.dir~
18386 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18387 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18389 archive_cmds_CXX
='tpldir=Template.dir~
18391 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18392 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18393 archive_expsym_cmds_CXX
='tpldir=Template.dir~
18395 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18396 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18398 *) # Version 6 and above use weak symbols
18399 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18400 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'
18404 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
18405 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18406 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'
18410 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18411 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'
18413 runpath_var
=LD_RUN_PATH
18414 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18415 hardcode_libdir_separator_CXX
=:
18417 # Commands to make compiler produce verbose output that lists
18418 # what "hidden" libraries, object files and flags are used when
18419 # linking a shared library.
18421 # There doesn't appear to be a way to prevent this compiler from
18422 # explicitly linking system object files so we need to strip them
18423 # from the output so that they don't get included in the library
18425 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'
18427 xl
* | mpixl
* | bgxl
*)
18428 # IBM XL 8.0 on PPC, with GNU ld
18429 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18430 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18431 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18432 if test "x$supports_anon_versioning" = xyes
; then
18433 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
18434 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18435 echo "local: *; };" >> $output_objdir/$libname.ver~
18436 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18440 case `$CC -V 2>&1 | sed 5q` in
18443 no_undefined_flag_CXX
=' -zdefs'
18444 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18445 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'
18446 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18447 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'
18448 compiler_needs_object_CXX
=yes
18450 # Not sure whether something based on
18451 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18453 output_verbose_link_cmd
='func_echo_all'
18455 # Archives containing C++ object files must be created using
18456 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18457 # necessary to make sure instantiated templates are included
18459 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18467 # FIXME: insert proper C++ library support
18472 # FIXME: insert proper C++ library support
18477 case $cc_basename in
18479 # FIXME: insert proper C++ library support
18483 # FIXME: insert proper C++ library support
18490 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
18491 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18493 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18494 hardcode_direct_CXX
=yes
18495 hardcode_shlibpath_var_CXX
=no
18497 # Workaround some broken pre-1.5 toolchains
18498 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18506 # C++ shared libraries are fairly broken
18511 if test -f /usr
/libexec
/ld.so
; then
18512 hardcode_direct_CXX
=yes
18513 hardcode_shlibpath_var_CXX
=no
18514 hardcode_direct_absolute_CXX
=yes
18515 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18516 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18518 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18519 export_dynamic_flag_spec_CXX
='${wl}-E'
18520 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18522 output_verbose_link_cmd
=func_echo_all
18528 osf3
* | osf4
* | osf5
*)
18529 case $cc_basename in
18531 # Kuck and Associates, Inc. (KAI) C++ Compiler
18533 # KCC will only create a shared library if the output file
18534 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18535 # to its proper name (with version) after linking.
18536 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'
18538 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
18539 hardcode_libdir_separator_CXX
=:
18541 # Archives containing C++ object files must be created using
18542 # the KAI C++ compiler.
18544 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
18545 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
18549 # Rational C++ 2.4.1
18550 # FIXME: insert proper C++ library support
18556 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18557 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'
18558 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18561 allow_undefined_flag_CXX
=' -expect_unresolved \*'
18562 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'
18563 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18564 echo "-hidden">> $lib.exp~
18565 $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~
18567 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
18571 hardcode_libdir_separator_CXX
=:
18573 # Commands to make compiler produce verbose output that lists
18574 # what "hidden" libraries, object files and flags are used when
18575 # linking a shared library.
18577 # There doesn't appear to be a way to prevent this compiler from
18578 # explicitly linking system object files so we need to strip them
18579 # from the output so that they don't get included in the library
18581 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"'
18584 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18585 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
18588 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'
18591 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'
18595 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18596 hardcode_libdir_separator_CXX
=:
18598 # Commands to make compiler produce verbose output that lists
18599 # what "hidden" libraries, object files and flags are used when
18600 # linking a shared library.
18601 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18604 # FIXME: insert proper C++ library support
18612 # FIXME: insert proper C++ library support
18617 case $cc_basename in
18620 # FIXME: insert proper C++ library support
18625 # FIXME: insert proper C++ library support
18629 # FIXME: insert proper C++ library support
18636 case $cc_basename in
18638 # Sun C++ 4.2, 5.x and Centerline C++
18639 archive_cmds_need_lc_CXX
=yes
18640 no_undefined_flag_CXX
=' -zdefs'
18641 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18642 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18643 $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'
18645 hardcode_libdir_flag_spec_CXX
='-R$libdir'
18646 hardcode_shlibpath_var_CXX
=no
18648 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18650 # The compiler driver will combine and reorder linker options,
18651 # but understands `-z linker_flag'.
18652 # Supported since Solaris 2.6 (maybe 2.5.1?)
18653 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
18656 link_all_deplibs_CXX
=yes
18658 output_verbose_link_cmd
='func_echo_all'
18660 # Archives containing C++ object files must be created using
18661 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18662 # necessary to make sure instantiated templates are included
18664 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
18667 # Green Hills C++ Compiler
18668 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18670 # The C++ compiler must be used to create the archive.
18671 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18674 # GNU C++ compiler with Solaris linker
18675 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
18676 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
18677 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
18678 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18679 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18680 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18682 # Commands to make compiler produce verbose output that lists
18683 # what "hidden" libraries, object files and flags are used when
18684 # linking a shared library.
18685 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18687 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18689 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18690 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18691 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18693 # Commands to make compiler produce verbose output that lists
18694 # what "hidden" libraries, object files and flags are used when
18695 # linking a shared library.
18696 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18699 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
18701 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
18703 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18711 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18712 no_undefined_flag_CXX
='${wl}-z,text'
18713 archive_cmds_need_lc_CXX
=no
18714 hardcode_shlibpath_var_CXX
=no
18715 runpath_var
='LD_RUN_PATH'
18717 case $cc_basename in
18719 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18720 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18723 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18724 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18729 sysv5
* | sco3.2v5
* | sco5v6
*)
18730 # Note: We can NOT use -z defs as we might desire, because we do not
18731 # link with -lc, and that would cause any symbols used from libc to
18732 # always be unresolved, which means just about no library would
18733 # ever link correctly. If we're not using GNU ld we use -z text
18734 # though, which does catch some bad symbols but isn't as heavy-handed
18736 no_undefined_flag_CXX
='${wl}-z,text'
18737 allow_undefined_flag_CXX
='${wl}-z,nodefs'
18738 archive_cmds_need_lc_CXX
=no
18739 hardcode_shlibpath_var_CXX
=no
18740 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
18741 hardcode_libdir_separator_CXX
=':'
18742 link_all_deplibs_CXX
=yes
18743 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
18744 runpath_var
='LD_RUN_PATH'
18746 case $cc_basename in
18748 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18749 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18750 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
18751 '"$old_archive_cmds_CXX"
18752 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
18753 '"$reload_cmds_CXX"
18756 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18757 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18763 case $cc_basename in
18765 # NonStop-UX NCC 3.20
18766 # FIXME: insert proper C++ library support
18770 # FIXME: insert proper C++ library support
18777 # FIXME: insert proper C++ library support
18782 # FIXME: insert proper C++ library support
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18788 $as_echo "$ld_shlibs_CXX" >&6; }
18789 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
18795 ## There is no encapsulation within the following macros, do not change
18796 ## the running order or otherwise move them around unless you know exactly
18797 ## what you are doing...
18798 # Dependencies to place before and after the object being linked:
18799 predep_objects_CXX
=
18800 postdep_objects_CXX
=
18803 compiler_lib_search_path_CXX
=
18805 cat > conftest.
$ac_ext <<_LT_EOF
18809 Foo (void) { a = 0; }
18815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18816 (eval $ac_compile) 2>&5
18818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18819 test $ac_status = 0; }; then
18820 # Parse the compiler output and extract the necessary
18821 # objects, libraries and library flags.
18823 # Sentinel used to keep track of whether or not we are before
18824 # the conftest object file.
18825 pre_test_object_deps_done
=no
18827 for p
in `eval "$output_verbose_link_cmd"`; do
18831 # Some compilers place space between "-{L,R}" and the path.
18832 # Remove the space.
18833 if test $p = "-L" ||
18834 test $p = "-R"; then
18841 if test "$pre_test_object_deps_done" = no
; then
18844 # Internal compiler library paths should come after those
18845 # provided the user. The postdeps already come after the
18846 # user supplied libs so there is no need to process them.
18847 if test -z "$compiler_lib_search_path_CXX"; then
18848 compiler_lib_search_path_CXX
="${prev}${p}"
18850 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
18853 # The "-l" case would never come before the object being
18854 # linked, so don't bother handling this case.
18857 if test -z "$postdeps_CXX"; then
18858 postdeps_CXX
="${prev}${p}"
18860 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
18866 # This assumes that the test object file only shows up
18867 # once in the compiler output.
18868 if test "$p" = "conftest.$objext"; then
18869 pre_test_object_deps_done
=yes
18873 if test "$pre_test_object_deps_done" = no
; then
18874 if test -z "$predep_objects_CXX"; then
18875 predep_objects_CXX
="$p"
18877 predep_objects_CXX
="$predep_objects_CXX $p"
18880 if test -z "$postdep_objects_CXX"; then
18881 postdep_objects_CXX
="$p"
18883 postdep_objects_CXX
="$postdep_objects_CXX $p"
18888 *) ;; # Ignore the rest.
18896 echo "libtool.m4: error: problem compiling CXX test program"
18899 $RM -f confest.
$objext
18901 # PORTME: override above test on systems where it is broken
18904 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18905 # hack all around it, let's just trust "g++" to DTRT.
18906 predep_objects_CXX
=
18907 postdep_objects_CXX
=
18912 case `$CC -V 2>&1 | sed 5q` in
18916 # The more standards-conforming stlport4 library is
18917 # incompatible with the Cstd library. Avoid specifying
18918 # it if it's in CXXFLAGS. Ignore libCrun as
18919 # -library=stlport4 depends on it.
18920 case " $CXX $CXXFLAGS " in
18921 *" -library=stlport4 "*)
18922 solaris_use_stlport4
=yes
18926 if test "$solaris_use_stlport4" != yes; then
18927 postdeps_CXX
='-library=Cstd -library=Crun'
18934 case $cc_basename in
18936 # The more standards-conforming stlport4 library is
18937 # incompatible with the Cstd library. Avoid specifying
18938 # it if it's in CXXFLAGS. Ignore libCrun as
18939 # -library=stlport4 depends on it.
18940 case " $CXX $CXXFLAGS " in
18941 *" -library=stlport4 "*)
18942 solaris_use_stlport4
=yes
18946 # Adding this requires a known-good setup of shared libraries for
18947 # Sun compiler versions before 5.6, else PIC objects from an old
18948 # archive will be linked into the output, leading to subtle bugs.
18949 if test "$solaris_use_stlport4" != yes; then
18950 postdeps_CXX
='-library=Cstd -library=Crun'
18958 case " $postdeps_CXX " in
18959 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
18961 compiler_lib_search_dirs_CXX
=
18962 if test -n "${compiler_lib_search_path_CXX}"; then
18963 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18996 lt_prog_compiler_wl_CXX
=
18997 lt_prog_compiler_pic_CXX
=
18998 lt_prog_compiler_static_CXX
=
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19001 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19003 # C++ specific cases for pic, static, wl, etc.
19004 if test "$GXX" = yes; then
19005 lt_prog_compiler_wl_CXX
='-Wl,'
19006 lt_prog_compiler_static_CXX
='-static'
19010 # All AIX code is PIC.
19011 if test "$host_cpu" = ia64
; then
19012 # AIX 5 now supports IA64 processor
19013 lt_prog_compiler_static_CXX
='-Bstatic'
19020 # see comment about AmigaOS4 .so support
19021 lt_prog_compiler_pic_CXX
='-fPIC'
19024 # FIXME: we need at least 68020 code to build shared libraries, but
19025 # adding the `-m68020' flag to GCC prevents building anything better,
19027 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19032 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19033 # PIC is the default for these OSes.
19035 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19036 # This hack is so that the source file can tell whether it is being
19037 # built for inclusion in a dll (and should export symbols for example).
19038 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19039 # (--disable-auto-import) libraries
19040 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19042 darwin
* | rhapsody
*)
19043 # PIC is the default on this platform
19044 # Common symbols not allowed in MH_DYLIB files
19045 lt_prog_compiler_pic_CXX
='-fno-common'
19048 # DJGPP does not support shared libraries at all
19049 lt_prog_compiler_pic_CXX
=
19052 # PIC is the default for Haiku.
19053 # The "-static" flag exists, but is broken.
19054 lt_prog_compiler_static_CXX
=
19057 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19058 # Instead, we relocate shared libraries at runtime.
19061 if test -d /usr
/nec
; then
19062 lt_prog_compiler_pic_CXX
=-Kconform_pic
19066 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19067 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19068 # sets the default TLS model and affects inlining.
19073 lt_prog_compiler_pic_CXX
='-fPIC'
19078 # QNX uses GNU C++, but need to define -shared option too, otherwise
19079 # it will coredump.
19080 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19083 lt_prog_compiler_pic_CXX
='-fPIC'
19089 # All AIX code is PIC.
19090 if test "$host_cpu" = ia64
; then
19091 # AIX 5 now supports IA64 processor
19092 lt_prog_compiler_static_CXX
='-Bstatic'
19094 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
19098 case $cc_basename in
19100 # Green Hills C++ Compiler
19101 # _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"
19106 case $cc_basename in
19108 lt_prog_compiler_pic_CXX
='-KPIC'
19111 # Green Hills C++ Compiler
19112 lt_prog_compiler_pic_CXX
='-pic'
19118 freebsd
* | dragonfly
*)
19119 # FreeBSD uses GNU C++
19121 hpux9
* | hpux10
* | hpux11
*)
19122 case $cc_basename in
19124 lt_prog_compiler_wl_CXX
='-Wl,'
19125 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19126 if test "$host_cpu" != ia64
; then
19127 lt_prog_compiler_pic_CXX
='+Z'
19131 lt_prog_compiler_wl_CXX
='-Wl,'
19132 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
19138 lt_prog_compiler_pic_CXX
='+Z'
19147 # This is c89, which is MS Visual C++ (no shared libs)
19148 # Anyone wants to do a port?
19150 irix5
* | irix6
* | nonstopux
*)
19151 case $cc_basename in
19153 lt_prog_compiler_wl_CXX
='-Wl,'
19154 lt_prog_compiler_static_CXX
='-non_shared'
19155 # CC pic flag -KPIC is the default.
19161 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19162 case $cc_basename in
19165 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19166 lt_prog_compiler_pic_CXX
='-fPIC'
19169 # old Intel C++ for x86_64 which still supported -KPIC.
19170 lt_prog_compiler_wl_CXX
='-Wl,'
19171 lt_prog_compiler_pic_CXX
='-KPIC'
19172 lt_prog_compiler_static_CXX
='-static'
19175 # Intel C++, used to be incompatible with GCC.
19176 # ICC 10 doesn't accept -KPIC any more.
19177 lt_prog_compiler_wl_CXX
='-Wl,'
19178 lt_prog_compiler_pic_CXX
='-fPIC'
19179 lt_prog_compiler_static_CXX
='-static'
19182 # Portland Group C++ compiler
19183 lt_prog_compiler_wl_CXX
='-Wl,'
19184 lt_prog_compiler_pic_CXX
='-fpic'
19185 lt_prog_compiler_static_CXX
='-Bstatic'
19189 # Make sure the PIC flag is empty. It appears that all Alpha
19190 # Linux and Compaq Tru64 Unix objects are PIC.
19191 lt_prog_compiler_pic_CXX
=
19192 lt_prog_compiler_static_CXX
='-non_shared'
19194 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
19195 # IBM XL 8.0, 9.0 on PPC and BlueGene
19196 lt_prog_compiler_wl_CXX
='-Wl,'
19197 lt_prog_compiler_pic_CXX
='-qpic'
19198 lt_prog_compiler_static_CXX
='-qstaticlink'
19201 case `$CC -V 2>&1 | sed 5q` in
19204 lt_prog_compiler_pic_CXX
='-KPIC'
19205 lt_prog_compiler_static_CXX
='-Bstatic'
19206 lt_prog_compiler_wl_CXX
='-Qoption ld '
19217 case $cc_basename in
19219 lt_prog_compiler_pic_CXX
='-W c,exportall'
19228 # QNX uses GNU C++, but need to define -shared option too, otherwise
19229 # it will coredump.
19230 lt_prog_compiler_pic_CXX
='-fPIC -shared'
19232 osf3
* | osf4
* | osf5
*)
19233 case $cc_basename in
19235 lt_prog_compiler_wl_CXX
='--backend -Wl,'
19238 # Rational C++ 2.4.1
19239 lt_prog_compiler_pic_CXX
='-pic'
19242 # Digital/Compaq C++
19243 lt_prog_compiler_wl_CXX
='-Wl,'
19244 # Make sure the PIC flag is empty. It appears that all Alpha
19245 # Linux and Compaq Tru64 Unix objects are PIC.
19246 lt_prog_compiler_pic_CXX
=
19247 lt_prog_compiler_static_CXX
='-non_shared'
19256 case $cc_basename in
19258 # Sun C++ 4.2, 5.x and Centerline C++
19259 lt_prog_compiler_pic_CXX
='-KPIC'
19260 lt_prog_compiler_static_CXX
='-Bstatic'
19261 lt_prog_compiler_wl_CXX
='-Qoption ld '
19264 # Green Hills C++ Compiler
19265 lt_prog_compiler_pic_CXX
='-PIC'
19272 case $cc_basename in
19275 lt_prog_compiler_pic_CXX
='-pic'
19276 lt_prog_compiler_static_CXX
='-Bstatic'
19280 lt_prog_compiler_pic_CXX
='-pic'
19286 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19287 case $cc_basename in
19289 lt_prog_compiler_wl_CXX
='-Wl,'
19290 lt_prog_compiler_pic_CXX
='-KPIC'
19291 lt_prog_compiler_static_CXX
='-Bstatic'
19296 case $cc_basename in
19298 # NonStop-UX NCC 3.20
19299 lt_prog_compiler_pic_CXX
='-KPIC'
19308 lt_prog_compiler_can_build_shared_CXX
=no
19314 # For platforms which do not support PIC, -DPIC is meaningless:
19316 lt_prog_compiler_pic_CXX
=
19319 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19323 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19328 # Check to make sure the PIC flag actually works.
19330 if test -n "$lt_prog_compiler_pic_CXX"; then
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19332 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19333 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19334 $as_echo_n "(cached) " >&6
19336 lt_cv_prog_compiler_pic_works_CXX
=no
19337 ac_outfile
=conftest.
$ac_objext
19338 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19339 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
19340 # Insert the option either (1) after the last *FLAGS variable, or
19341 # (2) before a word containing "conftest.", or (3) at the end.
19342 # Note that $ac_compile itself does not contain backslashes and begins
19343 # with a dollar sign (not a hyphen), so the echo should work correctly.
19344 # The option is referenced via a variable to avoid confusing sed.
19345 lt_compile
=`echo "$ac_compile" | $SED \
19346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19348 -e 's:$: $lt_compiler_flag:'`
19349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19350 (eval "$lt_compile" 2>conftest.err
)
19352 cat conftest.err
>&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 if (exit $ac_status) && test -s "$ac_outfile"; then
19355 # The compiler can only warn and ignore the option if not recognized
19356 # So say no if there are warnings other than the usual output.
19357 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
19358 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19359 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19360 lt_cv_prog_compiler_pic_works_CXX
=yes
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19367 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19369 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
19370 case $lt_prog_compiler_pic_CXX in
19372 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
19375 lt_prog_compiler_pic_CXX
=
19376 lt_prog_compiler_can_build_shared_CXX
=no
19384 # Check to make sure the static flag actually works.
19386 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19388 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19389 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19390 $as_echo_n "(cached) " >&6
19392 lt_cv_prog_compiler_static_works_CXX
=no
19393 save_LDFLAGS
="$LDFLAGS"
19394 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19395 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19396 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19397 # The linker can only warn and ignore the option if not recognized
19398 # So say no if there are warnings
19399 if test -s conftest.err
; then
19400 # Append any errors to the config.log.
19401 cat conftest.err
1>&5
19402 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
19403 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19404 if diff conftest.exp conftest.er2
>/dev
/null
; then
19405 lt_cv_prog_compiler_static_works_CXX
=yes
19408 lt_cv_prog_compiler_static_works_CXX
=yes
19412 LDFLAGS
="$save_LDFLAGS"
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19416 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19418 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
19421 lt_prog_compiler_static_CXX
=
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19428 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19429 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19430 $as_echo_n "(cached) " >&6
19432 lt_cv_prog_compiler_c_o_CXX
=no
19433 $RM -r conftest
2>/dev
/null
19437 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19439 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19440 # Insert the option either (1) after the last *FLAGS variable, or
19441 # (2) before a word containing "conftest.", or (3) at the end.
19442 # Note that $ac_compile itself does not contain backslashes and begins
19443 # with a dollar sign (not a hyphen), so the echo should work correctly.
19444 lt_compile
=`echo "$ac_compile" | $SED \
19445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19447 -e 's:$: $lt_compiler_flag:'`
19448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19449 (eval "$lt_compile" 2>out
/conftest.err
)
19451 cat out
/conftest.err
>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19455 # The compiler can only warn and ignore the option if not recognized
19456 # So say no if there are warnings
19457 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19458 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19459 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19460 lt_cv_prog_compiler_c_o_CXX
=yes
19465 # SGI C++ compiler will create directory out/ii_files/ for
19466 # template instantiation
19467 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19468 $RM out
/* && rmdir out
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19475 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19480 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19481 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
19484 lt_cv_prog_compiler_c_o_CXX
=no
19485 $RM -r conftest
2>/dev
/null
19489 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19491 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19492 # Insert the option either (1) after the last *FLAGS variable, or
19493 # (2) before a word containing "conftest.", or (3) at the end.
19494 # Note that $ac_compile itself does not contain backslashes and begins
19495 # with a dollar sign (not a hyphen), so the echo should work correctly.
19496 lt_compile
=`echo "$ac_compile" | $SED \
19497 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19498 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19499 -e 's:$: $lt_compiler_flag:'`
19500 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19501 (eval "$lt_compile" 2>out
/conftest.err
)
19503 cat out
/conftest.err
>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19507 # The compiler can only warn and ignore the option if not recognized
19508 # So say no if there are warnings
19509 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
19510 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19511 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19512 lt_cv_prog_compiler_c_o_CXX
=yes
19517 # SGI C++ compiler will create directory out/ii_files/ for
19518 # template instantiation
19519 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
19520 $RM out
/* && rmdir out
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19527 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19532 hard_links
="nottested"
19533 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
19534 # do not overwrite the value of need_locks provided by the user
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19536 $as_echo_n "checking if we can lock with hard links... " >&6; }
19539 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19541 ln conftest.a conftest.b
2>&5 || hard_links
=no
19542 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19544 $as_echo "$hard_links" >&6; }
19545 if test "$hard_links" = no
; then
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19547 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19557 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19559 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19562 # If we're using GNU nm, then we don't want the "-C" option.
19563 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19564 # Also, AIX nm treats weak defined symbols like other global defined
19565 # symbols, whereas GNU nm marks them as "W".
19566 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
19567 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'
19569 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19573 export_symbols_cmds_CXX
="$ltdll_cmds"
19575 cygwin
* | mingw
* | cegcc
*)
19576 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'
19579 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19582 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19585 $as_echo "$ld_shlibs_CXX" >&6; }
19586 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19588 with_gnu_ld_CXX
=$with_gnu_ld
19596 # Do we need to explicitly link libc?
19598 case "x$archive_cmds_need_lc_CXX" in
19600 # Assume -lc should be added
19601 archive_cmds_need_lc_CXX
=yes
19603 if test "$enable_shared" = yes && test "$GCC" = yes; then
19604 case $archive_cmds_CXX in
19606 # FIXME: we may have to deal with multi-command sequences.
19609 # Test whether the compiler implicitly links with -lc since on some
19610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19611 # to ld, don't add -lc before -lgcc.
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19614 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19615 $as_echo_n "(cached) " >&6
19618 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19621 (eval $ac_compile) 2>&5
19623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19624 test $ac_status = 0; } 2>conftest.err
; then
19627 libobjs
=conftest.
$ac_objext
19629 wl
=$lt_prog_compiler_wl_CXX
19630 pic_flag
=$lt_prog_compiler_pic_CXX
19636 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
19637 allow_undefined_flag_CXX
=
19638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19639 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
19641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19642 test $ac_status = 0; }
19644 lt_cv_archive_cmds_need_lc_CXX
=no
19646 lt_cv_archive_cmds_need_lc_CXX
=yes
19648 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
19650 cat conftest.err
1>&5
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19656 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19657 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19728 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19730 library_names_spec
=
19731 libname_spec
='lib$name'
19735 postuninstall_cmds
=
19739 shlibpath_overrides_runpath
=unknown
19741 dynamic_linker
="$host_os ld.so"
19742 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
19743 need_lib_prefix
=unknown
19744 hardcode_into_libs
=no
19746 # when you set need_version to no, make sure it does not cause -set_version
19747 # flags to be left without arguments
19748 need_version
=unknown
19753 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
19754 shlibpath_var
=LIBPATH
19756 # AIX 3 has no versioning support, so we append a major version to the name.
19757 soname_spec
='${libname}${release}${shared_ext}$major'
19764 hardcode_into_libs
=yes
19765 if test "$host_cpu" = ia64
; then
19766 # AIX 5 supports IA64
19767 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19768 shlibpath_var
=LD_LIBRARY_PATH
19770 # With GCC up to 2.95.x, collect2 would create an import file
19771 # for dependence libraries. The import file would start with
19772 # the line `#! .'. This would cause the generated library to
19773 # depend on `.', always an invalid library. This was fixed in
19774 # development snapshots of GCC prior to 3.0.
19776 aix4 | aix4.
[01] | aix4.
[01].
*)
19777 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19779 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
19782 can_build_shared
=no
19786 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19787 # soname into executable. Probably we can add versioning support to
19788 # collect2, so additional links can be useful in future.
19789 if test "$aix_use_runtimelinking" = yes; then
19790 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19791 # instead of lib<name>.a to let people know that these are not
19792 # typical AIX shared libraries.
19793 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19795 # We preserve .a as extension for shared libraries through AIX4.2
19796 # and later when we are not doing run time linking.
19797 library_names_spec
='${libname}${release}.a $libname.a'
19798 soname_spec
='${libname}${release}${shared_ext}$major'
19800 shlibpath_var
=LIBPATH
19807 # Since July 2007 AmigaOS4 officially supports .so libraries.
19808 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812 library_names_spec
='$libname.ixlibrary $libname.a'
19813 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19814 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'
19820 library_names_spec
='${libname}${shared_ext}'
19821 dynamic_linker
="$host_os ld.so"
19822 shlibpath_var
=LIBRARY_PATH
19828 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19829 soname_spec
='${libname}${release}${shared_ext}$major'
19830 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
19831 shlibpath_var
=LD_LIBRARY_PATH
19832 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19833 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
19834 # the default ld.so.conf also contains /usr/contrib/lib and
19835 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19836 # libtool to hard-code these into programs
19839 cygwin
* | mingw
* | pw32
* | cegcc
*)
19840 version_type
=windows
19845 case $GCC,$host_os in
19846 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
19847 library_names_spec
='$libname.dll.a'
19848 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19849 postinstall_cmds
='base_file=`basename \${file}`~
19850 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19851 dldir=$destdir/`dirname \$dlpath`~
19852 test -d \$dldir || mkdir -p \$dldir~
19853 $install_prog $dir/$dlname \$dldir/$dlname~
19854 chmod a+x \$dldir/$dlname~
19855 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19856 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19858 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19859 dlpath=$dir/\$dldll~
19861 shlibpath_overrides_runpath
=yes
19865 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19866 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19870 # MinGW DLLs use traditional 'lib' prefix
19871 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19874 # pw32 DLLs use 'pw' prefix rather than 'lib'
19875 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19881 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19884 dynamic_linker
='Win32 ld.exe'
19885 # FIXME: first we should search . and the directory the executable is in
19889 darwin
* | rhapsody
*)
19890 dynamic_linker
="$host_os dyld"
19891 version_type
=darwin
19894 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19895 soname_spec
='${libname}${release}${major}$shared_ext'
19896 shlibpath_overrides_runpath
=yes
19897 shlibpath_var
=DYLD_LIBRARY_PATH
19898 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
19900 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
19907 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19908 soname_spec
='${libname}${release}${shared_ext}$major'
19909 shlibpath_var
=LD_LIBRARY_PATH
19916 freebsd
* | dragonfly
*)
19917 # DragonFly does not have aout. When/if they implement a new
19918 # versioning mechanism, adjust this.
19919 if test -x /usr
/bin
/objformat
; then
19920 objformat
=`/usr/bin/objformat`
19923 freebsd
[123]*) objformat
=aout
;;
19924 *) objformat
=elf
;;
19927 version_type
=freebsd-
$objformat
19928 case $version_type in
19930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19935 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19939 shlibpath_var
=LD_LIBRARY_PATH
19942 shlibpath_overrides_runpath
=yes
19944 freebsd3.
[01]* | freebsdelf3.
[01]*)
19945 shlibpath_overrides_runpath
=yes
19946 hardcode_into_libs
=yes
19948 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
19949 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
19950 shlibpath_overrides_runpath
=no
19951 hardcode_into_libs
=yes
19953 *) # from 4.6 on, and DragonFly
19954 shlibpath_overrides_runpath
=yes
19955 hardcode_into_libs
=yes
19964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19965 soname_spec
='${libname}${release}${shared_ext}$major'
19966 shlibpath_var
=LD_LIBRARY_PATH
19967 hardcode_into_libs
=yes
19974 dynamic_linker
="$host_os runtime_loader"
19975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19976 soname_spec
='${libname}${release}${shared_ext}$major'
19977 shlibpath_var
=LIBRARY_PATH
19978 shlibpath_overrides_runpath
=yes
19979 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19980 hardcode_into_libs
=yes
19983 hpux9
* | hpux10
* | hpux11
*)
19984 # Give a soname corresponding to the major version so that dld.sl refuses to
19985 # link against other versions.
19992 hardcode_into_libs
=yes
19993 dynamic_linker
="$host_os dld.so"
19994 shlibpath_var
=LD_LIBRARY_PATH
19995 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
19996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19997 soname_spec
='${libname}${release}${shared_ext}$major'
19998 if test "X$HPUX_IA64_MODE" = X32
; then
19999 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20001 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20003 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20007 hardcode_into_libs
=yes
20008 dynamic_linker
="$host_os dld.sl"
20009 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20010 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20012 soname_spec
='${libname}${release}${shared_ext}$major'
20013 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20014 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20018 dynamic_linker
="$host_os dld.sl"
20019 shlibpath_var
=SHLIB_PATH
20020 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec
='${libname}${release}${shared_ext}$major'
20025 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20026 postinstall_cmds
='chmod 555 $lib'
20027 # or fails outright, so override atomically:
20028 install_override_mode
=555
20035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20036 soname_spec
='${libname}${release}${shared_ext}$major'
20037 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20038 shlibpath_var
=LD_LIBRARY_PATH
20039 shlibpath_overrides_runpath
=no
20040 hardcode_into_libs
=yes
20043 irix5
* | irix6
* | nonstopux
*)
20045 nonstopux
*) version_type
=nonstopux
;;
20047 if test "$lt_cv_prog_gnu_ld" = yes; then
20055 soname_spec
='${libname}${release}${shared_ext}$major'
20056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20058 irix5
* | nonstopux
*)
20059 libsuff
= shlibsuff
=
20062 case $LD in # libtool.m4 will add one of these switches to LD
20063 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20064 libsuff
= shlibsuff
= libmagic
=32-bit;;
20065 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20066 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20067 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20068 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20069 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20073 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20074 shlibpath_overrides_runpath
=no
20075 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20076 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20077 hardcode_into_libs
=yes
20080 # No shared lib support for Linux oldld, aout, or coff.
20081 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20085 # This must be Linux ELF.
20086 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20091 soname_spec
='${libname}${release}${shared_ext}$major'
20092 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20093 shlibpath_var
=LD_LIBRARY_PATH
20094 shlibpath_overrides_runpath
=no
20096 # Some binutils ld are patched to set DT_RUNPATH
20097 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20098 $as_echo_n "(cached) " >&6
20100 lt_cv_shlibpath_overrides_runpath
=no
20101 save_LDFLAGS
=$LDFLAGS
20102 save_libdir
=$libdir
20103 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20104 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20116 if ac_fn_cxx_try_link
"$LINENO"; then :
20117 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
20118 lt_cv_shlibpath_overrides_runpath
=yes
20121 rm -f core conftest.err conftest.
$ac_objext \
20122 conftest
$ac_exeext conftest.
$ac_ext
20123 LDFLAGS
=$save_LDFLAGS
20124 libdir
=$save_libdir
20128 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
20130 # This implies no fast_install, which is unacceptable.
20131 # Some rework will be needed to allow for fast_install
20132 # before this can be enabled.
20133 hardcode_into_libs
=yes
20135 # Append ld.so.conf contents to the search path
20136 if test -f /etc
/ld.so.conf
; then
20137 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' ' '`
20138 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20141 # We used to test for /lib/ld.so.1 and disable shared libraries on
20142 # powerpc, because MkLinux only supported shared libraries with the
20143 # GNU dynamic linker. Since this was broken with cross compilers,
20144 # most powerpc-linux boxes support dynamic linking these days and
20145 # people can always --disable-shared, the test was removed, and we
20146 # assume the GNU/Linux dynamic linker is in use.
20147 dynamic_linker
='GNU/Linux ld.so'
20154 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
20155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20156 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20157 dynamic_linker
='NetBSD (a.out) ld.so'
20159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20160 soname_spec
='${libname}${release}${shared_ext}$major'
20161 dynamic_linker
='NetBSD ld.elf_so'
20163 shlibpath_var
=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath
=yes
20165 hardcode_into_libs
=yes
20170 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20171 shlibpath_var
=LD_LIBRARY_PATH
20172 shlibpath_overrides_runpath
=yes
20179 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20180 soname_spec
='${libname}${release}${shared_ext}$major'
20181 shlibpath_var
=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath
=no
20183 hardcode_into_libs
=yes
20184 dynamic_linker
='ldqnx.so'
20189 sys_lib_dlsearch_path_spec
="/usr/lib"
20191 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20193 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20194 *) need_version
=no
;;
20196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20197 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20198 shlibpath_var
=LD_LIBRARY_PATH
20199 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20201 openbsd2.
[89] | openbsd2.
[89].
*)
20202 shlibpath_overrides_runpath
=no
20205 shlibpath_overrides_runpath
=yes
20209 shlibpath_overrides_runpath
=yes
20214 libname_spec
='$name'
20217 library_names_spec
='$libname${shared_ext} $libname.a'
20218 dynamic_linker
='OS/2 ld.exe'
20219 shlibpath_var
=LIBPATH
20222 osf3
* | osf4
* | osf5
*)
20226 soname_spec
='${libname}${release}${shared_ext}$major'
20227 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 shlibpath_var
=LD_LIBRARY_PATH
20229 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20230 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
20241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20242 soname_spec
='${libname}${release}${shared_ext}$major'
20243 shlibpath_var
=LD_LIBRARY_PATH
20244 shlibpath_overrides_runpath
=yes
20245 hardcode_into_libs
=yes
20246 # ldd complains unless libraries are executable
20247 postinstall_cmds
='chmod +x $lib'
20252 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20253 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20254 shlibpath_var
=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath
=yes
20256 if test "$with_gnu_ld" = yes; then
20264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20265 soname_spec
='${libname}${release}${shared_ext}$major'
20266 shlibpath_var
=LD_LIBRARY_PATH
20267 case $host_vendor in
20269 shlibpath_overrides_runpath
=no
20271 runpath_var
=LD_RUN_PATH
20279 shlibpath_overrides_runpath
=no
20280 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20286 if test -d /usr
/nec
;then
20288 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20289 soname_spec
='$libname${shared_ext}.$major'
20290 shlibpath_var
=LD_LIBRARY_PATH
20294 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20295 version_type
=freebsd-elf
20298 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20299 soname_spec
='${libname}${release}${shared_ext}$major'
20300 shlibpath_var
=LD_LIBRARY_PATH
20301 shlibpath_overrides_runpath
=yes
20302 hardcode_into_libs
=yes
20303 if test "$with_gnu_ld" = yes; then
20304 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20306 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20309 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20313 sys_lib_dlsearch_path_spec
='/usr/lib'
20317 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 shlibpath_var
=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath
=no
20324 hardcode_into_libs
=yes
20329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20330 soname_spec
='${libname}${release}${shared_ext}$major'
20331 shlibpath_var
=LD_LIBRARY_PATH
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20339 $as_echo "$dynamic_linker" >&6; }
20340 test "$dynamic_linker" = no
&& can_build_shared
=no
20342 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20343 if test "$GCC" = yes; then
20344 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20347 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20348 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
20350 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20351 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20392 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20393 hardcode_action_CXX
=
20394 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20395 test -n "$runpath_var_CXX" ||
20396 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20398 # We can hardcode non-existent directories.
20399 if test "$hardcode_direct_CXX" != no
&&
20400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20401 # have to relink, otherwise we might link with an installed library
20402 # when we should be linking with a yet-to-be-installed one
20403 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20404 test "$hardcode_minus_L_CXX" != no
; then
20405 # Linking always hardcodes the temporary library directory.
20406 hardcode_action_CXX
=relink
20408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20409 hardcode_action_CXX
=immediate
20412 # We cannot hardcode anything, or else we can only hardcode existing
20414 hardcode_action_CXX
=unsupported
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20417 $as_echo "$hardcode_action_CXX" >&6; }
20419 if test "$hardcode_action_CXX" = relink ||
20420 test "$inherit_rpath_CXX" = yes; then
20421 # Fast installation is not supported
20422 enable_fast_install
=no
20423 elif test "$shlibpath_overrides_runpath" = yes ||
20424 test "$enable_shared" = no
; then
20425 # Fast installation is not necessary
20426 enable_fast_install
=needless
20435 fi # test -n "$compiler"
20441 with_gnu_ld
=$lt_save_with_gnu_ld
20442 lt_cv_path_LDCXX
=$lt_cv_path_LD
20443 lt_cv_path_LD
=$lt_save_path_LD
20444 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
20445 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
20446 fi # test "$_lt_caught_CXX_error" != yes
20449 ac_cpp
='$CPP $CPPFLAGS'
20450 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20451 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20452 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20469 # Only expand once:
20475 # Identify the assembler which will work hand-in-glove with the newly
20476 # built GCC, so that we can examine its features. This is the assembler
20477 # which will be driven by the driver program.
20479 # If build != host, and we aren't building gas in-tree, we identify a
20480 # build->target assembler and hope that it will have the same features
20481 # as the host->target assembler we'll be using.
20482 gcc_cv_gas_major_version
=
20483 gcc_cv_gas_minor_version
=
20484 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20486 if test "${gcc_cv_as+set}" = set; then :
20490 if test -x "$DEFAULT_ASSEMBLER"; then
20491 gcc_cv_as
="$DEFAULT_ASSEMBLER"
20492 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
20493 && test -f ..
/gas
/Makefile \
20494 && test x
$build = x
$host; then
20495 gcc_cv_as
=..
/gas
/as-new
$build_exeext
20496 elif test -x as
$build_exeext; then
20497 # Build using assembler in the current directory.
20498 gcc_cv_as
=.
/as
$build_exeext
20499 elif test -x $AS_FOR_TARGET; then
20500 gcc_cv_as
="$AS_FOR_TARGET"
20502 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20503 set dummy
$AS_FOR_TARGET; ac_word
=$2
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20505 $as_echo_n "checking for $ac_word... " >&6; }
20506 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20507 $as_echo_n "(cached) " >&6
20511 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
20514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20515 for as_dir
in $PATH
20518 test -z "$as_dir" && as_dir
=.
20519 for ac_exec_ext
in '' $ac_executable_extensions; do
20520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20521 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
20522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20532 gcc_cv_as
=$ac_cv_path_gcc_cv_as
20533 if test -n "$gcc_cv_as"; then
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20535 $as_echo "$gcc_cv_as" >&6; }
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20538 $as_echo "no" >&6; }
20545 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
20547 case "$ORIGINAL_AS_FOR_TARGET" in
20548 .
/as | .
/as
$build_exeext) ;;
20549 *) ac_config_files
="$ac_config_files as:exec-tool.in"
20553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20554 $as_echo_n "checking what assembler to use... " >&6; }
20555 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
20556 # Single tree build which includes gas. We want to prefer it
20557 # over whatever linker top-level may have detected, since
20558 # we'll use what we're building after installation anyway.
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20560 $as_echo "newly built gas" >&6; }
20562 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20563 for f
in $gcc_cv_as_bfd_srcdir/configure \
20564 $gcc_cv_as_gas_srcdir/configure \
20565 $gcc_cv_as_gas_srcdir/configure.
in \
20566 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
20567 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20568 if test x
$gcc_cv_gas_version != x
; then
20572 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20573 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20574 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20575 case $gcc_cv_gas_patch_version in
20576 "") gcc_cv_gas_patch_version
="0" ;;
20578 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20579 + $gcc_cv_gas_minor_version \) \* 1000 \
20580 + $gcc_cv_gas_patch_version`
20582 in_tree_gas_is_elf
=no
20583 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
20584 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
20585 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
20587 in_tree_gas_is_elf
=yes
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20591 $as_echo "$gcc_cv_as" >&6; }
20595 # Identify the linker which will work hand-in-glove with the newly
20596 # built GCC, so that we can examine its features. This is the linker
20597 # which will be driven by the driver program.
20599 # If build != host, and we aren't building gas in-tree, we identify a
20600 # build->target linker and hope that it will have the same features
20601 # as the host->target linker we'll be using.
20602 gcc_cv_gld_major_version
=
20603 gcc_cv_gld_minor_version
=
20604 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20605 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20607 if test "${gcc_cv_ld+set}" = set; then :
20611 if test -x "$DEFAULT_LINKER"; then
20612 gcc_cv_ld
="$DEFAULT_LINKER"
20613 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
20614 && test -f ..
/ld
/Makefile \
20615 && test x
$build = x
$host; then
20616 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
20617 elif test -x collect-ld
$build_exeext; then
20618 # Build using linker in the current directory.
20619 gcc_cv_ld
=.
/collect-ld
$build_exeext
20620 elif test -x $LD_FOR_TARGET; then
20621 gcc_cv_ld
="$LD_FOR_TARGET"
20623 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20624 set dummy
$LD_FOR_TARGET; ac_word
=$2
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20626 $as_echo_n "checking for $ac_word... " >&6; }
20627 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20628 $as_echo_n "(cached) " >&6
20632 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
20635 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20636 for as_dir
in $PATH
20639 test -z "$as_dir" && as_dir
=.
20640 for ac_exec_ext
in '' $ac_executable_extensions; do
20641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20642 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
20643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20653 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
20654 if test -n "$gcc_cv_ld"; then
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20656 $as_echo "$gcc_cv_ld" >&6; }
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20659 $as_echo "no" >&6; }
20666 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
20667 PLUGIN_LD
=`basename $gcc_cv_ld`
20669 # Check whether --with-plugin-ld was given.
20670 if test "${with_plugin_ld+set}" = set; then :
20671 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
20672 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
20673 PLUGIN_LD
="$withval"
20679 cat >>confdefs.h
<<_ACEOF
20680 #define PLUGIN_LD "$PLUGIN_LD"
20684 # Check to see if we are using gold instead of ld
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20686 $as_echo_n "checking whether we are using gold... " >&6; }
20688 if test x
$gcc_cv_ld != x
; then
20689 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
20690 |
grep "GNU gold" > /dev
/null
; then
20694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20695 $as_echo "$ld_is_gold" >&6; }
20697 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
20699 case "$ORIGINAL_LD_FOR_TARGET" in
20700 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
20701 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20706 $as_echo_n "checking what linker to use... " >&6; }
20707 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext; then
20708 # Single tree build which includes ld. We want to prefer it
20709 # over whatever linker top-level may have detected, since
20710 # we'll use what we're building after installation anyway.
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20712 $as_echo "newly built ld" >&6; }
20714 in_tree_ld_is_elf
=no
20715 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
20716 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
20717 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
20718 in_tree_ld_is_elf
=yes
20720 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
20722 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20723 if test x
$gcc_cv_gld_version != x
; then
20727 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20728 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20731 $as_echo "$gcc_cv_ld" >&6; }
20735 # Figure out what nm we will be using.
20736 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20737 if test "${gcc_cv_nm+set}" = set; then :
20741 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20742 && test -f ..
/binutils
/Makefile \
20743 && test x
$build = x
$host; then
20744 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
20745 elif test -x nm
$build_exeext; then
20746 gcc_cv_nm
=.
/nm
$build_exeext
20747 elif test -x $NM_FOR_TARGET; then
20748 gcc_cv_nm
="$NM_FOR_TARGET"
20750 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20751 set dummy
$NM_FOR_TARGET; ac_word
=$2
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20753 $as_echo_n "checking for $ac_word... " >&6; }
20754 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20755 $as_echo_n "(cached) " >&6
20759 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
20762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20763 for as_dir
in $PATH
20766 test -z "$as_dir" && as_dir
=.
20767 for ac_exec_ext
in '' $ac_executable_extensions; do
20768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20769 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
20770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20780 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
20781 if test -n "$gcc_cv_nm"; then
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20783 $as_echo "$gcc_cv_nm" >&6; }
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20786 $as_echo "no" >&6; }
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20794 $as_echo_n "checking what nm to use... " >&6; }
20795 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
20796 # Single tree build which includes binutils.
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20798 $as_echo "newly built nm" >&6; }
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20802 $as_echo "$gcc_cv_nm" >&6; }
20806 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
20808 case "$ORIGINAL_NM_FOR_TARGET" in
20809 .
/nm | .
/nm
$build_exeext) ;;
20810 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
20815 # Figure out what objdump we will be using.
20816 if test "${gcc_cv_objdump+set}" = set; then :
20820 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20821 && test -f ..
/binutils
/Makefile \
20822 && test x
$build = x
$host; then
20823 # Single tree build which includes binutils.
20824 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
20825 elif test -x objdump
$build_exeext; then
20826 gcc_cv_objdump
=.
/objdump
$build_exeext
20827 elif test -x $OBJDUMP_FOR_TARGET; then
20828 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
20830 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20831 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20833 $as_echo_n "checking for $ac_word... " >&6; }
20834 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20835 $as_echo_n "(cached) " >&6
20837 case $gcc_cv_objdump in
20839 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
20842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20843 for as_dir
in $PATH
20846 test -z "$as_dir" && as_dir
=.
20847 for ac_exec_ext
in '' $ac_executable_extensions; do
20848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20849 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
20850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20860 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
20861 if test -n "$gcc_cv_objdump"; then
20862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20863 $as_echo "$gcc_cv_objdump" >&6; }
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20866 $as_echo "no" >&6; }
20873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20874 $as_echo_n "checking what objdump to use... " >&6; }
20875 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
20876 # Single tree build which includes binutils.
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20878 $as_echo "newly built objdump" >&6; }
20879 elif test x
$gcc_cv_objdump = x
; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20881 $as_echo "not found" >&6; }
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20884 $as_echo "$gcc_cv_objdump" >&6; }
20887 # Figure out what readelf we will be using.
20888 if test "${gcc_cv_readelf+set}" = set; then :
20892 if test -f $gcc_cv_binutils_srcdir/configure.
in \
20893 && test -f ..
/binutils
/Makefile \
20894 && test x
$build = x
$host; then
20895 # Single tree build which includes binutils.
20896 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
20897 elif test -x readelf
$build_exeext; then
20898 gcc_cv_readelf
=.
/readelf
$build_exeext
20900 # Extract the first word of "readelf", so it can be a program name with args.
20901 set dummy readelf
; ac_word
=$2
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20903 $as_echo_n "checking for $ac_word... " >&6; }
20904 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20905 $as_echo_n "(cached) " >&6
20907 case $gcc_cv_readelf in
20909 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
20912 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20913 for as_dir
in $PATH
20916 test -z "$as_dir" && as_dir
=.
20917 for ac_exec_ext
in '' $ac_executable_extensions; do
20918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20919 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
20920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20930 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
20931 if test -n "$gcc_cv_readelf"; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20933 $as_echo "$gcc_cv_readelf" >&6; }
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20936 $as_echo "no" >&6; }
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20944 $as_echo_n "checking what readelf to use... " >&6; }
20945 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
20946 # Single tree build which includes binutils.
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20948 $as_echo "newly built readelf" >&6; }
20949 elif test x
$gcc_cv_readelf = x
; then
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20951 $as_echo "not found" >&6; }
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20954 $as_echo "$gcc_cv_readelf" >&6; }
20957 # Figure out what assembler alignment features are present.
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20959 $as_echo_n "checking assembler flags... " >&6; }
20960 if test "${gcc_cv_as_flags+set}" = set; then :
20961 $as_echo_n "(cached) " >&6
20964 i
[34567]86-*-linux*)
20965 gcc_cv_as_flags
="--32"
20968 gcc_cv_as_flags
=" "
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20973 $as_echo "$gcc_cv_as_flags" >&6; }
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20976 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20977 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
20980 gcc_cv_as_balign_and_p2align
=no
20981 if test $in_tree_gas = yes; then
20982 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20983 then gcc_cv_as_balign_and_p2align
=yes
20985 elif test x
$gcc_cv_as != x
; then
20987 .p2align 2' > conftest.s
20988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20990 (eval $ac_try) 2>&5
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }; }
20995 gcc_cv_as_balign_and_p2align
=yes
20997 echo "configure: failed program was" >&5
21000 rm -f conftest.o conftest.s
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21004 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21005 if test $gcc_cv_as_balign_and_p2align = yes; then
21007 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21012 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21013 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21016 gcc_cv_as_max_skip_p2align
=no
21017 if test $in_tree_gas = yes; then
21018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21019 then gcc_cv_as_max_skip_p2align
=yes
21021 elif test x
$gcc_cv_as != x
; then
21022 echo '.p2align 4,,7' > conftest.s
21023 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21025 (eval $ac_try) 2>&5
21027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21028 test $ac_status = 0; }; }
21030 gcc_cv_as_max_skip_p2align
=yes
21032 echo "configure: failed program was" >&5
21035 rm -f conftest.o conftest.s
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21039 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21040 if test $gcc_cv_as_max_skip_p2align = yes; then
21042 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21047 $as_echo_n "checking assembler for .literal16... " >&6; }
21048 if test "${gcc_cv_as_literal16+set}" = set; then :
21049 $as_echo_n "(cached) " >&6
21051 gcc_cv_as_literal16
=no
21052 if test $in_tree_gas = yes; then
21053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21054 then gcc_cv_as_literal16
=yes
21056 elif test x
$gcc_cv_as != x
; then
21057 echo '.literal16' > conftest.s
21058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21060 (eval $ac_try) 2>&5
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; }; }
21065 gcc_cv_as_literal16
=yes
21067 echo "configure: failed program was" >&5
21070 rm -f conftest.o conftest.s
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21074 $as_echo "$gcc_cv_as_literal16" >&6; }
21075 if test $gcc_cv_as_literal16 = yes; then
21077 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21082 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21083 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21084 $as_echo_n "(cached) " >&6
21086 gcc_cv_as_subsection_m1
=no
21087 if test $in_tree_gas = yes; then
21088 if test $in_tree_gas_is_elf = yes \
21089 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21090 then gcc_cv_as_subsection_m1
=yes
21092 elif test x
$gcc_cv_as != x
; then
21093 echo 'conftest_label1: .word 0
21095 conftest_label2: .word 0
21096 .previous' > conftest.s
21097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21099 (eval $ac_try) 2>&5
21101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21102 test $ac_status = 0; }; }
21104 if test x
$gcc_cv_nm != x
; then
21105 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
21106 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
21107 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
21109 else gcc_cv_as_subsection_m1
=yes
21111 rm -f conftest.nm1 conftest.nm2
21114 echo "configure: failed program was" >&5
21117 rm -f conftest.o conftest.s
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21121 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21122 if test $gcc_cv_as_subsection_m1 = yes; then
21124 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21129 $as_echo_n "checking assembler for .weak... " >&6; }
21130 if test "${gcc_cv_as_weak+set}" = set; then :
21131 $as_echo_n "(cached) " >&6
21134 if test $in_tree_gas = yes; then
21135 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21136 then gcc_cv_as_weak
=yes
21138 elif test x
$gcc_cv_as != x
; then
21139 echo ' .weak foobar' > conftest.s
21140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21142 (eval $ac_try) 2>&5
21144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21145 test $ac_status = 0; }; }
21149 echo "configure: failed program was" >&5
21152 rm -f conftest.o conftest.s
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21156 $as_echo "$gcc_cv_as_weak" >&6; }
21157 if test $gcc_cv_as_weak = yes; then
21159 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21164 $as_echo_n "checking assembler for .weakref... " >&6; }
21165 if test "${gcc_cv_as_weakref+set}" = set; then :
21166 $as_echo_n "(cached) " >&6
21168 gcc_cv_as_weakref
=no
21169 if test $in_tree_gas = yes; then
21170 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21171 then gcc_cv_as_weakref
=yes
21173 elif test x
$gcc_cv_as != x
; then
21174 echo ' .weakref foobar, barfnot' > conftest.s
21175 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21177 (eval $ac_try) 2>&5
21179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180 test $ac_status = 0; }; }
21182 gcc_cv_as_weakref
=yes
21184 echo "configure: failed program was" >&5
21187 rm -f conftest.o conftest.s
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21191 $as_echo "$gcc_cv_as_weakref" >&6; }
21192 if test $gcc_cv_as_weakref = yes; then
21194 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21199 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21200 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21201 $as_echo_n "(cached) " >&6
21203 gcc_cv_as_nsubspa_comdat
=no
21204 if test $in_tree_gas = yes; then
21205 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21206 then gcc_cv_as_nsubspa_comdat
=yes
21208 elif test x
$gcc_cv_as != x
; then
21209 echo ' .SPACE $TEXT$
21210 .NSUBSPA $CODE$,COMDAT' > conftest.s
21211 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21213 (eval $ac_try) 2>&5
21215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21216 test $ac_status = 0; }; }
21218 gcc_cv_as_nsubspa_comdat
=yes
21220 echo "configure: failed program was" >&5
21223 rm -f conftest.o conftest.s
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21227 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21228 if test $gcc_cv_as_nsubspa_comdat = yes; then
21230 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21234 # .hidden needs to be supported in both the assembler and the linker,
21235 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21236 # This is irritatingly difficult to feature test for; we have to check the
21237 # date string after the version number. If we've got an in-tree
21238 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21240 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21242 $as_echo_n "checking assembler for .hidden... " >&6; }
21243 if test "${gcc_cv_as_hidden+set}" = set; then :
21244 $as_echo_n "(cached) " >&6
21246 gcc_cv_as_hidden
=no
21247 if test $in_tree_gas = yes; then
21248 if test $in_tree_gas_is_elf = yes \
21249 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21250 then gcc_cv_as_hidden
=yes
21252 elif test x
$gcc_cv_as != x
; then
21253 echo ' .hidden foobar
21254 foobar:' > conftest.s
21255 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21257 (eval $ac_try) 2>&5
21259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21260 test $ac_status = 0; }; }
21263 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21264 # STV_HIDDEN, so disable .hidden support if so.
21265 case "${target}" in
21267 if test x
$gcc_cv_as != x
&& test x
$gcc_cv_objdump != x
; then
21268 cat > conftest.s
<<EOF
21273 .set default,hidden
21275 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
21276 && $gcc_cv_objdump -t conftest.o
2>/dev
/null | \
21277 grep '\.hidden default' > /dev
/null
; then
21278 gcc_cv_as_hidden
=no
21280 gcc_cv_as_hidden
=yes
21283 # Assume bug is present if objdump is missing.
21284 gcc_cv_as_hidden
=no
21288 gcc_cv_as_hidden
=yes
21292 echo "configure: failed program was" >&5
21295 rm -f conftest.o conftest.s
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21299 $as_echo "$gcc_cv_as_hidden" >&6; }
21302 if test $in_tree_ld != yes ; then
21303 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21304 if test x
"$ld_is_gold" = xyes
; then
21305 gcc_cv_ld_hidden
=yes
21306 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21307 ld_vers
=`echo $ld_ver | sed -n \
21308 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21309 ld_date
=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
21310 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21311 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21312 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21314 case "${target}" in
21317 # Solaris 2 ld -V output looks like this for a regular version:
21319 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21321 # but test versions add stuff at the end:
21323 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21325 ld_ver
=`$gcc_cv_ld -V 2>&1`
21326 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
21327 ld_vers
=`echo $ld_ver | sed -n \
21328 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21329 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
21330 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21338 $as_echo_n "checking linker for .hidden support... " >&6; }
21339 if test "${gcc_cv_ld_hidden+set}" = set; then :
21340 $as_echo_n "(cached) " >&6
21342 if test $in_tree_ld = yes ; then
21343 gcc_cv_ld_hidden
=no
21344 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 \
21345 && test $in_tree_ld_is_elf = yes; then
21346 gcc_cv_ld_hidden
=yes
21349 gcc_cv_ld_hidden
=yes
21350 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21351 if test 0"$ld_date" -lt 20020404; then
21352 if test -n "$ld_date"; then
21353 # If there was date string, but was earlier than 2002-04-04, fail
21354 gcc_cv_ld_hidden
=no
21355 elif test -z "$ld_vers"; then
21356 # If there was no date string nor ld version number, something is wrong
21357 gcc_cv_ld_hidden
=no
21359 test -z "$ld_vers_patch" && ld_vers_patch
=0
21360 if test "$ld_vers_major" -lt 2; then
21361 gcc_cv_ld_hidden
=no
21362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21363 gcc_cv_ld_hidden
="no"
21364 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21365 gcc_cv_ld_hidden
=no
21370 case "${target}" in
21371 hppa64
*-*-hpux* | ia64
*-*-hpux*)
21372 gcc_cv_ld_hidden
=yes
21374 *-*-solaris2.9
* |
*-*-solaris2.1
[0-9]*)
21375 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21376 # .symbolic was only added in Solaris 9 12/02.
21377 gcc_cv_ld_hidden
=yes
21380 gcc_cv_ld_hidden
=no
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21387 $as_echo "$gcc_cv_ld_hidden" >&6; }
21388 libgcc_visibility
=no
21391 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21392 libgcc_visibility
=yes
21394 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21399 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21400 gcc_cv_ld_ro_rw_mix
=unknown
21401 if test $in_tree_ld = yes ; then
21402 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 \
21403 && test $in_tree_ld_is_elf = yes; then
21404 gcc_cv_ld_ro_rw_mix
=read-write
21406 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
21407 echo '.section myfoosect, "a"' > conftest1.s
21408 echo '.section myfoosect, "aw"' > conftest2.s
21409 echo '.byte 1' >> conftest2.s
21410 echo '.section myfoosect, "a"' > conftest3.s
21411 echo '.byte 0' >> conftest3.s
21412 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
21413 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
21414 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
21415 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21416 conftest2.o conftest3.o
> /dev
/null
2>&1; then
21417 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
21418 | sed -e '/myfoosect/!d' -e N`
21419 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
21420 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
21421 gcc_cv_ld_ro_rw_mix
=read-only
21423 gcc_cv_ld_ro_rw_mix
=read-write
21427 rm -f conftest.
* conftest
[123].
*
21429 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
21431 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21435 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21437 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21439 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21440 if test "${gcc_cv_as_leb128+set}" = set; then :
21441 $as_echo_n "(cached) " >&6
21443 gcc_cv_as_leb128
=no
21444 if test $in_tree_gas = yes; then
21445 if test $in_tree_gas_is_elf = yes \
21446 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21447 then gcc_cv_as_leb128
=yes
21449 elif test x
$gcc_cv_as != x
; then
21456 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21458 (eval $ac_try) 2>&5
21460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21461 test $ac_status = 0; }; }
21463 # GAS versions before 2.11 do not support uleb128,
21464 # despite appearing to.
21465 # ??? There exists an elf-specific test that will crash
21466 # the assembler. Perhaps it's better to figure out whether
21467 # arbitrary sections are supported and try the test.
21468 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21469 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
21470 as_vers
=`echo $as_ver | sed -n \
21471 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21472 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
21473 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21474 if test $as_major -eq 2 && test $as_minor -lt 11
21476 else gcc_cv_as_leb128
=yes
21480 echo "configure: failed program was" >&5
21483 rm -f conftest.o conftest.s
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21487 $as_echo "$gcc_cv_as_leb128" >&6; }
21488 if test $gcc_cv_as_leb128 = yes; then
21490 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21494 # Check if we have assembler support for unwind directives.
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21496 $as_echo_n "checking assembler for cfi directives... " >&6; }
21497 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21498 $as_echo_n "(cached) " >&6
21500 gcc_cv_as_cfi_directive
=no
21501 if test x
$gcc_cv_as != x
; then
21507 .cfi_escape 1, 2, 3, 4, 5
21508 .cfi_endproc' > conftest.s
21509 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21511 (eval $ac_try) 2>&5
21513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21514 test $ac_status = 0; }; }
21518 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21519 # read-only and read-write sections, we need to make sure that the
21520 # assembler used emits read-write .eh_frame sections.
21521 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
21522 if test "x$gcc_cv_objdump" != x
; then
21523 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21524 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
21525 gcc_cv_as_cfi_directive
=no
21528 i?
86-*-solaris2.1
[0-9]*)
21529 # On Solaris/x86, make sure that GCC and gas agree on using
21530 # read-only .eh_frame sections for 64-bit.
21531 if $gcc_cv_as --64 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
21532 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
21533 sed -e /.eh_frame
/!d
-e N | \
21534 grep READONLY
> /dev
/null
; then
21535 gcc_cv_as_cfi_directive
=yes
21537 gcc_cv_as_cfi_directive
=no
21541 gcc_cv_as_cfi_directive
=yes
21546 # no objdump, err on the side of caution
21547 gcc_cv_as_cfi_directive
=no
21550 gcc_cv_as_cfi_directive
=yes
21554 gcc_cv_as_cfi_directive
=yes
21558 echo "configure: failed program was" >&5
21561 rm -f conftest.o conftest.s
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21565 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21567 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_readelf != x
; then
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21569 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21570 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21571 $as_echo_n "(cached) " >&6
21573 gcc_cv_as_cfi_advance_working
=no
21574 if test x
$gcc_cv_as != x
; then
21577 .cfi_adjust_cfa_offset 64
21579 .cfi_adjust_cfa_offset 128
21580 .cfi_endproc' > conftest.s
21581 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21583 (eval $ac_try) 2>&5
21585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21586 test $ac_status = 0; }; }
21589 if $gcc_cv_readelf -wf conftest.o
2>/dev
/null \
21590 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
21591 gcc_cv_as_cfi_advance_working
=yes
21595 echo "configure: failed program was" >&5
21598 rm -f conftest.o conftest.s
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21602 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21605 # no readelf, err on the side of caution
21606 gcc_cv_as_cfi_advance_working
=no
21609 cat >>confdefs.h
<<_ACEOF
21610 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21611 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21616 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21617 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21618 $as_echo_n "(cached) " >&6
21620 gcc_cv_as_cfi_personality_directive
=no
21621 if test x
$gcc_cv_as != x
; then
21624 .cfi_personality 0, symbol
21625 .cfi_endproc' > conftest.s
21626 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21628 (eval $ac_try) 2>&5
21630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21631 test $ac_status = 0; }; }
21633 gcc_cv_as_cfi_personality_directive
=yes
21635 echo "configure: failed program was" >&5
21638 rm -f conftest.o conftest.s
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21642 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21645 cat >>confdefs.h
<<_ACEOF
21646 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21647 then echo 1; else echo 0; fi`
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21652 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21653 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21654 $as_echo_n "(cached) " >&6
21656 gcc_cv_as_cfi_sections_directive
=no
21657 if test x
$gcc_cv_as != x
; then
21659 .cfi_sections .debug_frame, .eh_frame
21661 .cfi_endproc' > conftest.s
21662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21664 (eval $ac_try) 2>&5
21666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21667 test $ac_status = 0; }; }
21669 gcc_cv_as_cfi_sections_directive
=yes
21671 echo "configure: failed program was" >&5
21674 rm -f conftest.o conftest.s
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21678 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21681 cat >>confdefs.h
<<_ACEOF
21682 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21683 then echo 1; else echo 0; fi`
21687 # GAS versions up to and including 2.11.0 may mis-optimize
21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21690 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21691 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21692 $as_echo_n "(cached) " >&6
21694 gcc_cv_as_eh_frame
=no
21695 if test $in_tree_gas = yes; then
21696 if test $in_tree_gas_is_elf = yes \
21697 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21698 then gcc_cv_as_eh_frame
=yes
21700 elif test x
$gcc_cv_as != x
; then
21707 .section .eh_frame,"aw",@progbits
21709 .4byte .LECIE1-.LSCIE1
21723 .4byte .LEFDE1-.LASFDE1
21725 .4byte .LASFDE1-__FRAME_BEGIN__
21732 .LEFDE1:' > conftest.s
21733 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21735 (eval $ac_try) 2>&5
21737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21738 test $ac_status = 0; }; }
21740 cat > conftest.lit
<<EOF
21741 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21742 0010 01000000 12000000 18000000 00000000 ................
21743 0020 08000000 04080000 0044 .........D
21745 cat > conftest.big
<<EOF
21746 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21747 0010 00000001 00000012 00000018 00000000 ................
21748 0020 00000008 04000000 0844 .........D
21750 # If the assembler didn't choke, and we can objdump,
21751 # and we got the correct data, then succeed.
21752 # The text in the here-document typically retains its unix-style line
21753 # endings, while the output of objdump will use host line endings.
21754 # Therefore, use diff -b for the comparisons.
21755 if test x
$gcc_cv_objdump != x \
21756 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
21757 |
tail -3 > conftest.got \
21758 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
21759 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
21761 gcc_cv_as_eh_frame
=yes
21762 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21764 (eval $ac_try) 2>&5
21766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21767 test $ac_status = 0; }; }; then
21768 gcc_cv_as_eh_frame
=buggy
21770 # Uh oh, what do we do now?
21771 gcc_cv_as_eh_frame
=no
21774 echo "configure: failed program was" >&5
21777 rm -f conftest.o conftest.s
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21781 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21784 if test $gcc_cv_as_eh_frame = buggy
; then
21786 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21791 $as_echo_n "checking assembler for section merging support... " >&6; }
21792 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21795 gcc_cv_as_shf_merge
=no
21796 if test $in_tree_gas = yes; then
21797 if test $in_tree_gas_is_elf = yes \
21798 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21799 then gcc_cv_as_shf_merge
=yes
21801 elif test x
$gcc_cv_as != x
; then
21802 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21803 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21805 (eval $ac_try) 2>&5
21807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21808 test $ac_status = 0; }; }
21810 gcc_cv_as_shf_merge
=yes
21812 echo "configure: failed program was" >&5
21815 rm -f conftest.o conftest.s
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21819 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21821 if test $gcc_cv_as_shf_merge = no
; then
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21823 $as_echo_n "checking assembler for section merging support... " >&6; }
21824 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21827 gcc_cv_as_shf_merge
=no
21828 if test $in_tree_gas = yes; then
21829 if test $in_tree_gas_is_elf = yes \
21830 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21831 then gcc_cv_as_shf_merge
=yes
21833 elif test x
$gcc_cv_as != x
; then
21834 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21837 (eval $ac_try) 2>&5
21839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21840 test $ac_status = 0; }; }
21842 gcc_cv_as_shf_merge
=yes
21844 echo "configure: failed program was" >&5
21847 rm -f conftest.o conftest.s
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21851 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21855 cat >>confdefs.h
<<_ACEOF
21856 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21861 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21862 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21863 $as_echo_n "(cached) " >&6
21865 gcc_cv_as_comdat_group
=no
21866 if test $in_tree_gas = yes; then
21867 if test $in_tree_gas_is_elf = yes \
21868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21869 then gcc_cv_as_comdat_group
=yes
21871 elif test x
$gcc_cv_as != x
; then
21872 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; }
21880 gcc_cv_as_comdat_group
=yes
21882 echo "configure: failed program was" >&5
21885 rm -f conftest.o conftest.s
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21889 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21891 if test $gcc_cv_as_comdat_group = yes; then
21892 gcc_cv_as_comdat_group_percent
=no
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21895 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21896 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21897 $as_echo_n "(cached) " >&6
21899 gcc_cv_as_comdat_group_percent
=no
21900 if test $in_tree_gas = yes; then
21901 if test $in_tree_gas_is_elf = yes \
21902 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21903 then gcc_cv_as_comdat_group_percent
=yes
21905 elif test x
$gcc_cv_as != x
; then
21906 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21909 (eval $ac_try) 2>&5
21911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21912 test $ac_status = 0; }; }
21914 gcc_cv_as_comdat_group_percent
=yes
21916 echo "configure: failed program was" >&5
21919 rm -f conftest.o conftest.s
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21923 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21926 if test x
"$ld_is_gold" = xyes
; then
21928 elif test $in_tree_ld = yes ; then
21930 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 \
21931 && test $in_tree_ld_is_elf = yes; then
21934 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
21936 if test 0"$ld_date" -lt 20050308; then
21937 if test -n "$ld_date"; then
21938 # If there was date string, but was earlier than 2005-03-08, fail
21940 elif test "$ld_vers_major" -lt 2; then
21942 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21947 case "${target}" in
21948 *-*-solaris2.1
[1-9]*)
21949 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21950 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21953 # FIXME: Maybe need to refine later when COMDAT group support with
21954 # Sun as is implemented.
21955 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 1688; then
21962 # Assume linkers other than GNU ld don't support COMDAT group.
21967 # Allow overriding the automatic COMDAT group tests above.
21968 # Check whether --enable-comdat was given.
21969 if test "${enable_comdat+set}" = set; then :
21970 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
21973 if test $comdat_group = no
; then
21974 gcc_cv_as_comdat_group
=no
21975 gcc_cv_as_comdat_group_percent
=no
21978 cat >>confdefs.h
<<_ACEOF
21979 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21984 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21985 if test "${gcc_cv_as_discriminator+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21988 gcc_cv_as_discriminator
=no
21989 if test $in_tree_gas = yes; then
21990 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21991 then gcc_cv_as_discriminator
=yes
21993 elif test x
$gcc_cv_as != x
; then
21996 .loc 1 1 0 discriminator 1' > conftest.s
21997 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21999 (eval $ac_try) 2>&5
22001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22002 test $ac_status = 0; }; }
22004 gcc_cv_as_discriminator
=yes
22006 echo "configure: failed program was" >&5
22009 rm -f conftest.o conftest.s
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22013 $as_echo "$gcc_cv_as_discriminator" >&6; }
22014 if test $gcc_cv_as_discriminator = yes; then
22016 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22020 # Thread-local storage - the check is heavily parameterized.
22028 .section ".tdata","awT",@progbits
22031 ldq $27,__tls_get_addr($29) !literal!1
22032 lda $16,foo($29) !tlsgd!1
22033 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22034 ldq $27,__tls_get_addr($29) !literal!2
22035 lda $16,foo($29) !tlsldm!2
22036 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22037 ldq $1,foo($29) !gotdtprel
22038 ldah $2,foo($29) !dtprelhi
22039 lda $3,foo($2) !dtprello
22040 lda $4,foo($29) !dtprel
22041 ldq $1,foo($29) !gottprel
22042 ldah $2,foo($29) !tprelhi
22043 lda $3,foo($2) !tprello
22044 lda $4,foo($29) !tprel'
22047 tls_as_opt
=--fatal-warnings
22049 cris-
*-*|crisv32-
*-*)
22051 .section ".tdata","awT",@progbits
22058 tls_as_opt
=--fatal-warnings
22062 .section ".tdata","awT",@progbits
22065 call #gettlsoff(x)'
22074 .section ".tdata","awT",@progbits
22078 addil LT%foo-$tls_gdidx$,gp
22079 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22082 addil LT%foo-$tls_ldidx$,gp
22084 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22085 addil LR%foo-$tls_dtpoff$,%ret0
22086 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22088 addil LT%foo-$tls_ieoff$,gp
22089 ldw RT%foo-$tls_ieoff$(%r1),%t2
22092 addil LR%foo-$tls_leoff$,%t1
22093 ldo RR%foo-$tls_leoff$(%r1),%t2'
22096 tls_as_opt
=--fatal-warnings
22100 .section ".tdata","awT",%progbits
22103 .word foo(gottpoff)
22113 i
[34567]86-*-solaris2.
*)
22115 tga_func
=___tls_get_addr
22121 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22123 .section .tdata,"awt",@progbits'
22127 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22131 .section ".tdata","awT",@progbits'
22134 tls_as_opt
="--fatal-warnings"
22136 conftest_s
="$conftest_s
22140 leal foo@tlsgd(,%ebx,1), %eax
22141 leal foo@tlsldm(%ebx), %eax
22142 leal foo@dtpoff(%eax), %edx
22143 movl foo@gottpoff(%ebx), %eax
22144 subl foo@gottpoff(%ebx), %eax
22145 addl foo@gotntpoff(%ebx), %eax
22146 movl foo@indntpoff, %eax
22147 movl \$foo@tpoff, %eax
22148 subl \$foo@tpoff, %eax
22149 leal foo@ntpoff(%ecx), %eax"
22153 .section ".tdata","awT",@progbits
22157 leaq foo@TLSGD(%rip), %rdi
22158 leaq foo@TLSLD(%rip), %rdi
22159 leaq foo@DTPOFF(%rax), %rdx
22160 movq foo@GOTTPOFF(%rip), %rax
22161 movq $foo@TPOFF, %rax'
22164 tls_as_opt
=--fatal-warnings
22168 .section ".tdata","awT",@progbits
22171 addl r16 = @ltoff(@dtpmod(foo#)), gp
22172 addl r17 = @ltoff(@dtprel(foo#)), gp
22173 addl r18 = @ltoff(@tprel(foo#)), gp
22174 addl r19 = @dtprel(foo#), gp
22175 adds r21 = @dtprel(foo#), r13
22176 movl r23 = @dtprel(foo#)
22177 addl r20 = @tprel(foo#), gp
22178 adds r22 = @tprel(foo#), r13
22179 movl r24 = @tprel(foo#)'
22182 tls_as_opt
=--fatal-warnings
22186 .section .tdata,"awT",@progbits
22190 addiu $4, $28, %tlsgd(x)
22191 addiu $4, $28, %tlsldm(x)
22192 lui $4, %dtprel_hi(x)
22193 addiu $4, $4, %dtprel_lo(x)
22194 lw $4, %gottprel(x)($28)
22195 lui $4, %tprel_hi(x)
22196 addiu $4, $4, %tprel_lo(x)'
22199 tls_as_opt
='-32 --fatal-warnings'
22203 .section .tdata,"awT",@progbits
22208 move.l x@TLSGD(%a5),%a0
22209 move.l x@TLSLDM(%a5),%a0
22210 move.l x@TLSLDO(%a5),%a0
22211 move.l x@TLSIE(%a5),%a0
22212 move.l x@TLSLE(%a5),%a0'
22215 tls_as_opt
='--fatal-warnings'
22219 .section ".tdata","awT",@progbits
22227 addi 3,31,ld0@got@tlsgd
22229 addi 3,31,x1@got@tlsld
22232 addis 9,3,x2@dtprel@ha
22233 addi 9,9,x2@dtprel@l
22234 lwz 9,x3@got@tprel(31)
22237 addis 9,2,x2@tprel@ha
22238 addi 9,9,x2@tprel@l'
22241 tls_as_opt
="-a32 --fatal-warnings"
22245 .section ".tdata","awT",@progbits
22253 addi 3,2,ld0@got@tlsgd
22259 addi 3,2,x1@got@tlsld
22265 addis 9,3,x2@dtprel@ha
22266 addi 9,9,x2@dtprel@l
22269 ld 9,x3@got@dtprel(2)
22275 tls_as_opt
="-a64 --fatal-warnings"
22279 .section ".tdata","awT",@progbits
22286 .long foo@GOTNTPOFF
22287 .long foo@INDNTPOFF
22288 l %r1,foo@GOTNTPOFF(%r12)
22289 l %r1,0(%r1):tls_load:foo
22290 bas %r14,0(%r1,%r13):tls_gdcall:foo
22291 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22294 tls_as_opt
="-m31 --fatal-warnings"
22298 .section ".tdata","awT",@progbits
22305 .quad foo@GOTNTPOFF
22306 lg %r1,foo@GOTNTPOFF(%r12)
22307 larl %r1,foo@INDNTPOFF
22308 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22309 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22312 tls_as_opt
="-m64 -Aesame --fatal-warnings"
22314 sh-
*-* | sh
[34]-*-*)
22316 .section ".tdata","awT",@progbits
22326 tls_as_opt
=--fatal-warnings
22330 sparc
*-sun-solaris2.
*)
22332 tga_func
=__tls_get_addr
22338 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
22340 .section ".tdata",#alloc,#write,#tls'
22345 .section ".tdata","awT",@progbits'
22348 tls_as_opt
="-32 --fatal-warnings"
22350 conftest_s
="$conftest_s
22353 sethi %tgd_hi22(foo), %o0
22354 add %o0, %tgd_lo10(foo), %o1
22355 add %l7, %o1, %o0, %tgd_add(foo)
22356 call __tls_get_addr, %tgd_call(foo)
22357 sethi %tldm_hi22(foo), %l1
22358 add %l1, %tldm_lo10(foo), %l2
22359 add %l7, %l2, %o0, %tldm_add(foo)
22360 call __tls_get_addr, %tldm_call(foo)
22361 sethi %tldo_hix22(foo), %l3
22362 xor %l3, %tldo_lox10(foo), %l4
22363 add %o0, %l4, %l5, %tldo_add(foo)
22364 sethi %tie_hi22(foo), %o3
22365 add %o3, %tie_lo10(foo), %o3
22366 ld [%l7 + %o3], %o2, %tie_ld(foo)
22367 add %g7, %o2, %o4, %tie_add(foo)
22368 sethi %tle_hix22(foo), %l1
22369 xor %l1, %tle_lox10(foo), %o5
22370 ld [%g7 + %o5], %o1"
22374 .section ".tdata","awT",@progbits
22377 movi a8, foo@TLSFUNC
22378 movi a10, foo@TLSARG
22379 callx8.tls a8, foo@TLSCALL'
22385 if test "x$enable_tls" = xno
; then
22386 : # TLS explicitly disabled.
22387 elif test "x$enable_tls" = xyes
; then
22388 set_have_as_tls
=yes # TLS explicitly enabled.
22389 elif test -z "$tls_first_major"; then
22390 : # If we don't have a check, assume no support.
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22393 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22394 if test "${gcc_cv_as_tls+set}" = set; then :
22395 $as_echo_n "(cached) " >&6
22398 if test $in_tree_gas = yes; then
22399 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22400 then gcc_cv_as_tls
=yes
22402 elif test x
$gcc_cv_as != x
; then
22403 echo "$conftest_s" > conftest.s
22404 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22406 (eval $ac_try) 2>&5
22408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22409 test $ac_status = 0; }; }
22413 echo "configure: failed program was" >&5
22416 rm -f conftest.o conftest.s
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22420 $as_echo "$gcc_cv_as_tls" >&6; }
22421 if test $gcc_cv_as_tls = yes; then
22422 set_have_as_tls
=yes
22426 # TLS was introduced in the Solaris 9 FCS release and backported to
22427 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
22428 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
22429 # ld and GCC don't support any longer.
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
22432 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
22434 # Check ld and ld.so.1 TLS support.
22435 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22436 # Assume all interesting versions of GNU ld have TLS support.
22437 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
22441 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
22443 min_tls_ld_vers_minor
=280
22445 # Solaris 8/SPARC ld has TLS support since version 1.272.
22446 sparc
*-*-solaris2.8
)
22447 min_tls_ld_vers_minor
=272
22449 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
22451 min_tls_ld_vers_minor
=374
22453 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
22454 sparc
*-*-solaris2.9 |
*-*-solaris2.1
[0-9]*)
22455 min_tls_ld_vers_minor
=343
22458 if test "$ls_vers_major" -gt 1 || \
22459 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
22466 $as_echo "$ld_tls_support" >&6; }
22469 save_LDFLAGS
="$LDFLAGS"
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
22474 $as_echo_n "checking alternate thread library... " >&6; }
22476 # TLS support was backported to Solaris 8 patches, but only lives in
22477 # the alternate thread library which became the default in Solaris 9.
22478 # We want to always use that, irrespective of TLS support.
22480 # Take multilib subdir into account. There's no spec to handle
22481 # this. The 64 symlink exists since Solaris 8.
22482 lwp_dir
=/usr
/lib
/lwp
22483 lwp_spec
="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
22484 LDFLAGS
="-L$lwp_dir -R$lwp_dir"
22491 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
22493 cat >>confdefs.h
<<_ACEOF
22494 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
22498 $as_echo "$lwp_dir" >&6; }
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
22501 $as_echo_n "checking library containing $tga_func... " >&6; }
22502 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
22503 # (32-bit x86) only lived in libthread, so check for that. Keep
22504 # set_have_as_tls if found, disable if not.
22505 as_ac_Search
=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
22507 $as_echo_n "checking for library containing $tga_func... " >&6; }
22508 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22509 $as_echo_n "(cached) " >&6
22511 ac_func_search_save_LIBS
=$LIBS
22512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h. */
22515 /* Override any GCC internal prototype to avoid an error.
22516 Use char because int might match the return type of a GCC
22517 builtin and then its argument prototype would still apply. */
22525 return $tga_func ();
22530 for ac_lib
in '' thread
; do
22531 if test -z "$ac_lib"; then
22532 ac_res
="none required"
22535 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
22537 if ac_fn_c_try_link
"$LINENO"; then :
22538 eval "$as_ac_Search=\$ac_res"
22540 rm -f core conftest.err conftest.
$ac_objext \
22542 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22546 if { as_var
=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
22549 eval "$as_ac_Search=no"
22551 rm conftest.
$ac_ext
22552 LIBS
=$ac_func_search_save_LIBS
22554 eval ac_res
=\$
$as_ac_Search
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22556 $as_echo "$ac_res" >&6; }
22557 eval ac_res
=\$
$as_ac_Search
22558 if test "$ac_res" != no
; then :
22559 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
22565 # Clear LIBS if we cannot support TLS.
22566 if test $set_have_as_tls = no
; then
22569 # Always define LIB_TLS_SPEC, even without TLS support.
22571 cat >>confdefs.h
<<_ACEOF
22572 #define LIB_TLS_SPEC "$LIBS"
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
22576 $as_echo "$LIBS" >&6; }
22579 LDFLAGS
="$save_LDFLAGS"
22582 if test $set_have_as_tls = yes ; then
22584 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22588 # Target-specific assembler checks.
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22591 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22592 gcc_cv_ld_static_dynamic
=no
22593 if test $in_tree_ld = yes ; then
22594 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
22595 gcc_cv_ld_static_dynamic
=yes
22597 elif test x
$gcc_cv_ld != x
; then
22598 # Check if linker supports -Bstatic/-Bdynamic option
22599 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
22600 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
22601 gcc_cv_ld_static_dynamic
=yes
22604 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
22606 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22610 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22612 if test x
"$demangler_in_ld" = xyes
; then
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22614 $as_echo_n "checking linker --demangle support... " >&6; }
22615 gcc_cv_ld_demangle
=no
22616 if test $in_tree_ld = yes; then
22617 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 \
22618 gcc_cv_ld_demangle
=yes
22620 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
22621 # Check if the GNU linker supports --demangle option
22622 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
22623 gcc_cv_ld_demangle
=yes
22626 if test x
"$gcc_cv_ld_demangle" = xyes
; then
22628 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22632 $as_echo "$gcc_cv_ld_demangle" >&6; }
22636 # All TARGET_ABI_OSF targets.
22637 alpha
*-*-osf* | alpha
*-*-linux* | alpha
*-*-*bsd
*)
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22639 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22640 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22643 gcc_cv_as_alpha_explicit_relocs
=no
22644 if test $in_tree_gas = yes; then
22645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22646 then gcc_cv_as_alpha_explicit_relocs
=yes
22648 elif test x
$gcc_cv_as != x
; then
22649 echo ' .set nomacro
22651 extbl $3, $2, $3 !lituse_bytoff!1
22652 ldq $2, a($29) !literal!1
22653 ldq $4, b($29) !literal!2
22654 ldq_u $3, 0($2) !lituse_base!1
22655 ldq $27, f($29) !literal!5
22656 jsr $26, ($27), f !lituse_jsr!5
22657 ldah $29, 0($26) !gpdisp!3
22658 lda $0, c($29) !gprel
22659 ldah $1, d($29) !gprelhigh
22660 lda $1, d($1) !gprellow
22661 lda $29, 0($29) !gpdisp!3' > conftest.s
22662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22664 (eval $ac_try) 2>&5
22666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22667 test $ac_status = 0; }; }
22669 gcc_cv_as_alpha_explicit_relocs
=yes
22671 echo "configure: failed program was" >&5
22674 rm -f conftest.o conftest.s
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22678 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22679 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22681 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22685 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22686 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22687 $as_echo_n "(cached) " >&6
22689 gcc_cv_as_alpha_jsrdirect_relocs
=no
22690 if test $in_tree_gas = yes; then
22691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22692 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
22694 elif test x
$gcc_cv_as != x
; then
22695 echo ' .set nomacro
22697 ldq $27, a($29) !literal!1
22698 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22699 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22701 (eval $ac_try) 2>&5
22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22704 test $ac_status = 0; }; }
22706 gcc_cv_as_alpha_jsrdirect_relocs
=yes
22708 echo "configure: failed program was" >&5
22711 rm -f conftest.o conftest.s
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22715 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22716 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22718 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22725 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22726 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22729 gcc_cv_as_cris_no_mul_bug
=no
22730 if test $in_tree_gas = yes; then
22731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22732 then gcc_cv_as_cris_no_mul_bug
=yes
22734 elif test x
$gcc_cv_as != x
; then
22735 echo '.text' > conftest.s
22736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22738 (eval $ac_try) 2>&5
22740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22741 test $ac_status = 0; }; }
22743 gcc_cv_as_cris_no_mul_bug
=yes
22745 echo "configure: failed program was" >&5
22748 rm -f conftest.o conftest.s
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22752 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22753 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22755 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22762 $as_echo_n "checking assembler for .register... " >&6; }
22763 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22764 $as_echo_n "(cached) " >&6
22766 gcc_cv_as_sparc_register_op
=no
22767 if test x
$gcc_cv_as != x
; then
22768 echo '.register %g2, #scratch' > conftest.s
22769 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22771 (eval $ac_try) 2>&5
22773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22774 test $ac_status = 0; }; }
22776 gcc_cv_as_sparc_register_op
=yes
22778 echo "configure: failed program was" >&5
22781 rm -f conftest.o conftest.s
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22785 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22786 if test $gcc_cv_as_sparc_register_op = yes; then
22788 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22793 $as_echo_n "checking assembler for -relax option... " >&6; }
22794 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22795 $as_echo_n "(cached) " >&6
22797 gcc_cv_as_sparc_relax
=no
22798 if test x
$gcc_cv_as != x
; then
22799 echo '.text' > conftest.s
22800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22802 (eval $ac_try) 2>&5
22804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22805 test $ac_status = 0; }; }
22807 gcc_cv_as_sparc_relax
=yes
22809 echo "configure: failed program was" >&5
22812 rm -f conftest.o conftest.s
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22816 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22817 if test $gcc_cv_as_sparc_relax = yes; then
22819 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22824 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22825 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22828 gcc_cv_as_sparc_gotdata_op
=no
22829 if test x
$gcc_cv_as != x
; then
22834 sethi %gdop_hix22(foo), %g1
22835 xor %g1, %gdop_lox10(foo), %g1
22836 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22839 (eval $ac_try) 2>&5
22841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22842 test $ac_status = 0; }; }
22844 if test x
$gcc_cv_ld != x \
22845 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22846 if $gcc_cv_ld -v |
grep GNU
>/dev
/null
2>&1; then
22847 if test x
$gcc_cv_objdump != x
; then
22848 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
22849 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
22850 gcc_cv_as_sparc_gotdata_op
=no
22852 gcc_cv_as_sparc_gotdata_op
=yes
22856 gcc_cv_as_sparc_gotdata_op
=yes
22861 echo "configure: failed program was" >&5
22864 rm -f conftest.o conftest.s
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22868 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22869 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22871 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22876 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22877 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22878 $as_echo_n "(cached) " >&6
22880 gcc_cv_as_sparc_ua_pcrel
=no
22881 if test x
$gcc_cv_as != x
; then
22888 .uaword %r_disp32(foo)' > conftest.s
22889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22891 (eval $ac_try) 2>&5
22893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22894 test $ac_status = 0; }; }
22896 if test x
$gcc_cv_ld != x \
22897 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
22898 gcc_cv_as_sparc_ua_pcrel
=yes
22902 echo "configure: failed program was" >&5
22905 rm -f conftest.o conftest.s
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22909 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22910 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22912 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22916 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22917 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22918 $as_echo_n "(cached) " >&6
22920 gcc_cv_as_sparc_ua_pcrel_hidden
=no
22921 if test x
$gcc_cv_as != x
; then
22925 .uaword %r_disp32(foo)
22926 .byte 0x32, 0x33, 0x34
22930 .skip 4' > conftest.s
22931 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22933 (eval $ac_try) 2>&5
22935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22936 test $ac_status = 0; }; }
22938 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
22939 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
22940 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
22941 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
22942 if $gcc_cv_objdump -R conftest
2> /dev
/null \
22943 |
grep 'DISP32' > /dev
/null
2>&1; then
22946 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
22951 echo "configure: failed program was" >&5
22954 rm -f conftest.o conftest.s
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22958 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22959 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22961 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22965 fi # unaligned pcrel relocs
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22968 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22969 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22970 $as_echo_n "(cached) " >&6
22972 gcc_cv_as_sparc_offsetable_lo10
=no
22973 if test x
$gcc_cv_as != x
; then
22975 or %g1, %lo(ab) + 12, %g1
22976 or %g1, %lo(ab + 12), %g1' > conftest.s
22977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22979 (eval $ac_try) 2>&5
22981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22982 test $ac_status = 0; }; }
22984 if test x
$gcc_cv_objdump != x \
22985 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
22986 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
22987 gcc_cv_as_sparc_offsetable_lo10
=yes
22990 echo "configure: failed program was" >&5
22993 rm -f conftest.o conftest.s
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22997 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22998 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23000 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23005 i
[34567]86-*-* | x86_64-
*-*)
23008 # Full C++ conformance when using a shared libstdc++-v3 requires some
23009 # support from the Cygwin DLL, which in more recent versions exports
23010 # wrappers to aid in interposing and redirecting operators new, delete,
23011 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23012 # are configuring for a version of Cygwin that exports the wrappers.
23013 if test x
$host = x
$target; then
23014 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23015 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
23016 gcc_ac_cygwin_dll_wrappers
=yes
23018 gcc_ac_cygwin_dll_wrappers
=no
23022 # Can't check presence of libc functions during cross-compile, so
23023 # we just have to assume we're building for an up-to-date target.
23024 gcc_ac_cygwin_dll_wrappers
=yes
23027 cat >>confdefs.h
<<_ACEOF
23028 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23033 cygwin
* | pe | mingw32
*)
23034 # Recent binutils allows the three-operand form of ".comm" on PE. This
23035 # definition is used unconditionally to initialise the default state of
23036 # the target option variable that governs usage of the feature.
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23038 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23039 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23040 $as_echo_n "(cached) " >&6
23042 gcc_cv_as_comm_has_align
=no
23043 if test $in_tree_gas = yes; then
23044 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23045 then gcc_cv_as_comm_has_align
=yes
23047 elif test x
$gcc_cv_as != x
; then
23048 echo '.comm foo,1,32' > conftest.s
23049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23051 (eval $ac_try) 2>&5
23053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23054 test $ac_status = 0; }; }
23056 gcc_cv_as_comm_has_align
=yes
23058 echo "configure: failed program was" >&5
23061 rm -f conftest.o conftest.s
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23065 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23068 cat >>confdefs.h
<<_ACEOF
23069 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23072 # Used for DWARF 2 in PE
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23074 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23075 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23076 $as_echo_n "(cached) " >&6
23078 gcc_cv_as_ix86_pe_secrel32
=no
23079 if test $in_tree_gas = yes; then
23080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23081 then gcc_cv_as_ix86_pe_secrel32
=yes
23083 elif test x
$gcc_cv_as != x
; then
23087 .secrel32 foo' > conftest.s
23088 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23090 (eval $ac_try) 2>&5
23092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23093 test $ac_status = 0; }; }
23095 if test x
$gcc_cv_ld != x \
23096 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
23097 gcc_cv_as_ix86_pe_secrel32
=yes
23101 echo "configure: failed program was" >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23108 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23109 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23111 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23114 # Test if the assembler supports the extended form of the .section
23115 # directive that specifies section alignment. LTO support uses this,
23116 # but normally only after installation, so we warn but don't fail the
23117 # configure if LTO is enabled but the assembler does not support it.
23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23119 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23120 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23121 $as_echo_n "(cached) " >&6
23123 gcc_cv_as_section_has_align
=no
23124 if test $in_tree_gas = yes; then
23125 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23126 then gcc_cv_as_section_has_align
=yes
23128 elif test x
$gcc_cv_as != x
; then
23129 echo '.section lto_test,"dr0"' > conftest.s
23130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23132 (eval $ac_try) 2>&5
23134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23135 test $ac_status = 0; }; }
23137 gcc_cv_as_section_has_align
=yes
23139 echo "configure: failed program was" >&5
23142 rm -f conftest.o conftest.s
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23146 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23148 if test x
$gcc_cv_as_section_has_align != xyes
; then
23149 case ",$enable_languages," in
23151 { $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
23152 $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;}
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23160 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23161 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23164 gcc_cv_as_ix86_filds
=no
23165 if test x
$gcc_cv_as != x
; then
23166 echo 'filds mem; fists mem' > conftest.s
23167 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23169 (eval $ac_try) 2>&5
23171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23172 test $ac_status = 0; }; }
23174 gcc_cv_as_ix86_filds
=yes
23176 echo "configure: failed program was" >&5
23179 rm -f conftest.o conftest.s
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23183 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23184 if test $gcc_cv_as_ix86_filds = yes; then
23186 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23191 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23192 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23195 gcc_cv_as_ix86_fildq
=no
23196 if test x
$gcc_cv_as != x
; then
23197 echo 'fildq mem; fistpq mem' > conftest.s
23198 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23200 (eval $ac_try) 2>&5
23202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23203 test $ac_status = 0; }; }
23205 gcc_cv_as_ix86_fildq
=yes
23207 echo "configure: failed program was" >&5
23210 rm -f conftest.o conftest.s
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23214 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23215 if test $gcc_cv_as_ix86_fildq = yes; then
23217 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23222 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23223 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23224 $as_echo_n "(cached) " >&6
23226 gcc_cv_as_ix86_cmov_sun_syntax
=no
23227 if test x
$gcc_cv_as != x
; then
23228 echo 'cmovl.l %edx, %eax' > conftest.s
23229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23231 (eval $ac_try) 2>&5
23233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234 test $ac_status = 0; }; }
23236 gcc_cv_as_ix86_cmov_sun_syntax
=yes
23238 echo "configure: failed program was" >&5
23241 rm -f conftest.o conftest.s
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23245 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23246 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23248 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23253 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23254 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23255 $as_echo_n "(cached) " >&6
23257 gcc_cv_as_ix86_ffreep
=no
23258 if test x
$gcc_cv_as != x
; then
23259 echo 'ffreep %st(1)' > conftest.s
23260 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23262 (eval $ac_try) 2>&5
23264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23265 test $ac_status = 0; }; }
23267 gcc_cv_as_ix86_ffreep
=yes
23269 echo "configure: failed program was" >&5
23272 rm -f conftest.o conftest.s
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23276 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23277 if test $gcc_cv_as_ix86_ffreep = yes; then
23279 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23284 $as_echo_n "checking assembler for .quad directive... " >&6; }
23285 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23286 $as_echo_n "(cached) " >&6
23288 gcc_cv_as_ix86_quad
=no
23289 if test x
$gcc_cv_as != x
; then
23290 echo '.quad 0' > conftest.s
23291 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23293 (eval $ac_try) 2>&5
23295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23296 test $ac_status = 0; }; }
23298 gcc_cv_as_ix86_quad
=yes
23300 echo "configure: failed program was" >&5
23303 rm -f conftest.o conftest.s
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23307 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23308 if test $gcc_cv_as_ix86_quad = yes; then
23310 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23315 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23316 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23319 gcc_cv_as_ix86_sahf
=no
23320 if test x
$gcc_cv_as != x
; then
23323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23325 (eval $ac_try) 2>&5
23327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23328 test $ac_status = 0; }; }
23330 gcc_cv_as_ix86_sahf
=yes
23332 echo "configure: failed program was" >&5
23335 rm -f conftest.o conftest.s
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23339 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23340 if test $gcc_cv_as_ix86_sahf = yes; then
23342 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23347 $as_echo_n "checking assembler for swap suffix... " >&6; }
23348 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23349 $as_echo_n "(cached) " >&6
23351 gcc_cv_as_ix86_swap
=no
23352 if test x
$gcc_cv_as != x
; then
23353 echo 'movl.s %esp, %ebp' > conftest.s
23354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23356 (eval $ac_try) 2>&5
23358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23359 test $ac_status = 0; }; }
23361 gcc_cv_as_ix86_swap
=yes
23363 echo "configure: failed program was" >&5
23366 rm -f conftest.o conftest.s
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23370 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23371 if test $gcc_cv_as_ix86_swap = yes; then
23373 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23378 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23379 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23380 $as_echo_n "(cached) " >&6
23382 gcc_cv_as_ix86_diff_sect_delta
=no
23383 if test x
$gcc_cv_as != x
; then
23384 echo '.section .rodata
23390 .L2: nop' > conftest.s
23391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23393 (eval $ac_try) 2>&5
23395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23396 test $ac_status = 0; }; }
23398 gcc_cv_as_ix86_diff_sect_delta
=yes
23400 echo "configure: failed program was" >&5
23403 rm -f conftest.o conftest.s
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23407 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23408 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23410 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23414 # These two are used unconditionally by i386.[ch]; it is to be defined
23415 # to 1 if the feature is present, 0 otherwise.
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23417 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23418 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23419 $as_echo_n "(cached) " >&6
23421 gcc_cv_as_ix86_gotoff_in_data
=no
23422 if test $in_tree_gas = yes; then
23423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23424 then gcc_cv_as_ix86_gotoff_in_data
=yes
23426 elif test x
$gcc_cv_as != x
; then
23431 .long .L0@GOTOFF' > conftest.s
23432 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23434 (eval $ac_try) 2>&5
23436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23437 test $ac_status = 0; }; }
23439 gcc_cv_as_ix86_gotoff_in_data
=yes
23441 echo "configure: failed program was" >&5
23444 rm -f conftest.o conftest.s
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23448 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23451 cat >>confdefs.h
<<_ACEOF
23452 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23457 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23458 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23459 $as_echo_n "(cached) " >&6
23461 gcc_cv_as_ix86_rep_lock_prefix
=no
23462 if test x
$gcc_cv_as != x
; then
23464 lock addl %edi, (%eax,%esi)
23465 lock orl $0, (%esp)' > conftest.s
23466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23468 (eval $ac_try) 2>&5
23470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23471 test $ac_status = 0; }; }
23473 gcc_cv_as_ix86_rep_lock_prefix
=yes
23475 echo "configure: failed program was" >&5
23478 rm -f conftest.o conftest.s
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23482 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23483 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
23485 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23493 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23494 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23495 $as_echo_n "(cached) " >&6
23497 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
23498 if test $in_tree_gas = yes; then
23499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23500 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23502 elif test x
$gcc_cv_as != x
; then
23504 addl r15 = @ltoffx(x#), gp
23506 ld8.mov r16 = [r15], x#' > conftest.s
23507 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23509 (eval $ac_try) 2>&5
23511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23512 test $ac_status = 0; }; }
23514 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
23516 echo "configure: failed program was" >&5
23519 rm -f conftest.o conftest.s
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23523 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23524 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23526 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23534 *-*-aix*) conftest_s
=' .machine "pwr5"
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23539 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23540 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23541 $as_echo_n "(cached) " >&6
23543 gcc_cv_as_machine_directive
=no
23544 if test x
$gcc_cv_as != x
; then
23545 echo ' .machine ppc7400' > conftest.s
23546 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23548 (eval $ac_try) 2>&5
23550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23551 test $ac_status = 0; }; }
23553 gcc_cv_as_machine_directive
=yes
23555 echo "configure: failed program was" >&5
23558 rm -f conftest.o conftest.s
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23562 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23564 if test x
$gcc_cv_as_machine_directive != xyes
; then
23565 echo "*** This target requires an assembler supporting \".machine\"" >&2
23566 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
23567 test x
$build = x
$target && exit 1
23571 *) conftest_s
=' .machine power4
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23577 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23578 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23579 $as_echo_n "(cached) " >&6
23581 gcc_cv_as_powerpc_mfcrf
=no
23582 if test $in_tree_gas = yes; then
23583 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23584 then gcc_cv_as_powerpc_mfcrf
=yes
23586 elif test x
$gcc_cv_as != x
; then
23587 echo "$conftest_s" > conftest.s
23588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23590 (eval $ac_try) 2>&5
23592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23593 test $ac_status = 0; }; }
23595 gcc_cv_as_powerpc_mfcrf
=yes
23597 echo "configure: failed program was" >&5
23600 rm -f conftest.o conftest.s
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23604 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23605 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23607 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23612 *-*-aix*) conftest_s
=' .machine "pwr5"
23615 *) conftest_s
=' .machine power5
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23621 $as_echo_n "checking assembler for popcntb support... " >&6; }
23622 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23623 $as_echo_n "(cached) " >&6
23625 gcc_cv_as_powerpc_popcntb
=no
23626 if test $in_tree_gas = yes; then
23627 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23628 then gcc_cv_as_powerpc_popcntb
=yes
23630 elif test x
$gcc_cv_as != x
; then
23631 echo "$conftest_s" > conftest.s
23632 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23634 (eval $ac_try) 2>&5
23636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23637 test $ac_status = 0; }; }
23639 gcc_cv_as_powerpc_popcntb
=yes
23641 echo "configure: failed program was" >&5
23644 rm -f conftest.o conftest.s
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23648 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23649 if test $gcc_cv_as_powerpc_popcntb = yes; then
23651 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23656 *-*-aix*) conftest_s
=' .machine "pwr5x"
23659 *) conftest_s
=' .machine power5
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23665 $as_echo_n "checking assembler for fp round support... " >&6; }
23666 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23667 $as_echo_n "(cached) " >&6
23669 gcc_cv_as_powerpc_fprnd
=no
23670 if test $in_tree_gas = yes; then
23671 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23672 then gcc_cv_as_powerpc_fprnd
=yes
23674 elif test x
$gcc_cv_as != x
; then
23675 echo "$conftest_s" > conftest.s
23676 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23678 (eval $ac_try) 2>&5
23680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23681 test $ac_status = 0; }; }
23683 gcc_cv_as_powerpc_fprnd
=yes
23685 echo "configure: failed program was" >&5
23688 rm -f conftest.o conftest.s
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23692 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23693 if test $gcc_cv_as_powerpc_fprnd = yes; then
23695 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23700 *-*-aix*) conftest_s
=' .machine "pwr6"
23703 *) conftest_s
=' .machine power6
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23709 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23710 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23711 $as_echo_n "(cached) " >&6
23713 gcc_cv_as_powerpc_mfpgpr
=no
23714 if test $in_tree_gas = yes; then
23715 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23716 then gcc_cv_as_powerpc_mfpgpr
=yes
23718 elif test x
$gcc_cv_as != x
; then
23719 echo "$conftest_s" > conftest.s
23720 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23722 (eval $ac_try) 2>&5
23724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23725 test $ac_status = 0; }; }
23727 gcc_cv_as_powerpc_mfpgpr
=yes
23729 echo "configure: failed program was" >&5
23732 rm -f conftest.o conftest.s
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23736 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23737 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23739 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23744 *-*-aix*) conftest_s
=' .csect .text[PR]
23746 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23750 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23751 *) conftest_s
=' .text
23753 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23757 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23758 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23759 $as_echo_n "(cached) " >&6
23761 gcc_cv_as_powerpc_rel16
=no
23762 if test $in_tree_gas = yes; then
23763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23764 then gcc_cv_as_powerpc_rel16
=yes
23766 elif test x
$gcc_cv_as != x
; then
23767 echo "$conftest_s" > conftest.s
23768 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }
23775 gcc_cv_as_powerpc_rel16
=yes
23777 echo "configure: failed program was" >&5
23780 rm -f conftest.o conftest.s
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23784 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23785 if test $gcc_cv_as_powerpc_rel16 = yes; then
23787 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23792 *-*-aix*) conftest_s
=' .machine "pwr6"
23795 *) conftest_s
=' .machine power6
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23801 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23802 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23805 gcc_cv_as_powerpc_cmpb
=no
23806 if test $in_tree_gas = yes; then
23807 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23808 then gcc_cv_as_powerpc_cmpb
=yes
23810 elif test x
$gcc_cv_as != x
; then
23811 echo "$conftest_s" > conftest.s
23812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -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; }; }
23819 gcc_cv_as_powerpc_cmpb
=yes
23821 echo "configure: failed program was" >&5
23824 rm -f conftest.o conftest.s
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23828 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23829 if test $gcc_cv_as_powerpc_cmpb = yes; then
23831 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23836 *-*-aix*) conftest_s
=' .machine "pwr6"
23839 *) conftest_s
=' .machine power6
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23845 $as_echo_n "checking assembler for decimal float support... " >&6; }
23846 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23847 $as_echo_n "(cached) " >&6
23849 gcc_cv_as_powerpc_dfp
=no
23850 if test $in_tree_gas = yes; then
23851 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23852 then gcc_cv_as_powerpc_dfp
=yes
23854 elif test x
$gcc_cv_as != x
; then
23855 echo "$conftest_s" > conftest.s
23856 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23858 (eval $ac_try) 2>&5
23860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23861 test $ac_status = 0; }; }
23863 gcc_cv_as_powerpc_dfp
=yes
23865 echo "configure: failed program was" >&5
23868 rm -f conftest.o conftest.s
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23872 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23873 if test $gcc_cv_as_powerpc_dfp = yes; then
23875 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23880 *-*-aix*) conftest_s
=' .machine "pwr7"
23883 *) conftest_s
=' .machine power7
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23889 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23890 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23891 $as_echo_n "(cached) " >&6
23893 gcc_cv_as_powerpc_vsx
=no
23894 if test $in_tree_gas = yes; then
23895 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23896 then gcc_cv_as_powerpc_vsx
=yes
23898 elif test x
$gcc_cv_as != x
; then
23899 echo "$conftest_s" > conftest.s
23900 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23902 (eval $ac_try) 2>&5
23904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23905 test $ac_status = 0; }; }
23907 gcc_cv_as_powerpc_vsx
=yes
23909 echo "configure: failed program was" >&5
23912 rm -f conftest.o conftest.s
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23916 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23917 if test $gcc_cv_as_powerpc_vsx = yes; then
23919 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23924 *-*-aix*) conftest_s
=' .machine "pwr7"
23927 *) conftest_s
=' .machine power7
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23933 $as_echo_n "checking assembler for popcntd support... " >&6; }
23934 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23935 $as_echo_n "(cached) " >&6
23937 gcc_cv_as_powerpc_popcntd
=no
23938 if test $in_tree_gas = yes; then
23939 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23940 then gcc_cv_as_powerpc_popcntd
=yes
23942 elif test x
$gcc_cv_as != x
; then
23943 echo "$conftest_s" > conftest.s
23944 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23946 (eval $ac_try) 2>&5
23948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23949 test $ac_status = 0; }; }
23951 gcc_cv_as_powerpc_popcntd
=yes
23953 echo "configure: failed program was" >&5
23956 rm -f conftest.o conftest.s
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23960 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23961 if test $gcc_cv_as_powerpc_popcntd = yes; then
23963 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23968 *-*-aix*) conftest_s
=' .csect .text[PR]
23970 *) conftest_s
=' .text
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23975 $as_echo_n "checking assembler for lwsync support... " >&6; }
23976 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23977 $as_echo_n "(cached) " >&6
23979 gcc_cv_as_powerpc_lwsync
=no
23980 if test $in_tree_gas = yes; then
23981 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23982 then gcc_cv_as_powerpc_lwsync
=yes
23984 elif test x
$gcc_cv_as != x
; then
23985 echo "$conftest_s" > conftest.s
23986 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23988 (eval $ac_try) 2>&5
23990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23991 test $ac_status = 0; }; }
23993 gcc_cv_as_powerpc_lwsync
=yes
23995 echo "configure: failed program was" >&5
23998 rm -f conftest.o conftest.s
24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24002 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24003 if test $gcc_cv_as_powerpc_lwsync = yes; then
24005 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24010 *-*-aix*) conftest_s
=' .machine "476"
24013 *) conftest_s
=' .machine "476"
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24019 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24020 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24021 $as_echo_n "(cached) " >&6
24023 gcc_cv_as_powerpc_dci
=no
24024 if test $in_tree_gas = yes; then
24025 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24026 then gcc_cv_as_powerpc_dci
=yes
24028 elif test x
$gcc_cv_as != x
; then
24029 echo "$conftest_s" > conftest.s
24030 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24032 (eval $ac_try) 2>&5
24034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; }
24037 gcc_cv_as_powerpc_dci
=yes
24039 echo "configure: failed program was" >&5
24042 rm -f conftest.o conftest.s
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24046 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24047 if test $gcc_cv_as_powerpc_dci = yes; then
24049 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24054 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24055 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24056 $as_echo_n "(cached) " >&6
24058 gcc_cv_as_powerpc_gnu_attribute
=no
24059 if test $in_tree_gas = yes; then
24060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24061 then gcc_cv_as_powerpc_gnu_attribute
=yes
24063 elif test x
$gcc_cv_as != x
; then
24064 echo '.gnu_attribute 4,1' > conftest.s
24065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24067 (eval $ac_try) 2>&5
24069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24070 test $ac_status = 0; }; }
24072 gcc_cv_as_powerpc_gnu_attribute
=yes
24074 echo "configure: failed program was" >&5
24077 rm -f conftest.o conftest.s
24080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24081 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24082 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24084 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24089 $as_echo_n "checking assembler for tls marker support... " >&6; }
24090 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24091 $as_echo_n "(cached) " >&6
24093 gcc_cv_as_powerpc_tls_markers
=no
24094 if test $in_tree_gas = yes; then
24095 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24096 then gcc_cv_as_powerpc_tls_markers
=yes
24098 elif test x
$gcc_cv_as != x
; then
24099 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24102 (eval $ac_try) 2>&5
24104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24105 test $ac_status = 0; }; }
24107 gcc_cv_as_powerpc_tls_markers
=yes
24109 echo "configure: failed program was" >&5
24112 rm -f conftest.o conftest.s
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24116 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24117 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24119 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24126 $as_echo_n "checking assembler for .ref support... " >&6; }
24127 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24128 $as_echo_n "(cached) " >&6
24130 gcc_cv_as_aix_ref
=no
24131 if test $in_tree_gas = yes; then
24132 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24135 elif test x
$gcc_cv_as != x
; then
24136 echo ' .csect stuff[rw]
24142 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24144 (eval $ac_try) 2>&5
24146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24147 test $ac_status = 0; }; }
24149 gcc_cv_as_aix_ref
=yes
24151 echo "configure: failed program was" >&5
24154 rm -f conftest.o conftest.s
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24158 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24159 if test $gcc_cv_as_aix_ref = yes; then
24161 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24170 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24171 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24172 $as_echo_n "(cached) " >&6
24174 gcc_cv_as_mips_explicit_relocs
=no
24175 if test $in_tree_gas = yes; then
24176 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24177 then gcc_cv_as_mips_explicit_relocs
=yes
24179 elif test x
$gcc_cv_as != x
; then
24180 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24181 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24183 (eval $ac_try) 2>&5
24185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; }
24188 gcc_cv_as_mips_explicit_relocs
=yes
24190 echo "configure: failed program was" >&5
24193 rm -f conftest.o conftest.s
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24197 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24198 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24199 if test x
$target_cpu_default = x
24200 then target_cpu_default
=MASK_EXPLICIT_RELOCS
24201 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24205 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24206 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24207 $as_echo_n "(cached) " >&6
24209 gcc_cv_as_mips_no_shared
=no
24210 if test $in_tree_gas = yes; then
24211 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24212 then gcc_cv_as_mips_no_shared
=yes
24214 elif test x
$gcc_cv_as != x
; then
24215 echo 'nop' > conftest.s
24216 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218 (eval $ac_try) 2>&5
24220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221 test $ac_status = 0; }; }
24223 gcc_cv_as_mips_no_shared
=yes
24225 echo "configure: failed program was" >&5
24228 rm -f conftest.o conftest.s
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24232 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24233 if test $gcc_cv_as_mips_no_shared = yes; then
24235 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24240 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24241 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24242 $as_echo_n "(cached) " >&6
24244 gcc_cv_as_mips_gnu_attribute
=no
24245 if test $in_tree_gas = yes; then
24246 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24247 then gcc_cv_as_mips_gnu_attribute
=yes
24249 elif test x
$gcc_cv_as != x
; then
24250 echo '.gnu_attribute 4,1' > conftest.s
24251 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24253 (eval $ac_try) 2>&5
24255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24256 test $ac_status = 0; }; }
24258 gcc_cv_as_mips_gnu_attribute
=yes
24260 echo "configure: failed program was" >&5
24263 rm -f conftest.o conftest.s
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24267 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24268 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24270 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24275 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24276 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24277 $as_echo_n "(cached) " >&6
24279 gcc_cv_as_mips_dtprelword
=no
24280 if test $in_tree_gas = yes; then
24281 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24282 then gcc_cv_as_mips_dtprelword
=yes
24284 elif test x
$gcc_cv_as != x
; then
24285 echo '.section .tdata,"awT",@progbits
24289 .dtprelword x+0x8000' > conftest.s
24290 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24292 (eval $ac_try) 2>&5
24294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24295 test $ac_status = 0; }; }
24297 gcc_cv_as_mips_dtprelword
=yes
24299 echo "configure: failed program was" >&5
24302 rm -f conftest.o conftest.s
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24306 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24307 if test $gcc_cv_as_mips_dtprelword = yes; then
24309 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24314 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24315 gcc_cv_as_ld_jalr_reloc
=no
24316 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24317 if test $in_tree_ld = yes ; then
24318 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 \
24319 && test $in_tree_ld_is_elf = yes; then
24320 gcc_cv_as_ld_jalr_reloc
=yes
24322 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24323 echo ' .ent x' > conftest.s
24324 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24325 echo ' ld $25,%call16(y)($28)' >> conftest.s
24326 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24327 echo '1: jalr $25' >> conftest.s
24328 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24329 echo '1: jalr $25' >> conftest.s
24330 echo ' .end x' >> conftest.s
24331 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
24332 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
24333 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
24334 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
24335 gcc_cv_as_ld_jalr_reloc
=yes
24341 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24342 if test x
$target_cpu_default = x
; then
24343 target_cpu_default
=MASK_RELAX_PIC_CALLS
24345 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24349 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24352 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24353 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24354 $as_echo_n "(cached) " >&6
24356 gcc_cv_ld_mips_personality_relaxation
=no
24357 if test $in_tree_ld = yes ; then
24358 if test "$gcc_cv_gld_major_version" -eq 2 \
24359 -a "$gcc_cv_gld_minor_version" -ge 21 \
24360 -o "$gcc_cv_gld_major_version" -gt 2; then
24361 gcc_cv_ld_mips_personality_relaxation
=yes
24363 elif test x
$gcc_cv_as != x \
24364 -a x
$gcc_cv_ld != x \
24365 -a x
$gcc_cv_readelf != x
; then
24366 cat > conftest.s
<<EOF
24368 .cfi_personality 0x80,indirect_ptr
24375 .section .data,"aw",@progbits
24379 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
24380 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
24381 if $gcc_cv_readelf -d conftest
2>&1 \
24382 |
grep TEXTREL
> /dev
/null
2>&1; then
24384 elif $gcc_cv_readelf --relocs conftest
2>&1 \
24385 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
24388 gcc_cv_ld_mips_personality_relaxation
=yes
24392 rm -f conftest.s conftest.o conftest
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24395 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24396 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
24398 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24404 # Mips and HP-UX need the GNU assembler.
24405 # Linux on IA64 might be able to use the Intel assembler.
24408 mips
*-*-* |
*-*-hpux* )
24409 if test x
$gas_flag = xyes \
24410 ||
test x
"$host" != x
"$build" \
24411 ||
test ! -x "$gcc_cv_as" \
24412 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
24415 echo "*** This configuration requires the GNU assembler" >&2
24421 # ??? Not all targets support dwarf2 debug_line, even within a version
24422 # of gas. Moreover, we need to emit a valid instruction to trigger any
24423 # info to the output file. So, as supported targets are added to gas 2.11,
24424 # add some instruction here to (also) show we expect this might work.
24425 # ??? Once 2.11 is released, probably need to add first known working
24426 # version to the per-target configury.
24428 i?
86*-*-* | mips
*-*-* | alpha
*-*-* | powerpc
*-*-* | sparc
*-*-* | m68
*-*-* \
24429 | x86_64
*-*-* | hppa
*-*-* | arm
*-*-* \
24430 | xstormy16
*-*-* | cris-
*-* | crisv32-
*-* | xtensa
*-*-* | bfin-
*-* | score
*-*-* \
24431 | spu-
*-* | fido
*-*-* | m32c-
*-*)
24434 ia64
*-*-* | s390
*-*-*)
24441 if test x
"$insn" != x
; then
24443 .file 1 \"conftest.s\"
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24447 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24448 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24449 $as_echo_n "(cached) " >&6
24451 gcc_cv_as_dwarf2_debug_line
=no
24452 if test $in_tree_gas = yes; then
24453 if test $in_tree_gas_is_elf = yes \
24454 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24455 then gcc_cv_as_dwarf2_debug_line
=yes
24457 elif test x
$gcc_cv_as != x
; then
24458 echo "$conftest_s" > conftest.s
24459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24461 (eval $ac_try) 2>&5
24463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24464 test $ac_status = 0; }; }
24466 if test x
$gcc_cv_objdump != x \
24467 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
24468 |
grep debug_line
> /dev
/null
2>&1; then
24469 gcc_cv_as_dwarf2_debug_line
=yes
24472 echo "configure: failed program was" >&5
24475 rm -f conftest.o conftest.s
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24479 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24482 # The .debug_line file table must be in the exact order that
24483 # we specified the files, since these indices are also used
24484 # by DW_AT_decl_file. Approximate this test by testing if
24485 # the assembler bitches if the same index is assigned twice.
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24487 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24488 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gcc_cv_as_dwarf2_file_buggy
=no
24492 if test x
$gcc_cv_as != x
; then
24493 echo ' .file 1 "foo.s"
24494 .file 1 "bar.s"' > conftest.s
24495 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }
24502 gcc_cv_as_dwarf2_file_buggy
=yes
24504 echo "configure: failed program was" >&5
24507 rm -f conftest.o conftest.s
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24511 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24514 if test $gcc_cv_as_dwarf2_debug_line = yes \
24515 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
24517 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24522 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24523 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24524 $as_echo_n "(cached) " >&6
24526 gcc_cv_as_gdwarf2_flag
=no
24527 if test $in_tree_gas = yes; then
24528 if test $in_tree_gas_is_elf = yes \
24529 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24530 then gcc_cv_as_gdwarf2_flag
=yes
24532 elif test x
$gcc_cv_as != x
; then
24533 echo "$insn" > conftest.s
24534 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24536 (eval $ac_try) 2>&5
24538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24539 test $ac_status = 0; }; }
24541 gcc_cv_as_gdwarf2_flag
=yes
24543 echo "configure: failed program was" >&5
24546 rm -f conftest.o conftest.s
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24550 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24551 if test $gcc_cv_as_gdwarf2_flag = yes; then
24553 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24558 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24559 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24562 gcc_cv_as_gstabs_flag
=no
24563 if test $in_tree_gas = yes; then
24564 if test $in_tree_gas_is_elf = yes \
24565 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24566 then gcc_cv_as_gstabs_flag
=yes
24568 elif test x
$gcc_cv_as != x
; then
24569 echo "$insn" > conftest.s
24570 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24572 (eval $ac_try) 2>&5
24574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575 test $ac_status = 0; }; }
24577 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24578 # and warns about it, but still exits successfully. So check for
24580 if { ac_try
='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24587 else gcc_cv_as_gstabs_flag
=yes
24590 echo "configure: failed program was" >&5
24593 rm -f conftest.o conftest.s
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24597 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24598 if test $gcc_cv_as_gstabs_flag = yes; then
24600 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24605 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24606 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24607 $as_echo_n "(cached) " >&6
24609 gcc_cv_as_debug_prefix_map_flag
=no
24610 if test $in_tree_gas = yes; then
24611 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24612 then gcc_cv_as_debug_prefix_map_flag
=yes
24614 elif test x
$gcc_cv_as != x
; then
24615 echo "$insn" > conftest.s
24616 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24618 (eval $ac_try) 2>&5
24620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24621 test $ac_status = 0; }; }
24623 gcc_cv_as_debug_prefix_map_flag
=yes
24625 echo "configure: failed program was" >&5
24628 rm -f conftest.o conftest.s
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24632 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24633 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24635 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24641 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24642 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24643 $as_echo_n "(cached) " >&6
24645 gcc_cv_as_lcomm_with_alignment
=no
24646 if test x
$gcc_cv_as != x
; then
24647 echo '.lcomm bar,4,16' > conftest.s
24648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24650 (eval $ac_try) 2>&5
24652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24653 test $ac_status = 0; }; }
24655 gcc_cv_as_lcomm_with_alignment
=yes
24657 echo "configure: failed program was" >&5
24660 rm -f conftest.o conftest.s
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24664 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24665 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24667 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24671 # Check whether --enable-gnu-unique-object was given.
24672 if test "${enable_gnu_unique_object+set}" = set; then :
24673 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24675 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24676 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24680 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24681 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24682 $as_echo_n "(cached) " >&6
24684 gcc_cv_as_gnu_unique_object
=no
24685 if test $in_tree_gas = yes; then
24686 if test $in_tree_gas_is_elf = yes \
24687 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24688 then gcc_cv_as_gnu_unique_object
=yes
24690 elif test x
$gcc_cv_as != x
; then
24691 echo '.type foo, @gnu_unique_object' > conftest.s
24692 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24694 (eval $ac_try) 2>&5
24696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24697 test $ac_status = 0; }; }
24699 gcc_cv_as_gnu_unique_object
=yes
24701 echo "configure: failed program was" >&5
24704 rm -f conftest.o conftest.s
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24708 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24709 if test $gcc_cv_as_gnu_unique_object = yes; then
24710 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24711 if test x
$host = x
$build -a x
$host = x
$target &&
24712 glibcver
=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24713 glibcmajor
=`expr "$glibcver" : "\([0-9]*\)"`
24714 glibcminor
=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24715 glibcnum
=`expr $glibcmajor \* 1000 + $glibcminor`
24716 if test "$glibcnum" -ge 2011 ; then
24717 enable_gnu_unique_object
=yes
24723 if test x
$enable_gnu_unique_object = xyes
; then
24725 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24730 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24731 if test "${gcc_cv_as_line_zero+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24734 gcc_cv_as_line_zero
=no
24735 if test $in_tree_gas = yes; then
24736 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24737 then gcc_cv_as_line_zero
=yes
24739 elif test "x$gcc_cv_as" != x
; then
24740 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24741 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24743 (eval $ac_try) 2>&5
24745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24746 test $ac_status = 0; }; } &&
24747 test "x`cat conftest.out`" = x
24749 gcc_cv_as_line_zero
=yes
24751 echo "configure: failed program was" >&5
24753 echo "configure: error output was" >&5
24754 cat conftest.out
>&5
24756 rm -f conftest.o conftest.s conftest.out
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24760 $as_echo "$gcc_cv_as_line_zero" >&6; }
24761 if test "x$gcc_cv_as_line_zero" = xyes
; then
24763 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24768 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24769 gcc_cv_ld_eh_frame_hdr
=no
24770 if test $in_tree_ld = yes ; then
24771 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 \
24772 && test $in_tree_ld_is_elf = yes; then
24773 gcc_cv_ld_eh_frame_hdr
=yes
24775 elif test x
$gcc_cv_ld != x
; then
24776 # Check if linker supports --eh-frame-hdr option
24777 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
24778 gcc_cv_ld_eh_frame_hdr
=yes
24782 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
24784 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24788 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24791 $as_echo_n "checking linker position independent executable support... " >&6; }
24793 if test $in_tree_ld = yes ; then
24794 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
24795 && test $in_tree_ld_is_elf = yes; then
24798 elif test x
$gcc_cv_ld != x
; then
24799 # Check if linker supports -pie option
24800 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
24804 if test x
"$gcc_cv_ld_pie" = xyes
; then
24806 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24810 $as_echo "$gcc_cv_ld_pie" >&6; }
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24813 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24814 gcc_cv_ld_eh_gc_sections
=no
24815 if test $in_tree_ld = yes ; then
24816 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 \
24817 && test $in_tree_ld_is_elf = yes; then
24818 gcc_cv_ld_eh_gc_sections
=yes
24820 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
24821 cat > conftest.s
<<EOF
24824 .type _start, @function
24827 .size _start, .-_start
24828 .section .text.foo,"ax",@progbits
24829 .type foo, @function
24833 .section .gcc_except_table.foo,"a",@progbits
24836 .section .eh_frame,"a",@progbits
24839 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24840 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24841 |
grep "gc-sections option ignored" > /dev
/null
; then
24842 gcc_cv_ld_eh_gc_sections
=no
24843 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24844 |
grep gcc_except_table
> /dev
/null
; then
24845 gcc_cv_ld_eh_gc_sections
=yes
24846 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24847 if test x
$gcc_cv_as_comdat_group != xyes
; then
24848 gcc_cv_ld_eh_gc_sections
=no
24849 cat > conftest.s
<<EOF
24852 .type _start, @function
24855 .size _start, .-_start
24856 .section .gnu.linkonce.t.foo,"ax",@progbits
24857 .type foo, @function
24861 .section .gcc_except_table.foo,"a",@progbits
24864 .section .eh_frame,"a",@progbits
24867 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
24868 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
24869 |
grep "gc-sections option ignored" > /dev
/null
; then
24870 gcc_cv_ld_eh_gc_sections
=no
24871 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
24872 |
grep gcc_except_table
> /dev
/null
; then
24873 gcc_cv_ld_eh_gc_sections
=yes
24879 rm -f conftest.s conftest.o conftest
24883 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24884 gcc_cv_ld_eh_gc_sections
=no
24887 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
24889 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24893 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24900 $as_echo_n "checking linker --as-needed support... " >&6; }
24901 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24902 $as_echo_n "(cached) " >&6
24904 gcc_cv_ld_as_needed
=no
24905 if test $in_tree_ld = yes ; then
24906 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 \
24907 && test $in_tree_ld_is_elf = yes; then
24908 gcc_cv_ld_as_needed
=yes
24910 elif test x
$gcc_cv_ld != x
; then
24911 # Check if linker supports --as-needed and --no-as-needed options
24912 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
24913 gcc_cv_ld_as_needed
=yes
24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24919 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24920 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
24922 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24926 case "$target:$tm_file" in
24927 powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24929 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24930 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24931 $as_echo_n "(cached) " >&6
24933 gcc_cv_ld_no_dot_syms
=no
24934 if test $in_tree_ld = yes ; then
24935 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
24936 gcc_cv_ld_no_dot_syms
=yes
24938 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24939 cat > conftest1.s
<<EOF
24943 cat > conftest2.s
<<EOF
24944 .section ".opd","aw"
24947 .type foo,@function
24949 .quad .LEfoo,.TOC.@tocbase,0
24955 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
24956 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
24957 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
24958 gcc_cv_ld_no_dot_syms
=yes
24960 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24965 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24966 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
24968 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
24973 $as_echo_n "checking linker large toc support... " >&6; }
24974 if test "${gcc_cv_ld_large_toc+set}" = set; then :
24975 $as_echo_n "(cached) " >&6
24977 gcc_cv_ld_large_toc
=no
24978 if test $in_tree_ld = yes ; then
24979 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
24980 gcc_cv_ld_large_toc
=yes
24982 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
24983 cat > conftest.s
<<EOF
24984 .section ".tbss","awT",@nobits
24990 addis 9,13,ie0@got@tprel@ha
24991 ld 9,ie0@got@tprel@l(9)
24993 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
24994 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
24995 gcc_cv_ld_large_toc
=yes
24997 rm -f conftest conftest.o conftest.s
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25002 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25003 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
25005 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25012 $as_echo_n "checking linker --build-id support... " >&6; }
25013 if test "${gcc_cv_ld_buildid+set}" = set; then :
25014 $as_echo_n "(cached) " >&6
25016 gcc_cv_ld_buildid
=no
25017 if test $in_tree_ld = yes ; then
25018 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25019 "$gcc_cv_gld_minor_version" -ge 18 -o \
25020 "$gcc_cv_gld_major_version" -gt 2 \
25021 && test $in_tree_ld_is_elf = yes; then
25022 gcc_cv_ld_buildid
=yes
25024 elif test x
$gcc_cv_ld != x
; then
25025 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
25026 gcc_cv_ld_buildid
=yes
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25031 $as_echo "$gcc_cv_ld_buildid" >&6; }
25032 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25034 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25038 # Check whether --enable-linker-build-id was given.
25039 if test "${enable_linker_build_id+set}" = set; then :
25040 enableval
=$enable_linker_build_id;
25042 enable_linker_build_id
=no
25046 if test x
"$enable_linker_build_id" = xyes
; then
25047 if test x
"$gcc_cv_ld_buildid" = xyes
; then
25049 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25053 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25057 # In binutils 2.21, GNU ld gained support for new emulations fully
25058 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25060 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25061 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25062 $as_echo_n "(cached) " >&6
25064 gcc_cv_ld_sol2_emulation
=no
25065 if test $in_tree_ld = yes ; then
25066 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25067 "$gcc_cv_gld_minor_version" -ge 21 -o \
25068 "$gcc_cv_gld_major_version" -gt 2 \
25069 && test $in_tree_ld_is_elf = yes; then
25070 gcc_cv_ld_sol2_emulation
=yes
25072 elif test x
$gcc_cv_ld != x
; then
25073 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
25074 grep _sol2
> /dev
/null
; then
25075 gcc_cv_ld_sol2_emulation
=yes
25079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25080 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25081 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
25083 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25088 $as_echo_n "checking linker --sysroot support... " >&6; }
25089 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25092 gcc_cv_ld_sysroot
=no
25093 if test $in_tree_ld = yes ; then
25094 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
25095 gcc_cv_ld_sysroot
=yes
25097 elif test x
$gcc_cv_ld != x
; then
25098 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
25099 gcc_cv_ld_sysroot
=yes
25103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
25104 $as_echo "$gcc_cv_ld_sysroot" >&6; }
25105 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
25107 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
25111 if test x
$with_sysroot = x
&& test x
$host = x
$target \
25112 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
25113 && test "$prefix" != "NONE"; then
25115 cat >>confdefs.h
<<_ACEOF
25116 #define PREFIX_INCLUDE_DIR "$prefix/include"
25121 # Test for stack protector support in target C library.
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25123 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25124 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25125 $as_echo_n "(cached) " >&6
25127 gcc_cv_libc_provides_ssp
=no
25129 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
25130 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25131 if test "x$with_headers" != x
; then
25132 glibc_header_dir
=$with_headers
25133 elif test "x$with_sysroot" = x
; then
25134 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25135 elif test "x$with_build_sysroot" != "x"; then
25136 glibc_header_dir
="${with_build_sysroot}/usr/include"
25137 elif test "x$with_sysroot" = xyes
; then
25138 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25140 glibc_header_dir
="${with_sysroot}/usr/include"
25143 glibc_header_dir
=/usr
/include
25145 # glibc 2.4 and later provides __stack_chk_fail and
25146 # either __stack_chk_guard, or TLS access to stack guard canary.
25147 if test -f $glibc_header_dir/features.h \
25148 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25149 $glibc_header_dir/features.h
> /dev
/null
; then
25150 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25151 $glibc_header_dir/features.h
> /dev
/null
; then
25152 gcc_cv_libc_provides_ssp
=yes
25153 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25154 $glibc_header_dir/features.h
> /dev
/null \
25155 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25156 $glibc_header_dir/features.h
> /dev
/null
; then
25157 gcc_cv_libc_provides_ssp
=yes
25158 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25159 $glibc_header_dir/features.h
> /dev
/null
&& \
25160 test -f $glibc_header_dir/bits
/uClibc_config.h
&& \
25161 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25162 $glibc_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
25163 gcc_cv_libc_provides_ssp
=yes
25168 # Avoid complicated tests (see
25169 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25170 # simply assert that glibc does provide this, which is true for all
25171 # realistically usable GNU/Hurd configurations.
25172 gcc_cv_libc_provides_ssp
=yes;;
25173 *-*-darwin* |
*-*-freebsd*)
25174 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25175 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
25176 gcc_cv_libc_provides_ssp
=yes
25178 echo "no __stack_chk_fail on this target"
25182 *) gcc_cv_libc_provides_ssp
=no
;;
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25186 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25188 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
25190 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25194 # Check if TFmode long double should be used by default or not.
25195 # Some glibc targets used DFmode long double, but with glibc 2.4
25196 # and later they can use TFmode.
25198 powerpc
*-*-linux* | \
25199 powerpc
*-*-gnu* | \
25200 sparc
*-*-linux* | \
25204 # Check whether --with-long-double-128 was given.
25205 if test "${with_long_double_128+set}" = set; then :
25206 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
25208 gcc_cv_target_ldbl128
=no
25209 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
25210 if test "x$with_sysroot" = x
; then
25211 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-include"
25212 elif test "x$with_build_sysroot" != "x"; then
25213 glibc_header_dir
="${with_build_sysroot}/usr/include"
25214 elif test "x$with_sysroot" = xyes
; then
25215 glibc_header_dir
="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25217 glibc_header_dir
="${with_sysroot}/usr/include"
25220 glibc_header_dir
=/usr
/include
25222 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25223 $glibc_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
25224 && gcc_cv_target_ldbl128
=yes
25230 if test x
$gcc_cv_target_ldbl128 = xyes
; then
25232 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25236 # Find out what GC implementation we want, or may, use.
25238 # Check whether --with-gc was given.
25239 if test "${with_gc+set}" = set; then :
25240 withval
=$with_gc; case "$withval" in
25247 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25251 as_fn_error
"$withval is an invalid option to --with-gc" "$LINENO" 5
25259 echo "Using $GGC for garbage collection."
25261 # Libraries to use on the host. This will normally be set by the top
25262 # level Makefile. Here we simply capture the value for our Makefile.
25263 if test -z "${HOST_LIBS+set}"; then
25268 # Use the system's zlib library.
25270 zlibinc
="-I\$(srcdir)/../zlib"
25272 # Check whether --with-system-zlib was given.
25273 if test "${with_system_zlib+set}" = set; then :
25274 withval
=$with_system_zlib; zlibdir
=
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25284 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25285 # Check whether --enable-maintainer-mode was given.
25286 if test "${enable_maintainer_mode+set}" = set; then :
25287 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25294 $as_echo "$maintainer_mode" >&6; }
25296 if test "$maintainer_mode" = "yes"; then
25306 # Make empty files to contain the specs and options for each language.
25307 # Then add #include lines to for a compiler that has specs and/or options.
25313 # These (without "all_") are set in each config-lang.in.
25314 # `language' must be a single word so is spelled singularly.
25317 all_outputs
='Makefile gccbug'
25318 # List of language makefile fragments.
25319 all_lang_makefrags
=
25320 # Additional files for gengtype
25321 all_gtfiles
="$target_gtfiles"
25323 # These are the languages that are set in --enable-languages,
25324 # and are available in the GCC tree.
25325 all_selected_languages
=
25327 # Add the language fragments.
25328 # Languages are added via two mechanisms. Some information must be
25329 # recorded in makefile variables, these are defined in config-lang.in.
25330 # We accumulate them and plug them into the main Makefile.
25331 # The other mechanism is a set of hooks for each of the main targets
25332 # like `clean', `install', etc.
25334 language_hooks
="Make-hooks"
25336 for lang
in ${srcdir}/*/config-lang.
in
25338 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25340 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25341 if test "x$lang_alias" = x
25343 echo "$lang doesn't set \$language." 1>&2
25346 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25347 subdirs
="$subdirs $subdir"
25349 # $gcc_subdir is where the gcc integration files are to be found
25350 # for a language, both for internal compiler purposes (compiler
25351 # sources implementing front-end to GCC tree converters), and for
25352 # build infrastructure purposes (Make-lang.in, etc.)
25354 # This will be <subdir> (relative to $srcdir) if a line like
25355 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25356 # is found in <langdir>/config-lang.in, and will remain <langdir>
25359 # Except for the language alias (fetched above), the regular
25360 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25361 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25362 # only this and the language alias.
25364 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25365 if [ "$gcc_subdir" = "" ]; then
25366 gcc_subdir
="$subdir"
25369 case ",$enable_languages," in
25371 all_selected_languages
="$all_selected_languages $lang_alias"
25372 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
25373 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25384 .
${srcdir}/$gcc_subdir/config-lang.
in
25385 if test "x$language" = x
25387 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25392 case ",$enable_languages," in
25393 *,$lang_alias,*) ;;
25395 for i
in $subdir_requires; do
25396 test -f "${srcdir}/$i/config-lang.in" && continue
25404 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25405 if test -f $srcdir/$gcc_subdir/lang.opt
; then
25406 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25408 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
25409 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25411 all_languages
="$all_languages $language"
25412 all_compilers
="$all_compilers $compilers"
25413 all_outputs
="$all_outputs $outputs"
25414 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
25415 case ",$enable_languages," in
25418 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25422 # LTO needs to speak the platform's object file format, and has a
25423 # number of implementations of the required binary file access APIs.
25424 # ELF is the most common, and default. We only link libelf if ELF
25425 # is indeed the selected format.
25426 LTO_BINARY_READER
=${lto_binary_reader}
25427 LTO_USE_LIBELF
=-lelf
25428 if test "x$lto_binary_reader" != "xlto-elf" ; then
25438 # Pick up gtfiles for c
25440 .
${srcdir}/c-config-lang.
in
25441 all_gtfiles
="$all_gtfiles [c] $gtfiles"
25444 for language
in $all_selected_languages
25446 check_languages
="$check_languages check-$language"
25449 # We link each language in with a set of hooks, reached indirectly via
25450 # lang.${target}. Only do so for selected languages.
25454 target_list
="all.cross start.encap rest.encap tags \
25455 install-common install-man install-info install-pdf install-html dvi \
25456 pdf html uninstall info man srcextra srcman srcinfo \
25457 mostlyclean clean distclean maintainer-clean install-plugin"
25459 for t
in $target_list
25462 for lang
in $all_selected_languages
25466 echo "lang.$t: $x" >> Make-hooks
25475 echo "dir ." > .gdbinit
25476 echo "dir ${srcdir}" >> .gdbinit
25477 if test x
$gdb_needs_out_file_path = xyes
25479 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25481 if test "x$subdirs" != x
; then
25484 echo "dir ${srcdir}/$s" >> .gdbinit
25487 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25489 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25493 # Find a directory in which to install a shared libgcc.
25495 # Check whether --enable-version-specific-runtime-libs was given.
25496 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25497 enableval
=$enable_version_specific_runtime_libs;
25502 # Check whether --with-slibdir was given.
25503 if test "${with_slibdir+set}" = set; then :
25504 withval
=$with_slibdir; slibdir
="$with_slibdir"
25506 if test "${enable_version_specific_runtime_libs+set}" = set; then
25507 slibdir
='$(libsubdir)'
25508 elif test "$host" != "$target"; then
25509 slibdir
='$(build_tooldir)/lib'
25511 slibdir
='$(libdir)'
25517 # Substitute configuration variables
25581 if test x
${build} = x
${host} ; then
25582 if test x
${host} = x
${target} ; then
25583 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25585 echo "Links are now set up to build a cross-compiler" 1>&2
25586 echo " from ${host} to ${target}." 1>&2
25589 if test x
${host} = x
${target} ; then
25590 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25591 echo " for ${target}." 1>&2
25593 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25594 echo " from ${host} to ${target}." 1>&2
25606 if test "x${CLOOGLIBS}" != "x" ; then
25608 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25614 if test "x${LIBELFLIBS}" != "x" ; then
25616 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25620 # Check for plugin support
25621 # Check whether --enable-plugin was given.
25622 if test "${enable_plugin+set}" = set; then :
25623 enableval
=$enable_plugin; enable_plugin
=$enableval
25625 enable_plugin
=yes; default_plugin
=yes
25630 if test x
"$enable_plugin" = x
"yes"; then
25634 export_sym_check
="$gcc_cv_nm -g"
25637 export_sym_check
="$gcc_cv_objdump -T"
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25641 $as_echo_n "checking for exported symbols... " >&6; }
25642 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25643 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
> /dev
/null
2>&1
25644 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25645 : # No need to use a flag
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25648 $as_echo_n "checking for -rdynamic... " >&6; }
25649 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
> /dev
/null
2>&1
25650 if $export_sym_check conftest |
grep foobar
> /dev
/null
; then
25651 plugin_rdynamic
=yes
25652 pluginlibs
="-rdynamic"
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25658 $as_echo "$plugin_rdynamic" >&6; }
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25664 $as_echo_n "checking for library containing dlopen... " >&6; }
25665 if test "${ac_cv_search_dlopen+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25668 ac_func_search_save_LIBS
=$LIBS
25669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25670 /* end confdefs.h. */
25672 /* Override any GCC internal prototype to avoid an error.
25673 Use char because int might match the return type of a GCC
25674 builtin and then its argument prototype would still apply. */
25687 for ac_lib
in '' dl
; do
25688 if test -z "$ac_lib"; then
25689 ac_res
="none required"
25692 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
25694 if ac_fn_c_try_link
"$LINENO"; then :
25695 ac_cv_search_dlopen
=$ac_res
25697 rm -f core conftest.err conftest.
$ac_objext \
25699 if test "${ac_cv_search_dlopen+set}" = set; then :
25703 if test "${ac_cv_search_dlopen+set}" = set; then :
25706 ac_cv_search_dlopen
=no
25708 rm conftest.
$ac_ext
25709 LIBS
=$ac_func_search_save_LIBS
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25712 $as_echo "$ac_cv_search_dlopen" >&6; }
25713 ac_res
=$ac_cv_search_dlopen
25714 if test "$ac_res" != no
; then :
25715 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
25719 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
25720 pluginlibs
="$pluginlibs -ldl"
25724 # Check that we can build shared objects with -fPIC -shared
25725 saved_LDFLAGS
="$LDFLAGS"
25728 LDFLAGS
="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25731 LDFLAGS
="$LDFLAGS -fPIC -shared"
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25735 $as_echo_n "checking for -fPIC -shared... " >&6; }
25736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25737 /* end confdefs.h. */
25747 if ac_fn_c_try_link
"$LINENO"; then :
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25749 $as_echo "yes" >&6; }; have_pic_shared
=yes
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25752 $as_echo "no" >&6; }; have_pic_shared
=no
25754 rm -f core conftest.err conftest.
$ac_objext \
25755 conftest
$ac_exeext conftest.
$ac_ext
25756 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
25760 LDFLAGS
="$saved_LDFLAGS"
25762 # If plugin support had been requested but not available, fail.
25763 if test x
"$enable_plugin" = x
"no" ; then
25764 if test x
"$default_plugin" != x
"yes"; then
25766 Building GCC with plugin support requires a host that supports
25767 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25774 if test x
"$enable_plugin" = x
"yes"; then
25776 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25780 # Configure the subdirectories
25781 # AC_CONFIG_SUBDIRS($subdirs)
25783 # Create the Makefile
25784 # and configure language subdirectories
25785 ac_config_files
="$ac_config_files $all_outputs"
25788 ac_config_commands
="$ac_config_commands default"
25790 cat >confcache
<<\_ACEOF
25791 # This file is a shell script that caches the results of configure
25792 # tests run on this system so they can be shared between configure
25793 # scripts and configure runs, see configure's option --config-cache.
25794 # It is not useful on other systems. If it contains results you don't
25795 # want to keep, you may remove or edit it.
25797 # config.status only pays attention to the cache file if you give it
25798 # the --recheck option to rerun configure.
25800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25802 # following values.
25806 # The following way of writing the cache mishandles newlines in values,
25807 # but we know of no workaround that is simple, portable, and efficient.
25808 # So, we kill variables containing newlines.
25809 # Ultrix sh set writes to stderr and can't be redirected directly,
25810 # and sets the high bit in the cache file unless we assign to the vars.
25812 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25813 eval ac_val
=\$
$ac_var
25817 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25818 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25821 _ | IFS | as_nl
) ;; #(
25822 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
25823 *) { eval $ac_var=; unset $ac_var;} ;;
25829 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25830 *${as_nl}ac_space
=\
*)
25831 # `set' does not quote correctly, so add quotes: double-quote
25832 # substitution turns \\\\ into \\, and sed turns \\ into \.
25835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25838 # `set' quotes correctly as required by POSIX, so do not add quotes.
25839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25850 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25852 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25853 if test -w "$cache_file"; then
25854 test "x$cache_file" != "x/dev/null" &&
25855 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25856 $as_echo "$as_me: updating cache $cache_file" >&6;}
25857 cat confcache
>$cache_file
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25860 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25865 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25866 # Let make expand exec_prefix.
25867 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25869 DEFS
=-DHAVE_CONFIG_H
25873 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25874 # 1. Remove the extension, and $U if already installed.
25875 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25876 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
25877 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25878 # will be set to the directory where LIBOBJS objects are built.
25879 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25880 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
25882 LIBOBJS
=$ac_libobjs
25884 LTLIBOBJS
=$ac_ltlibobjs
25889 : ${CONFIG_STATUS=./config.status}
25891 ac_clean_files_save
=$ac_clean_files
25892 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25898 # Generated by $as_me.
25899 # Run this file to recreate the current configuration.
25900 # Compiler output produced by configure, useful for debugging
25901 # configure, is in config.log if it exists.
25904 ac_cs_recheck=false
25907 SHELL=\${CONFIG_SHELL-$SHELL}
25910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
25911 ## -------------------- ##
25912 ## M4sh Initialization. ##
25913 ## -------------------- ##
25915 # Be more Bourne compatible
25916 DUALCASE
=1; export DUALCASE
# for MKS sh
25917 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
25920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25921 # is contrary to our usage. Disable this feature.
25922 alias -g '${1+"$@"}'='"$@"'
25923 setopt NO_GLOB_SUBST
25925 case `(set -o) 2>/dev/null` in #(
25937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25938 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25941 # Prefer a ksh shell builtin over an external printf program on Solaris,
25942 # but without wasting forks for bash or zsh.
25943 if test -z "$BASH_VERSION$ZSH_VERSION" \
25944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25945 as_echo='print
-r --'
25946 as_echo_n='print
-rn --'
25947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25948 as_echo='printf %s
\n'
25949 as_echo_n='printf %s
'
25951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25952 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
25953 as_echo_n='/usr
/ucb
/echo -n'
25955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25956 as_echo_n_body='eval
25960 expr "X$arg" : "X\\(.*\\)$as_nl";
25961 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25963 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
25965 export as_echo_n_body
25966 as_echo_n='sh
-c $as_echo_n_body as_echo
'
25968 export as_echo_body
25969 as_echo='sh
-c $as_echo_body as_echo
'
25972 # The user is always right.
25973 if test "${PATH_SEPARATOR+set}" != set; then
25975 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25976 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25983 # We need space, tab and new line, in precisely that order. Quoting is
25984 # there to prevent editors from complaining about space-tab.
25985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25986 # splitting by setting IFS to empty value.)
25989 # Find who we are. Look in the path if we contain no directory separator.
25991 *[\\/]* ) as_myself=$0 ;;
25992 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25993 for as_dir in $PATH
25996 test -z "$as_dir" && as_dir=.
25997 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26003 # We did not find ourselves, most probably we were run as `sh COMMAND'
26004 # in which case we are not to be found in the path.
26005 if test "x$as_myself" = x
; then
26008 if test ! -f "$as_myself"; then
26009 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26013 # Unset variables that we do not need and which cause bugs (e.g. in
26014 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26015 # suppresses any "Segmentation fault" message there. '((' could
26016 # trigger a bug in pdksh 5.2.14.
26017 for as_var
in BASH_ENV ENV MAIL MAILPATH
26018 do eval test x\
${$as_var+set} = xset \
26019 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
26032 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
26035 # as_fn_error ERROR [LINENO LOG_FD]
26036 # ---------------------------------
26037 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26038 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26039 # script with status $?, using 1 if that was 0.
26042 as_status
=$?
; test $as_status -eq 0 && as_status
=1
26044 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
26045 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26047 $as_echo "$as_me: error: $1" >&2
26048 as_fn_exit
$as_status
26052 # as_fn_set_status STATUS
26053 # -----------------------
26054 # Set $? to STATUS, without forking.
26055 as_fn_set_status
()
26058 } # as_fn_set_status
26060 # as_fn_exit STATUS
26061 # -----------------
26062 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26066 as_fn_set_status
$1
26072 # Portably unset VAR.
26075 { eval $1=; unset $1;}
26077 as_unset
=as_fn_unset
26078 # as_fn_append VAR VALUE
26079 # ----------------------
26080 # Append the text in VALUE to the end of the definition contained in VAR. Take
26081 # advantage of any shell optimizations that allow amortized linear growth over
26082 # repeated appends, instead of the typical quadratic growth present in naive
26084 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
26085 eval 'as_fn_append ()
26096 # as_fn_arith ARG...
26097 # ------------------
26098 # Perform arithmetic evaluation on the ARGs, and store the result in the
26099 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26100 # must be portable across $(()) and expr.
26101 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
26102 eval 'as_fn_arith ()
26109 as_val
=`expr "$@" || test $? -eq 1`
26114 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26115 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26121 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26122 as_basename
=basename
26127 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26133 as_me
=`$as_basename -- "$0" ||
26134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26135 X"$0" : 'X\(//\)$' \| \
26136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26138 sed '/^.*\/\([^/][^/]*\)\/*$/{
26152 # Avoid depending upon Character Ranges.
26153 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
26154 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26155 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
26156 as_cr_digits
='0123456789'
26157 as_cr_alnum
=$as_cr_Letters$as_cr_digits
26159 ECHO_C
= ECHO_N
= ECHO_T
=
26160 case `echo -n x` in #(((((
26162 case `echo 'xy\c'` in
26163 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26165 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
26172 rm -f conf$$ conf$$.exe conf$$.
file
26173 if test -d conf$$.dir
; then
26174 rm -f conf$$.dir
/conf$$.
file
26177 mkdir conf$$.dir
2>/dev
/null
26179 if (echo >conf$$.
file) 2>/dev
/null
; then
26180 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26182 # ... but there are two gotchas:
26183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26185 # In both cases, we have to default to `cp -p'.
26186 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26188 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26196 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26197 rmdir conf$$.dir
2>/dev
/null
26202 # Create "$as_dir" as a directory, including parents if necessary.
26207 -*) as_dir
=.
/$as_dir;;
26209 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
26213 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26214 *) as_qdir
=$as_dir;;
26216 as_dirs
="'$as_qdir' $as_dirs"
26217 as_dir
=`$as_dirname -- "$as_dir" ||
26218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26219 X"$as_dir" : 'X\(//\)[^/]' \| \
26220 X"$as_dir" : 'X\(//\)$' \| \
26221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26222 $as_echo X"$as_dir" |
26223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26227 /^X\(\/\/\)[^/].*/{
26240 test -d "$as_dir" && break
26242 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26243 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
26247 if mkdir
-p .
2>/dev
/null
; then
26248 as_mkdir_p
='mkdir -p "$as_dir"'
26250 test -d .
/-p && rmdir .
/-p
26254 if test -x / >/dev
/null
2>&1; then
26255 as_test_x
='test -x'
26257 if ls -dL / >/dev
/null
2>&1; then
26264 if test -d "$1"; then
26270 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26271 ???[sx]*):;;*)false;;esac;fi
26275 as_executable_p
=$as_test_x
26277 # Sed expression to map a string onto a valid CPP name.
26278 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26280 # Sed expression to map a string onto a valid variable name.
26281 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26285 ## ----------------------------------- ##
26286 ## Main body of $CONFIG_STATUS script. ##
26287 ## ----------------------------------- ##
26289 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
26291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26292 # Save the log message, to keep $0 and so on meaningful, and to
26293 # report actual input values of CONFIG_FILES etc. instead of their
26294 # values after options handling.
26296 This file was extended by $as_me, which was
26297 generated by GNU Autoconf 2.64. Invocation command line was
26299 CONFIG_FILES = $CONFIG_FILES
26300 CONFIG_HEADERS = $CONFIG_HEADERS
26301 CONFIG_LINKS = $CONFIG_LINKS
26302 CONFIG_COMMANDS = $CONFIG_COMMANDS
26305 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26310 case $ac_config_files in *"
26311 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
26314 case $ac_config_headers in *"
26315 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
26319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26320 # Files that config.status was made for.
26321 config_files="$ac_config_files"
26322 config_headers="$ac_config_headers"
26323 config_commands="$ac_config_commands"
26327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26329 \`$as_me' instantiates files and other configuration actions
26330 from templates according to the current configuration. Unless the files
26331 and actions are specified as TAGs, all are instantiated by default.
26333 Usage: $0 [OPTION]... [TAG]...
26335 -h, --help print this help, then exit
26336 -V, --version print version number and configuration settings, then exit
26337 -q, --quiet, --silent
26338 do not print progress messages
26339 -d, --debug don't remove temporary files
26340 --recheck update $as_me by reconfiguring in the same conditions
26341 --file=FILE[:TEMPLATE]
26342 instantiate the configuration file FILE
26343 --header=FILE[:TEMPLATE]
26344 instantiate the configuration header FILE
26346 Configuration files:
26349 Configuration headers:
26352 Configuration commands:
26355 Report bugs to the package provider."
26358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26361 configured by $0, generated by GNU Autoconf 2.64,
26362 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26364 Copyright (C) 2009 Free Software Foundation, Inc.
26365 This config.status script is free software; the Free Software Foundation
26366 gives unlimited permission to copy, distribute and modify it."
26371 test -n "\$AWK" || AWK=awk
26374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26375 # The default lists apply if the user does not specify any file.
26381 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26382 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26393 # Handling of the options.
26394 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26396 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26397 $as_echo "$ac_cs_version"; exit ;;
26398 --debug |
--debu |
--deb |
--de |
--d |
-d )
26400 --file |
--fil |
--fi |
--f )
26403 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26405 as_fn_append CONFIG_FILES
" '$ac_optarg'"
26406 ac_need_defaults
=false
;;
26407 --header |
--heade |
--head |
--hea )
26410 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26412 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
26413 ac_need_defaults
=false
;;
26415 # Conflict between --help and --header
26416 as_fn_error
"ambiguous option: \`$1'
26417 Try \`$0 --help' for more information.";;
26418 --help |
--hel |
-h )
26419 $as_echo "$ac_cs_usage"; exit ;;
26420 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26421 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26424 # This is an error.
26425 -*) as_fn_error
"unrecognized option: \`$1'
26426 Try \`$0 --help' for more information." ;;
26428 *) as_fn_append ac_config_targets
" $1"
26429 ac_need_defaults
=false
;;
26435 ac_configure_extra_args
=
26437 if $ac_cs_silent; then
26439 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26444 if \$ac_cs_recheck; then
26445 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26447 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26448 CONFIG_SHELL='$SHELL'
26449 export CONFIG_SHELL
26454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26458 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26459 ## Running $as_me. ##
26465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26475 # Handling of arguments.
26476 for ac_config_target
in $ac_config_targets
26478 case $ac_config_target in
26479 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
26480 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
26481 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26482 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
26483 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
26484 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
26486 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26491 # If the user did not use the arguments to specify the items to instantiate,
26492 # then the envvar interface is used. Set only those that are not.
26493 # We use the long form for the default assignment because of an extremely
26494 # bizarre bug on SunOS 4.1.3.
26495 if $ac_need_defaults; then
26496 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26497 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26498 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26501 # Have a temporary directory for convenience. Make it in the build tree
26502 # simply because there is no reason against having it here, and in addition,
26503 # creating and moving files from /tmp can sometimes cause problems.
26504 # Hook for its removal unless debugging.
26505 # Note that there is a small window in which the directory will not be cleaned:
26506 # after its creation but before its name has been assigned to `$tmp'.
26510 trap 'exit_status=$?
26511 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26513 trap 'as_fn_exit 1' 1 2 13 15
26515 # Create a (secure) tmp directory for tmp files.
26518 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26519 test -n "$tmp" && test -d "$tmp"
26522 tmp
=.
/conf$$
-$RANDOM
26523 (umask 077 && mkdir
"$tmp")
26524 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
26526 # Set up the scripts for CONFIG_FILES section.
26527 # No need to generate them if there are no CONFIG_FILES.
26528 # This happens for instance with `./config.status config.h'.
26529 if test -n "$CONFIG_FILES"; then
26531 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
26532 ac_cs_awk_getline
=:
26533 ac_cs_awk_pipe_init
=
26534 ac_cs_awk_read_file
='
26535 while ((getline aline < (F[key])) > 0)
26538 ac_cs_awk_pipe_fini
=
26540 ac_cs_awk_getline
=false
26541 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
26542 ac_cs_awk_read_file
='
26544 print "cat " F[key] " &&"
26545 '$ac_cs_awk_pipe_init
26546 # The final `:' finishes the AND list.
26547 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
26549 ac_cr
=`echo X | tr X '\015'`
26550 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26551 # But we know of no other shell where ac_cr would be empty at this
26552 # point, so we can use a bashism as a fallback.
26553 if test "x$ac_cr" = x
; then
26554 eval ac_cr
=\$
\'\\r
\'
26556 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26557 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26560 ac_cs_awk_cr
=$ac_cr
26563 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26566 # Create commands to substitute file output variables.
26568 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26569 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26570 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
26573 } >conf$
$files.sh
&&
26574 . .
/conf$
$files.sh ||
26575 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
26576 rm -f conf$
$files.sh
26579 echo "cat >conf$$subs.awk <<_ACEOF" &&
26580 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26582 } >conf$$subs.sh ||
26583 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26584 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26586 for ac_last_try in false false false false false :; do
26587 . ./conf$$subs.sh ||
26588 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26590 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
26591 if test $ac_delim_n = $ac_delim_num; then
26593 elif $ac_last_try; then
26594 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
26596 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26599 rm -f conf$$subs.sh
26601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26602 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
26606 s/^/S["/; s
/!.
*/"]=/
26616 s/\(.\{148\}\).*/\1/
26618 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
26623 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26630 s/\(.\{148\}\).*/\1/
26632 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
26636 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
26641 ' <conf$$subs.awk | sed '
26646 ' >>$CONFIG_STATUS || ac_write_fail=1
26647 rm -f conf$$subs.awk
26648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26650 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
26651 for (key in S) S_is_set[key] = 1
26653 \$ac_cs_awk_pipe_init
26657 nfields = split(line, field, "@
")
26659 len = length(field[1])
26660 for (i = 2; i < nfields; i++) {
26662 keylen = length(key)
26663 if (S_is_set[key]) {
26665 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26666 len += length(value) + length(field[++i])
26671 if (nfields == 3 && !substed) {
26673 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26674 \$ac_cs_awk_read_file
26680 \$ac_cs_awk_pipe_fini
26683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26684 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26685 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
26688 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
26689 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
26692 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26693 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
26694 # trailing colons and then remove the whole line if VPATH becomes empty
26695 # (actually we leave an empty line to preserve line numbers).
26696 if test "x
$srcdir" = x.; then
26697 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26698 s/:*\$(srcdir):*/:/
26699 s/:*\${srcdir}:*/:/
26701 s/^\([^=]*=[ ]*\):*/\1/
26707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26708 fi # test -n "$CONFIG_FILES"
26710 # Set up the scripts for CONFIG_HEADERS section.
26711 # No need to generate them if there are no CONFIG_HEADERS.
26712 # This happens for instance with `./config.status Makefile'.
26713 if test -n "$CONFIG_HEADERS"; then
26714 cat >"$tmp/defines.
awk" <<\_ACAWK ||
26718 # Transform confdefs.h into an awk script `defines.awk', embedded as
26719 # here-document in config.status, that substitutes the proper values into
26720 # config.h.in to produce config.h.
26722 # Create a delimiter string that does not exist in confdefs.h, to ease
26723 # handling of long lines.
26725 for ac_last_try in false false :; do
26726 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
26727 if test -z "$ac_t"; then
26729 elif $ac_last_try; then
26730 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
26732 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
26736 # For the awk script, D is an array of macro values keyed by name,
26737 # likewise P contains macro parameters if any. Preserve backslash
26738 # newline sequences.
26740 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26742 s/.\{148\}/&'"$ac_delim"'/g
26745 s/^[ ]*#[ ]*define[ ][ ]*/ /
26752 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26754 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26759 D["\
1"]=" \
3\\\\\\n
"\\/p
26761 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26766 s/.\{148\}/&'"$ac_delim"'/g
26771 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26774 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26776 ' <confdefs.h | sed '
26777 s/'"$ac_delim"'/"\\\
26778 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26781 for (key in D) D_is_set[key] = 1
26784 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26786 split(line, arg, " ")
26787 if (arg[1] == "#") {
26791 defundef
= substr
(arg
[1], 2)
26794 split(mac1
, mac2
, "(") #)
26796 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26797 if (D_is_set
[macro
]) {
26798 # Preserve the white space surrounding the "#".
26799 print prefix
"define", macro P
[macro
] D
[macro
]
26802 # Replace #undef with comments. This is necessary, for example,
26803 # in the case of _POSIX_SOURCE, which is predefined and required
26804 # on some systems where configure will not decide to define it.
26805 if (defundef
== "undef") {
26806 print
"/*", prefix defundef
, macro
, "*/"
26814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26815 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
26816 fi # test -n "$CONFIG_HEADERS"
26819 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26824 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26826 case $ac_mode$ac_tag in
26828 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
26829 :[FH
]-) ac_tag
=-:-;;
26830 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26847 -) ac_f
="$tmp/stdin";;
26848 *) # Look for the file first in the build tree, then in the source tree
26849 # (if the path is not absolute). The absolute path cannot be DOS-style,
26850 # because $ac_f cannot contain `:'.
26854 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26856 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
26858 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26859 as_fn_append ac_file_inputs
" '$ac_f'"
26862 # Let's still pretend it is `configure' which instantiates (i.e., don't
26863 # use $as_me), people would be surprised to read:
26864 # /* config.h. Generated by config.status. */
26865 configure_input
='Generated from '`
26866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26868 if test x
"$ac_file" != x-
; then
26869 configure_input
="$ac_file. $configure_input"
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26871 $as_echo "$as_me: creating $ac_file" >&6;}
26873 # Neutralize special characters interpreted by sed in replacement strings.
26874 case $configure_input in #(
26875 *\
&* |
*\|
* |
*\\* )
26876 ac_sed_conf_input
=`$as_echo "$configure_input" |
26877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26878 *) ac_sed_conf_input
=$configure_input;;
26882 *:-:* |
*:-) cat >"$tmp/stdin" \
26883 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
26888 ac_dir
=`$as_dirname -- "$ac_file" ||
26889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26890 X"$ac_file" : 'X\(//\)[^/]' \| \
26891 X"$ac_file" : 'X\(//\)$' \| \
26892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26893 $as_echo X"$ac_file" |
26894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26898 /^X\(\/\/\)[^/].*/{
26911 as_dir
="$ac_dir"; as_fn_mkdir_p
26915 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26917 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26918 # A ".." for each directory in $ac_dir_suffix.
26919 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26920 case $ac_top_builddir_sub in
26921 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26922 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26925 ac_abs_top_builddir
=$ac_pwd
26926 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26927 # for backward compatibility:
26928 ac_top_builddir
=$ac_top_build_prefix
26931 .
) # We are building in place.
26933 ac_top_srcdir
=$ac_top_builddir_sub
26934 ac_abs_top_srcdir
=$ac_pwd ;;
26935 [\\/]* | ?
:[\\/]* ) # Absolute name.
26936 ac_srcdir
=$srcdir$ac_dir_suffix;
26937 ac_top_srcdir
=$srcdir
26938 ac_abs_top_srcdir
=$srcdir ;;
26939 *) # Relative name.
26940 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26941 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26942 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26944 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26956 # If the template does not know about datarootdir, expand it.
26957 # FIXME: This hack should be removed a few years after 2.60.
26958 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26969 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26970 *datarootdir
*) ac_datarootdir_seen
=yes;;
26971 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26973 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26976 ac_datarootdir_hack='
26977 s&@datadir@&$datadir&g
26978 s&@docdir@&$docdir&g
26979 s&@infodir@&$infodir&g
26980 s&@localedir@&$localedir&g
26981 s&@mandir@&$mandir&g
26982 s&\\\${datarootdir}&$datarootdir&g' ;;
26986 # Neutralize VPATH when `$srcdir' = `.'.
26987 # Shell code in configure.ac might set extrasub.
26988 # FIXME: do we really want to maintain this feature?
26989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26990 ac_sed_extra="$ac_vpsub
26993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26995 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26996 s|@configure_input@|
$ac_sed_conf_input|
;t t
26997 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26998 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26999 s
&@srcdir@
&$ac_srcdir&;t t
27000 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
27001 s
&@top_srcdir@
&$ac_top_srcdir&;t t
27002 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
27003 s
&@builddir@
&$ac_builddir&;t t
27004 s
&@abs_builddir@
&$ac_abs_builddir&;t t
27005 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
27006 $ac_datarootdir_hack
27008 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
27009 if $ac_cs_awk_getline; then
27010 $AWK -f "$tmp/subs.
awk"
27012 $AWK -f "$tmp/subs.
awk" | $SHELL
27014 || as_fn_error "could not create
$ac_file" "$LINENO" 5
27016 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
27018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
27020 which seems to be undefined. Please make sure it is defined." >&5
27021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
27022 which seems to be undefined. Please make sure it is defined." >&2;}
27026 -) cat "$tmp/out" && rm -f "$tmp/out";;
27027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27029 || as_fn_error "could not create $ac_file" "$LINENO" 5
27035 if test x"$ac_file" != x-; then
27037 $as_echo "/* $configure_input */" \
27038 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27039 } >"$tmp/config.h" \
27040 || as_fn_error "could not create $ac_file" "$LINENO" 5
27041 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27046 mv "$tmp/config.h" "$ac_file" \
27047 || as_fn_error "could not create $ac_file" "$LINENO" 5
27050 $as_echo "/* $configure_input */" \
27051 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27052 || as_fn_error "could not create -" "$LINENO" 5
27056 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27057 $as_echo "$as_me: executing $ac_file commands" >&6;}
27062 case $ac_file$ac_mode in
27063 "as":F) chmod +x as ;;
27064 "collect-ld":F) chmod +x collect-ld ;;
27065 "nm":F) chmod +x nm ;;
27067 case ${CONFIG_HEADERS} in
27068 *auto-host.h:config.in*)
27071 # Make sure all the subdirs exist.
27072 for d in $subdirs doc build c-family
27074 test -d $d || mkdir $d
27084 ac_clean_files=$ac_clean_files_save
27086 test $ac_write_fail = 0 ||
27087 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27090 # configure is writing to config.log, and then calls config.status.
27091 # config.status does its own redirection, appending to config.log.
27092 # Unfortunately, on DOS this fails, as config.log is still kept open
27093 # by configure, so config.status won't be able to
write to it
; its
27094 # output is simply discarded. So we exec the FD to /dev/null,
27095 # effectively closing config.log, so it can be properly (re)opened and
27096 # appended to by config.status. When coming back to configure, we
27097 # need to make the FD available again.
27098 if test "$no_create" != yes; then
27100 ac_config_status_args
=
27101 test "$silent" = yes &&
27102 ac_config_status_args
="$ac_config_status_args --quiet"
27104 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27106 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27107 # would make configure fail if this is the last instruction.
27108 $ac_cs_success || as_fn_exit $?
27110 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27112 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}