1
1
dnl THIS FILE IS AUTOMATICALLY GENERATED BY buildconf.sh
2
2
dnl edits here will be lost
3
3
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
4
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5
## Free Software Foundation, Inc.
4
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007,
5
## 2008 Free Software Foundation, Inc.
6
6
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8
8
## This file is free software; the Free Software Foundation gives
9
9
## unlimited permission to copy and/or distribute it, with or without
10
10
## modifications, as long as this notice is preserved.
12
# serial 47 AC_PROG_LIBTOOL
12
# serial 52 AC_PROG_LIBTOOL
15
15
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
268
274
# Check for linker boilerplate output or warnings with
269
275
# the simple link test code.
270
276
AC_DEFUN([_LT_LINKER_BOILERPLATE],
271
[ac_outfile=conftest.$ac_objext
272
printf "$lt_simple_link_test_code" >conftest.$ac_ext
273
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
277
[AC_REQUIRE([LT_AC_PROG_SED])dnl
278
ac_outfile=conftest.$ac_objext
279
echo "$lt_simple_link_test_code" >conftest.$ac_ext
280
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
281
_lt_linker_boilerplate=`cat conftest.err`
276
283
])# _LT_LINKER_BOILERPLATE
285
# _LT_REQUIRED_DARWIN_CHECKS
286
# --------------------------
287
# Check for some things on darwin
288
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
291
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
292
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
294
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
295
[lt_cv_apple_cc_single_mod=no
296
if test -z "${LT_MULTI_MODULE}"; then
297
# By default we will add the -single_module flag. You can override
298
# by either setting the environment variable LT_MULTI_MODULE
299
# non-empty at configure time, or by adding -multi_module to the
301
echo "int foo(void){return 1;}" > conftest.c
302
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
303
-dynamiclib ${wl}-single_module conftest.c
304
if test -f libconftest.dylib; then
305
lt_cv_apple_cc_single_mod=yes
306
rm -rf libconftest.dylib*
310
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
311
[lt_cv_ld_exported_symbols_list],
312
[lt_cv_ld_exported_symbols_list=no
313
save_LDFLAGS=$LDFLAGS
314
echo "_main" > conftest.sym
315
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
316
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
317
[lt_cv_ld_exported_symbols_list=yes],
318
[lt_cv_ld_exported_symbols_list=no])
319
LDFLAGS="$save_LDFLAGS"
322
rhapsody* | darwin1.[[0123]])
323
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
325
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
327
# if running on 10.5 or later, the deployment target defaults
328
# to the OS version, if on x86, and 10.4, the deployment
329
# target defaults to 10.4. Don't you love it?
330
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
331
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
332
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
334
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
336
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
340
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
341
_lt_dar_single_mod='$single_module'
343
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
344
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
346
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
348
if test "$DSYMUTIL" != ":"; then
349
_lt_dsymutil="~$DSYMUTIL \$lib || :"
279
357
# _LT_AC_SYS_LIBPATH_AIX
280
358
# ----------------------
285
363
# If we don't find anything, use the default library path according
286
364
# to the aix ld manual.
287
365
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
288
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
366
[AC_REQUIRE([LT_AC_PROG_SED])dnl
367
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
369
/Import File Strings/,/^$/ {
375
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
291
376
# Check for a 64-bit object if we didn't find anything.
292
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
377
if test -z "$aix_libpath"; then
378
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
294
380
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
295
381
])# _LT_AC_SYS_LIBPATH_AIX
640
753
# ------------------------------------------------------------
641
754
# Check whether the given compiler option works
642
755
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
643
[AC_CACHE_CHECK([$1], [$2],
756
[AC_REQUIRE([LT_AC_PROG_SED])dnl
757
AC_CACHE_CHECK([$1], [$2],
645
759
save_LDFLAGS="$LDFLAGS"
646
760
LDFLAGS="$LDFLAGS $3"
647
printf "$lt_simple_link_test_code" > conftest.$ac_ext
761
echo "$lt_simple_link_test_code" > conftest.$ac_ext
648
762
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
649
763
# The linker can only warn and ignore the option if not recognized
650
764
# So say no if there are warnings
651
765
if test -s conftest.err; then
652
766
# Append any errors to the config.log.
653
767
cat conftest.err 1>&AS_MESSAGE_LOG_FD
654
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
655
$SED '/^$/d' conftest.err >conftest.er2
768
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
769
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
656
770
if diff conftest.exp conftest.er2 >/dev/null; then
864
lt_cv_sys_max_cmd_len=102400
866
sysv5* | sco5v6* | sysv4.2uw2*)
867
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
868
if test -n "$kargmax"; then
869
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
871
lt_cv_sys_max_cmd_len=32768
744
# If test is not a shell built-in, we'll probably end up computing a
745
# maximum length that is only half of the actual maximum length, but
747
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
748
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
875
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
876
if test -n "$lt_cv_sys_max_cmd_len"; then
877
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
878
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
880
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
881
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
749
882
= "XX$teststring") >/dev/null 2>&1 &&
750
new_result=`expr "X$teststring" : ".*" 2>&1` &&
751
lt_cv_sys_max_cmd_len=$new_result &&
752
test $i != 17 # 1/2 MB should be enough
755
teststring=$teststring$teststring
758
# Add a significant safety factor because C++ compilers can tack on massive
759
# amounts of additional arguments before passing them to the linker.
760
# It appears as though 1/2 is a usable value.
761
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
883
new_result=`expr "X$teststring" : ".*" 2>&1` &&
884
lt_cv_sys_max_cmd_len=$new_result &&
885
test $i != 17 # 1/2 MB should be enough
888
teststring=$teststring$teststring
891
# Add a significant safety factor because C++ compilers can tack on massive
892
# amounts of additional arguments before passing them to the linker.
893
# It appears as though 1/2 is a usable value.
894
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1162
1301
version_type=none
1163
1302
dynamic_linker="$host_os ld.so"
1164
1303
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1165
1305
if test "$GCC" = yes; then
1166
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1167
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1307
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1308
*) lt_awk_arg="/^libraries:/" ;;
1310
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1311
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1168
1312
# if the path contains ";" then we assume it to be the separator
1169
1313
# otherwise default to the standard path separator (i.e. ":") - it is
1170
1314
# assumed that no part of a normal pathname contains ";" but that should
1171
1315
# okay in the real world where ";" in dirpaths is itself problematic.
1172
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1316
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1174
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1318
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1320
# Ok, now we have the path, separated by spaces, we can step through it
1321
# and add multilib dir if necessary.
1322
lt_tmp_lt_search_path_spec=
1323
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1324
for lt_sys_path in $lt_search_path_spec; do
1325
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1326
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1328
test -d "$lt_sys_path" && \
1329
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1332
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1333
BEGIN {RS=" "; FS="/|\n";} {
1336
for (lt_i = NF; lt_i > 0; lt_i--) {
1337
if ($lt_i != "" && $lt_i != ".") {
1338
if ($lt_i == "..") {
1341
if (lt_count == 0) {
1342
lt_foo="/" $lt_i lt_foo;
1349
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1350
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1352
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1177
1354
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1179
1356
need_lib_prefix=unknown
1180
1357
hardcode_into_libs=no
1704
1891
AC_MSG_RESULT([$dynamic_linker])
1705
1892
test "$dynamic_linker" = no && can_build_shared=no
1894
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1895
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1896
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1897
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1898
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1899
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1901
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1902
if test "$GCC" = yes; then
1903
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1706
1905
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1709
1908
# _LT_AC_TAGCONFIG
1710
1909
# ----------------
1711
1910
AC_DEFUN([_LT_AC_TAGCONFIG],
1712
[AC_ARG_WITH([tags],
1911
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1713
1913
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1714
1914
[include additional configurations @<:@automatic@:>@])],
1715
1915
[tagnames="$withval"])
2360
2577
# Let the user override the test.
2361
2578
lt_cv_path_NM="$NM"
2363
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2364
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2366
test -z "$ac_dir" && ac_dir=.
2367
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2368
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2369
# Check to see if the nm accepts a BSD-compat flag.
2370
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2371
# nm: unknown option "B" ignored
2372
# Tru64's nm complains that /dev/null is an invalid object file
2373
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2374
*/dev/null* | *'Invalid file or object type'*)
2375
lt_cv_path_NM="$tmp_nm -B"
2379
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2381
lt_cv_path_NM="$tmp_nm -p"
2580
lt_nm_to_check="${ac_tool_prefix}nm"
2581
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2582
lt_nm_to_check="$lt_nm_to_check nm"
2584
for lt_tmp_nm in $lt_nm_to_check; do
2585
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2586
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2588
test -z "$ac_dir" && ac_dir=.
2589
tmp_nm="$ac_dir/$lt_tmp_nm"
2590
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2591
# Check to see if the nm accepts a BSD-compat flag.
2592
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2593
# nm: unknown option "B" ignored
2594
# Tru64's nm complains that /dev/null is an invalid object file
2595
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2596
*/dev/null* | *'Invalid file or object type'*)
2597
lt_cv_path_NM="$tmp_nm -B"
2385
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2386
continue # so that we can try to find one that supports BSD flags
2601
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2603
lt_cv_path_NM="$tmp_nm -p"
2607
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2608
continue # so that we can try to find one that supports BSD flags
2393
2617
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2395
2619
NM="$lt_cv_path_NM"
2581
2805
_LT_COMPILER_BOILERPLATE
2582
2806
_LT_LINKER_BOILERPLATE
2585
# Check for any special shared library compilation flags.
2587
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2588
if test "$GCC" = no; then
2591
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2595
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2596
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2597
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2599
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2600
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2606
# Check to make sure the static flag actually works.
2608
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2609
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2610
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2612
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2615
2808
## CAVEAT EMPTOR:
2616
2809
## There is no encapsulation within the following macros, do not change
2617
2810
## the running order or otherwise move them around unless you know exactly
2913
3110
# -berok will link without error, but may produce a broken library.
2914
3111
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2915
3112
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2916
# -bexpall does not export symbols beginning with underscore (_)
2917
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2918
3113
# Exported symbols can be pulled into shared objects from archives
2919
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3114
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2920
3115
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2921
3116
# This is similar to how AIX traditionally builds its shared libraries.
2922
_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'
3117
_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'
3123
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3124
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3125
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3126
# support --undefined. This deserves some investigation. FIXME
3127
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3129
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2927
3134
case $cc_basename in
2951
3157
echo EXPORTS > $output_objdir/$soname.def;
2952
3158
cat $export_symbols >> $output_objdir/$soname.def;
2954
$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'
3160
$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'
2956
3162
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2959
3165
darwin* | rhapsody*)
2961
rhapsody* | darwin1.[[012]])
2962
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
2965
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
2966
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2968
case ${MACOSX_DEPLOYMENT_TARGET} in
2970
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
2973
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
2979
3166
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2980
3167
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2981
3168
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
2982
3169
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2983
3170
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
2984
3171
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2986
if test "$GXX" = yes ; then
2987
lt_int_apple_cc_single_mod=no
3172
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3173
if test "$GXX" = yes ; then
2988
3174
output_verbose_link_cmd='echo'
2989
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
2990
lt_int_apple_cc_single_mod=yes
3175
_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}"
3176
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3177
_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}"
3178
_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}"
3179
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3180
_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}"
3181
_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}"
2992
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
2993
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
2995
_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'
2997
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
2998
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
2999
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3000
_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}'
3002
_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}'
3004
_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}'
3006
3184
case $cc_basename in
3008
3186
output_verbose_link_cmd='echo'
3009
_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'
3187
_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'
3010
3188
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3011
3189
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3012
_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}'
3190
_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}'
3013
3191
_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}'
3089
3267
hpux10*|hpux11*)
3090
3268
if test $with_gnu_ld = no; then
3269
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3270
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3091
3272
case $host_cpu in
3093
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3094
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3095
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3098
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3101
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3102
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3103
3275
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3107
3279
case $host_cpu in
3109
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3110
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3113
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3114
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3115
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3116
# but as the default
3117
# location of the library.
3281
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3282
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3120
3285
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3342
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3343
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3344
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3345
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3346
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3347
# Instead, shared libraries are loaded at an image base (0x10000000 by
3348
# default) and relocated if they conflict, which is a slow very memory
3349
# consuming and fragmenting process. To avoid this, we pick a random,
3350
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3351
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3352
_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'
3353
_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'
3170
3355
irix5* | irix6*)
3171
3356
case $cc_basename in
3273
3458
# dependencies.
3274
3459
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3462
case `$CC -V 2>&1 | sed 5q` in
3465
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3466
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3467
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3468
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3469
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3471
# Not sure whether something based on
3472
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3474
output_verbose_link_cmd='echo'
3476
# Archives containing C++ object files must be created using
3477
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3478
# necessary to make sure instantiated templates are included
3480
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3311
3519
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3314
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3315
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3316
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3317
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3318
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3319
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3320
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3321
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3522
if test -f /usr/libexec/ld.so; then
3523
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3524
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3525
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3526
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3527
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3528
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3529
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3530
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3532
output_verbose_link_cmd='echo'
3534
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3323
output_verbose_link_cmd='echo'
3326
3538
case $cc_basename in
3552
3746
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3748
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3750
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3557
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3558
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3757
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3758
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3759
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3760
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3761
runpath_var='LD_RUN_PATH'
3763
case $cc_basename in
3765
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3766
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3769
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3770
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3774
sysv5* | sco3.2v5* | sco5v6*)
3775
# Note: We can NOT use -z defs as we might desire, because we do not
3776
# link with -lc, and that would cause any symbols used from libc to
3777
# always be unresolved, which means just about no library would
3778
# ever link correctly. If we're not using GNU ld we use -z text
3779
# though, which does catch some bad symbols but isn't as heavy-handed
3781
# For security reasons, it is highly recommended that you always
3782
# use absolute paths for naming shared libraries, and exclude the
3783
# DT_RUNPATH tag from executables and libraries. But doing so
3784
# requires that you compile everything twice, which is a pain.
3785
# So that behaviour is only enabled if SCOABSPATH is set to a
3786
# non-empty value in the environment. Most likely only useful for
3787
# creating official distributions of packages.
3788
# This is a hack until libtool officially supports absolute path
3789
# names for shared libraries.
3790
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3791
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3792
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3793
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3794
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3795
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3796
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3797
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3798
runpath_var='LD_RUN_PATH'
3800
case $cc_basename in
3802
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3803
_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'
3806
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3807
_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'
3561
3812
case $cc_basename in
3746
3996
$rm -f confest.$objext
3998
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3999
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4000
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
3748
4003
# PORTME: override above test on systems where it is broken
3749
4004
ifelse([$1],[CXX],
3750
4005
[case $host_os in
4007
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4008
# hack all around it, let's just trust "g++" to DTRT.
4009
_LT_AC_TAGVAR(predep_objects,$1)=
4010
_LT_AC_TAGVAR(postdep_objects,$1)=
4011
_LT_AC_TAGVAR(postdeps,$1)=
4015
case `$CC -V 2>&1 | sed 5q` in
4019
# The more standards-conforming stlport4 library is
4020
# incompatible with the Cstd library. Avoid specifying
4021
# it if it's in CXXFLAGS. Ignore libCrun as
4022
# -library=stlport4 depends on it.
4023
case " $CXX $CXXFLAGS " in
4024
*" -library=stlport4 "*)
4025
solaris_use_stlport4=yes
4028
if test "$solaris_use_stlport4" != yes; then
4029
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3752
4036
case $cc_basename in
4038
# The more standards-conforming stlport4 library is
4039
# incompatible with the Cstd library. Avoid specifying
4040
# it if it's in CXXFLAGS. Ignore libCrun as
4041
# -library=stlport4 depends on it.
4042
case " $CXX $CXXFLAGS " in
4043
*" -library=stlport4 "*)
4044
solaris_use_stlport4=yes
3754
4048
# Adding this requires a known-good setup of shared libraries for
3755
4049
# Sun compiler versions before 5.6, else PIC objects from an old
3756
4050
# archive will be linked into the output, leading to subtle bugs.
3757
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4051
if test "$solaris_use_stlport4" != yes; then
4052
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3763
4059
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3764
4060
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3766
4062
])# AC_LIBTOOL_POSTDEP_PREDEP
3768
4064
# AC_LIBTOOL_LANG_F77_CONFIG
3769
# ------------------------
4065
# --------------------------
3770
4066
# Ensure that the configuration vars for the C compiler are
3771
4067
# suitably defined. Those variables are subsequently used by
3772
4068
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5240
5615
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5241
5616
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5242
5617
# as well as any symbol that contains `d'.
5243
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5618
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5244
5619
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5245
5620
# platforms (ab)use it in PIC code, but their linkers get confused if
5246
5621
# the symbol is explicitly referenced. Since portable code cannot
5247
5622
# rely on this symbol name, it's probably fine to never include it in
5248
5623
# preloaded symbol tables.
5624
# Exclude shared library initialization/finalization symbols.
5625
dnl Note also adjust exclude_expsyms for C++ above.
5249
5626
extract_expsyms_cmds=
5250
5627
# Just being paranoid about ensuring that cc_basename is set.
5251
5628
_LT_CC_BASENAME([$compiler])
5339
5720
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5340
5721
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5341
5722
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5342
_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'
5723
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5344
5725
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5345
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5726
_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'
5346
5727
# If the export-symbols file already is a .def file (1st line
5347
5728
# is EXPORTS), use it as is; otherwise, prepend...
5348
5729
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5351
5732
echo EXPORTS > $output_objdir/$soname.def;
5352
5733
cat $export_symbols >> $output_objdir/$soname.def;
5354
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5735
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5356
5737
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5742
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5743
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5744
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5745
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5746
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5747
# Instead, shared libraries are loaded at an image base (0x10000000 by
5748
# default) and relocated if they conflict, which is a slow very memory
5749
# consuming and fragmenting process. To avoid this, we pick a random,
5750
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5751
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5752
_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'
5753
_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'
5756
gnu* | linux* | k*bsd*-gnu)
5361
5757
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5363
5759
case $cc_basename,$host_cpu in
5375
5771
ifc* | ifort*) # Intel Fortran compiler
5376
5772
tmp_addflag=' -nofor_main' ;;
5378
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5774
case `$CC -V 2>&1 | sed 5q` in
5775
*Sun\ C*) # Sun C 5.9
5776
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5777
tmp_sharedflag='-G' ;;
5778
*Sun\ F*) # Sun Fortran 8.3
5779
tmp_sharedflag='-G' ;;
5781
tmp_sharedflag='-shared' ;;
5783
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5380
5785
if test $supports_anon_versioning = yes; then
5381
5786
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5382
5787
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5383
5788
$echo "local: *; };" >> $output_objdir/$libname.ver~
5384
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5789
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5387
5792
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5827
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5828
case `$LD -v 2>&1` in
5829
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5830
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5833
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5834
*** reliably create shared libraries on SCO systems. Therefore, libtool
5835
*** is disabling shared libraries support. We urge you to upgrade GNU
5836
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5837
*** your PATH or compiler configuration so that the native linker is
5838
*** used, and then restart.
5843
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5844
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5845
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5846
_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'
5848
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5423
5855
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5567
6001
# -berok will link without error, but may produce a broken library.
5568
6002
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5569
6003
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5570
# -bexpall does not export symbols beginning with underscore (_)
5571
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5572
6004
# Exported symbols can be pulled into shared objects from archives
5573
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6005
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5574
6006
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5575
6007
# This is similar to how AIX traditionally builds its shared libraries.
5576
_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'
6008
_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'
5639
6071
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5640
6072
if test "$GCC" = yes ; then
5641
6073
output_verbose_link_cmd='echo'
5642
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5643
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5644
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5645
_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}'
5646
_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}'
6074
_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}"
6075
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6076
_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}"
6077
_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}"
5648
6079
case $cc_basename in
5650
6081
output_verbose_link_cmd='echo'
5651
_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'
6082
_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'
5652
6083
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5653
6084
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5654
_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}'
6085
_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}'
5655
6086
_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}'
5714
6145
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6149
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6150
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6152
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6154
if test "$with_gnu_ld" = no; then
6155
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6156
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6158
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6159
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6161
# hardcode_minus_L: Not really in the search PATH,
6162
# but as the default location of the library.
6163
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5718
6168
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5719
6169
case $host_cpu in
5721
6171
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6174
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5724
6177
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5728
6181
case $host_cpu in
5730
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6183
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6186
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5733
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6189
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5737
6193
if test "$with_gnu_ld" = no; then
6194
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6195
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5738
6197
case $host_cpu in
5740
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5741
6199
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5742
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5743
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5744
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5747
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5748
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5749
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5751
# hardcode_minus_L: Not really in the search PATH,
5752
# but as the default location of the library.
5753
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6200
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6201
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5756
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5757
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5758
6204
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5759
6205
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5801
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5802
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5803
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5804
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5805
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5806
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5807
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6247
if test -f /usr/libexec/ld.so; then
6248
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6249
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6250
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6251
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6252
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6253
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6254
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6257
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6258
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6259
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6262
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6263
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5810
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5811
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5812
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5815
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5816
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6268
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5882
6324
case $host_os in
5883
6325
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5885
# The compiler driver will combine linker options so we
5886
# cannot just pass the convience library names through
5887
# without $wl, iff we do not link with $LD.
5888
# Luckily, gcc supports the same syntax we need for Sun Studio.
6327
# The compiler driver will combine and reorder linker options,
6328
# but understands `-z linker_flag'. GCC discards it without `$wl',
6329
# but is careful enough not to reorder.
5889
6330
# Supported since Solaris 2.6 (maybe 2.5.1?)
5892
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5894
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6331
if test "$GCC" = yes; then
6332
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6334
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5897
6338
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5953
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5954
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5955
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5956
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5957
hardcode_runpath_var=yes
5958
runpath_var=LD_RUN_PATH
5961
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5962
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
5963
if test "$GCC" = yes; then
5964
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5966
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5968
runpath_var='LD_RUN_PATH'
5969
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5973
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5974
# $CC -shared without GNU ld will not create a library from C++
5975
# object files and a static libstdc++, better avoid it by now
5976
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5978
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5979
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5980
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5981
runpath_var='LD_RUN_PATH'
6393
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6394
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6395
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6396
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6397
runpath_var='LD_RUN_PATH'
6399
if test "$GCC" = yes; then
6400
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6401
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6403
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6404
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6408
sysv5* | sco3.2v5* | sco5v6*)
6409
# Note: We can NOT use -z defs as we might desire, because we do not
6410
# link with -lc, and that would cause any symbols used from libc to
6411
# always be unresolved, which means just about no library would
6412
# ever link correctly. If we're not using GNU ld we use -z text
6413
# though, which does catch some bad symbols but isn't as heavy-handed
6415
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6416
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6417
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6418
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6419
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6420
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6421
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6422
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6423
runpath_var='LD_RUN_PATH'
6425
if test "$GCC" = yes; then
6426
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6427
_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'
6429
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6430
_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'