2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU TM Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
588 PACKAGE_NAME
='GNU TM Runtime Library'
589 PACKAGE_TARNAME
='libitm'
590 PACKAGE_VERSION
='1.0'
591 PACKAGE_STRING
='GNU TM Runtime Library 1.0'
593 PACKAGE_URL
='http://www.gnu.org/software/libitm/'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars
='am__EXEEXT_FALSE
648 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
649 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
650 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
651 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
652 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
653 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
661 MAINTAINER_MODE_FALSE
687 am__fastdepCCAS_FALSE
730 INSTALL_STRIP_PROGRAM
786 program_transform_name
799 enable_option_checking
800 enable_version_specific_runtime_libs
801 enable_generated_files_in_srcdir
805 enable_dependency_tracking
812 enable_maintainer_mode
818 with_gcc_major_version_only
820 ac_precious_vars
='build_alias
828 # Initialize some variables set by options.
830 ac_init_version
=false
831 ac_unrecognized_opts
=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name
=s
,x
,x
,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir
='${exec_prefix}/bin'
857 sbindir
='${exec_prefix}/sbin'
858 libexecdir
='${exec_prefix}/libexec'
859 datarootdir
='${prefix}/share'
860 datadir
='${datarootdir}'
861 sysconfdir
='${prefix}/etc'
862 sharedstatedir
='${prefix}/com'
863 localstatedir
='${prefix}/var'
864 includedir
='${prefix}/include'
865 oldincludedir
='/usr/include'
866 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir
='${datarootdir}/info'
872 libdir
='${exec_prefix}/lib'
873 localedir
='${datarootdir}/locale'
874 mandir
='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\
$ac_option
888 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
901 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
904 -build |
--build |
--buil |
--bui |
--bu)
905 ac_prev
=build_alias
;;
906 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
907 build_alias
=$ac_optarg ;;
909 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
910 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
911 ac_prev
=cache_file
;;
912 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
913 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
914 cache_file
=$ac_optarg ;;
917 cache_file
=config.cache
;;
919 -datadir |
--datadir |
--datadi |
--datad)
921 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
922 datadir
=$ac_optarg ;;
924 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
925 |
--dataroo |
--dataro |
--datar)
926 ac_prev
=datarootdir
;;
927 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
928 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
929 datarootdir
=$ac_optarg ;;
931 -disable-* |
--disable-*)
932 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
935 as_fn_error $?
"invalid feature name: $ac_useropt"
936 ac_useropt_orig
=$ac_useropt
937 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep
=', ';;
945 eval enable_
$ac_useropt=no
;;
947 -docdir |
--docdir |
--docdi |
--doc |
--do)
949 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
952 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
954 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
957 -enable-* |
--enable-*)
958 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
959 # Reject names that are not valid shell variable names.
960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
961 as_fn_error $?
"invalid feature name: $ac_useropt"
962 ac_useropt_orig
=$ac_useropt
963 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
968 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep
=', ';;
971 eval enable_
$ac_useropt=\
$ac_optarg ;;
973 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
974 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
975 |
--exec |
--exe |
--ex)
976 ac_prev
=exec_prefix
;;
977 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
978 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
979 |
--exec=* |
--exe=* |
--ex=*)
980 exec_prefix
=$ac_optarg ;;
982 -gas |
--gas |
--ga |
--g)
983 # Obsolete; use --with-gas.
986 -help |
--help |
--hel |
--he |
-h)
988 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
989 ac_init_help
=recursive
;;
990 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
991 ac_init_help
=short
;;
993 -host |
--host |
--hos |
--ho)
994 ac_prev
=host_alias
;;
995 -host=* |
--host=* |
--hos=* |
--ho=*)
996 host_alias
=$ac_optarg ;;
998 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1000 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1002 htmldir
=$ac_optarg ;;
1004 -includedir |
--includedir |
--includedi |
--included |
--include \
1005 |
--includ |
--inclu |
--incl |
--inc)
1006 ac_prev
=includedir
;;
1007 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1008 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1009 includedir
=$ac_optarg ;;
1011 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1013 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1014 infodir
=$ac_optarg ;;
1016 -libdir |
--libdir |
--libdi |
--libd)
1018 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1019 libdir
=$ac_optarg ;;
1021 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1022 |
--libexe |
--libex |
--libe)
1023 ac_prev
=libexecdir
;;
1024 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1025 |
--libexe=* |
--libex=* |
--libe=*)
1026 libexecdir
=$ac_optarg ;;
1028 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1029 ac_prev
=localedir
;;
1030 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1031 localedir
=$ac_optarg ;;
1033 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1034 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1035 ac_prev
=localstatedir
;;
1036 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1037 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1038 localstatedir
=$ac_optarg ;;
1040 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1042 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1043 mandir
=$ac_optarg ;;
1045 -nfp |
--nfp |
--nf)
1046 # Obsolete; use --without-fp.
1049 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1050 |
--no-cr |
--no-c |
-n)
1053 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1054 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1057 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1058 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1059 |
--oldin |
--oldi |
--old |
--ol |
--o)
1060 ac_prev
=oldincludedir
;;
1061 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1062 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1063 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1064 oldincludedir
=$ac_optarg ;;
1066 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1068 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1069 prefix
=$ac_optarg ;;
1071 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1072 |
--program-pre |
--program-pr |
--program-p)
1073 ac_prev
=program_prefix
;;
1074 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1075 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1076 program_prefix
=$ac_optarg ;;
1078 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1079 |
--program-suf |
--program-su |
--program-s)
1080 ac_prev
=program_suffix
;;
1081 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1082 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1083 program_suffix
=$ac_optarg ;;
1085 -program-transform-name |
--program-transform-name \
1086 |
--program-transform-nam |
--program-transform-na \
1087 |
--program-transform-n |
--program-transform- \
1088 |
--program-transform |
--program-transfor \
1089 |
--program-transfo |
--program-transf \
1090 |
--program-trans |
--program-tran \
1091 |
--progr-tra |
--program-tr |
--program-t)
1092 ac_prev
=program_transform_name
;;
1093 -program-transform-name=* |
--program-transform-name=* \
1094 |
--program-transform-nam=* |
--program-transform-na=* \
1095 |
--program-transform-n=* |
--program-transform-=* \
1096 |
--program-transform=* |
--program-transfor=* \
1097 |
--program-transfo=* |
--program-transf=* \
1098 |
--program-trans=* |
--program-tran=* \
1099 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1100 program_transform_name
=$ac_optarg ;;
1102 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1104 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1105 pdfdir
=$ac_optarg ;;
1107 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1109 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1112 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1113 |
-silent |
--silent |
--silen |
--sile |
--sil)
1116 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1118 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1120 sbindir
=$ac_optarg ;;
1122 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1123 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1124 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1126 ac_prev
=sharedstatedir
;;
1127 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1128 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1129 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1131 sharedstatedir
=$ac_optarg ;;
1133 -site |
--site |
--sit)
1135 -site=* |
--site=* |
--sit=*)
1138 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1140 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1141 srcdir
=$ac_optarg ;;
1143 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1144 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1145 ac_prev
=sysconfdir
;;
1146 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1147 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1148 sysconfdir
=$ac_optarg ;;
1150 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1151 ac_prev
=target_alias
;;
1152 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1153 target_alias
=$ac_optarg ;;
1155 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1158 -version |
--version |
--versio |
--versi |
--vers |
-V)
1159 ac_init_version
=: ;;
1162 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1165 as_fn_error $?
"invalid package name: $ac_useropt"
1166 ac_useropt_orig
=$ac_useropt
1167 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1172 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep
=', ';;
1175 eval with_
$ac_useropt=\
$ac_optarg ;;
1177 -without-* |
--without-*)
1178 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1181 as_fn_error $?
"invalid package name: $ac_useropt"
1182 ac_useropt_orig
=$ac_useropt
1183 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep
=', ';;
1191 eval with_
$ac_useropt=no
;;
1194 # Obsolete; use --with-x.
1197 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1198 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1199 ac_prev
=x_includes
;;
1200 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1201 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1202 x_includes
=$ac_optarg ;;
1204 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1205 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1206 ac_prev
=x_libraries
;;
1207 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1208 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1209 x_libraries
=$ac_optarg ;;
1211 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1212 Try \`$0 --help' for more information"
1216 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 case $ac_envvar in #(
1219 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1220 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1222 eval $ac_envvar=\
$ac_optarg
1223 export $ac_envvar ;;
1226 # FIXME: should be removed in autoconf 3.0.
1227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 if test -n "$ac_prev"; then
1237 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1238 as_fn_error $?
"missing argument to $ac_option"
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1244 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 # Check all directory arguments for consistency.
1250 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
1255 eval ac_val
=\$
$ac_var
1256 # Remove trailing slashes.
1259 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\
$ac_val;;
1262 # Be sure to have absolute directory names.
1264 [\\/$
]* | ?
:[\\/]* ) continue;;
1265 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1267 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1270 # There might be people who depend on the old broken behavior: `$host'
1271 # used to hold the argument of --host etc.
1272 # FIXME: To remove some day.
1275 target
=$target_alias
1277 # FIXME: To remove some day.
1278 if test "x$host_alias" != x
; then
1279 if test "x$build_alias" = x
; then
1280 cross_compiling
=maybe
1281 elif test "x$build_alias" != "x$host_alias"; then
1287 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1289 test "$silent" = yes && exec 6>/dev
/null
1292 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di
=`ls -di .` &&
1294 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error $?
"working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error $?
"pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted
=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir
=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1332 ac_srcdir_defaulted
=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1336 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1350 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 for ac_var
in $ac_precious_vars; do
1353 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1354 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1355 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1356 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1360 # Report the --help message.
1362 if test "$ac_init_help" = "long"; then
1363 # Omit some internal or obsolete options to make the list less imposing.
1364 # This message is too long to be a string in the A/UX 3.1 sh.
1366 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1368 Usage: $0 [OPTION]... [VAR=VALUE]...
1370 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1371 VAR=VALUE. See below for descriptions of some of the useful variables.
1373 Defaults for the options are specified in brackets.
1376 -h, --help display this help and exit
1377 --help=short display options specific to this package
1378 --help=recursive display the short help of all the included packages
1379 -V, --version display version information and exit
1380 -q, --quiet, --silent do not print \`checking ...' messages
1381 --cache-file=FILE cache test results in FILE [disabled]
1382 -C, --config-cache alias for \`--cache-file=config.cache'
1383 -n, --no-create do not create output files
1384 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386 Installation directories:
1387 --prefix=PREFIX install architecture-independent files in PREFIX
1388 [$ac_default_prefix]
1389 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 By default, \`make install' will install all the files in
1393 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1394 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1395 for instance \`--prefix=\$HOME'.
1397 For better control, use the options below.
1399 Fine tuning of the installation directories:
1400 --bindir=DIR user executables [EPREFIX/bin]
1401 --sbindir=DIR system admin executables [EPREFIX/sbin]
1402 --libexecdir=DIR program executables [EPREFIX/libexec]
1403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --libdir=DIR object code libraries [EPREFIX/lib]
1407 --includedir=DIR C header files [PREFIX/include]
1408 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1409 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1410 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1411 --infodir=DIR info documentation [DATAROOTDIR/info]
1412 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1413 --mandir=DIR man documentation [DATAROOTDIR/man]
1414 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1415 --htmldir=DIR html documentation [DOCDIR]
1416 --dvidir=DIR dvi documentation [DOCDIR]
1417 --pdfdir=DIR pdf documentation [DOCDIR]
1418 --psdir=DIR ps documentation [DOCDIR]
1424 --program-prefix=PREFIX prepend PREFIX to installed program names
1425 --program-suffix=SUFFIX append SUFFIX to installed program names
1426 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1429 --build=BUILD configure
for building on BUILD
[guessed
]
1430 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1431 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1435 if test -n "$ac_init_help"; then
1436 case $ac_init_help in
1437 short | recursive
) echo "Configuration of GNU TM Runtime Library 1.0:";;
1442 --disable-option-checking ignore unrecognized
--enable/--with options
1443 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1444 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1445 --enable-version-specific-runtime-libs
1446 Specify that runtime libraries should be installed
1447 in a compiler-specific directory
[default
=no
]
1448 --enable-generated-files-in-srcdir
1449 put copies of generated files
in source dir intended
1450 for creating
source tarballs
for users without
1451 texinfo bison or flex.
[default
=no
]
1452 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1453 --disable-silent-rules verbose build output
(undo
: "make V=0")
1454 --enable-multilib build many library versions
(default
)
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1460 --enable-static[=PKGS
] build static libraries
[default
=yes]
1461 --enable-fast-install[=PKGS
]
1462 optimize
for fast installation
[default
=yes]
1463 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1464 --enable-maintainer-mode
1465 enable make rules and dependencies not useful
(and
1466 sometimes confusing
) to the casual installer
1467 --enable-linux-futex use the Linux futex system call
[default
=default
]
1468 --enable-tls Use thread-local storage
[default
=yes]
1469 --enable-symvers=STYLE enables symbol versioning of the shared library
1471 --disable-werror disable building with
-Werror
1472 --enable-cet enable Intel CET
in target libraries
[default
=auto
]
1475 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1476 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1477 --with-toolexeclibdir=DIR
1478 install libraries built with a cross compiler within
1480 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1482 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1483 --with-gcc-major-version-only
1484 use only GCC major number
in filesystem paths
1486 Some influential environment variables
:
1487 CC C compiler
command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1490 nonstandard directory
<lib dir
>
1491 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1492 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1493 you have headers
in a nonstandard directory
<include dir
>
1494 CXX C
++ compiler
command
1495 CXXFLAGS C
++ compiler flags
1496 CCAS assembler compiler
command (defaults to CC
)
1497 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1499 CXXCPP C
++ preprocessor
1501 Use these variables to override the choices made by
`configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to the package provider.
1505 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1506 General help using GNU software: <http://www.gnu.org/gethelp/>.
1511 if test "$ac_init_help" = "recursive"; then
1512 # If there are subdirs, report their specific --help.
1513 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1514 test -d "$ac_dir" ||
1515 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1536 .) # We are building in place.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1560 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1569 GNU TM Runtime Library configure 1.0
1570 generated by GNU Autoconf 2.69
1572 Copyright (C) 2012 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1579 ## ------------------------ ##
1580 ## Autoconf initialization. ##
1581 ## ------------------------ ##
1583 # ac_fn_c_try_compile LINENO
1584 # --------------------------
1585 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586 ac_fn_c_try_compile ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 rm -f conftest.$ac_objext
1590 if { { ac_try="$ac_compile"
1592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1593 *) ac_try_echo
=$ac_try;;
1595 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596 $as_echo "$ac_try_echo"; } >&5
1597 (eval "$ac_compile") 2>conftest.err
1599 if test -s conftest.err
; then
1600 grep -v '^ *+' conftest.err
>conftest.er1
1601 cat conftest.er1
>&5
1602 mv -f conftest.er1 conftest.err
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && {
1606 test -z "$ac_c_werror_flag" ||
1607 test ! -s conftest.err
1608 } && test -s conftest.
$ac_objext; then :
1611 $as_echo "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.
$ac_ext >&5
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status
$ac_retval
1619 } # ac_fn_c_try_compile
1621 # ac_fn_cxx_try_compile LINENO
1622 # ----------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_cxx_try_compile
()
1626 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1627 rm -f conftest.
$ac_objext
1628 if { { ac_try
="$ac_compile"
1630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_cxx_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_cxx_try_compile
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 rm -f conftest.$ac_objext conftest$ac_exeext
1666 if { { ac_try="$ac_link"
1668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1669 *) ac_try_echo
=$ac_try;;
1671 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1675 if test -s conftest.err
; then
1676 grep -v '^ *+' conftest.err
>conftest.er1
1677 cat conftest.er1
>&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest
$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 test -x conftest
$ac_exeext
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.
$ac_ext >&5
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status
$ac_retval
1703 } # ac_fn_c_try_link
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile
()
1711 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \
${$3+:} false
; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1722 if ac_fn_c_try_compile
"$LINENO"; then :
1727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 } # ac_fn_c_check_header_compile
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1742 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i && {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 if { { ac_try="$ac_link"
1782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1783 *) ac_try_echo
=$ac_try;;
1785 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
1792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_try") 2>&5
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1807 ac_retval=$ac_status
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \${$3+:} false; then :
1824 $as_echo_n "(cached) " >&6
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1838 # include <limits.h>
1840 # include <assert.h>
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1867 if ac_fn_c_try_link "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext \
1873 conftest$ac_exeext conftest.$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_func
1882 # ac_fn_cxx_try_cpp LINENO
1883 # ------------------------
1884 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1885 ac_fn_cxx_try_cpp ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_cpp conftest.$ac_ext"
1890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1891 *) ac_try_echo
=$ac_try;;
1893 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1897 if test -s conftest.err
; then
1898 grep -v '^ *+' conftest.err
>conftest.er1
1899 cat conftest.er1
>&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } > conftest.i
&& {
1904 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.
$ac_ext >&5
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status
$ac_retval
1917 } # ac_fn_cxx_try_cpp
1919 # ac_fn_cxx_try_link LINENO
1920 # -------------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_cxx_try_link
()
1924 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1925 rm -f conftest.
$ac_objext conftest
$ac_exeext
1926 if { { ac_try
="$ac_link"
1928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_cxx_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest$ac_exeext && {
1945 test "$cross_compiling" = yes ||
1946 test -x conftest$ac_exeext
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957 # interfere with the next link command; also delete a directory that is
1958 # left behind by Apple's compiler. We do this before executing the actions.
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1963 } # ac_fn_cxx_try_link
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1970 ac_fn_c_check_header_mongrel ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if eval \${$3+:} false; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1994 ac_header_compiler=no
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2010 ac_header_preproc=no
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2042 eval "$3=\$ac_header_compiler"
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050 } # ac_fn_c_check_header_mongrel
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2090 if ac_fn_c_try_compile "$LINENO"; then :
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_type
2106 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2107 # --------------------------------------------
2108 # Tries to find the compile-time value of EXPR in a program that includes
2109 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2111 ac_fn_c_compute_int ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if test "$cross_compiling" = yes; then
2115 # Depending upon the size, compute the lo and hi bounds.
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2122 static int test_array [1 - 2 * !(($2) >= 0)];
2124 return test_array [0];
2130 if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2141 return test_array [0];
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid; break
2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151 if test $ac_lo -le $ac_mid; then
2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) < 0)];
2168 return test_array [0];
2174 if ac_fn_c_try_compile "$LINENO"; then :
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2185 return test_array [0];
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_lo=$ac_mid; break
2194 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2195 if test $ac_mid -le $ac_hi; then
2199 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 # Binary search between lo and hi bounds.
2210 while test "x$ac_lo" != "x$ac_hi"; do
2211 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220 return test_array [0];
2226 if ac_fn_c_try_compile "$LINENO"; then :
2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2241 static long int longval () { return $2; }
2242 static unsigned long int ulongval () { return $2; }
2249 FILE *f = fopen ("conftest.val", "w");
2254 long int i = longval ();
2257 fprintf (f, "%ld", i);
2261 unsigned long int i = ulongval ();
2264 fprintf (f, "%lu", i);
2266 /* Do not output a trailing newline, as this causes \r\n confusion
2267 on some platforms. */
2268 return ferror (f) || fclose (f) != 0;
2274 if ac_fn_c_try_run "$LINENO"; then :
2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280 conftest.$ac_objext conftest.beam conftest.$ac_ext
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2287 } # ac_fn_c_compute_int
2289 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2290 # ---------------------------------------------
2291 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2293 ac_fn_c_check_decl ()
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2297 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2299 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2300 if eval \${$3+:} false; then :
2301 $as_echo_n "(cached) " >&6
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 #ifndef $as_decl_name
2311 (void) $as_decl_use;
2313 (void) $as_decl_name;
2321 if ac_fn_c_try_compile "$LINENO"; then :
2326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 } # ac_fn_c_check_decl
2334 cat >config.log <<_ACEOF
2335 This file contains any messages produced by compilers while
2336 running configure, to aid debugging if configure makes a mistake.
2338 It was created by GNU TM Runtime Library $as_me 1.0, which was
2339 generated by GNU Autoconf 2.69. Invocation command line was
2351 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2352 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2353 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2354 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2355 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2357 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2358 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2360 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2361 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2362 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2363 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2364 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2365 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2366 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 $as_echo "PATH: $as_dir"
2391 # Keep a trace of the command line.
2392 # Strip out --no-create and --no-recursion so they do not pile up.
2393 # Strip out --silent because we don't want to record it for future runs.
2394 # Also quote any args containing shell meta-characters.
2395 # Make two passes to allow for proper duplicate-argument suppression.
2399 ac_must_keep_next=false
2405 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2407 | -silent | --silent | --silen | --sile | --sil)
2410 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2413 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2415 as_fn_append ac_configure_args1 " '$ac_arg'"
2416 if test $ac_must_keep_next = true; then
2417 ac_must_keep_next=false # Got value, back to normal.
2420 *=* | --config-cache | -C | -disable-* | --disable-* \
2421 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2422 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2423 | -with-* | --with-* | -without-* | --without-* | --x)
2424 case "$ac_configure_args0 " in
2425 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2428 -* ) ac_must_keep_next=true ;;
2431 as_fn_append ac_configure_args " '$ac_arg'"
2436 { ac_configure_args0=; unset ac_configure_args0;}
2437 { ac_configure_args1=; unset ac_configure_args1;}
2439 # When interrupted or exit'd, cleanup temporary files, and complete
2440 # config.log. We remove comments because anyway the quotes in there
2441 # would cause problems or look ugly.
2442 # WARNING: Use '\'' to represent an apostrophe within the trap.
2443 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2444 trap 'exit_status=$?
2445 # Save into config.log some information that might help in debugging.
2449 $as_echo "## ---------------- ##
2450 ## Cache variables. ##
2451 ## ---------------- ##"
2453 # The following way of writing the cache mishandles newlines in values,
2455 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2456 eval ac_val=\$$ac_var
2460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2464 _ | IFS | as_nl) ;; #(
2465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2466 *) { eval $ac_var=; unset $ac_var;} ;;
2471 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2472 *${as_nl}ac_space=\ *)
2474 "s/'\''/'\''\\\\'\'''\''/g;
2475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2485 $as_echo "## ----------------- ##
2486 ## Output variables. ##
2487 ## ----------------- ##"
2489 for ac_var in $ac_subst_vars
2491 eval ac_val=\$$ac_var
2493 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495 $as_echo "$ac_var='\''$ac_val'\''"
2499 if test -n "$ac_subst_files"; then
2500 $as_echo "## ------------------- ##
2501 ## File substitutions. ##
2502 ## ------------------- ##"
2504 for ac_var in $ac_subst_files
2506 eval ac_val=\$$ac_var
2508 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510 $as_echo "$ac_var='\''$ac_val'\''"
2515 if test -s confdefs.h; then
2516 $as_echo "## ----------- ##
2523 test "$ac_signal" != 0 &&
2524 $as_echo "$as_me: caught signal $ac_signal"
2525 $as_echo "$as_me: exit $exit_status"
2527 rm -f core *.core core.conftest.* &&
2528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2531 for ac_signal in 1 2 13 15; do
2532 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2537 rm -f -r conftest* confdefs.h
2539 $as_echo "/* confdefs.h */" > confdefs.h
2541 # Predefined preprocessor variables.
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_NAME "$PACKAGE_NAME"
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2551 cat >>confdefs.h <<_ACEOF
2552 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2555 cat >>confdefs.h <<_ACEOF
2556 #define PACKAGE_STRING "$PACKAGE_STRING"
2559 cat >>confdefs.h <<_ACEOF
2560 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_URL "$PACKAGE_URL"
2568 # Let the site file select an alternate cache file if it wants to.
2569 # Prefer an explicitly selected file to automatically selected ones.
2572 if test -n "$CONFIG_SITE"; then
2573 # We do not want a PATH search for config.site.
2574 case $CONFIG_SITE in #((
2575 -*) ac_site_file1=./$CONFIG_SITE;;
2576 */*) ac_site_file1=$CONFIG_SITE;;
2577 *) ac_site_file1=./$CONFIG_SITE;;
2579 elif test "x$prefix" != xNONE; then
2580 ac_site_file1=$prefix/share/config.site
2581 ac_site_file2=$prefix/etc/config.site
2583 ac_site_file1=$ac_default_prefix/share/config.site
2584 ac_site_file2=$ac_default_prefix/etc/config.site
2586 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2588 test "x$ac_site_file" = xNONE && continue
2589 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2591 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2592 sed 's/^/| /' "$ac_site_file" >&5
2594 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2596 as_fn_error $? "failed to load site
script $ac_site_file
2597 See \
`config.log' for more details" "$LINENO" 5; }
2601 if test -r "$cache_file"; then
2602 # Some versions of bash will fail to source /dev/null (special files
2603 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2604 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2606 $as_echo "$as_me: loading cache $cache_file" >&6;}
2608 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2609 *) . "./$cache_file";;
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2614 $as_echo "$as_me: creating cache $cache_file" >&6;}
2618 # Check that the precious variables saved in the cache have kept the same
2620 ac_cache_corrupted=false
2621 for ac_var in $ac_precious_vars; do
2622 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2623 eval ac_new_set=\$ac_env_${ac_var}_set
2624 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2625 eval ac_new_val=\$ac_env_${ac_var}_value
2626 case $ac_old_set,$ac_new_set in
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2629 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2633 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2634 ac_cache_corrupted=: ;;
2637 if test "x$ac_old_val" != "x$ac_new_val"; then
2638 # differences in whitespace do not lead to failure.
2639 ac_old_val_w=`echo x
$ac_old_val`
2640 ac_new_val_w=`echo x
$ac_new_val`
2641 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2643 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2644 ac_cache_corrupted=:
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2647 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2648 eval $ac_var=\$ac_old_val
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2651 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2653 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2656 # Pass precious variables to config.status.
2657 if test "$ac_new_set" = set; then
2659 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2660 *) ac_arg=$ac_var=$ac_new_val ;;
2662 case " $ac_configure_args " in
2663 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2664 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2668 if $ac_cache_corrupted; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2672 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2673 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2675 ## -------------------- ##
2676 ## Main body of script. ##
2677 ## -------------------- ##
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2689 ac_config_headers="$ac_config_headers config.h"
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2697 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2698 # Check whether --enable-version-specific-runtime-libs was given.
2699 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2700 enableval=$enable_version_specific_runtime_libs;
2701 case "$enableval" in
2703 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2707 enable_version_specific_runtime_libs=no
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2712 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2714 # We would like our source tree to be readonly. However when releases or
2715 # pre-releases are generated, the flex/bison generated files as well as the
2716 # various formats of manuals need to be included along with the rest of the
2717 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2720 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2721 # Check whether --enable-generated-files-in-srcdir was given.
2722 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2723 enableval=$enable_generated_files_in_srcdir;
2724 case "$enableval" in
2726 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2730 enable_generated_files_in_srcdir=no
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2735 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2736 if test "$enable_generated_files_in_srcdir" = yes; then
2749 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2751 # You will slowly go insane if you do not grok the following fact: when
2752 # building this library, the top-level /target/ becomes the library's /host/.
2754 # configure then causes --target to default to --host, exactly like any
2755 # other package using autoconf. Therefore, 'target' and 'host' will
2756 # always be the same. This makes sense both for native and cross compilers
2757 # just think about it for a little while. :-)
2759 # Also, if this library is being configured as part of a cross compiler, the
2760 # top-level configure script will pass the "real" host as $with_cross_host.
2762 # Do not delete or change the following two lines. For why, see
2763 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2765 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2766 if test -f "$ac_dir/install-sh"; then
2768 ac_install_sh="$ac_aux_dir/install-sh -c"
2770 elif test -f "$ac_dir/install.sh"; then
2772 ac_install_sh="$ac_aux_dir/install.sh -c"
2774 elif test -f "$ac_dir/shtool"; then
2776 ac_install_sh="$ac_aux_dir/shtool install -c"
2780 if test -z "$ac_aux_dir"; then
2781 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2784 # These three variables are undocumented and unsupported,
2785 # and are intended to be withdrawn in a future Autoconf release.
2786 # They can cause serious problems if a builder's source tree is in a directory
2787 # whose full name contains unusual characters.
2788 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2789 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2790 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2793 # Make sure we can run config.sub.
2794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2795 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2798 $as_echo_n "checking build system type... " >&6; }
2799 if ${ac_cv_build+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 ac_build_alias=$build_alias
2803 test "x$ac_build_alias" = x &&
2804 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2805 test "x$ac_build_alias" = x &&
2806 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2807 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2808 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2812 $as_echo "$ac_cv_build" >&6; }
2813 case $ac_cv_build in
2815 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2818 ac_save_IFS=$IFS; IFS='-'
2824 # Remember, the first character of IFS is used to create $*,
2825 # except with old shells:
2828 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2832 $as_echo_n "checking host system type... " >&6; }
2833 if ${ac_cv_host+:} false; then :
2834 $as_echo_n "(cached) " >&6
2836 if test "x$host_alias" = x; then
2837 ac_cv_host=$ac_cv_build
2839 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2840 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2845 $as_echo "$ac_cv_host" >&6; }
2848 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2851 ac_save_IFS=$IFS; IFS='-'
2857 # Remember, the first character of IFS is used to create $*,
2858 # except with old shells:
2861 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2865 $as_echo_n "checking target system type... " >&6; }
2866 if ${ac_cv_target+:} false; then :
2867 $as_echo_n "(cached) " >&6
2869 if test "x$target_alias" = x; then
2870 ac_cv_target=$ac_cv_host
2872 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2878 $as_echo "$ac_cv_target" >&6; }
2879 case $ac_cv_target in
2881 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2883 target=$ac_cv_target
2884 ac_save_IFS=$IFS; IFS='-'
2890 # Remember, the first character of IFS is used to create $*,
2891 # except with old shells:
2894 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2897 # The aliases save the names the user supplied, while $host etc.
2898 # will get canonicalized.
2899 test -n "$target_alias" &&
2900 test "$program_prefix$program_suffix$program_transform_name" = \
2902 program_prefix=${target_alias}-
2904 target_alias=${target_alias-$host_alias}
2906 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2907 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2908 # 1.9.0: minimum required version
2909 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2910 # of other PACKAGE_* variables will, however, and there's nothing
2911 # we can do about that; they come from AC_INIT).
2912 # no-dist: we don't want 'dist' and related rules.
2913 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2914 # file in the top srcdir, etc, etc), so stop complaining.
2915 # -Wall: turns on all automake warnings...
2916 # -Wno-portability: ...except this one, since GNU make is required.
2917 # -Wno-override: ... and this one, since we do want this in testsuite.
2918 am__api_version='1.15'
2920 # Find a good install program. We prefer a C program (faster),
2921 # so one script is as good as another. But avoid the broken or
2922 # incompatible versions:
2923 # SysV /etc/install, /usr/sbin/install
2924 # SunOS /usr/etc/install
2925 # IRIX /sbin/install
2927 # AmigaOS /C/install, which installs bootblocks on floppy discs
2928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2931 # OS/2's system install, which has a completely different semantic
2932 # ./install, which can be erroneously created by make from ./install.sh.
2933 # Reject install programs that cannot install multiple files.
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2935 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2936 if test -z "$INSTALL"; then
2937 if ${ac_cv_path_install+:} false; then :
2938 $as_echo_n "(cached) " >&6
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 # Account for people who put trailing slashes in PATH elements.
2946 case $as_dir/ in #((
2947 ./ | .// | /[cC]/* | \
2948 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2949 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2952 # OSF1 and SCO ODT 3.0 have their own names for install.
2953 # Don't use installbsd from OSF since it installs stuff as root
2955 for ac_prog in ginstall scoinst install; do
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2958 if test $ac_prog = install &&
2959 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2960 # AIX install. It has an incompatible calling convention.
2962 elif test $ac_prog = install &&
2963 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2964 # program-specific install script used by HP pwplus--don't use.
2967 rm -rf conftest.one conftest.two conftest.dir
2968 echo one > conftest.one
2969 echo two > conftest.two
2971 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2972 test -s conftest.one && test -s conftest.two &&
2973 test -s conftest.dir/conftest.one &&
2974 test -s conftest.dir/conftest.two
2976 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2989 rm -rf conftest.one conftest.two conftest.dir
2992 if test "${ac_cv_path_install+set}" = set; then
2993 INSTALL=$ac_cv_path_install
2995 # As a last resort, use the slow shell script. Don't cache a
2996 # value for INSTALL within a source directory, because that will
2997 # break other packages using the cache if that directory is
2998 # removed, or if the value is a relative name.
2999 INSTALL=$ac_install_sh
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3003 $as_echo "$INSTALL" >&6; }
3005 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3006 # It thinks the first close brace ends the variable substitution.
3007 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3009 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3011 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3014 $as_echo_n "checking whether build environment is sane... " >&6; }
3015 # Reject unsafe characters in $srcdir or the absolute working directory
3016 # name. Accept space and tab only in the latter.
3020 *[\\\"\#\$\&\'\`$am_lf]*)
3021 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
3024 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
3025 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3028 # Do 'set' in a subshell so we don't clobber the current shell's
3029 # arguments. Must try -L first in case configure is actually a
3030 # symlink; some systems play weird games with the mod time of symlinks
3031 # (eg FreeBSD returns the mod time of the symlink's containing
3035 for am_try
in 1 2; do
3036 echo "timestamp, slept: $am_has_slept" > conftest.
file
3037 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3038 if test "$*" = "X"; then
3040 set X
`ls -t "$srcdir/configure" conftest.file`
3042 if test "$*" != "X $srcdir/configure conftest.file" \
3043 && test "$*" != "X conftest.file $srcdir/configure"; then
3045 # If neither matched, then we have a broken ls. This can happen
3046 # if, for instance, CONFIG_SHELL is bash and it inherits a
3047 # broken ls alias from the environment. This has actually
3048 # happened. Such a system could not be considered "sane".
3049 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3050 alias in your environment" "$LINENO" 5
3052 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3059 test "$2" = conftest.
file
3065 as_fn_error $?
"newly created file is older than distributed files!
3066 Check your system clock" "$LINENO" 5
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070 # If we didn't sleep, we still need to ensure time stamps of config.status and
3071 # generated files are strictly newer.
3073 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3080 test "$program_prefix" != NONE
&&
3081 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE
&&
3084 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3085 # Double any \ or $.
3086 # By default was `s,x,x', remove it if useless.
3087 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3088 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3090 # Expand $ac_aux_dir to an absolute path.
3091 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3093 if test x
"${MISSING+set}" != xset
; then
3096 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3098 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3101 # Use eval to expand $SHELL
3102 if eval "$MISSING --is-lightweight"; then
3103 am_missing_run
="$MISSING "
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3107 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3110 if test x
"${install_sh+set}" != xset
; then
3113 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3115 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3119 # Installed binaries are usually stripped using 'strip' when the user
3120 # run "make install-strip". However 'strip' might not be the right
3121 # tool to use in cross-compilation environments, therefore Automake
3122 # will honor the 'STRIP' environment variable to overrule this program.
3123 if test "$cross_compiling" != no
; then
3124 if test -n "$ac_tool_prefix"; then
3125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3126 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_STRIP+:} false
; then :
3130 $as_echo_n "(cached) " >&6
3132 if test -n "$STRIP"; then
3133 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3139 test -z "$as_dir" && as_dir
=.
3140 for ac_exec_ext
in '' $ac_executable_extensions; do
3141 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3142 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 STRIP
=$ac_cv_prog_STRIP
3153 if test -n "$STRIP"; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3155 $as_echo "$STRIP" >&6; }
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3163 if test -z "$ac_cv_prog_STRIP"; then
3165 # Extract the first word of "strip", so it can be a program name with args.
3166 set dummy strip
; ac_word
=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3170 $as_echo_n "(cached) " >&6
3172 if test -n "$ac_ct_STRIP"; then
3173 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir
=.
3180 for ac_exec_ext
in '' $ac_executable_extensions; do
3181 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3182 ac_cv_prog_ac_ct_STRIP
="strip"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3193 if test -n "$ac_ct_STRIP"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3195 $as_echo "$ac_ct_STRIP" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3201 if test "x$ac_ct_STRIP" = x
; then
3204 case $cross_compiling:$ac_tool_warned in
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3208 ac_tool_warned
=yes ;;
3213 STRIP
="$ac_cv_prog_STRIP"
3217 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3220 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3221 if test -z "$MKDIR_P"; then
3222 if ${ac_cv_path_mkdir+:} false
; then :
3223 $as_echo_n "(cached) " >&6
3225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3226 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3229 test -z "$as_dir" && as_dir
=.
3230 for ac_prog
in mkdir gmkdir
; do
3231 for ac_exec_ext
in '' $ac_executable_extensions; do
3232 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3234 'mkdir (GNU coreutils) '* | \
3235 'mkdir (coreutils) '* | \
3236 'mkdir (fileutils) '4.1*)
3237 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3247 test -d .
/--version && rmdir .
/--version
3248 if test "${ac_cv_path_mkdir+set}" = set; then
3249 MKDIR_P
="$ac_cv_path_mkdir -p"
3251 # As a last resort, use the slow shell script. Don't cache a
3252 # value for MKDIR_P within a source directory, because that will
3253 # break other packages using the cache if that directory is
3254 # removed, or if the value is a relative name.
3255 MKDIR_P
="$ac_install_sh -d"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3259 $as_echo "$MKDIR_P" >&6; }
3261 for ac_prog
in gawk mawk nawk
awk
3263 # Extract the first word of "$ac_prog", so it can be a program name with args.
3264 set dummy
$ac_prog; ac_word
=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if ${ac_cv_prog_AWK+:} false
; then :
3268 $as_echo_n "(cached) " >&6
3270 if test -n "$AWK"; then
3271 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir
=.
3278 for ac_exec_ext
in '' $ac_executable_extensions; do
3279 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3280 ac_cv_prog_AWK
="$ac_prog"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 if test -n "$AWK"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3293 $as_echo "$AWK" >&6; }
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3300 test -n "$AWK" && break
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3304 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3306 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3307 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3308 $as_echo_n "(cached) " >&6
3310 cat >conftest.
make <<\_ACEOF
3313 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3315 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3316 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3318 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3320 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3324 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 SET_MAKE
="MAKE=${MAKE-make}"
3334 rm -rf .tst
2>/dev
/null
3335 mkdir .tst
2>/dev
/null
3336 if test -d .tst
; then
3341 rmdir .tst
2>/dev
/null
3343 # Check whether --enable-silent-rules was given.
3344 if test "${enable_silent_rules+set}" = set; then :
3345 enableval
=$enable_silent_rules;
3348 case $enable_silent_rules in # (((
3349 yes) AM_DEFAULT_VERBOSITY
=0;;
3350 no
) AM_DEFAULT_VERBOSITY
=1;;
3351 *) AM_DEFAULT_VERBOSITY
=1;;
3353 am_make
=${MAKE-make}
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3355 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3356 if ${am_cv_make_support_nested_variables+:} false
; then :
3357 $as_echo_n "(cached) " >&6
3359 if $as_echo 'TRUE=$(BAR$(V))
3365 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3366 am_cv_make_support_nested_variables
=yes
3368 am_cv_make_support_nested_variables
=no
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3372 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3373 if test $am_cv_make_support_nested_variables = yes; then
3375 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3377 AM_V
=$AM_DEFAULT_VERBOSITY
3378 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3382 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3383 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3384 # is not polluted with repeated "-I."
3385 am__isrc
=' -I$(srcdir)'
3386 # test to see if srcdir already configured
3387 if test -f $srcdir/config.status
; then
3388 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3392 # test whether we have cygpath
3393 if test -z "$CYGPATH_W"; then
3394 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3395 CYGPATH_W
='cygpath -w'
3402 # Define the identity of the package.
3407 cat >>confdefs.h
<<_ACEOF
3408 #define PACKAGE "$PACKAGE"
3412 cat >>confdefs.h
<<_ACEOF
3413 #define VERSION "$VERSION"
3416 # Some tools Automake needs.
3418 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3421 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3424 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3427 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3430 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3432 # For better backward compatibility. To be removed once Automake 1.9.x
3433 # dies out for good. For more background, see:
3434 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3435 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3436 mkdir_p
='$(MKDIR_P)'
3438 # We need awk for the "check" target (and possibly the TAP driver). The
3439 # system "awk" is bad on some platforms.
3440 # Always define AMTAR for backward compatibility. Yes, it's still used
3441 # in the wild :-( We should find a proper way to deprecate it ...
3445 # We'll loop over all known methods to create a tar archive until one works.
3446 _am_tools
='gnutar pax cpio none'
3448 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3455 # POSIX will say in a future version that running "rm -f" with no argument
3456 # is OK; and we want to be able to make that assumption in our Makefile
3457 # recipes. So use an aggressive probe to check that the usage we want is
3458 # actually supported "in the wild" to an acceptable degree.
3459 # See automake bug#10828.
3460 # To make any issue more visible, cause the running configure to be aborted
3461 # by default if the 'rm' program in use doesn't match our expectations; the
3462 # user can still override this though.
3463 if rm -f && rm -fr && rm -rf; then : OK
; else
3467 Your 'rm' program seems unable to run without file operands specified
3468 on the command line, even when the '-f' option is present. This is contrary
3469 to the behaviour of most rm programs out there, and not conforming with
3470 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3472 Please tell bug-automake@gnu.org about your system, including the value
3473 of your $PATH and any error possibly output before this message. This
3474 can help us improve future automake versions.
3477 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3478 echo 'Configuration will proceed anyway, since you have set the' >&2
3479 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3483 Aborting the configuration process, to ensure you take notice of the issue.
3485 You can download and install GNU coreutils to get an 'rm' implementation
3486 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3488 If you want to complete the configuration process using your problematic
3489 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3490 to "yes", and re-run configure.
3493 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3497 # Default to --enable-multilib
3498 # Check whether --enable-multilib was given.
3499 if test "${enable_multilib+set}" = set; then :
3500 enableval
=$enable_multilib; case "$enableval" in
3501 yes) multilib
=yes ;;
3503 *) as_fn_error $?
"bad value $enableval for multilib option" "$LINENO" 5 ;;
3510 # We may get other options which we leave undocumented:
3511 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3512 # See config-ml.in if you want the gory details.
3514 if test "$srcdir" = "."; then
3515 if test "$with_target_subdir" != "."; then
3516 multi_basedir
="$srcdir/$with_multisrctop../.."
3518 multi_basedir
="$srcdir/$with_multisrctop.."
3521 multi_basedir
="$srcdir/.."
3525 # Even if the default multilib is not a cross compilation,
3526 # it may be that some of the other multilibs are.
3527 if test $cross_compiling = no
&& test $multilib = yes \
3528 && test "x${with_multisubdir}" != x
; then
3529 cross_compiling
=maybe
3532 ac_config_commands
="$ac_config_commands default-1"
3536 # Check whether --with-toolexeclibdir was given.
3537 if test "${with_toolexeclibdir+set}" = set; then :
3538 withval
=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3542 with_toolexeclibdir
=`echo $with_toolexeclibdir | sed 's,/$,,'`
3546 with_toolexeclibdir
=no
3551 # Calculate toolexeclibdir
3552 # Also toolexecdir, though it's only used in toolexeclibdir
3553 case ${enable_version_specific_runtime_libs} in
3555 # Need the gcc compiler version to know where to install libraries
3556 # and header files if --enable-version-specific-runtime-libs option
3558 toolexecdir
='$(libdir)/gcc/$(target_alias)'
3559 toolexeclibdir
='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3562 if test -n "$with_cross_host" &&
3563 test x
"$with_cross_host" != x
"no"; then
3564 # Install a library built with a cross compiler in tooldir, not libdir.
3565 toolexecdir
='$(exec_prefix)/$(target_alias)'
3566 case ${with_toolexeclibdir} in
3568 toolexeclibdir
='$(toolexecdir)/lib'
3571 toolexeclibdir
=${with_toolexeclibdir}
3575 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3576 toolexeclibdir
='$(libdir)'
3578 multi_os_directory
=`$CC -print-multi-os-directory`
3579 case $multi_os_directory in
3580 .
) ;; # Avoid trailing /.
3581 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3588 # Check the compiler.
3589 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3590 # We must force CC to /not/ be precious variables; otherwise
3591 # the wrong, non-multilib-adjusted value will be used in multilibs.
3592 # As a side effect, we have to subst CFLAGS ourselves.
3597 ac_cpp
='$CPP $CPPFLAGS'
3598 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3601 if test -n "$ac_tool_prefix"; then
3602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3603 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CC+:} false
; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$CC"; then
3610 ac_cv_prog_CC
="$CC" # Let the user override the test.
3612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir
=.
3617 for ac_exec_ext
in '' $ac_executable_extensions; do
3618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3619 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$ac_cv_prog_CC"; then
3642 # Extract the first word of "gcc", so it can be a program name with args.
3643 set dummy gcc
; ac_word
=$2
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 $as_echo_n "checking for $ac_word... " >&6; }
3646 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3647 $as_echo_n "(cached) " >&6
3649 if test -n "$ac_ct_CC"; then
3650 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir
=.
3657 for ac_exec_ext
in '' $ac_executable_extensions; do
3658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_ac_ct_CC
="gcc"
3660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3670 if test -n "$ac_ct_CC"; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672 $as_echo "$ac_ct_CC" >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675 $as_echo "no" >&6; }
3678 if test "x$ac_ct_CC" = x
; then
3681 case $cross_compiling:$ac_tool_warned in
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3685 ac_tool_warned
=yes ;;
3693 if test -z "$CC"; then
3694 if test -n "$ac_tool_prefix"; then
3695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3696 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_CC+:} false
; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$CC"; then
3703 ac_cv_prog_CC
="$CC" # Let the user override the test.
3705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir
=.
3710 for ac_exec_ext
in '' $ac_executable_extensions; do
3711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 if test -n "$CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 $as_echo "$CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3734 if test -z "$CC"; then
3735 # Extract the first word of "cc", so it can be a program name with args.
3736 set dummy cc
; ac_word
=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if ${ac_cv_prog_CC+:} false
; then :
3740 $as_echo_n "(cached) " >&6
3742 if test -n "$CC"; then
3743 ac_cv_prog_CC
="$CC" # Let the user override the test.
3746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3750 test -z "$as_dir" && as_dir
=.
3751 for ac_exec_ext
in '' $ac_executable_extensions; do
3752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3754 ac_prog_rejected
=yes
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 if test $ac_prog_rejected = yes; then
3766 # We found a bogon in the path, so make sure we never use it.
3767 set dummy
$ac_cv_prog_CC
3769 if test $# != 0; then
3770 # We chose a different compiler from the bogus one.
3771 # However, it has the same basename, so the bogon will be chosen
3772 # first if we set CC to just the basename; use the full file name.
3774 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3780 if test -n "$CC"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782 $as_echo "$CC" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3790 if test -z "$CC"; then
3791 if test -n "$ac_tool_prefix"; then
3792 for ac_prog
in cl.exe
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false
; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC
="$CC" # Let the user override the test.
3804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir
=.
3809 for ac_exec_ext
in '' $ac_executable_extensions; do
3810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3831 test -n "$CC" && break
3834 if test -z "$CC"; then
3836 for ac_prog
in cl.exe
3838 # Extract the first word of "$ac_prog", so it can be a program name with args.
3839 set dummy
$ac_prog; ac_word
=$2
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 $as_echo_n "checking for $ac_word... " >&6; }
3842 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3843 $as_echo_n "(cached) " >&6
3845 if test -n "$ac_ct_CC"; then
3846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir
=.
3853 for ac_exec_ext
in '' $ac_executable_extensions; do
3854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_CC
="$ac_prog"
3856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3866 if test -n "$ac_ct_CC"; then
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3868 $as_echo "$ac_ct_CC" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3875 test -n "$ac_ct_CC" && break
3878 if test "x$ac_ct_CC" = x
; then
3881 case $cross_compiling:$ac_tool_warned in
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885 ac_tool_warned
=yes ;;
3894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896 as_fn_error $?
"no acceptable C compiler found in \$PATH
3897 See \`config.log' for more details" "$LINENO" 5; }
3899 # Provide some information about the compiler.
3900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3903 for ac_option
in --version -v -V -qversion; do
3904 { { ac_try
="$ac_compiler $ac_option >&5"
3906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3913 if test -s conftest.err; then
3915 ... rest of stderr output deleted ...
3916 10q' conftest.err >conftest.er1
3917 cat conftest.er1 >&5
3919 rm -f conftest.er1 conftest.err
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 ac_clean_files_save=$ac_clean_files
3936 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3937 # Try to create an executable without -o first, disregard a.out.
3938 # It will help us diagnose broken compilers, and finding out an intuition
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3941 $as_echo_n "checking whether the C compiler works... " >&6; }
3942 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3944 # The possible output files:
3945 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3948 for ac_file in $ac_files
3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3952 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3957 if { { ac_try="$ac_link_default"
3959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3960 *) ac_try_echo
=$ac_try;;
3962 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_link_default") 2>&5
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; then :
3968 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3969 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3970 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3971 # so that the user can short-circuit this test for compilers unknown to
3973 for ac_file
in $ac_files ''
3975 test -f "$ac_file" ||
continue
3977 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3980 # We found the default executable, but exeext='' is most
3984 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3986 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3988 # We set ac_cv_exeext here because the later test for it is not
3989 # safe: cross compilers may not add the suffix if given an `-o'
3990 # argument, so we may need to know it at that point already.
3991 # Even if this section looks crufty: it has the advantage of
3998 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4003 if test -z "$ac_file"; then :
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4006 $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.
$ac_ext >&5
4009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011 as_fn_error
77 "C compiler cannot create executables
4012 See \`config.log' for more details" "$LINENO" 5; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4015 $as_echo "yes" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4018 $as_echo_n "checking for C compiler default output file name... " >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4020 $as_echo "$ac_file" >&6; }
4021 ac_exeext
=$ac_cv_exeext
4023 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4024 ac_clean_files
=$ac_clean_files_save
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4026 $as_echo_n "checking for suffix of executables... " >&6; }
4027 if { { ac_try
="$ac_link"
4029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4033 $as_echo "$ac_try_echo"; } >&5
4034 (eval "$ac_link") 2>&5
4036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4037 test $ac_status = 0; }; then :
4038 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4039 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4040 # work properly (i.e., refer to `conftest.exe'), while it won't with
4042 for ac_file
in conftest.exe conftest conftest.
*; do
4043 test -f "$ac_file" ||
continue
4045 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4046 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4055 See \`config.log' for more details" "$LINENO" 5; }
4057 rm -f conftest conftest
$ac_cv_exeext
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4059 $as_echo "$ac_cv_exeext" >&6; }
4061 rm -f conftest.
$ac_ext
4062 EXEEXT
=$ac_cv_exeext
4064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4070 FILE *f = fopen ("conftest.out", "w");
4071 return ferror (f) || fclose (f) != 0;
4077 ac_clean_files
="$ac_clean_files conftest.out"
4078 # Check that the compiler produces executables we can run. If not, either
4079 # the compiler is broken, or we cross compile.
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4081 $as_echo_n "checking whether we are cross compiling... " >&6; }
4082 if test "$cross_compiling" != yes; then
4083 { { ac_try
="$ac_link"
4085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4089 $as_echo "$ac_try_echo"; } >&5
4090 (eval "$ac_link") 2>&5
4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4093 test $ac_status = 0; }
4094 if { ac_try='./conftest$ac_cv_exeext'
4095 { { case "(($ac_try" in
4096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4097 *) ac_try_echo
=$ac_try;;
4099 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_try") 2>&5
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }; }; then
4107 if test "$cross_compiling" = maybe
; then
4110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4112 as_fn_error $?
"cannot run C compiled programs.
4113 If you meant to cross compile, use \`--host'.
4114 See \`config.log' for more details" "$LINENO" 5; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4119 $as_echo "$cross_compiling" >&6; }
4121 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4122 ac_clean_files
=$ac_clean_files_save
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4124 $as_echo_n "checking for suffix of object files... " >&6; }
4125 if ${ac_cv_objext+:} false
; then :
4126 $as_echo_n "(cached) " >&6
4128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4139 rm -f conftest.o conftest.obj
4140 if { { ac_try
="$ac_compile"
4142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146 $as_echo "$ac_try_echo"; } >&5
4147 (eval "$ac_compile") 2>&5
4149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150 test $ac_status = 0; }; then :
4151 for ac_file in conftest.o conftest.obj conftest.*; do
4152 test -f "$ac_file" || continue;
4154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4155 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4166 See \
`config.log' for more details" "$LINENO" 5; }
4168 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4171 $as_echo "$ac_cv_objext" >&6; }
4172 OBJEXT=$ac_cv_objext
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4175 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4176 if ${ac_cv_c_compiler_gnu+:} false; then :
4177 $as_echo_n "(cached) " >&6
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4193 if ac_fn_c_try_compile "$LINENO"; then :
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4203 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4204 if test $ac_compiler_gnu = yes; then
4209 ac_test_CFLAGS=${CFLAGS+set}
4210 ac_save_CFLAGS=$CFLAGS
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4212 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4213 if ${ac_cv_prog_cc_g+:} false; then :
4214 $as_echo_n "(cached) " >&6
4216 ac_save_c_werror_flag=$ac_c_werror_flag
4217 ac_c_werror_flag=yes
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4231 if ac_fn_c_try_compile "$LINENO"; then :
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4246 if ac_fn_c_try_compile "$LINENO"; then :
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4262 if ac_fn_c_try_compile "$LINENO"; then :
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_c_werror_flag=$ac_save_c_werror_flag
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4273 $as_echo "$ac_cv_prog_cc_g" >&6; }
4274 if test "$ac_test_CFLAGS" = set; then
4275 CFLAGS=$ac_save_CFLAGS
4276 elif test $ac_cv_prog_cc_g = yes; then
4277 if test "$GCC" = yes; then
4283 if test "$GCC" = yes; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4290 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4291 if ${ac_cv_prog_cc_c89+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 ac_cv_prog_cc_c89=no
4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h. */
4301 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4302 struct buf { int x; };
4303 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4304 static char *e (p, i)
4310 static char *f (char * (*g) (char **, int), char **p, ...)
4315 s = g (p, va_arg (v,int));
4320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4321 function prototypes and stuff, but not '\xHH' hex character constants.
4322 These don't provoke an error unfortunately, instead are silently treated
4323 as 'x'. The following induces an error, until -std is added to get
4324 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4325 array size at least. It's necessary to write '\x00'==0 to get something
4326 that's true only with -std. */
4327 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4330 inside strings and character constants. */
4332 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4334 int test (int i, double x);
4335 struct s1 {int (*f) (int a);};
4336 struct s2 {int (*f) (double a);};
4337 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4343 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4348 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4349 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4351 CC="$ac_save_CC $ac_arg"
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353 ac_cv_prog_cc_c89=$ac_arg
4355 rm -f core conftest.err conftest.$ac_objext
4356 test "x$ac_cv_prog_cc_c89" != "xno" && break
4358 rm -f conftest.$ac_ext
4363 case "x$ac_cv_prog_cc_c89" in
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4366 $as_echo "none needed" >&6; } ;;
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4369 $as_echo "unsupported" >&6; } ;;
4371 CC="$CC $ac_cv_prog_cc_c89"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4373 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4375 if test "x$ac_cv_prog_cc_c89" != xno; then :
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4391 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4392 if ${am_cv_prog_cc_c_o+:} false; then :
4393 $as_echo_n "(cached) " >&6
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4406 # Make sure it works both with $CC and with simple cc.
4407 # Following AC_PROG_CC_C_O, we do the test twice because some
4408 # compilers refuse to overwrite an existing .o file with -o,
4409 # though they will create one.
4410 am_cv_prog_cc_c_o=yes
4412 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4413 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } \
4417 && test -f conftest2.$ac_objext; then
4420 am_cv_prog_cc_c_o=no
4424 rm -f core conftest*
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4428 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4429 if test "$am_cv_prog_cc_c_o" != yes; then
4430 # Losing compiler, so override with the script.
4431 # FIXME: It is wrong to rewrite CC.
4432 # But if we don't then we get into trouble of one sort or another.
4433 # A longer-term fix would be to have automake use am__CC in this case,
4434 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4435 CC="$am_aux_dir/compile $CC"
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 DEPDIR="${am__leading_dot}deps"
4445 ac_config_commands="$ac_config_commands depfiles"
4448 am_make=${MAKE-make}
4449 cat > confinc << 'END'
4451 @echo this is the am__doit target
4454 # If we don't find an include directive, just comment out the code.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4456 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4460 # First try GNU make style include.
4461 echo "include confinc" > confmf
4462 # Ignore all kinds of additional output from 'make'.
4463 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4464 *the\ am__doit\ target*)
4470 # Now try BSD make style include.
4471 if test "$am__include" = "#"; then
4472 echo '.include "confinc"' > confmf
4473 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4474 *the\ am__doit\ target*)
4475 am__include=.include
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4484 $as_echo "$_am_result" >&6; }
4485 rm -f confinc confmf
4487 # Check whether --enable-dependency-tracking was given.
4488 if test "${enable_dependency_tracking+set}" = set; then :
4489 enableval=$enable_dependency_tracking;
4492 if test "x$enable_dependency_tracking" != xno; then
4493 am_depcomp="$ac_aux_dir/depcomp"
4497 if test "x$enable_dependency_tracking" != xno; then
4507 depcc="$CC" am_compiler_list=
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4510 $as_echo_n "checking dependency style of $depcc... " >&6; }
4511 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4515 # We make a subdir and do the tests there. Otherwise we can end up
4516 # making bogus files that we don't know about and never remove. For
4517 # instance it was reported that on HP-UX the gcc test will end up
4518 # making a dummy file named 'D' -- because '-MD' means "put the output
4522 # Copy depcomp to subdir because otherwise we won't find it if we're
4523 # using a relative directory.
4524 cp "$am_depcomp" conftest.dir
4526 # We will build objects and dependencies in a subdirectory because
4527 # it helps to detect inapplicable dependency modes. For instance
4528 # both Tru64's cc and ICC support -MD to output dependencies as a
4529 # side effect of compilation, but ICC will put the dependencies in
4530 # the current directory while Tru64 will put them in the object
4534 am_cv_CC_dependencies_compiler_type=none
4535 if test "$am_compiler_list" = ""; then
4536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4539 case " $depcc " in #(
4540 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4543 for depmode in $am_compiler_list; do
4544 # Setup a source with many dependencies, because some compilers
4545 # like to wrap large dependency lists on column 80 (with \), and
4546 # we should not choose a depcomp mode which is confused by this.
4548 # We need to recreate these files for each test, as the compiler may
4549 # overwrite some of them when testing with obscure command lines.
4550 # This happens at least with the AIX C compiler.
4552 for i in 1 2 3 4 5 6; do
4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4554 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4555 # Solaris 10 /bin/sh.
4556 echo '/* dummy */' > sub/conftst$i.h
4558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4560 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4561 # mode. It turns out that the SunPro C++ compiler does not properly
4562 # handle '-M -o', and we need to detect this. Also, some Intel
4563 # versions had trouble with output in subdirs.
4564 am__obj=sub/conftest.${OBJEXT-o}
4565 am__minus_obj="-o $am__obj"
4568 # This depmode causes a compiler race in universal mode.
4569 test "$am__universal" = false || continue
4572 # After this tag, mechanisms are not by side-effect, so they'll
4573 # only be used when explicitly requested.
4574 if test "x$enable_dependency_tracking" = xyes; then
4580 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4581 # This compiler won't grok '-c -o', but also, the minuso test has
4582 # not run yet. These depmodes are late enough in the game, and
4583 # so weak that their functioning should not be impacted.
4584 am__obj=conftest.${OBJEXT-o}
4589 if depmode=$depmode \
4590 source=sub/conftest.c object=$am__obj \
4591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4593 >/dev/null 2>conftest.err &&
4594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4598 # icc doesn't choke on unknown options, it will just issue warnings
4599 # or remarks (even with -Werror). So we grep stderr for any message
4600 # that says an option was ignored or not supported.
4601 # When given -MP, icc 7.0 and 7.1 complain thusly:
4602 # icc: Command line warning: ignoring option '-M'; no argument required
4603 # The diagnosis changed in icc 8.0:
4604 # icc: Command line remark: option '-MP' not supported
4605 if (grep 'ignoring option' conftest.err ||
4606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4607 am_cv_CC_dependencies_compiler_type=$depmode
4616 am_cv_CC_dependencies_compiler_type=none
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4621 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4622 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4625 test "x$enable_dependency_tracking" != xno \
4626 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4628 am__fastdepCC_FALSE='#'
4630 am__fastdepCC_TRUE='#'
4631 am__fastdepCC_FALSE=
4636 ac_cpp='$CXXCPP $CPPFLAGS'
4637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4640 if test -z "$CXX"; then
4641 if test -n "$CCC"; then
4644 if test -n "$ac_tool_prefix"; then
4645 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4650 $as_echo_n "checking for $ac_word... " >&6; }
4651 if ${ac_cv_prog_CXX+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 if test -n "$CXX"; then
4655 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4664 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 if test -n "$CXX"; then
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4677 $as_echo "$CXX" >&6; }
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4680 $as_echo "no" >&6; }
4684 test -n "$CXX" && break
4687 if test -z "$CXX"; then
4689 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4691 # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4696 $as_echo_n "(cached) " >&6
4698 if test -n "$ac_ct_CXX"; then
4699 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_prog"
4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4719 if test -n "$ac_ct_CXX"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4721 $as_echo "$ac_ct_CXX" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4724 $as_echo "no" >&6; }
4728 test -n "$ac_ct_CXX" && break
4731 if test "x$ac_ct_CXX" = x; then
4734 case $cross_compiling:$ac_tool_warned in
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4738 ac_tool_warned=yes ;;
4746 # Provide some information about the compiler.
4747 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4750 for ac_option in --version -v -V -qversion; do
4751 { { ac_try="$ac_compiler $ac_option >&5"
4753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4754 *) ac_try_echo
=$ac_try;;
4756 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4760 if test -s conftest.err
; then
4762 ... rest of stderr output deleted ...
4763 10q' conftest.err
>conftest.er1
4764 cat conftest.er1
>&5
4766 rm -f conftest.er1 conftest.err
4767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4768 test $ac_status = 0; }
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4772 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4773 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4774 $as_echo_n "(cached) " >&6
4776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4790 if ac_fn_cxx_try_compile
"$LINENO"; then :
4795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4796 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4800 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4801 if test $ac_compiler_gnu = yes; then
4806 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4807 ac_save_CXXFLAGS
=$CXXFLAGS
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4809 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4810 if ${ac_cv_prog_cxx_g+:} false
; then :
4811 $as_echo_n "(cached) " >&6
4813 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4814 ac_cxx_werror_flag
=yes
4817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4818 /* end confdefs.h. */
4828 if ac_fn_cxx_try_compile
"$LINENO"; then :
4829 ac_cv_prog_cxx_g
=yes
4832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4843 if ac_fn_cxx_try_compile
"$LINENO"; then :
4846 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4859 if ac_fn_cxx_try_compile
"$LINENO"; then :
4860 ac_cv_prog_cxx_g
=yes
4862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4870 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4871 if test "$ac_test_CXXFLAGS" = set; then
4872 CXXFLAGS
=$ac_save_CXXFLAGS
4873 elif test $ac_cv_prog_cxx_g = yes; then
4874 if test "$GXX" = yes; then
4880 if test "$GXX" = yes; then
4887 ac_cpp
='$CPP $CPPFLAGS'
4888 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4892 depcc
="$CXX" am_compiler_list
=
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4895 $as_echo_n "checking dependency style of $depcc... " >&6; }
4896 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
4897 $as_echo_n "(cached) " >&6
4899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4900 # We make a subdir and do the tests there. Otherwise we can end up
4901 # making bogus files that we don't know about and never remove. For
4902 # instance it was reported that on HP-UX the gcc test will end up
4903 # making a dummy file named 'D' -- because '-MD' means "put the output
4907 # Copy depcomp to subdir because otherwise we won't find it if we're
4908 # using a relative directory.
4909 cp "$am_depcomp" conftest.dir
4911 # We will build objects and dependencies in a subdirectory because
4912 # it helps to detect inapplicable dependency modes. For instance
4913 # both Tru64's cc and ICC support -MD to output dependencies as a
4914 # side effect of compilation, but ICC will put the dependencies in
4915 # the current directory while Tru64 will put them in the object
4919 am_cv_CXX_dependencies_compiler_type
=none
4920 if test "$am_compiler_list" = ""; then
4921 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924 case " $depcc " in #(
4925 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4928 for depmode
in $am_compiler_list; do
4929 # Setup a source with many dependencies, because some compilers
4930 # like to wrap large dependency lists on column 80 (with \), and
4931 # we should not choose a depcomp mode which is confused by this.
4933 # We need to recreate these files for each test, as the compiler may
4934 # overwrite some of them when testing with obscure command lines.
4935 # This happens at least with the AIX C compiler.
4937 for i
in 1 2 3 4 5 6; do
4938 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4940 # Solaris 10 /bin/sh.
4941 echo '/* dummy */' > sub
/conftst
$i.h
4943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4945 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4946 # mode. It turns out that the SunPro C++ compiler does not properly
4947 # handle '-M -o', and we need to detect this. Also, some Intel
4948 # versions had trouble with output in subdirs.
4949 am__obj
=sub
/conftest.
${OBJEXT-o}
4950 am__minus_obj
="-o $am__obj"
4953 # This depmode causes a compiler race in universal mode.
4954 test "$am__universal" = false ||
continue
4957 # After this tag, mechanisms are not by side-effect, so they'll
4958 # only be used when explicitly requested.
4959 if test "x$enable_dependency_tracking" = xyes
; then
4965 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4966 # This compiler won't grok '-c -o', but also, the minuso test has
4967 # not run yet. These depmodes are late enough in the game, and
4968 # so weak that their functioning should not be impacted.
4969 am__obj
=conftest.
${OBJEXT-o}
4974 if depmode
=$depmode \
4975 source=sub
/conftest.c object
=$am__obj \
4976 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4977 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4978 >/dev
/null
2>conftest.err
&&
4979 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4980 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4981 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4982 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4983 # icc doesn't choke on unknown options, it will just issue warnings
4984 # or remarks (even with -Werror). So we grep stderr for any message
4985 # that says an option was ignored or not supported.
4986 # When given -MP, icc 7.0 and 7.1 complain thusly:
4987 # icc: Command line warning: ignoring option '-M'; no argument required
4988 # The diagnosis changed in icc 8.0:
4989 # icc: Command line remark: option '-MP' not supported
4990 if (grep 'ignoring option' conftest.err ||
4991 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4992 am_cv_CXX_dependencies_compiler_type
=$depmode
5001 am_cv_CXX_dependencies_compiler_type
=none
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5006 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5007 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5010 test "x$enable_dependency_tracking" != xno \
5011 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5012 am__fastdepCXX_TRUE
=
5013 am__fastdepCXX_FALSE
='#'
5015 am__fastdepCXX_TRUE
='#'
5016 am__fastdepCXX_FALSE
=
5020 # By default we simply use the C compiler to build assembly code.
5022 test "${CCAS+set}" = set || CCAS
=$CC
5023 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
5027 depcc
="$CCAS" am_compiler_list
=
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5030 $as_echo_n "checking dependency style of $depcc... " >&6; }
5031 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
5032 $as_echo_n "(cached) " >&6
5034 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035 # We make a subdir and do the tests there. Otherwise we can end up
5036 # making bogus files that we don't know about and never remove. For
5037 # instance it was reported that on HP-UX the gcc test will end up
5038 # making a dummy file named 'D' -- because '-MD' means "put the output
5042 # Copy depcomp to subdir because otherwise we won't find it if we're
5043 # using a relative directory.
5044 cp "$am_depcomp" conftest.dir
5046 # We will build objects and dependencies in a subdirectory because
5047 # it helps to detect inapplicable dependency modes. For instance
5048 # both Tru64's cc and ICC support -MD to output dependencies as a
5049 # side effect of compilation, but ICC will put the dependencies in
5050 # the current directory while Tru64 will put them in the object
5054 am_cv_CCAS_dependencies_compiler_type
=none
5055 if test "$am_compiler_list" = ""; then
5056 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5061 for depmode
in $am_compiler_list; do
5062 # Setup a source with many dependencies, because some compilers
5063 # like to wrap large dependency lists on column 80 (with \), and
5064 # we should not choose a depcomp mode which is confused by this.
5066 # We need to recreate these files for each test, as the compiler may
5067 # overwrite some of them when testing with obscure command lines.
5068 # This happens at least with the AIX C compiler.
5070 for i
in 1 2 3 4 5 6; do
5071 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5072 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5073 # Solaris 10 /bin/sh.
5074 echo '/* dummy */' > sub
/conftst
$i.h
5076 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5078 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5079 # mode. It turns out that the SunPro C++ compiler does not properly
5080 # handle '-M -o', and we need to detect this. Also, some Intel
5081 # versions had trouble with output in subdirs.
5082 am__obj
=sub
/conftest.
${OBJEXT-o}
5083 am__minus_obj
="-o $am__obj"
5086 # This depmode causes a compiler race in universal mode.
5087 test "$am__universal" = false ||
continue
5090 # After this tag, mechanisms are not by side-effect, so they'll
5091 # only be used when explicitly requested.
5092 if test "x$enable_dependency_tracking" = xyes
; then
5098 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
5099 # This compiler won't grok '-c -o', but also, the minuso test has
5100 # not run yet. These depmodes are late enough in the game, and
5101 # so weak that their functioning should not be impacted.
5102 am__obj
=conftest.
${OBJEXT-o}
5107 if depmode
=$depmode \
5108 source=sub
/conftest.c object
=$am__obj \
5109 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5110 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
5111 >/dev
/null
2>conftest.err
&&
5112 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5113 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5114 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
5115 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5116 # icc doesn't choke on unknown options, it will just issue warnings
5117 # or remarks (even with -Werror). So we grep stderr for any message
5118 # that says an option was ignored or not supported.
5119 # When given -MP, icc 7.0 and 7.1 complain thusly:
5120 # icc: Command line warning: ignoring option '-M'; no argument required
5121 # The diagnosis changed in icc 8.0:
5122 # icc: Command line remark: option '-MP' not supported
5123 if (grep 'ignoring option' conftest.err ||
5124 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5125 am_cv_CCAS_dependencies_compiler_type
=$depmode
5134 am_cv_CCAS_dependencies_compiler_type
=none
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5139 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5140 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
5143 test "x$enable_dependency_tracking" != xno \
5144 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
5145 am__fastdepCCAS_TRUE
=
5146 am__fastdepCCAS_FALSE
='#'
5148 am__fastdepCCAS_TRUE
='#'
5149 am__fastdepCCAS_FALSE
=
5157 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
5158 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
5159 # in both places for now and restore CFLAGS at the end of config.
5160 save_CFLAGS
="$CFLAGS"
5162 # Find other programs we need.
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5165 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_AR+:} false
; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$AR"; then
5172 ac_cv_prog_AR
="$AR" # Let the user override the test.
5174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir
=.
5179 for ac_exec_ext
in '' $ac_executable_extensions; do
5180 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 if test -n "$AR"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5194 $as_echo "$AR" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5202 if test -z "$ac_cv_prog_AR"; then
5204 # Extract the first word of "ar", so it can be a program name with args.
5205 set dummy
ar; ac_word
=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5209 $as_echo_n "(cached) " >&6
5211 if test -n "$ac_ct_AR"; then
5212 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_AR
="ar"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5232 if test -n "$ac_ct_AR"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5234 $as_echo "$ac_ct_AR" >&6; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5240 if test "x$ac_ct_AR" = x
; then
5243 case $cross_compiling:$ac_tool_warned in
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247 ac_tool_warned
=yes ;;
5255 if test -n "$ac_tool_prefix"; then
5256 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5257 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_NM+:} false
; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$NM"; then
5264 ac_cv_prog_NM
="$NM" # Let the user override the test.
5266 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir
=.
5271 for ac_exec_ext
in '' $ac_executable_extensions; do
5272 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_NM
="${ac_tool_prefix}nm"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5284 if test -n "$NM"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5286 $as_echo "$NM" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5294 if test -z "$ac_cv_prog_NM"; then
5296 # Extract the first word of "nm", so it can be a program name with args.
5297 set dummy nm
; ac_word
=$2
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299 $as_echo_n "checking for $ac_word... " >&6; }
5300 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
5301 $as_echo_n "(cached) " >&6
5303 if test -n "$ac_ct_NM"; then
5304 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
5306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5310 test -z "$as_dir" && as_dir
=.
5311 for ac_exec_ext
in '' $ac_executable_extensions; do
5312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_NM
="nm"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
5324 if test -n "$ac_ct_NM"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5326 $as_echo "$ac_ct_NM" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5332 if test "x$ac_ct_NM" = x
; then
5335 case $cross_compiling:$ac_tool_warned in
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned
=yes ;;
5347 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5349 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_RANLIB+:} false
; then :
5353 $as_echo_n "(cached) " >&6
5355 if test -n "$RANLIB"; then
5356 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5358 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir
=.
5363 for ac_exec_ext
in '' $ac_executable_extensions; do
5364 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 RANLIB
=$ac_cv_prog_RANLIB
5376 if test -n "$RANLIB"; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5378 $as_echo "$RANLIB" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5386 if test -z "$ac_cv_prog_RANLIB"; then
5387 ac_ct_RANLIB
=$RANLIB
5388 # Extract the first word of "ranlib", so it can be a program name with args.
5389 set dummy ranlib
; ac_word
=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5393 $as_echo_n "(cached) " >&6
5395 if test -n "$ac_ct_RANLIB"; then
5396 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5402 test -z "$as_dir" && as_dir
=.
5403 for ac_exec_ext
in '' $ac_executable_extensions; do
5404 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5416 if test -n "$ac_ct_RANLIB"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5418 $as_echo "$ac_ct_RANLIB" >&6; }
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5424 if test "x$ac_ct_RANLIB" = x
; then
5425 RANLIB
="ranlib-not-found-in-path-error"
5427 case $cross_compiling:$ac_tool_warned in
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned
=yes ;;
5433 RANLIB
=$ac_ct_RANLIB
5436 RANLIB
="$ac_cv_prog_RANLIB"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5440 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5442 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5443 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5444 $as_echo_n "(cached) " >&6
5446 cat >conftest.
make <<\_ACEOF
5449 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5451 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5452 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5454 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5456 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5460 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5467 SET_MAKE
="MAKE=${MAKE-make}"
5472 # See if makeinfo has been installed and is modern enough
5473 # that we can use it.
5475 # Extract the first word of "makeinfo", so it can be a program name with args.
5476 set dummy makeinfo
; ac_word
=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_MAKEINFO+:} false
; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$MAKEINFO"; then
5483 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
5485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir
=.
5490 for ac_exec_ext
in '' $ac_executable_extensions; do
5491 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5492 ac_cv_prog_MAKEINFO
="makeinfo"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 MAKEINFO
=$ac_cv_prog_MAKEINFO
5503 if test -n "$MAKEINFO"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5505 $as_echo "$MAKEINFO" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5512 if test -n "$MAKEINFO"; then
5513 # Found it, now check the version.
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5515 $as_echo_n "checking for modern makeinfo... " >&6; }
5516 if ${gcc_cv_prog_makeinfo_modern+:} false
; then :
5517 $as_echo_n "(cached) " >&6
5519 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
5520 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5522 case $ac_prog_version in
5523 '') gcc_cv_prog_makeinfo_modern
=no
;;
5524 4.
[4-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
5525 *) gcc_cv_prog_makeinfo_modern
=no
;;
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5530 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5532 gcc_cv_prog_makeinfo_modern
=no
5534 if test $gcc_cv_prog_makeinfo_modern = no
; then
5535 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5538 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5540 BUILD_INFO_FALSE
='#'
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5552 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5557 macro_version
='2.2.7a'
5558 macro_revision
='1.3134'
5572 ltmain
="$ac_aux_dir/ltmain.sh"
5574 # Backslashify metacharacters that are still active within
5575 # double-quoted strings.
5576 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5578 # Same as above, but do not quote variable references.
5579 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5581 # Sed substitution to delay expansion of an escaped shell variable in a
5582 # double_quote_subst'ed string.
5583 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5585 # Sed substitution to delay expansion of an escaped single quote.
5586 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5588 # Sed substitution to avoid accidental globbing in evaled expressions
5589 no_glob_subst
='s/\*/\\\*/g'
5591 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5596 $as_echo_n "checking how to print strings... " >&6; }
5597 # Test print first, because it will be a builtin if present.
5598 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5599 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5601 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5604 # Use this function as a fallback that always works.
5605 func_fallback_echo ()
5607 eval 'cat <<_LTECHO_EOF
5611 ECHO='func_fallback_echo
'
5614 # func_echo_all arg...
5615 # Invoke $ECHO with all args, space-separated.
5622 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5623 $as_echo "printf" >&6; } ;;
5624 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5625 $as_echo "print -r" >&6; } ;;
5626 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5627 $as_echo "cat" >&6; } ;;
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5645 if ${ac_cv_path_SED+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5649 for ac_i in 1 2 3 4 5 6 7; do
5650 ac_script="$ac_script$as_nl$ac_script"
5652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5653 { ac_script=; unset ac_script;}
5654 if test -z "$SED"; then
5655 ac_path_SED_found=false
5656 # Loop through the user's path and
test for each of PROGNAME-LIST
5657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir
=.
5662 for ac_prog
in sed gsed
; do
5663 for ac_exec_ext
in '' $ac_executable_extensions; do
5664 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5665 as_fn_executable_p
"$ac_path_SED" ||
continue
5666 # Check for GNU ac_path_SED and select it if it is found.
5667 # Check for GNU $ac_path_SED
5668 case `"$ac_path_SED" --version 2>&1` in
5670 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5673 $as_echo_n 0123456789 >"conftest.in"
5676 cat "conftest.in" "conftest.in" >"conftest.tmp"
5677 mv "conftest.tmp" "conftest.in"
5678 cp "conftest.in" "conftest.nl"
5679 $as_echo '' >> "conftest.nl"
5680 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5681 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5682 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5683 if test $ac_count -gt ${ac_path_SED_max-0}; then
5684 # Best one so far, save it but keep looking for a better one
5685 ac_cv_path_SED
="$ac_path_SED"
5686 ac_path_SED_max
=$ac_count
5688 # 10*(2^10) chars as input seems more than enough
5689 test $ac_count -gt 10 && break
5691 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5694 $ac_path_SED_found && break 3
5699 if test -z "$ac_cv_path_SED"; then
5700 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5708 $as_echo "$ac_cv_path_SED" >&6; }
5709 SED
="$ac_cv_path_SED"
5712 test -z "$SED" && SED
=sed
5713 Xsed
="$SED -e 1s/^X//"
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5727 if ${ac_cv_path_GREP+:} false
; then :
5728 $as_echo_n "(cached) " >&6
5730 if test -z "$GREP"; then
5731 ac_path_GREP_found
=false
5732 # Loop through the user's path and test for each of PROGNAME-LIST
5733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5734 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5737 test -z "$as_dir" && as_dir
=.
5738 for ac_prog
in grep ggrep
; do
5739 for ac_exec_ext
in '' $ac_executable_extensions; do
5740 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5741 as_fn_executable_p
"$ac_path_GREP" ||
continue
5742 # Check for GNU ac_path_GREP and select it if it is found.
5743 # Check for GNU $ac_path_GREP
5744 case `"$ac_path_GREP" --version 2>&1` in
5746 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5749 $as_echo_n 0123456789 >"conftest.in"
5752 cat "conftest.in" "conftest.in" >"conftest.tmp"
5753 mv "conftest.tmp" "conftest.in"
5754 cp "conftest.in" "conftest.nl"
5755 $as_echo 'GREP' >> "conftest.nl"
5756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5757 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5758 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5760 # Best one so far, save it but keep looking for a better one
5761 ac_cv_path_GREP
="$ac_path_GREP"
5762 ac_path_GREP_max
=$ac_count
5764 # 10*(2^10) chars as input seems more than enough
5765 test $ac_count -gt 10 && break
5767 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5770 $ac_path_GREP_found && break 3
5775 if test -z "$ac_cv_path_GREP"; then
5776 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5779 ac_cv_path_GREP
=$GREP
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5784 $as_echo "$ac_cv_path_GREP" >&6; }
5785 GREP
="$ac_cv_path_GREP"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5789 $as_echo_n "checking for egrep... " >&6; }
5790 if ${ac_cv_path_EGREP+:} false
; then :
5791 $as_echo_n "(cached) " >&6
5793 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5794 then ac_cv_path_EGREP
="$GREP -E"
5796 if test -z "$EGREP"; then
5797 ac_path_EGREP_found
=false
5798 # Loop through the user's path and test for each of PROGNAME-LIST
5799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5800 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5803 test -z "$as_dir" && as_dir
=.
5804 for ac_prog
in egrep; do
5805 for ac_exec_ext
in '' $ac_executable_extensions; do
5806 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5807 as_fn_executable_p
"$ac_path_EGREP" ||
continue
5808 # Check for GNU ac_path_EGREP and select it if it is found.
5809 # Check for GNU $ac_path_EGREP
5810 case `"$ac_path_EGREP" --version 2>&1` in
5812 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5815 $as_echo_n 0123456789 >"conftest.in"
5818 cat "conftest.in" "conftest.in" >"conftest.tmp"
5819 mv "conftest.tmp" "conftest.in"
5820 cp "conftest.in" "conftest.nl"
5821 $as_echo 'EGREP' >> "conftest.nl"
5822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5823 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5824 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5826 # Best one so far, save it but keep looking for a better one
5827 ac_cv_path_EGREP
="$ac_path_EGREP"
5828 ac_path_EGREP_max
=$ac_count
5830 # 10*(2^10) chars as input seems more than enough
5831 test $ac_count -gt 10 && break
5833 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5836 $ac_path_EGREP_found && break 3
5841 if test -z "$ac_cv_path_EGREP"; then
5842 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5845 ac_cv_path_EGREP
=$EGREP
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5851 $as_echo "$ac_cv_path_EGREP" >&6; }
5852 EGREP
="$ac_cv_path_EGREP"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5856 $as_echo_n "checking for fgrep... " >&6; }
5857 if ${ac_cv_path_FGREP+:} false
; then :
5858 $as_echo_n "(cached) " >&6
5860 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
5861 then ac_cv_path_FGREP
="$GREP -F"
5863 if test -z "$FGREP"; then
5864 ac_path_FGREP_found
=false
5865 # Loop through the user's path and test for each of PROGNAME-LIST
5866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5867 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5870 test -z "$as_dir" && as_dir
=.
5871 for ac_prog
in fgrep
; do
5872 for ac_exec_ext
in '' $ac_executable_extensions; do
5873 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5874 as_fn_executable_p
"$ac_path_FGREP" ||
continue
5875 # Check for GNU ac_path_FGREP and select it if it is found.
5876 # Check for GNU $ac_path_FGREP
5877 case `"$ac_path_FGREP" --version 2>&1` in
5879 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5882 $as_echo_n 0123456789 >"conftest.in"
5885 cat "conftest.in" "conftest.in" >"conftest.tmp"
5886 mv "conftest.tmp" "conftest.in"
5887 cp "conftest.in" "conftest.nl"
5888 $as_echo 'FGREP' >> "conftest.nl"
5889 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5890 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5891 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5892 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5893 # Best one so far, save it but keep looking for a better one
5894 ac_cv_path_FGREP
="$ac_path_FGREP"
5895 ac_path_FGREP_max
=$ac_count
5897 # 10*(2^10) chars as input seems more than enough
5898 test $ac_count -gt 10 && break
5900 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5903 $ac_path_FGREP_found && break 3
5908 if test -z "$ac_cv_path_FGREP"; then
5909 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912 ac_cv_path_FGREP
=$FGREP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5918 $as_echo "$ac_cv_path_FGREP" >&6; }
5919 FGREP
="$ac_cv_path_FGREP"
5922 test -z "$GREP" && GREP
=grep
5942 # Check whether --with-gnu-ld was given.
5943 if test "${with_gnu_ld+set}" = set; then :
5944 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5950 if test "$GCC" = yes; then
5951 # Check if gcc -print-prog-name=ld gives a path.
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5953 $as_echo_n "checking for ld used by $CC... " >&6; }
5956 # gcc leaves a trailing carriage return which upsets mingw
5957 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5959 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5962 # Accept absolute paths.
5964 re_direlt
='/[^/][^/]*/\.\./'
5965 # Canonicalize the pathname of ld
5966 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5967 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
5968 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5970 test -z "$LD" && LD
="$ac_prog"
5973 # If it fails, then pretend we aren't using GCC.
5977 # If it is relative, then search for the first ld in PATH.
5981 elif test "$with_gnu_ld" = yes; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5983 $as_echo_n "checking for GNU ld... " >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5986 $as_echo_n "checking for non-GNU ld... " >&6; }
5988 if ${lt_cv_path_LD+:} false
; then :
5989 $as_echo_n "(cached) " >&6
5991 if test -z "$LD"; then
5992 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5993 for ac_dir
in $PATH; do
5995 test -z "$ac_dir" && ac_dir
=.
5996 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5997 lt_cv_path_LD
="$ac_dir/$ac_prog"
5998 # Check to see if the program is GNU ld. I'd rather use --version,
5999 # but apparently some variants of GNU ld only accept -v.
6000 # Break only if it was the GNU/non-GNU ld that we prefer.
6001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6002 *GNU
* |
*'with BFD'*)
6003 test "$with_gnu_ld" != no
&& break
6006 test "$with_gnu_ld" != yes && break
6013 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6018 if test -n "$LD"; then
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6020 $as_echo "$LD" >&6; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6023 $as_echo "no" >&6; }
6025 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6028 if ${lt_cv_prog_gnu_ld+:} false
; then :
6029 $as_echo_n "(cached) " >&6
6031 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6032 case `$LD -v 2>&1 </dev/null` in
6033 *GNU
* |
*'with BFD'*)
6034 lt_cv_prog_gnu_ld
=yes
6037 lt_cv_prog_gnu_ld
=no
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6042 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6043 with_gnu_ld
=$lt_cv_prog_gnu_ld
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6054 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6055 if ${lt_cv_path_NM+:} false
; then :
6056 $as_echo_n "(cached) " >&6
6058 if test -n "$NM"; then
6059 # Let the user override the test.
6062 lt_nm_to_check
="${ac_tool_prefix}nm"
6063 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6064 lt_nm_to_check
="$lt_nm_to_check nm"
6066 for lt_tmp_nm
in $lt_nm_to_check; do
6067 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6068 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6070 test -z "$ac_dir" && ac_dir
=.
6071 tmp_nm
="$ac_dir/$lt_tmp_nm"
6072 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6073 # Check to see if the nm accepts a BSD-compat flag.
6074 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6075 # nm: unknown option "B" ignored
6076 # Tru64's nm complains that /dev/null is an invalid object file
6077 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6078 */dev
/null
* |
*'Invalid file or object type'*)
6079 lt_cv_path_NM
="$tmp_nm -B"
6083 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6085 lt_cv_path_NM
="$tmp_nm -p"
6089 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6090 continue # so that we can try to find one that supports BSD flags
6099 : ${lt_cv_path_NM=no}
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6103 $as_echo "$lt_cv_path_NM" >&6; }
6104 if test "$lt_cv_path_NM" != "no"; then
6107 # Didn't find any BSD compatible name lister, look for dumpbin.
6108 if test -n "$DUMPBIN"; then :
6109 # Let the user override the test.
6111 if test -n "$ac_tool_prefix"; then
6112 for ac_prog
in dumpbin
"link -dump"
6114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6115 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6119 $as_echo_n "(cached) " >&6
6121 if test -n "$DUMPBIN"; then
6122 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir
=.
6129 for ac_exec_ext
in '' $ac_executable_extensions; do
6130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141 DUMPBIN
=$ac_cv_prog_DUMPBIN
6142 if test -n "$DUMPBIN"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6144 $as_echo "$DUMPBIN" >&6; }
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6151 test -n "$DUMPBIN" && break
6154 if test -z "$DUMPBIN"; then
6155 ac_ct_DUMPBIN
=$DUMPBIN
6156 for ac_prog
in dumpbin
"link -dump"
6158 # Extract the first word of "$ac_prog", so it can be a program name with args.
6159 set dummy
$ac_prog; ac_word
=$2
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6161 $as_echo_n "checking for $ac_word... " >&6; }
6162 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6163 $as_echo_n "(cached) " >&6
6165 if test -n "$ac_ct_DUMPBIN"; then
6166 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6172 test -z "$as_dir" && as_dir
=.
6173 for ac_exec_ext
in '' $ac_executable_extensions; do
6174 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6175 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6186 if test -n "$ac_ct_DUMPBIN"; then
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6188 $as_echo "$ac_ct_DUMPBIN" >&6; }
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6191 $as_echo "no" >&6; }
6195 test -n "$ac_ct_DUMPBIN" && break
6198 if test "x$ac_ct_DUMPBIN" = x
; then
6201 case $cross_compiling:$ac_tool_warned in
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6205 ac_tool_warned
=yes ;;
6207 DUMPBIN
=$ac_ct_DUMPBIN
6211 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6213 DUMPBIN
="$DUMPBIN -symbols"
6221 if test "$DUMPBIN" != ":"; then
6225 test -z "$NM" && NM
=nm
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6233 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6234 if ${lt_cv_nm_interface+:} false
; then :
6235 $as_echo_n "(cached) " >&6
6237 lt_cv_nm_interface
="BSD nm"
6238 echo "int some_variable = 0;" > conftest.
$ac_ext
6239 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6240 (eval "$ac_compile" 2>conftest.err
)
6241 cat conftest.err
>&5
6242 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6243 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6244 cat conftest.err
>&5
6245 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6246 cat conftest.out
>&5
6247 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6248 lt_cv_nm_interface
="MS dumpbin"
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6253 $as_echo "$lt_cv_nm_interface" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6256 $as_echo_n "checking whether ln -s works... " >&6; }
6258 if test "$LN_S" = "ln -s"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6260 $as_echo "yes" >&6; }
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6263 $as_echo "no, using $LN_S" >&6; }
6266 # find the maximum length of command line arguments
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6268 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6269 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6270 $as_echo_n "(cached) " >&6
6277 # On DJGPP, this test can blow up pretty badly due to problems in libc
6278 # (any single argument exceeding 2000 bytes causes a buffer overrun
6279 # during glob expansion). Even if it were fixed, the result of this
6280 # check would be larger than it should be.
6281 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6285 # Under GNU Hurd, this test is not required because there is
6286 # no limit to the length of command line arguments.
6287 # Libtool will interpret -1 as no limit whatsoever
6288 lt_cv_sys_max_cmd_len
=-1;
6291 cygwin
* | mingw
* | cegcc
*)
6292 # On Win9x/ME, this test blows up -- it succeeds, but takes
6293 # about 5 minutes as the teststring grows exponentially.
6294 # Worse, since 9x/ME are not pre-emptively multitasking,
6295 # you end up with a "frozen" computer, even though with patience
6296 # the test eventually succeeds (with a max line length of 256k).
6297 # Instead, let's just punt: use the minimum linelength reported by
6298 # all of the supported platforms: 8192 (on NT/2K/XP).
6299 lt_cv_sys_max_cmd_len
=8192;
6303 # On MiNT this can take a long time and run out of memory.
6304 lt_cv_sys_max_cmd_len
=8192;
6308 # On AmigaOS with pdksh, this test takes hours, literally.
6309 # So we just punt and use a minimum line length of 8192.
6310 lt_cv_sys_max_cmd_len
=8192;
6313 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6314 # This has been around since 386BSD, at least. Likely further.
6315 if test -x /sbin
/sysctl
; then
6316 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6317 elif test -x /usr
/sbin
/sysctl
; then
6318 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6320 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6322 # And add a safety zone
6323 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6324 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6328 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6329 lt_cv_sys_max_cmd_len
=196608
6333 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6334 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6335 # nice to cause kernel panics so lets avoid the loop below.
6336 # First set a reasonable default.
6337 lt_cv_sys_max_cmd_len
=16384
6339 if test -x /sbin
/sysconfig
; then
6340 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6341 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6346 lt_cv_sys_max_cmd_len
=102400
6348 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6349 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6350 if test -n "$kargmax"; then
6351 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6353 lt_cv_sys_max_cmd_len
=32768
6357 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6358 if test -n "$lt_cv_sys_max_cmd_len"; then
6359 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6360 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6362 # Make teststring a little bigger before we do anything with it.
6363 # a 1K string should be a reasonable start.
6364 for i
in 1 2 3 4 5 6 7 8 ; do
6365 teststring
=$teststring$teststring
6367 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6368 # If test is not a shell built-in, we'll probably end up computing a
6369 # maximum length that is only half of the actual maximum length, but
6371 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6372 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6373 test $i != 17 # 1/2 MB should be enough
6376 teststring
=$teststring$teststring
6378 # Only check the string length outside the loop.
6379 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6381 # Add a significant safety factor because C++ compilers can tack on
6382 # massive amounts of additional arguments before passing them to the
6383 # linker. It appears as though 1/2 is a usable value.
6384 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6391 if test -n $lt_cv_sys_max_cmd_len ; then
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6393 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6396 $as_echo "none" >&6; }
6398 max_cmd_len
=$lt_cv_sys_max_cmd_len
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6410 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6411 # Try some XSI features
6414 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6416 && eval 'test $(( 1 + 1 )) -eq 2 \
6417 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
6420 $as_echo "$xsi_shell" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
6424 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
6426 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
6428 && lt_shell_append=yes
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
6430 $as_echo "$lt_shell_append" >&6; }
6433 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6443 # test EBCDIC or ASCII
6444 case `echo X|tr X '\101'` in
6445 A) # ASCII based system
6446 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6447 lt_SP2NL='tr \040 \012'
6448 lt_NL2SP='tr \015\012 \040\040'
6450 *) # EBCDIC based system
6451 lt_SP2NL='tr \100 \n'
6452 lt_NL2SP='tr \r\n \100\100'
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
6465 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
6466 if ${lt_cv_ld_reload_flag+:} false; then :
6467 $as_echo_n "(cached
) " >&6
6469 lt_cv_ld_reload_flag='-r'
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
6472 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6473 reload_flag=$lt_cv_ld_reload_flag
6474 case $reload_flag in
6476 *) reload_flag=" $reload_flag" ;;
6478 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6481 if test "$GCC" = yes; then
6482 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6484 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6501 $as_echo_n "checking
for $ac_word...
" >&6; }
6502 if ${ac_cv_prog_OBJDUMP+:} false; then :
6503 $as_echo_n "(cached
) " >&6
6505 if test -n "$OBJDUMP"; then
6506 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6515 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
6516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6525 OBJDUMP=$ac_cv_prog_OBJDUMP
6526 if test -n "$OBJDUMP"; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
6528 $as_echo "$OBJDUMP" >&6; }
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6531 $as_echo "no
" >&6; }
6536 if test -z "$ac_cv_prog_OBJDUMP"; then
6537 ac_ct_OBJDUMP=$OBJDUMP
6538 # Extract the first word of "objdump
", so it can be a program name with args.
6539 set dummy objdump; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6541 $as_echo_n "checking
for $ac_word...
" >&6; }
6542 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6543 $as_echo_n "(cached
) " >&6
6545 if test -n "$ac_ct_OBJDUMP"; then
6546 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6555 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
6556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6565 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6566 if test -n "$ac_ct_OBJDUMP"; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
6568 $as_echo "$ac_ct_OBJDUMP" >&6; }
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6571 $as_echo "no
" >&6; }
6574 if test "x
$ac_ct_OBJDUMP" = x; then
6577 case $cross_compiling:$ac_tool_warned in
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6580 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6581 ac_tool_warned=yes ;;
6583 OBJDUMP=$ac_ct_OBJDUMP
6586 OBJDUMP="$ac_cv_prog_OBJDUMP"
6589 test -z "$OBJDUMP" && OBJDUMP=objdump
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
6600 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
6601 if ${lt_cv_deplibs_check_method+:} false; then :
6602 $as_echo_n "(cached
) " >&6
6604 lt_cv_file_magic_cmd='$MAGIC_CMD'
6605 lt_cv_file_magic_test_file=
6606 lt_cv_deplibs_check_method='unknown'
6607 # Need to set the preceding variable on all platforms that support
6608 # interlibrary dependencies.
6609 # 'none' -- dependencies not supported.
6610 # `unknown' -- same as none, but documents that we really don't know.
6611 # 'pass_all' -- all dependencies passed with no checks.
6612 # 'test_compile' -- check by making test program.
6613 # 'file_magic [[regex]]' -- check by looking for files in library path
6614 # which responds to the $file_magic_cmd with a given extended regex.
6615 # If you have `file' or equivalent on your system and you're not sure
6616 # whether `pass_all' will *always* work, you probably want this one.
6620 lt_cv_deplibs_check_method=pass_all
6624 lt_cv_deplibs_check_method=pass_all
6628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6629 lt_cv_file_magic_cmd='/usr/bin/file -L'
6630 lt_cv_file_magic_test_file=/shlib/libc.so
6634 # func_win32_libid is a shell function defined in ltmain.sh
6635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6636 lt_cv_file_magic_cmd='func_win32_libid'
6640 # Base MSYS/MinGW do not provide the 'file' command needed by
6641 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6642 # unless we find 'file', for example because we are cross-compiling.
6643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6644 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
6645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6646 lt_cv_file_magic_cmd='func_win32_libid'
6648 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6649 lt_cv_file_magic_cmd='$OBJDUMP -f'
6654 # use the weaker test based on 'objdump'. See mingw*.
6655 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6656 lt_cv_file_magic_cmd='$OBJDUMP -f'
6659 darwin* | rhapsody*)
6660 lt_cv_deplibs_check_method=pass_all
6663 freebsd* | dragonfly*)
6664 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6667 # Not sure whether the presence of OpenBSD here was a mistake.
6668 # Let's accept both of them until this is cleared up.
6669 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6670 lt_cv_file_magic_cmd=/usr/bin/file
6671 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6675 lt_cv_deplibs_check_method=pass_all
6680 lt_cv_deplibs_check_method=pass_all
6684 lt_cv_deplibs_check_method=pass_all
6687 hpux10.20* | hpux11*)
6688 lt_cv_file_magic_cmd=/usr/bin/file
6691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6692 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6695 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]'
6696 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6699 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6700 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6706 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6707 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6710 irix5* | irix6* | nonstopux*)
6712 *-32|*"-32 ") libmagic=32-bit;;
6713 *-n32|*"-n32 ") libmagic=N32;;
6714 *-64|*"-64 ") libmagic=64-bit;;
6715 *) libmagic=never-match;;
6717 lt_cv_deplibs_check_method=pass_all
6720 # This must be Linux ELF.
6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6722 lt_cv_deplibs_check_method=pass_all
6726 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6727 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6729 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6734 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6735 lt_cv_file_magic_cmd=/usr/bin/file
6736 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6740 lt_cv_deplibs_check_method=pass_all
6744 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
6745 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6747 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6751 osf3* | osf4* | osf5*)
6752 lt_cv_deplibs_check_method=pass_all
6756 lt_cv_deplibs_check_method=pass_all
6760 lt_cv_deplibs_check_method=pass_all
6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6764 lt_cv_deplibs_check_method=pass_all
6768 case $host_vendor in
6770 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]'
6771 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6774 lt_cv_deplibs_check_method=pass_all
6777 lt_cv_file_magic_cmd='/bin/file'
6778 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6781 lt_cv_file_magic_cmd='/bin/file'
6782 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
6783 lt_cv_file_magic_test_file=/lib/libc.so
6786 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6795 lt_cv_deplibs_check_method=pass_all
6798 # Assume VxWorks cross toolchains are built on Linux, possibly
6799 # as canadian for Windows hosts.
6800 lt_cv_deplibs_check_method=pass_all
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
6806 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6807 file_magic_cmd=$lt_cv_file_magic_cmd
6808 deplibs_check_method=$lt_cv_deplibs_check_method
6809 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}ar; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6826 $as_echo_n "checking
for $ac_word...
" >&6; }
6827 if ${ac_cv_prog_AR+:} false; then :
6828 $as_echo_n "(cached
) " >&6
6830 if test -n "$AR"; then
6831 ac_cv_prog_AR="$AR" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6840 ac_cv_prog_AR="${ac_tool_prefix}ar"
6841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6851 if test -n "$AR"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
6853 $as_echo "$AR" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6856 $as_echo "no
" >&6; }
6861 if test -z "$ac_cv_prog_AR"; then
6863 # Extract the first word of "ar", so it can be a program name with args.
6864 set dummy ar; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6866 $as_echo_n "checking
for $ac_word...
" >&6; }
6867 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6868 $as_echo_n "(cached
) " >&6
6870 if test -n "$ac_ct_AR"; then
6871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_ac_ct_AR="ar"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6890 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6891 if test -n "$ac_ct_AR"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
6893 $as_echo "$ac_ct_AR" >&6; }
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6896 $as_echo "no
" >&6; }
6899 if test "x
$ac_ct_AR" = x; then
6902 case $cross_compiling:$ac_tool_warned in
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6905 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6906 ac_tool_warned=yes ;;
6914 test -z "$AR" && AR=ar
6915 test -z "$AR_FLAGS" && AR_FLAGS=cru
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}strip; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6931 $as_echo_n "checking
for $ac_word...
" >&6; }
6932 if ${ac_cv_prog_STRIP+:} false; then :
6933 $as_echo_n "(cached
) " >&6
6935 if test -n "$STRIP"; then
6936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6955 STRIP=$ac_cv_prog_STRIP
6956 if test -n "$STRIP"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6958 $as_echo "$STRIP" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6961 $as_echo "no
" >&6; }
6966 if test -z "$ac_cv_prog_STRIP"; then
6968 # Extract the first word of "strip
", so it can be a program name with args.
6969 set dummy strip; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6971 $as_echo_n "checking
for $ac_word...
" >&6; }
6972 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6973 $as_echo_n "(cached
) " >&6
6975 if test -n "$ac_ct_STRIP"; then
6976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985 ac_cv_prog_ac_ct_STRIP="strip
"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6996 if test -n "$ac_ct_STRIP"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6998 $as_echo "$ac_ct_STRIP" >&6; }
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7001 $as_echo "no
" >&6; }
7004 if test "x
$ac_ct_STRIP" = x; then
7007 case $cross_compiling:$ac_tool_warned in
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7010 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7011 ac_tool_warned=yes ;;
7016 STRIP="$ac_cv_prog_STRIP"
7019 test -z "$STRIP" && STRIP=:
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7030 $as_echo_n "checking
for $ac_word...
" >&6; }
7031 if ${ac_cv_prog_RANLIB+:} false; then :
7032 $as_echo_n "(cached
) " >&6
7034 if test -n "$RANLIB"; then
7035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7054 RANLIB=$ac_cv_prog_RANLIB
7055 if test -n "$RANLIB"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
7057 $as_echo "$RANLIB" >&6; }
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7060 $as_echo "no
" >&6; }
7065 if test -z "$ac_cv_prog_RANLIB"; then
7066 ac_ct_RANLIB=$RANLIB
7067 # Extract the first word of "ranlib
", so it can be a program name with args.
7068 set dummy ranlib; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7070 $as_echo_n "checking
for $ac_word...
" >&6; }
7071 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7072 $as_echo_n "(cached
) " >&6
7074 if test -n "$ac_ct_RANLIB"; then
7075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_RANLIB="ranlib
"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7095 if test -n "$ac_ct_RANLIB"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
7097 $as_echo "$ac_ct_RANLIB" >&6; }
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7100 $as_echo "no
" >&6; }
7103 if test "x
$ac_ct_RANLIB" = x; then
7106 case $cross_compiling:$ac_tool_warned in
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7109 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7110 ac_tool_warned=yes ;;
7112 RANLIB=$ac_ct_RANLIB
7115 RANLIB="$ac_cv_prog_RANLIB"
7118 test -z "$RANLIB" && RANLIB=:
7125 # Determine commands to create old-style static archives.
7126 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7127 old_postinstall_cmds='chmod 644 $oldlib'
7128 old_postuninstall_cmds=
7130 if test -n "$RANLIB"; then
7133 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
7136 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
7139 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
7144 lock_old_archive_extraction=yes ;;
7146 lock_old_archive_extraction=no ;;
7187 # If no C compiler was specified, use CC.
7190 # If no C compiler flags were specified, use CFLAGS.
7191 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7193 # Allow CC to be a program name with arguments.
7197 # Check for command to grab the raw symbol name followed by C symbol from nm.
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
7199 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
7200 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7201 $as_echo_n "(cached
) " >&6
7204 # These are sane defaults that work on at least a few old systems.
7205 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7207 # Character class describing NM global symbol codes.
7208 symcode='[BCDEGRST]'
7210 # Regexp to match symbols that can be accessed directly from C.
7211 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7213 # Define system-specific variables.
7218 cygwin* | mingw* | pw32* | cegcc*)
7219 symcode='[ABCDGISTW]'
7222 if test "$host_cpu" = ia64; then
7223 symcode='[ABCDEGRST]'
7227 symcode='[BCDEGRST]'
7230 symcode='[BCDEGQRST]'
7241 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7249 # If we're using GNU nm, then use its standard symbol codes.
7250 case `$NM -V 2>&1` in
7251 *GNU* | *'with BFD'*)
7252 symcode='[ABCDGIRSTW]' ;;
7255 # Transform an extracted symbol line into a proper C declaration.
7256 # Some systems (esp. on ia64) link data and code symbols differently,
7257 # so use this general approach.
7258 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7260 # Transform an extracted symbol line into symbol name and symbol address
7261 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7262 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'"
7264 # Handle CRLF in mingw tool chain
7268 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7272 # Try without a prefix underscore, then with it.
7273 for ac_symprfx in "" "_
"; do
7275 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7276 symxfrm="\\1 $ac_symprfx\\2 \\2"
7278 # Write the raw and C identifiers.
7279 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
7280 # Fake it for dumpbin and say T for any non-static function
7281 # and D for any global variable.
7282 # Also find C++ and __fastcall symbols from MSVC++,
7283 # which start with @ or ?.
7284 lt_cv_sys_global_symbol_pipe="$AWK '"\
7285 " {last_section=section; section=\$ 3};"\
7286 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7287 " \$ 0!~/External *\|/{next};"\
7288 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7289 " {if(hide[section]) next};"\
7290 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7291 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7292 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7293 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7294 " ' prfx
=^
$ac_symprfx"
7296 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7299 # Check to see that the pipe works correctly.
7303 cat > conftest.$ac_ext <<_LT_EOF
7308 void nm_test_func(void);
7309 void nm_test_func(void){}
7313 int main(){nm_test_var='a';nm_test_func();return(0);}
7316 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7317 (eval $ac_compile) 2>&5
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7320 test $ac_status = 0; }; then
7321 # Now try to grab the symbols.
7323 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
7324 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7326 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7327 test $ac_status = 0; } && test -s "$nlist"; then
7328 # Try sorting and uniquifying the output.
7329 if sort "$nlist" | uniq > "$nlist"T; then
7330 mv -f "$nlist"T "$nlist"
7335 # Make sure that we snagged all the symbols we need.
7336 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7337 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7338 cat <<_LT_EOF > conftest.$ac_ext
7344 # Now generate the symbol file.
7345 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7347 cat <<_LT_EOF >> conftest.$ac_ext
7349 /* The mapping between symbol names and symbols. */
7354 lt__PROGRAM__LTX_preloaded_symbols[] =
7356 { "@PROGRAM@
", (void *) 0 },
7358 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7359 cat <<\_LT_EOF >> conftest.$ac_ext
7363 /* This works around a problem in FreeBSD linker */
7364 #ifdef FREEBSD_WORKAROUND
7365 static const void *lt_preloaded_setup() {
7366 return lt__PROGRAM__LTX_preloaded_symbols;
7374 # Now try linking the two files.
7375 mv conftest.$ac_objext conftstm.$ac_objext
7376 lt_save_LIBS="$LIBS"
7377 lt_save_CFLAGS="$CFLAGS"
7378 LIBS="conftstm.
$ac_objext"
7379 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7380 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7381 (eval $ac_link) 2>&5
7383 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7384 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7387 LIBS="$lt_save_LIBS"
7388 CFLAGS="$lt_save_CFLAGS"
7390 echo "cannot
find nm_test_func
in $nlist" >&5
7393 echo "cannot
find nm_test_var
in $nlist" >&5
7396 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
7399 echo "$progname: failed program was
:" >&5
7400 cat conftest.$ac_ext >&5
7402 rm -rf conftest* conftst*
7404 # Do not use the global_symbol_pipe unless it works.
7405 if test "$pipe_works" = yes; then
7408 lt_cv_sys_global_symbol_pipe=
7414 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7415 lt_cv_sys_global_symbol_to_cdecl=
7417 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
7419 $as_echo "failed
" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
7422 $as_echo "ok
" >&6; }
7447 # Check whether --enable-libtool-lock was given.
7448 if test "${enable_libtool_lock+set}" = set; then :
7449 enableval=$enable_libtool_lock;
7452 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
7454 # Some flags need to be propagated to the compiler or linker for good
7458 # Find out which ABI we are using.
7459 echo 'int i;' > conftest.$ac_ext
7460 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7461 (eval $ac_compile) 2>&5
7463 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7464 test $ac_status = 0; }; then
7465 case `/usr/bin/file conftest.$ac_objext` in
7477 # Find out which ABI we are using.
7478 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
7479 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7480 (eval $ac_compile) 2>&5
7482 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7483 test $ac_status = 0; }; then
7484 if test "$lt_cv_prog_gnu_ld" = yes; then
7485 case `/usr/bin/file conftest.$ac_objext` in
7487 LD="${LD-ld} -melf32bsmip"
7490 LD="${LD-ld} -melf32bmipn32"
7493 LD="${LD-ld} -melf64bmip"
7497 case `/usr/bin/file conftest.$ac_objext` in
7513 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7514 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7515 # Find out which ABI we are using.
7516 echo 'int i;' > conftest.$ac_ext
7517 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7518 (eval $ac_compile) 2>&5
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7521 test $ac_status = 0; }; then
7522 case `/usr/bin/file conftest.o` in
7525 x86_64-*kfreebsd*-gnu)
7526 LD="${LD-ld} -m elf_i386_fbsd
"
7529 case `/usr/bin/file conftest.o` in
7531 LD="${LD-ld} -m elf32_x86_64
"
7534 LD="${LD-ld} -m elf_i386
"
7538 powerpc64le-*linux*)
7539 LD="${LD-ld} -m elf32lppclinux
"
7542 LD="${LD-ld} -m elf32ppclinux
"
7545 LD="${LD-ld} -m elf_s390
"
7548 LD="${LD-ld} -m elf32_sparc
"
7554 x86_64-*kfreebsd*-gnu)
7555 LD="${LD-ld} -m elf_x86_64_fbsd
"
7558 LD="${LD-ld} -m elf_x86_64
"
7561 LD="${LD-ld} -m elf64lppc
"
7564 LD="${LD-ld} -m elf64ppc
"
7566 s390*-*linux*|s390*-*tpf*)
7567 LD="${LD-ld} -m elf64_s390
"
7570 LD="${LD-ld} -m elf64_sparc
"
7580 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7581 SAVE_CFLAGS="$CFLAGS"
7582 CFLAGS="$CFLAGS -belf"
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
7584 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
7585 if ${lt_cv_cc_needs_belf+:} false; then :
7586 $as_echo_n "(cached
) " >&6
7589 ac_cpp='$CPP $CPPFLAGS'
7590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7605 if ac_fn_c_try_link "$LINENO"; then :
7606 lt_cv_cc_needs_belf=yes
7608 lt_cv_cc_needs_belf=no
7610 rm -f core conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
7613 ac_cpp='$CPP $CPPFLAGS'
7614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
7620 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7621 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7622 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7623 CFLAGS="$SAVE_CFLAGS"
7627 # Find out which ABI we are using.
7628 echo 'int i;' > conftest.$ac_ext
7629 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7630 (eval $ac_compile) 2>&5
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 case `/usr/bin/file conftest.o` in
7636 case $lt_cv_prog_gnu_ld in
7637 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
7639 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7651 need_locks="$enable_libtool_lock"
7655 rhapsody* | darwin*)
7656 if test -n "$ac_tool_prefix"; then
7657 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7658 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7660 $as_echo_n "checking
for $ac_word...
" >&6; }
7661 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7662 $as_echo_n "(cached
) " >&6
7664 if test -n "$DSYMUTIL"; then
7665 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7684 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7685 if test -n "$DSYMUTIL"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7687 $as_echo "$DSYMUTIL" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7690 $as_echo "no
" >&6; }
7695 if test -z "$ac_cv_prog_DSYMUTIL"; then
7696 ac_ct_DSYMUTIL=$DSYMUTIL
7697 # Extract the first word of "dsymutil
", so it can be a program name with args.
7698 set dummy dsymutil; ac_word=$2
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7700 $as_echo_n "checking
for $ac_word...
" >&6; }
7701 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7702 $as_echo_n "(cached
) " >&6
7704 if test -n "$ac_ct_DSYMUTIL"; then
7705 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7724 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7725 if test -n "$ac_ct_DSYMUTIL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7727 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7730 $as_echo "no
" >&6; }
7733 if test "x
$ac_ct_DSYMUTIL" = x; then
7736 case $cross_compiling:$ac_tool_warned in
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7739 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7740 ac_tool_warned=yes ;;
7742 DSYMUTIL=$ac_ct_DSYMUTIL
7745 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7748 if test -n "$ac_tool_prefix"; then
7749 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7750 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7752 $as_echo_n "checking
for $ac_word...
" >&6; }
7753 if ${ac_cv_prog_NMEDIT+:} false; then :
7754 $as_echo_n "(cached
) " >&6
7756 if test -n "$NMEDIT"; then
7757 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 test -z "$as_dir" && as_dir=.
7764 for ac_exec_ext in '' $ac_executable_extensions; do
7765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7776 NMEDIT=$ac_cv_prog_NMEDIT
7777 if test -n "$NMEDIT"; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7779 $as_echo "$NMEDIT" >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7782 $as_echo "no
" >&6; }
7787 if test -z "$ac_cv_prog_NMEDIT"; then
7788 ac_ct_NMEDIT=$NMEDIT
7789 # Extract the first word of "nmedit
", so it can be a program name with args.
7790 set dummy nmedit; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7792 $as_echo_n "checking
for $ac_word...
" >&6; }
7793 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7794 $as_echo_n "(cached
) " >&6
7796 if test -n "$ac_ct_NMEDIT"; then
7797 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7816 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7817 if test -n "$ac_ct_NMEDIT"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7819 $as_echo "$ac_ct_NMEDIT" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7822 $as_echo "no
" >&6; }
7825 if test "x
$ac_ct_NMEDIT" = x; then
7828 case $cross_compiling:$ac_tool_warned in
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7831 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7832 ac_tool_warned=yes ;;
7834 NMEDIT=$ac_ct_NMEDIT
7837 NMEDIT="$ac_cv_prog_NMEDIT"
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7844 $as_echo_n "checking
for $ac_word...
" >&6; }
7845 if ${ac_cv_prog_LIPO+:} false; then :
7846 $as_echo_n "(cached
) " >&6
7848 if test -n "$LIPO"; then
7849 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7868 LIPO=$ac_cv_prog_LIPO
7869 if test -n "$LIPO"; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7871 $as_echo "$LIPO" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7874 $as_echo "no
" >&6; }
7879 if test -z "$ac_cv_prog_LIPO"; then
7881 # Extract the first word of "lipo
", so it can be a program name with args.
7882 set dummy lipo; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7884 $as_echo_n "checking
for $ac_word...
" >&6; }
7885 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7886 $as_echo_n "(cached
) " >&6
7888 if test -n "$ac_ct_LIPO"; then
7889 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_ac_ct_LIPO="lipo
"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7908 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7909 if test -n "$ac_ct_LIPO"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7911 $as_echo "$ac_ct_LIPO" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7914 $as_echo "no
" >&6; }
7917 if test "x
$ac_ct_LIPO" = x; then
7920 case $cross_compiling:$ac_tool_warned in
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7923 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7924 ac_tool_warned=yes ;;
7929 LIPO="$ac_cv_prog_LIPO"
7932 if test -n "$ac_tool_prefix"; then
7933 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7934 set dummy ${ac_tool_prefix}otool; ac_word=$2
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7936 $as_echo_n "checking
for $ac_word...
" >&6; }
7937 if ${ac_cv_prog_OTOOL+:} false; then :
7938 $as_echo_n "(cached
) " >&6
7940 if test -n "$OTOOL"; then
7941 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7950 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7960 OTOOL=$ac_cv_prog_OTOOL
7961 if test -n "$OTOOL"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7963 $as_echo "$OTOOL" >&6; }
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7966 $as_echo "no
" >&6; }
7971 if test -z "$ac_cv_prog_OTOOL"; then
7973 # Extract the first word of "otool
", so it can be a program name with args.
7974 set dummy otool; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7976 $as_echo_n "checking
for $ac_word...
" >&6; }
7977 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7978 $as_echo_n "(cached
) " >&6
7980 if test -n "$ac_ct_OTOOL"; then
7981 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_ac_ct_OTOOL="otool
"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8000 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8001 if test -n "$ac_ct_OTOOL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
8003 $as_echo "$ac_ct_OTOOL" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8006 $as_echo "no
" >&6; }
8009 if test "x
$ac_ct_OTOOL" = x; then
8012 case $cross_compiling:$ac_tool_warned in
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8015 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8016 ac_tool_warned=yes ;;
8021 OTOOL="$ac_cv_prog_OTOOL"
8024 if test -n "$ac_tool_prefix"; then
8025 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
8026 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8028 $as_echo_n "checking
for $ac_word...
" >&6; }
8029 if ${ac_cv_prog_OTOOL64+:} false; then :
8030 $as_echo_n "(cached
) " >&6
8032 if test -n "$OTOOL64"; then
8033 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
8043 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8052 OTOOL64=$ac_cv_prog_OTOOL64
8053 if test -n "$OTOOL64"; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
8055 $as_echo "$OTOOL64" >&6; }
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8058 $as_echo "no
" >&6; }
8063 if test -z "$ac_cv_prog_OTOOL64"; then
8064 ac_ct_OTOOL64=$OTOOL64
8065 # Extract the first word of "otool64
", so it can be a program name with args.
8066 set dummy otool64; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
8068 $as_echo_n "checking
for $ac_word...
" >&6; }
8069 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8070 $as_echo_n "(cached
) " >&6
8072 if test -n "$ac_ct_OTOOL64"; then
8073 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_ac_ct_OTOOL64="otool64
"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
8092 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8093 if test -n "$ac_ct_OTOOL64"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
8095 $as_echo "$ac_ct_OTOOL64" >&6; }
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
8098 $as_echo "no
" >&6; }
8101 if test "x
$ac_ct_OTOOL64" = x; then
8104 case $cross_compiling:$ac_tool_warned in
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
8107 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
8108 ac_tool_warned=yes ;;
8110 OTOOL64=$ac_ct_OTOOL64
8113 OTOOL64="$ac_cv_prog_OTOOL64"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
8143 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
8144 if ${lt_cv_apple_cc_single_mod+:} false; then :
8145 $as_echo_n "(cached
) " >&6
8147 lt_cv_apple_cc_single_mod=no
8148 if test -z "${LT_MULTI_MODULE}"; then
8149 # By default we will add the -single_module flag. You can override
8150 # by either setting the environment variable LT_MULTI_MODULE
8151 # non-empty at configure time, or by adding -multi_module to the
8153 rm -rf libconftest.dylib*
8154 echo "int foo
(void
){return 1;}" > conftest.c
8155 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8156 -dynamiclib -Wl,-single_module conftest.c
" >&5
8157 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8158 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8160 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8161 lt_cv_apple_cc_single_mod=yes
8163 cat conftest.err >&5
8165 rm -rf libconftest.dylib*
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
8170 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
8172 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
8173 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8174 $as_echo_n "(cached
) " >&6
8176 lt_cv_ld_exported_symbols_list=no
8177 save_LDFLAGS=$LDFLAGS
8178 echo "_main
" > conftest.sym
8179 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8191 if ac_fn_c_try_link "$LINENO"; then :
8192 lt_cv_ld_exported_symbols_list=yes
8194 lt_cv_ld_exported_symbols_list=no
8196 rm -f core conftest.err conftest.$ac_objext \
8197 conftest$ac_exeext conftest.$ac_ext
8198 LDFLAGS="$save_LDFLAGS"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
8202 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
8204 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
8205 if ${lt_cv_ld_force_load+:} false; then :
8206 $as_echo_n "(cached
) " >&6
8208 lt_cv_ld_force_load=no
8209 cat > conftest.c << _LT_EOF
8210 int forced_loaded() { return 2;}
8212 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
8213 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8214 echo "$AR cru libconftest.a conftest.o
" >&5
8215 $AR cru libconftest.a conftest.o 2>&5
8216 cat > conftest.c << _LT_EOF
8217 int main() { return 0;}
8219 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
8220 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8222 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8223 lt_cv_ld_force_load=yes
8225 cat conftest.err >&5
8227 rm -f conftest.err libconftest.a conftest conftest.c
8228 rm -rf conftest.dSYM
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
8232 $as_echo "$lt_cv_ld_force_load" >&6; }
8233 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8234 # build without first building modern cctools / linker.
8235 case $host_cpu-$host_os in
8236 *-rhapsody* | *-darwin1.[012])
8237 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8239 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8241 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8242 # deployment target is forced to an earlier version.
8243 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8244 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8247 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8254 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8255 _lt_dar_single_mod='$single_module'
8257 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8258 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8260 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8262 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
8263 _lt_dsymutil='~$DSYMUTIL $lib || :'
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
8276 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
8277 # On Suns, sometimes $CPP names a directory.
8278 if test -n "$CPP" && test -d "$CPP"; then
8281 if test -z "$CPP"; then
8282 if ${ac_cv_prog_CPP+:} false; then :
8283 $as_echo_n "(cached
) " >&6
8285 # Double quotes because CPP needs to be expanded
8286 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
8289 for ac_c_preproc_warn_flag in '' yes
8291 # Use a header file that comes with gcc, so configuring glibc
8292 # with a fresh cross-compiler works.
8293 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8294 # <limits.h> exists even on freestanding compilers.
8295 # On the NeXT, cc -E runs the code through the compiler's parser,
8296 # not just through cpp. "Syntax error
" is here to catch this case.
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8300 # include <limits.h>
8302 # include <assert.h>
8306 if ac_fn_c_try_cpp "$LINENO"; then :
8309 # Broken: fails on valid input.
8312 rm -f conftest.err conftest.i conftest.$ac_ext
8314 # OK, works on sane cases. Now check whether nonexistent headers
8315 # can be detected and how.
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8318 #include <ac_nonexistent.h>
8320 if ac_fn_c_try_cpp "$LINENO"; then :
8321 # Broken: success on invalid input.
8324 # Passes both tests.
8328 rm -f conftest.err conftest.i conftest.$ac_ext
8331 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8332 rm -f conftest.i conftest.err conftest.$ac_ext
8333 if $ac_preproc_ok; then :
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
8346 $as_echo "$CPP" >&6; }
8348 for ac_c_preproc_warn_flag in '' yes
8350 # Use a header file that comes with gcc, so configuring glibc
8351 # with a fresh cross-compiler works.
8352 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8353 # <limits.h> exists even on freestanding compilers.
8354 # On the NeXT, cc -E runs the code through the compiler's parser,
8355 # not just through cpp. "Syntax error
" is here to catch this case.
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8359 # include <limits.h>
8361 # include <assert.h>
8365 if ac_fn_c_try_cpp "$LINENO"; then :
8368 # Broken: fails on valid input.
8371 rm -f conftest.err conftest.i conftest.$ac_ext
8373 # OK, works on sane cases. Now check whether nonexistent headers
8374 # can be detected and how.
8375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 #include <ac_nonexistent.h>
8379 if ac_fn_c_try_cpp "$LINENO"; then :
8380 # Broken: success on invalid input.
8383 # Passes both tests.
8387 rm -f conftest.err conftest.i conftest.$ac_ext
8390 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8391 rm -f conftest.i conftest.err conftest.$ac_ext
8392 if $ac_preproc_ok; then :
8395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
8396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8397 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8398 See \`config.log' for more details
" "$LINENO" 5; }
8402 ac_cpp='$CPP $CPPFLAGS'
8403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
8409 $as_echo_n "checking
for ANSI C header files...
" >&6; }
8410 if ${ac_cv_header_stdc+:} false; then :
8411 $as_echo_n "(cached
) " >&6
8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414 /* end confdefs.h. */
8428 if ac_fn_c_try_compile "$LINENO"; then :
8429 ac_cv_header_stdc=yes
8431 ac_cv_header_stdc=no
8433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 if test $ac_cv_header_stdc = yes; then
8436 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8438 /* end confdefs.h. */
8442 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8443 $EGREP "memchr
" >/dev/null 2>&1; then :
8446 ac_cv_header_stdc=no
8452 if test $ac_cv_header_stdc = yes; then
8453 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8459 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
8460 $EGREP "free
" >/dev/null 2>&1; then :
8463 ac_cv_header_stdc=no
8469 if test $ac_cv_header_stdc = yes; then
8470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8471 if test "$cross_compiling" = yes; then :
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8478 #if ((' ' & 0x0FF) == 0x020)
8479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8482 # define ISLOWER(c) \
8483 (('a' <= (c) && (c) <= 'i') \
8484 || ('j' <= (c) && (c) <= 'r') \
8485 || ('s' <= (c) && (c) <= 'z'))
8486 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8489 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8494 for (i = 0; i < 256; i++)
8495 if (XOR (islower (i), ISLOWER (i))
8496 || toupper (i) != TOUPPER (i))
8501 if ac_fn_c_try_run "$LINENO"; then :
8504 ac_cv_header_stdc=no
8506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8507 conftest.$ac_objext conftest.beam conftest.$ac_ext
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
8513 $as_echo "$ac_cv_header_stdc" >&6; }
8514 if test $ac_cv_header_stdc = yes; then
8516 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8520 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8521 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8522 inttypes.h stdint.h unistd.h
8524 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8525 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8527 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8528 cat >>confdefs.h
<<_ACEOF
8529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8537 for ac_header
in dlfcn.h
8539 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8541 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8542 cat >>confdefs.h
<<_ACEOF
8543 #define HAVE_DLFCN_H 1
8565 # Check whether --enable-shared was given.
8566 if test "${enable_shared+set}" = set; then :
8567 enableval
=$enable_shared; p
=${PACKAGE-default}
8569 yes) enable_shared
=yes ;;
8570 no
) enable_shared
=no
;;
8573 # Look at the argument we got. We use all the common list separators.
8574 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8575 for pkg
in $enableval; do
8577 if test "X$pkg" = "X$p"; then
8596 # Check whether --enable-static was given.
8597 if test "${enable_static+set}" = set; then :
8598 enableval
=$enable_static; p
=${PACKAGE-default}
8600 yes) enable_static
=yes ;;
8601 no
) enable_static
=no
;;
8604 # Look at the argument we got. We use all the common list separators.
8605 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8606 for pkg
in $enableval; do
8608 if test "X$pkg" = "X$p"; then
8628 # Check whether --with-pic was given.
8629 if test "${with_pic+set}" = set; then :
8630 withval
=$with_pic; pic_mode
="$withval"
8636 test -z "$pic_mode" && pic_mode
=default
8644 # Check whether --enable-fast-install was given.
8645 if test "${enable_fast_install+set}" = set; then :
8646 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8648 yes) enable_fast_install
=yes ;;
8649 no
) enable_fast_install
=no
;;
8651 enable_fast_install
=no
8652 # Look at the argument we got. We use all the common list separators.
8653 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8654 for pkg
in $enableval; do
8656 if test "X$pkg" = "X$p"; then
8657 enable_fast_install
=yes
8664 enable_fast_install
=yes
8677 # This can be used to rebuild libtool when needed
8678 LIBTOOL_DEPS
="$ltmain"
8680 # Always use our own libtool.
8681 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8708 test -z "$LN_S" && LN_S
="ln -s"
8723 if test -n "${ZSH_VERSION+set}" ; then
8724 setopt NO_GLOB_SUBST
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8728 $as_echo_n "checking for objdir... " >&6; }
8729 if ${lt_cv_objdir+:} false
; then :
8730 $as_echo_n "(cached) " >&6
8732 rm -f .libs
2>/dev
/null
8733 mkdir .libs
2>/dev
/null
8734 if test -d .libs
; then
8737 # MS-DOS does not allow filenames that begin with a dot.
8740 rmdir .libs
2>/dev
/null
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8743 $as_echo "$lt_cv_objdir" >&6; }
8744 objdir
=$lt_cv_objdir
8750 cat >>confdefs.h
<<_ACEOF
8751 #define LT_OBJDIR "$lt_cv_objdir/"
8759 # AIX sometimes has problems with the GCC collect2 program. For some
8760 # reason, if we set the COLLECT_NAMES environment variable, the problems
8761 # vanish in a puff of smoke.
8762 if test "X${COLLECT_NAMES+set}" != Xset
; then
8764 export COLLECT_NAMES
8771 can_build_shared
=yes
8773 # All known linkers require a `.a' archive for static linking (except MSVC,
8774 # which needs '.lib').
8777 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8780 old_CFLAGS
="$CFLAGS"
8782 # Set sane defaults for various variables
8783 test -z "$CC" && CC
=cc
8784 test -z "$LTCC" && LTCC
=$CC
8785 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8786 test -z "$LD" && LD
=ld
8787 test -z "$ac_objext" && ac_objext
=o
8789 for cc_temp
in $compiler""; do
8791 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
8792 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
8797 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8800 # Only perform the check for file, if the check method requires it
8801 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8802 case $deplibs_check_method in
8804 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8806 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8807 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8808 $as_echo_n "(cached) " >&6
8812 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8815 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8816 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8817 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8818 for ac_dir
in $ac_dummy; do
8820 test -z "$ac_dir" && ac_dir
=.
8821 if test -f $ac_dir/${ac_tool_prefix}file; then
8822 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8823 if test -n "$file_magic_test_file"; then
8824 case $deplibs_check_method in
8826 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8827 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8828 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8829 $EGREP "$file_magic_regex" > /dev
/null
; then
8834 *** Warning: the command libtool uses to detect shared libraries,
8835 *** $file_magic_cmd, produces output that libtool cannot recognize.
8836 *** The result is that libtool may fail to recognize shared libraries
8837 *** as such. This will affect the creation of libtool libraries that
8838 *** depend on shared libraries, but programs linked with such libtool
8839 *** libraries will work regardless of this problem. Nevertheless, you
8840 *** may want to report the problem to your system manager and/or to
8841 *** bug-libtool@gnu.org
8851 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8856 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8857 if test -n "$MAGIC_CMD"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8859 $as_echo "$MAGIC_CMD" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8869 if test -z "$lt_cv_path_MAGIC_CMD"; then
8870 if test -n "$ac_tool_prefix"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8872 $as_echo_n "checking for file... " >&6; }
8873 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8874 $as_echo_n "(cached) " >&6
8878 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8881 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8882 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8883 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8884 for ac_dir
in $ac_dummy; do
8886 test -z "$ac_dir" && ac_dir
=.
8887 if test -f $ac_dir/file; then
8888 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8889 if test -n "$file_magic_test_file"; then
8890 case $deplibs_check_method in
8892 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8893 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8894 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8895 $EGREP "$file_magic_regex" > /dev
/null
; then
8900 *** Warning: the command libtool uses to detect shared libraries,
8901 *** $file_magic_cmd, produces output that libtool cannot recognize.
8902 *** The result is that libtool may fail to recognize shared libraries
8903 *** as such. This will affect the creation of libtool libraries that
8904 *** depend on shared libraries, but programs linked with such libtool
8905 *** libraries will work regardless of this problem. Nevertheless, you
8906 *** may want to report the problem to your system manager and/or to
8907 *** bug-libtool@gnu.org
8917 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8922 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8923 if test -n "$MAGIC_CMD"; then
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8925 $as_echo "$MAGIC_CMD" >&6; }
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8941 # Use C for the default configuration in the libtool script
8945 ac_cpp
='$CPP $CPPFLAGS'
8946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8951 # Source file extension for C test sources.
8954 # Object file extension for compiled C test sources.
8958 # Code to be used in simple compile tests
8959 lt_simple_compile_test_code
="int some_variable = 0;"
8961 # Code to be used in simple link tests
8962 lt_simple_link_test_code
='int main(){return(0);}'
8970 # If no C compiler was specified, use CC.
8973 # If no C compiler flags were specified, use CFLAGS.
8974 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8976 # Allow CC to be a program name with arguments.
8979 # Save the default compiler, since it gets overwritten when the other
8980 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8981 compiler_DEFAULT
=$CC
8983 # save warnings/boilerplate of simple test code
8984 ac_outfile
=conftest.
$ac_objext
8985 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8986 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8987 _lt_compiler_boilerplate
=`cat conftest.err`
8990 ac_outfile
=conftest.
$ac_objext
8991 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8992 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8993 _lt_linker_boilerplate
=`cat conftest.err`
8998 ## There is no encapsulation within the following macros, do not change
8999 ## the running order or otherwise move them around unless you know exactly
9000 ## what you are doing...
9001 if test -n "$compiler"; then
9003 lt_prog_compiler_no_builtin_flag
=
9005 if test "$GCC" = yes; then
9006 case $cc_basename in
9008 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9010 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9014 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9015 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9016 $as_echo_n "(cached) " >&6
9018 lt_cv_prog_compiler_rtti_exceptions
=no
9019 ac_outfile
=conftest.
$ac_objext
9020 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9021 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9022 # Insert the option either (1) after the last *FLAGS variable, or
9023 # (2) before a word containing "conftest.", or (3) at the end.
9024 # Note that $ac_compile itself does not contain backslashes and begins
9025 # with a dollar sign (not a hyphen), so the echo should work correctly.
9026 # The option is referenced via a variable to avoid confusing sed.
9027 lt_compile
=`echo "$ac_compile" | $SED \
9028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030 -e 's:$: $lt_compiler_flag:'`
9031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9032 (eval "$lt_compile" 2>conftest.err
)
9034 cat conftest.err
>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 if (exit $ac_status) && test -s "$ac_outfile"; then
9037 # The compiler can only warn and ignore the option if not recognized
9038 # So say no if there are warnings other than the usual output.
9039 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9040 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9041 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9042 lt_cv_prog_compiler_rtti_exceptions
=yes
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9049 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9051 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9052 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9064 lt_prog_compiler_wl
=
9065 lt_prog_compiler_pic
=
9066 lt_prog_compiler_static
=
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9069 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9071 if test "$GCC" = yes; then
9072 lt_prog_compiler_wl
='-Wl,'
9073 lt_prog_compiler_static
='-static'
9077 # All AIX code is PIC.
9078 if test "$host_cpu" = ia64
; then
9079 # AIX 5 now supports IA64 processor
9080 lt_prog_compiler_static
='-Bstatic'
9082 lt_prog_compiler_pic
='-fPIC'
9088 # see comment about AmigaOS4 .so support
9089 lt_prog_compiler_pic
='-fPIC'
9092 # FIXME: we need at least 68020 code to build shared libraries, but
9093 # adding the `-m68020' flag to GCC prevents building anything better,
9095 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9100 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9101 # PIC is the default for these OSes.
9104 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9105 # This hack is so that the source file can tell whether it is being
9106 # built for inclusion in a dll (and should export symbols for example).
9107 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9108 # (--disable-auto-import) libraries
9109 lt_prog_compiler_pic
='-DDLL_EXPORT'
9112 darwin
* | rhapsody
*)
9113 # PIC is the default on this platform
9114 # Common symbols not allowed in MH_DYLIB files
9115 lt_prog_compiler_pic
='-fno-common'
9119 # PIC is the default for Haiku.
9120 # The "-static" flag exists, but is broken.
9121 lt_prog_compiler_static
=
9125 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9126 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9127 # sets the default TLS model and affects inlining.
9133 lt_prog_compiler_pic
='-fPIC'
9139 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9140 # Instead, we relocate shared libraries at runtime.
9144 # Just because we use GCC doesn't mean we suddenly get shared libraries
9145 # on systems that don't support them.
9146 lt_prog_compiler_can_build_shared
=no
9151 # QNX uses GNU C++, but need to define -shared option too, otherwise
9153 lt_prog_compiler_pic
='-fPIC -shared'
9157 if test -d /usr
/nec
; then
9158 lt_prog_compiler_pic
=-Kconform_pic
9163 lt_prog_compiler_pic
='-fPIC'
9167 case $cc_basename in
9168 nvcc
*) # Cuda Compiler Driver 2.2
9169 lt_prog_compiler_wl
='-Xlinker '
9170 lt_prog_compiler_pic
='-Xcompiler -fPIC'
9174 # PORTME Check for flag to pass linker flags through the system compiler.
9177 lt_prog_compiler_wl
='-Wl,'
9178 if test "$host_cpu" = ia64
; then
9179 # AIX 5 now supports IA64 processor
9180 lt_prog_compiler_static
='-Bstatic'
9182 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9186 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9187 # This hack is so that the source file can tell whether it is being
9188 # built for inclusion in a dll (and should export symbols for example).
9189 lt_prog_compiler_pic
='-DDLL_EXPORT'
9192 hpux9
* | hpux10
* | hpux11
*)
9193 lt_prog_compiler_wl
='-Wl,'
9194 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9201 lt_prog_compiler_pic
='+Z'
9204 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9205 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9208 irix5
* | irix6
* | nonstopux
*)
9209 lt_prog_compiler_wl
='-Wl,'
9210 # PIC (with -KPIC) is the default.
9211 lt_prog_compiler_static
='-non_shared'
9214 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9215 case $cc_basename in
9216 # old Intel for x86_64 which still supported -KPIC.
9218 lt_prog_compiler_wl
='-Wl,'
9219 lt_prog_compiler_pic
='-KPIC'
9220 lt_prog_compiler_static
='-static'
9222 # icc used to be incompatible with GCC.
9223 # ICC 10 doesn't accept -KPIC any more.
9225 lt_prog_compiler_wl
='-Wl,'
9226 lt_prog_compiler_pic
='-fPIC'
9227 lt_prog_compiler_static
='-static'
9229 # Lahey Fortran 8.1.
9231 lt_prog_compiler_wl
='-Wl,'
9232 lt_prog_compiler_pic
='--shared'
9233 lt_prog_compiler_static
='--static'
9235 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9236 # Portland Group compilers (*not* the Pentium gcc compiler,
9237 # which looks to be a dead project)
9238 lt_prog_compiler_wl
='-Wl,'
9239 lt_prog_compiler_pic
='-fpic'
9240 lt_prog_compiler_static
='-Bstatic'
9243 lt_prog_compiler_wl
='-Wl,'
9244 # All Alpha code is PIC.
9245 lt_prog_compiler_static
='-non_shared'
9247 xl
* | bgxl
* | bgf
* | mpixl
*)
9248 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9249 lt_prog_compiler_wl
='-Wl,'
9250 lt_prog_compiler_pic
='-qpic'
9251 lt_prog_compiler_static
='-qstaticlink'
9254 case `$CC -V 2>&1 | sed 5q` in
9255 *Sun\ F
* |
*Sun
*Fortran
*)
9256 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9257 lt_prog_compiler_pic
='-KPIC'
9258 lt_prog_compiler_static
='-Bstatic'
9259 lt_prog_compiler_wl
=''
9263 lt_prog_compiler_pic
='-KPIC'
9264 lt_prog_compiler_static
='-Bstatic'
9265 lt_prog_compiler_wl
='-Wl,'
9273 lt_prog_compiler_pic
='-KPIC'
9274 lt_prog_compiler_static
='-Bstatic'
9278 # QNX uses GNU C++, but need to define -shared option too, otherwise
9280 lt_prog_compiler_pic
='-fPIC -shared'
9283 osf3
* | osf4
* | osf5
*)
9284 lt_prog_compiler_wl
='-Wl,'
9285 # All OSF/1 code is PIC.
9286 lt_prog_compiler_static
='-non_shared'
9290 lt_prog_compiler_static
='-non_shared'
9294 lt_prog_compiler_pic
='-KPIC'
9295 lt_prog_compiler_static
='-Bstatic'
9296 case $cc_basename in
9298 lt_prog_compiler_wl
='-Qoption ld ';;
9300 lt_prog_compiler_wl
='-Wl,';;
9305 lt_prog_compiler_wl
='-Qoption ld '
9306 lt_prog_compiler_pic
='-PIC'
9307 lt_prog_compiler_static
='-Bstatic'
9310 sysv4 | sysv4.2uw2
* | sysv4.3
*)
9311 lt_prog_compiler_wl
='-Wl,'
9312 lt_prog_compiler_pic
='-KPIC'
9313 lt_prog_compiler_static
='-Bstatic'
9317 if test -d /usr
/nec
;then
9318 lt_prog_compiler_pic
='-Kconform_pic'
9319 lt_prog_compiler_static
='-Bstatic'
9323 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9324 lt_prog_compiler_wl
='-Wl,'
9325 lt_prog_compiler_pic
='-KPIC'
9326 lt_prog_compiler_static
='-Bstatic'
9330 lt_prog_compiler_wl
='-Wl,'
9331 lt_prog_compiler_can_build_shared
=no
9335 lt_prog_compiler_pic
='-pic'
9336 lt_prog_compiler_static
='-Bstatic'
9340 lt_prog_compiler_can_build_shared
=no
9346 # For platforms which do not support PIC, -DPIC is meaningless:
9348 lt_prog_compiler_pic
=
9351 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9355 $as_echo "$lt_prog_compiler_pic" >&6; }
9363 # Check to make sure the PIC flag actually works.
9365 if test -n "$lt_prog_compiler_pic"; then
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9367 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9368 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
9369 $as_echo_n "(cached) " >&6
9371 lt_cv_prog_compiler_pic_works
=no
9372 ac_outfile
=conftest.
$ac_objext
9373 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9374 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9375 # Insert the option either (1) after the last *FLAGS variable, or
9376 # (2) before a word containing "conftest.", or (3) at the end.
9377 # Note that $ac_compile itself does not contain backslashes and begins
9378 # with a dollar sign (not a hyphen), so the echo should work correctly.
9379 # The option is referenced via a variable to avoid confusing sed.
9380 lt_compile
=`echo "$ac_compile" | $SED \
9381 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9382 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9383 -e 's:$: $lt_compiler_flag:'`
9384 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9385 (eval "$lt_compile" 2>conftest.err
)
9387 cat conftest.err
>&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 if (exit $ac_status) && test -s "$ac_outfile"; then
9390 # The compiler can only warn and ignore the option if not recognized
9391 # So say no if there are warnings other than the usual output.
9392 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
9393 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9394 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9395 lt_cv_prog_compiler_pic_works
=yes
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9402 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9404 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
9405 case $lt_prog_compiler_pic in
9407 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9410 lt_prog_compiler_pic
=
9411 lt_prog_compiler_can_build_shared
=no
9422 # Check to make sure the static flag actually works.
9424 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9426 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9427 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9428 $as_echo_n "(cached) " >&6
9430 lt_cv_prog_compiler_static_works
=no
9431 save_LDFLAGS
="$LDFLAGS"
9432 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9433 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9434 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9435 # The linker can only warn and ignore the option if not recognized
9436 # So say no if there are warnings
9437 if test -s conftest.err
; then
9438 # Append any errors to the config.log.
9439 cat conftest.err
1>&5
9440 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9441 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9442 if diff conftest.exp conftest.er2
>/dev
/null
; then
9443 lt_cv_prog_compiler_static_works
=yes
9446 lt_cv_prog_compiler_static_works
=yes
9450 LDFLAGS
="$save_LDFLAGS"
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9454 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9456 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
9459 lt_prog_compiler_static
=
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9470 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9471 $as_echo_n "(cached) " >&6
9473 lt_cv_prog_compiler_c_o
=no
9474 $RM -r conftest
2>/dev
/null
9478 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9480 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9481 # Insert the option either (1) after the last *FLAGS variable, or
9482 # (2) before a word containing "conftest.", or (3) at the end.
9483 # Note that $ac_compile itself does not contain backslashes and begins
9484 # with a dollar sign (not a hyphen), so the echo should work correctly.
9485 lt_compile
=`echo "$ac_compile" | $SED \
9486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9488 -e 's:$: $lt_compiler_flag:'`
9489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9490 (eval "$lt_compile" 2>out
/conftest.err
)
9492 cat out
/conftest.err
>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9496 # The compiler can only warn and ignore the option if not recognized
9497 # So say no if there are warnings
9498 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9499 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9500 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9501 lt_cv_prog_compiler_c_o
=yes
9506 # SGI C++ compiler will create directory out/ii_files/ for
9507 # template instantiation
9508 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9509 $RM out
/* && rmdir out
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9516 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9524 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9525 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9526 $as_echo_n "(cached) " >&6
9528 lt_cv_prog_compiler_c_o
=no
9529 $RM -r conftest
2>/dev
/null
9533 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9535 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9536 # Insert the option either (1) after the last *FLAGS variable, or
9537 # (2) before a word containing "conftest.", or (3) at the end.
9538 # Note that $ac_compile itself does not contain backslashes and begins
9539 # with a dollar sign (not a hyphen), so the echo should work correctly.
9540 lt_compile
=`echo "$ac_compile" | $SED \
9541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9543 -e 's:$: $lt_compiler_flag:'`
9544 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9545 (eval "$lt_compile" 2>out
/conftest.err
)
9547 cat out
/conftest.err
>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9551 # The compiler can only warn and ignore the option if not recognized
9552 # So say no if there are warnings
9553 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9554 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9555 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9556 lt_cv_prog_compiler_c_o
=yes
9561 # SGI C++ compiler will create directory out/ii_files/ for
9562 # template instantiation
9563 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9564 $RM out
/* && rmdir out
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9571 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9576 hard_links
="nottested"
9577 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9578 # do not overwrite the value of need_locks provided by the user
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9580 $as_echo_n "checking if we can lock with hard links... " >&6; }
9583 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9585 ln conftest.a conftest.b
2>&5 || hard_links
=no
9586 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9588 $as_echo "$hard_links" >&6; }
9589 if test "$hard_links" = no
; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9591 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9604 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9607 allow_undefined_flag
=
9608 always_export_symbols
=no
9610 archive_expsym_cmds
=
9611 compiler_needs_object
=no
9612 enable_shared_with_static_runtimes
=no
9613 export_dynamic_flag_spec
=
9614 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9615 hardcode_automatic
=no
9617 hardcode_direct_absolute
=no
9618 hardcode_libdir_flag_spec
=
9619 hardcode_libdir_flag_spec_ld
=
9620 hardcode_libdir_separator
=
9622 hardcode_shlibpath_var
=unsupported
9624 link_all_deplibs
=unknown
9627 old_archive_from_new_cmds
=
9628 old_archive_from_expsyms_cmds
=
9629 thread_safe_flag_spec
=
9630 whole_archive_flag_spec
=
9631 # include_expsyms should be a list of space-separated symbols to be *always*
9632 # included in the symbol list
9634 # exclude_expsyms can be an extended regexp of symbols to exclude
9635 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9636 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9637 # as well as any symbol that contains `d'.
9638 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9639 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9640 # platforms (ab)use it in PIC code, but their linkers get confused if
9641 # the symbol is explicitly referenced. Since portable code cannot
9642 # rely on this symbol name, it's probably fine to never include it in
9643 # preloaded symbol tables.
9644 # Exclude shared library initialization/finalization symbols.
9645 extract_expsyms_cmds
=
9648 cygwin
* | mingw
* | pw32
* | cegcc
*)
9649 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9650 # When not using gcc, we currently assume that we are using
9651 # Microsoft Visual C++.
9652 if test "$GCC" != yes; then
9657 # we just hope/assume this is gcc and not c89 (= MSVC++)
9667 # On some targets, GNU ld is compatible enough with the native linker
9668 # that we're better off using the native interface for both.
9669 lt_use_gnu_ld_interface
=no
9670 if test "$with_gnu_ld" = yes; then
9673 # The AIX port of GNU ld has always aspired to compatibility
9674 # with the native linker. However, as the warning in the GNU ld
9675 # block says, versions before 2.19.5* couldn't really create working
9676 # shared libraries, regardless of the interface used.
9677 case `$LD -v 2>&1` in
9678 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9679 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9680 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9682 lt_use_gnu_ld_interface
=yes
9687 lt_use_gnu_ld_interface
=yes
9692 if test "$lt_use_gnu_ld_interface" = yes; then
9693 # If archive_cmds runs LD, not CC, wlarc should be empty
9696 # Set some defaults for GNU ld with shared library support. These
9697 # are reset later if shared libraries are not supported. Putting them
9698 # here allows them to be overridden if necessary.
9699 runpath_var
=LD_RUN_PATH
9700 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9701 export_dynamic_flag_spec
='${wl}--export-dynamic'
9702 # ancient GNU ld didn't support --whole-archive et. al.
9703 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9704 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9706 whole_archive_flag_spec
=
9708 supports_anon_versioning
=no
9709 case `$LD -v 2>&1` in
9710 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9711 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9712 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9713 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9714 *\
2.11.
*) ;; # other 2.11 versions
9715 *) supports_anon_versioning
=yes ;;
9718 # See if GNU ld supports shared libraries.
9721 # On AIX/PPC, the GNU linker is very broken
9722 if test "$host_cpu" != ia64
; then
9726 *** Warning: the GNU linker, at least up to release 2.19, is reported
9727 *** to be unable to reliably create shared libraries on AIX.
9728 *** Therefore, libtool is disabling shared libraries support. If you
9729 *** really care for shared libraries, you may want to install binutils
9730 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9731 *** You will then need to restart the configuration process.
9740 # see comment about AmigaOS4 .so support
9741 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9742 archive_expsym_cmds
=''
9745 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)'
9746 hardcode_libdir_flag_spec
='-L$libdir'
9747 hardcode_minus_L
=yes
9753 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9754 allow_undefined_flag
=unsupported
9755 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9756 # support --undefined. This deserves some investigation. FIXME
9757 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763 cygwin
* | mingw
* | pw32
* | cegcc
*)
9764 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9765 # as there is no search path for DLLs.
9766 hardcode_libdir_flag_spec
='-L$libdir'
9767 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9768 allow_undefined_flag
=unsupported
9769 always_export_symbols
=no
9770 enable_shared_with_static_runtimes
=yes
9771 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9773 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9774 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9775 # If the export-symbols file already is a .def file (1st line
9776 # is EXPORTS), use it as is; otherwise, prepend...
9777 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9778 cp $export_symbols $output_objdir/$soname.def;
9780 echo EXPORTS > $output_objdir/$soname.def;
9781 cat $export_symbols >> $output_objdir/$soname.def;
9783 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9790 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9791 link_all_deplibs
=yes
9796 hardcode_shlibpath_var
=no
9797 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9798 export_dynamic_flag_spec
='${wl}-E'
9799 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9800 # Instead, shared libraries are loaded at an image base (0x10000000 by
9801 # default) and relocated if they conflict, which is a slow very memory
9802 # consuming and fragmenting process. To avoid this, we pick a random,
9803 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9804 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9805 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9806 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'
9809 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu | uclinuxfdpiceabi
)
9811 if test "$host_os" = linux-dietlibc
; then
9812 case $cc_basename in
9813 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9816 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9817 && test "$tmp_diet" = no
9819 tmp_addflag
=' $pic_flag'
9820 tmp_sharedflag
='-shared'
9821 case $cc_basename,$host_cpu in
9822 pgcc
*) # Portland Group C compiler
9823 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'
9824 tmp_addflag
=' $pic_flag'
9826 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9827 # Portland Group f77 and f90 compilers
9828 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'
9829 tmp_addflag
=' $pic_flag -Mnomain' ;;
9830 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9831 tmp_addflag
=' -i_dynamic' ;;
9832 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9833 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9834 ifc
* | ifort
*) # Intel Fortran compiler
9835 tmp_addflag
=' -nofor_main' ;;
9836 lf95
*) # Lahey Fortran 8.1
9837 whole_archive_flag_spec
=
9838 tmp_sharedflag
='--shared' ;;
9839 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9840 tmp_sharedflag
='-qmkshrobj'
9842 nvcc
*) # Cuda Compiler Driver 2.2
9843 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'
9844 compiler_needs_object
=yes
9847 case `$CC -V 2>&1 | sed 5q` in
9848 *Sun\ C
*) # Sun C 5.9
9849 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'
9850 compiler_needs_object
=yes
9851 tmp_sharedflag
='-G' ;;
9852 *Sun\ F
*) # Sun Fortran 8.3
9853 tmp_sharedflag
='-G' ;;
9855 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9857 if test "x$supports_anon_versioning" = xyes
; then
9858 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9859 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9860 echo "local: *; };" >> $output_objdir/$libname.ver~
9861 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9864 case $cc_basename in
9865 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9866 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9867 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9868 hardcode_libdir_flag_spec
=
9869 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9870 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9871 if test "x$supports_anon_versioning" = xyes
; then
9872 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9873 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9874 echo "local: *; };" >> $output_objdir/$libname.ver~
9875 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9885 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9886 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9889 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9895 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9899 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9900 *** create shared libraries on Solaris systems. Therefore, libtool
9901 *** is disabling shared libraries support. We urge you to upgrade GNU
9902 *** binutils to release 2.9.1 or newer. Another option is to modify
9903 *** your PATH or compiler configuration so that the native linker is
9904 *** used, and then restart.
9907 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9908 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9909 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9915 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9916 case `$LD -v 2>&1` in
9917 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9921 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9922 *** reliably create shared libraries on SCO systems. Therefore, libtool
9923 *** is disabling shared libraries support. We urge you to upgrade GNU
9924 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9925 *** your PATH or compiler configuration so that the native linker is
9926 *** used, and then restart.
9931 # For security reasons, it is highly recommended that you always
9932 # use absolute paths for naming shared libraries, and exclude the
9933 # DT_RUNPATH tag from executables and libraries. But doing so
9934 # requires that you compile everything twice, which is a pain.
9935 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9936 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9937 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9938 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9947 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9950 hardcode_shlibpath_var
=no
9954 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9955 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963 if test "$ld_shlibs" = no
; then
9965 hardcode_libdir_flag_spec
=
9966 export_dynamic_flag_spec
=
9967 whole_archive_flag_spec
=
9970 # PORTME fill in a description of your system's linker (not GNU ld)
9973 allow_undefined_flag
=unsupported
9974 always_export_symbols
=yes
9975 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'
9976 # Note: this linker hardcodes the directories in LIBPATH if there
9977 # are no directories specified by -L.
9978 hardcode_minus_L
=yes
9979 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9980 # Neither direct hardcoding nor static linking is supported with a
9982 hardcode_direct
=unsupported
9987 if test "$host_cpu" = ia64
; then
9988 # On IA64, the linker does run time linking by default, so we don't
9989 # have to do anything special.
9990 aix_use_runtimelinking
=no
9991 exp_sym_flag
='-Bexport'
9994 # If we're using GNU nm, then we don't want the "-C" option.
9995 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9996 # Also, AIX nm treats weak defined symbols like other global
9997 # defined symbols, whereas GNU nm marks them as "W".
9998 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9999 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'
10001 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10003 aix_use_runtimelinking
=no
10005 # Test if we are trying to use run time linking or normal
10006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10007 # need to do runtime linking.
10008 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10009 for ld_flag
in $LDFLAGS; do
10010 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
10011 aix_use_runtimelinking
=yes
10018 exp_sym_flag
='-bexport'
10019 no_entry_flag
='-bnoentry'
10022 # When large executables or shared objects are built, AIX ld can
10023 # have problems creating the table of contents. If linking a library
10024 # or program results in "error TOC overflow" add -mminimal-toc to
10025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10029 hardcode_direct
=yes
10030 hardcode_direct_absolute
=yes
10031 hardcode_libdir_separator
=':'
10032 link_all_deplibs
=yes
10033 file_list_spec
='${wl}-f,'
10035 if test "$GCC" = yes; then
10036 case $host_os in aix4.
[012]|aix4.
[012].
*)
10037 # We only want to do this on AIX 4.2 and lower, the check
10038 # below for broken collect2 doesn't work under 4.3+
10039 collect2name
=`${CC} -print-prog-name=collect2`
10040 if test -f "$collect2name" &&
10041 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
10043 # We have reworked collect2
10046 # We have old collect2
10047 hardcode_direct
=unsupported
10048 # It fails to find uninstalled libraries when the uninstalled
10049 # path is not listed in the libpath. Setting hardcode_minus_L
10050 # to unsupported forces relinking
10051 hardcode_minus_L
=yes
10052 hardcode_libdir_flag_spec
='-L$libdir'
10053 hardcode_libdir_separator
=
10057 shared_flag
='-shared'
10058 if test "$aix_use_runtimelinking" = yes; then
10059 shared_flag
="$shared_flag "'${wl}-G'
10063 if test "$host_cpu" = ia64
; then
10064 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10065 # chokes on -Wl,-G. The following line is correct:
10068 if test "$aix_use_runtimelinking" = yes; then
10069 shared_flag
='${wl}-G'
10071 shared_flag
='${wl}-bM:SRE'
10076 export_dynamic_flag_spec
='${wl}-bexpall'
10077 # It seems that -bexpall does not export symbols beginning with
10078 # underscore (_), so it is better to generate a list of symbols to export.
10079 always_export_symbols
=yes
10080 if test "$aix_use_runtimelinking" = yes; then
10081 # Warning - without using the other runtime loading flags (-brtl),
10082 # -berok will link without error, but may produce a broken library.
10083 allow_undefined_flag
='-berok'
10084 # Determine the default libpath from the value encoded in an
10085 # empty executable.
10086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10097 if ac_fn_c_try_link
"$LINENO"; then :
10099 lt_aix_libpath_sed
='
10100 /Import File Strings/,/^$/ {
10106 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10107 # Check for a 64-bit object if we didn't find anything.
10108 if test -z "$aix_libpath"; then
10109 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10112 rm -f core conftest.err conftest.
$ac_objext \
10113 conftest
$ac_exeext conftest.
$ac_ext
10114 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10116 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10117 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"
10119 if test "$host_cpu" = ia64
; then
10120 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10121 allow_undefined_flag
="-z nodefs"
10122 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"
10124 # Determine the default libpath from the value encoded in an
10125 # empty executable.
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10137 if ac_fn_c_try_link
"$LINENO"; then :
10139 lt_aix_libpath_sed
='
10140 /Import File Strings/,/^$/ {
10146 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10147 # Check for a 64-bit object if we didn't find anything.
10148 if test -z "$aix_libpath"; then
10149 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152 rm -f core conftest.err conftest.
$ac_objext \
10153 conftest
$ac_exeext conftest.
$ac_ext
10154 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
10156 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10157 # Warning - without using the other run time loading flags,
10158 # -berok will link without error, but may produce a broken library.
10159 no_undefined_flag
=' ${wl}-bernotok'
10160 allow_undefined_flag
=' ${wl}-berok'
10161 if test "$with_gnu_ld" = yes; then
10162 # We only use this code for GNU lds that support --whole-archive.
10163 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10165 # Exported symbols can be pulled into shared objects from archives
10166 whole_archive_flag_spec
='$convenience'
10168 archive_cmds_need_lc
=yes
10169 # This is similar to how AIX traditionally builds its shared libraries.
10170 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'
10178 # see comment about AmigaOS4 .so support
10179 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10180 archive_expsym_cmds
=''
10183 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)'
10184 hardcode_libdir_flag_spec
='-L$libdir'
10185 hardcode_minus_L
=yes
10191 export_dynamic_flag_spec
=-rdynamic
10194 cygwin
* | mingw
* | pw32
* | cegcc
*)
10195 # When not using gcc, we currently assume that we are using
10196 # Microsoft Visual C++.
10197 # hardcode_libdir_flag_spec is actually meaningless, as there is
10198 # no search path for DLLs.
10199 hardcode_libdir_flag_spec
=' '
10200 allow_undefined_flag
=unsupported
10201 # Tell ltmain to make .lib files, not .a files.
10203 # Tell ltmain to make .dll files, not .so files.
10205 # FIXME: Setting linknames here is a bad hack.
10206 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10207 # The linker will automatically build a .lib file if we build a DLL.
10208 old_archive_from_new_cmds
='true'
10209 # FIXME: Should let the user specify the lib program.
10210 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10211 fix_srcfile_path
='`cygpath -w "$srcfile"`'
10212 enable_shared_with_static_runtimes
=yes
10215 darwin
* | rhapsody
*)
10218 archive_cmds_need_lc
=no
10220 hardcode_automatic
=yes
10221 hardcode_shlibpath_var
=unsupported
10222 if test "$lt_cv_ld_force_load" = "yes"; then
10223 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\"`'
10225 whole_archive_flag_spec
=''
10227 link_all_deplibs
=yes
10228 allow_undefined_flag
="$_lt_dar_allow_undefined"
10229 case $cc_basename in
10230 ifort
*) _lt_dar_can_shared
=yes ;;
10231 *) _lt_dar_can_shared
=$GCC ;;
10233 if test "$_lt_dar_can_shared" = "yes"; then
10234 output_verbose_link_cmd
=func_echo_all
10235 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10236 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10237 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}"
10238 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}"
10247 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248 hardcode_libdir_flag_spec
='-L$libdir'
10249 hardcode_shlibpath_var
=no
10252 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10253 # support. Future versions do this automatically, but an explicit c++rt0.o
10254 # does not break anything, and helps significantly (at the cost of a little
10257 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10258 hardcode_libdir_flag_spec
='-R$libdir'
10259 hardcode_direct
=yes
10260 hardcode_shlibpath_var
=no
10263 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10265 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10266 hardcode_direct
=yes
10267 hardcode_minus_L
=yes
10268 hardcode_shlibpath_var
=no
10271 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10272 freebsd
* | dragonfly
*)
10273 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10274 hardcode_libdir_flag_spec
='-R$libdir'
10275 hardcode_direct
=yes
10276 hardcode_shlibpath_var
=no
10280 if test "$GCC" = yes; then
10281 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'
10283 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'
10285 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10286 hardcode_libdir_separator
=:
10287 hardcode_direct
=yes
10289 # hardcode_minus_L: Not really in the search PATH,
10290 # but as the default location of the library.
10291 hardcode_minus_L
=yes
10292 export_dynamic_flag_spec
='${wl}-E'
10296 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10297 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10299 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10301 if test "$with_gnu_ld" = no
; then
10302 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10303 hardcode_libdir_flag_spec_ld
='+b $libdir'
10304 hardcode_libdir_separator
=:
10305 hardcode_direct
=yes
10306 hardcode_direct_absolute
=yes
10307 export_dynamic_flag_spec
='${wl}-E'
10308 # hardcode_minus_L: Not really in the search PATH,
10309 # but as the default location of the library.
10310 hardcode_minus_L
=yes
10315 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10318 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10333 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10337 # Older versions of the 11.00 compiler do not understand -b yet
10338 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10340 $as_echo_n "checking if $CC understands -b... " >&6; }
10341 if ${lt_cv_prog_compiler__b+:} false
; then :
10342 $as_echo_n "(cached) " >&6
10344 lt_cv_prog_compiler__b
=no
10345 save_LDFLAGS
="$LDFLAGS"
10346 LDFLAGS
="$LDFLAGS -b"
10347 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10348 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10349 # The linker can only warn and ignore the option if not recognized
10350 # So say no if there are warnings
10351 if test -s conftest.err
; then
10352 # Append any errors to the config.log.
10353 cat conftest.err
1>&5
10354 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10355 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10356 if diff conftest.exp conftest.er2
>/dev
/null
; then
10357 lt_cv_prog_compiler__b
=yes
10360 lt_cv_prog_compiler__b
=yes
10364 LDFLAGS
="$save_LDFLAGS"
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10368 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10370 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10371 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10373 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10379 if test "$with_gnu_ld" = no
; then
10380 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10381 hardcode_libdir_separator
=:
10386 hardcode_shlibpath_var
=no
10389 hardcode_direct
=yes
10390 hardcode_direct_absolute
=yes
10391 export_dynamic_flag_spec
='${wl}-E'
10393 # hardcode_minus_L: Not really in the search PATH,
10394 # but as the default location of the library.
10395 hardcode_minus_L
=yes
10401 irix5
* | irix6
* | nonstopux
*)
10402 if test "$GCC" = yes; then
10403 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'
10404 # Try to use the -exported_symbol ld option, if it does not
10405 # work, assume that -exports_file does not work either and
10406 # implicitly export all symbols.
10407 save_LDFLAGS
="$LDFLAGS"
10408 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10413 if ac_fn_c_try_link
"$LINENO"; then :
10414 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'
10417 rm -f core conftest.err conftest.
$ac_objext \
10418 conftest
$ac_exeext conftest.
$ac_ext
10419 LDFLAGS
="$save_LDFLAGS"
10421 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'
10422 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'
10424 archive_cmds_need_lc
='no'
10425 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10426 hardcode_libdir_separator
=:
10428 link_all_deplibs
=yes
10432 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10433 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10435 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10437 hardcode_libdir_flag_spec
='-R$libdir'
10438 hardcode_direct
=yes
10439 hardcode_shlibpath_var
=no
10443 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444 hardcode_direct
=yes
10445 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10446 hardcode_libdir_separator
=:
10447 hardcode_shlibpath_var
=no
10454 if test -f /usr
/libexec
/ld.so
; then
10455 hardcode_direct
=yes
10456 hardcode_shlibpath_var
=no
10457 hardcode_direct_absolute
=yes
10458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10459 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10460 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10461 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10462 export_dynamic_flag_spec
='${wl}-E'
10465 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10466 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10467 hardcode_libdir_flag_spec
='-R$libdir'
10470 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10471 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10481 hardcode_libdir_flag_spec
='-L$libdir'
10482 hardcode_minus_L
=yes
10483 allow_undefined_flag
=unsupported
10484 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'
10485 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10489 if test "$GCC" = yes; then
10490 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10491 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'
10493 allow_undefined_flag
=' -expect_unresolved \*'
10494 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'
10496 archive_cmds_need_lc
='no'
10497 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10498 hardcode_libdir_separator
=:
10501 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10502 if test "$GCC" = yes; then
10503 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10504 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'
10505 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10507 allow_undefined_flag
=' -expect_unresolved \*'
10508 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'
10509 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~
10510 $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'
10512 # Both c and cxx compiler support -rpath directly
10513 hardcode_libdir_flag_spec
='-rpath $libdir'
10515 archive_cmds_need_lc
='no'
10516 hardcode_libdir_separator
=:
10520 no_undefined_flag
=' -z defs'
10521 if test "$GCC" = yes; then
10523 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10524 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10525 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10527 case `$CC -V 2>&1` in
10530 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10531 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10532 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10536 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10537 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10538 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10542 hardcode_libdir_flag_spec
='-R$libdir'
10543 hardcode_shlibpath_var
=no
10545 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10547 # The compiler driver will combine and reorder linker options,
10548 # but understands `-z linker_flag'. GCC discards it without `$wl',
10549 # but is careful enough not to reorder.
10550 # Supported since Solaris 2.6 (maybe 2.5.1?)
10551 if test "$GCC" = yes; then
10552 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10554 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10558 link_all_deplibs
=yes
10562 if test "x$host_vendor" = xsequent
; then
10563 # Use $CC to link under sequent, because it throws in some extra .o
10564 # files that make .init and .fini sections work.
10565 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10567 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10569 hardcode_libdir_flag_spec
='-L$libdir'
10570 hardcode_direct
=yes
10571 hardcode_minus_L
=yes
10572 hardcode_shlibpath_var
=no
10576 case $host_vendor in
10578 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10579 hardcode_direct
=yes # is this really true???
10582 ## LD is ld it makes a PLAMLIB
10583 ## CC just makes a GrossModule.
10584 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10585 reload_cmds
='$CC -r -o $output$reload_objs'
10589 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10590 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10593 runpath_var
='LD_RUN_PATH'
10594 hardcode_shlibpath_var
=no
10598 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10599 hardcode_shlibpath_var
=no
10600 export_dynamic_flag_spec
='-Bexport'
10604 if test -d /usr
/nec
; then
10605 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606 hardcode_shlibpath_var
=no
10607 runpath_var
=LD_RUN_PATH
10608 hardcode_runpath_var
=yes
10613 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10614 no_undefined_flag
='${wl}-z,text'
10615 archive_cmds_need_lc
=no
10616 hardcode_shlibpath_var
=no
10617 runpath_var
='LD_RUN_PATH'
10619 if test "$GCC" = yes; then
10620 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10621 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 sysv5
* | sco3.2v5
* | sco5v6
*)
10629 # Note: We can NOT use -z defs as we might desire, because we do not
10630 # link with -lc, and that would cause any symbols used from libc to
10631 # always be unresolved, which means just about no library would
10632 # ever link correctly. If we're not using GNU ld we use -z text
10633 # though, which does catch some bad symbols but isn't as heavy-handed
10635 no_undefined_flag
='${wl}-z,text'
10636 allow_undefined_flag
='${wl}-z,nodefs'
10637 archive_cmds_need_lc
=no
10638 hardcode_shlibpath_var
=no
10639 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10640 hardcode_libdir_separator
=':'
10641 link_all_deplibs
=yes
10642 export_dynamic_flag_spec
='${wl}-Bexport'
10643 runpath_var
='LD_RUN_PATH'
10645 if test "$GCC" = yes; then
10646 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10655 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10656 hardcode_libdir_flag_spec
='-L$libdir'
10657 hardcode_shlibpath_var
=no
10665 if test x
$host_vendor = xsni
; then
10667 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10668 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10675 $as_echo "$ld_shlibs" >&6; }
10676 test "$ld_shlibs" = no
&& can_build_shared
=no
10678 with_gnu_ld
=$with_gnu_ld
10695 # Do we need to explicitly link libc?
10697 case "x$archive_cmds_need_lc" in
10699 # Assume -lc should be added
10700 archive_cmds_need_lc
=yes
10702 if test "$enable_shared" = yes && test "$GCC" = yes; then
10703 case $archive_cmds in
10705 # FIXME: we may have to deal with multi-command sequences.
10708 # Test whether the compiler implicitly links with -lc since on some
10709 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10710 # to ld, don't add -lc before -lgcc.
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10712 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10713 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10714 $as_echo_n "(cached) " >&6
10717 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10720 (eval $ac_compile) 2>&5
10722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10723 test $ac_status = 0; } 2>conftest.err
; then
10726 libobjs
=conftest.
$ac_objext
10728 wl
=$lt_prog_compiler_wl
10729 pic_flag
=$lt_prog_compiler_pic
10735 lt_save_allow_undefined_flag
=$allow_undefined_flag
10736 allow_undefined_flag
=
10737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10738 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10741 test $ac_status = 0; }
10743 lt_cv_archive_cmds_need_lc
=no
10745 lt_cv_archive_cmds_need_lc
=yes
10747 allow_undefined_flag
=$lt_save_allow_undefined_flag
10749 cat conftest.err
1>&5
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10755 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10756 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10920 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10922 if test "$GCC" = yes; then
10924 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10925 *) lt_awk_arg
="/^libraries:/" ;;
10928 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10929 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10931 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10932 case $lt_search_path_spec in
10934 # if the path contains ";" then we assume it to be the separator
10935 # otherwise default to the standard path separator (i.e. ":") - it is
10936 # assumed that no part of a normal pathname contains ";" but that should
10937 # okay in the real world where ";" in dirpaths is itself problematic.
10938 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10941 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10944 # Ok, now we have the path, separated by spaces, we can step through it
10945 # and add multilib dir if necessary.
10946 lt_tmp_lt_search_path_spec
=
10947 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10948 for lt_sys_path
in $lt_search_path_spec; do
10949 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10950 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10952 test -d "$lt_sys_path" && \
10953 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10956 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10957 BEGIN {RS=" "; FS="/|\n";} {
10960 for (lt_i = NF; lt_i > 0; lt_i--) {
10961 if ($lt_i != "" && $lt_i != ".") {
10962 if ($lt_i == "..") {
10965 if (lt_count == 0) {
10966 lt_foo="/" $lt_i lt_foo;
10973 if (lt_foo != "") { lt_freq[lt_foo]++; }
10974 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10976 # AWK program above erroneously prepends '/' to C:/dos/paths
10979 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10980 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10982 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10984 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10986 library_names_spec
=
10987 libname_spec
='lib$name'
10991 postuninstall_cmds
=
10995 shlibpath_overrides_runpath
=unknown
10997 dynamic_linker
="$host_os ld.so"
10998 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10999 need_lib_prefix
=unknown
11000 hardcode_into_libs
=no
11002 # when you set need_version to no, make sure it does not cause -set_version
11003 # flags to be left without arguments
11004 need_version
=unknown
11009 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11010 shlibpath_var
=LIBPATH
11012 # AIX 3 has no versioning support, so we append a major version to the name.
11013 soname_spec
='${libname}${release}${shared_ext}$major'
11020 hardcode_into_libs
=yes
11021 if test "$host_cpu" = ia64
; then
11022 # AIX 5 supports IA64
11023 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11024 shlibpath_var
=LD_LIBRARY_PATH
11026 # With GCC up to 2.95.x, collect2 would create an import file
11027 # for dependence libraries. The import file would start with
11028 # the line `#! .'. This would cause the generated library to
11029 # depend on `.', always an invalid library. This was fixed in
11030 # development snapshots of GCC prior to 3.0.
11032 aix4 | aix4.
[01] | aix4.
[01].
*)
11033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11035 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
11038 can_build_shared
=no
11042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11043 # soname into executable. Probably we can add versioning support to
11044 # collect2, so additional links can be useful in future.
11045 if test "$aix_use_runtimelinking" = yes; then
11046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11047 # instead of lib<name>.a to let people know that these are not
11048 # typical AIX shared libraries.
11049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 # We preserve .a as extension for shared libraries through AIX4.2
11052 # and later when we are not doing run time linking.
11053 library_names_spec
='${libname}${release}.a $libname.a'
11054 soname_spec
='${libname}${release}${shared_ext}$major'
11056 shlibpath_var
=LIBPATH
11063 # Since July 2007 AmigaOS4 officially supports .so libraries.
11064 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11065 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068 library_names_spec
='$libname.ixlibrary $libname.a'
11069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11070 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'
11076 library_names_spec
='${libname}${shared_ext}'
11077 dynamic_linker
="$host_os ld.so"
11078 shlibpath_var
=LIBRARY_PATH
11084 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11085 soname_spec
='${libname}${release}${shared_ext}$major'
11086 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11087 shlibpath_var
=LD_LIBRARY_PATH
11088 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11089 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11090 # the default ld.so.conf also contains /usr/contrib/lib and
11091 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11092 # libtool to hard-code these into programs
11095 cygwin
* | mingw
* | pw32
* | cegcc
*)
11096 version_type
=windows
11101 case $GCC,$host_os in
11102 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
11103 library_names_spec
='$libname.dll.a'
11104 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11105 postinstall_cmds
='base_file=`basename \${file}`~
11106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11107 dldir=$destdir/`dirname \$dlpath`~
11108 test -d \$dldir || mkdir -p \$dldir~
11109 $install_prog $dir/$dlname \$dldir/$dlname~
11110 chmod a+x \$dldir/$dlname~
11111 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11112 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11114 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11115 dlpath=$dir/\$dldll~
11117 shlibpath_overrides_runpath
=yes
11121 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11122 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11124 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11127 # MinGW DLLs use traditional 'lib' prefix
11128 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11131 # pw32 DLLs use 'pw' prefix rather than 'lib'
11132 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11138 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11141 dynamic_linker
='Win32 ld.exe'
11142 # FIXME: first we should search . and the directory the executable is in
11146 darwin
* | rhapsody
*)
11147 dynamic_linker
="$host_os dyld"
11148 version_type
=darwin
11151 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11152 soname_spec
='${libname}${release}${major}$shared_ext'
11153 shlibpath_overrides_runpath
=yes
11154 shlibpath_var
=DYLD_LIBRARY_PATH
11155 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11157 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11158 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11166 soname_spec
='${libname}${release}${shared_ext}$major'
11167 shlibpath_var
=LD_LIBRARY_PATH
11170 freebsd
* | dragonfly
*)
11171 # DragonFly does not have aout. When/if they implement a new
11172 # versioning mechanism, adjust this.
11173 if test -x /usr
/bin
/objformat
; then
11174 objformat
=`/usr/bin/objformat`
11177 freebsd
[23].
*) objformat
=aout
;;
11178 *) objformat
=elf
;;
11181 version_type
=freebsd-
$objformat
11182 case $version_type in
11184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11189 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11193 shlibpath_var
=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath
=yes
11198 freebsd3.
[01]* | freebsdelf3.
[01]*)
11199 shlibpath_overrides_runpath
=yes
11200 hardcode_into_libs
=yes
11202 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11203 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11204 shlibpath_overrides_runpath
=no
11205 hardcode_into_libs
=yes
11207 *) # from 4.6 on, and DragonFly
11208 shlibpath_overrides_runpath
=yes
11209 hardcode_into_libs
=yes
11218 dynamic_linker
="$host_os runtime_loader"
11219 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11220 soname_spec
='${libname}${release}${shared_ext}$major'
11221 shlibpath_var
=LIBRARY_PATH
11222 shlibpath_overrides_runpath
=yes
11223 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11224 hardcode_into_libs
=yes
11227 hpux9
* | hpux10
* | hpux11
*)
11228 # Give a soname corresponding to the major version so that dld.sl refuses to
11229 # link against other versions.
11236 hardcode_into_libs
=yes
11237 dynamic_linker
="$host_os dld.so"
11238 shlibpath_var
=LD_LIBRARY_PATH
11239 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 soname_spec
='${libname}${release}${shared_ext}$major'
11242 if test "X$HPUX_IA64_MODE" = X32
; then
11243 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11245 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11247 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11251 hardcode_into_libs
=yes
11252 dynamic_linker
="$host_os dld.sl"
11253 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11254 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 soname_spec
='${libname}${release}${shared_ext}$major'
11257 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11258 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11262 dynamic_linker
="$host_os dld.sl"
11263 shlibpath_var
=SHLIB_PATH
11264 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 soname_spec
='${libname}${release}${shared_ext}$major'
11269 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11270 postinstall_cmds
='chmod 555 $lib'
11271 # or fails outright, so override atomically:
11272 install_override_mode
=555
11279 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11280 soname_spec
='${libname}${release}${shared_ext}$major'
11281 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11282 shlibpath_var
=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath
=no
11284 hardcode_into_libs
=yes
11287 irix5
* | irix6
* | nonstopux
*)
11289 nonstopux
*) version_type
=nonstopux
;;
11291 if test "$lt_cv_prog_gnu_ld" = yes; then
11299 soname_spec
='${libname}${release}${shared_ext}$major'
11300 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11302 irix5
* | nonstopux
*)
11303 libsuff
= shlibsuff
=
11306 case $LD in # libtool.m4 will add one of these switches to LD
11307 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11308 libsuff
= shlibsuff
= libmagic
=32-bit;;
11309 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11310 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11311 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11312 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11313 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11317 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11318 shlibpath_overrides_runpath
=no
11319 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11320 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11321 hardcode_into_libs
=yes
11324 # No shared lib support for Linux oldld, aout, or coff.
11325 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11329 # This must be Linux ELF.
11331 # uclinux* changes (here and below) have been submitted to the libtool
11332 # project, but have not yet been accepted: they are GCC-local changes
11333 # for the time being. (See
11334 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11335 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
11339 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11340 soname_spec
='${libname}${release}${shared_ext}$major'
11341 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11342 shlibpath_var
=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath
=no
11345 # Some binutils ld are patched to set DT_RUNPATH
11346 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11347 $as_echo_n "(cached) " >&6
11349 lt_cv_shlibpath_overrides_runpath
=no
11350 save_LDFLAGS
=$LDFLAGS
11351 save_libdir
=$libdir
11352 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11353 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11365 if ac_fn_c_try_link
"$LINENO"; then :
11366 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11367 lt_cv_shlibpath_overrides_runpath
=yes
11370 rm -f core conftest.err conftest.
$ac_objext \
11371 conftest
$ac_exeext conftest.
$ac_ext
11372 LDFLAGS
=$save_LDFLAGS
11373 libdir
=$save_libdir
11377 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11379 # This implies no fast_install, which is unacceptable.
11380 # Some rework will be needed to allow for fast_install
11381 # before this can be enabled.
11382 hardcode_into_libs
=yes
11384 # Append ld.so.conf contents to the search path
11385 if test -f /etc
/ld.so.conf
; then
11386 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' ' '`
11387 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11390 # We used to test for /lib/ld.so.1 and disable shared libraries on
11391 # powerpc, because MkLinux only supported shared libraries with the
11392 # GNU dynamic linker. Since this was broken with cross compilers,
11393 # most powerpc-linux boxes support dynamic linking these days and
11394 # people can always --disable-shared, the test was removed, and we
11395 # assume the GNU/Linux dynamic linker is in use.
11396 dynamic_linker
='GNU/Linux ld.so'
11403 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11405 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11406 dynamic_linker
='NetBSD (a.out) ld.so'
11408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11409 soname_spec
='${libname}${release}${shared_ext}$major'
11410 dynamic_linker
='NetBSD ld.elf_so'
11412 shlibpath_var
=LD_LIBRARY_PATH
11413 shlibpath_overrides_runpath
=yes
11414 hardcode_into_libs
=yes
11419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11420 shlibpath_var
=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath
=yes
11428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11429 soname_spec
='${libname}${release}${shared_ext}$major'
11430 shlibpath_var
=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath
=no
11432 hardcode_into_libs
=yes
11433 dynamic_linker
='ldqnx.so'
11438 sys_lib_dlsearch_path_spec
="/usr/lib"
11440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11442 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
11443 *) need_version
=no
;;
11445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11446 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11447 shlibpath_var
=LD_LIBRARY_PATH
11448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11450 openbsd2.
[89] | openbsd2.
[89].
*)
11451 shlibpath_overrides_runpath
=no
11454 shlibpath_overrides_runpath
=yes
11458 shlibpath_overrides_runpath
=yes
11463 libname_spec
='$name'
11466 library_names_spec
='$libname${shared_ext} $libname.a'
11467 dynamic_linker
='OS/2 ld.exe'
11468 shlibpath_var
=LIBPATH
11471 osf3
* | osf4
* | osf5
*)
11475 soname_spec
='${libname}${release}${shared_ext}$major'
11476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11477 shlibpath_var
=LD_LIBRARY_PATH
11478 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11479 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11490 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11491 soname_spec
='${libname}${release}${shared_ext}$major'
11492 shlibpath_var
=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath
=yes
11494 hardcode_into_libs
=yes
11495 # ldd complains unless libraries are executable
11496 postinstall_cmds
='chmod +x $lib'
11501 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11502 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11503 shlibpath_var
=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath
=yes
11505 if test "$with_gnu_ld" = yes; then
11513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec
='${libname}${release}${shared_ext}$major'
11515 shlibpath_var
=LD_LIBRARY_PATH
11516 case $host_vendor in
11518 shlibpath_overrides_runpath
=no
11520 runpath_var
=LD_RUN_PATH
11528 shlibpath_overrides_runpath
=no
11529 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11535 if test -d /usr
/nec
;then
11537 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11538 soname_spec
='$libname${shared_ext}.$major'
11539 shlibpath_var
=LD_LIBRARY_PATH
11543 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11544 version_type
=freebsd-elf
11547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11548 soname_spec
='${libname}${release}${shared_ext}$major'
11549 shlibpath_var
=LD_LIBRARY_PATH
11550 shlibpath_overrides_runpath
=yes
11551 hardcode_into_libs
=yes
11552 if test "$with_gnu_ld" = yes; then
11553 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11555 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11558 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11562 sys_lib_dlsearch_path_spec
='/usr/lib'
11566 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11570 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 shlibpath_var
=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath
=no
11573 hardcode_into_libs
=yes
11578 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec
='${libname}${release}${shared_ext}$major'
11580 shlibpath_var
=LD_LIBRARY_PATH
11583 # Shared libraries for VwWorks, >= 7 only at this stage
11584 # and (fpic) still incompatible with "large" code models
11585 # in a few configurations. Only for RTP mode in any case,
11586 # and upon explicit request at configure time.
11589 case ${with_multisubdir}-${enable_shared} in
11596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec
='${libname}${release}${shared_ext}$major'
11598 dynamic_linker
="$host_os module_loader"
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11607 $as_echo "$dynamic_linker" >&6; }
11608 test "$dynamic_linker" = no
&& can_build_shared
=no
11610 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11611 if test "$GCC" = yes; then
11612 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11615 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11616 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11618 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11619 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11714 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11716 if test -n "$hardcode_libdir_flag_spec" ||
11717 test -n "$runpath_var" ||
11718 test "X$hardcode_automatic" = "Xyes" ; then
11720 # We can hardcode non-existent directories.
11721 if test "$hardcode_direct" != no
&&
11722 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11723 # have to relink, otherwise we might link with an installed library
11724 # when we should be linking with a yet-to-be-installed one
11725 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11726 test "$hardcode_minus_L" != no
; then
11727 # Linking always hardcodes the temporary library directory.
11728 hardcode_action
=relink
11730 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11731 hardcode_action
=immediate
11734 # We cannot hardcode anything, or else we can only hardcode existing
11736 hardcode_action
=unsupported
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11739 $as_echo "$hardcode_action" >&6; }
11741 if test "$hardcode_action" = relink ||
11742 test "$inherit_rpath" = yes; then
11743 # Fast installation is not supported
11744 enable_fast_install
=no
11745 elif test "$shlibpath_overrides_runpath" = yes ||
11746 test "$enable_shared" = no
; then
11747 # Fast installation is not necessary
11748 enable_fast_install
=needless
11756 if test "x$enable_dlopen" != xyes
; then
11757 enable_dlopen
=unknown
11758 enable_dlopen_self
=unknown
11759 enable_dlopen_self_static
=unknown
11766 lt_cv_dlopen
="load_add_on"
11768 lt_cv_dlopen_self
=yes
11771 mingw
* | pw32
* | cegcc
*)
11772 lt_cv_dlopen
="LoadLibrary"
11777 lt_cv_dlopen
="dlopen"
11782 # if libdl is installed we need to link against it
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11784 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11785 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11786 $as_echo_n "(cached) " >&6
11788 ac_check_lib_save_LIBS
=$LIBS
11790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11793 /* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
11808 if ac_fn_c_try_link
"$LINENO"; then :
11809 ac_cv_lib_dl_dlopen
=yes
11811 ac_cv_lib_dl_dlopen
=no
11813 rm -f core conftest.err conftest.
$ac_objext \
11814 conftest
$ac_exeext conftest.
$ac_ext
11815 LIBS
=$ac_check_lib_save_LIBS
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11818 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11819 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11820 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11823 lt_cv_dlopen
="dyld"
11825 lt_cv_dlopen_self
=yes
11832 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11833 if test "x$ac_cv_func_shl_load" = xyes
; then :
11834 lt_cv_dlopen
="shl_load"
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11837 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11838 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11839 $as_echo_n "(cached) " >&6
11841 ac_check_lib_save_LIBS
=$LIBS
11843 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11846 /* Override any GCC internal prototype to avoid an error.
11847 Use char because int might match the return type of a GCC
11848 builtin and then its argument prototype would still apply. */
11856 return shl_load ();
11861 if ac_fn_c_try_link
"$LINENO"; then :
11862 ac_cv_lib_dld_shl_load
=yes
11864 ac_cv_lib_dld_shl_load
=no
11866 rm -f core conftest.err conftest.
$ac_objext \
11867 conftest
$ac_exeext conftest.
$ac_ext
11868 LIBS
=$ac_check_lib_save_LIBS
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11871 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11872 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11873 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11875 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11876 if test "x$ac_cv_func_dlopen" = xyes
; then :
11877 lt_cv_dlopen
="dlopen"
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11881 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 ac_check_lib_save_LIBS
=$LIBS
11886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11904 if ac_fn_c_try_link
"$LINENO"; then :
11905 ac_cv_lib_dl_dlopen
=yes
11907 ac_cv_lib_dl_dlopen
=no
11909 rm -f core conftest.err conftest.
$ac_objext \
11910 conftest
$ac_exeext conftest.
$ac_ext
11911 LIBS
=$ac_check_lib_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11915 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11916 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11919 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11920 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11921 $as_echo_n "(cached) " >&6
11923 ac_check_lib_save_LIBS
=$LIBS
11924 LIBS
="-lsvld $LIBS"
11925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11943 if ac_fn_c_try_link
"$LINENO"; then :
11944 ac_cv_lib_svld_dlopen
=yes
11946 ac_cv_lib_svld_dlopen
=no
11948 rm -f core conftest.err conftest.
$ac_objext \
11949 conftest
$ac_exeext conftest.
$ac_ext
11950 LIBS
=$ac_check_lib_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11953 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11954 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11955 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11958 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11959 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11960 $as_echo_n "(cached) " >&6
11962 ac_check_lib_save_LIBS
=$LIBS
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11967 /* Override any GCC internal prototype to avoid an error.
11968 Use char because int might match the return type of a GCC
11969 builtin and then its argument prototype would still apply. */
11977 return dld_link ();
11982 if ac_fn_c_try_link
"$LINENO"; then :
11983 ac_cv_lib_dld_dld_link
=yes
11985 ac_cv_lib_dld_dld_link
=no
11987 rm -f core conftest.err conftest.
$ac_objext \
11988 conftest
$ac_exeext conftest.
$ac_ext
11989 LIBS
=$ac_check_lib_save_LIBS
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11992 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11993 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11994 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12015 if test "x$lt_cv_dlopen" != xno
; then
12021 case $lt_cv_dlopen in
12023 save_CPPFLAGS
="$CPPFLAGS"
12024 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12026 save_LDFLAGS
="$LDFLAGS"
12027 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12030 LIBS
="$lt_cv_dlopen_libs $LIBS"
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12033 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12034 if ${lt_cv_dlopen_self+:} false
; then :
12035 $as_echo_n "(cached) " >&6
12037 if test "$cross_compiling" = yes; then :
12038 lt_cv_dlopen_self
=cross
12040 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12041 lt_status
=$lt_dlunknown
12042 cat > conftest.
$ac_ext <<_LT_EOF
12043 #line 12043 "configure"
12044 #include "confdefs.h"
12053 # define LT_DLGLOBAL RTLD_GLOBAL
12056 # define LT_DLGLOBAL DL_GLOBAL
12058 # define LT_DLGLOBAL 0
12062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12063 find out it does not work in some platform. */
12064 #ifndef LT_DLLAZY_OR_NOW
12066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12069 # define LT_DLLAZY_OR_NOW DL_LAZY
12072 # define LT_DLLAZY_OR_NOW RTLD_NOW
12075 # define LT_DLLAZY_OR_NOW DL_NOW
12077 # define LT_DLLAZY_OR_NOW 0
12084 /* When -fvisbility=hidden is used, assume the code has been annotated
12085 correspondingly for the symbols needed. */
12086 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12087 void fnord () __attribute__((visibility("default")));
12090 void fnord () { int i=42; }
12093 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12094 int status = $lt_dlunknown;
12098 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12101 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12102 else puts (dlerror ());
12104 /* dlclose (self); */
12112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12113 (eval $ac_link) 2>&5
12115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12116 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12117 (.
/conftest
; exit; ) >&5 2>/dev
/null
12119 case x
$lt_status in
12120 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12121 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12122 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12125 # compilation failed
12126 lt_cv_dlopen_self
=no
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12134 $as_echo "$lt_cv_dlopen_self" >&6; }
12136 if test "x$lt_cv_dlopen_self" = xyes
; then
12137 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12139 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12140 if ${lt_cv_dlopen_self_static+:} false
; then :
12141 $as_echo_n "(cached) " >&6
12143 if test "$cross_compiling" = yes; then :
12144 lt_cv_dlopen_self_static
=cross
12146 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12147 lt_status
=$lt_dlunknown
12148 cat > conftest.
$ac_ext <<_LT_EOF
12149 #line 12149 "configure"
12150 #include "confdefs.h"
12159 # define LT_DLGLOBAL RTLD_GLOBAL
12162 # define LT_DLGLOBAL DL_GLOBAL
12164 # define LT_DLGLOBAL 0
12168 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12169 find out it does not work in some platform. */
12170 #ifndef LT_DLLAZY_OR_NOW
12172 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12175 # define LT_DLLAZY_OR_NOW DL_LAZY
12178 # define LT_DLLAZY_OR_NOW RTLD_NOW
12181 # define LT_DLLAZY_OR_NOW DL_NOW
12183 # define LT_DLLAZY_OR_NOW 0
12190 /* When -fvisbility=hidden is used, assume the code has been annotated
12191 correspondingly for the symbols needed. */
12192 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12193 void fnord () __attribute__((visibility("default")));
12196 void fnord () { int i=42; }
12199 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12200 int status = $lt_dlunknown;
12204 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12207 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12208 else puts (dlerror ());
12210 /* dlclose (self); */
12218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12219 (eval $ac_link) 2>&5
12221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12222 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12223 (.
/conftest
; exit; ) >&5 2>/dev
/null
12225 case x
$lt_status in
12226 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12227 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12228 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12231 # compilation failed
12232 lt_cv_dlopen_self_static
=no
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12240 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12243 CPPFLAGS
="$save_CPPFLAGS"
12244 LDFLAGS
="$save_LDFLAGS"
12249 case $lt_cv_dlopen_self in
12250 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12251 *) enable_dlopen_self
=unknown
;;
12254 case $lt_cv_dlopen_self_static in
12255 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12256 *) enable_dlopen_self_static
=unknown
;;
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12279 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12280 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12281 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12282 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12284 $as_echo "yes" >&6; }
12286 # FIXME - insert some real tests, host_os isn't really good enough
12289 if test -n "$STRIP" ; then
12290 striplib
="$STRIP -x"
12291 old_striplib
="$STRIP -S"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293 $as_echo "yes" >&6; }
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296 $as_echo "no" >&6; }
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301 $as_echo "no" >&6; }
12317 # Report which library types will actually be built
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12319 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12321 $as_echo "$can_build_shared" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12324 $as_echo_n "checking whether to build shared libraries... " >&6; }
12325 test "$can_build_shared" = "no" && enable_shared
=no
12327 # On AIX, shared libraries and static libraries use the same namespace, and
12328 # are all built from PIC.
12331 test "$enable_shared" = yes && enable_static
=no
12332 if test -n "$RANLIB"; then
12333 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12334 postinstall_cmds
='$RANLIB $lib'
12339 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12340 test "$enable_shared" = yes && enable_static
=no
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12345 $as_echo "$enable_shared" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12348 $as_echo_n "checking whether to build static libraries... " >&6; }
12349 # Make sure either enable_shared or enable_static is yes.
12350 test "$enable_shared" = yes || enable_static
=yes
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12352 $as_echo "$enable_static" >&6; }
12359 ac_cpp
='$CPP $CPPFLAGS'
12360 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12361 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12362 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12366 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12367 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12368 (test "X$CXX" != "Xg++"))) ; then
12370 ac_cpp
='$CXXCPP $CPPFLAGS'
12371 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12375 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12376 if test -z "$CXXCPP"; then
12377 if ${ac_cv_prog_CXXCPP+:} false
; then :
12378 $as_echo_n "(cached) " >&6
12380 # Double quotes because CXXCPP needs to be expanded
12381 for CXXCPP
in "$CXX -E" "/lib/cpp"
12383 ac_preproc_ok
=false
12384 for ac_cxx_preproc_warn_flag
in '' yes
12386 # Use a header file that comes with gcc, so configuring glibc
12387 # with a fresh cross-compiler works.
12388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12389 # <limits.h> exists even on freestanding compilers.
12390 # On the NeXT, cc -E runs the code through the compiler's parser,
12391 # not just through cpp. "Syntax error" is here to catch this case.
12392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12395 # include <limits.h>
12397 # include <assert.h>
12401 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12404 # Broken: fails on valid input.
12407 rm -f conftest.err conftest.i conftest.
$ac_ext
12409 # OK, works on sane cases. Now check whether nonexistent headers
12410 # can be detected and how.
12411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12413 #include <ac_nonexistent.h>
12415 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12416 # Broken: success on invalid input.
12419 # Passes both tests.
12423 rm -f conftest.err conftest.i conftest.
$ac_ext
12426 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12427 rm -f conftest.i conftest.err conftest.
$ac_ext
12428 if $ac_preproc_ok; then :
12433 ac_cv_prog_CXXCPP
=$CXXCPP
12436 CXXCPP
=$ac_cv_prog_CXXCPP
12438 ac_cv_prog_CXXCPP
=$CXXCPP
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12441 $as_echo "$CXXCPP" >&6; }
12442 ac_preproc_ok
=false
12443 for ac_cxx_preproc_warn_flag
in '' yes
12445 # Use a header file that comes with gcc, so configuring glibc
12446 # with a fresh cross-compiler works.
12447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12448 # <limits.h> exists even on freestanding compilers.
12449 # On the NeXT, cc -E runs the code through the compiler's parser,
12450 # not just through cpp. "Syntax error" is here to catch this case.
12451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12454 # include <limits.h>
12456 # include <assert.h>
12460 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12463 # Broken: fails on valid input.
12466 rm -f conftest.err conftest.i conftest.
$ac_ext
12468 # OK, works on sane cases. Now check whether nonexistent headers
12469 # can be detected and how.
12470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12471 /* end confdefs.h. */
12472 #include <ac_nonexistent.h>
12474 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12475 # Broken: success on invalid input.
12478 # Passes both tests.
12482 rm -f conftest.err conftest.i conftest.
$ac_ext
12485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12486 rm -f conftest.i conftest.err conftest.
$ac_ext
12487 if $ac_preproc_ok; then :
12490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12492 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12493 See \`config.log' for more details" "$LINENO" 5; }
12497 ac_cpp
='$CPP $CPPFLAGS'
12498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12503 _lt_caught_CXX_error
=yes
12507 ac_cpp
='$CXXCPP $CPPFLAGS'
12508 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12512 archive_cmds_need_lc_CXX
=no
12513 allow_undefined_flag_CXX
=
12514 always_export_symbols_CXX
=no
12515 archive_expsym_cmds_CXX
=
12516 compiler_needs_object_CXX
=no
12517 export_dynamic_flag_spec_CXX
=
12518 hardcode_direct_CXX
=no
12519 hardcode_direct_absolute_CXX
=no
12520 hardcode_libdir_flag_spec_CXX
=
12521 hardcode_libdir_flag_spec_ld_CXX
=
12522 hardcode_libdir_separator_CXX
=
12523 hardcode_minus_L_CXX
=no
12524 hardcode_shlibpath_var_CXX
=unsupported
12525 hardcode_automatic_CXX
=no
12526 inherit_rpath_CXX
=no
12528 module_expsym_cmds_CXX
=
12529 link_all_deplibs_CXX
=unknown
12530 old_archive_cmds_CXX
=$old_archive_cmds
12531 reload_flag_CXX
=$reload_flag
12532 reload_cmds_CXX
=$reload_cmds
12533 no_undefined_flag_CXX
=
12534 whole_archive_flag_spec_CXX
=
12535 enable_shared_with_static_runtimes_CXX
=no
12537 # Source file extension for C++ test sources.
12540 # Object file extension for compiled C++ test sources.
12544 # No sense in running all these tests if we already determined that
12545 # the CXX compiler isn't working. Some variables (like enable_shared)
12546 # are currently assumed to apply to all compilers on this platform,
12547 # and will be corrupted by setting them based on a non-working compiler.
12548 if test "$_lt_caught_CXX_error" != yes; then
12549 # Code to be used in simple compile tests
12550 lt_simple_compile_test_code
="int some_variable = 0;"
12552 # Code to be used in simple link tests
12553 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
12555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12562 # If no C compiler was specified, use CC.
12565 # If no C compiler flags were specified, use CFLAGS.
12566 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12568 # Allow CC to be a program name with arguments.
12572 # save warnings/boilerplate of simple test code
12573 ac_outfile
=conftest.
$ac_objext
12574 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12575 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12576 _lt_compiler_boilerplate
=`cat conftest.err`
12579 ac_outfile
=conftest.
$ac_objext
12580 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12581 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12582 _lt_linker_boilerplate
=`cat conftest.err`
12586 # Allow CC to be a program name with arguments.
12591 lt_save_with_gnu_ld
=$with_gnu_ld
12592 lt_save_path_LD
=$lt_cv_path_LD
12593 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12594 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
12596 $as_unset lt_cv_prog_gnu_ld
12598 if test -n "${lt_cv_path_LDCXX+set}"; then
12599 lt_cv_path_LD
=$lt_cv_path_LDCXX
12601 $as_unset lt_cv_path_LD
12603 test -z "${LDCXX+set}" || LD
=$LDCXX
12607 for cc_temp
in $compiler""; do
12609 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12610 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12615 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12618 if test -n "$compiler"; then
12619 # We don't want -fno-exception when compiling C++ code, so set the
12620 # no_builtin_flag separately
12621 if test "$GXX" = yes; then
12622 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
12624 lt_prog_compiler_no_builtin_flag_CXX
=
12627 if test "$GXX" = yes; then
12628 # Set up default GNU C++ configuration
12632 # Check whether --with-gnu-ld was given.
12633 if test "${with_gnu_ld+set}" = set; then :
12634 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12640 if test "$GCC" = yes; then
12641 # Check if gcc -print-prog-name=ld gives a path.
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12643 $as_echo_n "checking for ld used by $CC... " >&6; }
12646 # gcc leaves a trailing carriage return which upsets mingw
12647 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12649 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12652 # Accept absolute paths.
12654 re_direlt
='/[^/][^/]*/\.\./'
12655 # Canonicalize the pathname of ld
12656 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12657 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12658 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12660 test -z "$LD" && LD
="$ac_prog"
12663 # If it fails, then pretend we aren't using GCC.
12667 # If it is relative, then search for the first ld in PATH.
12668 with_gnu_ld
=unknown
12671 elif test "$with_gnu_ld" = yes; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12673 $as_echo_n "checking for GNU ld... " >&6; }
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12676 $as_echo_n "checking for non-GNU ld... " >&6; }
12678 if ${lt_cv_path_LD+:} false
; then :
12679 $as_echo_n "(cached) " >&6
12681 if test -z "$LD"; then
12682 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12683 for ac_dir
in $PATH; do
12685 test -z "$ac_dir" && ac_dir
=.
12686 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12687 lt_cv_path_LD
="$ac_dir/$ac_prog"
12688 # Check to see if the program is GNU ld. I'd rather use --version,
12689 # but apparently some variants of GNU ld only accept -v.
12690 # Break only if it was the GNU/non-GNU ld that we prefer.
12691 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12692 *GNU
* |
*'with BFD'*)
12693 test "$with_gnu_ld" != no
&& break
12696 test "$with_gnu_ld" != yes && break
12703 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12707 LD
="$lt_cv_path_LD"
12708 if test -n "$LD"; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12710 $as_echo "$LD" >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12715 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12717 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12718 if ${lt_cv_prog_gnu_ld+:} false
; then :
12719 $as_echo_n "(cached) " >&6
12721 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12722 case `$LD -v 2>&1 </dev/null` in
12723 *GNU
* |
*'with BFD'*)
12724 lt_cv_prog_gnu_ld
=yes
12727 lt_cv_prog_gnu_ld
=no
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12732 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12733 with_gnu_ld
=$lt_cv_prog_gnu_ld
12741 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12742 # archiving commands below assume that GNU ld is being used.
12743 if test "$with_gnu_ld" = yes; then
12744 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12745 archive_expsym_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12747 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12748 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
12750 # If archive_cmds runs LD, not CC, wlarc should be empty
12751 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12752 # investigate it a little bit more. (MM)
12755 # ancient GNU ld didn't support --whole-archive et. al.
12756 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12757 $GREP 'no-whole-archive' > /dev
/null
; then
12758 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12760 whole_archive_flag_spec_CXX
=
12766 # A generic and very simple default shared library creation
12767 # command for GNU C++ for the case where it uses the native
12768 # linker, instead of GNU ld. If possible, this setting should
12769 # overridden to take advantage of the native linker features on
12770 # the platform it is being used on.
12771 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12774 # Commands to make compiler produce verbose output that lists
12775 # what "hidden" libraries, object files and flags are used when
12776 # linking a shared library.
12777 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12785 # PORTME: fill in a description of your system's C++ link characteristics
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12787 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12791 # FIXME: insert proper C++ library support
12795 if test "$host_cpu" = ia64
; then
12796 # On IA64, the linker does run time linking by default, so we don't
12797 # have to do anything special.
12798 aix_use_runtimelinking
=no
12799 exp_sym_flag
='-Bexport'
12802 aix_use_runtimelinking
=no
12804 # Test if we are trying to use run time linking or normal
12805 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12806 # need to do runtime linking.
12807 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
12808 for ld_flag
in $LDFLAGS; do
12811 aix_use_runtimelinking
=yes
12819 exp_sym_flag
='-bexport'
12820 no_entry_flag
='-bnoentry'
12823 # When large executables or shared objects are built, AIX ld can
12824 # have problems creating the table of contents. If linking a library
12825 # or program results in "error TOC overflow" add -mminimal-toc to
12826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12829 archive_cmds_CXX
=''
12830 hardcode_direct_CXX
=yes
12831 hardcode_direct_absolute_CXX
=yes
12832 hardcode_libdir_separator_CXX
=':'
12833 link_all_deplibs_CXX
=yes
12834 file_list_spec_CXX
='${wl}-f,'
12836 if test "$GXX" = yes; then
12837 case $host_os in aix4.
[012]|aix4.
[012].
*)
12838 # We only want to do this on AIX 4.2 and lower, the check
12839 # below for broken collect2 doesn't work under 4.3+
12840 collect2name
=`${CC} -print-prog-name=collect2`
12841 if test -f "$collect2name" &&
12842 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
12844 # We have reworked collect2
12847 # We have old collect2
12848 hardcode_direct_CXX
=unsupported
12849 # It fails to find uninstalled libraries when the uninstalled
12850 # path is not listed in the libpath. Setting hardcode_minus_L
12851 # to unsupported forces relinking
12852 hardcode_minus_L_CXX
=yes
12853 hardcode_libdir_flag_spec_CXX
='-L$libdir'
12854 hardcode_libdir_separator_CXX
=
12857 shared_flag
='-shared'
12858 if test "$aix_use_runtimelinking" = yes; then
12859 shared_flag
="$shared_flag "'${wl}-G'
12863 if test "$host_cpu" = ia64
; then
12864 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12865 # chokes on -Wl,-G. The following line is correct:
12868 if test "$aix_use_runtimelinking" = yes; then
12869 shared_flag
='${wl}-G'
12871 shared_flag
='${wl}-bM:SRE'
12876 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
12877 # It seems that -bexpall does not export symbols beginning with
12878 # underscore (_), so it is better to generate a list of symbols to
12880 always_export_symbols_CXX
=yes
12881 if test "$aix_use_runtimelinking" = yes; then
12882 # Warning - without using the other runtime loading flags (-brtl),
12883 # -berok will link without error, but may produce a broken library.
12884 allow_undefined_flag_CXX
='-berok'
12885 # Determine the default libpath from the value encoded in an empty
12887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12898 if ac_fn_cxx_try_link
"$LINENO"; then :
12900 lt_aix_libpath_sed
='
12901 /Import File Strings/,/^$/ {
12907 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12908 # Check for a 64-bit object if we didn't find anything.
12909 if test -z "$aix_libpath"; then
12910 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12913 rm -f core conftest.err conftest.
$ac_objext \
12914 conftest
$ac_exeext conftest.
$ac_ext
12915 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12917 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12919 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"
12921 if test "$host_cpu" = ia64
; then
12922 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
12923 allow_undefined_flag_CXX
="-z nodefs"
12924 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"
12926 # Determine the default libpath from the value encoded in an
12927 # empty executable.
12928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12939 if ac_fn_cxx_try_link
"$LINENO"; then :
12941 lt_aix_libpath_sed
='
12942 /Import File Strings/,/^$/ {
12948 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12949 # Check for a 64-bit object if we didn't find anything.
12950 if test -z "$aix_libpath"; then
12951 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12954 rm -f core conftest.err conftest.
$ac_objext \
12955 conftest
$ac_exeext conftest.
$ac_ext
12956 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
12958 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
12959 # Warning - without using the other run time loading flags,
12960 # -berok will link without error, but may produce a broken library.
12961 no_undefined_flag_CXX
=' ${wl}-bernotok'
12962 allow_undefined_flag_CXX
=' ${wl}-berok'
12963 if test "$with_gnu_ld" = yes; then
12964 # We only use this code for GNU lds that support --whole-archive.
12965 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12967 # Exported symbols can be pulled into shared objects from archives
12968 whole_archive_flag_spec_CXX
='$convenience'
12970 archive_cmds_need_lc_CXX
=yes
12971 # This is similar to how AIX traditionally builds its shared
12973 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'
12979 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
12980 allow_undefined_flag_CXX
=unsupported
12981 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12982 # support --undefined. This deserves some investigation. FIXME
12983 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12990 case $cc_basename in
12992 # FIXME: insert proper C++ library support
12998 cygwin
* | mingw
* | pw32
* | cegcc
*)
12999 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13000 # as there is no search path for DLLs.
13001 hardcode_libdir_flag_spec_CXX
='-L$libdir'
13002 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
13003 allow_undefined_flag_CXX
=unsupported
13004 always_export_symbols_CXX
=no
13005 enable_shared_with_static_runtimes_CXX
=yes
13007 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
13008 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'
13009 # If the export-symbols file already is a .def file (1st line
13010 # is EXPORTS), use it as is; otherwise, prepend...
13011 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13012 cp $export_symbols $output_objdir/$soname.def;
13014 echo EXPORTS > $output_objdir/$soname.def;
13015 cat $export_symbols >> $output_objdir/$soname.def;
13017 $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'
13022 darwin
* | rhapsody
*)
13025 archive_cmds_need_lc_CXX
=no
13026 hardcode_direct_CXX
=no
13027 hardcode_automatic_CXX
=yes
13028 hardcode_shlibpath_var_CXX
=unsupported
13029 if test "$lt_cv_ld_force_load" = "yes"; then
13030 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\"`'
13032 whole_archive_flag_spec_CXX
=''
13034 link_all_deplibs_CXX
=yes
13035 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
13036 case $cc_basename in
13037 ifort
*) _lt_dar_can_shared
=yes ;;
13038 *) _lt_dar_can_shared
=$GCC ;;
13040 if test "$_lt_dar_can_shared" = "yes"; then
13041 output_verbose_link_cmd
=func_echo_all
13042 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}"
13043 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13044 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}"
13045 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}"
13046 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13047 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}"
13048 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}"
13058 case $cc_basename in
13060 # FIXME: insert proper C++ library support
13064 # Green Hills C++ Compiler
13065 # FIXME: insert proper C++ library support
13069 # FIXME: insert proper C++ library support
13076 # C++ shared libraries reported to be fairly broken before
13082 archive_cmds_need_lc_CXX
=no
13085 freebsd
* | dragonfly
*)
13086 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13095 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13096 link_all_deplibs_CXX
=yes
13100 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13101 hardcode_libdir_separator_CXX
=:
13102 export_dynamic_flag_spec_CXX
='${wl}-E'
13103 hardcode_direct_CXX
=yes
13104 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13105 # but as the default
13106 # location of the library.
13108 case $cc_basename in
13110 # FIXME: insert proper C++ library support
13114 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'
13115 # Commands to make compiler produce verbose output that lists
13116 # what "hidden" libraries, object files and flags are used when
13117 # linking a shared library.
13119 # There doesn't appear to be a way to prevent this compiler from
13120 # explicitly linking system object files so we need to strip them
13121 # from the output so that they don't get included in the library
13123 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"'
13126 if test "$GXX" = yes; then
13127 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'
13129 # FIXME: insert proper C++ library support
13137 if test $with_gnu_ld = no
; then
13138 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
13139 hardcode_libdir_separator_CXX
=:
13145 export_dynamic_flag_spec_CXX
='${wl}-E'
13151 hardcode_direct_CXX
=no
13152 hardcode_shlibpath_var_CXX
=no
13155 hardcode_direct_CXX
=yes
13156 hardcode_direct_absolute_CXX
=yes
13157 hardcode_minus_L_CXX
=yes # Not in the search PATH,
13158 # but as the default
13159 # location of the library.
13163 case $cc_basename in
13165 # FIXME: insert proper C++ library support
13171 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13174 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13177 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13180 # Commands to make compiler produce verbose output that lists
13181 # what "hidden" libraries, object files and flags are used when
13182 # linking a shared library.
13184 # There doesn't appear to be a way to prevent this compiler from
13185 # explicitly linking system object files so we need to strip them
13186 # from the output so that they don't get included in the library
13188 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"'
13191 if test "$GXX" = yes; then
13192 if test $with_gnu_ld = no
; then
13195 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13198 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201 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'
13206 # FIXME: insert proper C++ library support
13214 hardcode_direct_CXX
=no
13215 hardcode_shlibpath_var_CXX
=no
13216 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13217 export_dynamic_flag_spec_CXX
='${wl}-E'
13218 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13219 # Instead, shared libraries are loaded at an image base (0x10000000 by
13220 # default) and relocated if they conflict, which is a slow very memory
13221 # consuming and fragmenting process. To avoid this, we pick a random,
13222 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13223 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13224 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'
13225 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'
13228 case $cc_basename in
13231 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'
13233 # Archives containing C++ object files must be created using
13234 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13235 # necessary to make sure instantiated templates are included
13237 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
13240 if test "$GXX" = yes; then
13241 if test "$with_gnu_ld" = no
; then
13242 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'
13244 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'
13247 link_all_deplibs_CXX
=yes
13250 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13251 hardcode_libdir_separator_CXX
=:
13252 inherit_rpath_CXX
=yes
13255 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
13256 case $cc_basename in
13258 # Kuck and Associates, Inc. (KAI) C++ Compiler
13260 # KCC will only create a shared library if the output file
13261 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13262 # to its proper name (with version) after linking.
13263 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'
13264 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'
13265 # Commands to make compiler produce verbose output that lists
13266 # what "hidden" libraries, object files and flags are used when
13267 # linking a shared library.
13269 # There doesn't appear to be a way to prevent this compiler from
13270 # explicitly linking system object files so we need to strip them
13271 # from the output so that they don't get included in the library
13273 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"'
13275 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13276 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13278 # Archives containing C++ object files must be created using
13279 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13280 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
13285 # version 8.0 and above of icpc choke on multiply defined symbols
13286 # if we add $predep_objects and $postdep_objects, however 7.1 and
13287 # earlier do not add the objects themselves.
13288 case `$CC -V 2>&1` in
13290 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13291 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'
13293 *) # Version 8.0 or newer
13296 ia64
*) tmp_idyn
=' -i_dynamic';;
13298 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13299 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'
13302 archive_cmds_need_lc_CXX
=no
13303 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13304 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13305 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13308 # Portland Group C++ compiler
13310 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
13311 prelink_cmds_CXX
='tpldir=Template.dir~
13313 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13314 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13315 old_archive_cmds_CXX
='tpldir=Template.dir~
13317 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13318 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13320 archive_cmds_CXX
='tpldir=Template.dir~
13322 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13323 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13324 archive_expsym_cmds_CXX
='tpldir=Template.dir~
13326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13327 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13329 *) # Version 6 and above use weak symbols
13330 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13331 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'
13335 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
13336 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13337 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'
13341 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13342 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'
13344 runpath_var
=LD_RUN_PATH
13345 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13346 hardcode_libdir_separator_CXX
=:
13348 # Commands to make compiler produce verbose output that lists
13349 # what "hidden" libraries, object files and flags are used when
13350 # linking a shared library.
13352 # There doesn't appear to be a way to prevent this compiler from
13353 # explicitly linking system object files so we need to strip them
13354 # from the output so that they don't get included in the library
13356 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'
13358 xl
* | mpixl
* | bgxl
*)
13359 # IBM XL 8.0 on PPC, with GNU ld
13360 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13361 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
13362 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13363 if test "x$supports_anon_versioning" = xyes
; then
13364 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
13365 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13366 echo "local: *; };" >> $output_objdir/$libname.ver~
13367 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13371 case `$CC -V 2>&1 | sed 5q` in
13374 no_undefined_flag_CXX
=' -zdefs'
13375 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13376 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'
13377 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13378 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'
13379 compiler_needs_object_CXX
=yes
13381 # Not sure whether something based on
13382 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13384 output_verbose_link_cmd
='func_echo_all'
13386 # Archives containing C++ object files must be created using
13387 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13388 # necessary to make sure instantiated templates are included
13390 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13398 # FIXME: insert proper C++ library support
13403 # FIXME: insert proper C++ library support
13408 case $cc_basename in
13410 # FIXME: insert proper C++ library support
13414 # FIXME: insert proper C++ library support
13421 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
13422 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13424 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13425 hardcode_direct_CXX
=yes
13426 hardcode_shlibpath_var_CXX
=no
13428 # Workaround some broken pre-1.5 toolchains
13429 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13437 # C++ shared libraries are fairly broken
13442 if test -f /usr
/libexec
/ld.so
; then
13443 hardcode_direct_CXX
=yes
13444 hardcode_shlibpath_var_CXX
=no
13445 hardcode_direct_absolute_CXX
=yes
13446 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13447 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13448 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13449 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13450 export_dynamic_flag_spec_CXX
='${wl}-E'
13451 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13453 output_verbose_link_cmd
=func_echo_all
13459 osf3
* | osf4
* | osf5
*)
13460 case $cc_basename in
13462 # Kuck and Associates, Inc. (KAI) C++ Compiler
13464 # KCC will only create a shared library if the output file
13465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13466 # to its proper name (with version) after linking.
13467 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'
13469 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
13470 hardcode_libdir_separator_CXX
=:
13472 # Archives containing C++ object files must be created using
13473 # the KAI C++ compiler.
13475 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
13476 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
13480 # Rational C++ 2.4.1
13481 # FIXME: insert proper C++ library support
13487 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13488 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'
13489 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13492 allow_undefined_flag_CXX
=' -expect_unresolved \*'
13493 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'
13494 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13495 echo "-hidden">> $lib.exp~
13496 $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~
13498 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
13502 hardcode_libdir_separator_CXX
=:
13504 # Commands to make compiler produce verbose output that lists
13505 # what "hidden" libraries, object files and flags are used when
13506 # linking a shared library.
13508 # There doesn't appear to be a way to prevent this compiler from
13509 # explicitly linking system object files so we need to strip them
13510 # from the output so that they don't get included in the library
13512 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"'
13515 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13516 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
13519 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'
13522 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'
13526 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
13527 hardcode_libdir_separator_CXX
=:
13529 # Commands to make compiler produce verbose output that lists
13530 # what "hidden" libraries, object files and flags are used when
13531 # linking a shared library.
13532 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13535 # FIXME: insert proper C++ library support
13543 # FIXME: insert proper C++ library support
13548 case $cc_basename in
13551 # FIXME: insert proper C++ library support
13556 # FIXME: insert proper C++ library support
13560 # FIXME: insert proper C++ library support
13567 case $cc_basename in
13569 # Sun C++ 4.2, 5.x and Centerline C++
13570 archive_cmds_need_lc_CXX
=yes
13571 no_undefined_flag_CXX
=' -zdefs'
13572 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13573 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13574 $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'
13576 hardcode_libdir_flag_spec_CXX
='-R$libdir'
13577 hardcode_shlibpath_var_CXX
=no
13579 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13581 # The compiler driver will combine and reorder linker options,
13582 # but understands `-z linker_flag'.
13583 # Supported since Solaris 2.6 (maybe 2.5.1?)
13584 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
13587 link_all_deplibs_CXX
=yes
13589 output_verbose_link_cmd
='func_echo_all'
13591 # Archives containing C++ object files must be created using
13592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13593 # necessary to make sure instantiated templates are included
13595 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
13598 # Green Hills C++ Compiler
13599 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13601 # The C++ compiler must be used to create the archive.
13602 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13605 # GNU C++ compiler with Solaris linker
13606 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
13607 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
13608 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
13609 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13610 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13611 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13613 # Commands to make compiler produce verbose output that lists
13614 # what "hidden" libraries, object files and flags are used when
13615 # linking a shared library.
13616 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13618 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13620 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13621 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13622 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13624 # Commands to make compiler produce verbose output that lists
13625 # what "hidden" libraries, object files and flags are used when
13626 # linking a shared library.
13627 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13630 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
13632 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13634 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13642 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13643 no_undefined_flag_CXX
='${wl}-z,text'
13644 archive_cmds_need_lc_CXX
=no
13645 hardcode_shlibpath_var_CXX
=no
13646 runpath_var
='LD_RUN_PATH'
13648 case $cc_basename in
13650 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13651 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13655 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 sysv5
* | sco3.2v5
* | sco5v6
*)
13661 # Note: We can NOT use -z defs as we might desire, because we do not
13662 # link with -lc, and that would cause any symbols used from libc to
13663 # always be unresolved, which means just about no library would
13664 # ever link correctly. If we're not using GNU ld we use -z text
13665 # though, which does catch some bad symbols but isn't as heavy-handed
13667 no_undefined_flag_CXX
='${wl}-z,text'
13668 allow_undefined_flag_CXX
='${wl}-z,nodefs'
13669 archive_cmds_need_lc_CXX
=no
13670 hardcode_shlibpath_var_CXX
=no
13671 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
13672 hardcode_libdir_separator_CXX
=':'
13673 link_all_deplibs_CXX
=yes
13674 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
13675 runpath_var
='LD_RUN_PATH'
13677 case $cc_basename in
13679 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13681 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
13682 '"$old_archive_cmds_CXX"
13683 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
13684 '"$reload_cmds_CXX"
13687 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13688 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13694 case $cc_basename in
13696 # NonStop-UX NCC 3.20
13697 # FIXME: insert proper C++ library support
13701 # FIXME: insert proper C++ library support
13708 # For VxWorks ports, we assume the use of a GNU linker with
13709 # standard elf conventions.
13714 # FIXME: insert proper C++ library support
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13720 $as_echo "$ld_shlibs_CXX" >&6; }
13721 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
13727 ## There is no encapsulation within the following macros, do not change
13728 ## the running order or otherwise move them around unless you know exactly
13729 ## what you are doing...
13730 # Dependencies to place before and after the object being linked:
13731 predep_objects_CXX
=
13732 postdep_objects_CXX
=
13735 compiler_lib_search_path_CXX
=
13737 cat > conftest.
$ac_ext <<_LT_EOF
13741 Foo (void) { a = 0; }
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13748 (eval $ac_compile) 2>&5
13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; }; then
13752 # Parse the compiler output and extract the necessary
13753 # objects, libraries and library flags.
13755 # Sentinel used to keep track of whether or not we are before
13756 # the conftest object file.
13757 pre_test_object_deps_done
=no
13759 for p
in `eval "$output_verbose_link_cmd"`; do
13763 # Some compilers place space between "-{L,R}" and the path.
13764 # Remove the space.
13765 if test $p = "-L" ||
13766 test $p = "-R"; then
13773 if test "$pre_test_object_deps_done" = no
; then
13776 # Internal compiler library paths should come after those
13777 # provided the user. The postdeps already come after the
13778 # user supplied libs so there is no need to process them.
13779 if test -z "$compiler_lib_search_path_CXX"; then
13780 compiler_lib_search_path_CXX
="${prev}${p}"
13782 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
13785 # The "-l" case would never come before the object being
13786 # linked, so don't bother handling this case.
13789 if test -z "$postdeps_CXX"; then
13790 postdeps_CXX
="${prev}${p}"
13792 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
13798 # This assumes that the test object file only shows up
13799 # once in the compiler output.
13800 if test "$p" = "conftest.$objext"; then
13801 pre_test_object_deps_done
=yes
13805 if test "$pre_test_object_deps_done" = no
; then
13806 if test -z "$predep_objects_CXX"; then
13807 predep_objects_CXX
="$p"
13809 predep_objects_CXX
="$predep_objects_CXX $p"
13812 if test -z "$postdep_objects_CXX"; then
13813 postdep_objects_CXX
="$p"
13815 postdep_objects_CXX
="$postdep_objects_CXX $p"
13820 *) ;; # Ignore the rest.
13828 echo "libtool.m4: error: problem compiling CXX test program"
13831 $RM -f confest.
$objext
13833 # PORTME: override above test on systems where it is broken
13836 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13837 # hack all around it, let's just trust "g++" to DTRT.
13838 predep_objects_CXX
=
13839 postdep_objects_CXX
=
13844 case `$CC -V 2>&1 | sed 5q` in
13848 # The more standards-conforming stlport4 library is
13849 # incompatible with the Cstd library. Avoid specifying
13850 # it if it's in CXXFLAGS. Ignore libCrun as
13851 # -library=stlport4 depends on it.
13852 case " $CXX $CXXFLAGS " in
13853 *" -library=stlport4 "*)
13854 solaris_use_stlport4
=yes
13858 if test "$solaris_use_stlport4" != yes; then
13859 postdeps_CXX
='-library=Cstd -library=Crun'
13866 case $cc_basename in
13868 # The more standards-conforming stlport4 library is
13869 # incompatible with the Cstd library. Avoid specifying
13870 # it if it's in CXXFLAGS. Ignore libCrun as
13871 # -library=stlport4 depends on it.
13872 case " $CXX $CXXFLAGS " in
13873 *" -library=stlport4 "*)
13874 solaris_use_stlport4
=yes
13878 # Adding this requires a known-good setup of shared libraries for
13879 # Sun compiler versions before 5.6, else PIC objects from an old
13880 # archive will be linked into the output, leading to subtle bugs.
13881 if test "$solaris_use_stlport4" != yes; then
13882 postdeps_CXX
='-library=Cstd -library=Crun'
13890 case " $postdeps_CXX " in
13891 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
13893 compiler_lib_search_dirs_CXX
=
13894 if test -n "${compiler_lib_search_path_CXX}"; then
13895 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13928 lt_prog_compiler_wl_CXX
=
13929 lt_prog_compiler_pic_CXX
=
13930 lt_prog_compiler_static_CXX
=
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13933 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13935 # C++ specific cases for pic, static, wl, etc.
13936 if test "$GXX" = yes; then
13937 lt_prog_compiler_wl_CXX
='-Wl,'
13938 lt_prog_compiler_static_CXX
='-static'
13942 # All AIX code is PIC.
13943 if test "$host_cpu" = ia64
; then
13944 # AIX 5 now supports IA64 processor
13945 lt_prog_compiler_static_CXX
='-Bstatic'
13947 lt_prog_compiler_pic_CXX
='-fPIC'
13953 # see comment about AmigaOS4 .so support
13954 lt_prog_compiler_pic_CXX
='-fPIC'
13957 # FIXME: we need at least 68020 code to build shared libraries, but
13958 # adding the `-m68020' flag to GCC prevents building anything better,
13960 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
13965 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
13966 # PIC is the default for these OSes.
13968 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
13969 # This hack is so that the source file can tell whether it is being
13970 # built for inclusion in a dll (and should export symbols for example).
13971 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13972 # (--disable-auto-import) libraries
13973 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
13975 darwin
* | rhapsody
*)
13976 # PIC is the default on this platform
13977 # Common symbols not allowed in MH_DYLIB files
13978 lt_prog_compiler_pic_CXX
='-fno-common'
13981 # DJGPP does not support shared libraries at all
13982 lt_prog_compiler_pic_CXX
=
13985 # PIC is the default for Haiku.
13986 # The "-static" flag exists, but is broken.
13987 lt_prog_compiler_static_CXX
=
13990 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13991 # Instead, we relocate shared libraries at runtime.
13994 if test -d /usr
/nec
; then
13995 lt_prog_compiler_pic_CXX
=-Kconform_pic
13999 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14000 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14001 # sets the default TLS model and affects inlining.
14006 lt_prog_compiler_pic_CXX
='-fPIC'
14011 # QNX uses GNU C++, but need to define -shared option too, otherwise
14012 # it will coredump.
14013 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14016 lt_prog_compiler_pic_CXX
='-fPIC'
14022 # All AIX code is PIC.
14023 if test "$host_cpu" = ia64
; then
14024 # AIX 5 now supports IA64 processor
14025 lt_prog_compiler_static_CXX
='-Bstatic'
14027 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
14031 case $cc_basename in
14033 # Green Hills C++ Compiler
14034 # _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"
14039 case $cc_basename in
14041 lt_prog_compiler_pic_CXX
='-KPIC'
14044 # Green Hills C++ Compiler
14045 lt_prog_compiler_pic_CXX
='-pic'
14051 freebsd
* | dragonfly
*)
14052 # FreeBSD uses GNU C++
14054 hpux9
* | hpux10
* | hpux11
*)
14055 case $cc_basename in
14057 lt_prog_compiler_wl_CXX
='-Wl,'
14058 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14059 if test "$host_cpu" != ia64
; then
14060 lt_prog_compiler_pic_CXX
='+Z'
14064 lt_prog_compiler_wl_CXX
='-Wl,'
14065 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
14071 lt_prog_compiler_pic_CXX
='+Z'
14080 # This is c89, which is MS Visual C++ (no shared libs)
14081 # Anyone wants to do a port?
14083 irix5
* | irix6
* | nonstopux
*)
14084 case $cc_basename in
14086 lt_prog_compiler_wl_CXX
='-Wl,'
14087 lt_prog_compiler_static_CXX
='-non_shared'
14088 # CC pic flag -KPIC is the default.
14094 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
14095 case $cc_basename in
14098 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14099 lt_prog_compiler_pic_CXX
='-fPIC'
14102 # old Intel C++ for x86_64 which still supported -KPIC.
14103 lt_prog_compiler_wl_CXX
='-Wl,'
14104 lt_prog_compiler_pic_CXX
='-KPIC'
14105 lt_prog_compiler_static_CXX
='-static'
14108 # Intel C++, used to be incompatible with GCC.
14109 # ICC 10 doesn't accept -KPIC any more.
14110 lt_prog_compiler_wl_CXX
='-Wl,'
14111 lt_prog_compiler_pic_CXX
='-fPIC'
14112 lt_prog_compiler_static_CXX
='-static'
14115 # Portland Group C++ compiler
14116 lt_prog_compiler_wl_CXX
='-Wl,'
14117 lt_prog_compiler_pic_CXX
='-fpic'
14118 lt_prog_compiler_static_CXX
='-Bstatic'
14122 # Make sure the PIC flag is empty. It appears that all Alpha
14123 # Linux and Compaq Tru64 Unix objects are PIC.
14124 lt_prog_compiler_pic_CXX
=
14125 lt_prog_compiler_static_CXX
='-non_shared'
14127 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
14128 # IBM XL 8.0, 9.0 on PPC and BlueGene
14129 lt_prog_compiler_wl_CXX
='-Wl,'
14130 lt_prog_compiler_pic_CXX
='-qpic'
14131 lt_prog_compiler_static_CXX
='-qstaticlink'
14134 case `$CC -V 2>&1 | sed 5q` in
14137 lt_prog_compiler_pic_CXX
='-KPIC'
14138 lt_prog_compiler_static_CXX
='-Bstatic'
14139 lt_prog_compiler_wl_CXX
='-Qoption ld '
14150 case $cc_basename in
14152 lt_prog_compiler_pic_CXX
='-W c,exportall'
14161 # QNX uses GNU C++, but need to define -shared option too, otherwise
14162 # it will coredump.
14163 lt_prog_compiler_pic_CXX
='-fPIC -shared'
14165 osf3
* | osf4
* | osf5
*)
14166 case $cc_basename in
14168 lt_prog_compiler_wl_CXX
='--backend -Wl,'
14171 # Rational C++ 2.4.1
14172 lt_prog_compiler_pic_CXX
='-pic'
14175 # Digital/Compaq C++
14176 lt_prog_compiler_wl_CXX
='-Wl,'
14177 # Make sure the PIC flag is empty. It appears that all Alpha
14178 # Linux and Compaq Tru64 Unix objects are PIC.
14179 lt_prog_compiler_pic_CXX
=
14180 lt_prog_compiler_static_CXX
='-non_shared'
14189 case $cc_basename in
14191 # Sun C++ 4.2, 5.x and Centerline C++
14192 lt_prog_compiler_pic_CXX
='-KPIC'
14193 lt_prog_compiler_static_CXX
='-Bstatic'
14194 lt_prog_compiler_wl_CXX
='-Qoption ld '
14197 # Green Hills C++ Compiler
14198 lt_prog_compiler_pic_CXX
='-PIC'
14205 case $cc_basename in
14208 lt_prog_compiler_pic_CXX
='-pic'
14209 lt_prog_compiler_static_CXX
='-Bstatic'
14213 lt_prog_compiler_pic_CXX
='-pic'
14219 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14220 case $cc_basename in
14222 lt_prog_compiler_wl_CXX
='-Wl,'
14223 lt_prog_compiler_pic_CXX
='-KPIC'
14224 lt_prog_compiler_static_CXX
='-Bstatic'
14229 case $cc_basename in
14231 # NonStop-UX NCC 3.20
14232 lt_prog_compiler_pic_CXX
='-KPIC'
14241 lt_prog_compiler_can_build_shared_CXX
=no
14247 # For platforms which do not support PIC, -DPIC is meaningless:
14249 lt_prog_compiler_pic_CXX
=
14252 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14256 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14261 # Check to make sure the PIC flag actually works.
14263 if test -n "$lt_prog_compiler_pic_CXX"; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14265 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14266 if ${lt_cv_prog_compiler_pic_works_CXX+:} false
; then :
14267 $as_echo_n "(cached) " >&6
14269 lt_cv_prog_compiler_pic_works_CXX
=no
14270 ac_outfile
=conftest.
$ac_objext
14271 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14272 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
14273 # Insert the option either (1) after the last *FLAGS variable, or
14274 # (2) before a word containing "conftest.", or (3) at the end.
14275 # Note that $ac_compile itself does not contain backslashes and begins
14276 # with a dollar sign (not a hyphen), so the echo should work correctly.
14277 # The option is referenced via a variable to avoid confusing sed.
14278 lt_compile
=`echo "$ac_compile" | $SED \
14279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14281 -e 's:$: $lt_compiler_flag:'`
14282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14283 (eval "$lt_compile" 2>conftest.err
)
14285 cat conftest.err
>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 if (exit $ac_status) && test -s "$ac_outfile"; then
14288 # The compiler can only warn and ignore the option if not recognized
14289 # So say no if there are warnings other than the usual output.
14290 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
14291 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14292 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14293 lt_cv_prog_compiler_pic_works_CXX
=yes
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14300 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14302 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
14303 case $lt_prog_compiler_pic_CXX in
14305 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
14308 lt_prog_compiler_pic_CXX
=
14309 lt_prog_compiler_can_build_shared_CXX
=no
14317 # Check to make sure the static flag actually works.
14319 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14321 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14322 if ${lt_cv_prog_compiler_static_works_CXX+:} false
; then :
14323 $as_echo_n "(cached) " >&6
14325 lt_cv_prog_compiler_static_works_CXX
=no
14326 save_LDFLAGS
="$LDFLAGS"
14327 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14328 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14329 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14330 # The linker can only warn and ignore the option if not recognized
14331 # So say no if there are warnings
14332 if test -s conftest.err
; then
14333 # Append any errors to the config.log.
14334 cat conftest.err
1>&5
14335 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
14336 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14337 if diff conftest.exp conftest.er2
>/dev
/null
; then
14338 lt_cv_prog_compiler_static_works_CXX
=yes
14341 lt_cv_prog_compiler_static_works_CXX
=yes
14345 LDFLAGS
="$save_LDFLAGS"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14349 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14351 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
14354 lt_prog_compiler_static_CXX
=
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14361 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14362 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14363 $as_echo_n "(cached) " >&6
14365 lt_cv_prog_compiler_c_o_CXX
=no
14366 $RM -r conftest
2>/dev
/null
14370 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14372 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14373 # Insert the option either (1) after the last *FLAGS variable, or
14374 # (2) before a word containing "conftest.", or (3) at the end.
14375 # Note that $ac_compile itself does not contain backslashes and begins
14376 # with a dollar sign (not a hyphen), so the echo should work correctly.
14377 lt_compile
=`echo "$ac_compile" | $SED \
14378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14380 -e 's:$: $lt_compiler_flag:'`
14381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14382 (eval "$lt_compile" 2>out
/conftest.err
)
14384 cat out
/conftest.err
>&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14388 # The compiler can only warn and ignore the option if not recognized
14389 # So say no if there are warnings
14390 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14391 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14392 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14393 lt_cv_prog_compiler_c_o_CXX
=yes
14398 # SGI C++ compiler will create directory out/ii_files/ for
14399 # template instantiation
14400 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14401 $RM out
/* && rmdir out
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14408 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14413 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14414 if ${lt_cv_prog_compiler_c_o_CXX+:} false
; then :
14415 $as_echo_n "(cached) " >&6
14417 lt_cv_prog_compiler_c_o_CXX
=no
14418 $RM -r conftest
2>/dev
/null
14422 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14424 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14425 # Insert the option either (1) after the last *FLAGS variable, or
14426 # (2) before a word containing "conftest.", or (3) at the end.
14427 # Note that $ac_compile itself does not contain backslashes and begins
14428 # with a dollar sign (not a hyphen), so the echo should work correctly.
14429 lt_compile
=`echo "$ac_compile" | $SED \
14430 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14431 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14432 -e 's:$: $lt_compiler_flag:'`
14433 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14434 (eval "$lt_compile" 2>out
/conftest.err
)
14436 cat out
/conftest.err
>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14440 # The compiler can only warn and ignore the option if not recognized
14441 # So say no if there are warnings
14442 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
14443 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14444 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14445 lt_cv_prog_compiler_c_o_CXX
=yes
14450 # SGI C++ compiler will create directory out/ii_files/ for
14451 # template instantiation
14452 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
14453 $RM out
/* && rmdir out
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14460 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14465 hard_links
="nottested"
14466 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
14467 # do not overwrite the value of need_locks provided by the user
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14469 $as_echo_n "checking if we can lock with hard links... " >&6; }
14472 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14474 ln conftest.a conftest.b
2>&5 || hard_links
=no
14475 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14477 $as_echo "$hard_links" >&6; }
14478 if test "$hard_links" = no
; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14480 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14490 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14492 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14495 # If we're using GNU nm, then we don't want the "-C" option.
14496 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14497 # Also, AIX nm treats weak defined symbols like other global defined
14498 # symbols, whereas GNU nm marks them as "W".
14499 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
14500 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'
14502 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14506 export_symbols_cmds_CXX
="$ltdll_cmds"
14508 cygwin
* | mingw
* | cegcc
*)
14509 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'
14512 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14515 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14518 $as_echo "$ld_shlibs_CXX" >&6; }
14519 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
14521 with_gnu_ld_CXX
=$with_gnu_ld
14529 # Do we need to explicitly link libc?
14531 case "x$archive_cmds_need_lc_CXX" in
14533 # Assume -lc should be added
14534 archive_cmds_need_lc_CXX
=yes
14536 if test "$enable_shared" = yes && test "$GCC" = yes; then
14537 case $archive_cmds_CXX in
14539 # FIXME: we may have to deal with multi-command sequences.
14542 # Test whether the compiler implicitly links with -lc since on some
14543 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14544 # to ld, don't add -lc before -lgcc.
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14546 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14547 if ${lt_cv_archive_cmds_need_lc_CXX+:} false
; then :
14548 $as_echo_n "(cached) " >&6
14551 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14554 (eval $ac_compile) 2>&5
14556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14557 test $ac_status = 0; } 2>conftest.err
; then
14560 libobjs
=conftest.
$ac_objext
14562 wl
=$lt_prog_compiler_wl_CXX
14563 pic_flag
=$lt_prog_compiler_pic_CXX
14569 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
14570 allow_undefined_flag_CXX
=
14571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14572 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
14574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14575 test $ac_status = 0; }
14577 lt_cv_archive_cmds_need_lc_CXX
=no
14579 lt_cv_archive_cmds_need_lc_CXX
=yes
14581 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
14583 cat conftest.err
1>&5
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14589 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14590 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14661 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14663 library_names_spec
=
14664 libname_spec
='lib$name'
14668 postuninstall_cmds
=
14672 shlibpath_overrides_runpath
=unknown
14674 dynamic_linker
="$host_os ld.so"
14675 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
14676 need_lib_prefix
=unknown
14677 hardcode_into_libs
=no
14679 # when you set need_version to no, make sure it does not cause -set_version
14680 # flags to be left without arguments
14681 need_version
=unknown
14686 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
14687 shlibpath_var
=LIBPATH
14689 # AIX 3 has no versioning support, so we append a major version to the name.
14690 soname_spec
='${libname}${release}${shared_ext}$major'
14697 hardcode_into_libs
=yes
14698 if test "$host_cpu" = ia64
; then
14699 # AIX 5 supports IA64
14700 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14701 shlibpath_var
=LD_LIBRARY_PATH
14703 # With GCC up to 2.95.x, collect2 would create an import file
14704 # for dependence libraries. The import file would start with
14705 # the line `#! .'. This would cause the generated library to
14706 # depend on `.', always an invalid library. This was fixed in
14707 # development snapshots of GCC prior to 3.0.
14709 aix4 | aix4.
[01] | aix4.
[01].
*)
14710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14712 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
14715 can_build_shared
=no
14719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14720 # soname into executable. Probably we can add versioning support to
14721 # collect2, so additional links can be useful in future.
14722 if test "$aix_use_runtimelinking" = yes; then
14723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14724 # instead of lib<name>.a to let people know that these are not
14725 # typical AIX shared libraries.
14726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14728 # We preserve .a as extension for shared libraries through AIX4.2
14729 # and later when we are not doing run time linking.
14730 library_names_spec
='${libname}${release}.a $libname.a'
14731 soname_spec
='${libname}${release}${shared_ext}$major'
14733 shlibpath_var
=LIBPATH
14740 # Since July 2007 AmigaOS4 officially supports .so libraries.
14741 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14745 library_names_spec
='$libname.ixlibrary $libname.a'
14746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14747 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'
14753 library_names_spec
='${libname}${shared_ext}'
14754 dynamic_linker
="$host_os ld.so"
14755 shlibpath_var
=LIBRARY_PATH
14761 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14762 soname_spec
='${libname}${release}${shared_ext}$major'
14763 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
14764 shlibpath_var
=LD_LIBRARY_PATH
14765 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14766 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
14767 # the default ld.so.conf also contains /usr/contrib/lib and
14768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14769 # libtool to hard-code these into programs
14772 cygwin
* | mingw
* | pw32
* | cegcc
*)
14773 version_type
=windows
14778 case $GCC,$host_os in
14779 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
14780 library_names_spec
='$libname.dll.a'
14781 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14782 postinstall_cmds
='base_file=`basename \${file}`~
14783 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14784 dldir=$destdir/`dirname \$dlpath`~
14785 test -d \$dldir || mkdir -p \$dldir~
14786 $install_prog $dir/$dlname \$dldir/$dlname~
14787 chmod a+x \$dldir/$dlname~
14788 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14789 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14791 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14792 dlpath=$dir/\$dldll~
14794 shlibpath_overrides_runpath
=yes
14798 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14799 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14803 # MinGW DLLs use traditional 'lib' prefix
14804 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14807 # pw32 DLLs use 'pw' prefix rather than 'lib'
14808 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14814 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14817 dynamic_linker
='Win32 ld.exe'
14818 # FIXME: first we should search . and the directory the executable is in
14822 darwin
* | rhapsody
*)
14823 dynamic_linker
="$host_os dyld"
14824 version_type
=darwin
14827 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14828 soname_spec
='${libname}${release}${major}$shared_ext'
14829 shlibpath_overrides_runpath
=yes
14830 shlibpath_var
=DYLD_LIBRARY_PATH
14831 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
14833 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
14840 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14841 soname_spec
='${libname}${release}${shared_ext}$major'
14842 shlibpath_var
=LD_LIBRARY_PATH
14845 freebsd
* | dragonfly
*)
14846 # DragonFly does not have aout. When/if they implement a new
14847 # versioning mechanism, adjust this.
14848 if test -x /usr
/bin
/objformat
; then
14849 objformat
=`/usr/bin/objformat`
14852 freebsd
[23].
*) objformat
=aout
;;
14853 *) objformat
=elf
;;
14856 version_type
=freebsd-
$objformat
14857 case $version_type in
14859 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14864 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14868 shlibpath_var
=LD_LIBRARY_PATH
14871 shlibpath_overrides_runpath
=yes
14873 freebsd3.
[01]* | freebsdelf3.
[01]*)
14874 shlibpath_overrides_runpath
=yes
14875 hardcode_into_libs
=yes
14877 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
14878 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
14879 shlibpath_overrides_runpath
=no
14880 hardcode_into_libs
=yes
14882 *) # from 4.6 on, and DragonFly
14883 shlibpath_overrides_runpath
=yes
14884 hardcode_into_libs
=yes
14893 dynamic_linker
="$host_os runtime_loader"
14894 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14895 soname_spec
='${libname}${release}${shared_ext}$major'
14896 shlibpath_var
=LIBRARY_PATH
14897 shlibpath_overrides_runpath
=yes
14898 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14899 hardcode_into_libs
=yes
14902 hpux9
* | hpux10
* | hpux11
*)
14903 # Give a soname corresponding to the major version so that dld.sl refuses to
14904 # link against other versions.
14911 hardcode_into_libs
=yes
14912 dynamic_linker
="$host_os dld.so"
14913 shlibpath_var
=LD_LIBRARY_PATH
14914 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14915 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916 soname_spec
='${libname}${release}${shared_ext}$major'
14917 if test "X$HPUX_IA64_MODE" = X32
; then
14918 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14920 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
14922 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14926 hardcode_into_libs
=yes
14927 dynamic_linker
="$host_os dld.sl"
14928 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14929 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14930 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14931 soname_spec
='${libname}${release}${shared_ext}$major'
14932 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14933 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14937 dynamic_linker
="$host_os dld.sl"
14938 shlibpath_var
=SHLIB_PATH
14939 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941 soname_spec
='${libname}${release}${shared_ext}$major'
14944 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14945 postinstall_cmds
='chmod 555 $lib'
14946 # or fails outright, so override atomically:
14947 install_override_mode
=555
14954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14955 soname_spec
='${libname}${release}${shared_ext}$major'
14956 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14957 shlibpath_var
=LD_LIBRARY_PATH
14958 shlibpath_overrides_runpath
=no
14959 hardcode_into_libs
=yes
14962 irix5
* | irix6
* | nonstopux
*)
14964 nonstopux
*) version_type
=nonstopux
;;
14966 if test "$lt_cv_prog_gnu_ld" = yes; then
14974 soname_spec
='${libname}${release}${shared_ext}$major'
14975 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14977 irix5
* | nonstopux
*)
14978 libsuff
= shlibsuff
=
14981 case $LD in # libtool.m4 will add one of these switches to LD
14982 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14983 libsuff
= shlibsuff
= libmagic
=32-bit;;
14984 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14985 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14986 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14987 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14988 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14992 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14993 shlibpath_overrides_runpath
=no
14994 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14995 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14996 hardcode_into_libs
=yes
14999 # No shared lib support for Linux oldld, aout, or coff.
15000 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15004 # This must be Linux ELF.
15006 # uclinux* changes (here and below) have been submitted to the libtool
15007 # project, but have not yet been accepted: they are GCC-local changes
15008 # for the time being. (See
15009 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15010 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
* | uclinuxfdpiceabi
)
15014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec
='${libname}${release}${shared_ext}$major'
15016 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15017 shlibpath_var
=LD_LIBRARY_PATH
15018 shlibpath_overrides_runpath
=no
15020 # Some binutils ld are patched to set DT_RUNPATH
15021 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
15022 $as_echo_n "(cached) " >&6
15024 lt_cv_shlibpath_overrides_runpath
=no
15025 save_LDFLAGS
=$LDFLAGS
15026 save_libdir
=$libdir
15027 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15028 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15040 if ac_fn_cxx_try_link
"$LINENO"; then :
15041 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
15042 lt_cv_shlibpath_overrides_runpath
=yes
15045 rm -f core conftest.err conftest.
$ac_objext \
15046 conftest
$ac_exeext conftest.
$ac_ext
15047 LDFLAGS
=$save_LDFLAGS
15048 libdir
=$save_libdir
15052 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
15054 # This implies no fast_install, which is unacceptable.
15055 # Some rework will be needed to allow for fast_install
15056 # before this can be enabled.
15057 hardcode_into_libs
=yes
15059 # Append ld.so.conf contents to the search path
15060 if test -f /etc
/ld.so.conf
; then
15061 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' ' '`
15062 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
15065 # We used to test for /lib/ld.so.1 and disable shared libraries on
15066 # powerpc, because MkLinux only supported shared libraries with the
15067 # GNU dynamic linker. Since this was broken with cross compilers,
15068 # most powerpc-linux boxes support dynamic linking these days and
15069 # people can always --disable-shared, the test was removed, and we
15070 # assume the GNU/Linux dynamic linker is in use.
15071 dynamic_linker
='GNU/Linux ld.so'
15078 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15080 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15081 dynamic_linker
='NetBSD (a.out) ld.so'
15083 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15084 soname_spec
='${libname}${release}${shared_ext}$major'
15085 dynamic_linker
='NetBSD ld.elf_so'
15087 shlibpath_var
=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath
=yes
15089 hardcode_into_libs
=yes
15094 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15095 shlibpath_var
=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath
=yes
15103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104 soname_spec
='${libname}${release}${shared_ext}$major'
15105 shlibpath_var
=LD_LIBRARY_PATH
15106 shlibpath_overrides_runpath
=no
15107 hardcode_into_libs
=yes
15108 dynamic_linker
='ldqnx.so'
15113 sys_lib_dlsearch_path_spec
="/usr/lib"
15115 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15117 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15118 *) need_version
=no
;;
15120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15121 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15122 shlibpath_var
=LD_LIBRARY_PATH
15123 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15125 openbsd2.
[89] | openbsd2.
[89].
*)
15126 shlibpath_overrides_runpath
=no
15129 shlibpath_overrides_runpath
=yes
15133 shlibpath_overrides_runpath
=yes
15138 libname_spec
='$name'
15141 library_names_spec
='$libname${shared_ext} $libname.a'
15142 dynamic_linker
='OS/2 ld.exe'
15143 shlibpath_var
=LIBPATH
15146 osf3
* | osf4
* | osf5
*)
15150 soname_spec
='${libname}${release}${shared_ext}$major'
15151 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15152 shlibpath_var
=LD_LIBRARY_PATH
15153 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15154 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
15165 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15166 soname_spec
='${libname}${release}${shared_ext}$major'
15167 shlibpath_var
=LD_LIBRARY_PATH
15168 shlibpath_overrides_runpath
=yes
15169 hardcode_into_libs
=yes
15170 # ldd complains unless libraries are executable
15171 postinstall_cmds
='chmod +x $lib'
15176 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15177 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15178 shlibpath_var
=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath
=yes
15180 if test "$with_gnu_ld" = yes; then
15188 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189 soname_spec
='${libname}${release}${shared_ext}$major'
15190 shlibpath_var
=LD_LIBRARY_PATH
15191 case $host_vendor in
15193 shlibpath_overrides_runpath
=no
15195 runpath_var
=LD_RUN_PATH
15203 shlibpath_overrides_runpath
=no
15204 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
15210 if test -d /usr
/nec
;then
15212 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15213 soname_spec
='$libname${shared_ext}.$major'
15214 shlibpath_var
=LD_LIBRARY_PATH
15218 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
15219 version_type
=freebsd-elf
15222 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15223 soname_spec
='${libname}${release}${shared_ext}$major'
15224 shlibpath_var
=LD_LIBRARY_PATH
15225 shlibpath_overrides_runpath
=yes
15226 hardcode_into_libs
=yes
15227 if test "$with_gnu_ld" = yes; then
15228 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15230 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
15233 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
15237 sys_lib_dlsearch_path_spec
='/usr/lib'
15241 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246 shlibpath_var
=LD_LIBRARY_PATH
15247 shlibpath_overrides_runpath
=no
15248 hardcode_into_libs
=yes
15253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 soname_spec
='${libname}${release}${shared_ext}$major'
15255 shlibpath_var
=LD_LIBRARY_PATH
15258 # Shared libraries for VwWorks, >= 7 only at this stage
15259 # and (fpic) still incompatible with "large" code models
15260 # in a few configurations. Only for RTP mode in any case,
15261 # and upon explicit request at configure time.
15264 case ${with_multisubdir}-${enable_shared} in
15271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 soname_spec
='${libname}${release}${shared_ext}$major'
15273 dynamic_linker
="$host_os module_loader"
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15282 $as_echo "$dynamic_linker" >&6; }
15283 test "$dynamic_linker" = no
&& can_build_shared
=no
15285 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
15286 if test "$GCC" = yes; then
15287 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15290 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15291 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
15293 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15294 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15335 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15336 hardcode_action_CXX
=
15337 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15338 test -n "$runpath_var_CXX" ||
15339 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15341 # We can hardcode non-existent directories.
15342 if test "$hardcode_direct_CXX" != no
&&
15343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15344 # have to relink, otherwise we might link with an installed library
15345 # when we should be linking with a yet-to-be-installed one
15346 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15347 test "$hardcode_minus_L_CXX" != no
; then
15348 # Linking always hardcodes the temporary library directory.
15349 hardcode_action_CXX
=relink
15351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15352 hardcode_action_CXX
=immediate
15355 # We cannot hardcode anything, or else we can only hardcode existing
15357 hardcode_action_CXX
=unsupported
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15360 $as_echo "$hardcode_action_CXX" >&6; }
15362 if test "$hardcode_action_CXX" = relink ||
15363 test "$inherit_rpath_CXX" = yes; then
15364 # Fast installation is not supported
15365 enable_fast_install
=no
15366 elif test "$shlibpath_overrides_runpath" = yes ||
15367 test "$enable_shared" = no
; then
15368 # Fast installation is not necessary
15369 enable_fast_install
=needless
15378 fi # test -n "$compiler"
15384 with_gnu_ld
=$lt_save_with_gnu_ld
15385 lt_cv_path_LDCXX
=$lt_cv_path_LD
15386 lt_cv_path_LD
=$lt_save_path_LD
15387 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
15388 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
15389 fi # test "$_lt_caught_CXX_error" != yes
15392 ac_cpp
='$CPP $CPPFLAGS'
15393 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15394 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15395 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15409 ac_config_commands
="$ac_config_commands libtool"
15414 # Only expand once:
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15422 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15423 # Check whether --enable-maintainer-mode was given.
15424 if test "${enable_maintainer_mode+set}" = set; then :
15425 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
15427 USE_MAINTAINER_MODE
=no
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15431 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15432 if test $USE_MAINTAINER_MODE = yes; then
15433 MAINTAINER_MODE_TRUE
=
15434 MAINTAINER_MODE_FALSE
='#'
15436 MAINTAINER_MODE_TRUE
='#'
15437 MAINTAINER_MODE_FALSE
=
15440 MAINT
=$MAINTAINER_MODE_TRUE
15444 # For libtool versioning info, format is CURRENT:REVISION:AGE
15445 libtool_VERSION
=1:0:0
15448 # Check header files.
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15450 $as_echo_n "checking for ANSI C header files... " >&6; }
15451 if ${ac_cv_header_stdc+:} false
; then :
15452 $as_echo_n "(cached) " >&6
15454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15455 /* end confdefs.h. */
15456 #include <stdlib.h>
15457 #include <stdarg.h>
15458 #include <string.h>
15469 if ac_fn_c_try_compile
"$LINENO"; then :
15470 ac_cv_header_stdc
=yes
15472 ac_cv_header_stdc
=no
15474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15476 if test $ac_cv_header_stdc = yes; then
15477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15479 /* end confdefs.h. */
15480 #include <string.h>
15483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15484 $EGREP "memchr" >/dev
/null
2>&1; then :
15487 ac_cv_header_stdc
=no
15493 if test $ac_cv_header_stdc = yes; then
15494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15497 #include <stdlib.h>
15500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15501 $EGREP "free" >/dev
/null
2>&1; then :
15504 ac_cv_header_stdc
=no
15510 if test $ac_cv_header_stdc = yes; then
15511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15512 if test "$cross_compiling" = yes; then :
15515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15518 #include <stdlib.h>
15519 #if ((' ' & 0x0FF) == 0x020)
15520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15523 # define ISLOWER(c) \
15524 (('a' <= (c) && (c) <= 'i') \
15525 || ('j' <= (c) && (c) <= 'r') \
15526 || ('s' <= (c) && (c) <= 'z'))
15527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15535 for (i = 0; i < 256; i++)
15536 if (XOR (islower (i), ISLOWER (i))
15537 || toupper (i) != TOUPPER (i))
15542 if ac_fn_c_try_run
"$LINENO"; then :
15545 ac_cv_header_stdc
=no
15547 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15548 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15554 $as_echo "$ac_cv_header_stdc" >&6; }
15555 if test $ac_cv_header_stdc = yes; then
15557 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15562 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15563 if ${ac_cv_header_time+:} false
; then :
15564 $as_echo_n "(cached) " >&6
15566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568 #include <sys/types.h>
15569 #include <sys/time.h>
15575 if ((struct tm *) 0)
15581 if ac_fn_c_try_compile
"$LINENO"; then :
15582 ac_cv_header_time
=yes
15584 ac_cv_header_time
=no
15586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15589 $as_echo "$ac_cv_header_time" >&6; }
15590 if test $ac_cv_header_time = yes; then
15592 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15597 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15598 if ${gcc_cv_header_string+:} false
; then :
15599 $as_echo_n "(cached) " >&6
15601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15602 /* end confdefs.h. */
15603 #include <string.h>
15604 #include <strings.h>
15613 if ac_fn_c_try_compile
"$LINENO"; then :
15614 gcc_cv_header_string
=yes
15616 gcc_cv_header_string
=no
15618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15621 $as_echo "$gcc_cv_header_string" >&6; }
15622 if test $gcc_cv_header_string = yes; then
15624 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15628 for ac_header
in unistd.h semaphore.h sys
/time.h sys
/auxv.h malloc.h
15630 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15631 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15632 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
15633 cat >>confdefs.h
<<_ACEOF
15634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15644 inttype_headers
=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15646 acx_cv_header_stdint
=stddef.h
15647 acx_cv_header_stdint_kind
="(already complete)"
15648 for i
in stdint.h
$inttype_headers; do
15649 unset ac_cv_type_uintptr_t
15650 unset ac_cv_type_uintmax_t
15651 unset ac_cv_type_int_least32_t
15652 unset ac_cv_type_int_fast32_t
15653 unset ac_cv_type_uint64_t
15654 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15655 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15658 if test "x$ac_cv_type_uintmax_t" = xyes
; then :
15659 acx_cv_header_stdint
=$i
15664 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15667 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
15670 acx_cv_header_stdint_kind
="(mostly complete)"
15673 ac_fn_c_check_type
"$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15676 if test "x$ac_cv_type_int_least32_t" = xyes
; then :
15679 acx_cv_header_stdint_kind
="(mostly complete)"
15682 ac_fn_c_check_type
"$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15685 if test "x$ac_cv_type_int_fast32_t" = xyes
; then :
15688 acx_cv_header_stdint_kind
="(mostly complete)"
15691 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15694 if test "x$ac_cv_type_uint64_t" = xyes
; then :
15697 acx_cv_header_stdint_kind
="(lacks uint64_t)"
15702 if test "$acx_cv_header_stdint" = stddef.h
; then
15703 acx_cv_header_stdint_kind
="(lacks uintmax_t)"
15704 for i
in stdint.h
$inttype_headers; do
15705 unset ac_cv_type_uintptr_t
15706 unset ac_cv_type_uint32_t
15707 unset ac_cv_type_uint64_t
15708 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15709 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15712 if test "x$ac_cv_type_uint32_t" = xyes
; then :
15713 acx_cv_header_stdint
=$i
15718 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15721 if test "x$ac_cv_type_uint64_t" = xyes
; then :
15725 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15728 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
15735 if test "$acx_cv_header_stdint" = stddef.h
; then
15736 acx_cv_header_stdint_kind
="(u_intXX_t style)"
15737 for i
in sys
/types.h
$inttype_headers; do
15738 unset ac_cv_type_u_int32_t
15739 unset ac_cv_type_u_int64_t
15740 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15741 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15744 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
15745 acx_cv_header_stdint
=$i
15750 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15753 if test "x$ac_cv_type_u_int64_t" = xyes
; then :
15760 if test "$acx_cv_header_stdint" = stddef.h
; then
15761 acx_cv_header_stdint_kind
="(using manual detection)"
15764 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t
=no
15765 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t
=no
15766 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t
=no
15767 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t
=no
15768 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t
=no
15770 # ----------------- Summarize what we found so far
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15773 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15775 case `$as_basename -- gstdint.h ||
15776 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15777 Xgstdint.h : 'X\(//\)$' \| \
15778 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15779 $as_echo X/gstdint.h |
15780 sed '/^.*\/\([^/][^/]*\)\/*$/{
15793 stdint.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15794 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15795 inttypes.h
) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15796 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15801 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15803 # ----------------- done included file, check C basic types --------
15805 # Lacking an uintptr_t? Test size of void *
15806 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15807 stddef.h
:* |
*:no
) # The cast to long int works around a bug in the HP C Compiler
15808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15810 # This bug is HP SR number 8606223364.
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15812 $as_echo_n "checking size of void *... " >&6; }
15813 if ${ac_cv_sizeof_void_p+:} false
; then :
15814 $as_echo_n "(cached) " >&6
15816 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15819 if test "$ac_cv_type_void_p" = yes; then
15820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15822 as_fn_error
77 "cannot compute sizeof (void *)
15823 See \`config.log' for more details" "$LINENO" 5; }
15825 ac_cv_sizeof_void_p
=0
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15831 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15835 cat >>confdefs.h
<<_ACEOF
15836 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15842 # Lacking an uint64_t? Test size of long
15843 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15844 stddef.h
:*:* |
*:no
:no
) # The cast to long int works around a bug in the HP C Compiler
15845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15847 # This bug is HP SR number 8606223364.
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15849 $as_echo_n "checking size of long... " >&6; }
15850 if ${ac_cv_sizeof_long+:} false
; then :
15851 $as_echo_n "(cached) " >&6
15853 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15856 if test "$ac_cv_type_long" = yes; then
15857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15859 as_fn_error
77 "cannot compute sizeof (long)
15860 See \`config.log' for more details" "$LINENO" 5; }
15862 ac_cv_sizeof_long
=0
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15868 $as_echo "$ac_cv_sizeof_long" >&6; }
15872 cat >>confdefs.h
<<_ACEOF
15873 #define SIZEOF_LONG $ac_cv_sizeof_long
15879 if test $acx_cv_header_stdint = stddef.h
; then
15880 # Lacking a good header? Test size of everything and deduce all types.
15881 # The cast to long int works around a bug in the HP C Compiler
15882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15884 # This bug is HP SR number 8606223364.
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15886 $as_echo_n "checking size of int... " >&6; }
15887 if ${ac_cv_sizeof_int+:} false
; then :
15888 $as_echo_n "(cached) " >&6
15890 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15893 if test "$ac_cv_type_int" = yes; then
15894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15896 as_fn_error
77 "cannot compute sizeof (int)
15897 See \`config.log' for more details" "$LINENO" 5; }
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15905 $as_echo "$ac_cv_sizeof_int" >&6; }
15909 cat >>confdefs.h
<<_ACEOF
15910 #define SIZEOF_INT $ac_cv_sizeof_int
15914 # The cast to long int works around a bug in the HP C Compiler
15915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15916 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15917 # This bug is HP SR number 8606223364.
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15919 $as_echo_n "checking size of short... " >&6; }
15920 if ${ac_cv_sizeof_short+:} false
; then :
15921 $as_echo_n "(cached) " >&6
15923 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15926 if test "$ac_cv_type_short" = yes; then
15927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15929 as_fn_error
77 "cannot compute sizeof (short)
15930 See \`config.log' for more details" "$LINENO" 5; }
15932 ac_cv_sizeof_short
=0
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15938 $as_echo "$ac_cv_sizeof_short" >&6; }
15942 cat >>confdefs.h
<<_ACEOF
15943 #define SIZEOF_SHORT $ac_cv_sizeof_short
15947 # The cast to long int works around a bug in the HP C Compiler
15948 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15949 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15950 # This bug is HP SR number 8606223364.
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15952 $as_echo_n "checking size of char... " >&6; }
15953 if ${ac_cv_sizeof_char+:} false
; then :
15954 $as_echo_n "(cached) " >&6
15956 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15959 if test "$ac_cv_type_char" = yes; then
15960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15962 as_fn_error
77 "cannot compute sizeof (char)
15963 See \`config.log' for more details" "$LINENO" 5; }
15965 ac_cv_sizeof_char
=0
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15971 $as_echo "$ac_cv_sizeof_char" >&6; }
15975 cat >>confdefs.h
<<_ACEOF
15976 #define SIZEOF_CHAR $ac_cv_sizeof_char
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15982 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15983 case "$ac_cv_sizeof_char" in
15984 1) acx_cv_type_int8_t
=char
;;
15985 *) as_fn_error $?
"no 8-bit type, please report a bug" "$LINENO" 5
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15988 $as_echo "$acx_cv_type_int8_t" >&6; }
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15991 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15993 2:*) acx_cv_type_int16_t
=int
;;
15994 *:2) acx_cv_type_int16_t
=short
;;
15995 *) as_fn_error $?
"no 16-bit type, please report a bug" "$LINENO" 5
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15998 $as_echo "$acx_cv_type_int16_t" >&6; }
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16001 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16002 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16003 4:*) acx_cv_type_int32_t
=int
;;
16004 *:4) acx_cv_type_int32_t
=long
;;
16005 *) as_fn_error $?
"no 32-bit type, please report a bug" "$LINENO" 5
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16008 $as_echo "$acx_cv_type_int32_t" >&6; }
16011 # These tests are here to make the output prettier
16013 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16014 case "$ac_cv_sizeof_long" in
16015 8) acx_cv_type_int64_t
=long
;;
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16018 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16020 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16023 # Now we can use the above types
16025 if test "$ac_cv_type_uintptr_t" != yes; then
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16027 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16028 case $ac_cv_sizeof_void_p in
16029 2) acx_cv_type_intptr_t
=int16_t
;;
16030 4) acx_cv_type_intptr_t
=int32_t
;;
16031 8) acx_cv_type_intptr_t
=int64_t
;;
16032 *) as_fn_error $?
"no equivalent for intptr_t, please report a bug" "$LINENO" 5
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16035 $as_echo "$acx_cv_type_intptr_t" >&6; }
16038 # ----------------- done all checks, emit header -------------
16039 ac_config_commands
="$ac_config_commands gstdint.h"
16045 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
16046 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
16047 gcc_header_sys_mman_h
=yes
16049 gcc_header_sys_mman_h
=no
16053 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
16054 if test "x$ac_cv_func_mmap" = xyes
; then :
16060 if test "$gcc_header_sys_mman_h" != yes \
16061 ||
test "$gcc_func_mmap" != yes; then
16062 gcc_cv_func_mmap_file
=no
16063 gcc_cv_func_mmap_dev_zero
=no
16064 gcc_cv_func_mmap_anon
=no
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
16067 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
16068 if ${gcc_cv_func_mmap_file+:} false
; then :
16069 $as_echo_n "(cached) " >&6
16071 # Add a system to this blacklist if
16072 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
16073 # memory area containing the same data that you'd get if you applied
16074 # read() to the same fd. The only system known to have a problem here
16075 # is VMS, where text files have record structure.
16078 gcc_cv_func_mmap_file
=no
;;
16080 gcc_cv_func_mmap_file
=yes;;
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
16084 $as_echo "$gcc_cv_func_mmap_file" >&6; }
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
16086 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
16087 if ${gcc_cv_func_mmap_dev_zero+:} false
; then :
16088 $as_echo_n "(cached) " >&6
16090 # Add a system to this blacklist if it has mmap() but /dev/zero
16091 # does not exist, or if mmapping /dev/zero does not give anonymous
16092 # zeroed pages with both the following properties:
16093 # 1. If you map N consecutive pages in with one call, and then
16094 # unmap any subset of those pages, the pages that were not
16095 # explicitly unmapped remain accessible.
16096 # 2. If you map two adjacent blocks of memory and then unmap them
16097 # both at once, they must both go away.
16098 # Systems known to be in this category are Windows (all variants),
16101 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
16102 gcc_cv_func_mmap_dev_zero
=no
;;
16104 gcc_cv_func_mmap_dev_zero
=yes;;
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
16108 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
16110 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
16112 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
16113 if ${gcc_cv_decl_map_anon+:} false
; then :
16114 $as_echo_n "(cached) " >&6
16116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16118 #include <sys/types.h>
16119 #include <sys/mman.h>
16120 #include <unistd.h>
16122 #ifndef MAP_ANONYMOUS
16123 #define MAP_ANONYMOUS MAP_ANON
16129 int n = MAP_ANONYMOUS;
16134 if ac_fn_c_try_compile
"$LINENO"; then :
16135 gcc_cv_decl_map_anon
=yes
16137 gcc_cv_decl_map_anon
=no
16139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
16142 $as_echo "$gcc_cv_decl_map_anon" >&6; }
16144 if test $gcc_cv_decl_map_anon = no
; then
16145 gcc_cv_func_mmap_anon
=no
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
16148 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
16149 if ${gcc_cv_func_mmap_anon+:} false
; then :
16150 $as_echo_n "(cached) " >&6
16152 # Add a system to this blacklist if it has mmap() and MAP_ANON or
16153 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
16154 # doesn't give anonymous zeroed pages with the same properties listed
16155 # above for use of /dev/zero.
16156 # Systems known to be in this category are Windows, VMS, and SCO Unix.
16158 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
16159 gcc_cv_func_mmap_anon
=no
;;
16161 gcc_cv_func_mmap_anon
=yes;;
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
16165 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
16169 if test $gcc_cv_func_mmap_file = yes; then
16171 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
16174 if test $gcc_cv_func_mmap_dev_zero = yes; then
16176 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
16179 if test $gcc_cv_func_mmap_anon = yes; then
16181 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16188 if ${ac_cv_c_bigendian+:} false
; then :
16189 $as_echo_n "(cached) " >&6
16191 ac_cv_c_bigendian
=unknown
16192 # See if we're dealing with a universal compiler.
16193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 #ifndef __APPLE_CC__
16196 not a universal capable compiler
16201 if ac_fn_c_try_compile
"$LINENO"; then :
16203 # Check for potential -arch flags. It is not universal unless
16204 # there are at least two -arch flags with different values.
16207 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16208 if test -n "$ac_prev"; then
16210 i?
86 | x86_64 | ppc | ppc64
)
16211 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
16214 ac_cv_c_bigendian
=universal
16220 elif test "x$ac_word" = "x-arch"; then
16225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16226 if test $ac_cv_c_bigendian = unknown
; then
16227 # See if sys/param.h defines the BYTE_ORDER macro.
16228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230 #include <sys/types.h>
16231 #include <sys/param.h>
16236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16239 bogus endian macros
16246 if ac_fn_c_try_compile
"$LINENO"; then :
16247 # It does; now see whether it defined to BIG_ENDIAN or not.
16248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 #include <sys/types.h>
16251 #include <sys/param.h>
16256 #if BYTE_ORDER != BIG_ENDIAN
16264 if ac_fn_c_try_compile
"$LINENO"; then :
16265 ac_cv_c_bigendian
=yes
16267 ac_cv_c_bigendian
=no
16269 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16273 if test $ac_cv_c_bigendian = unknown
; then
16274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16277 #include <limits.h>
16282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16283 bogus endian macros
16290 if ac_fn_c_try_compile
"$LINENO"; then :
16291 # It does; now see whether it defined to _BIG_ENDIAN or not.
16292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16293 /* end confdefs.h. */
16294 #include <limits.h>
16299 #ifndef _BIG_ENDIAN
16307 if ac_fn_c_try_compile
"$LINENO"; then :
16308 ac_cv_c_bigendian
=yes
16310 ac_cv_c_bigendian
=no
16312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16316 if test $ac_cv_c_bigendian = unknown
; then
16317 # Compile a test program.
16318 if test "$cross_compiling" = yes; then :
16319 # Try to guess by grepping values from an object file.
16320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16321 /* end confdefs.h. */
16322 short int ascii_mm[] =
16323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16324 short int ascii_ii[] =
16325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16326 int use_ascii (int i) {
16327 return ascii_mm[i] + ascii_ii[i];
16329 short int ebcdic_ii[] =
16330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16331 short int ebcdic_mm[] =
16332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16333 int use_ebcdic (int i) {
16334 return ebcdic_mm[i] + ebcdic_ii[i];
16341 return use_ascii (foo) == use_ebcdic (foo);
16346 if ac_fn_c_try_compile
"$LINENO"; then :
16347 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
16348 ac_cv_c_bigendian
=yes
16350 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
16351 if test "$ac_cv_c_bigendian" = unknown
; then
16352 ac_cv_c_bigendian
=no
16354 # finding both strings is unlikely to happen, but who knows?
16355 ac_cv_c_bigendian
=unknown
16359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16362 /* end confdefs.h. */
16363 $ac_includes_default
16368 /* Are we little or big endian? From Harbison&Steele. */
16372 char c[sizeof (long int)];
16375 return u.c[sizeof (long int) - 1] == 1;
16381 if ac_fn_c_try_run
"$LINENO"; then :
16382 ac_cv_c_bigendian
=no
16384 ac_cv_c_bigendian
=yes
16386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16387 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16393 $as_echo "$ac_cv_c_bigendian" >&6; }
16394 case $ac_cv_c_bigendian in #(
16396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16406 as_fn_error $?
"unknown endianness
16407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16410 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16413 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16414 # In case the pthread.h system header is not found, this test will fail.
16416 CFLAGS
="$CFLAGS -pthread"
16417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 #include <pthread.h>
16420 void *g(void *d) { return NULL; }
16424 pthread_t t; pthread_create(&t,NULL,g,NULL);
16429 if ac_fn_c_try_link
"$LINENO"; then :
16430 XPCFLAGS
=" -Wc,-pthread"
16432 CFLAGS
="$save_CFLAGS" LIBS
="-lpthread $LIBS"
16433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16435 #include <pthread.h>
16436 void *g(void *d) { return NULL; }
16440 pthread_t t; pthread_create(&t,NULL,g,NULL);
16445 if ac_fn_c_try_link
"$LINENO"; then :
16448 as_fn_error $?
"Pthreads are required to build libitm" "$LINENO" 5
16450 rm -f core conftest.err conftest.
$ac_objext \
16451 conftest
$ac_exeext conftest.
$ac_ext
16453 rm -f core conftest.err conftest.
$ac_objext \
16454 conftest
$ac_exeext conftest.
$ac_ext
16456 # Check for functions needed.
16457 for ac_func
in strtoull memalign posix_memalign getauxval
16459 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16460 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
16461 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
16462 cat >>confdefs.h
<<_ACEOF
16463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16470 # Check for broken semaphore implementation on darwin.
16471 # sem_init returns: sem_init error: Function not implemented.
16475 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16480 # Check whether --enable-linux-futex was given.
16481 if test "${enable_linux_futex+set}" = set; then :
16482 enableval
=$enable_linux_futex;
16483 case "$enableval" in
16485 *) as_fn_error $?
"Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16489 enable_linux_futex
=default
16494 *-linux* |
*-uclinux*)
16495 case "$enable_linux_futex" in
16497 # If headers don't have gettid/futex syscalls definition, then
16498 # default to no, otherwise there will be compile time failures.
16499 # Otherwise, default to yes. If we don't detect we are
16500 # compiled/linked against NPTL and not cross-compiling, check
16501 # if programs are run by default against NPTL and if not, issue
16503 enable_linux_futex
=no
16504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16506 #include <sys/syscall.h>
16507 #include <unistd.h>
16512 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16517 if ac_fn_c_try_link
"$LINENO"; then :
16519 LIBS
="-lpthread $LIBS"
16520 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16521 /* end confdefs.h. */
16522 #ifndef _GNU_SOURCE
16523 #define _GNU_SOURCE 1
16525 #include <pthread.h>
16526 pthread_t th; void *status;
16530 pthread_tryjoin_np (th, &status);
16535 if ac_fn_c_try_link
"$LINENO"; then :
16536 enable_linux_futex
=yes
16538 if test x
$cross_compiling = xno
; then
16539 if getconf GNU_LIBPTHREAD_VERSION
2>/dev
/null \
16540 | LC_ALL
=C
grep -i NPTL
> /dev
/null
2>/dev
/null
; then :; else
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16542 If so, please configure with --disable-linux-futex" >&5
16543 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16544 If so, please configure with --disable-linux-futex" >&2;}
16547 enable_linux_futex
=yes
16549 rm -f core conftest.err conftest.
$ac_objext \
16550 conftest
$ac_exeext conftest.
$ac_ext
16553 rm -f core conftest.err conftest.
$ac_objext \
16554 conftest
$ac_exeext conftest.
$ac_ext
16557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 #include <sys/syscall.h>
16560 #include <unistd.h>
16565 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16570 if ac_fn_c_try_link
"$LINENO"; then :
16573 as_fn_error $?
"SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16575 rm -f core conftest.err conftest.
$ac_objext \
16576 conftest
$ac_exeext conftest.
$ac_ext
16581 enable_linux_futex
=no
16584 if test x
$enable_linux_futex = xyes
; then
16589 # See if we support thread-local storage.
16592 # Check whether --enable-tls was given.
16593 if test "${enable_tls+set}" = set; then :
16594 enableval
=$enable_tls;
16595 case "$enableval" in
16597 *) as_fn_error $?
"Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16606 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16607 if ${gcc_cv_have_tls+:} false
; then :
16608 $as_echo_n "(cached) " >&6
16611 if test "$cross_compiling" = yes; then :
16612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16613 /* end confdefs.h. */
16614 __thread int a; int b; int main() { return a = b; }
16616 if ac_fn_c_try_link
"$LINENO"; then :
16617 chktls_save_LDFLAGS
="$LDFLAGS"
16619 *-*-linux* |
-*-uclinuxfdpic*)
16620 LDFLAGS
="-shared -Wl,--no-undefined $LDFLAGS"
16623 chktls_save_CFLAGS
="$CFLAGS"
16624 CFLAGS
="-fPIC $CFLAGS"
16625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16627 int f() { return 0; }
16629 if ac_fn_c_try_link
"$LINENO"; then :
16630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16632 __thread int a; int b; int f() { return a = b; }
16634 if ac_fn_c_try_link
"$LINENO"; then :
16635 gcc_cv_have_tls
=yes
16639 rm -f core conftest.err conftest.
$ac_objext \
16640 conftest
$ac_exeext conftest.
$ac_ext
16642 gcc_cv_have_tls
=yes
16644 rm -f core conftest.err conftest.
$ac_objext \
16645 conftest
$ac_exeext conftest.
$ac_ext
16646 CFLAGS
="$chktls_save_CFLAGS"
16647 LDFLAGS
="$chktls_save_LDFLAGS"
16651 rm -f core conftest.err conftest.
$ac_objext \
16652 conftest
$ac_exeext conftest.
$ac_ext
16656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16658 __thread int a; int b; int main() { return a = b; }
16660 if ac_fn_c_try_run
"$LINENO"; then :
16661 chktls_save_LDFLAGS
="$LDFLAGS"
16662 LDFLAGS
="-static $LDFLAGS"
16663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665 int main() { return 0; }
16667 if ac_fn_c_try_link
"$LINENO"; then :
16668 if test "$cross_compiling" = yes; then :
16669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16671 as_fn_error $?
"cannot run test program while cross compiling
16672 See \`config.log' for more details" "$LINENO" 5; }
16674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 __thread int a; int b; int main() { return a = b; }
16678 if ac_fn_c_try_run
"$LINENO"; then :
16679 gcc_cv_have_tls
=yes
16683 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16684 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16688 gcc_cv_have_tls
=yes
16690 rm -f core conftest.err conftest.
$ac_objext \
16691 conftest
$ac_exeext conftest.
$ac_ext
16692 LDFLAGS
="$chktls_save_LDFLAGS"
16693 if test $gcc_cv_have_tls = yes; then
16694 chktls_save_CFLAGS
="$CFLAGS"
16695 thread_CFLAGS
=failed
16696 for flag
in '' '-pthread' '-lpthread'; do
16697 CFLAGS
="$flag $chktls_save_CFLAGS"
16698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16699 /* end confdefs.h. */
16700 #include <pthread.h>
16701 void *g(void *d) { return NULL; }
16705 pthread_t t; pthread_create(&t,NULL,g,NULL);
16710 if ac_fn_c_try_link
"$LINENO"; then :
16711 thread_CFLAGS
="$flag"
16713 rm -f core conftest.err conftest.
$ac_objext \
16714 conftest
$ac_exeext conftest.
$ac_ext
16715 if test "X$thread_CFLAGS" != Xfailed
; then
16719 CFLAGS
="$chktls_save_CFLAGS"
16720 if test "X$thread_CFLAGS" != Xfailed
; then
16721 CFLAGS
="$thread_CFLAGS $chktls_save_CFLAGS"
16722 if test "$cross_compiling" = yes; then :
16723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16725 as_fn_error $?
"cannot run test program while cross compiling
16726 See \`config.log' for more details" "$LINENO" 5; }
16728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16730 #include <pthread.h>
16732 static int *volatile a_in_other_thread;
16734 thread_func (void *arg)
16736 a_in_other_thread = &a;
16743 void *thread_retval;
16744 int *volatile a_in_main_thread;
16745 a_in_main_thread = &a;
16746 if (pthread_create (&thread, (pthread_attr_t *)0,
16747 thread_func, (void *)0))
16749 if (pthread_join (thread, &thread_retval))
16751 return (a_in_other_thread == a_in_main_thread);
16756 if ac_fn_c_try_run
"$LINENO"; then :
16757 gcc_cv_have_tls
=yes
16761 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16762 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16765 CFLAGS
="$chktls_save_CFLAGS"
16771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16777 $as_echo "$gcc_cv_have_tls" >&6; }
16778 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16780 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16784 # See what sort of export controls are available.
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16787 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16788 if ${libitm_cv_have_attribute_visibility+:} false
; then :
16789 $as_echo_n "(cached) " >&6
16792 save_CFLAGS
="$CFLAGS"
16793 CFLAGS
="$CFLAGS -Werror"
16794 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16795 /* end confdefs.h. */
16796 void __attribute__((visibility("hidden"))) foo(void) { }
16805 if ac_fn_c_try_compile
"$LINENO"; then :
16806 libitm_cv_have_attribute_visibility
=yes
16808 libitm_cv_have_attribute_visibility
=no
16810 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16811 CFLAGS
="$save_CFLAGS"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16814 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16815 if test $libitm_cv_have_attribute_visibility = yes; then
16817 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16822 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16823 if ${libitm_cv_have_attribute_dllexport+:} false
; then :
16824 $as_echo_n "(cached) " >&6
16827 save_CFLAGS
="$CFLAGS"
16828 CFLAGS
="$CFLAGS -Werror"
16829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16830 /* end confdefs.h. */
16831 void __attribute__((dllexport)) foo(void) { }
16840 if ac_fn_c_try_compile
"$LINENO"; then :
16841 libitm_cv_have_attribute_dllexport
=yes
16843 libitm_cv_have_attribute_dllexport
=no
16845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16846 CFLAGS
="$save_CFLAGS"
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16849 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16850 if test $libitm_cv_have_attribute_dllexport = yes; then
16852 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16857 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16858 if ${libitm_cv_have_attribute_alias+:} false
; then :
16859 $as_echo_n "(cached) " >&6
16862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16866 extern void bar(void) __attribute__((alias("foo")));
16875 if ac_fn_c_try_link
"$LINENO"; then :
16876 libitm_cv_have_attribute_alias
=yes
16878 libitm_cv_have_attribute_alias
=no
16880 rm -f core conftest.err conftest.
$ac_objext \
16881 conftest
$ac_exeext conftest.
$ac_ext
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16884 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16885 if test $libitm_cv_have_attribute_alias = yes; then
16887 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16891 # Check linker hardware capability support.
16894 # Check whether --with-gnu-ld was given.
16895 if test "${with_gnu_ld+set}" = set; then :
16896 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
16902 if test "$GCC" = yes; then
16903 # Check if gcc -print-prog-name=ld gives a path.
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16905 $as_echo_n "checking for ld used by $CC... " >&6; }
16908 # gcc leaves a trailing carriage return which upsets mingw
16909 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16911 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
16914 # Accept absolute paths.
16916 re_direlt
='/[^/][^/]*/\.\./'
16917 # Canonicalize the pathname of ld
16918 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16919 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
16920 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16922 test -z "$LD" && LD
="$ac_prog"
16925 # If it fails, then pretend we aren't using GCC.
16929 # If it is relative, then search for the first ld in PATH.
16930 with_gnu_ld
=unknown
16933 elif test "$with_gnu_ld" = yes; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16935 $as_echo_n "checking for GNU ld... " >&6; }
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16938 $as_echo_n "checking for non-GNU ld... " >&6; }
16940 if ${lt_cv_path_LD+:} false
; then :
16941 $as_echo_n "(cached) " >&6
16943 if test -z "$LD"; then
16944 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
16945 for ac_dir
in $PATH; do
16947 test -z "$ac_dir" && ac_dir
=.
16948 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
16949 lt_cv_path_LD
="$ac_dir/$ac_prog"
16950 # Check to see if the program is GNU ld. I'd rather use --version,
16951 # but apparently some variants of GNU ld only accept -v.
16952 # Break only if it was the GNU/non-GNU ld that we prefer.
16953 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16954 *GNU
* |
*'with BFD'*)
16955 test "$with_gnu_ld" != no
&& break
16958 test "$with_gnu_ld" != yes && break
16965 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
16969 LD
="$lt_cv_path_LD"
16970 if test -n "$LD"; then
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16972 $as_echo "$LD" >&6; }
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975 $as_echo "no" >&6; }
16977 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16979 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16980 if ${lt_cv_prog_gnu_ld+:} false
; then :
16981 $as_echo_n "(cached) " >&6
16983 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16984 case `$LD -v 2>&1 </dev/null` in
16985 *GNU
* |
*'with BFD'*)
16986 lt_cv_prog_gnu_ld
=yes
16989 lt_cv_prog_gnu_ld
=no
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16994 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16995 with_gnu_ld
=$lt_cv_prog_gnu_ld
17003 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS
=''
17006 ac_save_LDFLAGS
="$LDFLAGS"
17007 LDFLAGS
="$LFLAGS -mclear-hwcap"
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
17010 $as_echo_n "checking for -mclear-hwcap... " >&6; }
17011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17012 /* end confdefs.h. */
17022 if ac_fn_c_try_link
"$LINENO"; then :
17023 ac_hwcap_ldflags
=yes
17025 ac_hwcap_ldflags
=no
17027 rm -f core conftest.err conftest.
$ac_objext \
17028 conftest
$ac_exeext conftest.
$ac_ext
17029 if test "$ac_hwcap_ldflags" = "yes"; then
17030 HWCAP_LDFLAGS
="-mclear-hwcap $HWCAP_LDFLAGS"
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
17033 $as_echo "$ac_hwcap_ldflags" >&6; }
17035 LDFLAGS
="$ac_save_LDFLAGS"
17039 if test $ac_hwcap_ldflags != no
; then
17041 HAVE_HWCAP_FALSE
='#'
17043 HAVE_HWCAP_TRUE
='#'
17048 # If defaulting to -mavx, don't clear hwcaps.
17049 ac_fn_c_check_decl
"$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
17050 if test "x$ac_cv_have_decl___AVX__" = xyes
; then :
17056 # If we're not using GNU ld, then there's no point in even trying these
17057 # tests. Check for that first. We should have already tested for gld
17058 # by now (in libtool), but require it now just to be safe...
17059 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS
=''
17060 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS
=''
17064 # The name set by libtool depends on the version of libtool. Shame on us
17065 # for depending on an impl detail, but c'est la vie. Older versions used
17066 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
17067 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
17068 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
17069 # set (hence we're using an older libtool), then set it.
17070 if test x
${with_gnu_ld+set} != xset
; then
17071 if test x
${ac_cv_prog_gnu_ld+set} != xset
; then
17072 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
17075 with_gnu_ld
=$ac_cv_prog_gnu_ld
17079 # Start by getting the version number. I think the libtool test already
17080 # does some of this, but throws away the result.
17081 libitm_ld_is_gold
=no
17082 libitm_ld_is_mold
=no
17083 if $LD --version 2>/dev
/null |
grep 'GNU gold'> /dev
/null
2>&1; then
17084 libitm_ld_is_gold
=yes
17085 elif $LD --version 2>/dev
/null |
grep 'mold' >/dev
/null
2>&1; then
17086 libitm_ld_is_mold
=yes
17089 ldver
=`$LD --version 2>/dev/null |
17090 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
17092 libitm_gnu_ld_version
=`echo $ldver | \
17093 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
17095 # Set --gc-sections.
17096 if test "$with_gnu_ld" = "notbroken"; then
17097 # GNU ld it is! Joy and bunny rabbits!
17099 # All these tests are for C++; save the language and the compiler flags.
17100 # Need to do this so that g++ won't try to link in libstdc++
17101 ac_test_CFLAGS
="${CFLAGS+set}"
17102 ac_save_CFLAGS
="$CFLAGS"
17103 CFLAGS
='-x c++ -Wl,--gc-sections'
17105 # Check for -Wl,--gc-sections
17106 # XXX This test is broken at the moment, as symbols required for linking
17107 # are now in libsupc++ (not built yet). In addition, this test has
17108 # cored on solaris in the past. In addition, --gc-sections doesn't
17109 # really work at the moment (keeps on discarding used sections, first
17110 # .eh_frame and now some of the glibc sections for iconv).
17111 # Bzzzzt. Thanks for playing, maybe next time.
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
17113 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
17114 if test "$cross_compiling" = yes; then :
17115 ac_sectionLDflags
=yes
17117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17128 if ac_fn_c_try_run
"$LINENO"; then :
17129 ac_sectionLDflags
=yes
17131 ac_sectionLDflags
=no
17133 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17134 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17137 if test "$ac_test_CFLAGS" = set; then
17138 CFLAGS
="$ac_save_CFLAGS"
17140 # this is the suspicious part
17143 if test "$ac_sectionLDflags" = "yes"; then
17144 SECTION_LDFLAGS
="-Wl,--gc-sections $SECTION_LDFLAGS"
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
17147 $as_echo "$ac_sectionLDflags" >&6; }
17150 # Set linker optimization flags.
17151 if test x
"$with_gnu_ld" = x
"yes"; then
17152 OPT_LDFLAGS
="-Wl,-O1 $OPT_LDFLAGS"
17160 # Check whether --enable-symvers was given.
17161 if test "${enable_symvers+set}" = set; then :
17162 enableval
=$enable_symvers;
17163 case "$enableval" in
17164 yes|no|gnu
*|sun
) ;;
17165 *) as_fn_error $?
"Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
17174 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
17175 # don't know enough about $LD to do tricks...
17178 # Turn a 'yes' into a suitable default.
17179 if test x
$enable_symvers = xyes
; then
17180 # FIXME The following test is too strict, in theory.
17181 if test $enable_shared = no ||
test "x$LD" = x
; then
17184 if test $with_gnu_ld = yes ; then
17187 case ${target_os} in
17188 # Sun symbol versioning exists since Solaris 2.5.
17189 solaris2.
[5-9]* | solaris2.1
[0-9]*)
17190 enable_symvers
=sun
;;
17192 enable_symvers
=no
;;
17198 # Check if 'sun' was requested on non-Solaris 2 platforms.
17199 if test x
$enable_symvers = xsun
; then
17200 case ${target_os} in
17205 # Unlikely to work.
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
17207 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
17209 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17211 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17217 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
17218 if test $enable_symvers != no
; then
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
17220 $as_echo_n "checking for shared libgcc... " >&6; }
17221 ac_save_CFLAGS
="$CFLAGS"
17223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17234 if ac_fn_c_try_link
"$LINENO"; then :
17235 libitm_shared_libgcc
=yes
17237 libitm_shared_libgcc
=no
17239 rm -f core conftest.err conftest.
$ac_objext \
17240 conftest
$ac_exeext conftest.
$ac_ext
17241 CFLAGS
="$ac_save_CFLAGS"
17242 if test $libitm_shared_libgcc = no
; then
17243 cat > conftest.c
<<EOF
17244 int main (void) { return 0; }
17246 libitm_libgcc_s_suffix
=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
17247 -shared -shared-libgcc -o conftest.so \
17248 conftest.c -v 2>&1 >/dev/null \
17249 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
17250 rm -f conftest.c conftest.so
17251 if test x
${libitm_libgcc_s_suffix+set} = xset
; then
17252 CFLAGS
=" -lgcc_s$libitm_libgcc_s_suffix"
17253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17254 /* end confdefs.h. */
17264 if ac_fn_c_try_link
"$LINENO"; then :
17265 libitm_shared_libgcc
=yes
17267 rm -f core conftest.err conftest.
$ac_objext \
17268 conftest
$ac_exeext conftest.
$ac_ext
17269 CFLAGS
="$ac_save_CFLAGS"
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17273 $as_echo "$libitm_shared_libgcc" >&6; }
17276 # For GNU ld, we need at least this version. The format is described in
17277 # LIBITM_CHECK_LINKER_FEATURES above.
17278 libitm_min_gnu_ld_version
=21400
17279 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17281 # Check to see if unspecified "yes" value can win, given results above.
17282 # Change "yes" into either "no" or a style name.
17283 if test $enable_symvers != no
&& test $libitm_shared_libgcc = yes; then
17284 if test $with_gnu_ld = yes; then
17285 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17287 elif test $libitm_ld_is_gold = yes ; then
17289 elif test $libitm_ld_is_mold = yes ; then
17292 # The right tools, the right setup, but too old. Fallbacks?
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17294 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17296 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17298 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17300 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17301 if test $libitm_gnu_ld_version -ge 21200 ; then
17302 # Globbing fix is present, proper block support is not.
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17304 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17309 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17313 elif test $enable_symvers = sun
; then
17314 : All interesting versions of Sun ld support sun style symbol versioning.
17316 # just fail for now
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17318 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17320 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17322 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17324 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17329 if test $enable_symvers != no
; then
17330 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
=
17331 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
='#'
17333 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
='#'
17334 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
=
17337 if test $enable_symvers = gnu
; then
17338 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
=
17339 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
='#'
17341 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
='#'
17342 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
=
17345 if test $enable_symvers = sun
; then
17346 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
=
17347 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
='#'
17349 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
='#'
17350 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
=
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17354 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17356 if test $enable_symvers = gnu
; then
17358 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17362 # See if we can emit unwind info in the sjlj stub.
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17364 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17365 if ${gcc_cv_as_cfi_pseudo_op+:} false
; then :
17366 $as_echo_n "(cached) " >&6
17369 gcc_cv_as_cfi_pseudo_op
=unknown
17370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 asm (".cfi_startproc\n\t.cfi_endproc");
17381 if ac_fn_c_try_compile
"$LINENO"; then :
17382 gcc_cv_as_cfi_pseudo_op
=yes
17384 gcc_cv_as_cfi_pseudo_op
=no
17386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17390 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17391 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes
; then
17393 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17398 # Determine the proper ABI type for size_t.
17400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17401 $as_echo_n "checking how size_t is mangled... " >&6; }
17402 if ${libitm_cv_size_t_mangling+:} false
; then :
17403 $as_echo_n "(cached) " >&6
17406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17412 extern __SIZE_TYPE__ x; extern unsigned long x;
17417 if ac_fn_c_try_compile
"$LINENO"; then :
17418 libitm_cv_size_t_mangling
=m
17421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17422 /* end confdefs.h. */
17427 extern __SIZE_TYPE__ x; extern unsigned int x;
17432 if ac_fn_c_try_compile
"$LINENO"; then :
17433 libitm_cv_size_t_mangling
=j
17436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17437 /* end confdefs.h. */
17442 extern __SIZE_TYPE__ x; extern unsigned long long x;
17447 if ac_fn_c_try_compile
"$LINENO"; then :
17448 libitm_cv_size_t_mangling
=y
17451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17452 /* end confdefs.h. */
17457 extern __SIZE_TYPE__ x; extern unsigned short x;
17462 if ac_fn_c_try_compile
"$LINENO"; then :
17463 libitm_cv_size_t_mangling
=t
17465 libitm_cv_size_t_mangling
=x
17467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17480 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17481 if test $libitm_cv_size_t_mangling = x
; then
17482 as_fn_error $?
"Unknown underlying type for size_t" "$LINENO" 5
17485 cat >>confdefs.h
<<_ACEOF
17486 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17491 # Get target configury.
17492 .
${srcdir}/configure.tgt
17493 if test -n "$UNSUPPORTED"; then
17494 as_fn_error $?
"Configuration ${target} is unsupported." "$LINENO" 5
17497 CFLAGS
="$save_CFLAGS $XCFLAGS"
17499 # Check for __sync_val_compare_and_swap, but only after the target has
17500 # had a chance to set XCFLAGS.
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17503 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17504 if ${libitm_cv_have_sync_builtins+:} false
; then :
17505 $as_echo_n "(cached) " >&6
17508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17514 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17519 if ac_fn_c_try_link
"$LINENO"; then :
17520 libitm_cv_have_sync_builtins
=yes
17522 libitm_cv_have_sync_builtins
=no
17524 rm -f core conftest.err conftest.
$ac_objext \
17525 conftest
$ac_exeext conftest.
$ac_ext
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17528 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17529 if test $libitm_cv_have_sync_builtins = yes; then
17531 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17536 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17537 if ${libitm_cv_have_64bit_sync_builtins+:} false
; then :
17538 $as_echo_n "(cached) " >&6
17541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17542 /* end confdefs.h. */
17543 #include <stdint.h>
17548 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17553 if ac_fn_c_try_link
"$LINENO"; then :
17554 libitm_cv_have_64bit_sync_builtins
=yes
17556 libitm_cv_have_64bit_sync_builtins
=no
17558 rm -f core conftest.err conftest.
$ac_objext \
17559 conftest
$ac_exeext conftest.
$ac_ext
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17562 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17563 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17565 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17569 case "${target_cpu}" in
17570 i
[34567]86 | x86_64
)
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17572 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17573 if ${libitm_cv_as_avx+:} false
; then :
17574 $as_echo_n "(cached) " >&6
17577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17578 /* end confdefs.h. */
17588 if ac_fn_c_try_compile
"$LINENO"; then :
17589 libitm_cv_as_avx
=yes
17591 libitm_cv_as_avx
=no
17593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17597 $as_echo "$libitm_cv_as_avx" >&6; }
17598 if test x
$libitm_cv_as_avx = xyes
; then
17600 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17606 case "${target_cpu}" in
17607 i
[34567]86 | x86_64
)
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17609 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17610 if ${libitm_cv_as_rtm+:} false
; then :
17611 $as_echo_n "(cached) " >&6
17614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17620 asm("1: xbegin 1b; xend");
17625 if ac_fn_c_try_compile
"$LINENO"; then :
17626 libitm_cv_as_rtm
=yes
17628 libitm_cv_as_rtm
=no
17630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17634 $as_echo "$libitm_cv_as_rtm" >&6; }
17635 if test x
$libitm_cv_as_rtm = xyes
; then
17637 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17643 case "${target_cpu}" in
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17646 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17647 if ${libitm_cv_as_htm+:} false
; then :
17648 $as_echo_n "(cached) " >&6
17651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17652 /* end confdefs.h. */
17657 asm("tbegin. 0; tend. 0");
17662 if ac_fn_c_try_compile
"$LINENO"; then :
17663 libitm_cv_as_htm
=yes
17665 libitm_cv_as_htm
=no
17667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17671 $as_echo "$libitm_cv_as_htm" >&6; }
17672 if test x
$libitm_cv_as_htm = xyes
; then
17674 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17680 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17681 if ${libitm_cv_as_htm+:} false
; then :
17682 $as_echo_n "(cached) " >&6
17685 save_CFLAGS
="$CFLAGS"
17686 CFLAGS
="$CFLAGS -march=zEC12"
17687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17693 asm("tbegin 0,0; tend");
17698 if ac_fn_c_try_compile
"$LINENO"; then :
17699 libitm_cv_as_htm
=yes
17701 libitm_cv_as_htm
=no
17703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17704 CFLAGS
="$save_CFLAGS"
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17707 $as_echo "$libitm_cv_as_htm" >&6; }
17708 if test x
$libitm_cv_as_htm = xyes
; then
17710 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17718 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17719 if ${ac_cv_have_elf_style_weakref+:} false
; then :
17720 $as_echo_n "(cached) " >&6
17723 weakref_m4_saved_CFLAGS
="$CFLAGS"
17725 *-apple-darwin*) CFLAGS
="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17728 if test "$cross_compiling" = yes; then :
17731 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref
=no
;;
17732 *) ac_cv_have_elf_style_weakref
=yes;;
17735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17738 extern void fNotToBeFound(void) __attribute__((weak));
17748 if ac_fn_c_try_run
"$LINENO"; then :
17749 ac_cv_have_elf_style_weakref
=yes
17751 ac_cv_have_elf_style_weakref
=no
17753 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17754 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17756 CFLAGS
="$weakref_m4_saved_CFLAGS"
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17759 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17760 if test x
"$ac_cv_have_elf_style_weakref" = xyes
; then
17762 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17766 # Cleanup and exit.
17767 CFLAGS
="$save_CFLAGS"
17768 cat >confcache
<<\_ACEOF
17769 # This file is a shell script that caches the results of configure
17770 # tests run on this system so they can be shared between configure
17771 # scripts and configure runs, see configure's option --config-cache.
17772 # It is not useful on other systems. If it contains results you don't
17773 # want to keep, you may remove or edit it.
17775 # config.status only pays attention to the cache file if you give it
17776 # the --recheck option to rerun configure.
17778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17780 # following values.
17784 # The following way of writing the cache mishandles newlines in values,
17785 # but we know of no workaround that is simple, portable, and efficient.
17786 # So, we kill variables containing newlines.
17787 # Ultrix sh set writes to stderr and can't be redirected directly,
17788 # and sets the high bit in the cache file unless we assign to the vars.
17790 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17791 eval ac_val
=\$
$ac_var
17795 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17796 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17799 _ | IFS | as_nl
) ;; #(
17800 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17801 *) { eval $ac_var=; unset $ac_var;} ;;
17807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17808 *${as_nl}ac_space
=\
*)
17809 # `set' does not quote correctly, so add quotes: double-quote
17810 # substitution turns \\\\ into \\, and sed turns \\ into \.
17813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17816 # `set' quotes correctly as required by POSIX, so do not add quotes.
17817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17830 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17831 if test -w "$cache_file"; then
17832 if test "x$cache_file" != "x/dev/null"; then
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17834 $as_echo "$as_me: updating cache $cache_file" >&6;}
17835 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17836 cat confcache
>"$cache_file"
17838 case $cache_file in #(
17840 mv -f confcache
"$cache_file"$$
&&
17841 mv -f "$cache_file"$$
"$cache_file" ;; #(
17843 mv -f confcache
"$cache_file" ;;
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17849 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17854 # Check whether --enable-werror was given.
17855 if test "${enable_werror+set}" = set; then :
17856 enableval
=$enable_werror;
17859 # Add -Wall -Werror if we are using GCC.
17860 if test "x$GCC" = "xyes"; then :
17861 XCFLAGS
="$XCFLAGS -Wall"
17863 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
17864 XCFLAGS
="$XCFLAGS -Werror"
17867 XCFLAGS
="$XCFLAGS $XPCFLAGS"
17869 # Add CET specific flags if CET is enabled
17870 # Check whether --enable-cet was given.
17871 if test "${enable_cet+set}" = set; then :
17872 enableval
=$enable_cet;
17873 case "$enableval" in
17875 *) as_fn_error $?
"Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
17884 $as_echo_n "checking for CET support... " >&6; }
17886 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
17888 i
[34567]86-*-linux* | x86_64-
*-linux*)
17889 case "$enable_cet" in
17891 # Check if target supports multi-byte NOPs
17892 # and if compiler and assembler support CET insn.
17893 cet_save_CFLAGS
="$CFLAGS"
17894 CFLAGS
="$CFLAGS -fcf-protection"
17895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17902 #if !defined(__SSE2__)
17903 #error target does not support multi-byte NOPs
17912 if ac_fn_c_try_compile
"$LINENO"; then :
17917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17918 CFLAGS
="$cet_save_CFLAGS"
17921 # Check if assembler supports CET.
17922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17933 if ac_fn_c_try_compile
"$LINENO"; then :
17936 as_fn_error $?
"assembler with CET support is required for --enable-cet" "$LINENO" 5
17938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17946 if test x
$enable_cet = xyes
; then
17947 CET_FLAGS
="-fcf-protection -mshstk"
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17949 $as_echo "yes" >&6; }
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17955 XCFLAGS
="$XCFLAGS $CET_FLAGS"
17961 if test ${multilib} = yes; then
17962 multilib_arg
="--enable-multilib"
17967 # Set up the set of libraries that we need to link against for libitm.
17968 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17969 # which will force linkage against -lpthread (or equivalent for the system).
17970 # That's not 100% ideal, but about the best we can do easily.
17971 if test $enable_shared = yes; then
17972 link_itm
="-litm %{static: $LIBS}"
17974 link_itm
="-litm $LIBS"
17978 if test "$ARCH" = arm
; then
17986 if test "$ARCH" = x86
; then
17994 if test "$libitm_cv_as_avx" = yes; then
17996 ARCH_X86_AVX_FALSE
='#'
17998 ARCH_X86_AVX_TRUE
='#'
17999 ARCH_X86_AVX_FALSE
=
18002 if test $enable_linux_futex = yes; then
18004 ARCH_FUTEX_FALSE
='#'
18006 ARCH_FUTEX_TRUE
='#'
18011 # Determine what GCC version number to use in filesystem paths.
18013 get_gcc_base_ver
="cat"
18015 # Check whether --with-gcc-major-version-only was given.
18016 if test "${with_gcc_major_version_only+set}" = set; then :
18017 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
18018 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
18026 ac_config_files
="$ac_config_files Makefile testsuite/Makefile libitm.spec"
18028 cat >confcache
<<\_ACEOF
18029 # This file is a shell script that caches the results of configure
18030 # tests run on this system so they can be shared between configure
18031 # scripts and configure runs, see configure's option --config-cache.
18032 # It is not useful on other systems. If it contains results you don't
18033 # want to keep, you may remove or edit it.
18035 # config.status only pays attention to the cache file if you give it
18036 # the --recheck option to rerun configure.
18038 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18039 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18040 # following values.
18044 # The following way of writing the cache mishandles newlines in values,
18045 # but we know of no workaround that is simple, portable, and efficient.
18046 # So, we kill variables containing newlines.
18047 # Ultrix sh set writes to stderr and can't be redirected directly,
18048 # and sets the high bit in the cache file unless we assign to the vars.
18050 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18051 eval ac_val
=\$
$ac_var
18055 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18056 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18059 _ | IFS | as_nl
) ;; #(
18060 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
18061 *) { eval $ac_var=; unset $ac_var;} ;;
18067 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18068 *${as_nl}ac_space
=\
*)
18069 # `set' does not quote correctly, so add quotes: double-quote
18070 # substitution turns \\\\ into \\, and sed turns \\ into \.
18073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18076 # `set' quotes correctly as required by POSIX, so do not add quotes.
18077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18086 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18088 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18090 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18091 if test -w "$cache_file"; then
18092 if test "x$cache_file" != "x/dev/null"; then
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18094 $as_echo "$as_me: updating cache $cache_file" >&6;}
18095 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
18096 cat confcache
>"$cache_file"
18098 case $cache_file in #(
18100 mv -f confcache
"$cache_file"$$
&&
18101 mv -f "$cache_file"$$
"$cache_file" ;; #(
18103 mv -f confcache
"$cache_file" ;;
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18109 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18114 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18115 # Let make expand exec_prefix.
18116 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18118 DEFS
=-DHAVE_CONFIG_H
18123 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18124 # 1. Remove the extension, and $U if already installed.
18125 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18126 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18128 # will be set to the directory where LIBOBJS objects are built.
18129 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18130 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
18132 LIBOBJS
=$ac_libobjs
18134 LTLIBOBJS
=$ac_ltlibobjs
18137 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
18138 as_fn_error $?
"conditional \"GENINSRC\" was never defined.
18139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18142 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18143 if test -n "$am_sleep_pid"; then
18144 # Hide warnings about reused PIDs.
18145 wait $am_sleep_pid 2>/dev
/null
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18148 $as_echo "done" >&6; }
18149 if test -n "$EXEEXT"; then
18151 am__EXEEXT_FALSE
='#'
18153 am__EXEEXT_TRUE
='#'
18157 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18158 as_fn_error $?
"conditional \"AMDEP\" was never defined.
18159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18161 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18162 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
18163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18165 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
18166 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
18167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18169 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
18170 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
18171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18173 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
18174 as_fn_error $?
"conditional \"BUILD_INFO\" was never defined.
18175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18177 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18178 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
18179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18182 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
18183 as_fn_error $?
"conditional \"HAVE_HWCAP\" was never defined.
18184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18186 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
18187 as_fn_error $?
"conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
18188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18190 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
18191 as_fn_error $?
"conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
18192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
18195 as_fn_error $?
"conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
18196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
18199 as_fn_error $?
"conditional \"ARCH_ARM\" was never defined.
18200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
18203 as_fn_error $?
"conditional \"ARCH_X86\" was never defined.
18204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
18207 as_fn_error $?
"conditional \"ARCH_X86_AVX\" was never defined.
18208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18210 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
18211 as_fn_error $?
"conditional \"ARCH_FUTEX\" was never defined.
18212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18215 : "${CONFIG_STATUS=./config.status}"
18217 ac_clean_files_save
=$ac_clean_files
18218 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18220 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18222 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18224 # Generated by $as_me.
18225 # Run this file to recreate the current configuration.
18226 # Compiler output produced by configure, useful for debugging
18227 # configure, is in config.log if it exists.
18230 ac_cs_recheck=false
18233 SHELL=\${CONFIG_SHELL-$SHELL}
18236 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18237 ## -------------------- ##
18238 ## M4sh Initialization. ##
18239 ## -------------------- ##
18241 # Be more Bourne compatible
18242 DUALCASE
=1; export DUALCASE
# for MKS sh
18243 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18247 # is contrary to our usage. Disable this feature.
18248 alias -g '${1+"$@"}'='"$@"'
18249 setopt NO_GLOB_SUBST
18251 case `(set -o) 2>/dev/null` in #(
18263 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18264 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18267 # Prefer a ksh shell builtin over an external printf program on Solaris,
18268 # but without wasting forks for bash or zsh.
18269 if test -z "$BASH_VERSION$ZSH_VERSION" \
18270 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18271 as_echo='print
-r --'
18272 as_echo_n='print
-rn --'
18273 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18274 as_echo='printf %s
\n'
18275 as_echo_n='printf %s
'
18277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18278 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18279 as_echo_n='/usr
/ucb
/echo -n'
18281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18282 as_echo_n_body='eval
18286 expr "X$arg" : "X\\(.*\\)$as_nl";
18287 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18289 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18291 export as_echo_n_body
18292 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18294 export as_echo_body
18295 as_echo='sh
-c $as_echo_body as_echo
'
18298 # The user is always right.
18299 if test "${PATH_SEPARATOR+set}" != set; then
18301 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18302 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18309 # We need space, tab and new line, in precisely that order. Quoting is
18310 # there to prevent editors from complaining about space-tab.
18311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18312 # splitting by setting IFS to empty value.)
18315 # Find who we are. Look in the path if we contain no directory separator.
18318 *[\\/]* ) as_myself=$0 ;;
18319 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18320 for as_dir in $PATH
18323 test -z "$as_dir" && as_dir=.
18324 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18330 # We did not find ourselves, most probably we were run as `sh COMMAND'
18331 # in which case we are not to be found in the path.
18332 if test "x$as_myself" = x
; then
18335 if test ! -f "$as_myself"; then
18336 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18340 # Unset variables that we do not need and which cause bugs (e.g. in
18341 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18342 # suppresses any "Segmentation fault" message there. '((' could
18343 # trigger a bug in pdksh 5.2.14.
18344 for as_var
in BASH_ENV ENV MAIL MAILPATH
18345 do eval test x\
${$as_var+set} = xset \
18346 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18359 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18362 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18363 # ----------------------------------------
18364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18366 # script with STATUS, using 1 if that was 0.
18369 as_status
=$1; test $as_status -eq 0 && as_status
=1
18371 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18374 $as_echo "$as_me: error: $2" >&2
18375 as_fn_exit
$as_status
18379 # as_fn_set_status STATUS
18380 # -----------------------
18381 # Set $? to STATUS, without forking.
18382 as_fn_set_status
()
18385 } # as_fn_set_status
18387 # as_fn_exit STATUS
18388 # -----------------
18389 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18393 as_fn_set_status
$1
18399 # Portably unset VAR.
18402 { eval $1=; unset $1;}
18404 as_unset
=as_fn_unset
18405 # as_fn_append VAR VALUE
18406 # ----------------------
18407 # Append the text in VALUE to the end of the definition contained in VAR. Take
18408 # advantage of any shell optimizations that allow amortized linear growth over
18409 # repeated appends, instead of the typical quadratic growth present in naive
18411 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18412 eval 'as_fn_append ()
18423 # as_fn_arith ARG...
18424 # ------------------
18425 # Perform arithmetic evaluation on the ARGs, and store the result in the
18426 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18427 # must be portable across $(()) and expr.
18428 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18429 eval 'as_fn_arith ()
18436 as_val
=`expr "$@" || test $? -eq 1`
18441 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18442 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18448 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18449 as_basename
=basename
18454 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18460 as_me
=`$as_basename -- "$0" ||
18461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18462 X"$0" : 'X\(//\)$' \| \
18463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18465 sed '/^.*\/\([^/][^/]*\)\/*$/{
18479 # Avoid depending upon Character Ranges.
18480 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18481 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18482 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18483 as_cr_digits
='0123456789'
18484 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18486 ECHO_C
= ECHO_N
= ECHO_T
=
18487 case `echo -n x` in #(((((
18489 case `echo 'xy\c'` in
18490 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18492 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18499 rm -f conf$$ conf$$.exe conf$$.
file
18500 if test -d conf$$.dir
; then
18501 rm -f conf$$.dir
/conf$$.
file
18504 mkdir conf$$.dir
2>/dev
/null
18506 if (echo >conf$$.
file) 2>/dev
/null
; then
18507 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18509 # ... but there are two gotchas:
18510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18512 # In both cases, we have to default to `cp -pR'.
18513 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18515 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18523 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18524 rmdir conf$$.dir
2>/dev
/null
18529 # Create "$as_dir" as a directory, including parents if necessary.
18534 -*) as_dir
=.
/$as_dir;;
18536 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18540 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18541 *) as_qdir
=$as_dir;;
18543 as_dirs
="'$as_qdir' $as_dirs"
18544 as_dir
=`$as_dirname -- "$as_dir" ||
18545 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18546 X"$as_dir" : 'X\(//\)[^/]' \| \
18547 X"$as_dir" : 'X\(//\)$' \| \
18548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18549 $as_echo X"$as_dir" |
18550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18554 /^X\(\/\/\)[^/].*/{
18567 test -d "$as_dir" && break
18569 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18570 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18574 if mkdir
-p .
2>/dev
/null
; then
18575 as_mkdir_p
='mkdir -p "$as_dir"'
18577 test -d .
/-p && rmdir .
/-p
18582 # as_fn_executable_p FILE
18583 # -----------------------
18584 # Test if FILE is an executable regular file.
18585 as_fn_executable_p
()
18587 test -f "$1" && test -x "$1"
18588 } # as_fn_executable_p
18589 as_test_x
='test -x'
18590 as_executable_p
=as_fn_executable_p
18592 # Sed expression to map a string onto a valid CPP name.
18593 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18595 # Sed expression to map a string onto a valid variable name.
18596 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18600 ## ----------------------------------- ##
18601 ## Main body of $CONFIG_STATUS script. ##
18602 ## ----------------------------------- ##
18604 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18607 # Save the log message, to keep $0 and so on meaningful, and to
18608 # report actual input values of CONFIG_FILES etc. instead of their
18609 # values after options handling.
18611 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18612 generated by GNU Autoconf 2.69. Invocation command line was
18614 CONFIG_FILES = $CONFIG_FILES
18615 CONFIG_HEADERS = $CONFIG_HEADERS
18616 CONFIG_LINKS = $CONFIG_LINKS
18617 CONFIG_COMMANDS = $CONFIG_COMMANDS
18620 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18625 case $ac_config_files in *"
18626 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18629 case $ac_config_headers in *"
18630 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18635 # Files that config.status was made for.
18636 config_files="$ac_config_files"
18637 config_headers="$ac_config_headers"
18638 config_commands="$ac_config_commands"
18642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18644 \`$as_me' instantiates files and other configuration actions
18645 from templates according to the current configuration. Unless the files
18646 and actions are specified as TAGs, all are instantiated by default.
18648 Usage: $0 [OPTION]... [TAG]...
18650 -h, --help print this help, then exit
18651 -V, --version print version number and configuration settings, then exit
18652 --config print configuration, then exit
18653 -q, --quiet, --silent
18654 do not print progress messages
18655 -d, --debug don't remove temporary files
18656 --recheck update $as_me by reconfiguring in the same conditions
18657 --file=FILE[:TEMPLATE]
18658 instantiate the configuration file FILE
18659 --header=FILE[:TEMPLATE]
18660 instantiate the configuration header FILE
18662 Configuration files:
18665 Configuration headers:
18668 Configuration commands:
18671 Report bugs to the package provider.
18672 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18673 General help using GNU software: <http://www.gnu.org/gethelp/>."
18676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18677 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18679 GNU TM Runtime Library config.status 1.0
18680 configured by $0, generated by GNU Autoconf 2.69,
18681 with options \\"\$ac_cs_config\\"
18683 Copyright (C) 2012 Free Software Foundation, Inc.
18684 This config.status script is free software; the Free Software Foundation
18685 gives unlimited permission to copy, distribute and modify it."
18692 test -n "\$AWK" || AWK=awk
18695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18696 # The default lists apply if the user does not specify any file.
18702 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18703 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18707 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18719 # Handling of the options.
18720 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18722 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18723 $as_echo "$ac_cs_version"; exit ;;
18724 --config |
--confi |
--conf |
--con |
--co |
--c )
18725 $as_echo "$ac_cs_config"; exit ;;
18726 --debug |
--debu |
--deb |
--de |
--d |
-d )
18728 --file |
--fil |
--fi |
--f )
18731 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18732 '') as_fn_error $?
"missing file argument" ;;
18734 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18735 ac_need_defaults
=false
;;
18736 --header |
--heade |
--head |
--hea )
18739 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18741 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18742 ac_need_defaults
=false
;;
18744 # Conflict between --help and --header
18745 as_fn_error $?
"ambiguous option: \`$1'
18746 Try \`$0 --help' for more information.";;
18747 --help |
--hel |
-h )
18748 $as_echo "$ac_cs_usage"; exit ;;
18749 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18750 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18753 # This is an error.
18754 -*) as_fn_error $?
"unrecognized option: \`$1'
18755 Try \`$0 --help' for more information." ;;
18757 *) as_fn_append ac_config_targets
" $1"
18758 ac_need_defaults
=false
;;
18764 ac_configure_extra_args
=
18766 if $ac_cs_silent; then
18768 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18773 if \$ac_cs_recheck; then
18774 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18776 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18777 CONFIG_SHELL='$SHELL'
18778 export CONFIG_SHELL
18783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18788 ## Running $as_me. ##
18794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18802 with_multisubdir="$with_multisubdir"
18803 with_multisrctop="$with_multisrctop"
18804 with_target_subdir="$with_target_subdir"
18805 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18806 multi_basedir="$multi_basedir"
18807 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18810 GFORTRAN="$GFORTRAN"
18812 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18815 # The HP-UX ksh and POSIX shell print the target directory to stdout
18816 # if CDPATH is set.
18817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18819 sed_quote_subst='$sed_quote_subst'
18820 double_quote_subst='$double_quote_subst'
18821 delay_variable_subst='$delay_variable_subst'
18822 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18823 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18824 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18825 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18826 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18827 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18828 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18829 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18830 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18831 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18832 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18833 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18834 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18835 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18836 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18837 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18838 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18839 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18840 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18841 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18842 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18843 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18844 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18845 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18846 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18847 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18848 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18849 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18850 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18851 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18852 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18853 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18854 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18855 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18856 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18870 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18871 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18872 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18873 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18874 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18875 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18876 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18877 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18878 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18879 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18880 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18881 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18882 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18883 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18884 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18885 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18886 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18887 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18888 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18889 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18890 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18891 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18892 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18893 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18894 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18895 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18896 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18897 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18898 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18899 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18900 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18901 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18902 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18903 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18904 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18905 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18906 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18907 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18908 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18909 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18910 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18911 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18912 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18913 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18914 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18915 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18916 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18917 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18918 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18919 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18920 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18921 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18922 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18923 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18924 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18925 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18926 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18927 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18928 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18929 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18930 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18931 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18932 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18933 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18934 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18935 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18936 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18937 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18938 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18939 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18940 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18941 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18942 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18943 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18944 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18945 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18946 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18947 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18948 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18949 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18950 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18951 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18952 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18953 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18954 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18955 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18956 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18957 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18958 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18959 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18960 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18961 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18962 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18963 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18964 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18965 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18966 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18967 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18968 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18969 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18970 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18971 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18972 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18973 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18974 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18975 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18976 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18977 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18978 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18979 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18980 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18981 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18982 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18983 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18984 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18985 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18986 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18987 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18988 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18989 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18990 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18991 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18992 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18993 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18994 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18995 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18996 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18999 LTCFLAGS='$LTCFLAGS'
19000 compiler='$compiler_DEFAULT'
19002 # A function that is used when there is no print builtin or printf.
19003 func_fallback_echo ()
19005 eval 'cat <<_LTECHO_EOF
19010 # Quote evaled strings.
19024 deplibs_check_method \
19033 lt_cv_sys_global_symbol_pipe \
19034 lt_cv_sys_global_symbol_to_cdecl \
19035 lt_cv_sys_global_symbol_to_c_name_address \
19036 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19037 lt_prog_compiler_no_builtin_flag \
19038 lt_prog_compiler_wl \
19039 lt_prog_compiler_pic \
19040 lt_prog_compiler_static \
19041 lt_cv_prog_compiler_c_o \
19049 export_dynamic_flag_spec \
19050 whole_archive_flag_spec \
19051 compiler_needs_object \
19053 allow_undefined_flag \
19054 no_undefined_flag \
19055 hardcode_libdir_flag_spec \
19056 hardcode_libdir_flag_spec_ld \
19057 hardcode_libdir_separator \
19062 variables_saved_for_relink \
19064 library_names_spec \
19066 install_override_mode \
19070 compiler_lib_search_dirs \
19075 compiler_lib_search_path \
19079 lt_prog_compiler_no_builtin_flag_CXX \
19080 lt_prog_compiler_wl_CXX \
19081 lt_prog_compiler_pic_CXX \
19082 lt_prog_compiler_static_CXX \
19083 lt_cv_prog_compiler_c_o_CXX \
19084 export_dynamic_flag_spec_CXX \
19085 whole_archive_flag_spec_CXX \
19086 compiler_needs_object_CXX \
19088 allow_undefined_flag_CXX \
19089 no_undefined_flag_CXX \
19090 hardcode_libdir_flag_spec_CXX \
19091 hardcode_libdir_flag_spec_ld_CXX \
19092 hardcode_libdir_separator_CXX \
19093 fix_srcfile_path_CXX \
19094 exclude_expsyms_CXX \
19095 include_expsyms_CXX \
19096 file_list_spec_CXX \
19097 compiler_lib_search_dirs_CXX \
19098 predep_objects_CXX \
19099 postdep_objects_CXX \
19102 compiler_lib_search_path_CXX; do
19103 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19104 *[\\\\\\\`\\"\\\$]*)
19105 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19108 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19113 # Double-quote double-evaled strings.
19114 for var in reload_cmds \
19115 old_postinstall_cmds \
19116 old_postuninstall_cmds \
19118 extract_expsyms_cmds \
19119 old_archive_from_new_cmds \
19120 old_archive_from_expsyms_cmds \
19122 archive_expsym_cmds \
19124 module_expsym_cmds \
19125 export_symbols_cmds \
19128 postuninstall_cmds \
19130 sys_lib_search_path_spec \
19131 sys_lib_dlsearch_path_spec \
19133 old_archive_cmds_CXX \
19134 old_archive_from_new_cmds_CXX \
19135 old_archive_from_expsyms_cmds_CXX \
19137 archive_expsym_cmds_CXX \
19139 module_expsym_cmds_CXX \
19140 export_symbols_cmds_CXX \
19141 prelink_cmds_CXX; do
19142 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19143 *[\\\\\\\`\\"\\\$]*)
19144 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19147 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19152 ac_aux_dir='$ac_aux_dir'
19153 xsi_shell='$xsi_shell'
19154 lt_shell_append='$lt_shell_append'
19156 # See if we are running on zsh, and set the options which allow our
19157 # commands through without removal of \ escapes INIT.
19158 if test -n "\${ZSH_VERSION+set}" ; then
19159 setopt NO_GLOB_SUBST
19165 TIMESTAMP='$TIMESTAMP'
19176 acx_cv_header_stdint="$acx_cv_header_stdint"
19177 acx_cv_type_int8_t="$acx_cv_type_int8_t"
19178 acx_cv_type_int16_t="$acx_cv_type_int16_t"
19179 acx_cv_type_int32_t="$acx_cv_type_int32_t"
19180 acx_cv_type_int64_t="$acx_cv_type_int64_t"
19181 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
19182 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
19183 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
19184 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
19185 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
19186 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
19187 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
19188 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
19189 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
19194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19196 # Handling of arguments.
19197 for ac_config_target
in $ac_config_targets
19199 case $ac_config_target in
19200 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
19201 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
19202 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
19203 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
19204 "gstdint.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS gstdint.h" ;;
19205 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19206 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
19207 "libitm.spec") CONFIG_FILES
="$CONFIG_FILES libitm.spec" ;;
19209 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19214 # If the user did not use the arguments to specify the items to instantiate,
19215 # then the envvar interface is used. Set only those that are not.
19216 # We use the long form for the default assignment because of an extremely
19217 # bizarre bug on SunOS 4.1.3.
19218 if $ac_need_defaults; then
19219 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19220 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19221 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19224 # Have a temporary directory for convenience. Make it in the build tree
19225 # simply because there is no reason against having it here, and in addition,
19226 # creating and moving files from /tmp can sometimes cause problems.
19227 # Hook for its removal unless debugging.
19228 # Note that there is a small window in which the directory will not be cleaned:
19229 # after its creation but before its name has been assigned to `$tmp'.
19233 trap 'exit_status=$?
19234 : "${ac_tmp:=$tmp}"
19235 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19237 trap 'as_fn_exit 1' 1 2 13 15
19239 # Create a (secure) tmp directory for tmp files.
19242 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19246 tmp
=.
/conf$$
-$RANDOM
19247 (umask 077 && mkdir
"$tmp")
19248 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19251 # Set up the scripts for CONFIG_FILES section.
19252 # No need to generate them if there are no CONFIG_FILES.
19253 # This happens for instance with `./config.status config.h'.
19254 if test -n "$CONFIG_FILES"; then
19257 ac_cr
=`echo X | tr X '\015'`
19258 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19259 # But we know of no other shell where ac_cr would be empty at this
19260 # point, so we can use a bashism as a fallback.
19261 if test "x$ac_cr" = x
; then
19262 eval ac_cr
=\$
\'\\r
\'
19264 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19265 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19268 ac_cs_awk_cr
=$ac_cr
19271 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19276 echo "cat >conf$$subs.awk <<_ACEOF" &&
19277 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19279 } >conf$$subs.sh ||
19280 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19281 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19283 for ac_last_try in false false false false false :; do
19284 . ./conf$$subs.sh ||
19285 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19287 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19288 if test $ac_delim_n = $ac_delim_num; then
19290 elif $ac_last_try; then
19291 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19293 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19296 rm -f conf$$subs.sh
19298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19299 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19303 s/^/S["/; s
/!.
*/"]=/
19313 s/\(.\{148\}\)..*/\1/
19315 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19320 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19327 s/\(.\{148\}\)..*/\1/
19329 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19333 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19338 ' <conf$$subs.awk | sed '
19343 ' >>$CONFIG_STATUS || ac_write_fail=1
19344 rm -f conf$$subs.awk
19345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19347 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19348 for (key in S) S_is_set[key] = 1
19354 nfields = split(line, field, "@
")
19356 len = length(field[1])
19357 for (i = 2; i < nfields; i++) {
19359 keylen = length(key)
19360 if (S_is_set[key]) {
19362 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19363 len += length(value) + length(field[++i])
19374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19375 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19376 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19379 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19380 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19383 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19384 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19385 # trailing colons and then remove the whole line if VPATH becomes empty
19386 # (actually we leave an empty line to preserve line numbers).
19387 if test "x
$srcdir" = x.; then
19388 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19407 fi # test -n "$CONFIG_FILES"
19409 # Set up the scripts for CONFIG_HEADERS section.
19410 # No need to generate them if there are no CONFIG_HEADERS.
19411 # This happens for instance with `./config.status Makefile'.
19412 if test -n "$CONFIG_HEADERS"; then
19413 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
19417 # Transform confdefs.h into an awk script `defines.awk', embedded as
19418 # here-document in config.status, that substitutes the proper values into
19419 # config.h.in to produce config.h.
19421 # Create a delimiter string that does not exist in confdefs.h, to ease
19422 # handling of long lines.
19424 for ac_last_try in false false :; do
19425 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
19426 if test -z "$ac_tt"; then
19428 elif $ac_last_try; then
19429 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
19431 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19435 # For the awk script, D is an array of macro values keyed by name,
19436 # likewise P contains macro parameters if any. Preserve backslash
19437 # newline sequences.
19439 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19441 s/.\{148\}/&'"$ac_delim"'/g
19444 s/^[ ]*#[ ]*define[ ][ ]*/ /
19451 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19453 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19457 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19458 D["\
1"]=" \
3\\\\\\n
"\\/p
19460 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19465 s/.\{148\}/&'"$ac_delim"'/g
19470 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19473 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19475 ' <confdefs.h | sed '
19476 s/'"$ac_delim"'/"\\\
19477 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19480 for (key in D) D_is_set[key] = 1
19483 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19485 split(line, arg, " ")
19486 if (arg[1] == "#") {
19490 defundef
= substr
(arg
[1], 2)
19493 split(mac1
, mac2
, "(") #)
19495 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19496 if (D_is_set
[macro
]) {
19497 # Preserve the white space surrounding the "#".
19498 print prefix
"define", macro P
[macro
] D
[macro
]
19501 # Replace #undef with comments. This is necessary, for example,
19502 # in the case of _POSIX_SOURCE, which is predefined and required
19503 # on some systems where configure will not decide to define it.
19504 if (defundef
== "undef") {
19505 print
"/*", prefix defundef
, macro
, "*/"
19513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19514 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
19515 fi # test -n "$CONFIG_HEADERS"
19518 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19523 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19525 case $ac_mode$ac_tag in
19527 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
19528 :[FH
]-) ac_tag
=-:-;;
19529 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19546 -) ac_f
="$ac_tmp/stdin";;
19547 *) # Look for the file first in the build tree, then in the source tree
19548 # (if the path is not absolute). The absolute path cannot be DOS-style,
19549 # because $ac_f cannot contain `:'.
19553 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19555 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19557 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19558 as_fn_append ac_file_inputs
" '$ac_f'"
19561 # Let's still pretend it is `configure' which instantiates (i.e., don't
19562 # use $as_me), people would be surprised to read:
19563 # /* config.h. Generated by config.status. */
19564 configure_input
='Generated from '`
19565 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19567 if test x
"$ac_file" != x-
; then
19568 configure_input
="$ac_file. $configure_input"
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19570 $as_echo "$as_me: creating $ac_file" >&6;}
19572 # Neutralize special characters interpreted by sed in replacement strings.
19573 case $configure_input in #(
19574 *\
&* |
*\|
* |
*\\* )
19575 ac_sed_conf_input
=`$as_echo "$configure_input" |
19576 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19577 *) ac_sed_conf_input
=$configure_input;;
19581 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
19582 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
19587 ac_dir
=`$as_dirname -- "$ac_file" ||
19588 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19589 X"$ac_file" : 'X\(//\)[^/]' \| \
19590 X"$ac_file" : 'X\(//\)$' \| \
19591 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19592 $as_echo X"$ac_file" |
19593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19597 /^X\(\/\/\)[^/].*/{
19610 as_dir
="$ac_dir"; as_fn_mkdir_p
19614 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19616 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19617 # A ".." for each directory in $ac_dir_suffix.
19618 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19619 case $ac_top_builddir_sub in
19620 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19621 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19624 ac_abs_top_builddir
=$ac_pwd
19625 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19626 # for backward compatibility:
19627 ac_top_builddir
=$ac_top_build_prefix
19630 .
) # We are building in place.
19632 ac_top_srcdir
=$ac_top_builddir_sub
19633 ac_abs_top_srcdir
=$ac_pwd ;;
19634 [\\/]* | ?
:[\\/]* ) # Absolute name.
19635 ac_srcdir
=$srcdir$ac_dir_suffix;
19636 ac_top_srcdir
=$srcdir
19637 ac_abs_top_srcdir
=$srcdir ;;
19638 *) # Relative name.
19639 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19640 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19641 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19643 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19653 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19654 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19656 ac_MKDIR_P
=$MKDIR_P
19658 [\\/$
]* | ?
:[\\/]* ) ;;
19659 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
19663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19664 # If the template does not know about datarootdir, expand it.
19665 # FIXME: This hack should be removed a few years after 2.60.
19666 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19678 *datarootdir
*) ac_datarootdir_seen
=yes;;
19679 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19684 ac_datarootdir_hack='
19685 s&@datadir@&$datadir&g
19686 s&@docdir@&$docdir&g
19687 s&@infodir@&$infodir&g
19688 s&@localedir@&$localedir&g
19689 s&@mandir@&$mandir&g
19690 s&\\\${datarootdir}&$datarootdir&g' ;;
19694 # Neutralize VPATH when `$srcdir' = `.'.
19695 # Shell code in configure.ac might set extrasub.
19696 # FIXME: do we really want to maintain this feature?
19697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19698 ac_sed_extra="$ac_vpsub
19701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19703 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19704 s|@configure_input@|
$ac_sed_conf_input|
;t t
19705 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19706 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19707 s
&@srcdir@
&$ac_srcdir&;t t
19708 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19709 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19710 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19711 s
&@builddir@
&$ac_builddir&;t t
19712 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19713 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19714 s
&@INSTALL@
&$ac_INSTALL&;t t
19715 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
19716 $ac_datarootdir_hack
19718 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
19719 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19721 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19722 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19723 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19724 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19726 which seems to be undefined. Please make sure it is defined" >&5
19727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19728 which seems to be undefined. Please make sure it is defined" >&2;}
19730 rm -f "$ac_tmp/stdin"
19732 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19733 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19741 if test x"$ac_file" != x-; then
19743 $as_echo "/* $configure_input */" \
19744 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19745 } >"$ac_tmp/config.h" \
19746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19747 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19752 mv "$ac_tmp/config.h" "$ac_file" \
19753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19756 $as_echo "/* $configure_input */" \
19757 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19758 || as_fn_error $? "could not create -" "$LINENO" 5
19760 # Compute "$ac_file"'s index
in $config_headers.
19763 for _am_header
in $config_headers :; do
19764 case $_am_header in
19765 $_am_arg |
$_am_arg:* )
19768 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
19771 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19772 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19773 X"$_am_arg" : 'X\(//\)[^/]' \| \
19774 X"$_am_arg" : 'X\(//\)$' \| \
19775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19776 $as_echo X"$_am_arg" |
19777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19781 /^X\(\/\/\)[^/].*/{
19793 s/.*/./; q'`/stamp-h
$_am_stamp_count
19796 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19797 $as_echo "$as_me: executing $ac_file commands" >&6;}
19802 case $ac_file$ac_mode in
19804 # Only add multilib support code if we just rebuilt the top-level
19806 case " $CONFIG_FILES " in
19808 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
19811 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
19812 # Older Autoconf quotes --file arguments for eval, but not when files
19813 # are listed without --file. Let's play safe and only enable the eval
19814 # if we detect the quoting.
19815 case $CONFIG_FILES in
19816 *\'*) eval set x
"$CONFIG_FILES" ;;
19817 *) set x
$CONFIG_FILES ;;
19822 # Strip MF so we end up with the name of the file.
19823 mf
=`echo "$mf" | sed -e 's/:.*$//'`
19824 # Check whether this is an Automake generated Makefile or not.
19825 # We used to match only the files named 'Makefile.in', but
19826 # some people rename them; so instead we look at the file content.
19827 # Grep'ing the first line is not enough: some people post-process
19828 # each Makefile.in and add a new line on top of each file to say so.
19829 # Grep'ing the whole file is not good either: AIX grep has a line
19830 # limit of 2048, but all sed's we know have understand at least 4000.
19831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
19832 dirpart
=`$as_dirname -- "$mf" ||
19833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19834 X"$mf" : 'X\(//\)[^/]' \| \
19835 X"$mf" : 'X\(//\)$' \| \
19836 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19842 /^X\(\/\/\)[^/].*/{
19858 # Extract the definition of DEPDIR, am__include, and am__quote
19859 # from the Makefile without running 'make'.
19860 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
19861 test -z "$DEPDIR" && continue
19862 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
19863 test -z "$am__include" && continue
19864 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
19865 # Find all dependency output files, they are included files with
19866 # $(DEPDIR) in their names. We invoke sed twice because it is the
19867 # simplest approach to changing $(DEPDIR) to its actual value in the
19869 for file in `sed -n "
19870 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19871 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19872 # Make sure the directory exists.
19873 test -f "$dirpart/$file" && continue
19874 fdir
=`$as_dirname -- "$file" ||
19875 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19876 X"$file" : 'X\(//\)[^/]' \| \
19877 X"$file" : 'X\(//\)$' \| \
19878 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19879 $as_echo X"$file" |
19880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19884 /^X\(\/\/\)[^/].*/{
19897 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
19898 # echo "creating $dirpart/$file"
19899 echo '# dummy' > "$dirpart/$file"
19906 # See if we are running on zsh, and set the options which allow our
19907 # commands through without removal of \ escapes.
19908 if test -n "${ZSH_VERSION+set}" ; then
19909 setopt NO_GLOB_SUBST
19912 cfgfile
="${ofile}T"
19913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19916 cat <<_LT_EOF >> "$cfgfile"
19919 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19920 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19922 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19924 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19925 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19926 # Written by Gordon Matzigkeit, 1996
19928 # This file is part of GNU Libtool.
19930 # GNU Libtool is free software; you can redistribute it and/or
19931 # modify it under the terms of the GNU General Public License as
19932 # published by the Free Software Foundation; either version 2 of
19933 # the License, or (at your option) any later version.
19935 # As a special exception to the GNU General Public License,
19936 # if you distribute this file as part of a program or library that
19937 # is built using GNU Libtool, you may include this file under the
19938 # same distribution terms that you use for the rest of that program.
19940 # GNU Libtool is distributed in the hope that it will be useful,
19941 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19942 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19943 # GNU General Public License for more details.
19945 # You should have received a copy of the GNU General Public License
19946 # along with GNU Libtool; see the file COPYING. If not, a copy
19947 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19948 # obtained by writing to the Free Software Foundation, Inc.,
19949 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19952 # The names of the tagged configurations supported by this script.
19953 available_tags="CXX "
19955 # ### BEGIN LIBTOOL CONFIG
19957 # Which release of libtool.m4 was used?
19958 macro_version=$macro_version
19959 macro_revision=$macro_revision
19961 # Whether or not to build shared libraries.
19962 build_libtool_libs=$enable_shared
19964 # Whether or not to build static libraries.
19965 build_old_libs=$enable_static
19967 # What type of objects to build.
19970 # Whether or not to optimize for fast installation.
19971 fast_install=$enable_fast_install
19973 # Shell to use when invoking shell scripts.
19976 # An echo program that protects backslashes.
19980 host_alias=$host_alias
19984 # The build system.
19985 build_alias=$build_alias
19989 # A sed program that does not truncate output.
19992 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19993 Xsed="\$SED -e 1s/^X//"
19995 # A grep program that handles long lines.
20001 # A literal string matcher.
20004 # A BSD- or MS-compatible name lister.
20007 # Whether we need soft or hard links.
20010 # What is the maximum length of a command?
20011 max_cmd_len=$max_cmd_len
20013 # Object file suffix (normally "o").
20016 # Executable file suffix (normally "").
20019 # whether the shell understands "unset".
20022 # turn spaces into newlines.
20025 # turn newlines into spaces.
20028 # An object symbol dumper.
20029 OBJDUMP=$lt_OBJDUMP
20031 # Method to check whether dependent libraries are shared objects.
20032 deplibs_check_method=$lt_deplibs_check_method
20034 # Command to use when deplibs_check_method == "file_magic".
20035 file_magic_cmd=$lt_file_magic_cmd
20039 AR_FLAGS=$lt_AR_FLAGS
20041 # A symbol stripping program.
20044 # Commands used to install an old-style archive.
20046 old_postinstall_cmds=$lt_old_postinstall_cmds
20047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20049 # Whether to use a lock for old archive extraction.
20050 lock_old_archive_extraction=$lock_old_archive_extraction
20055 # LTCC compiler flags.
20056 LTCFLAGS=$lt_CFLAGS
20058 # Take the output of nm and produce a listing of raw symbols and C names.
20059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20061 # Transform the output of nm in a proper C declaration.
20062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20064 # Transform the output of nm in a C name address pair.
20065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20067 # Transform the output of nm in a C name address pair when lib prefix is needed.
20068 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20070 # The name of the directory that contains temporary libtool files.
20073 # Used to examine libraries when file_magic_cmd begins with "file".
20074 MAGIC_CMD=$MAGIC_CMD
20076 # Must we lock files when doing compilation?
20077 need_locks=$lt_need_locks
20079 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20080 DSYMUTIL=$lt_DSYMUTIL
20082 # Tool to change global to local symbols on Mac OS X.
20085 # Tool to manipulate fat objects and archives on Mac OS X.
20088 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20091 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20092 OTOOL64=$lt_OTOOL64
20094 # Old archive suffix (normally "a").
20097 # Shared library suffix (normally ".so").
20098 shrext_cmds=$lt_shrext_cmds
20100 # The commands to extract the exported symbol list from a shared archive.
20101 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20103 # Variables whose values should be saved in libtool wrapper scripts and
20104 # restored at link time.
20105 variables_saved_for_relink=$lt_variables_saved_for_relink
20107 # Do we need the "lib" prefix for modules?
20108 need_lib_prefix=$need_lib_prefix
20110 # Do we need a version for libraries?
20111 need_version=$need_version
20113 # Library versioning type.
20114 version_type=$version_type
20116 # Shared library runtime path variable.
20117 runpath_var=$runpath_var
20119 # Shared library path variable.
20120 shlibpath_var=$shlibpath_var
20122 # Is shlibpath searched before the hard-coded library search path?
20123 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20125 # Format of library name prefix.
20126 libname_spec=$lt_libname_spec
20128 # List of archive names. First name is the real one, the rest are links.
20129 # The last name is the one that the linker finds with -lNAME
20130 library_names_spec=$lt_library_names_spec
20132 # The coded name of the library, if different from the real name.
20133 soname_spec=$lt_soname_spec
20135 # Permission mode override for installation of shared libraries.
20136 install_override_mode=$lt_install_override_mode
20138 # Command to use after installation of a shared archive.
20139 postinstall_cmds=$lt_postinstall_cmds
20141 # Command to use after uninstallation of a shared archive.
20142 postuninstall_cmds=$lt_postuninstall_cmds
20144 # Commands used to finish a libtool library installation in a directory.
20145 finish_cmds=$lt_finish_cmds
20147 # As "finish_cmds", except a single script fragment to be evaled but
20149 finish_eval=$lt_finish_eval
20151 # Whether we should hardcode library paths into libraries.
20152 hardcode_into_libs=$hardcode_into_libs
20154 # Compile-time system search path for libraries.
20155 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20157 # Run-time system search path for libraries.
20158 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20160 # Whether dlopen is supported.
20161 dlopen_support=$enable_dlopen
20163 # Whether dlopen of programs is supported.
20164 dlopen_self=$enable_dlopen_self
20166 # Whether dlopen of statically linked programs is supported.
20167 dlopen_self_static=$enable_dlopen_self_static
20169 # Commands to strip libraries.
20170 old_striplib=$lt_old_striplib
20171 striplib=$lt_striplib
20174 # The linker used to build libraries.
20177 # How to create reloadable object files.
20178 reload_flag=$lt_reload_flag
20179 reload_cmds=$lt_reload_cmds
20181 # Commands used to build an old-style archive.
20182 old_archive_cmds=$lt_old_archive_cmds
20184 # A language specific compiler.
20187 # Is the compiler the GNU compiler?
20190 # Compiler flag to turn off builtin functions.
20191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20193 # How to pass a linker flag through the compiler.
20194 wl=$lt_lt_prog_compiler_wl
20196 # Additional compiler flags for building library objects.
20197 pic_flag=$lt_lt_prog_compiler_pic
20199 # Compiler flag to prevent dynamic linking.
20200 link_static_flag=$lt_lt_prog_compiler_static
20202 # Does compiler simultaneously support -c and -o options?
20203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20205 # Whether or not to add -lc for building shared libraries.
20206 build_libtool_need_lc=$archive_cmds_need_lc
20208 # Whether or not to disallow shared libs when runtime libs are static.
20209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20211 # Compiler flag to allow reflexive dlopens.
20212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20214 # Compiler flag to generate shared objects directly from archives.
20215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20217 # Whether the compiler copes with passing no objects directly.
20218 compiler_needs_object=$lt_compiler_needs_object
20220 # Create an old-style archive from a shared archive.
20221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20223 # Create a temporary old-style archive to link instead of a shared archive.
20224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20226 # Commands used to build a shared archive.
20227 archive_cmds=$lt_archive_cmds
20228 archive_expsym_cmds=$lt_archive_expsym_cmds
20230 # Commands used to build a loadable module if different from building
20231 # a shared archive.
20232 module_cmds=$lt_module_cmds
20233 module_expsym_cmds=$lt_module_expsym_cmds
20235 # Whether we are building with GNU ld or not.
20236 with_gnu_ld=$lt_with_gnu_ld
20238 # Flag that allows shared libraries with undefined symbols to be built.
20239 allow_undefined_flag=$lt_allow_undefined_flag
20241 # Flag that enforces no undefined symbols.
20242 no_undefined_flag=$lt_no_undefined_flag
20244 # Flag to hardcode \$libdir into a binary during linking.
20245 # This must work even if \$libdir does not exist
20246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20248 # If ld is used when linking, flag to hardcode \$libdir into a binary
20249 # during linking. This must work even if \$libdir does not exist.
20250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20252 # Whether we need a single "-rpath" flag with a separated argument.
20253 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20255 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20256 # DIR into the resulting binary.
20257 hardcode_direct=$hardcode_direct
20259 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20260 # DIR into the resulting binary and the resulting library dependency is
20261 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20262 # library is relocated.
20263 hardcode_direct_absolute=$hardcode_direct_absolute
20265 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20266 # into the resulting binary.
20267 hardcode_minus_L=$hardcode_minus_L
20269 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20270 # into the resulting binary.
20271 hardcode_shlibpath_var=$hardcode_shlibpath_var
20273 # Set to "yes" if building a shared library automatically hardcodes DIR
20274 # into the library and all subsequent libraries and executables linked
20276 hardcode_automatic=$hardcode_automatic
20278 # Set to yes if linker adds runtime paths of dependent libraries
20279 # to runtime path list.
20280 inherit_rpath=$inherit_rpath
20282 # Whether libtool must link a program against all its dependency libraries.
20283 link_all_deplibs=$link_all_deplibs
20285 # Fix the shell variable \$srcfile for the compiler.
20286 fix_srcfile_path=$lt_fix_srcfile_path
20288 # Set to "yes" if exported symbols are required.
20289 always_export_symbols=$always_export_symbols
20291 # The commands to list exported symbols.
20292 export_symbols_cmds=$lt_export_symbols_cmds
20294 # Symbols that should not be listed in the preloaded symbols.
20295 exclude_expsyms=$lt_exclude_expsyms
20297 # Symbols that must always be exported.
20298 include_expsyms=$lt_include_expsyms
20300 # Commands necessary for linking programs (against libraries) with templates.
20301 prelink_cmds=$lt_prelink_cmds
20303 # Specify filename containing input files.
20304 file_list_spec=$lt_file_list_spec
20306 # How to hardcode a shared library path into an executable.
20307 hardcode_action=$hardcode_action
20309 # The directories searched by this compiler when creating a shared library.
20310 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20312 # Dependencies to place before and after the objects being linked to
20313 # create a shared library.
20314 predep_objects=$lt_predep_objects
20315 postdep_objects=$lt_postdep_objects
20316 predeps=$lt_predeps
20317 postdeps=$lt_postdeps
20319 # The library search path used internally by the compiler when linking
20320 # a shared library.
20321 compiler_lib_search_path=$lt_compiler_lib_search_path
20323 # ### END LIBTOOL CONFIG
20329 cat <<\_LT_EOF
>> "$cfgfile"
20330 # AIX sometimes has problems with the GCC collect2 program. For some
20331 # reason, if we set the COLLECT_NAMES environment variable, the problems
20332 # vanish in a puff of smoke.
20333 if test "X${COLLECT_NAMES+set}" != Xset
; then
20335 export COLLECT_NAMES
20342 ltmain
="$ac_aux_dir/ltmain.sh"
20345 # We use sed instead of cat because bash on DJGPP gets confused if
20346 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20347 # text mode, it properly converts lines to CR/LF. This bash problem
20348 # is reportedly fixed, but why not run on old versions too?
20349 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20350 ||
(rm -f "$cfgfile"; exit 1)
20354 cat << \_LT_EOF
>> "$cfgfile"
20356 # func_dirname file append nondir_replacement
20357 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20358 # otherwise set result to NONDIR_REPLACEMENT.
20362 */*) func_dirname_result
="${1%/*}${2}" ;;
20363 * ) func_dirname_result
="${3}" ;;
20367 # func_basename file
20370 func_basename_result
="${1##*/}"
20373 # func_dirname_and_basename file append nondir_replacement
20374 # perform func_basename and func_dirname in a single function
20376 # dirname: Compute the dirname of FILE. If nonempty,
20377 # add APPEND to the result, otherwise set result
20378 # to NONDIR_REPLACEMENT.
20379 # value returned in "$func_dirname_result"
20380 # basename: Compute filename of FILE.
20381 # value retuned in "$func_basename_result"
20382 # Implementation must be kept synchronized with func_dirname
20383 # and func_basename. For efficiency, we do not delegate to
20384 # those functions but instead duplicate the functionality here.
20385 func_dirname_and_basename
()
20388 */*) func_dirname_result
="${1%/*}${2}" ;;
20389 * ) func_dirname_result
="${3}" ;;
20391 func_basename_result
="${1##*/}"
20394 # func_stripname prefix suffix name
20395 # strip PREFIX and SUFFIX off of NAME.
20396 # PREFIX and SUFFIX must not contain globbing or regex special
20397 # characters, hashes, percent signs, but SUFFIX may contain a leading
20398 # dot (in which case that matches only a dot).
20401 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20402 # positional parameters, so assign one to ordinary parameter first.
20403 func_stripname_result
=${3}
20404 func_stripname_result
=${func_stripname_result#"${1}"}
20405 func_stripname_result
=${func_stripname_result%"${2}"}
20411 func_opt_split_opt
=${1%%=*}
20412 func_opt_split_arg
=${1#*=}
20419 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
20420 *) func_lo2o_result
=${1} ;;
20424 # func_xform libobj-or-source
20427 func_xform_result
=${1%.*}.lo
20430 # func_arith arithmetic-term...
20433 func_arith_result
=$
(( $
* ))
20437 # STRING may not start with a hyphen.
20440 func_len_result
=${#1}
20445 *) # Bourne compatible functions.
20446 cat << \_LT_EOF
>> "$cfgfile"
20448 # func_dirname file append nondir_replacement
20449 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20450 # otherwise set result to NONDIR_REPLACEMENT.
20453 # Extract subdirectory from the argument.
20454 func_dirname_result
=`$ECHO "${1}" | $SED "$dirname"`
20455 if test "X$func_dirname_result" = "X${1}"; then
20456 func_dirname_result
="${3}"
20458 func_dirname_result
="$func_dirname_result${2}"
20462 # func_basename file
20465 func_basename_result
=`$ECHO "${1}" | $SED "$basename"`
20469 # func_stripname prefix suffix name
20470 # strip PREFIX and SUFFIX off of NAME.
20471 # PREFIX and SUFFIX must not contain globbing or regex special
20472 # characters, hashes, percent signs, but SUFFIX may contain a leading
20473 # dot (in which case that matches only a dot).
20474 # func_strip_suffix prefix name
20478 .
*) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20479 *) func_stripname_result
=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20484 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
20485 my_sed_long_arg
='1s/^-[^=]*=//'
20490 func_opt_split_opt
=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20491 func_opt_split_arg
=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20497 func_lo2o_result
=`$ECHO "${1}" | $SED "$lo2o"`
20500 # func_xform libobj-or-source
20503 func_xform_result
=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20506 # func_arith arithmetic-term...
20509 func_arith_result
=`expr "$@"`
20513 # STRING may not start with a hyphen.
20516 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20522 case $lt_shell_append in
20524 cat << \_LT_EOF
>> "$cfgfile"
20526 # func_append var value
20527 # Append VALUE to the end of shell variable VAR.
20535 cat << \_LT_EOF
>> "$cfgfile"
20537 # func_append var value
20538 # Append VALUE to the end of shell variable VAR.
20549 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20550 ||
(rm -f "$cfgfile"; exit 1)
20552 mv -f "$cfgfile" "$ofile" ||
20553 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20557 cat <<_LT_EOF >> "$ofile"
20559 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20561 # The linker used to build libraries.
20564 # How to create reloadable object files.
20565 reload_flag=$lt_reload_flag_CXX
20566 reload_cmds=$lt_reload_cmds_CXX
20568 # Commands used to build an old-style archive.
20569 old_archive_cmds=$lt_old_archive_cmds_CXX
20571 # A language specific compiler.
20572 CC=$lt_compiler_CXX
20574 # Is the compiler the GNU compiler?
20577 # Compiler flag to turn off builtin functions.
20578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20580 # How to pass a linker flag through the compiler.
20581 wl=$lt_lt_prog_compiler_wl_CXX
20583 # Additional compiler flags for building library objects.
20584 pic_flag=$lt_lt_prog_compiler_pic_CXX
20586 # Compiler flag to prevent dynamic linking.
20587 link_static_flag=$lt_lt_prog_compiler_static_CXX
20589 # Does compiler simultaneously support -c and -o options?
20590 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20592 # Whether or not to add -lc for building shared libraries.
20593 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20595 # Whether or not to disallow shared libs when runtime libs are static.
20596 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20598 # Compiler flag to allow reflexive dlopens.
20599 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20601 # Compiler flag to generate shared objects directly from archives.
20602 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20604 # Whether the compiler copes with passing no objects directly.
20605 compiler_needs_object=$lt_compiler_needs_object_CXX
20607 # Create an old-style archive from a shared archive.
20608 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20610 # Create a temporary old-style archive to link instead of a shared archive.
20611 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20613 # Commands used to build a shared archive.
20614 archive_cmds=$lt_archive_cmds_CXX
20615 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20617 # Commands used to build a loadable module if different from building
20618 # a shared archive.
20619 module_cmds=$lt_module_cmds_CXX
20620 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20622 # Whether we are building with GNU ld or not.
20623 with_gnu_ld=$lt_with_gnu_ld_CXX
20625 # Flag that allows shared libraries with undefined symbols to be built.
20626 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20628 # Flag that enforces no undefined symbols.
20629 no_undefined_flag=$lt_no_undefined_flag_CXX
20631 # Flag to hardcode \$libdir into a binary during linking.
20632 # This must work even if \$libdir does not exist
20633 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20635 # If ld is used when linking, flag to hardcode \$libdir into a binary
20636 # during linking. This must work even if \$libdir does not exist.
20637 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20639 # Whether we need a single "-rpath" flag with a separated argument.
20640 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20643 # DIR into the resulting binary.
20644 hardcode_direct=$hardcode_direct_CXX
20646 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20647 # DIR into the resulting binary and the resulting library dependency is
20648 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20649 # library is relocated.
20650 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20652 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20653 # into the resulting binary.
20654 hardcode_minus_L=$hardcode_minus_L_CXX
20656 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20657 # into the resulting binary.
20658 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20660 # Set to "yes" if building a shared library automatically hardcodes DIR
20661 # into the library and all subsequent libraries and executables linked
20663 hardcode_automatic=$hardcode_automatic_CXX
20665 # Set to yes if linker adds runtime paths of dependent libraries
20666 # to runtime path list.
20667 inherit_rpath=$inherit_rpath_CXX
20669 # Whether libtool must link a program against all its dependency libraries.
20670 link_all_deplibs=$link_all_deplibs_CXX
20672 # Fix the shell variable \$srcfile for the compiler.
20673 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20675 # Set to "yes" if exported symbols are required.
20676 always_export_symbols=$always_export_symbols_CXX
20678 # The commands to list exported symbols.
20679 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20681 # Symbols that should not be listed in the preloaded symbols.
20682 exclude_expsyms=$lt_exclude_expsyms_CXX
20684 # Symbols that must always be exported.
20685 include_expsyms=$lt_include_expsyms_CXX
20687 # Commands necessary for linking programs (against libraries) with templates.
20688 prelink_cmds=$lt_prelink_cmds_CXX
20690 # Specify filename containing input files.
20691 file_list_spec=$lt_file_list_spec_CXX
20693 # How to hardcode a shared library path into an executable.
20694 hardcode_action=$hardcode_action_CXX
20696 # The directories searched by this compiler when creating a shared library.
20697 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20699 # Dependencies to place before and after the objects being linked to
20700 # create a shared library.
20701 predep_objects=$lt_predep_objects_CXX
20702 postdep_objects=$lt_postdep_objects_CXX
20703 predeps=$lt_predeps_CXX
20704 postdeps=$lt_postdeps_CXX
20706 # The library search path used internally by the compiler when linking
20707 # a shared library.
20708 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20710 # ### END LIBTOOL TAG CONFIG: CXX
20715 if test "$GCC" = yes; then
20716 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20718 echo "/* generated for $CC */" > tmp-stdint.h
20721 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20723 #ifndef GCC_GENERATED_STDINT_H
20724 #define GCC_GENERATED_STDINT_H 1
20726 #include <sys/types.h>
20729 if test "$acx_cv_header_stdint" != stdint.h
; then
20730 echo "#include <stddef.h>" >> tmp-stdint.h
20732 if test "$acx_cv_header_stdint" != stddef.h
; then
20733 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20736 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20737 /* glibc uses these symbols as guards to prevent redefinitions. */
20738 #ifdef __int8_t_defined
20743 #ifdef __uint32_t_defined
20749 # ----------------- done header, emit basic int types -------------
20750 if test "$acx_cv_header_stdint" = stddef.h
; then
20751 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20755 #ifndef __uint8_t_defined
20756 #define __uint8_t_defined
20758 typedef unsigned $acx_cv_type_int8_t uint8_t;
20765 #ifndef __uint16_t_defined
20766 #define __uint16_t_defined
20768 typedef unsigned $acx_cv_type_int16_t uint16_t;
20775 #ifndef __uint32_t_defined
20776 #define __uint32_t_defined
20778 typedef unsigned $acx_cv_type_int32_t uint32_t;
20785 #ifndef __int8_t_defined
20786 #define __int8_t_defined
20788 typedef $acx_cv_type_int8_t int8_t;
20795 #ifndef __int16_t_defined
20796 #define __int16_t_defined
20798 typedef $acx_cv_type_int16_t int16_t;
20805 #ifndef __int32_t_defined
20806 #define __int32_t_defined
20808 typedef $acx_cv_type_int32_t int32_t;
20813 elif test "$ac_cv_type_u_int32_t" = yes; then
20814 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20816 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20829 #ifndef __uint8_t_defined
20830 #define __uint8_t_defined
20832 typedef u_int8_t uint8_t;
20839 #ifndef __uint16_t_defined
20840 #define __uint16_t_defined
20842 typedef u_int16_t uint16_t;
20849 #ifndef __uint32_t_defined
20850 #define __uint32_t_defined
20852 typedef u_int32_t uint32_t;
20858 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20860 /* Some systems have guard macros to prevent redefinitions, define them. */
20882 # ------------- done basic int types, emit int64_t types ------------
20883 if test "$ac_cv_type_uint64_t" = yes; then
20884 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20886 /* system headers have good uint64_t and int64_t */
20894 elif test "$ac_cv_type_u_int64_t" = yes; then
20895 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20897 /* system headers have an u_int64_t (and int64_t) */
20903 #ifndef __uint64_t_defined
20904 #define __uint64_t_defined
20906 typedef u_int64_t uint64_t;
20911 elif test -n "$acx_cv_type_int64_t"; then
20912 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20914 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20918 typedef $acx_cv_type_int64_t int64_t;
20923 #ifndef __uint64_t_defined
20924 #define __uint64_t_defined
20926 typedef unsigned $acx_cv_type_int64_t uint64_t;
20932 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20934 /* some common heuristics for int64_t, using compiler-specific tests */
20935 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20938 #ifndef __int64_t_defined
20940 typedef long long int64_t;
20947 typedef unsigned long long uint64_t;
20951 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20952 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20953 does not implement __extension__. But that compiler doesn't define
20955 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20956 # define __extension__
20962 __extension__ typedef long long int64_t;
20968 __extension__ typedef unsigned long long uint64_t;
20972 #elif !defined __STRICT_ANSI__
20973 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20978 typedef __int64 int64_t;
20984 typedef unsigned __int64 uint64_t;
20987 # endif /* compiler */
20989 #endif /* ANSI version */
20993 # ------------- done int64_t types, emit intptr types ------------
20994 if test "$ac_cv_type_uintptr_t" != yes; then
20995 sed 's/^ *//' >> tmp-stdint.h
<<EOF
20997 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20998 #ifndef __uintptr_t_defined
21000 typedef u$acx_cv_type_intptr_t uintptr_t;
21003 #ifndef __intptr_t_defined
21005 typedef $acx_cv_type_intptr_t intptr_t;
21011 # ------------- done intptr types, emit int_least types ------------
21012 if test "$ac_cv_type_int_least32_t" != yes; then
21013 sed 's/^ *//' >> tmp-stdint.h
<<EOF
21015 /* Define int_least types */
21016 typedef int8_t int_least8_t;
21017 typedef int16_t int_least16_t;
21018 typedef int32_t int_least32_t;
21020 typedef int64_t int_least64_t;
21023 typedef uint8_t uint_least8_t;
21024 typedef uint16_t uint_least16_t;
21025 typedef uint32_t uint_least32_t;
21027 typedef uint64_t uint_least64_t;
21032 # ------------- done intptr types, emit int_fast types ------------
21033 if test "$ac_cv_type_int_fast32_t" != yes; then
21034 sed 's/^ *//' >> tmp-stdint.h
<<EOF
21036 /* Define int_fast types. short is often slow */
21037 typedef int8_t int_fast8_t;
21038 typedef int int_fast16_t;
21039 typedef int32_t int_fast32_t;
21041 typedef int64_t int_fast64_t;
21044 typedef uint8_t uint_fast8_t;
21045 typedef unsigned int uint_fast16_t;
21046 typedef uint32_t uint_fast32_t;
21048 typedef uint64_t uint_fast64_t;
21053 if test "$ac_cv_type_uintmax_t" != yes; then
21054 sed 's/^ *//' >> tmp-stdint.h
<<EOF
21056 /* Define intmax based on what we found */
21059 typedef int64_t intmax_t;
21061 typedef long intmax_t;
21066 typedef uint64_t uintmax_t;
21068 typedef unsigned long uintmax_t;
21074 sed 's/^ *//' >> tmp-stdint.h
<<EOF
21076 #endif /* GCC_GENERATED_STDINT_H */
21079 if test -r gstdint.h
&& cmp -s tmp-stdint.h gstdint.h
; then
21082 mv -f tmp-stdint.h gstdint.h
21093 ac_clean_files
=$ac_clean_files_save
21095 test $ac_write_fail = 0 ||
21096 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
21099 # configure is writing to config.log, and then calls config.status.
21100 # config.status does its own redirection, appending to config.log.
21101 # Unfortunately, on DOS this fails, as config.log is still kept open
21102 # by configure, so config.status won't be able to write to it; its
21103 # output is simply discarded. So we exec the FD to /dev/null,
21104 # effectively closing config.log, so it can be properly (re)opened and
21105 # appended to by config.status. When coming back to configure, we
21106 # need to make the FD available again.
21107 if test "$no_create" != yes; then
21109 ac_config_status_args
=
21110 test "$silent" = yes &&
21111 ac_config_status_args
="$ac_config_status_args --quiet"
21113 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21115 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21116 # would make configure fail if this is the last instruction.
21117 $ac_cs_success || as_fn_exit
1
21119 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21121 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}