19
19
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
21
# serial 48 AC_PROG_LIBTOOL
21
# serial 51 AC_PROG_LIBTOOL
24
24
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
181
181
test -z "$ac_objext" && ac_objext=o
183
183
# Determine commands to create old-style static archives.
184
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
184
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
185
185
old_postinstall_cmds='chmod 644 $oldlib'
186
186
old_postuninstall_cmds=
268
268
# Check for compiler boilerplate output or warnings with
269
269
# the simple compiler test code.
270
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
271
[ac_outfile=conftest.$ac_objext
272
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
271
[AC_REQUIRE([LT_AC_PROG_SED])dnl
272
ac_outfile=conftest.$ac_objext
273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
275
_lt_compiler_boilerplate=`cat conftest.err`
281
282
# Check for linker boilerplate output or warnings with
282
283
# the simple link test code.
283
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
284
[ac_outfile=conftest.$ac_objext
285
printf "$lt_simple_link_test_code" >conftest.$ac_ext
285
[AC_REQUIRE([LT_AC_PROG_SED])dnl
286
ac_outfile=conftest.$ac_objext
287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
286
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
287
289
_lt_linker_boilerplate=`cat conftest.err`
298
300
# If we don't find anything, use the default library path according
299
301
# to the aix ld manual.
300
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
301
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
302
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
304
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
306
/Import File Strings/,/^$/ {
312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
304
313
# Check for a 64-bit object if we didn't find anything.
305
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; }
314
if test -z "$aix_libpath"; then
315
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
307
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
308
318
])# _LT_AC_SYS_LIBPATH_AIX
537
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
547
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
548
s390*-*linux*|sparc*-*linux*)
538
549
# Find out which ABI we are using.
539
550
echo 'int i;' > conftest.$ac_ext
540
551
if AC_TRY_EVAL(ac_compile); then
541
552
case `/usr/bin/file conftest.o` in
555
x86_64-*kfreebsd*-gnu)
556
LD="${LD-ld} -m elf_i386_fbsd"
545
559
LD="${LD-ld} -m elf_i386"
628
645
AC_CACHE_CHECK([$1], [$2],
630
647
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
631
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
648
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
632
649
lt_compiler_flag="$3"
633
650
# Insert the option either (1) after the last *FLAGS variable, or
634
651
# (2) before a word containing "conftest.", or (3) at the end.
669
686
# ------------------------------------------------------------
670
687
# Check whether the given compiler option works
671
688
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
672
[AC_CACHE_CHECK([$1], [$2],
689
[AC_REQUIRE([LT_AC_PROG_SED])dnl
690
AC_CACHE_CHECK([$1], [$2],
674
692
save_LDFLAGS="$LDFLAGS"
675
693
LDFLAGS="$LDFLAGS $3"
676
printf "$lt_simple_link_test_code" > conftest.$ac_ext
694
echo "$lt_simple_link_test_code" > conftest.$ac_ext
677
695
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
678
696
# The linker can only warn and ignore the option if not recognized
679
697
# So say no if there are warnings
790
# If test is not a shell built-in, we'll probably end up computing a
791
# maximum length that is only half of the actual maximum length, but
793
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
794
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
808
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
809
if test -n "$lt_cv_sys_max_cmd_len"; then
810
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
811
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
813
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
814
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
795
815
= "XX$teststring") >/dev/null 2>&1 &&
796
new_result=`expr "X$teststring" : ".*" 2>&1` &&
797
lt_cv_sys_max_cmd_len=$new_result &&
798
test $i != 17 # 1/2 MB should be enough
801
teststring=$teststring$teststring
804
# Add a significant safety factor because C++ compilers can tack on massive
805
# amounts of additional arguments before passing them to the linker.
806
# It appears as though 1/2 is a usable value.
807
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
816
new_result=`expr "X$teststring" : ".*" 2>&1` &&
817
lt_cv_sys_max_cmd_len=$new_result &&
818
test $i != 17 # 1/2 MB should be enough
821
teststring=$teststring$teststring
824
# Add a significant safety factor because C++ compilers can tack on massive
825
# amounts of additional arguments before passing them to the linker.
826
# It appears as though 1/2 is a usable value.
827
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1031
1052
# ---------------------------------
1032
1053
# Check to see if options -c and -o are simultaneously supported by compiler
1033
1054
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1034
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1055
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1056
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1035
1057
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1036
1058
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1037
1059
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1196
1219
# -----------------------------
1197
1220
# PORTME Fill in your ld.so characteristics
1198
1221
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1199
[AC_MSG_CHECKING([dynamic linker characteristics])
1222
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1223
AC_MSG_CHECKING([dynamic linker characteristics])
1200
1224
library_names_spec=
1201
1225
libname_spec='lib$name'
1210
1234
version_type=none
1211
1235
dynamic_linker="$host_os ld.so"
1212
1236
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1213
1238
if test "$GCC" = yes; then
1214
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1215
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1240
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1241
*) lt_awk_arg="/^libraries:/" ;;
1243
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1244
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1216
1245
# if the path contains ";" then we assume it to be the separator
1217
1246
# otherwise default to the standard path separator (i.e. ":") - it is
1218
1247
# assumed that no part of a normal pathname contains ";" but that should
1219
1248
# okay in the real world where ";" in dirpaths is itself problematic.
1220
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1249
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1222
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1251
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1253
# Ok, now we have the path, separated by spaces, we can step through it
1254
# and add multilib dir if necessary.
1255
lt_tmp_lt_search_path_spec=
1256
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1257
for lt_sys_path in $lt_search_path_spec; do
1258
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1259
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1261
test -d "$lt_sys_path" && \
1262
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1265
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1266
BEGIN {RS=" "; FS="/|\n";} {
1269
for (lt_i = NF; lt_i > 0; lt_i--) {
1270
if ($lt_i != "" && $lt_i != ".") {
1271
if ($lt_i == "..") {
1274
if (lt_count == 0) {
1275
lt_foo="/" $lt_i lt_foo;
1282
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1283
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1285
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1225
1287
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1227
1289
need_lib_prefix=unknown
1228
1290
hardcode_into_libs=no
1380
1442
shlibpath_overrides_runpath=yes
1381
1443
shlibpath_var=DYLD_LIBRARY_PATH
1382
1444
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1383
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1384
if test "$GCC" = yes; then
1385
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"`
1387
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1446
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1389
1447
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1402
1460
dynamic_linker=no
1409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1410
soname_spec='${libname}${release}${shared_ext}$major'
1411
shlibpath_var=LD_LIBRARY_PATH
1412
shlibpath_overrides_runpath=no
1413
hardcode_into_libs=yes
1414
dynamic_linker='GNU ld.so'
1417
1463
freebsd* | dragonfly*)
1418
1464
# DragonFly does not have aout. When/if they implement a new
1419
1465
# versioning mechanism, adjust this.
1603
1649
# Append ld.so.conf contents to the search path
1604
1650
if test -f /etc/ld.so.conf; then
1605
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1651
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1606
1652
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1615
1661
dynamic_linker='GNU/Linux ld.so'
1622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1623
soname_spec='${libname}${release}${shared_ext}$major'
1624
shlibpath_var=LD_LIBRARY_PATH
1625
shlibpath_overrides_runpath=no
1626
hardcode_into_libs=yes
1627
dynamic_linker='GNU ld.so'
1631
1665
version_type=sunos
1632
1666
need_lib_prefix=no
1813
1851
# _LT_AC_TAGCONFIG
1814
1852
# ----------------
1815
1853
AC_DEFUN([_LT_AC_TAGCONFIG],
1816
[AC_ARG_WITH([tags],
1854
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1817
1856
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1818
1857
[include additional configurations @<:@automatic@:>@])],
1819
1858
[tagnames="$withval"])
2075
2114
# AC_PATH_TOOL_PREFIX
2076
2115
# -------------------
2077
# find a file program which can recognise shared library
2116
# find a file program which can recognize shared library
2078
2117
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2079
2118
[AC_REQUIRE([AC_PROG_EGREP])dnl
2080
2119
AC_MSG_CHECKING([for $1])
2138
2177
# AC_PATH_MAGIC
2139
2178
# -------------
2140
# find a file program which can recognise a shared library
2179
# find a file program which can recognize a shared library
2141
2180
AC_DEFUN([AC_PATH_MAGIC],
2142
2181
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2143
2182
if test -z "$lt_cv_path_MAGIC_CMD"; then
2284
2323
# how to check for library dependencies
2285
2324
# -- PORTME fill in with the dynamic library characteristics
2286
2325
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2287
[AC_CACHE_CHECK([how to recognise dependent libraries],
2326
[AC_CACHE_CHECK([how to recognize dependent libraries],
2288
2327
lt_cv_deplibs_check_method,
2289
2328
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2290
2329
lt_cv_file_magic_test_file=
2324
2363
mingw* | pw32*)
2325
2364
# Base MSYS/MinGW do not provide the 'file' command needed by
2326
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2327
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2328
lt_cv_file_magic_cmd='$OBJDUMP -f'
2365
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2366
# unless we find 'file', for example because we are cross-compiling.
2367
if ( file / ) >/dev/null 2>&1; then
2368
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2369
lt_cv_file_magic_cmd='func_win32_libid'
2371
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2372
lt_cv_file_magic_cmd='$OBJDUMP -f'
2331
2376
darwin* | rhapsody*)
2332
2377
lt_cv_deplibs_check_method=pass_all
2335
freebsd* | kfreebsd*-gnu | dragonfly*)
2380
freebsd* | dragonfly*)
2336
2381
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2337
2382
case $host_cpu in
2472
2521
lt_cv_path_NM="$NM"
2474
2523
lt_nm_to_check="${ac_tool_prefix}nm"
2475
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2524
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2476
2525
lt_nm_to_check="$lt_nm_to_check nm"
2478
2527
for lt_tmp_nm in $lt_nm_to_check; do
2688
2737
_LT_AC_TAGVAR(objext, $1)=$objext
2690
2739
# Code to be used in simple compile tests
2691
lt_simple_compile_test_code="int some_variable = 0;\n"
2740
lt_simple_compile_test_code="int some_variable = 0;"
2693
2742
# Code to be used in simple link tests
2694
lt_simple_link_test_code='int main(){return(0);}\n'
2743
lt_simple_link_test_code='int main(){return(0);}'
2696
2745
_LT_AC_SYS_COMPILER
2793
2842
_LT_AC_TAGVAR(objext, $1)=$objext
2795
2844
# Code to be used in simple compile tests
2796
lt_simple_compile_test_code="int some_variable = 0;\n"
2845
lt_simple_compile_test_code="int some_variable = 0;"
2798
2847
# Code to be used in simple link tests
2799
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2848
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2801
2850
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2802
2851
_LT_AC_SYS_COMPILER
2942
2991
strings "$collect2name" | grep resolve_lib_name >/dev/null
2944
2993
# We have reworked collect2
2945
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2947
2996
# We have old collect2
2948
2997
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3101
3150
case $cc_basename in
3103
3152
output_verbose_link_cmd='echo'
3104
_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'
3153
_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'
3105
3154
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3106
3155
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3107
_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}'
3156
_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}'
3108
3157
_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}'
3139
3188
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3141
freebsd* | kfreebsd*-gnu | dragonfly*)
3190
freebsd* | dragonfly*)
3142
3191
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3144
3193
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3377
3424
# dependencies.
3378
3425
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'
3428
case `$CC -V 2>&1 | sed 5q` in
3431
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3432
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3433
_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'
3434
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3435
_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'
3437
# Not sure whether something based on
3438
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3440
output_verbose_link_cmd='echo'
3442
# Archives containing C++ object files must be created using
3443
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3444
# necessary to make sure instantiated templates are included
3446
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3415
3485
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3418
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3419
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3420
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3421
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3422
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3423
_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'
3424
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3425
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3488
if test -f /usr/libexec/ld.so; then
3489
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3490
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3491
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3492
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3493
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3494
_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'
3495
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3496
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3498
output_verbose_link_cmd='echo'
3500
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3427
output_verbose_link_cmd='echo'
3430
3504
case $cc_basename in
3586
3660
case $host_os in
3587
3661
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3589
# The C++ compiler is used as linker so we must use $wl
3590
# flag to pass the commands to the underlying system
3591
# linker. We must also pass each convience library through
3592
# to the system linker between allextract/defaultextract.
3593
# The C++ compiler will combine linker options so we
3594
# cannot just pass the convience library names through
3663
# The compiler driver will combine and reorder linker options,
3664
# but understands `-z linker_flag'.
3596
3665
# Supported since Solaris 2.6 (maybe 2.5.1?)
3597
_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'
3666
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3600
3669
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3884
3959
# PORTME: override above test on systems where it is broken
3885
3960
ifelse([$1],[CXX],
3886
3961
[case $host_os in
3888
3963
# Interix 3.5 installs completely hosed .la files for C++, so rather than
3889
3964
# hack all around it, let's just trust "g++" to DTRT.
3890
3965
_LT_AC_TAGVAR(predep_objects,$1)=
3892
3967
_LT_AC_TAGVAR(postdeps,$1)=
3971
case `$CC -V 2>&1 | sed 5q` in
3975
# The more standards-conforming stlport4 library is
3976
# incompatible with the Cstd library. Avoid specifying
3977
# it if it's in CXXFLAGS. Ignore libCrun as
3978
# -library=stlport4 depends on it.
3979
case " $CXX $CXXFLAGS " in
3980
*" -library=stlport4 "*)
3981
solaris_use_stlport4=yes
3984
if test "$solaris_use_stlport4" != yes; then
3985
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3896
3992
case $cc_basename in
3994
# The more standards-conforming stlport4 library is
3995
# incompatible with the Cstd library. Avoid specifying
3996
# it if it's in CXXFLAGS. Ignore libCrun as
3997
# -library=stlport4 depends on it.
3998
case " $CXX $CXXFLAGS " in
3999
*" -library=stlport4 "*)
4000
solaris_use_stlport4=yes
3898
4004
# Adding this requires a known-good setup of shared libraries for
3899
4005
# Sun compiler versions before 5.6, else PIC objects from an old
3900
4006
# archive will be linked into the output, leading to subtle bugs.
3901
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4007
if test "$solaris_use_stlport4" != yes; then
4008
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3947
4055
_LT_AC_TAGVAR(objext, $1)=$objext
3949
4057
# Code to be used in simple compile tests
3950
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4058
lt_simple_compile_test_code="\
3952
4064
# Code to be used in simple link tests
3953
lt_simple_link_test_code=" program t\n end\n"
4065
lt_simple_link_test_code="\
3955
4070
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3956
4071
_LT_AC_SYS_COMPILER
4029
4144
_LT_AC_TAGVAR(objext, $1)=$objext
4031
4146
# Code to be used in simple compile tests
4032
lt_simple_compile_test_code="class foo {}\n"
4147
lt_simple_compile_test_code="class foo {}"
4034
4149
# Code to be used in simple link tests
4035
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4150
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4037
4152
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4038
4153
_LT_AC_SYS_COMPILER
4048
4163
_LT_AC_TAGVAR(compiler, $1)=$CC
4049
4164
_LT_CC_BASENAME([$compiler])
4165
_LT_AC_TAGVAR(LD, $1)="$LD"
4051
4167
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4052
4168
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4085
4201
_LT_AC_TAGVAR(objext, $1)=$objext
4087
4203
# Code to be used in simple compile tests
4088
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4204
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4090
4206
# Code to be used in simple link tests
4091
4207
lt_simple_link_test_code="$lt_simple_compile_test_code"
4174
4290
_LT_AC_TAGVAR(module_cmds, $1) \
4175
4291
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4176
4292
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4293
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4177
4294
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4178
4295
_LT_AC_TAGVAR(include_expsyms, $1); do
4220
4337
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4221
4338
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4223
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4340
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4224
4341
# Free Software Foundation, Inc.
4226
4343
# This file is part of GNU Libtool:
4548
4665
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4550
4667
# Fix the shell variable \$srcfile for the compiler.
4551
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4668
fix_srcfile_path=$lt_fix_srcfile_path
4553
4670
# Set to yes if exported symbols are required.
4554
4671
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4631
4748
# ---------------------------------
4632
4749
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4633
4750
[AC_REQUIRE([AC_CANONICAL_HOST])
4751
AC_REQUIRE([LT_AC_PROG_SED])
4634
4752
AC_REQUIRE([AC_PROG_NM])
4635
4753
AC_REQUIRE([AC_OBJEXT])
4636
4754
# Check for command to grab the raw symbol name followed by C symbol from nm.
4667
4785
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4668
4786
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4788
linux* | k*bsd*-gnu)
4671
4789
if test "$host_cpu" = ia64; then
4672
4790
symcode='[[ABCDGIRSTW]]'
4673
4791
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4857
4975
# like `-m68040'.
4858
4976
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4860
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4978
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4861
4979
# PIC is the default for these OSes.
4863
mingw* | os2* | pw32*)
4981
mingw* | cygwin* | os2* | pw32*)
4864
4982
# This hack is so that the source file can tell whether it is being
4865
4983
# built for inclusion in a dll (and should export symbols for example).
4984
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4985
# (--disable-auto-import) libraries
4866
4986
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4868
4988
darwin* | rhapsody*)
4874
4994
# DJGPP does not support shared libraries at all
4875
4995
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4878
4998
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4879
4999
# Instead, we relocate shared libraries at runtime.
5010
5130
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5133
case `$CC -V 2>&1 | sed 5q` in
5136
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5137
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5138
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5130
5258
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5133
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5261
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5134
5262
# PIC is the default for these OSes.
5137
mingw* | pw32* | os2*)
5265
mingw* | cygwin* | pw32* | os2*)
5138
5266
# This hack is so that the source file can tell whether it is being
5139
5267
# built for inclusion in a dll (and should export symbols for example).
5268
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5269
# (--disable-auto-import) libraries
5140
5270
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5256
5386
# All Alpha code is PIC.
5257
5387
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5390
case `$CC -V 2>&1 | sed 5q` in
5393
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5394
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5395
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5398
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5399
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5400
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5401
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5265
5411
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5415
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5269
5419
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5270
5420
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5359
5509
# ------------------------------------
5360
5510
# See if the linker supports building shared libraries.
5361
5511
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5362
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5512
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5513
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5363
5514
ifelse([$1],[CXX],[
5364
5515
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5365
5516
case $host_os in
5376
5527
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5378
5529
cygwin* | mingw*)
5379
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5530
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5382
5533
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5515
5666
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5516
5667
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5517
5668
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5518
_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'
5669
_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'
5520
5671
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5521
5672
_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'
5548
5699
_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'
5702
gnu* | linux* | k*bsd*-gnu)
5552
5703
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5554
5705
case $cc_basename,$host_cpu in
5566
5717
ifc* | ifort*) # Intel Fortran compiler
5567
5718
tmp_addflag=' -nofor_main' ;;
5569
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5720
case `$CC -V 2>&1 | sed 5q` in
5721
*Sun\ C*) # Sun C 5.9
5722
_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'
5723
tmp_sharedflag='-G' ;;
5724
*Sun\ F*) # Sun Fortran 8.3
5725
tmp_sharedflag='-G' ;;
5727
tmp_sharedflag='-shared' ;;
5729
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5571
5731
if test $supports_anon_versioning = yes; then
5572
5732
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5573
5733
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5574
5734
$echo "local: *; };" >> $output_objdir/$libname.ver~
5575
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5735
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5578
5738
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5731
5891
strings "$collect2name" | grep resolve_lib_name >/dev/null
5733
5893
# We have reworked collect2
5734
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5736
5896
# We have old collect2
5737
5897
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5824
5984
# The linker will automatically build a .lib file if we build a DLL.
5825
5985
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5826
5986
# FIXME: Should let the user specify the lib program.
5827
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5987
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5828
5988
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5829
5989
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5866
6026
case $cc_basename in
5868
6028
output_verbose_link_cmd='echo'
5869
_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'
6029
_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'
5870
6030
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5871
6031
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5872
_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}'
6032
_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}'
5873
6033
_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}'
5911
6071
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5912
freebsd* | kfreebsd*-gnu | dragonfly*)
6072
freebsd* | dragonfly*)
5913
6073
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5914
6074
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5915
6075
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6034
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6035
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6036
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6037
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6038
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6039
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6040
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6194
if test -f /usr/libexec/ld.so; then
6195
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6196
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6197
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6198
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6199
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6200
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6201
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6204
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6205
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6206
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6209
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6210
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6043
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6044
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6045
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6048
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6049
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6215
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6107
6271
case $host_os in
6108
6272
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6110
# The compiler driver will combine linker options so we
6111
# cannot just pass the convience library names through
6112
# without $wl, iff we do not link with $LD.
6113
# Luckily, gcc supports the same syntax we need for Sun Studio.
6274
# The compiler driver will combine and reorder linker options,
6275
# but understands `-z linker_flag'. GCC discards it without `$wl',
6276
# but is careful enough not to reorder.
6114
6277
# Supported since Solaris 2.6 (maybe 2.5.1?)
6117
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6119
_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' ;;
6278
if test "$GCC" = yes; then
6279
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6281
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6122
6285
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6177
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6340
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6178
6341
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6179
6342
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6180
6343
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6249
6412
# to ld, don't add -lc before -lgcc.
6250
6413
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6252
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6415
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6254
6417
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6255
6418
soname=conftest
6352
6515
[AC_CHECK_TOOL(RC, windres, no)
6519
# Cheap backport of AS_EXECUTABLE_P and required macros
6520
# from Autoconf 2.59; we should not use $as_executable_p directly.
6524
m4_ifndef([_AS_TEST_PREPARE],
6525
[m4_defun([_AS_TEST_PREPARE],
6526
[if test -x / >/dev/null 2>&1; then
6527
as_executable_p='test -x'
6529
as_executable_p='test -f'
6531
])])# _AS_TEST_PREPARE
6535
# Check whether a file is executable.
6536
m4_ifndef([AS_EXECUTABLE_P],
6537
[m4_defun([AS_EXECUTABLE_P],
6538
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6539
$as_executable_p $1[]dnl
6540
])])# AS_EXECUTABLE_P
6355
6542
# NOTE: This macro has been submitted for inclusion into #
6356
6543
# GNU Autoconf as AC_PROG_SED. When it is available in #
6357
6544
# a released version of Autoconf we should remove this #
6372
6559
test -z "$as_dir" && as_dir=.
6373
6560
for lt_ac_prog in sed gsed; do
6374
6561
for ac_exec_ext in '' $ac_executable_extensions; do
6375
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6562
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6376
6563
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"