11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
19
22
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
21
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
24
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
24
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
281
286
# Check for linker boilerplate output or warnings with
282
287
# the simple link test code.
283
288
AC_DEFUN([_LT_LINKER_BOILERPLATE],
284
[ac_outfile=conftest.$ac_objext
285
printf "$lt_simple_link_test_code" >conftest.$ac_ext
289
[AC_REQUIRE([LT_AC_PROG_SED])dnl
290
ac_outfile=conftest.$ac_objext
291
echo "$lt_simple_link_test_code" >conftest.$ac_ext
286
292
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
287
293
_lt_linker_boilerplate=`cat conftest.err`
289
295
])# _LT_LINKER_BOILERPLATE
297
# _LT_REQUIRED_DARWIN_CHECKS
298
# --------------------------
299
# Check for some things on darwin
300
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
303
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
304
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
306
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
307
[lt_cv_apple_cc_single_mod=no
308
if test -z "${LT_MULTI_MODULE}"; then
309
# By default we will add the -single_module flag. You can override
310
# by either setting the environment variable LT_MULTI_MODULE
311
# non-empty at configure time, or by adding -multi_module to the
313
echo "int foo(void){return 1;}" > conftest.c
314
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
315
-dynamiclib ${wl}-single_module conftest.c
316
if test -f libconftest.dylib; then
317
lt_cv_apple_cc_single_mod=yes
318
rm -rf libconftest.dylib*
322
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
323
[lt_cv_ld_exported_symbols_list],
324
[lt_cv_ld_exported_symbols_list=no
325
save_LDFLAGS=$LDFLAGS
326
echo "_main" > conftest.sym
327
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
328
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
329
[lt_cv_ld_exported_symbols_list=yes],
330
[lt_cv_ld_exported_symbols_list=no])
331
LDFLAGS="$save_LDFLAGS"
334
rhapsody* | darwin1.[[0123]])
335
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
337
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
339
# if running on 10.5 or later, the deployment target defaults
340
# to the OS version, if on x86, and 10.4, the deployment
341
# target defaults to 10.4. Don't you love it?
342
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
343
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
344
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
346
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
348
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
352
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
353
_lt_dar_single_mod='$single_module'
355
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
356
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
358
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
360
if test "$DSYMUTIL" != ":"; then
361
_lt_dsymutil="~$DSYMUTIL \$lib || :"
292
369
# _LT_AC_SYS_LIBPATH_AIX
293
370
# ----------------------
298
375
# If we don't find anything, use the default library path according
299
376
# to the aix ld manual.
300
377
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; }
378
[AC_REQUIRE([LT_AC_PROG_SED])dnl
379
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
381
/Import File Strings/,/^$/ {
387
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
304
388
# 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; }
389
if test -z "$aix_libpath"; then
390
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
307
392
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
308
393
])# _LT_AC_SYS_LIBPATH_AIX
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` \
887
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
888
if test -n "$lt_cv_sys_max_cmd_len"; then
889
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
890
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
892
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
893
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
795
894
= "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`
895
new_result=`expr "X$teststring" : ".*" 2>&1` &&
896
lt_cv_sys_max_cmd_len=$new_result &&
897
test $i != 17 # 1/2 MB should be enough
900
teststring=$teststring$teststring
903
# Add a significant safety factor because C++ compilers can tack on massive
904
# amounts of additional arguments before passing them to the linker.
905
# It appears as though 1/2 is a usable value.
906
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1210
1313
version_type=none
1211
1314
dynamic_linker="$host_os ld.so"
1212
1315
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1213
1317
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
1319
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1320
*) lt_awk_arg="/^libraries:/" ;;
1322
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1323
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1216
1324
# if the path contains ";" then we assume it to be the separator
1217
1325
# otherwise default to the standard path separator (i.e. ":") - it is
1218
1326
# assumed that no part of a normal pathname contains ";" but that should
1219
1327
# 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'`
1328
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"`
1330
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1332
# Ok, now we have the path, separated by spaces, we can step through it
1333
# and add multilib dir if necessary.
1334
lt_tmp_lt_search_path_spec=
1335
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1336
for lt_sys_path in $lt_search_path_spec; do
1337
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1338
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1340
test -d "$lt_sys_path" && \
1341
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1344
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1345
BEGIN {RS=" "; FS="/|\n";} {
1348
for (lt_i = NF; lt_i > 0; lt_i--) {
1349
if ($lt_i != "" && $lt_i != ".") {
1350
if ($lt_i == "..") {
1353
if (lt_count == 0) {
1354
lt_foo="/" $lt_i lt_foo;
1361
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1362
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1364
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1225
1366
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1227
1368
need_lib_prefix=unknown
1228
1369
hardcode_into_libs=no
3025
3185
darwin* | rhapsody*)
3027
rhapsody* | darwin1.[[012]])
3028
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3031
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3032
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3034
case ${MACOSX_DEPLOYMENT_TARGET} in
3036
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3039
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3045
3186
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3046
3187
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3047
3188
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3048
3189
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3049
3190
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3050
3191
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3052
if test "$GXX" = yes ; then
3053
lt_int_apple_cc_single_mod=no
3192
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3193
if test "$GXX" = yes ; then
3054
3194
output_verbose_link_cmd='echo'
3055
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3056
lt_int_apple_cc_single_mod=yes
3195
_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}"
3196
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3197
_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}"
3198
_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}"
3199
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3200
_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}"
3201
_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}"
3058
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3059
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3061
_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'
3063
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3064
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3065
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3066
_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}'
3068
_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}'
3070
_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}'
3072
3204
case $cc_basename in
3074
3206
output_verbose_link_cmd='echo'
3075
_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'
3207
_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'
3076
3208
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3077
3209
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3078
_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}'
3210
_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}'
3079
3211
_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}'
3348
3478
# dependencies.
3349
3479
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'
3482
case `$CC -V 2>&1 | sed 5q` in
3485
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3486
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3487
_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'
3488
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3489
_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'
3491
# Not sure whether something based on
3492
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3494
output_verbose_link_cmd='echo'
3496
# Archives containing C++ object files must be created using
3497
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3498
# necessary to make sure instantiated templates are included
3500
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3386
3539
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3389
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3390
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3391
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3392
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3393
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3394
_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'
3395
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3396
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3542
if test -f /usr/libexec/ld.so; then
3543
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3544
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3545
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3546
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3547
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548
_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'
3549
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3550
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3552
output_verbose_link_cmd='echo'
3554
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3398
output_verbose_link_cmd='echo'
3401
3558
case $cc_basename in
3557
3714
case $host_os in
3558
3715
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3560
# The C++ compiler is used as linker so we must use $wl
3561
# flag to pass the commands to the underlying system
3562
# linker. We must also pass each convience library through
3563
# to the system linker between allextract/defaultextract.
3564
# The C++ compiler will combine linker options so we
3565
# cannot just pass the convience library names through
3717
# The compiler driver will combine and reorder linker options,
3718
# but understands `-z linker_flag'.
3567
3719
# Supported since Solaris 2.6 (maybe 2.5.1?)
3568
_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'
3720
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3571
3723
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3863
4027
_LT_AC_TAGVAR(postdeps,$1)=
4031
case `$CC -V 2>&1 | sed 5q` in
4035
# The more standards-conforming stlport4 library is
4036
# incompatible with the Cstd library. Avoid specifying
4037
# it if it's in CXXFLAGS. Ignore libCrun as
4038
# -library=stlport4 depends on it.
4039
case " $CXX $CXXFLAGS " in
4040
*" -library=stlport4 "*)
4041
solaris_use_stlport4=yes
4044
if test "$solaris_use_stlport4" != yes; then
4045
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3867
4052
case $cc_basename in
4054
# The more standards-conforming stlport4 library is
4055
# incompatible with the Cstd library. Avoid specifying
4056
# it if it's in CXXFLAGS. Ignore libCrun as
4057
# -library=stlport4 depends on it.
4058
case " $CXX $CXXFLAGS " in
4059
*" -library=stlport4 "*)
4060
solaris_use_stlport4=yes
3869
4064
# Adding this requires a known-good setup of shared libraries for
3870
4065
# Sun compiler versions before 5.6, else PIC objects from an old
3871
4066
# archive will be linked into the output, leading to subtle bugs.
3872
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4067
if test "$solaris_use_stlport4" != yes; then
4068
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3879
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3880
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5383
5630
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5384
5631
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5385
5632
# as well as any symbol that contains `d'.
5386
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5633
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5387
5634
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5388
5635
# platforms (ab)use it in PIC code, but their linkers get confused if
5389
5636
# the symbol is explicitly referenced. Since portable code cannot
5390
5637
# rely on this symbol name, it's probably fine to never include it in
5391
5638
# preloaded symbol tables.
5639
# Exclude shared library initialization/finalization symbols.
5640
dnl Note also adjust exclude_expsyms for C++ above.
5392
5641
extract_expsyms_cmds=
5393
5642
# Just being paranoid about ensuring that cc_basename is set.
5394
5643
_LT_CC_BASENAME([$compiler])
5537
5786
ifc* | ifort*) # Intel Fortran compiler
5538
5787
tmp_addflag=' -nofor_main' ;;
5540
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5789
case `$CC -V 2>&1 | sed 5q` in
5790
*Sun\ C*) # Sun C 5.9
5791
_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'
5792
tmp_sharedflag='-G' ;;
5793
*Sun\ F*) # Sun Fortran 8.3
5794
tmp_sharedflag='-G' ;;
5796
tmp_sharedflag='-shared' ;;
5798
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5542
5800
if test $supports_anon_versioning = yes; then
5543
5801
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5544
5802
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5545
5803
$echo "local: *; };" >> $output_objdir/$libname.ver~
5546
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5804
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5548
5806
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5829
6087
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5830
6088
if test "$GCC" = yes ; then
5831
6089
output_verbose_link_cmd='echo'
5832
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5833
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5834
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5835
_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}'
5836
_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}'
6090
_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}"
6091
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6092
_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}"
6093
_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}"
5838
6095
case $cc_basename in
5840
6097
output_verbose_link_cmd='echo'
5841
_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'
6098
_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'
5842
6099
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5843
6100
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5844
_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}'
6101
_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}'
5845
6102
_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}'
6006
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6007
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6008
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6009
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6010
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6011
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6012
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6263
if test -f /usr/libexec/ld.so; then
6264
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6265
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6266
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6267
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6268
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6269
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6270
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6273
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6274
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6275
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6278
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6015
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6016
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6017
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6020
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6021
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6284
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6079
6340
case $host_os in
6080
6341
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6082
# The compiler driver will combine linker options so we
6083
# cannot just pass the convience library names through
6084
# without $wl, iff we do not link with $LD.
6085
# Luckily, gcc supports the same syntax we need for Sun Studio.
6343
# The compiler driver will combine and reorder linker options,
6344
# but understands `-z linker_flag'. GCC discards it without `$wl',
6345
# but is careful enough not to reorder.
6086
6346
# Supported since Solaris 2.6 (maybe 2.5.1?)
6089
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6091
_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' ;;
6347
if test "$GCC" = yes; then
6348
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6350
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6094
6354
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6324
6584
[AC_CHECK_TOOL(RC, windres, no)
6588
# Cheap backport of AS_EXECUTABLE_P and required macros
6589
# from Autoconf 2.59; we should not use $as_executable_p directly.
6593
m4_ifndef([_AS_TEST_PREPARE],
6594
[m4_defun([_AS_TEST_PREPARE],
6595
[if test -x / >/dev/null 2>&1; then
6596
as_executable_p='test -x'
6598
as_executable_p='test -f'
6600
])])# _AS_TEST_PREPARE
6604
# Check whether a file is executable.
6605
m4_ifndef([AS_EXECUTABLE_P],
6606
[m4_defun([AS_EXECUTABLE_P],
6607
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6608
$as_executable_p $1[]dnl
6609
])])# AS_EXECUTABLE_P
6327
6611
# NOTE: This macro has been submitted for inclusion into #
6328
6612
# GNU Autoconf as AC_PROG_SED. When it is available in #
6329
6613
# a released version of Autoconf we should remove this #