658
657
# modifications, as long as this notice is preserved.
660
659
m4_define([_LT_COPYING], [dnl
661
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
662
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
664
# Written by Gordon Matzigkeit, 1996
666
# This file is part of GNU Libtool.
668
# GNU Libtool is free software; you can redistribute it and/or
669
# modify it under the terms of the GNU General Public License as
670
# published by the Free Software Foundation; either version 2 of
671
# the License, or (at your option) any later version.
673
# As a special exception to the GNU General Public License,
674
# if you distribute this file as part of a program or library that
675
# is built using GNU Libtool, you may include this file under the
676
# same distribution terms that you use for the rest of that program.
678
# GNU Libtool is distributed in the hope that it will be useful,
679
# but WITHOUT ANY WARRANTY; without even the implied warranty of
660
# Copyright (C) 2014 Free Software Foundation, Inc.
661
# This is free software; see the source for copying conditions. There is NO
662
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
664
# GNU Libtool is free software; you can redistribute it and/or modify
665
# it under the terms of the GNU General Public License as published by
666
# the Free Software Foundation; either version 2 of of the License, or
667
# (at your option) any later version.
669
# As a special exception to the GNU General Public License, if you
670
# distribute this file as part of a program or library that is built
671
# using GNU Libtool, you may include this file under the same
672
# distribution terms that you use for the rest of that program.
674
# GNU Libtool is distributed in the hope that it will be useful, but
675
# WITHOUT ANY WARRANTY; without even the implied warranty of
680
676
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
681
677
# GNU General Public License for more details.
683
679
# You should have received a copy of the GNU General Public License
684
# along with GNU Libtool; see the file COPYING. If not, a copy
685
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
686
# obtained by writing to the Free Software Foundation, Inc.,
687
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
680
# along with this program. If not, see <http://www.gnu.org/licenses/>.
693
686
# LT_PREREQ(VERSION)
759
752
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
755
# _LT_PREPARE_CC_BASENAME
756
# -----------------------
757
m4_defun([_LT_PREPARE_CC_BASENAME], [
758
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
761
for cc_temp in @S|@*""; do
763
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
764
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
769
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
771
])# _LT_PREPARE_CC_BASENAME
762
774
# _LT_CC_BASENAME(CC)
763
775
# -------------------
764
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
776
# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
777
# but that macro is also expanded into generated libtool script, which
778
# arranges for $SED and $ECHO to be set by different means.
765
779
m4_defun([_LT_CC_BASENAME],
766
[for cc_temp in $1""; do
768
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
769
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
774
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
780
[m4_require([_LT_PREPARE_CC_BASENAME])dnl
781
AC_REQUIRE([_LT_DECL_SED])dnl
782
AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
784
cc_basename=$func_cc_basename_result
778
788
# _LT_FILEUTILS_DEFAULTS
779
789
# ----------------------
780
790
# It is okay to use these file commands and assume they have been set
781
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
791
# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
782
792
m4_defun([_LT_FILEUTILS_DEFAULTS],
1347
1358
_LT_CONFIG_SAVE_COMMANDS([
1348
1359
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1349
1360
m4_if(_LT_TAG, [C], [
1350
# See if we are running on zsh, and set the options which allow our
1361
# See if we are running on zsh, and set the options that allow our
1351
1362
# commands through without removal of \ escapes.
1352
if test -n "${ZSH_VERSION+set}" ; then
1363
if test -n "${ZSH_VERSION+set}"; then
1353
1364
setopt NO_GLOB_SUBST
1357
1368
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1360
1371
cat <<_LT_EOF >> "$cfgfile"
1363
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1364
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1373
# Generated automatically by $as_me ($PACKAGE) $VERSION
1365
1374
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1366
1375
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1377
# Provide generalized library-building support services.
1378
# Written by Gordon Matzigkeit, 1996
1369
1381
_LT_LIBTOOL_TAGS
1383
# Configured defaults for sys_lib_dlsearch_path munging.
1384
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1371
1386
# ### BEGIN LIBTOOL CONFIG
1372
1387
_LT_LIBTOOL_CONFIG_VARS
1373
1388
_LT_LIBTOOL_TAG_VARS
1683
1706
case $host_os in
1684
1707
rhapsody* | darwin1.[[012]])
1685
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1708
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1687
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1710
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1688
1711
darwin*) # darwin 5.x on
1689
1712
# if running on 10.5 or later, the deployment target defaults
1690
1713
# to the OS version, if on x86, and 10.4, the deployment
1691
1714
# target defaults to 10.4. Don't you love it?
1692
1715
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1693
1716
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1694
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1696
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1717
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1719
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1698
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1721
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1702
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1725
if test yes = "$lt_cv_apple_cc_single_mod"; then
1703
1726
_lt_dar_single_mod='$single_module'
1705
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1706
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1728
if test yes = "$lt_cv_ld_exported_symbols_list"; then
1729
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1708
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1731
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1710
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1733
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1711
1734
_lt_dsymutil='~$DSYMUTIL $lib || :'
1727
1750
_LT_TAGVAR(hardcode_direct, $1)=no
1728
1751
_LT_TAGVAR(hardcode_automatic, $1)=yes
1729
1752
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1730
if test "$lt_cv_ld_force_load" = "yes"; then
1731
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1753
if test yes = "$lt_cv_ld_force_load"; then
1754
_LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1732
1755
m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1733
1756
[FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1735
1758
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1737
1760
_LT_TAGVAR(link_all_deplibs, $1)=yes
1738
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1761
_LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1739
1762
case $cc_basename in
1740
ifort*) _lt_dar_can_shared=yes ;;
1763
ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1741
1764
*) _lt_dar_can_shared=$GCC ;;
1743
if test "$_lt_dar_can_shared" = "yes"; then
1766
if test yes = "$_lt_dar_can_shared"; then
1744
1767
output_verbose_link_cmd=func_echo_all
1745
_LT_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}"
1746
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1747
_LT_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}"
1748
_LT_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}"
1768
_LT_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"
1769
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1770
_LT_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"
1771
_LT_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"
1749
1772
m4_if([$1], [CXX],
1750
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1751
_LT_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}"
1752
_LT_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}"
1773
[ if test yes != "$lt_cv_apple_cc_single_mod"; then
1774
_LT_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"
1775
_LT_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"
1899
1923
[AC_ARG_ENABLE([libtool-lock],
1900
1924
[AS_HELP_STRING([--disable-libtool-lock],
1901
1925
[avoid locking (might break parallel builds)])])
1902
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1926
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1904
1928
# Some flags need to be propagated to the compiler or linker for good
1905
1929
# libtool support.
1908
# Find out which ABI we are using.
1932
# Find out what ABI is being produced by ac_compile, and set mode
1933
# options accordingly.
1909
1934
echo 'int i;' > conftest.$ac_ext
1910
1935
if AC_TRY_EVAL(ac_compile); then
1911
1936
case `/usr/bin/file conftest.$ac_objext` in
1920
1945
rm -rf conftest*
1923
# Find out which ABI we are using.
1948
# Find out what ABI is being produced by ac_compile, and set linker
1949
# options accordingly.
1924
1950
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1925
1951
if AC_TRY_EVAL(ac_compile); then
1926
if test "$lt_cv_prog_gnu_ld" = yes; then
1952
if test yes = "$lt_cv_prog_gnu_ld"; then
1927
1953
case `/usr/bin/file conftest.$ac_objext` in
1929
1955
LD="${LD-ld} -melf32bsmip"
1952
1978
rm -rf conftest*
1982
# Find out what ABI is being produced by ac_compile, and set linker
1983
# options accordingly.
1984
echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1985
if AC_TRY_EVAL(ac_compile); then
1987
case `/usr/bin/file conftest.$ac_objext` in
1995
case `/usr/bin/file conftest.$ac_objext` in
1997
emul="${emul}btsmip"
2000
emul="${emul}ltsmip"
2003
case `/usr/bin/file conftest.$ac_objext` in
2008
LD="${LD-ld} -m $emul"
1955
2013
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1956
2014
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1957
# Find out which ABI we are using.
2015
# Find out what ABI is being produced by ac_compile, and set linker
2016
# options accordingly. Note that the listed cases only cover the
2017
# situations where additional linker options are needed (such as when
2018
# doing 32-bit compilation for a host where ld defaults to 64-bit, or
2019
# vice versa); the common cases where no linker options are needed do
2020
# not appear in the list.
1958
2021
echo 'int i;' > conftest.$ac_ext
1959
2022
if AC_TRY_EVAL(ac_compile); then
1960
2023
case `/usr/bin/file conftest.o` in
2343
2407
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2344
2408
if test -n "$lt_cv_sys_max_cmd_len" && \
2345
test undefined != "$lt_cv_sys_max_cmd_len"; then
2409
test undefined != "$lt_cv_sys_max_cmd_len"; then
2346
2410
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2347
2411
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2349
2413
# Make teststring a little bigger before we do anything with it.
2350
2414
# a 1K string should be a reasonable start.
2351
for i in 1 2 3 4 5 6 7 8 ; do
2415
for i in 1 2 3 4 5 6 7 8; do
2352
2416
teststring=$teststring$teststring
2354
2418
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2355
2419
# If test is not a shell built-in, we'll probably end up computing a
2356
2420
# maximum length that is only half of the actual maximum length, but
2357
2421
# we can't tell.
2358
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2422
while { test X`env echo "$teststring$teststring" 2>/dev/null` \
2359
2423
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
2360
test $i != 17 # 1/2 MB should be enough
2424
test 17 != "$i" # 1/2 MB should be enough
2362
2426
i=`expr $i + 1`
2363
2427
teststring=$teststring$teststring
2508
2572
case $host_os in
2510
lt_cv_dlopen="load_add_on"
2574
lt_cv_dlopen=load_add_on
2511
2575
lt_cv_dlopen_libs=
2512
2576
lt_cv_dlopen_self=yes
2515
2579
mingw* | pw32* | cegcc*)
2516
lt_cv_dlopen="LoadLibrary"
2580
lt_cv_dlopen=LoadLibrary
2517
2581
lt_cv_dlopen_libs=
2521
lt_cv_dlopen="dlopen"
2522
2586
lt_cv_dlopen_libs=
2526
# if libdl is installed we need to link against it
2590
# if libdl is installed we need to link against it
2527
2591
AC_CHECK_LIB([dl], [dlopen],
2528
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2592
[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
2530
2594
lt_cv_dlopen_libs=
2531
2595
lt_cv_dlopen_self=yes
2600
# Don't try to run any link tests for TPF. We know it's impossible
2601
# because TPF is a cross-compiler, and we know how we open DSOs.
2604
lt_cv_dlopen_self=no
2536
2608
AC_CHECK_FUNC([shl_load],
2537
[lt_cv_dlopen="shl_load"],
2609
[lt_cv_dlopen=shl_load],
2538
2610
[AC_CHECK_LIB([dld], [shl_load],
2539
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2611
[lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
2540
2612
[AC_CHECK_FUNC([dlopen],
2541
[lt_cv_dlopen="dlopen"],
2613
[lt_cv_dlopen=dlopen],
2542
2614
[AC_CHECK_LIB([dl], [dlopen],
2543
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2615
[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
2544
2616
[AC_CHECK_LIB([svld], [dlopen],
2545
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2617
[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
2546
2618
[AC_CHECK_LIB([dld], [dld_link],
2547
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2619
[lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
2733
2805
_LT_TAGVAR(hardcode_action, $1)=
2734
2806
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2735
2807
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2736
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2808
test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2738
2810
# We can hardcode non-existent directories.
2739
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2811
if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2740
2812
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2741
2813
# have to relink, otherwise we might link with an installed library
2742
2814
# when we should be linking with a yet-to-be-installed one
2743
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2744
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2815
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2816
test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2745
2817
# Linking always hardcodes the temporary library directory.
2746
2818
_LT_TAGVAR(hardcode_action, $1)=relink
2802
2874
])# _LT_CMD_STRIPLIB
2877
# _LT_PREPARE_MUNGE_PATH_LIST
2878
# ---------------------------
2879
# Make sure func_munge_path_list() is defined correctly.
2880
m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2881
[[# func_munge_path_list VARIABLE PATH
2882
# -----------------------------------
2883
# VARIABLE is name of variable containing _space_ separated list of
2884
# directories to be munged by the contents of PATH, which is string
2887
# string "DIR[ DIR]" will be prepended to VARIABLE
2889
# string "DIR[ DIR]" will be appended to VARIABLE
2890
# "DIRP[:DIRP]::[DIRA:]DIRA"
2891
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2892
# "DIRA[ DIRA]" will be appended to VARIABLE
2894
# VARIABLE will be replaced by "DIR[ DIR]"
2895
func_munge_path_list ()
2901
eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2904
eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2907
eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2908
eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2911
eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2915
]])# _LT_PREPARE_PATH_LIST
2805
2918
# _LT_SYS_DYNAMIC_LINKER([TAG])
2806
2919
# -----------------------------
2807
2920
# PORTME Fill in your ld.so characteristics
2812
2925
m4_require([_LT_DECL_OBJDUMP])dnl
2813
2926
m4_require([_LT_DECL_SED])dnl
2814
2927
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2928
m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2815
2929
AC_MSG_CHECKING([dynamic linker characteristics])
2818
if test "$GCC" = yes; then
2932
if test yes = "$GCC"; then
2819
2933
case $host_os in
2820
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2821
*) lt_awk_arg="/^libraries:/" ;;
2934
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2935
*) lt_awk_arg='/^libraries:/' ;;
2823
2937
case $host_os in
2824
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2825
*) lt_sed_strip_eq="s,=/,/,g" ;;
2938
mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2939
*) lt_sed_strip_eq='s|=/|/|g' ;;
2827
2941
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2828
2942
case $lt_search_path_spec in
2840
2954
# Ok, now we have the path, separated by spaces, we can step through it
2841
# and add multilib dir if necessary.
2955
# and add multilib dir if necessary...
2842
2956
lt_tmp_lt_search_path_spec=
2843
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2957
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2958
# ...but if some path component already ends with the multilib dir we assume
2959
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2960
case "$lt_multi_os_dir; $lt_search_path_spec " in
2961
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2844
2965
for lt_sys_path in $lt_search_path_spec; do
2845
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2846
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2966
if test -d "$lt_sys_path$lt_multi_os_dir"; then
2967
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2968
elif test -n "$lt_multi_os_dir"; then
2848
2969
test -d "$lt_sys_path" && \
2849
2970
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2852
2973
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2853
BEGIN {RS=" "; FS="/|\n";} {
2974
BEGIN {RS = " "; FS = "/|\n";} {
2856
2977
for (lt_i = NF; lt_i > 0; lt_i--) {
2857
2978
if ($lt_i != "" && $lt_i != ".") {
2858
2979
if ($lt_i == "..") {
2861
2982
if (lt_count == 0) {
2862
lt_foo="/" $lt_i lt_foo;
2983
lt_foo = "/" $lt_i lt_foo;
2914
3038
need_lib_prefix=no
2915
3039
need_version=no
2916
3040
hardcode_into_libs=yes
2917
if test "$host_cpu" = ia64; then
3041
if test ia64 = "$host_cpu"; then
2918
3042
# AIX 5 supports IA64
2919
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3043
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2920
3044
shlibpath_var=LD_LIBRARY_PATH
2922
3046
# With GCC up to 2.95.x, collect2 would create an import file
2923
3047
# for dependence libraries. The import file would start with
2924
# the line `#! .'. This would cause the generated library to
2925
# depend on `.', always an invalid library. This was fixed in
3048
# the line '#! .'. This would cause the generated library to
3049
# depend on '.', always an invalid library. This was fixed in
2926
3050
# development snapshots of GCC prior to 3.0.
2927
3051
case $host_os in
2928
3052
aix4 | aix4.[[01]] | aix4.[[01]].*)
2929
3053
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2931
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3055
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2934
3058
can_build_shared=no
2938
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3062
# Using Import Files as archive members, it is possible to support
3063
# filename-based versioning of shared library archives on AIX. While
3064
# this would work for both with and without runtime linking, it will
3065
# prevent static linking of such archives. So we do filename-based
3066
# shared library versioning with .so extension only, which is used
3067
# when both runtime linking and shared linking is enabled.
3068
# Unfortunately, runtime linking may impact performance, so we do
3069
# not want this to be the default eventually. Also, we use the
3070
# versioned .so libs for executables only if there is the -brtl
3071
# linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
3072
# To allow for filename-based versioning support, we need to create
3073
# libNAME.so.V as an archive file, containing:
3074
# *) an Import File, referring to the versioned filename of the
3075
# archive as well as the shared archive member, telling the
3076
# bitwidth (32 or 64) of that shared object, and providing the
3077
# list of exported symbols of that shared object, eventually
3078
# decorated with the 'weak' keyword
3079
# *) the shared object with the F_LOADONLY flag set, to really avoid
3080
# it being seen by the linker.
3081
# At run time we better use the real file rather than another symlink,
3082
# but for link time we create the symlink libNAME.so -> libNAME.so.V
3084
case $with_aix_soname,$aix_use_runtimelinking in
3085
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2939
3086
# soname into executable. Probably we can add versioning support to
2940
3087
# collect2, so additional links can be useful in future.
2941
if test "$aix_use_runtimelinking" = yes; then
3088
aix,yes) # traditional libtool
3089
dynamic_linker='AIX unversionable lib.so'
2942
3090
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2943
3091
# instead of lib<name>.a to let people know that these are not
2944
3092
# typical AIX shared libraries.
2945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3093
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3095
aix,no) # traditional AIX only
3096
dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2947
3097
# We preserve .a as extension for shared libraries through AIX4.2
2948
3098
# and later when we are not doing run time linking.
2949
library_names_spec='${libname}${release}.a $libname.a'
2950
soname_spec='${libname}${release}${shared_ext}$major'
3099
library_names_spec='$libname$release.a $libname.a'
3100
soname_spec='$libname$release$shared_ext$major'
3102
svr4,*) # full svr4 only
3103
dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
3104
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
3105
# We do not specify a path in Import Files, so LIBPATH fires.
3106
shlibpath_overrides_runpath=yes
3108
*,yes) # both, prefer svr4
3109
dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
3110
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
3111
# unpreferred sharedlib libNAME.a needs extra handling
3112
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
3113
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
3114
# We do not specify a path in Import Files, so LIBPATH fires.
3115
shlibpath_overrides_runpath=yes
3117
*,no) # both, prefer aix
3118
dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
3119
library_names_spec='$libname$release.a $libname.a'
3120
soname_spec='$libname$release$shared_ext$major'
3121
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
3122
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
3123
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2952
3126
shlibpath_var=LIBPATH
3281
3457
dynamic_linker=no
3461
version_type=none # Android doesn't support versioned libraries.
3464
library_names_spec='$libname$release$shared_ext'
3465
soname_spec='$libname$release$shared_ext'
3467
shlibpath_var=LD_LIBRARY_PATH
3468
shlibpath_overrides_runpath=yes
3470
# This implies no fast_install, which is unacceptable.
3471
# Some rework will be needed to allow for fast_install
3472
# before this can be enabled.
3473
hardcode_into_libs=yes
3475
dynamic_linker='Android linker'
3476
# Don't embed -rpath directories since the linker doesn't support them.
3477
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3284
3480
# This must be glibc/ELF.
3285
3481
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3286
3482
version_type=linux # correct to gnu/linux during the next big refactor
3287
3483
need_lib_prefix=no
3288
3484
need_version=no
3289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3290
soname_spec='${libname}${release}${shared_ext}$major'
3485
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3486
soname_spec='$libname$release$shared_ext$major'
3291
3487
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3292
3488
shlibpath_var=LD_LIBRARY_PATH
3293
3489
shlibpath_overrides_runpath=no
3368
3569
version_type=qnx
3369
3570
need_lib_prefix=no
3370
3571
need_version=no
3371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3372
soname_spec='${libname}${release}${shared_ext}$major'
3572
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3573
soname_spec='$libname$release$shared_ext$major'
3373
3574
shlibpath_var=LD_LIBRARY_PATH
3374
3575
shlibpath_overrides_runpath=no
3375
3576
hardcode_into_libs=yes
3376
3577
dynamic_linker='ldqnx.so'
3380
3581
version_type=sunos
3381
sys_lib_dlsearch_path_spec="/usr/lib"
3582
sys_lib_dlsearch_path_spec=/usr/lib
3382
3583
need_lib_prefix=no
3383
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3385
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3386
*) need_version=no ;;
3388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3584
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3589
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3389
3590
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3390
3591
shlibpath_var=LD_LIBRARY_PATH
3391
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3393
openbsd2.[[89]] | openbsd2.[[89]].*)
3394
shlibpath_overrides_runpath=no
3397
shlibpath_overrides_runpath=yes
3401
shlibpath_overrides_runpath=yes
3592
shlibpath_overrides_runpath=yes
3406
3596
libname_spec='$name'
3597
version_type=windows
3408
3600
need_lib_prefix=no
3409
library_names_spec='$libname${shared_ext} $libname.a'
3601
# OS/2 can only load a DLL with a base name of 8 characters or less.
3602
soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
3603
v=$($ECHO $release$versuffix | tr -d .-);
3604
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
3605
$ECHO $n$v`$shared_ext'
3606
library_names_spec='${libname}_dll.$libext'
3410
3607
dynamic_linker='OS/2 ld.exe'
3411
shlibpath_var=LIBPATH
3608
shlibpath_var=BEGINLIBPATH
3609
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3610
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3611
postinstall_cmds='base_file=`basename \$file`~
3612
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
3613
dldir=$destdir/`dirname \$dlpath`~
3614
test -d \$dldir || mkdir -p \$dldir~
3615
$install_prog $dir/$dlname \$dldir/$dlname~
3616
chmod a+x \$dldir/$dlname~
3617
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3618
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3620
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
3621
dlpath=$dir/\$dldll~
3414
3625
osf3* | osf4* | osf5*)
3415
3626
version_type=osf
3416
3627
need_lib_prefix=no
3417
3628
need_version=no
3418
soname_spec='${libname}${release}${shared_ext}$major'
3419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3629
soname_spec='$libname$release$shared_ext$major'
3630
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3420
3631
shlibpath_var=LD_LIBRARY_PATH
3421
3632
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3422
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3633
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3478
if test -d /usr/nec ;then
3689
if test -d /usr/nec; then
3479
3690
version_type=linux # correct to gnu/linux during the next big refactor
3480
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3481
soname_spec='$libname${shared_ext}.$major'
3691
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3692
soname_spec='$libname$shared_ext.$major'
3482
3693
shlibpath_var=LD_LIBRARY_PATH
3486
3697
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3487
version_type=freebsd-elf
3488
3699
need_lib_prefix=no
3489
3700
need_version=no
3490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3491
soname_spec='${libname}${release}${shared_ext}$major'
3701
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3702
soname_spec='$libname$release$shared_ext$major'
3492
3703
shlibpath_var=LD_LIBRARY_PATH
3493
3704
shlibpath_overrides_runpath=yes
3494
3705
hardcode_into_libs=yes
3495
if test "$with_gnu_ld" = yes; then
3706
if test yes = "$with_gnu_ld"; then
3496
3707
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3498
3709
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3530
3741
AC_MSG_RESULT([$dynamic_linker])
3531
test "$dynamic_linker" = no && can_build_shared=no
3742
test no = "$dynamic_linker" && can_build_shared=no
3533
3744
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3534
if test "$GCC" = yes; then
3745
if test yes = "$GCC"; then
3535
3746
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3538
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3539
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3541
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3542
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3749
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3750
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3753
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3754
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3757
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3758
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3760
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3761
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3763
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3764
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3545
3766
_LT_DECL([], [variables_saved_for_relink], [1],
3546
3767
[Variables whose values should be saved in libtool wrapper scripts and
3574
3795
[Whether we should hardcode library paths into libraries])
3575
3796
_LT_DECL([], [sys_lib_search_path_spec], [2],
3576
3797
[Compile-time system search path for libraries])
3577
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3578
[Run-time system search path for libraries])
3798
_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3799
[Detected run-time system search path for libraries])
3800
_LT_DECL([], [configure_time_lt_sys_library_path], [2],
3801
[Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3579
3802
])# _LT_SYS_DYNAMIC_LINKER
3582
3805
# _LT_PATH_TOOL_PREFIX(TOOL)
3583
3806
# --------------------------
3584
# find a file program which can recognize shared library
3807
# find a file program that can recognize shared library
3585
3808
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3586
3809
[m4_require([_LT_DECL_EGREP])dnl
3587
3810
AC_MSG_CHECKING([for $1])
3588
3811
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3589
3812
[case $MAGIC_CMD in
3590
3813
[[\\/*] | ?:[\\/]*])
3591
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3814
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3594
lt_save_MAGIC_CMD="$MAGIC_CMD"
3595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3817
lt_save_MAGIC_CMD=$MAGIC_CMD
3818
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3596
3819
dnl $ac_dummy forces splitting on constant user-supplied paths.
3597
3820
dnl POSIX.2 word splitting is done only on the output of word expansions,
3598
3821
dnl not every word. This closes a longstanding sh security hole.
3599
3822
ac_dummy="m4_if([$2], , $PATH, [$2])"
3600
3823
for ac_dir in $ac_dummy; do
3602
3825
test -z "$ac_dir" && ac_dir=.
3603
if test -f $ac_dir/$1; then
3604
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3826
if test -f "$ac_dir/$1"; then
3827
lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3605
3828
if test -n "$file_magic_test_file"; then
3606
3829
case $deplibs_check_method in
3607
3830
"file_magic "*)
3608
3831
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3609
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3832
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3610
3833
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3611
3834
$EGREP "$file_magic_regex" > /dev/null; then
3712
3935
with_gnu_ld=unknown
3715
elif test "$with_gnu_ld" = yes; then
3938
elif test yes = "$with_gnu_ld"; then
3716
3939
AC_MSG_CHECKING([for GNU ld])
3718
3941
AC_MSG_CHECKING([for non-GNU ld])
3720
3943
AC_CACHE_VAL(lt_cv_path_LD,
3721
3944
[if test -z "$LD"; then
3722
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3945
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3723
3946
for ac_dir in $PATH; do
3725
3948
test -z "$ac_dir" && ac_dir=.
3726
3949
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3727
lt_cv_path_LD="$ac_dir/$ac_prog"
3950
lt_cv_path_LD=$ac_dir/$ac_prog
3728
3951
# Check to see if the program is GNU ld. I'd rather use --version,
3729
3952
# but apparently some variants of GNU ld only accept -v.
3730
3953
# Break only if it was the GNU/non-GNU ld that we prefer.
3731
3954
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3732
3955
*GNU* | *'with BFD'*)
3733
test "$with_gnu_ld" != no && break
3956
test no != "$with_gnu_ld" && break
3736
test "$with_gnu_ld" != yes && break
3959
test yes != "$with_gnu_ld" && break
3743
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3966
lt_cv_path_LD=$LD # Let the user override the test with a path.
3746
3969
if test -n "$LD"; then
3747
3970
AC_MSG_RESULT($LD)
3813
4036
])# _LT_CMD_RELOAD
4042
m4_defun([_LT_PATH_DD],
4043
[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
4044
[printf 0123456789abcdef0123456789abcdef >conftest.i
4045
cat conftest.i conftest.i >conftest2.i
4047
AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
4048
[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
4049
cmp -s conftest.i conftest.out \
4050
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
4052
rm -f conftest.i conftest2.i conftest.out])
4058
# find command to truncate a binary pipe
4059
m4_defun([_LT_CMD_TRUNCATE],
4060
[m4_require([_LT_PATH_DD])
4061
AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
4062
[printf 0123456789abcdef0123456789abcdef >conftest.i
4063
cat conftest.i conftest.i >conftest2.i
4065
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
4066
cmp -s conftest.i conftest.out \
4067
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
4069
rm -f conftest.i conftest2.i conftest.out
4070
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
4071
_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
4072
[Command to truncate a binary pipe])
4073
])# _LT_CMD_TRUNCATE
3816
4076
# _LT_CHECK_MAGIC_METHOD
3817
4077
# ----------------------
3818
4078
# how to check for library dependencies
4052
4314
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4053
4315
[if test -n "$NM"; then
4054
4316
# Let the user override the test.
4057
lt_nm_to_check="${ac_tool_prefix}nm"
4319
lt_nm_to_check=${ac_tool_prefix}nm
4058
4320
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4059
4321
lt_nm_to_check="$lt_nm_to_check nm"
4061
4323
for lt_tmp_nm in $lt_nm_to_check; do
4062
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4324
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4063
4325
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4065
4327
test -z "$ac_dir" && ac_dir=.
4066
tmp_nm="$ac_dir/$lt_tmp_nm"
4067
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4328
tmp_nm=$ac_dir/$lt_tmp_nm
4329
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4068
4330
# Check to see if the nm accepts a BSD-compat flag.
4069
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4331
# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4070
4332
# nm: unknown option "B" ignored
4071
4333
# Tru64's nm complains that /dev/null is an invalid object file
4072
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4073
*/dev/null* | *'Invalid file or object type'*)
4334
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4336
mingw*) lt_bad_file=conftest.nm/nofile ;;
4337
*) lt_bad_file=/dev/null ;;
4339
case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4340
*$lt_bad_file* | *'Invalid file or object type'*)
4074
4341
lt_cv_path_NM="$tmp_nm -B"
4078
4345
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4080
4347
lt_cv_path_NM="$tmp_nm -p"
4084
4351
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4324
4606
symcode='[[ABCDGIRSTW]]' ;;
4609
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4610
# Gets list of data symbols to import.
4611
lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
4612
# Adjust the below global symbol transforms to fixup imported variables.
4613
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
4614
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
4615
lt_c_name_lib_hook="\
4616
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
4617
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
4619
# Disable hooks by default.
4620
lt_cv_sys_global_symbol_to_import=
4327
4626
# Transform an extracted symbol line into a proper C declaration.
4328
4627
# Some systems (esp. on ia64) link data and code symbols differently,
4329
4628
# so use this general approach.
4330
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4629
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4631
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4632
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
4332
4634
# Transform an extracted symbol line into symbol name and symbol address
4333
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4334
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4635
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4637
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4638
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4640
# Transform an extracted symbol line into symbol name with lib prefix and
4642
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4643
$lt_c_name_lib_hook\
4644
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4645
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4646
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4336
4648
# Handle CRLF in mingw tool chain
4350
4662
# Write the raw and C identifiers.
4351
4663
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4352
# Fake it for dumpbin and say T for any non-static function
4353
# and D for any global variable.
4664
# Fake it for dumpbin and say T for any non-static function,
4665
# D for any global variable and I for any imported variable.
4354
4666
# Also find C++ and __fastcall symbols from MSVC++,
4355
4667
# which start with @ or ?.
4356
4668
lt_cv_sys_global_symbol_pipe="$AWK ['"\
4357
4669
" {last_section=section; section=\$ 3};"\
4358
4670
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4359
4671
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4672
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4673
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4674
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4360
4675
" \$ 0!~/External *\|/{next};"\
4361
4676
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4362
4677
" {if(hide[section]) next};"\
4363
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4364
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4365
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4366
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4678
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4679
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4680
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4681
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4367
4682
" ' prfx=^$ac_symprfx]"
4369
4684
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4503
4818
[Take the output of nm and produce a listing of raw symbols and C names])
4504
4819
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4505
4820
[Transform the output of nm in a proper C declaration])
4821
_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4822
[Transform the output of nm into a list of symbols to manually relocate])
4506
4823
_LT_DECL([global_symbol_to_c_name_address],
4507
4824
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4508
4825
[Transform the output of nm in a C name address pair])
4509
4826
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4510
4827
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4511
4828
[Transform the output of nm in a C name address pair when lib prefix is needed])
4829
_LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4830
[The name lister interface])
4512
4831
_LT_DECL([], [nm_file_list_spec], [1],
4513
4832
[Specify filename containing input files for $NM])
4514
4833
]) # _LT_CMD_GLOBAL_SYMBOLS
5206
5562
case $host_os in
5208
5564
# If we're using GNU nm, then we don't want the "-C" option.
5209
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5210
# Also, AIX nm treats weak defined symbols like other global defined
5211
# symbols, whereas GNU nm marks them as "W".
5565
# -C means demangle to GNU nm, but means don't demangle to AIX nm.
5566
# Without the "-l" option, or with the "-B" option, AIX nm treats
5567
# weak defined symbols like other global defined symbols, whereas
5568
# GNU nm marks them as "W".
5569
# While the 'weak' keyword is ignored in the Export File, we need
5570
# it in the Import File for the 'aix-soname' feature, so we have
5571
# to replace the "-B" option with "-P" for AIX nm.
5212
5572
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5213
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5573
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5215
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5575
_LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5219
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5579
_LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
5221
5581
cygwin* | mingw* | cegcc*)
5222
5582
case $cc_basename in
5329
if test "$lt_use_gnu_ld_interface" = yes; then
5689
if test yes = "$lt_use_gnu_ld_interface"; then
5330
5690
# If archive_cmds runs LD, not CC, wlarc should be empty
5333
5693
# Set some defaults for GNU ld with shared library support. These
5334
5694
# are reset later if shared libraries are not supported. Putting them
5335
5695
# here allows them to be overridden if necessary.
5336
5696
runpath_var=LD_RUN_PATH
5337
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5338
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5697
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5698
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5339
5699
# ancient GNU ld didn't support --whole-archive et. al.
5340
5700
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5341
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5701
_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5343
5703
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5345
5705
supports_anon_versioning=no
5346
case `$LD -v 2>&1` in
5706
case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5347
5707
*GNU\ gold*) supports_anon_versioning=yes ;;
5348
5708
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5349
5709
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5409
5769
_LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5411
5771
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5412
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5413
# If the export-symbols file already is a .def file (1st line
5414
# is EXPORTS), use it as is; otherwise, prepend...
5415
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5416
cp $export_symbols $output_objdir/$soname.def;
5418
echo EXPORTS > $output_objdir/$soname.def;
5419
cat $export_symbols >> $output_objdir/$soname.def;
5421
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5772
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5773
# If the export-symbols file already is a .def file, use it as
5774
# is; otherwise, prepend EXPORTS...
5775
_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5776
cp $export_symbols $output_objdir/$soname.def;
5778
echo EXPORTS > $output_objdir/$soname.def;
5779
cat $export_symbols >> $output_objdir/$soname.def;
5781
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5423
5783
_LT_TAGVAR(ld_shlibs, $1)=no
5428
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5788
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5429
5789
_LT_TAGVAR(link_all_deplibs, $1)=yes
5793
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5794
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5795
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5797
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5798
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5799
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5800
$ECHO EXPORTS >> $output_objdir/$libname.def~
5801
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5802
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5803
emximp -o $lib $output_objdir/$libname.def'
5804
_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5805
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5806
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5807
$ECHO EXPORTS >> $output_objdir/$libname.def~
5809
if test EXPORTS = "`$SED 1q $export_symbols`"; then
5810
prefix_cmds="$prefix_cmds -e 1d";
5812
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5813
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5814
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5815
emximp -o $lib $output_objdir/$libname.def'
5816
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5817
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5432
5820
interix[[3-9]]*)
5433
5821
_LT_TAGVAR(hardcode_direct, $1)=no
5434
5822
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5435
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5436
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5823
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5824
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5437
5825
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5438
5826
# Instead, shared libraries are loaded at an image base (0x10000000 by
5439
5827
# default) and relocated if they conflict, which is a slow very memory
5440
5828
# consuming and fragmenting process. To avoid this, we pick a random,
5441
5829
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5442
5830
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5443
_LT_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'
5444
_LT_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'
5831
_LT_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'
5832
_LT_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'
5447
5835
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5449
if test "$host_os" = linux-dietlibc; then
5837
if test linux-dietlibc = "$host_os"; then
5450
5838
case $cc_basename in
5451
5839
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5454
5842
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5455
&& test "$tmp_diet" = no
5843
&& test no = "$tmp_diet"
5457
5845
tmp_addflag=' $pic_flag'
5458
5846
tmp_sharedflag='-shared'
5459
5847
case $cc_basename,$host_cpu in
5460
5848
pgcc*) # Portland Group C compiler
5461
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5849
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5462
5850
tmp_addflag=' $pic_flag'
5464
5852
pgf77* | pgf90* | pgf95* | pgfortran*)
5465
5853
# Portland Group f77 and f90 compilers
5466
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5854
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5467
5855
tmp_addflag=' $pic_flag -Mnomain' ;;
5468
5856
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5469
5857
tmp_addflag=' -i_dynamic' ;;
5474
5862
lf95*) # Lahey Fortran 8.1
5475
5863
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5476
5864
tmp_sharedflag='--shared' ;;
5865
nagfor*) # NAGFOR 5.3
5866
tmp_sharedflag='-Wl,-shared' ;;
5477
5867
xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5478
5868
tmp_sharedflag='-qmkshrobj'
5479
5869
tmp_addflag= ;;
5480
5870
nvcc*) # Cuda Compiler Driver 2.2
5481
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5871
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5482
5872
_LT_TAGVAR(compiler_needs_object, $1)=yes
5485
5875
case `$CC -V 2>&1 | sed 5q` in
5486
5876
*Sun\ C*) # Sun C 5.9
5487
_LT_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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5877
_LT_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; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5488
5878
_LT_TAGVAR(compiler_needs_object, $1)=yes
5489
5879
tmp_sharedflag='-G' ;;
5490
5880
*Sun\ F*) # Sun Fortran 8.3
5491
5881
tmp_sharedflag='-G' ;;
5493
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5883
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5495
if test "x$supports_anon_versioning" = xyes; then
5885
if test yes = "$supports_anon_versioning"; then
5496
5886
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5497
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5498
echo "local: *; };" >> $output_objdir/$libname.ver~
5499
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5887
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5888
echo "local: *; };" >> $output_objdir/$libname.ver~
5889
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5502
5892
case $cc_basename in
5894
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5503
5896
xlf* | bgf* | bgxlf* | mpixlf*)
5504
5897
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5505
5898
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5506
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5899
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5507
5900
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5508
if test "x$supports_anon_versioning" = xyes; then
5901
if test yes = "$supports_anon_versioning"; then
5509
5902
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5510
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5511
echo "local: *; };" >> $output_objdir/$libname.ver~
5512
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5903
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5904
echo "local: *; };" >> $output_objdir/$libname.ver~
5905
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5624
if test "$host_cpu" = ia64; then
6017
if test ia64 = "$host_cpu"; then
5625
6018
# On IA64, the linker does run time linking by default, so we don't
5626
6019
# have to do anything special.
5627
6020
aix_use_runtimelinking=no
5628
6021
exp_sym_flag='-Bexport'
5631
6024
# If we're using GNU nm, then we don't want the "-C" option.
5632
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5633
# Also, AIX nm treats weak defined symbols like other global
5634
# defined symbols, whereas GNU nm marks them as "W".
6025
# -C means demangle to GNU nm, but means don't demangle to AIX nm.
6026
# Without the "-l" option, or with the "-B" option, AIX nm treats
6027
# weak defined symbols like other global defined symbols, whereas
6028
# GNU nm marks them as "W".
6029
# While the 'weak' keyword is ignored in the Export File, we need
6030
# it in the Import File for the 'aix-soname' feature, so we have
6031
# to replace the "-B" option with "-P" for AIX nm.
5635
6032
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5636
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6033
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5638
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
6035
_LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5640
6037
aix_use_runtimelinking=no
5642
6039
# Test if we are trying to use run time linking or normal
5643
6040
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5644
# need to do runtime linking.
6041
# have runtime linking enabled, and use it for executables.
6042
# For shared libraries, we enable/disable runtime linking
6043
# depending on the kind of the shared library created -
6044
# when "with_aix_soname,aix_use_runtimelinking" is:
6045
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6046
# "aix,yes" lib.so shared, rtl:yes, for executables
6047
# lib.a static archive
6048
# "both,no" lib.so.V(shr.o) shared, rtl:yes
6049
# lib.a(lib.so.V) shared, rtl:no, for executables
6050
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6051
# lib.a(lib.so.V) shared, rtl:no
6052
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6053
# lib.a static archive
5645
6054
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5646
6055
for ld_flag in $LDFLAGS; do
5647
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6056
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5648
6057
aix_use_runtimelinking=yes
6061
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6062
# With aix-soname=svr4, we create the lib.so.V shared archives only,
6063
# so we don't have lib.a shared libs to link our executables.
6064
# We have to force runtime linking in this case.
6065
aix_use_runtimelinking=yes
6066
LDFLAGS="$LDFLAGS -Wl,-brtl"
5667
6083
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5668
6084
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5669
6085
_LT_TAGVAR(link_all_deplibs, $1)=yes
5670
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6086
_LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6087
case $with_aix_soname,$aix_use_runtimelinking in
6088
aix,*) ;; # traditional, no import file
6089
svr4,* | *,yes) # use import file
6090
# The Import File defines what to hardcode.
6091
_LT_TAGVAR(hardcode_direct, $1)=no
6092
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5672
if test "$GCC" = yes; then
6096
if test yes = "$GCC"; then
5673
6097
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5674
6098
# We only want to do this on AIX 4.2 and lower, the check
5675
6099
# below for broken collect2 doesn't work under 4.3+
5676
collect2name=`${CC} -print-prog-name=collect2`
6100
collect2name=`$CC -print-prog-name=collect2`
5677
6101
if test -f "$collect2name" &&
5678
6102
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5694
6118
shared_flag='-shared'
5695
if test "$aix_use_runtimelinking" = yes; then
5696
shared_flag="$shared_flag "'${wl}-G'
6119
if test yes = "$aix_use_runtimelinking"; then
6120
shared_flag="$shared_flag "'$wl-G'
5698
_LT_TAGVAR(link_all_deplibs, $1)=no
6122
# Need to ensure runtime linking is disabled for the traditional
6123
# shared library, or the linker may eventually find shared libraries
6124
# /with/ Import File - we do not want to mix them.
6125
shared_flag_aix='-shared'
6126
shared_flag_svr4='-shared $wl-G'
5700
6128
# not using gcc
5701
if test "$host_cpu" = ia64; then
6129
if test ia64 = "$host_cpu"; then
5702
6130
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5703
6131
# chokes on -Wl,-G. The following line is correct:
5704
6132
shared_flag='-G'
5706
if test "$aix_use_runtimelinking" = yes; then
5707
shared_flag='${wl}-G'
6134
if test yes = "$aix_use_runtimelinking"; then
5709
shared_flag='${wl}-bM:SRE'
6137
shared_flag='$wl-bM:SRE'
6139
shared_flag_aix='$wl-bM:SRE'
6140
shared_flag_svr4='$wl-G'
5714
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6144
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5715
6145
# It seems that -bexpall does not export symbols beginning with
5716
6146
# underscore (_), so it is better to generate a list of symbols to export.
5717
6147
_LT_TAGVAR(always_export_symbols, $1)=yes
5718
if test "$aix_use_runtimelinking" = yes; then
6148
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5719
6149
# Warning - without using the other runtime loading flags (-brtl),
5720
6150
# -berok will link without error, but may produce a broken library.
5721
6151
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5722
6152
# Determine the default libpath from the value encoded in an
5723
6153
# empty executable.
5724
6154
_LT_SYS_MODULE_PATH_AIX([$1])
5725
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5726
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6155
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6156
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5728
if test "$host_cpu" = ia64; then
5729
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6158
if test ia64 = "$host_cpu"; then
6159
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5730
6160
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5731
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6161
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
5733
6163
# Determine the default libpath from the value encoded in an
5734
6164
# empty executable.
5735
6165
_LT_SYS_MODULE_PATH_AIX([$1])
5736
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6166
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5737
6167
# Warning - without using the other run time loading flags,
5738
6168
# -berok will link without error, but may produce a broken library.
5739
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5740
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5741
if test "$with_gnu_ld" = yes; then
6169
_LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6170
_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6171
if test yes = "$with_gnu_ld"; then
5742
6172
# We only use this code for GNU lds that support --whole-archive.
5743
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6173
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5745
6175
# Exported symbols can be pulled into shared objects from archives
5746
6176
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5748
6178
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5749
# This is similar to how AIX traditionally builds its shared libraries.
5750
_LT_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'
6179
_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6180
# -brtl affects multiple linker settings, -berok does not and is overridden later
6181
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6182
if test svr4 != "$with_aix_soname"; then
6183
# This is similar to how AIX traditionally builds its shared libraries.
6184
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6186
if test aix != "$with_aix_soname"; then
6187
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6189
# used by -dlpreopen to get the symbols
6190
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6192
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5786
6228
# Tell ltmain to make .lib files, not .a files.
5788
6230
# Tell ltmain to make .dll files, not .so files.
5790
6232
# FIXME: Setting linknames here is a bad hack.
5791
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5792
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5793
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5795
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5797
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6233
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6234
_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6235
cp "$export_symbols" "$output_objdir/$soname.def";
6236
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6238
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6240
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5799
6242
# The linker will not automatically build a static lib if we build a DLL.
5800
6243
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5801
6244
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5877
if test "$GCC" = yes; then
5878
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6320
if test yes = "$GCC"; then
6321
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5880
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6323
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5882
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6325
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5883
6326
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5884
6327
_LT_TAGVAR(hardcode_direct, $1)=yes
5886
6329
# hardcode_minus_L: Not really in the search PATH,
5887
6330
# but as the default location of the library.
5888
6331
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5889
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6332
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5893
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5894
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6336
if test yes,no = "$GCC,$with_gnu_ld"; then
6337
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5896
6339
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5898
if test "$with_gnu_ld" = no; then
5899
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6341
if test no = "$with_gnu_ld"; then
6342
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5900
6343
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5901
6344
_LT_TAGVAR(hardcode_direct, $1)=yes
5902
6345
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5903
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6346
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5904
6347
# hardcode_minus_L: Not really in the search PATH,
5905
6348
# but as the default location of the library.
5906
6349
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5911
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
6354
if test yes,no = "$GCC,$with_gnu_ld"; then
5912
6355
case $host_cpu in
5914
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6357
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5917
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6360
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5920
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6363
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5924
6367
case $host_cpu in
5926
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6369
_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5929
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6372
_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5932
6375
m4_if($1, [], [
5934
6377
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5935
6378
_LT_LINKER_OPTION([if $CC understands -b],
5936
6379
_LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5937
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
6380
[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5938
6381
[_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5939
[_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
6382
[_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5943
if test "$with_gnu_ld" = no; then
5944
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6386
if test no = "$with_gnu_ld"; then
6387
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5945
6388
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5947
6390
case $host_cpu in
5965
6408
irix5* | irix6* | nonstopux*)
5966
if test "$GCC" = yes; then
5967
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6409
if test yes = "$GCC"; then
6410
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5968
6411
# Try to use the -exported_symbol ld option, if it does not
5969
6412
# work, assume that -exports_file does not work either and
5970
6413
# implicitly export all symbols.
5971
6414
# This should be the same for all languages, so no per-tag cache variable.
5972
6415
AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5973
6416
[lt_cv_irix_exported_symbol],
5974
[save_LDFLAGS="$LDFLAGS"
5975
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6417
[save_LDFLAGS=$LDFLAGS
6418
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5976
6419
AC_LINK_IFELSE(
5977
6420
[AC_LANG_SOURCE(
5978
6421
[AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5986
6429
[lt_cv_irix_exported_symbol=yes],
5987
6430
[lt_cv_irix_exported_symbol=no])
5988
LDFLAGS="$save_LDFLAGS"])
5989
if test "$lt_cv_irix_exported_symbol" = yes; then
5990
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6431
LDFLAGS=$save_LDFLAGS])
6432
if test yes = "$lt_cv_irix_exported_symbol"; then
6433
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
6435
_LT_TAGVAR(link_all_deplibs, $1)=no
5993
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5994
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6437
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6438
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
5996
6440
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5997
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6441
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5998
6442
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5999
6443
_LT_TAGVAR(inherit_rpath, $1)=yes
6000
6444
_LT_TAGVAR(link_all_deplibs, $1)=yes
6448
case $cc_basename in
6450
# Fabrice Bellard et al's Tiny C Compiler
6451
_LT_TAGVAR(ld_shlibs, $1)=yes
6452
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6003
6457
netbsd* | netbsdelf*-gnu)
6004
6458
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6005
6459
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6026
6480
if test -f /usr/libexec/ld.so; then
6027
6481
_LT_TAGVAR(hardcode_direct, $1)=yes
6028
6482
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6029
6483
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6030
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6484
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6031
6485
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6032
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6033
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6034
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6486
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
6487
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6488
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6037
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6038
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6039
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6042
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6043
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6490
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6491
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6048
6494
_LT_TAGVAR(ld_shlibs, $1)=no
6053
6499
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6054
6500
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6055
6501
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6056
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6057
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6503
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6504
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6505
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6506
$ECHO EXPORTS >> $output_objdir/$libname.def~
6507
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6508
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6509
emximp -o $lib $output_objdir/$libname.def'
6510
_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6511
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6512
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6513
$ECHO EXPORTS >> $output_objdir/$libname.def~
6515
if test EXPORTS = "`$SED 1q $export_symbols`"; then
6516
prefix_cmds="$prefix_cmds -e 1d";
6518
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6519
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6520
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6521
emximp -o $lib $output_objdir/$libname.def'
6522
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6523
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6061
if test "$GCC" = yes; then
6062
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6063
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6527
if test yes = "$GCC"; then
6528
_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
6529
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
6065
6531
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6066
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6532
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6068
6534
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6069
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6535
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6070
6536
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6073
6539
osf4* | osf5*) # as osf3* with the addition of -msym flag
6074
if test "$GCC" = yes; then
6075
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6076
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6077
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6540
if test yes = "$GCC"; then
6541
_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
6542
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
6543
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6079
6545
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6080
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6546
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6081
6547
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
6082
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6548
$CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
6084
6550
# Both c and cxx compiler support -rpath directly
6085
6551
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6092
6558
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6093
if test "$GCC" = yes; then
6095
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6559
if test yes = "$GCC"; then
6561
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
6096
6562
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6097
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6563
$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6099
6565
case `$CC -V 2>&1` in
6100
6566
*"Compilers 5.0"*)
6102
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6568
_LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
6103
6569
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6104
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6570
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
6108
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6574
_LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
6109
6575
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6110
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6576
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6185
6651
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6186
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6652
_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6187
6653
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6188
6654
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6189
6655
runpath_var='LD_RUN_PATH'
6191
if test "$GCC" = yes; then
6192
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6193
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6657
if test yes = "$GCC"; then
6658
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6659
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6195
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6196
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6661
_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6662
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6200
6666
sysv5* | sco3.2v5* | sco5v6*)
6201
# Note: We can NOT use -z defs as we might desire, because we do not
6667
# Note: We CANNOT use -z defs as we might desire, because we do not
6202
6668
# link with -lc, and that would cause any symbols used from libc to
6203
6669
# always be unresolved, which means just about no library would
6204
6670
# ever link correctly. If we're not using GNU ld we use -z text
6205
6671
# though, which does catch some bad symbols but isn't as heavy-handed
6207
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6208
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6673
_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6674
_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6209
6675
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6210
6676
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6211
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6677
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6212
6678
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6213
6679
_LT_TAGVAR(link_all_deplibs, $1)=yes
6214
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6680
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6215
6681
runpath_var='LD_RUN_PATH'
6217
if test "$GCC" = yes; then
6218
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6219
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6683
if test yes = "$GCC"; then
6684
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6685
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6221
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6222
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6687
_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6688
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6341
6807
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6342
6808
[Whether we need a single "-rpath" flag with a separated argument])
6343
6809
_LT_TAGDECL([], [hardcode_direct], [0],
6344
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6810
[Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6345
6811
DIR into the resulting binary])
6346
6812
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6347
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6813
[Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6348
6814
DIR into the resulting binary and the resulting library dependency is
6349
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6815
"absolute", i.e impossible to change by setting $shlibpath_var if the
6350
6816
library is relocated])
6351
6817
_LT_TAGDECL([], [hardcode_minus_L], [0],
6352
6818
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6559
7029
if test -n "$compiler"; then
6560
7030
# We don't want -fno-exception when compiling C++ code, so set the
6561
7031
# no_builtin_flag separately
6562
if test "$GXX" = yes; then
7032
if test yes = "$GXX"; then
6563
7033
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6565
7035
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6568
if test "$GXX" = yes; then
7038
if test yes = "$GXX"; then
6569
7039
# Set up default GNU C++ configuration
6573
7043
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6574
7044
# archiving commands below assume that GNU ld is being used.
6575
if test "$with_gnu_ld" = yes; then
6576
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6577
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045
if test yes = "$with_gnu_ld"; then
7046
_LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7047
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6579
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6580
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7049
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7050
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6582
7052
# If archive_cmds runs LD, not CC, wlarc should be empty
6583
7053
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6584
7054
# investigate it a little bit more. (MM)
6587
7057
# ancient GNU ld didn't support --whole-archive et. al.
6588
7058
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6589
7059
$GREP 'no-whole-archive' > /dev/null; then
6590
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7060
_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6592
7062
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6623
7093
_LT_TAGVAR(ld_shlibs, $1)=no
6626
if test "$host_cpu" = ia64; then
7096
if test ia64 = "$host_cpu"; then
6627
7097
# On IA64, the linker does run time linking by default, so we don't
6628
7098
# have to do anything special.
6629
7099
aix_use_runtimelinking=no
6630
7100
exp_sym_flag='-Bexport'
6633
7103
aix_use_runtimelinking=no
6635
7105
# Test if we are trying to use run time linking or normal
6636
7106
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6637
# need to do runtime linking.
7107
# have runtime linking enabled, and use it for executables.
7108
# For shared libraries, we enable/disable runtime linking
7109
# depending on the kind of the shared library created -
7110
# when "with_aix_soname,aix_use_runtimelinking" is:
7111
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
7112
# "aix,yes" lib.so shared, rtl:yes, for executables
7113
# lib.a static archive
7114
# "both,no" lib.so.V(shr.o) shared, rtl:yes
7115
# lib.a(lib.so.V) shared, rtl:no, for executables
7116
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
7117
# lib.a(lib.so.V) shared, rtl:no
7118
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
7119
# lib.a static archive
6638
7120
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6639
7121
for ld_flag in $LDFLAGS; do
6640
7122
case $ld_flag in
6662
7151
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6663
7152
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6664
7153
_LT_TAGVAR(link_all_deplibs, $1)=yes
6665
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
7154
_LT_TAGVAR(file_list_spec, $1)='$wl-f,'
7155
case $with_aix_soname,$aix_use_runtimelinking in
7156
aix,*) ;; # no import file
7157
svr4,* | *,yes) # use import file
7158
# The Import File defines what to hardcode.
7159
_LT_TAGVAR(hardcode_direct, $1)=no
7160
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6667
if test "$GXX" = yes; then
7164
if test yes = "$GXX"; then
6668
7165
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6669
7166
# We only want to do this on AIX 4.2 and lower, the check
6670
7167
# below for broken collect2 doesn't work under 4.3+
6671
collect2name=`${CC} -print-prog-name=collect2`
7168
collect2name=`$CC -print-prog-name=collect2`
6672
7169
if test -f "$collect2name" &&
6673
7170
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6688
7185
shared_flag='-shared'
6689
if test "$aix_use_runtimelinking" = yes; then
6690
shared_flag="$shared_flag "'${wl}-G'
7186
if test yes = "$aix_use_runtimelinking"; then
7187
shared_flag=$shared_flag' $wl-G'
7189
# Need to ensure runtime linking is disabled for the traditional
7190
# shared library, or the linker may eventually find shared libraries
7191
# /with/ Import File - we do not want to mix them.
7192
shared_flag_aix='-shared'
7193
shared_flag_svr4='-shared $wl-G'
6693
7195
# not using gcc
6694
if test "$host_cpu" = ia64; then
7196
if test ia64 = "$host_cpu"; then
6695
7197
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6696
7198
# chokes on -Wl,-G. The following line is correct:
6697
7199
shared_flag='-G'
6699
if test "$aix_use_runtimelinking" = yes; then
6700
shared_flag='${wl}-G'
7201
if test yes = "$aix_use_runtimelinking"; then
6702
shared_flag='${wl}-bM:SRE'
7204
shared_flag='$wl-bM:SRE'
7206
shared_flag_aix='$wl-bM:SRE'
7207
shared_flag_svr4='$wl-G'
6707
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
7211
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6708
7212
# It seems that -bexpall does not export symbols beginning with
6709
7213
# underscore (_), so it is better to generate a list of symbols to
6711
7215
_LT_TAGVAR(always_export_symbols, $1)=yes
6712
if test "$aix_use_runtimelinking" = yes; then
7216
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6713
7217
# Warning - without using the other runtime loading flags (-brtl),
6714
7218
# -berok will link without error, but may produce a broken library.
6715
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
7219
# The "-G" linker flag allows undefined symbols.
7220
_LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6716
7221
# Determine the default libpath from the value encoded in an empty
6718
7223
_LT_SYS_MODULE_PATH_AIX([$1])
6719
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7224
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6721
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7226
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6723
if test "$host_cpu" = ia64; then
6724
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7228
if test ia64 = "$host_cpu"; then
7229
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6725
7230
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6726
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7231
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
6728
7233
# Determine the default libpath from the value encoded in an
6729
7234
# empty executable.
6730
7235
_LT_SYS_MODULE_PATH_AIX([$1])
6731
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7236
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6732
7237
# Warning - without using the other run time loading flags,
6733
7238
# -berok will link without error, but may produce a broken library.
6734
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6735
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6736
if test "$with_gnu_ld" = yes; then
7239
_LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
7240
_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
7241
if test yes = "$with_gnu_ld"; then
6737
7242
# We only use this code for GNU lds that support --whole-archive.
6738
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7243
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6740
7245
# Exported symbols can be pulled into shared objects from archives
6741
7246
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6743
7248
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6744
# This is similar to how AIX traditionally builds its shared
6746
_LT_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'
7249
_LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
7250
# -brtl affects multiple linker settings, -berok does not and is overridden later
7251
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
7252
if test svr4 != "$with_aix_soname"; then
7253
# This is similar to how AIX traditionally builds its shared
7254
# libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
7255
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
7257
if test aix != "$with_aix_soname"; then
7258
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
7260
# used by -dlpreopen to get the symbols
7261
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
7263
_LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
6781
7298
# Tell ltmain to make .lib files, not .a files.
6783
7300
# Tell ltmain to make .dll files, not .so files.
6785
7302
# FIXME: Setting linknames here is a bad hack.
6786
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6787
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6788
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6790
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6792
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
7303
_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
7304
_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
7305
cp "$export_symbols" "$output_objdir/$soname.def";
7306
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
7308
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
7310
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6794
7312
# The linker will not automatically build a static lib if we build a DLL.
6795
7313
# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6796
7314
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6797
7315
# Don't use ranlib
6798
7316
_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6799
7317
_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6800
lt_tool_outputfile="@TOOL_OUTPUT@"~
6801
case $lt_outputfile in
6804
lt_outputfile="$lt_outputfile.exe"
6805
lt_tool_outputfile="$lt_tool_outputfile.exe"
6808
func_to_tool_file "$lt_outputfile"~
6809
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6810
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6811
$RM "$lt_outputfile.manifest";
7318
lt_tool_outputfile="@TOOL_OUTPUT@"~
7319
case $lt_outputfile in
7322
lt_outputfile=$lt_outputfile.exe
7323
lt_tool_outputfile=$lt_tool_outputfile.exe
7326
func_to_tool_file "$lt_outputfile"~
7327
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
7328
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
7329
$RM "$lt_outputfile.manifest";
6816
7334
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6817
7335
# as there is no search path for DLLs.
6818
7336
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6819
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
7337
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6820
7338
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6821
7339
_LT_TAGVAR(always_export_symbols, $1)=no
6822
7340
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6824
7342
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6825
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6826
# If the export-symbols file already is a .def file (1st line
6827
# is EXPORTS), use it as is; otherwise, prepend...
6828
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6829
cp $export_symbols $output_objdir/$soname.def;
6831
echo EXPORTS > $output_objdir/$soname.def;
6832
cat $export_symbols >> $output_objdir/$soname.def;
6834
$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'
7343
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7344
# If the export-symbols file already is a .def file, use it as
7345
# is; otherwise, prepend EXPORTS...
7346
_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
7347
cp $export_symbols $output_objdir/$soname.def;
7349
echo EXPORTS > $output_objdir/$soname.def;
7350
cat $export_symbols >> $output_objdir/$soname.def;
7352
$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'
6836
7354
_LT_TAGVAR(ld_shlibs, $1)=no
6842
7360
_LT_DARWIN_LINKER_FEATURES($1)
7364
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7365
_LT_TAGVAR(hardcode_minus_L, $1)=yes
7366
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
7368
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7369
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7370
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7371
$ECHO EXPORTS >> $output_objdir/$libname.def~
7372
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
7373
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7374
emximp -o $lib $output_objdir/$libname.def'
7375
_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
7376
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
7377
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
7378
$ECHO EXPORTS >> $output_objdir/$libname.def~
7380
if test EXPORTS = "`$SED 1q $export_symbols`"; then
7381
prefix_cmds="$prefix_cmds -e 1d";
7383
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
7384
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
7385
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
7386
emximp -o $lib $output_objdir/$libname.def'
7387
_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
7388
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6846
7392
case $cc_basename in
6970
7516
# explicitly linking system object files so we need to strip them
6971
7517
# from the output so that they don't get included in the library
6972
7518
# dependencies.
6973
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7519
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6976
if test "$GXX" = yes; then
6977
if test $with_gnu_ld = no; then
7522
if test yes = "$GXX"; then
7523
if test no = "$with_gnu_ld"; then
6978
7524
case $host_cpu in
6980
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7526
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6983
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7529
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6986
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7532
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6998
7544
interix[[3-9]]*)
6999
7545
_LT_TAGVAR(hardcode_direct, $1)=no
7000
7546
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7001
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7002
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7547
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7548
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7003
7549
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7004
7550
# Instead, shared libraries are loaded at an image base (0x10000000 by
7005
7551
# default) and relocated if they conflict, which is a slow very memory
7006
7552
# consuming and fragmenting process. To avoid this, we pick a random,
7007
7553
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7008
7554
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7009
_LT_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'
7010
_LT_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'
7555
_LT_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'
7556
_LT_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'
7012
7558
irix5* | irix6*)
7013
7559
case $cc_basename in
7016
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7562
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7018
7564
# Archives containing C++ object files must be created using
7019
7565
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
7022
7568
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7025
if test "$GXX" = yes; then
7026
if test "$with_gnu_ld" = no; then
7027
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7571
if test yes = "$GXX"; then
7572
if test no = "$with_gnu_ld"; then
7573
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7029
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
7575
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
7032
7578
_LT_TAGVAR(link_all_deplibs, $1)=yes
7035
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7581
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7036
7582
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7037
7583
_LT_TAGVAR(inherit_rpath, $1)=yes
7072
7618
# earlier do not add the objects themselves.
7073
7619
case `$CC -V 2>&1` in
7074
7620
*"Version 7."*)
7075
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7076
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7621
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7622
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7078
7624
*) # Version 8.0 or newer
7080
7626
case $host_cpu in
7081
7627
ia64*) tmp_idyn=' -i_dynamic';;
7083
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7084
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7629
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7630
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7087
7633
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7088
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7089
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7090
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7634
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7635
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7636
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
7092
7638
pgCC* | pgcpp*)
7093
7639
# Portland Group C++ compiler
7094
7640
case `$CC -V` in
7095
7641
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7096
7642
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7098
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7099
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7644
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7645
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7100
7646
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7102
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7103
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7648
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7649
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7105
7651
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7107
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7108
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7653
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7654
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7109
7655
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7111
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7112
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7657
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7658
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7114
7660
*) # Version 6 and above use weak symbols
7115
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7116
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7661
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7662
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7120
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7121
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7122
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7666
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7667
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7668
_LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7126
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7127
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7672
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7673
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
7129
7675
runpath_var=LD_RUN_PATH
7130
7676
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7138
7684
# explicitly linking system object files so we need to strip them
7139
7685
# from the output so that they don't get included in the library
7140
7686
# dependencies.
7141
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
7687
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
7143
7689
xl* | mpixl* | bgxl*)
7144
7690
# IBM XL 8.0 on PPC, with GNU ld
7145
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7146
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7147
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7148
if test "x$supports_anon_versioning" = xyes; then
7691
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7692
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7693
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7694
if test yes = "$supports_anon_versioning"; then
7149
7695
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7150
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7151
echo "local: *; };" >> $output_objdir/$libname.ver~
7152
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7696
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7697
echo "local: *; };" >> $output_objdir/$libname.ver~
7698
$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7218
7764
_LT_TAGVAR(ld_shlibs, $1)=yes
7222
# C++ shared libraries are fairly broken
7223
_LT_TAGVAR(ld_shlibs, $1)=no
7227
7768
if test -f /usr/libexec/ld.so; then
7228
7769
_LT_TAGVAR(hardcode_direct, $1)=yes
7229
7770
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7230
7771
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7231
7772
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7232
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7233
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7234
_LT_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'
7235
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7236
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7773
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7774
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7775
_LT_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'
7776
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7777
_LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7238
7779
output_verbose_link_cmd=func_echo_all
7272
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7273
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7274
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7813
_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7814
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7815
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7277
7818
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7278
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7819
_LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7279
7820
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7280
echo "-hidden">> $lib.exp~
7281
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
7821
echo "-hidden">> $lib.exp~
7822
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
7283
7824
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7294
7835
# explicitly linking system object files so we need to strip them
7295
7836
# from the output so that they don't get included in the library
7296
7837
# dependencies.
7297
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
7838
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
7300
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7301
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7841
if test yes,no = "$GXX,$with_gnu_ld"; then
7842
_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7304
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7845
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7307
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7848
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7311
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7852
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7312
7853
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7314
7855
# Commands to make compiler produce verbose output that lists
7383
7924
# Green Hills C++ Compiler
7384
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7925
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7386
7927
# The C++ compiler must be used to create the archive.
7387
7928
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7390
7931
# GNU C++ compiler with Solaris linker
7391
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7392
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7932
if test yes,no = "$GXX,$with_gnu_ld"; then
7933
_LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7393
7934
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7394
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7935
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7395
7936
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7396
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7937
$CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7398
7939
# Commands to make compiler produce verbose output that lists
7399
7940
# what "hidden" libraries, object files and flags are used when
7400
7941
# linking a shared library.
7401
7942
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7403
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7944
# g++ 2.7 appears to require '-G' NOT '-shared' on this
7405
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7946
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7406
7947
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7407
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7948
$CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7409
7950
# Commands to make compiler produce verbose output that lists
7410
7951
# what "hidden" libraries, object files and flags are used when
7427
7968
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7428
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7969
_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7429
7970
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7430
7971
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7431
7972
runpath_var='LD_RUN_PATH'
7433
7974
case $cc_basename in
7435
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7436
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7976
_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7977
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7439
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7440
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7980
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7981
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7445
7986
sysv5* | sco3.2v5* | sco5v6*)
7446
# Note: We can NOT use -z defs as we might desire, because we do not
7987
# Note: We CANNOT use -z defs as we might desire, because we do not
7447
7988
# link with -lc, and that would cause any symbols used from libc to
7448
7989
# always be unresolved, which means just about no library would
7449
7990
# ever link correctly. If we're not using GNU ld we use -z text
7450
7991
# though, which does catch some bad symbols but isn't as heavy-handed
7452
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7453
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7993
_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7994
_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7454
7995
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7455
7996
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7456
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7997
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7457
7998
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7458
7999
_LT_TAGVAR(link_all_deplibs, $1)=yes
7459
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
8000
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7460
8001
runpath_var='LD_RUN_PATH'
7462
8003
case $cc_basename in
7464
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7465
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8005
_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8006
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7466
8007
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7467
'"$_LT_TAGVAR(old_archive_cmds, $1)"
8008
'"$_LT_TAGVAR(old_archive_cmds, $1)"
7468
8009
_LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7469
'"$_LT_TAGVAR(reload_cmds, $1)"
8010
'"$_LT_TAGVAR(reload_cmds, $1)"
7472
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7473
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8013
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8014
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7738
8280
_LT_TAGVAR(postdep_objects,$1)=
7739
8281
_LT_TAGVAR(postdeps,$1)=
7743
case `$CC -V 2>&1 | sed 5q` in
7747
# The more standards-conforming stlport4 library is
7748
# incompatible with the Cstd library. Avoid specifying
7749
# it if it's in CXXFLAGS. Ignore libCrun as
7750
# -library=stlport4 depends on it.
7751
case " $CXX $CXXFLAGS " in
7752
*" -library=stlport4 "*)
7753
solaris_use_stlport4=yes
7757
if test "$solaris_use_stlport4" != yes; then
7758
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7765
case $cc_basename in
7767
# The more standards-conforming stlport4 library is
7768
# incompatible with the Cstd library. Avoid specifying
7769
# it if it's in CXXFLAGS. Ignore libCrun as
7770
# -library=stlport4 depends on it.
7771
case " $CXX $CXXFLAGS " in
7772
*" -library=stlport4 "*)
7773
solaris_use_stlport4=yes
7777
# Adding this requires a known-good setup of shared libraries for
7778
# Sun compiler versions before 5.6, else PIC objects from an old
7779
# archive will be linked into the output, leading to subtle bugs.
7780
if test "$solaris_use_stlport4" != yes; then
7781
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7887
8384
AC_MSG_RESULT([$can_build_shared])
7889
8386
AC_MSG_CHECKING([whether to build shared libraries])
7890
test "$can_build_shared" = "no" && enable_shared=no
8387
test no = "$can_build_shared" && enable_shared=no
7892
8389
# On AIX, shared libraries and static libraries use the same namespace, and
7893
8390
# are all built from PIC.
7894
8391
case $host_os in
7896
test "$enable_shared" = yes && enable_static=no
8393
test yes = "$enable_shared" && enable_static=no
7897
8394
if test -n "$RANLIB"; then
7898
8395
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7899
8396
postinstall_cmds='$RANLIB $lib'
7903
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7904
test "$enable_shared" = yes && enable_static=no
8400
if test ia64 != "$host_cpu"; then
8401
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8402
yes,aix,yes) ;; # shared object as lib.so file only
8403
yes,svr4,*) ;; # shared object as lib.so archive member only
8404
yes,*) enable_static=no ;; # shared object in lib.a archive as well
8021
8522
AC_MSG_RESULT([$can_build_shared])
8023
8524
AC_MSG_CHECKING([whether to build shared libraries])
8024
test "$can_build_shared" = "no" && enable_shared=no
8525
test no = "$can_build_shared" && enable_shared=no
8026
8527
# On AIX, shared libraries and static libraries use the same namespace, and
8027
8528
# are all built from PIC.
8028
8529
case $host_os in
8030
test "$enable_shared" = yes && enable_static=no
8531
test yes = "$enable_shared" && enable_static=no
8031
8532
if test -n "$RANLIB"; then
8032
8533
archive_cmds="$archive_cmds~\$RANLIB \$lib"
8033
8534
postinstall_cmds='$RANLIB $lib'
8037
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8038
test "$enable_shared" = yes && enable_static=no
8538
if test ia64 != "$host_cpu"; then
8539
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
8540
yes,aix,yes) ;; # shared object as lib.so file only
8541
yes,svr4,*) ;; # shared object as lib.so archive member only
8542
yes,*) enable_static=no ;; # shared object in lib.a archive as well
8462
8947
])# _LT_CHECK_SHELL_FEATURES
8465
# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
8466
# ------------------------------------------------------
8467
# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
8468
# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
8469
m4_defun([_LT_PROG_FUNCTION_REPLACE],
8471
sed -e '/^$1 ()$/,/^} # $1 /c\
8474
m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
8475
} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
8476
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8477
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8478
test 0 -eq $? || _lt_function_replace_fail=:
8482
# _LT_PROG_REPLACE_SHELLFNS
8483
# -------------------------
8484
# Replace existing portable implementations of several shell functions with
8485
# equivalent extended shell implementations where those features are available..
8486
m4_defun([_LT_PROG_REPLACE_SHELLFNS],
8487
[if test x"$xsi_shell" = xyes; then
8488
_LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
8490
*/*) func_dirname_result="${1%/*}${2}" ;;
8491
* ) func_dirname_result="${3}" ;;
8494
_LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
8495
func_basename_result="${1##*/}"])
8497
_LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
8499
*/*) func_dirname_result="${1%/*}${2}" ;;
8500
* ) func_dirname_result="${3}" ;;
8502
func_basename_result="${1##*/}"])
8504
_LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
8505
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8506
# positional parameters, so assign one to ordinary parameter first.
8507
func_stripname_result=${3}
8508
func_stripname_result=${func_stripname_result#"${1}"}
8509
func_stripname_result=${func_stripname_result%"${2}"}])
8511
_LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
8512
func_split_long_opt_name=${1%%=*}
8513
func_split_long_opt_arg=${1#*=}])
8515
_LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
8516
func_split_short_opt_arg=${1#??}
8517
func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
8519
_LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
8521
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8522
*) func_lo2o_result=${1} ;;
8525
_LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
8527
_LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
8529
_LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
8532
if test x"$lt_shell_append" = xyes; then
8533
_LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
8535
_LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
8536
func_quote_for_eval "${2}"
8537
dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
8538
eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
8540
# Save a `func_append' function call where possible by direct use of '+='
8541
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
8542
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8543
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8544
test 0 -eq $? || _lt_function_replace_fail=:
8546
# Save a `func_append' function call even when '+=' is not available
8547
sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
8548
&& mv -f "$cfgfile.tmp" "$cfgfile" \
8549
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
8550
test 0 -eq $? || _lt_function_replace_fail=:
8553
if test x"$_lt_function_replace_fail" = x":"; then
8554
AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
8558
8950
# _LT_PATH_CONVERSION_FUNCTIONS
8559
8951
# -----------------------------
8560
# Determine which file name conversion functions should be used by
8952
# Determine what file name conversion functions should be used by
8561
8953
# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8562
8954
# for certain cross-compile configurations and native mingw.
8563
8955
m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8940
9334
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
9337
# _LT_WITH_AIX_SONAME([DEFAULT])
9338
# ----------------------------------
9339
# implement the --with-aix-soname flag, and support the `aix-soname=aix'
9340
# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
9341
# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
9342
m4_define([_LT_WITH_AIX_SONAME],
9343
[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
9344
shared_archive_member_spec=
9345
case $host,$enable_shared in
9346
power*-*-aix[[5-9]]*,yes)
9347
AC_MSG_CHECKING([which variant of shared library versioning to provide])
9348
AC_ARG_WITH([aix-soname],
9349
[AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
9350
[shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
9355
AC_MSG_ERROR([Unknown argument to --with-aix-soname])
9358
lt_cv_with_aix_soname=$with_aix_soname],
9359
[AC_CACHE_VAL([lt_cv_with_aix_soname],
9360
[lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
9361
with_aix_soname=$lt_cv_with_aix_soname])
9362
AC_MSG_RESULT([$with_aix_soname])
9363
if test aix != "$with_aix_soname"; then
9364
# For the AIX way of multilib, we name the shared archive member
9365
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9366
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9367
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9368
# the AIX toolchain works better with OBJECT_MODE set (default 32).
9369
if test 64 = "${OBJECT_MODE-32}"; then
9370
shared_archive_member_spec=shr_64
9372
shared_archive_member_spec=shr
9381
_LT_DECL([], [shared_archive_member_spec], [0],
9382
[Shared archive member basename, for filename based shared library versioning on AIX])dnl
9383
])# _LT_WITH_AIX_SONAME
9385
LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
9386
LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
9387
LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
8943
9390
# _LT_WITH_PIC([MODE])
8944
9391
# --------------------
8945
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
9392
# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
8946
9393
# LT_INIT options.
8947
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
9394
# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
8948
9395
m4_define([_LT_WITH_PIC],
8949
9396
[AC_ARG_WITH([pic],
8950
9397
[AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
9137
9583
# @configure_input@
9139
# serial 3337 ltversion.m4
9585
# serial 4179 ltversion.m4
9140
9586
# This file is part of GNU Libtool
9142
m4_define([LT_PACKAGE_VERSION], [2.4.2])
9143
m4_define([LT_PACKAGE_REVISION], [1.3337])
9588
m4_define([LT_PACKAGE_VERSION], [2.4.6])
9589
m4_define([LT_PACKAGE_REVISION], [2.4.6])
9145
9591
AC_DEFUN([LTVERSION_VERSION],
9146
[macro_version='2.4.2'
9147
macro_revision='1.3337'
9592
[macro_version='2.4.6'
9593
macro_revision='2.4.6'
9148
9594
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9149
9595
_LT_DECL(, macro_revision, 0)
9152
9598
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9154
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9600
# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
9155
9602
# Written by Scott James Remnant, 2004.
9157
9604
# This file is free software; the Free Software Foundation gives
9281
9728
AC_SUBST([USE_NLS])
9284
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9285
# serial 1 (pkg-config-0.24)
9287
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9289
# This program is free software; you can redistribute it and/or modify
9290
# it under the terms of the GNU General Public License as published by
9291
# the Free Software Foundation; either version 2 of the License, or
9292
# (at your option) any later version.
9294
# This program is distributed in the hope that it will be useful, but
9295
# WITHOUT ANY WARRANTY; without even the implied warranty of
9296
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9297
# General Public License for more details.
9299
# You should have received a copy of the GNU General Public License
9300
# along with this program; if not, write to the Free Software
9301
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9303
# As a special exception to the GNU General Public License, if you
9304
# distribute this file as part of a program that contains a
9305
# configuration script generated by Autoconf, you may include it under
9306
# the same distribution terms that you use for the rest of that program.
9308
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9309
# ----------------------------------
9731
dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9732
dnl serial 11 (pkg-config-0.29.1)
9734
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9735
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
9737
dnl This program is free software; you can redistribute it and/or modify
9738
dnl it under the terms of the GNU General Public License as published by
9739
dnl the Free Software Foundation; either version 2 of the License, or
9740
dnl (at your option) any later version.
9742
dnl This program is distributed in the hope that it will be useful, but
9743
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
9744
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9745
dnl General Public License for more details.
9747
dnl You should have received a copy of the GNU General Public License
9748
dnl along with this program; if not, write to the Free Software
9749
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
9750
dnl 02111-1307, USA.
9752
dnl As a special exception to the GNU General Public License, if you
9753
dnl distribute this file as part of a program that contains a
9754
dnl configuration script generated by Autoconf, you may include it under
9755
dnl the same distribution terms that you use for the rest of that
9758
dnl PKG_PREREQ(MIN-VERSION)
9759
dnl -----------------------
9762
dnl Verify that the version of the pkg-config macros are at least
9763
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
9764
dnl installed version of pkg-config, this checks the developer's version
9765
dnl of pkg.m4 when generating configure.
9767
dnl To ensure that this macro is defined, also add:
9768
dnl m4_ifndef([PKG_PREREQ],
9769
dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
9771
dnl See the "Since" comment for each macro you use to see what version
9772
dnl of the macros you require.
9773
m4_defun([PKG_PREREQ],
9774
[m4_define([PKG_MACROS_VERSION], [0.29.1])
9775
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
9776
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
9779
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
9780
dnl ----------------------------------
9783
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
9784
dnl first found in the path. Checks that the version of pkg-config found
9785
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
9786
dnl used since that's the first version where most current features of
9787
dnl pkg-config existed.
9310
9788
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9311
9789
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9312
9790
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
9331
])# PKG_PROG_PKG_CONFIG
9809
])dnl PKG_PROG_PKG_CONFIG
9333
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9335
# Check to see whether a particular set of modules exists. Similar
9336
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9338
# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9339
# only at the first occurence in configure.ac, so if the first place
9340
# it's called might be skipped (such as if it is within an "if", you
9341
# have to call PKG_CHECK_EXISTS manually
9342
# --------------------------------------------------------------
9811
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9812
dnl -------------------------------------------------------------------
9815
dnl Check to see whether a particular set of modules exists. Similar to
9816
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
9818
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9819
dnl only at the first occurence in configure.ac, so if the first place
9820
dnl it's called might be skipped (such as if it is within an "if", you
9821
dnl have to call PKG_CHECK_EXISTS manually
9343
9822
AC_DEFUN([PKG_CHECK_EXISTS],
9344
9823
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9345
9824
if test -n "$PKG_CONFIG" && \
9374
9856
_pkg_short_errors_supported=no
9376
])# _PKG_SHORT_ERRORS_SUPPORTED
9379
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9380
# [ACTION-IF-NOT-FOUND])
9383
# Note that if there is a possibility the first call to
9384
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9385
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9388
# --------------------------------------------------------------
9858
])dnl _PKG_SHORT_ERRORS_SUPPORTED
9861
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9862
dnl [ACTION-IF-NOT-FOUND])
9863
dnl --------------------------------------------------------------
9866
dnl Note that if there is a possibility the first call to
9867
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
9868
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9389
9869
AC_DEFUN([PKG_CHECK_MODULES],
9390
9870
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9391
9871
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9439
9919
AC_MSG_RESULT([yes])
9442
])# PKG_CHECK_MODULES
9445
# PKG_INSTALLDIR(DIRECTORY)
9446
# -------------------------
9447
# Substitutes the variable pkgconfigdir as the location where a module
9448
# should install pkg-config .pc files. By default the directory is
9449
# $libdir/pkgconfig, but the default can be changed by passing
9450
# DIRECTORY. The user can override through the --with-pkgconfigdir
9922
])dnl PKG_CHECK_MODULES
9925
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9926
dnl [ACTION-IF-NOT-FOUND])
9927
dnl ---------------------------------------------------------------------
9930
dnl Checks for existence of MODULES and gathers its build flags with
9931
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
9932
dnl and VARIABLE-PREFIX_LIBS from --libs.
9934
dnl Note that if there is a possibility the first call to
9935
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
9936
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
9938
AC_DEFUN([PKG_CHECK_MODULES_STATIC],
9939
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9940
_save_PKG_CONFIG=$PKG_CONFIG
9941
PKG_CONFIG="$PKG_CONFIG --static"
9942
PKG_CHECK_MODULES($@)
9943
PKG_CONFIG=$_save_PKG_CONFIG[]dnl
9944
])dnl PKG_CHECK_MODULES_STATIC
9947
dnl PKG_INSTALLDIR([DIRECTORY])
9948
dnl -------------------------
9951
dnl Substitutes the variable pkgconfigdir as the location where a module
9952
dnl should install pkg-config .pc files. By default the directory is
9953
dnl $libdir/pkgconfig, but the default can be changed by passing
9954
dnl DIRECTORY. The user can override through the --with-pkgconfigdir
9452
9956
AC_DEFUN([PKG_INSTALLDIR],
9453
9957
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
9454
9958
m4_pushdef([pkg_description],
9459
9963
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
9460
9964
m4_popdef([pkg_default])
9461
9965
m4_popdef([pkg_description])
9462
]) dnl PKG_INSTALLDIR
9465
# PKG_NOARCH_INSTALLDIR(DIRECTORY)
9466
# -------------------------
9467
# Substitutes the variable noarch_pkgconfigdir as the location where a
9468
# module should install arch-independent pkg-config .pc files. By
9469
# default the directory is $datadir/pkgconfig, but the default can be
9470
# changed by passing DIRECTORY. The user can override through the
9471
# --with-noarch-pkgconfigdir parameter.
9966
])dnl PKG_INSTALLDIR
9969
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
9970
dnl --------------------------------
9973
dnl Substitutes the variable noarch_pkgconfigdir as the location where a
9974
dnl module should install arch-independent pkg-config .pc files. By
9975
dnl default the directory is $datadir/pkgconfig, but the default can be
9976
dnl changed by passing DIRECTORY. The user can override through the
9977
dnl --with-noarch-pkgconfigdir parameter.
9472
9978
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
9473
9979
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
9474
9980
m4_pushdef([pkg_description],
9479
9985
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
9480
9986
m4_popdef([pkg_default])
9481
9987
m4_popdef([pkg_description])
9482
]) dnl PKG_NOARCH_INSTALLDIR
9485
# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
9486
# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9487
# -------------------------------------------
9488
# Retrieves the value of the pkg-config variable for the given module.
9988
])dnl PKG_NOARCH_INSTALLDIR
9991
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
9992
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9993
dnl -------------------------------------------
9996
dnl Retrieves the value of the pkg-config variable for the given module.
9489
9997
AC_DEFUN([PKG_CHECK_VAR],
9490
9998
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9491
9999
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl