650
670
LDFLAGS="$LDFLAGS $3"
651
671
printf "$lt_simple_link_test_code" > conftest.$ac_ext
652
672
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
653
# The compiler can only warn and ignore the option if not recognized
673
# The linker can only warn and ignore the option if not recognized
654
674
# So say no if there are warnings
655
675
if test -s conftest.err; then
656
676
# Append any errors to the config.log.
657
677
cat conftest.err 1>&AS_MESSAGE_LOG_FD
658
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
659
$SED '/^$/d' conftest.err >conftest.er2
678
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
679
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
660
680
if diff conftest.exp conftest.er2 >/dev/null; then
725
745
elif test -x /usr/sbin/sysctl; then
726
746
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
728
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
748
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
730
750
# And add a safety zone
731
751
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
732
752
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
756
# We know the value 262144 and hardcode it with a safety zone (like BSD)
757
lt_cv_sys_max_cmd_len=196608
735
761
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
736
762
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
737
763
# nice to cause kernel panics so lets avoid the loop below.
738
764
# First set a reasonable default.
739
765
lt_cv_sys_max_cmd_len=16384
741
767
if test -x /sbin/sysconfig; then
742
768
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
743
769
*1*) lt_cv_sys_max_cmd_len=-1 ;;
774
lt_cv_sys_max_cmd_len=102400
776
sysv5* | sco5v6* | sysv4.2uw2*)
777
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
778
if test -n "$kargmax"; then
779
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
781
lt_cv_sys_max_cmd_len=32768
748
785
# If test is not a shell built-in, we'll probably end up computing a
749
786
# maximum length that is only half of the actual maximum length, but
1016
1055
# The compiler can only warn and ignore the option if not recognized
1017
1056
# So say no if there are warnings
1018
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1019
$SED '/^$/d' out/conftest.err >out/conftest.er2
1020
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1057
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1058
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1059
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1021
1060
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1063
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1026
1065
# SGI C++ compiler will create directory out/ii_files/ for
1027
1066
# template instantiation
1334
1374
soname_spec='${libname}${release}${major}$shared_ext'
1335
1375
shlibpath_overrides_runpath=yes
1336
1376
shlibpath_var=DYLD_LIBRARY_PATH
1337
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
1377
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1338
1378
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1339
1379
if test "$GCC" = yes; then
1340
1380
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1764
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1765
version_type=freebsd-elf
1768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1769
soname_spec='${libname}${release}${shared_ext}$major'
1770
shlibpath_var=LD_LIBRARY_PATH
1771
hardcode_into_libs=yes
1772
if test "$with_gnu_ld" = yes; then
1773
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1774
shlibpath_overrides_runpath=no
1776
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1777
shlibpath_overrides_runpath=yes
1780
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1784
sys_lib_dlsearch_path_spec='/usr/lib'
1703
1788
version_type=linux
1704
1789
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2369
2466
# Let the user override the test.
2370
2467
lt_cv_path_NM="$NM"
2372
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2373
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2375
test -z "$ac_dir" && ac_dir=.
2376
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2377
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2378
# Check to see if the nm accepts a BSD-compat flag.
2379
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2380
# nm: unknown option "B" ignored
2381
# Tru64's nm complains that /dev/null is an invalid object file
2382
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2383
*/dev/null* | *'Invalid file or object type'*)
2384
lt_cv_path_NM="$tmp_nm -B"
2388
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2390
lt_cv_path_NM="$tmp_nm -p"
2469
lt_nm_to_check="${ac_tool_prefix}nm"
2470
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2471
lt_nm_to_check="$lt_nm_to_check nm"
2473
for lt_tmp_nm in $lt_nm_to_check; do
2474
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2475
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2477
test -z "$ac_dir" && ac_dir=.
2478
tmp_nm="$ac_dir/$lt_tmp_nm"
2479
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2480
# Check to see if the nm accepts a BSD-compat flag.
2481
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2482
# nm: unknown option "B" ignored
2483
# Tru64's nm complains that /dev/null is an invalid object file
2484
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2485
*/dev/null* | *'Invalid file or object type'*)
2486
lt_cv_path_NM="$tmp_nm -B"
2394
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2395
continue # so that we can try to find one that supports BSD flags
2490
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2492
lt_cv_path_NM="$tmp_nm -p"
2496
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2497
continue # so that we can try to find one that supports BSD flags
2402
2506
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2404
2508
NM="$lt_cv_path_NM"
2430
2534
# -----------------------------------
2431
2535
# sets LIBLTDL to the link flags for the libltdl convenience library and
2432
2536
# LTDLINCL to the include flags for the libltdl header and adds
2433
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
2434
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2435
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
2436
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
2437
# '${top_srcdir}/' (note the single quotes!). If your package is not
2438
# flat and you're not using automake, define top_builddir and
2439
# top_srcdir appropriately in the Makefiles.
2537
# --enable-ltdl-convenience to the configure arguments. Note that
2538
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2539
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2540
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2541
# (note the single quotes!). If your package is not flat and you're not
2542
# using automake, define top_builddir and top_srcdir appropriately in
2440
2544
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2441
2545
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2442
2546
case $enable_ltdl_convenience in
2455
2559
# -----------------------------------
2456
2560
# sets LIBLTDL to the link flags for the libltdl installable library and
2457
2561
# LTDLINCL to the include flags for the libltdl header and adds
2458
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
2459
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
2460
# DIRECTORY is not provided and an installed libltdl is not found, it is
2461
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
2462
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
2463
# quotes!). If your package is not flat and you're not using automake,
2464
# define top_builddir and top_srcdir appropriately in the Makefiles.
2562
# --enable-ltdl-install to the configure arguments. Note that
2563
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2564
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2565
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2566
# '${top_srcdir}/' (note the single quotes!). If your package is not
2567
# flat and you're not using automake, define top_builddir and top_srcdir
2568
# appropriately in the Makefiles.
2465
2569
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2466
2570
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2467
2571
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2590
2694
_LT_COMPILER_BOILERPLATE
2591
2695
_LT_LINKER_BOILERPLATE
2594
# Check for any special shared library compilation flags.
2596
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2597
if test "$GCC" = no; then
2600
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2604
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2605
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2606
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2608
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2609
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2615
# Check to make sure the static flag actually works.
2617
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2618
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2619
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2621
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2624
2697
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2625
2698
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2626
2699
AC_LIBTOOL_PROG_CC_C_O($1)
2904
2980
_LT_AC_SYS_LIBPATH_AIX
2905
2981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2907
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2983
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2909
2985
if test "$host_cpu" = ia64; then
2910
2986
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2911
2987
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2912
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2988
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
2914
2990
# Determine the default libpath from the value encoded in an empty executable.
2915
2991
_LT_AC_SYS_LIBPATH_AIX
2918
2994
# -berok will link without error, but may produce a broken library.
2919
2995
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2920
2996
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2921
# -bexpall does not export symbols beginning with underscore (_)
2922
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2923
2997
# Exported symbols can be pulled into shared objects from archives
2924
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2998
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2925
2999
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2926
# This is similar to how AIX traditionally builds it's shared libraries.
2927
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3000
# This is similar to how AIX traditionally builds its shared libraries.
3001
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
3007
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3008
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3009
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3010
# support --undefined. This deserves some investigation. FIXME
3011
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3013
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2932
3018
case $cc_basename in
3000
3085
_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'
3002
3087
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3003
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3088
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3004
3089
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3005
3090
_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}'
3013
3098
output_verbose_link_cmd='echo'
3014
3099
_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'
3015
3100
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3016
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3101
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3017
3102
_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}'
3018
3103
_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}'
3094
3179
hpux10*|hpux11*)
3095
3180
if test $with_gnu_ld = no; then
3098
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3182
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3099
3186
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3100
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3103
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3106
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3107
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3108
3189
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3114
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3115
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3118
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3119
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3120
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3121
# but as the default
3122
# location of the library.
3195
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3196
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3125
3199
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3256
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3257
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3259
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3260
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3261
# Instead, shared libraries are loaded at an image base (0x10000000 by
3262
# default) and relocated if they conflict, which is a slow very memory
3263
# consuming and fragmenting process. To avoid this, we pick a random,
3264
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3265
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3266
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3267
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
3175
3269
irix5* | irix6*)
3176
3270
case $cc_basename in
3254
3348
# Portland Group C++ compiler
3255
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3256
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3349
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3350
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3258
3352
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3259
3353
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3260
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3354
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3489
3570
case $cc_basename in
3491
3572
# Sun C++ 4.2, 5.x and Centerline C++
3573
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3492
3574
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3493
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3575
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3494
3576
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3495
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3577
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3497
3579
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3498
3580
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3513
3595
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3515
# Commands to make compiler produce verbose output that lists
3516
# what "hidden" libraries, object files and flags are used when
3517
# linking a shared library.
3519
# There doesn't appear to be a way to prevent this compiler from
3520
# explicitly linking system object files so we need to strip them
3521
# from the output so that they don't get included in the library
3523
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3597
output_verbose_link_cmd='echo'
3525
3599
# Archives containing C++ object files must be created using
3526
3600
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3569
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3570
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3643
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3644
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3645
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3646
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3647
runpath_var='LD_RUN_PATH'
3649
case $cc_basename in
3651
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3652
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3655
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3656
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3660
sysv5* | sco3.2v5* | sco5v6*)
3661
# Note: We can NOT use -z defs as we might desire, because we do not
3662
# link with -lc, and that would cause any symbols used from libc to
3663
# always be unresolved, which means just about no library would
3664
# ever link correctly. If we're not using GNU ld we use -z text
3665
# though, which does catch some bad symbols but isn't as heavy-handed
3667
# For security reasons, it is highly recommended that you always
3668
# use absolute paths for naming shared libraries, and exclude the
3669
# DT_RUNPATH tag from executables and libraries. But doing so
3670
# requires that you compile everything twice, which is a pain.
3671
# So that behaviour is only enabled if SCOABSPATH is set to a
3672
# non-empty value in the environment. Most likely only useful for
3673
# creating official distributions of packages.
3674
# This is a hack until libtool officially supports absolute path
3675
# names for shared libraries.
3676
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3677
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3678
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3679
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3680
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3681
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3682
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3683
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3684
runpath_var='LD_RUN_PATH'
3686
case $cc_basename in
3688
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3689
_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'
3692
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3693
_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'
3573
3698
case $cc_basename in
3754
3877
$rm -f confest.$objext
3879
# PORTME: override above test on systems where it is broken
3883
# Interix 3.5 installs completely hosed .la files for C++, so rather than
3884
# hack all around it, let's just trust "g++" to DTRT.
3885
_LT_AC_TAGVAR(predep_objects,$1)=
3886
_LT_AC_TAGVAR(postdep_objects,$1)=
3887
_LT_AC_TAGVAR(postdeps,$1)=
3891
case $cc_basename in
3893
# Adding this requires a known-good setup of shared libraries for
3894
# Sun compiler versions before 5.6, else PIC objects from an old
3895
# archive will be linked into the output, leading to subtle bugs.
3896
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3756
3903
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3757
3904
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3759
3906
])# AC_LIBTOOL_POSTDEP_PREDEP
3761
3908
# AC_LIBTOOL_LANG_F77_CONFIG
3762
# ------------------------
3909
# --------------------------
3763
3910
# Ensure that the configuration vars for the C compiler are
3764
3911
# suitably defined. Those variables are subsequently used by
3765
3912
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4782
4939
case $cc_basename in
4784
4941
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4785
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4942
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4786
4943
if test "$host_cpu" != ia64; then
4787
4944
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4791
4948
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4792
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4949
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4794
4951
hppa*64*|ia64*)
4795
4952
# +Z the default
5072
5236
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5073
5237
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5075
pgcc* | pgf77* | pgf90*)
5239
pgcc* | pgf77* | pgf90* | pgf95*)
5076
5240
# Portland Group compilers (*not* the Pentium gcc compiler,
5077
5241
# which looks to be a dead project)
5078
5242
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5079
5243
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5080
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5244
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5083
5247
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5169
5334
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5339
# Check to make sure the static flag actually works.
5341
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5342
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5343
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5344
$lt_tmp_static_flag,
5346
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5331
5510
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5333
5512
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5334
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5513
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5335
5514
# If the export-symbols file already is a .def file (1st line
5336
5515
# is EXPORTS), use it as is; otherwise, prepend...
5337
5516
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5340
5519
echo EXPORTS > $output_objdir/$soname.def;
5341
5520
cat $export_symbols >> $output_objdir/$soname.def;
5343
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5522
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5345
5524
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5529
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5530
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5531
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5532
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5533
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5534
# Instead, shared libraries are loaded at an image base (0x10000000 by
5535
# default) and relocated if they conflict, which is a slow very memory
5536
# consuming and fragmenting process. To avoid this, we pick a random,
5537
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5538
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5539
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5540
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
5350
5544
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5352
5546
case $cc_basename,$host_cpu in
5353
5547
pgcc*) # Portland Group C compiler
5354
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5548
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5549
tmp_addflag=' $pic_flag'
5356
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
5357
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5358
tmp_addflag=' -fpic -Mnomain' ;;
5551
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5552
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5553
tmp_addflag=' $pic_flag -Mnomain' ;;
5359
5554
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5360
5555
tmp_addflag=' -i_dynamic' ;;
5361
5556
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5605
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5606
case `$LD -v 2>&1` in
5607
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5608
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5611
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5612
*** reliably create shared libraries on SCO systems. Therefore, libtool
5613
*** is disabling shared libraries support. We urge you to upgrade GNU
5614
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5615
*** your PATH or compiler configuration so that the native linker is
5616
*** used, and then restart.
5621
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5622
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5623
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5624
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5626
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5411
5633
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5541
5765
# Determine the default libpath from the value encoded in an empty executable.
5542
5766
_LT_AC_SYS_LIBPATH_AIX
5543
5767
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5544
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5768
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5546
5770
if test "$host_cpu" = ia64; then
5547
5771
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5548
5772
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5549
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5773
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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"
5551
5775
# Determine the default libpath from the value encoded in an empty executable.
5552
5776
_LT_AC_SYS_LIBPATH_AIX
5555
5779
# -berok will link without error, but may produce a broken library.
5556
5780
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5557
5781
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5558
# -bexpall does not export symbols beginning with underscore (_)
5559
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5560
5782
# Exported symbols can be pulled into shared objects from archives
5561
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5783
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5562
5784
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5563
# This is similar to how AIX traditionally builds it's shared libraries.
5564
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5785
# This is similar to how AIX traditionally builds its shared libraries.
5786
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
5629
5851
output_verbose_link_cmd='echo'
5630
5852
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5631
5853
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5632
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5854
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5633
5855
_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}'
5634
5856
_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}'
5638
5860
output_verbose_link_cmd='echo'
5639
5861
_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'
5640
5862
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5641
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
5863
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5642
5864
_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}'
5643
5865
_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}'
5702
5924
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5706
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5928
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5929
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5931
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5933
if test "$with_gnu_ld" = no; then
5934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5935
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5937
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5938
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5940
# hardcode_minus_L: Not really in the search PATH,
5941
# but as the default location of the library.
5942
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5947
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5709
5950
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5953
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5712
5956
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5718
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5962
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5965
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5721
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5968
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5725
5972
if test "$with_gnu_ld" = no; then
5728
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5973
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5974
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5729
5978
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5730
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5731
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5732
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5735
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5736
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5737
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5739
# hardcode_minus_L: Not really in the search PATH,
5740
# but as the default location of the library.
5741
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5979
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5980
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5744
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5745
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5746
5983
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5747
5984
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5941
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5942
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5943
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5944
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5945
hardcode_runpath_var=yes
5946
runpath_var=LD_RUN_PATH
5949
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5950
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5951
if test "$GCC" = yes; then
5952
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5954
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5956
runpath_var='LD_RUN_PATH'
5957
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5961
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5962
# $CC -shared without GNU ld will not create a library from C++
5963
# object files and a static libstdc++, better avoid it by now
5964
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5965
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5966
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5967
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5968
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5969
runpath_var='LD_RUN_PATH'
6169
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6170
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6171
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6172
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6173
runpath_var='LD_RUN_PATH'
6175
if test "$GCC" = yes; then
6176
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6177
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6179
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6180
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6184
sysv5* | sco3.2v5* | sco5v6*)
6185
# Note: We can NOT use -z defs as we might desire, because we do not
6186
# link with -lc, and that would cause any symbols used from libc to
6187
# always be unresolved, which means just about no library would
6188
# ever link correctly. If we're not using GNU ld we use -z text
6189
# though, which does catch some bad symbols but isn't as heavy-handed
6191
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6192
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6193
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6194
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6195
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6196
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6197
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6198
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6199
runpath_var='LD_RUN_PATH'
6201
if test "$GCC" = yes; then
6202
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6203
_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'
6205
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6206
_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'