137
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
139
162
if test "x$CONFIG_SHELL" = x; then
140
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
224
248
if test "x$CONFIG_SHELL" != x; then :
225
# We cannot yet assume a decent shell, so we have to provide a
226
# neutralization value for shells without unset; and this also
227
# works around shells that cannot unset nonexistent variables.
228
# Preserve -v and -x to the replacement shell.
231
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
*v*x* | *x*v* ) as_opts=-vx ;;
239
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
242
270
if test x$as_have_required = xno; then :
2501
2518
case $srcdir in
2502
2519
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2503
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2520
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2506
# Do `set' in a subshell so we don't clobber the current shell's
2523
# Do 'set' in a subshell so we don't clobber the current shell's
2507
2524
# arguments. Must try -L first in case configure is actually a
2508
2525
# symlink; some systems play weird games with the mod time of symlinks
2509
2526
# (eg FreeBSD returns the mod time of the symlink's containing
2512
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2513
if test "$*" = "X"; then
2515
set X `ls -t "$srcdir/configure" conftest.file`
2518
if test "$*" != "X $srcdir/configure conftest.file" \
2519
&& test "$*" != "X conftest.file $srcdir/configure"; then
2521
# If neither matched, then we have a broken ls. This can happen
2522
# if, for instance, CONFIG_SHELL is bash and it inherits a
2523
# broken ls alias from the environment. This has actually
2524
# happened. Such a system could not be considered "sane".
2525
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2526
alias in your environment" "$LINENO" 5
2530
for am_try in 1 2; do
2531
echo "timestamp, slept: $am_has_slept" > conftest.file
2532
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2533
if test "$*" = "X"; then
2535
set X `ls -t "$srcdir/configure" conftest.file`
2537
if test "$*" != "X $srcdir/configure conftest.file" \
2538
&& test "$*" != "X conftest.file $srcdir/configure"; then
2540
# If neither matched, then we have a broken ls. This can happen
2541
# if, for instance, CONFIG_SHELL is bash and it inherits a
2542
# broken ls alias from the environment. This has actually
2543
# happened. Such a system could not be considered "sane".
2544
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2545
alias in your environment" "$LINENO" 5
2547
if test "$2" = conftest.file || test $am_try -eq 2; then
2529
2554
test "$2" = conftest.file
2807
2836
rmdir .tst 2>/dev/null
2838
# Check whether --enable-silent-rules was given.
2839
if test "${enable_silent_rules+set}" = set; then :
2840
enableval=$enable_silent_rules;
2843
case $enable_silent_rules in # (((
2844
yes) AM_DEFAULT_VERBOSITY=0;;
2845
no) AM_DEFAULT_VERBOSITY=1;;
2846
*) AM_DEFAULT_VERBOSITY=1;;
2848
am_make=${MAKE-make}
2849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2850
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2851
if ${am_cv_make_support_nested_variables+:} false; then :
2852
$as_echo_n "(cached) " >&6
2854
if $as_echo 'TRUE=$(BAR$(V))
2860
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2861
am_cv_make_support_nested_variables=yes
2863
am_cv_make_support_nested_variables=no
2866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2867
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2868
if test $am_cv_make_support_nested_variables = yes; then
2870
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2872
AM_V=$AM_DEFAULT_VERBOSITY
2873
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2809
2877
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2810
2878
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2811
2879
# is not polluted with repeated "-I."
2857
2925
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2927
# For better backward compatibility. To be removed once Automake 1.9.x
2928
# dies out for good. For more background, see:
2929
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2930
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2931
mkdir_p='$(MKDIR_P)'
2859
2933
# We need awk for the "check" target. The system "awk" is bad on
2860
2934
# some platforms.
2861
2935
# Always define AMTAR for backward compatibility. Yes, it's still used
2862
2936
# in the wild :-( We should find a proper way to deprecate it ...
2863
2937
AMTAR='$${TAR-tar}'
2940
# We'll loop over all known methods to create a tar archive until one works.
2941
_am_tools='gnutar pax cpio none'
2865
2943
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2950
# POSIX will say in a future version that running "rm -f" with no argument
2951
# is OK; and we want to be able to make that assumption in our Makefile
2952
# recipes. So use an aggressive probe to check that the usage we want is
2953
# actually supported "in the wild" to an acceptable degree.
2954
# See automake bug#10828.
2955
# To make any issue more visible, cause the running configure to be aborted
2956
# by default if the 'rm' program in use doesn't match our expectations; the
2957
# user can still override this though.
2958
if rm -f && rm -fr && rm -rf; then : OK; else
2962
Your 'rm' program seems unable to run without file operands specified
2963
on the command line, even when the '-f' option is present. This is contrary
2964
to the behaviour of most rm programs out there, and not conforming with
2965
the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2967
Please tell bug-automake@gnu.org about your system, including the value
2968
of your $PATH and any error possibly output before this message. This
2969
can help us improve future automake versions.
2972
if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2973
echo 'Configuration will proceed anyway, since you have set the' >&2
2974
echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2978
Aborting the configuration process, to ensure you take notice of the issue.
2980
You can download and install GNU coreutils to get an 'rm' implementation
2981
that behaves properly: <http://www.gnu.org/software/coreutils/>.
2983
If you want to complete the configuration process using your problematic
2984
'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2985
to "yes", and re-run configure.
2988
as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2871
2991
# Check whether --enable-silent-rules was given.
2872
2992
if test "${enable_silent_rules+set}" = set; then :
2873
2993
enableval=$enable_silent_rules;
2876
case $enable_silent_rules in
2877
yes) AM_DEFAULT_VERBOSITY=0;;
2878
no) AM_DEFAULT_VERBOSITY=1;;
2879
*) AM_DEFAULT_VERBOSITY=0;;
2996
case $enable_silent_rules in # (((
2997
yes) AM_DEFAULT_VERBOSITY=0;;
2998
no) AM_DEFAULT_VERBOSITY=1;;
2999
*) AM_DEFAULT_VERBOSITY=0;;
2881
3001
am_make=${MAKE-make}
2882
3002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3698
3817
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699
3818
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700
3819
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822
ac_cpp='$CPP $CPPFLAGS'
3823
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3827
$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3828
if ${am_cv_prog_cc_c_o+:} false; then :
3829
$as_echo_n "(cached) " >&6
3831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832
/* end confdefs.h. */
3842
# Make sure it works both with $CC and with simple cc.
3843
# Following AC_PROG_CC_C_O, we do the test twice because some
3844
# compilers refuse to overwrite an existing .o file with -o,
3845
# though they will create one.
3846
am_cv_prog_cc_c_o=yes
3848
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3849
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852
(exit $ac_status); } \
3853
&& test -f conftest2.$ac_objext; then
3856
am_cv_prog_cc_c_o=no
3860
rm -f core conftest*
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3864
$as_echo "$am_cv_prog_cc_c_o" >&6; }
3865
if test "$am_cv_prog_cc_c_o" != yes; then
3866
# Losing compiler, so override with the script.
3867
# FIXME: It is wrong to rewrite CC.
3868
# But if we don't then we get into trouble of one sort or another.
3869
# A longer-term fix would be to have automake use am__CC in this case,
3870
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3871
CC="$am_aux_dir/compile $CC"
3874
ac_cpp='$CPP $CPPFLAGS'
3875
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3879
DEPDIR="${am__leading_dot}deps"
3703
3881
ac_config_commands="$ac_config_commands depfiles"
4553
4731
if test -n "$NM"; then
4554
4732
# Let the user override the test.
4557
lt_nm_to_check=${ac_tool_prefix}nm
4735
lt_nm_to_check="${ac_tool_prefix}nm"
4558
4736
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4559
4737
lt_nm_to_check="$lt_nm_to_check nm"
4561
4739
for lt_tmp_nm in $lt_nm_to_check; do
4562
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4740
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563
4741
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4565
4743
test -z "$ac_dir" && ac_dir=.
4566
tmp_nm=$ac_dir/$lt_tmp_nm
4567
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4744
tmp_nm="$ac_dir/$lt_tmp_nm"
4745
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4568
4746
# Check to see if the nm accepts a BSD-compat flag.
4569
# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4747
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4570
4748
# nm: unknown option "B" ignored
4571
4749
# Tru64's nm complains that /dev/null is an invalid object file
4572
4750
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4573
4751
*/dev/null* | *'Invalid file or object type'*)
4574
4752
lt_cv_path_NM="$tmp_nm -B"
4578
4756
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4580
4758
lt_cv_path_NM="$tmp_nm -p"
4584
4762
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4846
5024
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4847
if test -n "$lt_cv_sys_max_cmd_len" && \
4848
test undefined != "$lt_cv_sys_max_cmd_len"; then
5025
if test -n "$lt_cv_sys_max_cmd_len"; then
4849
5026
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850
5027
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4852
5029
# Make teststring a little bigger before we do anything with it.
4853
5030
# a 1K string should be a reasonable start.
4854
for i in 1 2 3 4 5 6 7 8; do
5031
for i in 1 2 3 4 5 6 7 8 ; do
4855
5032
teststring=$teststring$teststring
4857
5034
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4858
5035
# If test is not a shell built-in, we'll probably end up computing a
4859
5036
# maximum length that is only half of the actual maximum length, but
4860
5037
# we can't tell.
4861
while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5038
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4862
5039
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4863
test 17 != "$i" # 1/2 MB should be enough
5040
test $i != 17 # 1/2 MB should be enough
4865
5042
i=`expr $i + 1`
4866
5043
teststring=$teststring$teststring
6021
6227
symcode='[ABCDGIRSTW]' ;;
6024
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6025
# Gets list of data symbols to import.
6026
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6027
# Adjust the below global symbol transforms to fixup imported variables.
6028
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6029
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6030
lt_c_name_lib_hook="\
6031
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6032
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6034
# Disable hooks by default.
6035
lt_cv_sys_global_symbol_to_import=
6041
6230
# Transform an extracted symbol line into a proper C declaration.
6042
6231
# Some systems (esp. on ia64) link data and code symbols differently,
6043
6232
# so use this general approach.
6044
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6046
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6047
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6233
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6049
6235
# Transform an extracted symbol line into symbol name and symbol address
6050
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6052
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6053
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6055
# Transform an extracted symbol line into symbol name with lib prefix and
6057
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6058
$lt_c_name_lib_hook\
6059
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6060
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6061
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6236
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6237
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'"
6063
6239
# Handle CRLF in mingw tool chain
6077
6253
# Write the raw and C identifiers.
6078
6254
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6079
# Fake it for dumpbin and say T for any non-static function,
6080
# D for any global variable and I for any imported variable.
6255
# Fake it for dumpbin and say T for any non-static function
6256
# and D for any global variable.
6081
6257
# Also find C++ and __fastcall symbols from MSVC++,
6082
6258
# which start with @ or ?.
6083
6259
lt_cv_sys_global_symbol_pipe="$AWK '"\
6084
6260
" {last_section=section; section=\$ 3};"\
6085
6261
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6086
6262
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6087
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6088
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6089
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6090
6263
" \$ 0!~/External *\|/{next};"\
6091
6264
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6092
6265
" {if(hide[section]) next};"\
6093
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6094
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6095
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6096
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6266
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6267
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6268
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6269
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6097
6270
" ' prfx=^$ac_symprfx"
6099
6272
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6386
6547
rm -rf conftest*
6390
# Find out what ABI is being produced by ac_compile, and set linker
6391
# options accordingly.
6392
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6393
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6394
(eval $ac_compile) 2>&5
6396
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6397
test $ac_status = 0; }; then
6399
case `/usr/bin/file conftest.$ac_objext` in
6407
case `/usr/bin/file conftest.$ac_objext` in
6409
emul="${emul}btsmip"
6412
emul="${emul}ltsmip"
6415
case `/usr/bin/file conftest.$ac_objext` in
6420
LD="${LD-ld} -m $emul"
6425
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6550
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6426
6551
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6427
# Find out what ABI is being produced by ac_compile, and set linker
6428
# options accordingly. Note that the listed cases only cover the
6429
# situations where additional linker options are needed (such as when
6430
# doing 32-bit compilation for a host where ld defaults to 64-bit, or
6431
# vice versa); the common cases where no linker options are needed do
6432
# not appear in the list.
6552
# Find out which ABI we are using.
6433
6553
echo 'int i;' > conftest.$ac_ext
6434
6554
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435
6555
(eval $ac_compile) 2>&5
7292
7398
$as_echo "$lt_cv_ld_force_load" >&6; }
7293
7399
case $host_os in
7294
7400
rhapsody* | darwin1.[012])
7295
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7401
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7297
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7403
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7298
7404
darwin*) # darwin 5.x on
7299
7405
# if running on 10.5 or later, the deployment target defaults
7300
7406
# to the OS version, if on x86, and 10.4, the deployment
7301
7407
# target defaults to 10.4. Don't you love it?
7302
7408
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7303
7409
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7304
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7410
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7306
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7412
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7308
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7414
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7312
if test yes = "$lt_cv_apple_cc_single_mod"; then
7418
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7313
7419
_lt_dar_single_mod='$single_module'
7315
if test yes = "$lt_cv_ld_exported_symbols_list"; then
7316
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7421
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7422
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7318
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7424
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7320
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7426
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7321
7427
_lt_dsymutil='~$DSYMUTIL $lib || :'
7884
7992
case $MAGIC_CMD in
7885
7993
[\\/*] | ?:[\\/]*)
7886
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7994
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889
lt_save_MAGIC_CMD=$MAGIC_CMD
7890
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7997
lt_save_MAGIC_CMD="$MAGIC_CMD"
7998
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7891
7999
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7892
8000
for ac_dir in $ac_dummy; do
7894
8002
test -z "$ac_dir" && ac_dir=.
7895
if test -f "$ac_dir/${ac_tool_prefix}file"; then
7896
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8003
if test -f $ac_dir/${ac_tool_prefix}file; then
8004
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7897
8005
if test -n "$file_magic_test_file"; then
7898
8006
case $deplibs_check_method in
7899
8007
"file_magic "*)
7900
8008
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7901
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8009
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902
8010
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7903
8011
$EGREP "$file_magic_regex" > /dev/null; then
7950
8058
case $MAGIC_CMD in
7951
8059
[\\/*] | ?:[\\/]*)
7952
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8060
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955
lt_save_MAGIC_CMD=$MAGIC_CMD
7956
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8063
lt_save_MAGIC_CMD="$MAGIC_CMD"
8064
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7957
8065
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7958
8066
for ac_dir in $ac_dummy; do
7960
8068
test -z "$ac_dir" && ac_dir=.
7961
if test -f "$ac_dir/file"; then
7962
lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8069
if test -f $ac_dir/file; then
8070
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7963
8071
if test -n "$file_magic_test_file"; then
7964
8072
case $deplibs_check_method in
7965
8073
"file_magic "*)
7966
8074
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7967
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8075
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7968
8076
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7969
8077
$EGREP "$file_magic_regex" > /dev/null; then
8815
if test yes = "$lt_use_gnu_ld_interface"; then
8905
if test "$lt_use_gnu_ld_interface" = yes; then
8816
8906
# If archive_cmds runs LD, not CC, wlarc should be empty
8819
8909
# Set some defaults for GNU ld with shared library support. These
8820
8910
# are reset later if shared libraries are not supported. Putting them
8821
8911
# here allows them to be overridden if necessary.
8822
8912
runpath_var=LD_RUN_PATH
8823
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8824
export_dynamic_flag_spec='$wl--export-dynamic'
8913
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914
export_dynamic_flag_spec='${wl}--export-dynamic'
8825
8915
# ancient GNU ld didn't support --whole-archive et. al.
8826
8916
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8827
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8917
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8829
8919
whole_archive_flag_spec=
8831
8921
supports_anon_versioning=no
8832
case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8922
case `$LD -v 2>&1` in
8833
8923
*GNU\ gold*) supports_anon_versioning=yes ;;
8834
8924
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8835
8925
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8895
8985
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8897
8987
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8898
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8899
# If the export-symbols file already is a .def file, use it as
8900
# is; otherwise, prepend EXPORTS...
8901
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8902
cp $export_symbols $output_objdir/$soname.def;
8904
echo EXPORTS > $output_objdir/$soname.def;
8905
cat $export_symbols >> $output_objdir/$soname.def;
8907
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8988
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989
# If the export-symbols file already is a .def file (1st line
8990
# is EXPORTS), use it as is; otherwise, prepend...
8991
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8992
cp $export_symbols $output_objdir/$soname.def;
8994
echo EXPORTS > $output_objdir/$soname.def;
8995
cat $export_symbols >> $output_objdir/$soname.def;
8997
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8914
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9004
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915
9005
link_all_deplibs=yes
8919
9009
hardcode_direct=no
8920
9010
hardcode_shlibpath_var=no
8921
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8922
export_dynamic_flag_spec='$wl-E'
9011
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012
export_dynamic_flag_spec='${wl}-E'
8923
9013
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8924
9014
# Instead, shared libraries are loaded at an image base (0x10000000 by
8925
9015
# default) and relocated if they conflict, which is a slow very memory
8926
9016
# consuming and fragmenting process. To avoid this, we pick a random,
8927
9017
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8928
9018
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8929
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8930
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'
9019
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9020
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'
8933
9023
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8935
if test linux-dietlibc = "$host_os"; then
9025
if test "$host_os" = linux-dietlibc; then
8936
9026
case $cc_basename in
8937
9027
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8940
9030
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8941
&& test no = "$tmp_diet"
9031
&& test "$tmp_diet" = no
8943
9033
tmp_addflag=' $pic_flag'
8944
9034
tmp_sharedflag='-shared'
8945
9035
case $cc_basename,$host_cpu in
8946
9036
pgcc*) # Portland Group C compiler
8947
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'
9037
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'
8948
9038
tmp_addflag=' $pic_flag'
8950
9040
pgf77* | pgf90* | pgf95* | pgfortran*)
8951
9041
# Portland Group f77 and f90 compilers
8952
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'
9042
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'
8953
9043
tmp_addflag=' $pic_flag -Mnomain' ;;
8954
9044
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8955
9045
tmp_addflag=' -i_dynamic' ;;
8960
9050
lf95*) # Lahey Fortran 8.1
8961
9051
whole_archive_flag_spec=
8962
9052
tmp_sharedflag='--shared' ;;
8963
nagfor*) # NAGFOR 5.3
8964
tmp_sharedflag='-Wl,-shared' ;;
8965
9053
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8966
9054
tmp_sharedflag='-qmkshrobj'
8967
9055
tmp_addflag= ;;
8968
9056
nvcc*) # Cuda Compiler Driver 2.2
8969
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'
9057
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'
8970
9058
compiler_needs_object=yes
8973
9061
case `$CC -V 2>&1 | sed 5q` in
8974
9062
*Sun\ C*) # Sun C 5.9
8975
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'
9063
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'
8976
9064
compiler_needs_object=yes
8977
9065
tmp_sharedflag='-G' ;;
8978
9066
*Sun\ F*) # Sun Fortran 8.3
8979
9067
tmp_sharedflag='-G' ;;
8981
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9069
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983
if test yes = "$supports_anon_versioning"; then
9071
if test "x$supports_anon_versioning" = xyes; then
8984
9072
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8985
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8986
echo "local: *; };" >> $output_objdir/$libname.ver~
8987
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9073
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074
echo "local: *; };" >> $output_objdir/$libname.ver~
9075
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8990
9078
case $cc_basename in
8991
9079
xlf* | bgf* | bgxlf* | mpixlf*)
8992
9080
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8993
9081
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8994
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9082
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8995
9083
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8996
if test yes = "$supports_anon_versioning"; then
9084
if test "x$supports_anon_versioning" = xyes; then
8997
9085
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8998
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8999
echo "local: *; };" >> $output_objdir/$libname.ver~
9000
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9086
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9087
echo "local: *; };" >> $output_objdir/$libname.ver~
9088
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9182
9270
shared_flag='-shared'
9183
if test yes = "$aix_use_runtimelinking"; then
9184
shared_flag="$shared_flag "'$wl-G'
9271
if test "$aix_use_runtimelinking" = yes; then
9272
shared_flag="$shared_flag "'${wl}-G'
9187
9276
# not using gcc
9188
if test ia64 = "$host_cpu"; then
9277
if test "$host_cpu" = ia64; then
9189
9278
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9190
9279
# chokes on -Wl,-G. The following line is correct:
9191
9280
shared_flag='-G'
9193
if test yes = "$aix_use_runtimelinking"; then
9282
if test "$aix_use_runtimelinking" = yes; then
9283
shared_flag='${wl}-G'
9196
shared_flag='$wl-bM:SRE'
9285
shared_flag='${wl}-bM:SRE'
9201
export_dynamic_flag_spec='$wl-bexpall'
9290
export_dynamic_flag_spec='${wl}-bexpall'
9202
9291
# It seems that -bexpall does not export symbols beginning with
9203
9292
# underscore (_), so it is better to generate a list of symbols to export.
9204
9293
always_export_symbols=yes
9205
if test yes = "$aix_use_runtimelinking"; then
9294
if test "$aix_use_runtimelinking" = yes; then
9206
9295
# Warning - without using the other runtime loading flags (-brtl),
9207
9296
# -berok will link without error, but may produce a broken library.
9208
9297
allow_undefined_flag='-berok'
9209
9298
# Determine the default libpath from the value encoded in an
9210
9299
# empty executable.
9211
if test set = "${lt_cv_aix_libpath+set}"; then
9300
if test "${lt_cv_aix_libpath+set}" = set; then
9212
9301
aix_libpath=$lt_cv_aix_libpath
9214
9303
if ${lt_cv_aix_libpath_+:} false; then :
9251
9340
aix_libpath=$lt_cv_aix_libpath_
9254
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9255
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9343
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9344
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"
9257
if test ia64 = "$host_cpu"; then
9258
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9346
if test "$host_cpu" = ia64; then
9347
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9259
9348
allow_undefined_flag="-z nodefs"
9260
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"
9349
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"
9262
9351
# Determine the default libpath from the value encoded in an
9263
9352
# empty executable.
9264
if test set = "${lt_cv_aix_libpath+set}"; then
9353
if test "${lt_cv_aix_libpath+set}" = set; then
9265
9354
aix_libpath=$lt_cv_aix_libpath
9267
9356
if ${lt_cv_aix_libpath_+:} false; then :
9304
9393
aix_libpath=$lt_cv_aix_libpath_
9307
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9396
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9308
9397
# Warning - without using the other run time loading flags,
9309
9398
# -berok will link without error, but may produce a broken library.
9310
no_undefined_flag=' $wl-bernotok'
9311
allow_undefined_flag=' $wl-berok'
9312
if test yes = "$with_gnu_ld"; then
9399
no_undefined_flag=' ${wl}-bernotok'
9400
allow_undefined_flag=' ${wl}-berok'
9401
if test "$with_gnu_ld" = yes; then
9313
9402
# We only use this code for GNU lds that support --whole-archive.
9314
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9403
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9316
9405
# Exported symbols can be pulled into shared objects from archives
9317
9406
whole_archive_flag_spec='$convenience'
9319
9408
archive_cmds_need_lc=yes
9320
9409
# This is similar to how AIX traditionally builds its shared libraries.
9321
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'
9410
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'
9357
9446
# Tell ltmain to make .lib files, not .a files.
9359
9448
# Tell ltmain to make .dll files, not .so files.
9361
9450
# FIXME: Setting linknames here is a bad hack.
9362
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9363
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9364
cp "$export_symbols" "$output_objdir/$soname.def";
9365
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9367
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9369
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9451
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9452
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9453
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9455
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9457
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9371
9459
# The linker will not automatically build a static lib if we build a DLL.
9372
9460
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9373
9461
enable_shared_with_static_runtimes=yes
9415
9503
hardcode_direct=no
9416
9504
hardcode_automatic=yes
9417
9505
hardcode_shlibpath_var=unsupported
9418
if test yes = "$lt_cv_ld_force_load"; then
9419
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\"`'
9506
if test "$lt_cv_ld_force_load" = "yes"; then
9507
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\"`'
9422
9510
whole_archive_flag_spec=''
9424
9512
link_all_deplibs=yes
9425
allow_undefined_flag=$_lt_dar_allow_undefined
9513
allow_undefined_flag="$_lt_dar_allow_undefined"
9426
9514
case $cc_basename in
9427
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9515
ifort*) _lt_dar_can_shared=yes ;;
9428
9516
*) _lt_dar_can_shared=$GCC ;;
9430
if test yes = "$_lt_dar_can_shared"; then
9518
if test "$_lt_dar_can_shared" = "yes"; then
9431
9519
output_verbose_link_cmd=func_echo_all
9432
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9433
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9434
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"
9435
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"
9520
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9521
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9522
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}"
9523
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}"
9477
if test yes = "$GCC"; then
9478
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9565
if test "$GCC" = yes; then
9566
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9480
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9568
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'
9482
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9570
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483
9571
hardcode_libdir_separator=:
9484
9572
hardcode_direct=yes
9486
9574
# hardcode_minus_L: Not really in the search PATH,
9487
9575
# but as the default location of the library.
9488
9576
hardcode_minus_L=yes
9489
export_dynamic_flag_spec='$wl-E'
9577
export_dynamic_flag_spec='${wl}-E'
9493
if test yes,no = "$GCC,$with_gnu_ld"; then
9494
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9581
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9582
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9496
9584
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9498
if test no = "$with_gnu_ld"; then
9499
hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9586
if test "$with_gnu_ld" = no; then
9587
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500
9588
hardcode_libdir_separator=:
9501
9589
hardcode_direct=yes
9502
9590
hardcode_direct_absolute=yes
9503
export_dynamic_flag_spec='$wl-E'
9591
export_dynamic_flag_spec='${wl}-E'
9504
9592
# hardcode_minus_L: Not really in the search PATH,
9505
9593
# but as the default location of the library.
9506
9594
hardcode_minus_L=yes
9620
9708
rm -f core conftest.err conftest.$ac_objext \
9621
9709
conftest$ac_exeext conftest.$ac_ext
9622
LDFLAGS=$save_LDFLAGS
9710
LDFLAGS="$save_LDFLAGS"
9624
9712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9625
9713
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9626
if test yes = "$lt_cv_irix_exported_symbol"; then
9627
archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
9714
if test "$lt_cv_irix_exported_symbol" = yes; then
9715
archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9630
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'
9631
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'
9718
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'
9719
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'
9633
9721
archive_cmds_need_lc='no'
9634
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9722
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9635
9723
hardcode_libdir_separator=:
9636
9724
inherit_rpath=yes
9637
9725
link_all_deplibs=yes
9728
netbsd* | netbsdelf*-gnu)
9641
9729
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9642
9730
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9663
9751
if test -f /usr/libexec/ld.so; then
9664
9752
hardcode_direct=yes
9665
9753
hardcode_shlibpath_var=no
9666
9754
hardcode_direct_absolute=yes
9667
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9755
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9668
9756
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9669
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9670
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9671
export_dynamic_flag_spec='$wl-E'
9757
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9758
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9759
export_dynamic_flag_spec='${wl}-E'
9673
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9674
hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9762
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9763
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764
hardcode_libdir_flag_spec='-R$libdir'
9767
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9690
if test yes = "$GCC"; then
9691
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9692
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'
9786
if test "$GCC" = yes; then
9787
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788
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'
9694
9790
allow_undefined_flag=' -expect_unresolved \*'
9695
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'
9791
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'
9697
9793
archive_cmds_need_lc='no'
9698
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9794
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9699
9795
hardcode_libdir_separator=:
9702
9798
osf4* | osf5*) # as osf3* with the addition of -msym flag
9703
if test yes = "$GCC"; then
9704
allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9705
archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
9706
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9799
if test "$GCC" = yes; then
9800
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9801
archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9802
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9708
9804
allow_undefined_flag=' -expect_unresolved \*'
9709
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'
9805
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'
9710
9806
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~
9711
$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'
9807
$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'
9713
9809
# Both c and cxx compiler support -rpath directly
9714
9810
hardcode_libdir_flag_spec='-rpath $libdir'
9721
9817
no_undefined_flag=' -z defs'
9722
if test yes = "$GCC"; then
9724
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9818
if test "$GCC" = yes; then
9820
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9725
9821
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9726
$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9822
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9728
9824
case `$CC -V 2>&1` in
9729
9825
*"Compilers 5.0"*)
9731
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732
9828
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9733
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9829
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9737
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9833
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9738
9834
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9739
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9835
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9814
9910
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9815
no_undefined_flag='$wl-z,text'
9911
no_undefined_flag='${wl}-z,text'
9816
9912
archive_cmds_need_lc=no
9817
9913
hardcode_shlibpath_var=no
9818
9914
runpath_var='LD_RUN_PATH'
9820
if test yes = "$GCC"; then
9821
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9822
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916
if test "$GCC" = yes; then
9917
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9824
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9825
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9829
9925
sysv5* | sco3.2v5* | sco5v6*)
9830
# Note: We CANNOT use -z defs as we might desire, because we do not
9926
# Note: We can NOT use -z defs as we might desire, because we do not
9831
9927
# link with -lc, and that would cause any symbols used from libc to
9832
9928
# always be unresolved, which means just about no library would
9833
9929
# ever link correctly. If we're not using GNU ld we use -z text
9834
9930
# though, which does catch some bad symbols but isn't as heavy-handed
9836
no_undefined_flag='$wl-z,text'
9837
allow_undefined_flag='$wl-z,nodefs'
9932
no_undefined_flag='${wl}-z,text'
9933
allow_undefined_flag='${wl}-z,nodefs'
9838
9934
archive_cmds_need_lc=no
9839
9935
hardcode_shlibpath_var=no
9840
hardcode_libdir_flag_spec='$wl-R,$libdir'
9936
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9841
9937
hardcode_libdir_separator=':'
9842
9938
link_all_deplibs=yes
9843
export_dynamic_flag_spec='$wl-Bexport'
9939
export_dynamic_flag_spec='${wl}-Bexport'
9844
9940
runpath_var='LD_RUN_PATH'
9846
if test yes = "$GCC"; then
9847
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9848
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9942
if test "$GCC" = yes; then
9943
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9850
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9851
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140
10236
# Ok, now we have the path, separated by spaces, we can step through it
10141
# and add multilib dir if necessary...
10237
# and add multilib dir if necessary.
10142
10238
lt_tmp_lt_search_path_spec=
10143
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10144
# ...but if some path component already ends with the multilib dir we assume
10145
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10146
case "$lt_multi_os_dir; $lt_search_path_spec " in
10147
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10239
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10151
10240
for lt_sys_path in $lt_search_path_spec; do
10152
if test -d "$lt_sys_path$lt_multi_os_dir"; then
10153
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10154
elif test -n "$lt_multi_os_dir"; then
10241
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10242
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10155
10244
test -d "$lt_sys_path" && \
10156
10245
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10159
10248
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10160
BEGIN {RS = " "; FS = "/|\n";} {
10249
BEGIN {RS=" "; FS="/|\n";} {
10163
10252
for (lt_i = NF; lt_i > 0; lt_i--) {
10164
10253
if ($lt_i != "" && $lt_i != ".") {
10165
10254
if ($lt_i == "..") {
10168
10257
if (lt_count == 0) {
10169
lt_foo = "/" $lt_i lt_foo;
10258
lt_foo="/" $lt_i lt_foo;
10221
10310
need_lib_prefix=no
10222
10311
need_version=no
10223
10312
hardcode_into_libs=yes
10224
if test ia64 = "$host_cpu"; then
10313
if test "$host_cpu" = ia64; then
10225
10314
# AIX 5 supports IA64
10226
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10315
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10227
10316
shlibpath_var=LD_LIBRARY_PATH
10229
10318
# With GCC up to 2.95.x, collect2 would create an import file
10230
10319
# for dependence libraries. The import file would start with
10231
# the line '#! .'. This would cause the generated library to
10232
# depend on '.', always an invalid library. This was fixed in
10320
# the line `#! .'. This would cause the generated library to
10321
# depend on `.', always an invalid library. This was fixed in
10233
10322
# development snapshots of GCC prior to 3.0.
10234
10323
case $host_os in
10235
10324
aix4 | aix4.[01] | aix4.[01].*)
10236
10325
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10238
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10327
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10241
10330
can_build_shared=no
10245
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10334
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10246
10335
# soname into executable. Probably we can add versioning support to
10247
10336
# collect2, so additional links can be useful in future.
10248
if test yes = "$aix_use_runtimelinking"; then
10337
if test "$aix_use_runtimelinking" = yes; then
10249
10338
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10250
10339
# instead of lib<name>.a to let people know that these are not
10251
10340
# typical AIX shared libraries.
10252
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254
10343
# We preserve .a as extension for shared libraries through AIX4.2
10255
10344
# and later when we are not doing run time linking.
10256
library_names_spec='$libname$release.a $libname.a'
10257
soname_spec='$libname$release$shared_ext$major'
10345
library_names_spec='${libname}${release}.a $libname.a'
10346
soname_spec='${libname}${release}${shared_ext}$major'
10259
10348
shlibpath_var=LIBPATH
10588
10688
dynamic_linker=no
10592
version_type=none # Android doesn't support versioned libraries.
10595
library_names_spec='$libname$release$shared_ext'
10596
soname_spec='$libname$release$shared_ext'
10598
shlibpath_var=LD_LIBRARY_PATH
10599
shlibpath_overrides_runpath=yes
10601
# This implies no fast_install, which is unacceptable.
10602
# Some rework will be needed to allow for fast_install
10603
# before this can be enabled.
10604
hardcode_into_libs=yes
10606
dynamic_linker='Android linker'
10607
# Don't embed -rpath directories since the linker doesn't support them.
10608
hardcode_libdir_flag_spec='-L$libdir'
10611
10691
# This must be glibc/ELF.
10612
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10692
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10613
10693
version_type=linux # correct to gnu/linux during the next big refactor
10614
10694
need_lib_prefix=no
10615
10695
need_version=no
10616
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10617
soname_spec='$libname$release$shared_ext$major'
10696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697
soname_spec='${libname}${release}${shared_ext}$major'
10618
10698
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10619
10699
shlibpath_var=LD_LIBRARY_PATH
10620
10700
shlibpath_overrides_runpath=no
10702
10794
version_type=qnx
10703
10795
need_lib_prefix=no
10704
10796
need_version=no
10705
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10706
soname_spec='$libname$release$shared_ext$major'
10797
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798
soname_spec='${libname}${release}${shared_ext}$major'
10707
10799
shlibpath_var=LD_LIBRARY_PATH
10708
10800
shlibpath_overrides_runpath=no
10709
10801
hardcode_into_libs=yes
10710
10802
dynamic_linker='ldqnx.so'
10713
openbsd* | bitrig*)
10714
10806
version_type=sunos
10715
sys_lib_dlsearch_path_spec=/usr/lib
10807
sys_lib_dlsearch_path_spec="/usr/lib"
10716
10808
need_lib_prefix=no
10717
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10722
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10809
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10811
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10812
*) need_version=no ;;
10814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10723
10815
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10724
10816
shlibpath_var=LD_LIBRARY_PATH
10725
shlibpath_overrides_runpath=yes
10817
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10819
openbsd2.[89] | openbsd2.[89].*)
10820
shlibpath_overrides_runpath=no
10823
shlibpath_overrides_runpath=yes
10827
shlibpath_overrides_runpath=yes
10729
10832
libname_spec='$name'
10731
10834
need_lib_prefix=no
10732
library_names_spec='$libname$shared_ext $libname.a'
10835
library_names_spec='$libname${shared_ext} $libname.a'
10733
10836
dynamic_linker='OS/2 ld.exe'
10734
10837
shlibpath_var=LIBPATH
15070
15161
# Extract the definition of DEPDIR, am__include, and am__quote
15071
# from the Makefile without running `make'.
15162
# from the Makefile without running 'make'.
15072
15163
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15073
15164
test -z "$DEPDIR" && continue
15074
15165
am__include=`sed -n 's/^am__include = //p' < "$mf"`
15075
test -z "am__include" && continue
15166
test -z "$am__include" && continue
15076
15167
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15077
# When using ansi2knr, U may be empty or an underscore; expand it
15078
U=`sed -n 's/^U = //p' < "$mf"`
15079
15168
# Find all dependency output files, they are included files with
15080
15169
# $(DEPDIR) in their names. We invoke sed twice because it is the
15081
15170
# simplest approach to changing $(DEPDIR) to its actual value in the
15083
15172
for file in `sed -n "
15084
15173
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15085
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15174
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15086
15175
# Make sure the directory exists.
15087
15176
test -f "$dirpart/$file" && continue
15088
15177
fdir=`$as_dirname -- "$file" ||
15587
15670
sed '$q' "$ltmain" >> "$cfgfile" \
15588
15671
|| (rm -f "$cfgfile"; exit 1)
15673
if test x"$xsi_shell" = xyes; then
15674
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15678
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15679
\ * ) func_dirname_result="${3}" ;;\
15681
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15682
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15683
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15684
test 0 -eq $? || _lt_function_replace_fail=:
15687
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15690
\ func_basename_result="${1##*/}"\
15691
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15692
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15693
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15694
test 0 -eq $? || _lt_function_replace_fail=:
15697
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15698
func_dirname_and_basename ()\
15701
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15702
\ * ) func_dirname_result="${3}" ;;\
15704
\ func_basename_result="${1##*/}"\
15705
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15706
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15707
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15708
test 0 -eq $? || _lt_function_replace_fail=:
15711
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15714
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15715
\ # positional parameters, so assign one to ordinary parameter first.\
15716
\ func_stripname_result=${3}\
15717
\ func_stripname_result=${func_stripname_result#"${1}"}\
15718
\ func_stripname_result=${func_stripname_result%"${2}"}\
15719
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15720
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15721
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15722
test 0 -eq $? || _lt_function_replace_fail=:
15725
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15726
func_split_long_opt ()\
15728
\ func_split_long_opt_name=${1%%=*}\
15729
\ func_split_long_opt_arg=${1#*=}\
15730
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15731
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15732
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15733
test 0 -eq $? || _lt_function_replace_fail=:
15736
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15737
func_split_short_opt ()\
15739
\ func_split_short_opt_arg=${1#??}\
15740
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15741
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15742
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15743
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15744
test 0 -eq $? || _lt_function_replace_fail=:
15747
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15751
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15752
\ *) func_lo2o_result=${1} ;;\
15754
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15755
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15756
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15757
test 0 -eq $? || _lt_function_replace_fail=:
15760
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15763
func_xform_result=${1%.*}.lo\
15764
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15765
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15766
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15767
test 0 -eq $? || _lt_function_replace_fail=:
15770
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15773
func_arith_result=$(( $* ))\
15774
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15775
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15776
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15777
test 0 -eq $? || _lt_function_replace_fail=:
15780
sed -e '/^func_len ()$/,/^} # func_len /c\
15783
func_len_result=${#1}\
15784
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15785
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15786
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15787
test 0 -eq $? || _lt_function_replace_fail=:
15791
if test x"$lt_shell_append" = xyes; then
15792
sed -e '/^func_append ()$/,/^} # func_append /c\
15795
eval "${1}+=\\${2}"\
15796
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15797
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15798
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15799
test 0 -eq $? || _lt_function_replace_fail=:
15802
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15803
func_append_quoted ()\
15805
\ func_quote_for_eval "${2}"\
15806
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15807
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15808
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15809
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15810
test 0 -eq $? || _lt_function_replace_fail=:
15813
# Save a `func_append' function call where possible by direct use of '+='
15814
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15815
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15816
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15817
test 0 -eq $? || _lt_function_replace_fail=:
15819
# Save a `func_append' function call even when '+=' is not available
15820
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15821
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15822
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15823
test 0 -eq $? || _lt_function_replace_fail=:
15826
if test x"$_lt_function_replace_fail" = x":"; then
15827
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15828
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15590
15832
mv -f "$cfgfile" "$ofile" ||
15591
15833
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15592
15834
chmod +x "$ofile"