3188
3169
rm -f conftest*])
3171
# _LT_REQUIRED_DARWIN_CHECKS
3172
# --------------------------
3173
# Check for some things on darwin
3174
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
3176
rhapsody* | darwin*)
3177
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
3178
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
3180
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
3181
[lt_cv_apple_cc_single_mod=no
3182
if test -z "${LT_MULTI_MODULE}"; then
3183
# By default we will add the -single_module flag. You can override
3184
# by either setting the environment variable LT_MULTI_MODULE
3185
# non-empty at configure time, or by adding -multi_module to the
3187
echo "int foo(void){return 1;}" > conftest.c
3188
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
3189
-dynamiclib ${wl}-single_module conftest.c
3190
if test -f libconftest.dylib; then
3191
lt_cv_apple_cc_single_mod=yes
3192
rm -rf libconftest.dylib*
3196
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
3197
[lt_cv_ld_exported_symbols_list],
3198
[lt_cv_ld_exported_symbols_list=no
3199
save_LDFLAGS=$LDFLAGS
3200
echo "_main" > conftest.sym
3201
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
3202
_LT_AC_TRY_LINK([lt_cv_ld_exported_symbols_list=yes],[lt_cv_ld_exported_symbols_list=no])
3203
LDFLAGS="$save_LDFLAGS"
3206
rhapsody* | darwin1.[[0123]])
3207
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
3209
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3211
# if running on 10.5 or later, the deployment target defaults
3212
# to the OS version, if on x86, and 10.4, the deployment
3213
# target defaults to 10.4. Don't you love it?
3214
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
3215
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
3216
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
3218
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
3220
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
3224
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
3225
_lt_dar_single_mod='$single_module'
3227
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
3228
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
3230
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
3232
if test "$DSYMUTIL" != ":"; then
3233
_lt_dsymutil="~$DSYMUTIL \$lib || :"
3191
3241
# _LT_AC_SYS_LIBPATH_AIX
3192
3242
# ----------------------
3634
3720
elif test -x /usr/sbin/sysctl; then
3635
3721
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3637
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3723
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3639
3725
# And add a safety zone
3640
3726
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3641
3727
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3731
# We know the value 262144 and hardcode it with a safety zone (like BSD)
3732
lt_cv_sys_max_cmd_len=196608
3644
3736
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3645
3737
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3646
3738
# nice to cause kernel panics so lets avoid the loop below.
3647
3739
# First set a reasonable default.
3648
3740
lt_cv_sys_max_cmd_len=16384
3650
3742
if test -x /sbin/sysconfig; then
3651
3743
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3652
3744
*1*) lt_cv_sys_max_cmd_len=-1 ;;
3749
lt_cv_sys_max_cmd_len=102400
3751
sysv5* | sco5v6* | sysv4.2uw2*)
3752
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3753
if test -n "$kargmax"; then
3754
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
3756
lt_cv_sys_max_cmd_len=32768
3657
# If test is not a shell built-in, we'll probably end up computing a
3658
# maximum length that is only half of the actual maximum length, but
3660
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3661
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
3760
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3761
if test -n "$lt_cv_sys_max_cmd_len"; then
3762
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3763
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3765
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3766
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
3662
3767
= "XX$teststring") >/dev/null 2>&1 &&
3663
new_result=`expr "X$teststring" : ".*" 2>&1` &&
3664
lt_cv_sys_max_cmd_len=$new_result &&
3665
test $i != 17 # 1/2 MB should be enough
3668
teststring=$teststring$teststring
3671
# Add a significant safety factor because C++ compilers can tack on massive
3672
# amounts of additional arguments before passing them to the linker.
3673
# It appears as though 1/2 is a usable value.
3674
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3768
new_result=`expr "X$teststring" : ".*" 2>&1` &&
3769
lt_cv_sys_max_cmd_len=$new_result &&
3770
test $i != 17 # 1/2 MB should be enough
3773
teststring=$teststring$teststring
3776
# Add a significant safety factor because C++ compilers can tack on massive
3777
# amounts of additional arguments before passing them to the linker.
3778
# It appears as though 1/2 is a usable value.
3779
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4075
4186
version_type=none
4076
4187
dynamic_linker="$host_os ld.so"
4077
4188
sys_lib_dlsearch_path_spec="/lib /usr/lib"
4078
4190
if test "$GCC" = yes; then
4079
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4080
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4192
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4193
*) lt_awk_arg="/^libraries:/" ;;
4195
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4196
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
4081
4197
# if the path contains ";" then we assume it to be the separator
4082
4198
# otherwise default to the standard path separator (i.e. ":") - it is
4083
4199
# assumed that no part of a normal pathname contains ";" but that should
4084
4200
# okay in the real world where ";" in dirpaths is itself problematic.
4085
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4201
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4087
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4203
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4205
# Ok, now we have the path, separated by spaces, we can step through it
4206
# and add multilib dir if necessary.
4207
lt_tmp_lt_search_path_spec=
4208
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4209
for lt_sys_path in $lt_search_path_spec; do
4210
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
4211
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
4213
test -d "$lt_sys_path" && \
4214
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4217
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
4218
BEGIN {RS=" "; FS="/|\n";} {
4221
for (lt_i = NF; lt_i > 0; lt_i--) {
4222
if ($lt_i != "" && $lt_i != ".") {
4223
if ($lt_i == "..") {
4226
if (lt_count == 0) {
4227
lt_foo="/" $lt_i lt_foo;
4234
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4235
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4237
sys_lib_search_path_spec=`echo $lt_search_path_spec`
4090
4239
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4092
4241
need_lib_prefix=unknown
4093
4242
hardcode_into_libs=no
5292
5442
# Let the user override the test.
5293
5443
lt_cv_path_NM="$NM"
5295
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5298
test -z "$ac_dir" && ac_dir=.
5299
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5300
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5301
# Check to see if the nm accepts a BSD-compat flag.
5302
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5303
# nm: unknown option "B" ignored
5304
# Tru64's nm complains that /dev/null is an invalid object file
5305
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5306
*/dev/null* | *'Invalid file or object type'*)
5307
lt_cv_path_NM="$tmp_nm -B"
5311
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5313
lt_cv_path_NM="$tmp_nm -p"
5445
lt_nm_to_check="${ac_tool_prefix}nm"
5446
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5447
lt_nm_to_check="$lt_nm_to_check nm"
5449
for lt_tmp_nm in $lt_nm_to_check; do
5450
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5451
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5453
test -z "$ac_dir" && ac_dir=.
5454
tmp_nm="$ac_dir/$lt_tmp_nm"
5455
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5456
# Check to see if the nm accepts a BSD-compat flag.
5457
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5458
# nm: unknown option "B" ignored
5459
# Tru64's nm complains that /dev/null is an invalid object file
5460
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5461
*/dev/null* | *'Invalid file or object type'*)
5462
lt_cv_path_NM="$tmp_nm -B"
5317
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5318
continue # so that we can try to find one that supports BSD flags
5466
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5468
lt_cv_path_NM="$tmp_nm -p"
5472
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5473
continue # so that we can try to find one that supports BSD flags
5325
5482
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5327
5484
NM="$lt_cv_path_NM"
5885
5978
echo EXPORTS > $output_objdir/$soname.def;
5886
5979
cat $export_symbols >> $output_objdir/$soname.def;
5888
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5981
$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'
5890
5983
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5893
5986
darwin* | rhapsody*)
5895
rhapsody* | darwin1.[[012]])
5896
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5899
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5900
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5902
case ${MACOSX_DEPLOYMENT_TARGET} in
5904
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5907
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5913
5987
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5914
5988
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5915
5989
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5916
5990
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5917
5991
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5918
5992
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5920
if test "$GXX" = yes ; then
5921
lt_int_apple_cc_single_mod=no
5993
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
5994
if test "$GXX" = yes ; then
5922
5995
output_verbose_link_cmd='echo'
5923
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5924
lt_int_apple_cc_single_mod=yes
5996
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
5997
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
5998
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
5999
_LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
6000
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
6001
_LT_AC_TAGVAR(archive_cmds, $1)="\$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}"
6002
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
5926
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5927
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5929
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
5931
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5932
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5933
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5934
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5936
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5938
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5940
6005
case $cc_basename in
5942
6007
output_verbose_link_cmd='echo'
5943
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6008
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5944
6009
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5945
6010
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5946
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6011
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5947
6012
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6486
6567
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6569
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6571
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6491
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6492
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6578
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6579
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6580
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6581
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6582
runpath_var='LD_RUN_PATH'
6584
case $cc_basename in
6586
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6587
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6590
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6591
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6595
sysv5* | sco3.2v5* | sco5v6*)
6596
# Note: We can NOT use -z defs as we might desire, because we do not
6597
# link with -lc, and that would cause any symbols used from libc to
6598
# always be unresolved, which means just about no library would
6599
# ever link correctly. If we're not using GNU ld we use -z text
6600
# though, which does catch some bad symbols but isn't as heavy-handed
6602
# For security reasons, it is highly recommended that you always
6603
# use absolute paths for naming shared libraries, and exclude the
6604
# DT_RUNPATH tag from executables and libraries. But doing so
6605
# requires that you compile everything twice, which is a pain.
6606
# So that behaviour is only enabled if SCOABSPATH is set to a
6607
# non-empty value in the environment. Most likely only useful for
6608
# creating official distributions of packages.
6609
# This is a hack until libtool officially supports absolute path
6610
# names for shared libraries.
6611
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6612
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6613
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6614
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6615
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6616
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6617
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6618
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6619
runpath_var='LD_RUN_PATH'
6621
case $cc_basename in
6623
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6624
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6627
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6628
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6495
6633
case $cc_basename in
6680
6817
$rm -f confest.$objext
6819
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
6820
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6821
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6682
6824
# PORTME: override above test on systems where it is broken
6683
6825
ifelse([$1],[CXX],
6684
6826
[case $host_os in
6828
# Interix 3.5 installs completely hosed .la files for C++, so rather than
6829
# hack all around it, let's just trust "g++" to DTRT.
6830
_LT_AC_TAGVAR(predep_objects,$1)=
6831
_LT_AC_TAGVAR(postdep_objects,$1)=
6832
_LT_AC_TAGVAR(postdeps,$1)=
6836
case `$CC -V 2>&1 | sed 5q` in
6840
# The more standards-conforming stlport4 library is
6841
# incompatible with the Cstd library. Avoid specifying
6842
# it if it's in CXXFLAGS. Ignore libCrun as
6843
# -library=stlport4 depends on it.
6844
case " $CXX $CXXFLAGS " in
6845
*" -library=stlport4 "*)
6846
solaris_use_stlport4=yes
6849
if test "$solaris_use_stlport4" != yes; then
6850
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6686
6857
case $cc_basename in
6859
# The more standards-conforming stlport4 library is
6860
# incompatible with the Cstd library. Avoid specifying
6861
# it if it's in CXXFLAGS. Ignore libCrun as
6862
# -library=stlport4 depends on it.
6863
case " $CXX $CXXFLAGS " in
6864
*" -library=stlport4 "*)
6865
solaris_use_stlport4=yes
6688
6869
# Adding this requires a known-good setup of shared libraries for
6689
6870
# Sun compiler versions before 5.6, else PIC objects from an old
6690
6871
# archive will be linked into the output, leading to subtle bugs.
6691
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
6872
if test "$solaris_use_stlport4" != yes; then
6873
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6697
6880
case " $_LT_AC_TAGVAR(postdeps, $1) " in
6698
6881
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6700
6883
])# AC_LIBTOOL_POSTDEP_PREDEP
6702
# AC_LIBTOOL_LANG_F77_CONFIG
6703
# ------------------------
6704
# Ensure that the configuration vars for the C compiler are
6705
# suitably defined. Those variables are subsequently used by
6706
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6707
#AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
6708
#AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
6709
#[AC_REQUIRE([AC_PROG_F77])
6713
#_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6714
#_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6715
#_LT_AC_TAGVAR(always_export_symbols, $1)=no
6716
#_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6717
#_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6718
#_LT_AC_TAGVAR(hardcode_direct, $1)=no
6719
#_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6720
#_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6721
#_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6722
#_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6723
#_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6724
#_LT_AC_TAGVAR(module_cmds, $1)=
6725
#_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6726
#_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6727
#_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6728
#_LT_AC_TAGVAR(no_undefined_flag, $1)=
6729
#_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6730
#_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6732
## Source file extension for f77 test sources.
6735
## Object file extension for compiled f77 test sources.
6737
#_LT_AC_TAGVAR(objext, $1)=$objext
6739
## Code to be used in simple compile tests
6740
#lt_simple_compile_test_code=" subroutine t\n return\n end\n"
6742
## Code to be used in simple link tests
6743
#lt_simple_link_test_code=" program t\n end\n"
6745
## ltmain only uses $CC for tagged configurations so make sure $CC is set.
6746
#_LT_AC_SYS_COMPILER
6748
## save warnings/boilerplate of simple test code
6749
#_LT_COMPILER_BOILERPLATE
6750
#_LT_LINKER_BOILERPLATE
6752
## Allow CC to be a program name with arguments.
6756
#_LT_AC_TAGVAR(compiler, $1)=$CC
6757
#_LT_CC_BASENAME([$compiler])
6759
#AC_MSG_CHECKING([if libtool supports shared libraries])
6760
#AC_MSG_RESULT([$can_build_shared])
6762
#AC_MSG_CHECKING([whether to build shared libraries])
6763
#test "$can_build_shared" = "no" && enable_shared=no
6765
## On AIX, shared libraries and static libraries use the same namespace, and
6766
## are all built from PIC.
6769
# test "$enable_shared" = yes && enable_static=no
6770
# if test -n "$RANLIB"; then
6771
# archive_cmds="$archive_cmds~\$RANLIB \$lib"
6772
# postinstall_cmds='$RANLIB $lib'
6776
# if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6777
# test "$enable_shared" = yes && enable_static=no
6781
#AC_MSG_RESULT([$enable_shared])
6783
#AC_MSG_CHECKING([whether to build static libraries])
6784
## Make sure either enable_shared or enable_static is yes.
6785
#test "$enable_shared" = yes || enable_static=yes
6786
#AC_MSG_RESULT([$enable_static])
6788
#test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6790
#_LT_AC_TAGVAR(GCC, $1)="$G77"
6791
#_LT_AC_TAGVAR(LD, $1)="$LD"
6793
#AC_LIBTOOL_PROG_COMPILER_PIC($1)
6794
#AC_LIBTOOL_PROG_CC_C_O($1)
6795
#AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6796
#AC_LIBTOOL_PROG_LD_SHLIBS($1)
6797
#AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6798
#AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6799
#AC_LIBTOOL_SYS_LIB_STRIP
6802
#AC_LIBTOOL_CONFIG($1)
6806
#])# AC_LIBTOOL_LANG_F77_CONFIG
6809
# AC_LIBTOOL_LANG_GCJ_CONFIG
6810
# --------------------------
6811
# Ensure that the configuration vars for the C compiler are
6812
# suitably defined. Those variables are subsequently used by
6813
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6814
#AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
6815
#AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
6818
## Source file extension for Java test sources.
6821
## Object file extension for compiled Java test sources.
6823
#_LT_AC_TAGVAR(objext, $1)=$objext
6825
## Code to be used in simple compile tests
6826
#lt_simple_compile_test_code="class foo {}\n"
6828
## Code to be used in simple link tests
6829
#lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
6831
## ltmain only uses $CC for tagged configurations so make sure $CC is set.
6832
#_LT_AC_SYS_COMPILER
6834
## save warnings/boilerplate of simple test code
6835
#_LT_COMPILER_BOILERPLATE
6836
#_LT_LINKER_BOILERPLATE
6838
## Allow CC to be a program name with arguments.
6842
#_LT_AC_TAGVAR(compiler, $1)=$CC
6843
#_LT_CC_BASENAME([$compiler])
6845
## GCJ did not exist at the time GCC didn't implicitly link libc in.
6846
#_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6848
#_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6851
### There is no encapsulation within the following macros, do not change
6852
### the running order or otherwise move them around unless you know exactly
6853
### what you are doing...
6854
#AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
6855
#AC_LIBTOOL_PROG_COMPILER_PIC($1)
6856
#AC_LIBTOOL_PROG_CC_C_O($1)
6857
#AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6858
#AC_LIBTOOL_PROG_LD_SHLIBS($1)
6859
#AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6860
#AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6861
#AC_LIBTOOL_SYS_LIB_STRIP
6862
#AC_LIBTOOL_DLOPEN_SELF($1)
6864
#AC_LIBTOOL_CONFIG($1)
6868
#])# AC_LIBTOOL_LANG_GCJ_CONFIG
6871
# AC_LIBTOOL_LANG_RC_CONFIG
6872
# --------------------------
6873
# Ensure that the configuration vars for the Windows resource compiler are
6874
# suitably defined. Those variables are subsequently used by
6875
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
6876
#AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
6877
#AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
6880
## Source file extension for RC test sources.
6883
## Object file extension for compiled RC test sources.
6885
#_LT_AC_TAGVAR(objext, $1)=$objext
6887
## Code to be used in simple compile tests
6888
#lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
6890
## Code to be used in simple link tests
6891
#lt_simple_link_test_code="$lt_simple_compile_test_code"
6893
## ltmain only uses $CC for tagged configurations so make sure $CC is set.
6894
#_LT_AC_SYS_COMPILER
6896
## save warnings/boilerplate of simple test code
6897
#_LT_COMPILER_BOILERPLATE
6898
#_LT_LINKER_BOILERPLATE
6900
## Allow CC to be a program name with arguments.
6904
#_LT_AC_TAGVAR(compiler, $1)=$CC
6905
#_LT_CC_BASENAME([$compiler])
6906
#_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6908
#AC_LIBTOOL_CONFIG($1)
6912
#])# AC_LIBTOOL_LANG_RC_CONFIG
6915
6885
# AC_LIBTOOL_CONFIG([TAGNAME])
6916
6886
# ----------------------------
6917
6887
# If TAGNAME is not passed, then create an initial libtool script
8589
8691
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8590
8692
if test "$GCC" = yes ; then
8591
8693
output_verbose_link_cmd='echo'
8592
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8593
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8594
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8595
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8596
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8694
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8695
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8696
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}"
8697
_LT_AC_TAGVAR(module_expsym_cmds, $1)="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}"
8598
8699
case $cc_basename in
8600
8701
output_verbose_link_cmd='echo'
8601
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8702
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8602
8703
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8603
8704
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8604
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8705
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8605
8706
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8664
8765
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8769
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8770
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8774
if test "$with_gnu_ld" = no; then
8775
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8776
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8778
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8779
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8781
# hardcode_minus_L: Not really in the search PATH,
8782
# but as the default location of the library.
8783
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8668
8788
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8669
8789
case $host_cpu in
8671
8791
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8794
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8674
8797
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8678
8801
case $host_cpu in
8680
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8803
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8806
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8683
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8809
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8687
8813
if test "$with_gnu_ld" = no; then
8814
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8815
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8688
8817
case $host_cpu in
8690
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8691
8819
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8692
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8693
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8694
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8697
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8698
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8699
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8701
# hardcode_minus_L: Not really in the search PATH,
8702
# but as the default location of the library.
8703
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8820
_LT_AC_TAGVAR(hardcode_direct, $1)=no
8821
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8706
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8707
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8708
8824
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8709
8825
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8751
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8752
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8753
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8754
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8755
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8756
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8757
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8867
if test -f /usr/libexec/ld.so; then
8868
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8869
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8870
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8871
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8872
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8873
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8874
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8877
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8878
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8879
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8882
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8883
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8760
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8761
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8765
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8766
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8888
_LT_AC_TAGVAR(ld_shlibs, $1)=no
8903
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8904
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8905
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8906
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8907
hardcode_runpath_var=yes
8908
runpath_var=LD_RUN_PATH
8911
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8912
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
8913
if test "$GCC" = yes; then
8914
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8916
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8918
runpath_var='LD_RUN_PATH'
8919
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8923
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
8924
# $CC -shared without GNU ld will not create a library from C++
8925
# object files and a static libstdc++, better avoid it by now
8926
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8928
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8929
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8930
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8931
runpath_var='LD_RUN_PATH'
9013
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
9014
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9015
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9016
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9017
runpath_var='LD_RUN_PATH'
9019
if test "$GCC" = yes; then
9020
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9021
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9023
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9024
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028
sysv5* | sco3.2v5* | sco5v6*)
9029
# Note: We can NOT use -z defs as we might desire, because we do not
9030
# link with -lc, and that would cause any symbols used from libc to
9031
# always be unresolved, which means just about no library would
9032
# ever link correctly. If we're not using GNU ld we use -z text
9033
# though, which does catch some bad symbols but isn't as heavy-handed
9035
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9036
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
9037
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9038
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9039
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9040
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
9041
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9042
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9043
runpath_var='LD_RUN_PATH'
9045
if test "$GCC" = yes; then
9046
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9047
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9049
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9050
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'