version 1.23 | | version 1.24 |
---|
| | |
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
| | |
# serial 47 AC_PROG_LIBTOOL | | # serial 47 AC_PROG_LIBTOOL |
| | # Debian $Rev: 214 $ |
| | |
| | |
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
| | |
| | |
# Sed substitution that helps us do robust quoting. It backslashifies | | # Sed substitution that helps us do robust quoting. It backslashifies |
# metacharacters that are still active within double-quoted strings. | | # metacharacters that are still active within double-quoted strings. |
Xsed='sed -e 1s/^X//' | | Xsed='sed -e s/^X//' |
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
| | |
# Same as above, but do not quote variable references. | | # Same as above, but do not quote variable references. |
| | |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
fi | | fi |
| | |
_LT_CC_BASENAME([$compiler]) | | |
| | |
# Only perform the check for file, if the check method requires it | | # Only perform the check for file, if the check method requires it |
case $deplibs_check_method in | | case $deplibs_check_method in |
file_magic*) | | file_magic*) |
| | |
])# _LT_AC_SYS_COMPILER | | ])# _LT_AC_SYS_COMPILER |
| | |
| | |
# _LT_CC_BASENAME(CC) | | |
# ------------------- | | |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | | |
AC_DEFUN([_LT_CC_BASENAME], | | |
[for cc_temp in $1""; do | | |
case $cc_temp in | | |
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | | |
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | | |
\-*) ;; | | |
*) break;; | | |
esac | | |
done | | |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | | |
]) | | |
| | |
| | |
# _LT_COMPILER_BOILERPLATE | | |
# ------------------------ | | |
# Check for compiler boilerplate output or warnings with | | |
# the simple compiler test code. | | |
AC_DEFUN([_LT_COMPILER_BOILERPLATE], | | |
[ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext | | |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | | |
_lt_compiler_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
])# _LT_COMPILER_BOILERPLATE | | |
| | |
| | |
# _LT_LINKER_BOILERPLATE | | |
# ---------------------- | | |
# Check for linker boilerplate output or warnings with | | |
# the simple link test code. | | |
AC_DEFUN([_LT_LINKER_BOILERPLATE], | | |
[ac_outfile=conftest.$ac_objext | | |
printf "$lt_simple_link_test_code" >conftest.$ac_ext | | |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | | |
_lt_linker_boilerplate=`cat conftest.err` | | |
$rm conftest* | | |
])# _LT_LINKER_BOILERPLATE | | |
| | |
| | |
# _LT_AC_SYS_LIBPATH_AIX | | # _LT_AC_SYS_LIBPATH_AIX |
# ---------------------- | | # ---------------------- |
# Links a minimal program and checks the executable | | # Links a minimal program and checks the executable |
| | |
| | |
# The HP-UX ksh and POSIX shell print the target directory to stdout | | # The HP-UX ksh and POSIX shell print the target directory to stdout |
# if CDPATH is set. | | # if CDPATH is set. |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| | |
if test -z "$ECHO"; then | | if test -z "$ECHO"; then |
if test "X${echo_test_string+set}" != Xset; then | | if test "X${echo_test_string+set}" != Xset; then |
| | |
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
if (exit $ac_status) && test -s "$ac_outfile"; then | | if (exit $ac_status) && test -s "$ac_outfile"; then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings other than the usual output. | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | | if test ! -s conftest.err; then |
$SED '/^$/d' conftest.err >conftest.er2 | | |
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | | |
$2=yes | | $2=yes |
fi | | fi |
fi | | fi |
| | |
if test -s conftest.err; then | | if test -s conftest.err; then |
# Append any errors to the config.log. | | # Append any errors to the config.log. |
cat conftest.err 1>&AS_MESSAGE_LOG_FD | | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp | | |
$SED '/^$/d' conftest.err >conftest.er2 | | |
if diff conftest.exp conftest.er2 >/dev/null; then | | |
$2=yes | | |
fi | | |
else | | else |
$2=yes | | $2=yes |
fi | | fi |
| | |
lt_cv_sys_max_cmd_len=8192; | | lt_cv_sys_max_cmd_len=8192; |
;; | | ;; |
| | |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | | |
# This has been around since 386BSD, at least. Likely further. | | |
if test -x /sbin/sysctl; then | | |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | | |
elif test -x /usr/sbin/sysctl; then | | |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | | |
else | | |
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | | |
fi | | |
# And add a safety zone | | |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | | |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | | |
;; | | |
osf*) | | |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | | |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | | |
# nice to cause kernel panics so lets avoid the loop below. | | |
# First set a reasonable default. | | |
lt_cv_sys_max_cmd_len=16384 | | |
# | | |
if test -x /sbin/sysconfig; then | | |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | | |
*1*) lt_cv_sys_max_cmd_len=-1 ;; | | |
esac | | |
fi | | |
;; | | |
*) | | *) |
# If test is not a shell built-in, we'll probably end up computing a | | # If test is not a shell built-in, we'll probably end up computing a |
# maximum length that is only half of the actual maximum length, but | | # maximum length that is only half of the actual maximum length, but |
# we can't tell. | | # we can't tell. |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | | while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | | |
= "XX$teststring") >/dev/null 2>&1 && | | = "XX$teststring") >/dev/null 2>&1 && |
new_result=`expr "X$teststring" : ".*" 2>&1` && | | new_result=`expr "X$teststring" : ".*" 2>&1` && |
lt_cv_sys_max_cmd_len=$new_result && | | lt_cv_sys_max_cmd_len=$new_result && |
| | |
then | | then |
# The compiler can only warn and ignore the option if not recognized | | # The compiler can only warn and ignore the option if not recognized |
# So say no if there are warnings | | # So say no if there are warnings |
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | | if test ! -s out/conftest.err; then |
$SED '/^$/d' out/conftest.err >out/conftest.er2 | | |
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | | |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
fi | | fi |
fi | | fi |
| | |
[AC_MSG_CHECKING([how to hardcode library paths into programs]) | | [AC_MSG_CHECKING([how to hardcode library paths into programs]) |
_LT_AC_TAGVAR(hardcode_action, $1)= | | _LT_AC_TAGVAR(hardcode_action, $1)= |
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | | test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ |
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
| | |
# We can hardcode non-existant directories. | | # We can hardcode non-existant directories. |
| | |
shlibpath_var=LIBRARY_PATH | | shlibpath_var=LIBRARY_PATH |
;; | | ;; |
| | |
bsdi[[45]]*) | | bsdi4*) |
version_type=linux | | version_type=linux |
need_version=no | | need_version=no |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| | |
;; | | ;; |
pw32*) | | pw32*) |
# pw32 DLLs use 'pw' prefix rather than 'lib' | | # pw32 DLLs use 'pw' prefix rather than 'lib' |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
;; | | ;; |
esac | | esac |
;; | | ;; |
| | |
dynamic_linker='GNU ld.so' | | dynamic_linker='GNU ld.so' |
;; | | ;; |
| | |
freebsd* | dragonfly*) | | freebsd*) |
# DragonFly does not have aout. When/if they implement a new | | |
# versioning mechanism, adjust this. | | |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
version_type=freebsd-$objformat | | version_type=freebsd-$objformat |
case $version_type in | | case $version_type in |
| | |
freebsd2*) | | freebsd2*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
;; | | ;; |
freebsd3.[[01]]* | freebsdelf3.[[01]]*) | | freebsd3.[01]* | freebsdelf3.[01]*) |
shlibpath_overrides_runpath=yes | | shlibpath_overrides_runpath=yes |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
;; | | ;; |
| | |
# before this can be enabled. | | # before this can be enabled. |
hardcode_into_libs=yes | | hardcode_into_libs=yes |
| | |
# find out which ABI we are using | | |
libsuff= | | |
case "$host_cpu" in | | |
x86_64*|s390x*|powerpc64*) | | |
echo '[#]line __oline__ "configure"' > conftest.$ac_ext | | |
if AC_TRY_EVAL(ac_compile); then | | |
case `/usr/bin/file conftest.$ac_objext` in | | |
*64-bit*) | | |
libsuff=64 | | |
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" | | |
;; | | |
esac | | |
fi | | |
rm -rf conftest* | | |
;; | | |
esac | | |
| | |
# Append ld.so.conf contents to the search path | | # Append ld.so.conf contents to the search path |
if test -f /etc/ld.so.conf; then | | if test -f /etc/ld.so.conf; then |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | | lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '` |
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" | | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
fi | | fi |
| | |
# We used to test for /lib/ld.so.1 and disable shared libraries on | | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| | |
dynamic_linker='GNU/Linux ld.so' | | dynamic_linker='GNU/Linux ld.so' |
;; | | ;; |
| | |
| | netbsdelf*-gnu) |
| | version_type=linux |
| | need_lib_prefix=no |
| | need_version=no |
| | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| | soname_spec='${libname}${release}${shared_ext}$major' |
| | shlibpath_var=LD_LIBRARY_PATH |
| | shlibpath_overrides_runpath=no |
| | hardcode_into_libs=yes |
| | dynamic_linker='NetBSD ld.elf_so' |
| | ;; |
| | |
knetbsd*-gnu) | | knetbsd*-gnu) |
version_type=linux | | version_type=linux |
need_lib_prefix=no | | need_lib_prefix=no |
| | |
openbsd*) | | openbsd*) |
version_type=sunos | | version_type=sunos |
need_lib_prefix=no | | need_lib_prefix=no |
need_version=no | | need_version=yes |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
shlibpath_var=LD_LIBRARY_PATH | | shlibpath_var=LD_LIBRARY_PATH |
| | |
| | |
case $tagname in | | case $tagname in |
CXX) | | CXX) |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && | | if test -n "$CXX" && test "X$CXX" != "Xno"; then |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | | |
(test "X$CXX" != "Xg++"))) ; then | | |
AC_LIBTOOL_LANG_CXX_CONFIG | | AC_LIBTOOL_LANG_CXX_CONFIG |
else | | else |
tagname="" | | tagname="" |
| | |
*) reload_flag=" $reload_flag" ;; | | *) reload_flag=" $reload_flag" ;; |
esac | | esac |
reload_cmds='$LD$reload_flag -o $output$reload_objs' | | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
case $host_os in | | |
darwin*) | | |
if test "$GCC" = yes; then | | |
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | | |
else | | |
reload_cmds='$LD$reload_flag -o $output$reload_objs' | | |
fi | | |
;; | | |
esac | | |
])# AC_PROG_LD_RELOAD_FLAG | | ])# AC_PROG_LD_RELOAD_FLAG |
| | |
| | |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
bsdi[[45]]*) | | bsdi4*) |
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
lt_cv_file_magic_cmd='/usr/bin/file -L' | | lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_test_file=/shlib/libc.so | | lt_cv_file_magic_test_file=/shlib/libc.so |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
case $host_cpu in | | case $host_cpu in |
i*86 ) | | i*86 ) |
# Not sure whether the presence of OpenBSD here was a mistake. | | # Not sure whether the presence of OpenBSD here was a mistake. |
# Let's accept both of them until this is cleared up. | | # Let's accept both of them until this is cleared up. |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' |
lt_cv_file_magic_cmd=/usr/bin/file | | lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
;; | | ;; |
| | |
lt_cv_deplibs_check_method=pass_all | | lt_cv_deplibs_check_method=pass_all |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
else | | else |
| | |
;; | | ;; |
| | |
openbsd*) | | openbsd*) |
| | lt_cv_file_magic_cmd=/usr/bin/file |
| | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' |
else | | else |
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
fi | | fi |
;; | | ;; |
| | |
| | |
# --------------- | | # --------------- |
AC_DEFUN([_LT_AC_LANG_CXX], | | AC_DEFUN([_LT_AC_LANG_CXX], |
[AC_REQUIRE([AC_PROG_CXX]) | | [AC_REQUIRE([AC_PROG_CXX]) |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | | AC_REQUIRE([AC_PROG_CXXCPP]) |
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
])# _LT_AC_LANG_CXX | | ])# _LT_AC_LANG_CXX |
| | |
# _LT_AC_PROG_CXXCPP | | |
# --------------- | | |
AC_DEFUN([_LT_AC_PROG_CXXCPP], | | |
[ | | |
AC_REQUIRE([AC_PROG_CXX]) | | |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && | | |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | | |
(test "X$CXX" != "Xg++"))) ; then | | |
AC_PROG_CXXCPP | | |
fi | | |
])# _LT_AC_PROG_CXXCPP | | |
| | |
# AC_LIBTOOL_F77 | | # AC_LIBTOOL_F77 |
# -------------- | | # -------------- |
| | |
| | |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# | | # |
# Check for any special shared library compilation flags. | | # Check for any special shared library compilation flags. |
# | | # |
| | |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
fi | | fi |
;; | | ;; |
| | darwin* | rhapsody*) |
| | if test "$GCC" = yes; then |
| | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| | case "$host_os" in |
| | rhapsody* | darwin1.[[012]]) |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
| | ;; |
| | *) # Darwin 1.3 on |
| | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| | else |
| | case ${MACOSX_DEPLOYMENT_TARGET} in |
| | 10.[[012]]) |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
| | ;; |
| | 10.*) |
| | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
| | ;; |
| | esac |
| | fi |
| | ;; |
| | esac |
| | output_verbose_link_cmd='echo' |
| | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
| | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | else |
| | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | fi |
| | ;; |
esac | | esac |
AC_MSG_RESULT([$enable_shared]) | | AC_MSG_RESULT([$enable_shared]) |
| | |
| | |
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
[AC_LANG_PUSH(C++) | | [AC_LANG_PUSH(C++) |
AC_REQUIRE([AC_PROG_CXX]) | | AC_REQUIRE([AC_PROG_CXX]) |
AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | | AC_REQUIRE([AC_PROG_CXXCPP]) |
| | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
_LT_AC_TAGVAR(allow_undefined_flag, $1)= | | _LT_AC_TAGVAR(allow_undefined_flag, $1)= |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC=$CC | | lt_save_CC=$CC |
lt_save_LD=$LD | | lt_save_LD=$LD |
| | |
CC=${CXX-"c++"} | | CC=${CXX-"c++"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| | |
# We don't want -fno-exception wen compiling C++ code, so set the | | # We don't want -fno-exception wen compiling C++ code, so set the |
# no_builtin_flag separately | | # no_builtin_flag separately |
| | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
case $host_os in aix4.[[012]]|aix4.[[012]].*) | | case $host_os in aix4.[012]|aix4.[012].*) |
# We only want to do this on AIX 4.2 and lower, the check | | # We only want to do this on AIX 4.2 and lower, the check |
# below for broken collect2 doesn't work under 4.3+ | | # below for broken collect2 doesn't work under 4.3+ |
collect2name=`${CC} -print-prog-name=collect2` | | collect2name=`${CC} -print-prog-name=collect2` |
| | |
fi | | fi |
esac | | esac |
shared_flag='-shared' | | shared_flag='-shared' |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # not using gcc |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
| | |
esac | | esac |
;; | | ;; |
| | |
| | |
cygwin* | mingw* | pw32*) | | cygwin* | mingw* | pw32*) |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
# as there is no search path for DLLs. | | # as there is no search path for DLLs. |
| | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
fi | | fi |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
| | if test "$GXX" = yes; then |
| | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
case "$host_os" in | | case "$host_os" in |
rhapsody* | darwin1.[[012]]) | | rhapsody* | darwin1.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
;; | | ;; |
*) # Darwin 1.3 on | | *) # Darwin 1.3 on |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
else | | else |
case ${MACOSX_DEPLOYMENT_TARGET} in | | case ${MACOSX_DEPLOYMENT_TARGET} in |
10.[[012]]) | | 10.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
;; | | ;; |
10.*) | | 10.*) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
;; | | ;; |
esac | | esac |
fi | | fi |
;; | | ;; |
esac | | esac |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | |
| | |
if test "$GXX" = yes ; then | | |
lt_int_apple_cc_single_mod=no | | lt_int_apple_cc_single_mod=no |
output_verbose_link_cmd='echo' | | output_verbose_link_cmd='echo' |
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
lt_int_apple_cc_single_mod=yes | | lt_int_apple_cc_single_mod=yes |
fi | | fi |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
else | | else |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' |
fi | | fi |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
else | | else |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
fi | | fi |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
| | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
| | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
| | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
else | | else |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | | |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
;; | | |
*) | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | |
esac | | |
fi | | fi |
;; | | ;; |
| | |
dgux*) | | dgux*) |
case $cc_basename in | | case $cc_basename in |
ec++*) | | ec++) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
ghcx*) | | ghcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
freebsd[[12]]*) | | freebsd[12]*) |
# C++ shared libraries reported to be fairly broken before switch to ELF | | # C++ shared libraries reported to be fairly broken before switch to ELF |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
freebsd-elf*) | | freebsd-elf*) |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
;; | | ;; |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
# conventions | | # conventions |
_LT_AC_TAGVAR(ld_shlibs, $1)=yes | | _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
| | |
# location of the library. | | # location of the library. |
| | |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
aCC*) | | aCC) |
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
# Commands to make compiler produce verbose output that lists | | # Commands to make compiler produce verbose output that lists |
# what "hidden" libraries, object files and flags are used when | | # what "hidden" libraries, object files and flags are used when |
| | |
# explicitly linking system object files so we need to strip them | | # explicitly linking system object files so we need to strip them |
# from the output so that they don't get included in the library | | # from the output so that they don't get included in the library |
# dependencies. | | # dependencies. |
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; echo $list' | | 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; echo $list' |
;; | | ;; |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
| | |
esac | | esac |
| | |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
aCC*) | | aCC) |
case "$host_cpu" in | | case "$host_cpu" in |
hppa*64*|ia64*) | | hppa*64*|ia64*) |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
| | |
;; | | ;; |
irix5* | irix6*) | | irix5* | irix6*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# SGI C++ | | # SGI C++ |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| | |
# Archives containing C++ object files must be created using | | # Archives containing C++ object files must be created using |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is | | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| | |
*) | | *) |
if test "$GXX" = yes; then | | if test "$GXX" = yes; then |
if test "$with_gnu_ld" = no; then | | if test "$with_gnu_ld" = no; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
else | | else |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
fi | | fi |
| | |
;; | | ;; |
linux*) | | linux*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. | | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
;; | | ;; |
icpc*) | | icpc) |
# Intel C++ | | # Intel C++ |
with_gnu_ld=yes | | with_gnu_ld=yes |
# version 8.0 and above of icpc choke on multiply defined symbols | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
# if we add $predep_objects and $postdep_objects, however 7.1 and | | |
# earlier do not add the objects themselves. | | |
case `$CC -V 2>&1` in | | |
*"Version 7."*) | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
;; | | |
*) # Version 8.0 or newer | | |
tmp_idyn= | | |
case $host_cpu in | | |
ia64*) tmp_idyn=' -i_dynamic';; | | |
esac | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
_LT_AC_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' | | |
;; | | |
esac | | |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
;; | | ;; |
pgCC*) | | cxx) |
# Portland Group C++ compiler | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | | |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | | |
;; | | |
cxx*) | | |
# Compaq C++ | | # Compaq C++ |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
_LT_AC_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' | | _LT_AC_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' |
| | |
;; | | ;; |
mvs*) | | mvs*) |
case $cc_basename in | | case $cc_basename in |
cxx*) | | cxx) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
wlarc= | | wlarc= |
| | |
# Workaround some broken pre-1.5 toolchains | | # Workaround some broken pre-1.5 toolchains |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
;; | | ;; |
openbsd2*) | | |
# C++ shared libraries are fairly broken | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | |
;; | | |
openbsd*) | | |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes | | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
fi | | |
output_verbose_link_cmd='echo' | | |
;; | | |
osf3*) | | osf3*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
| | |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
cxx*) | | cxx) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| | |
*) | | *) |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then | | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | | _LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| | |
;; | | ;; |
osf4* | osf5*) | | osf4* | osf5*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# Kuck and Associates, Inc. (KAI) C++ Compiler | | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| | |
# KCC will only create a shared library if the output file | | # KCC will only create a shared library if the output file |
| | |
# the KAI C++ compiler. | | # the KAI C++ compiler. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
cxx*) | | cxx) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
echo "-hidden">> $lib.exp~ | | echo "-hidden">> $lib.exp~ |
$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~ | | $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 $objdir/so_locations -o $lib~ |
$rm $lib.exp' | | $rm $lib.exp' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| | |
*) | | *) |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then | | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
| | |
sco*) | | sco*) |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
| | |
;; | | ;; |
sunos4*) | | sunos4*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.x | | # Sun C++ 4.x |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
lcc*) | | lcc) |
# Lucid | | # Lucid |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | |
;; | | ;; |
solaris*) | | solaris*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.2, 5.x and Centerline C++ | | # Sun C++ 4.2, 5.x and Centerline C++ |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
case $host_os in | | case $host_os in |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | | solaris2.[0-5] | solaris2.[0-5].*) ;; |
*) | | *) |
# The C++ compiler is used as linker so we must use $wl | | # The C++ compiler is used as linker so we must use $wl |
# flag to pass the commands to the underlying system | | # flag to pass the commands to the underlying system |
# linker. We must also pass each convience library through | | # linker. |
# to the system linker between allextract/defaultextract. | | |
# The C++ compiler will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | # Supported since Solaris 2.6 (maybe 2.5.1?) |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
;; | | ;; |
esac | | esac |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | |
# in the archive. | | # in the archive. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
;; | | ;; |
gcx*) | | gcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| | |
| | |
;; | | ;; |
tandem*) | | tandem*) |
case $cc_basename in | | case $cc_basename in |
NCC*) | | NCC) |
# NonStop-UX NCC 3.20 | | # NonStop-UX NCC 3.20 |
# FIXME: insert proper C++ library support | | # FIXME: insert proper C++ library support |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${F77-"f77"} | | CC=${F77-"f77"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
| | |
AC_MSG_CHECKING([if libtool supports shared libraries]) | | AC_MSG_CHECKING([if libtool supports shared libraries]) |
AC_MSG_RESULT([$can_build_shared]) | | AC_MSG_RESULT([$can_build_shared]) |
| | |
fi | | fi |
;; | | ;; |
aix4* | aix5*) | | aix4* | aix5*) |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | | |
test "$enable_shared" = yes && enable_static=no | | test "$enable_shared" = yes && enable_static=no |
fi | | |
;; | | ;; |
esac | | esac |
AC_MSG_RESULT([$enable_shared]) | | AC_MSG_RESULT([$enable_shared]) |
| | |
lt_simple_compile_test_code="class foo {}\n" | | lt_simple_compile_test_code="class foo {}\n" |
| | |
# Code to be used in simple link tests | | # Code to be used in simple link tests |
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${GCJ-"gcj"} | | CC=${GCJ-"gcj"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | |
| | |
# GCJ did not exist at the time GCC didn't implicitly link libc in. | | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
| | |
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | | |
| | |
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
AC_LIBTOOL_PROG_COMPILER_PIC($1) | | AC_LIBTOOL_PROG_COMPILER_PIC($1) |
AC_LIBTOOL_PROG_CC_C_O($1) | | AC_LIBTOOL_PROG_CC_C_O($1) |
| | |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. | | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
_LT_AC_SYS_COMPILER | | _LT_AC_SYS_COMPILER |
| | |
# save warnings/boilerplate of simple test code | | |
_LT_COMPILER_BOILERPLATE | | |
_LT_LINKER_BOILERPLATE | | |
| | |
# Allow CC to be a program name with arguments. | | # Allow CC to be a program name with arguments. |
lt_save_CC="$CC" | | lt_save_CC="$CC" |
CC=${RC-"windres"} | | CC=${RC-"windres"} |
compiler=$CC | | compiler=$CC |
_LT_AC_TAGVAR(compiler, $1)=$CC | | _LT_AC_TAGVAR(compiler, $1)=$CC |
_LT_CC_BASENAME([$compiler]) | | |
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
| | |
AC_LIBTOOL_CONFIG($1) | | AC_LIBTOOL_CONFIG($1) |
| | |
# | | # |
# You should have received a copy of the GNU General Public License | | # You should have received a copy of the GNU General Public License |
# along with this program; if not, write to the Free Software | | # along with this program; if not, write to the Free Software |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
# | | # |
# As a special exception to the GNU General Public License, if you | | # As a special exception to the GNU General Public License, if you |
# distribute this file as part of a program that contains a | | # distribute this file as part of a program that contains a |
| | |
SED=$lt_SED | | SED=$lt_SED |
| | |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. | | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
Xsed="$SED -e 1s/^X//" | | Xsed="$SED -e s/^X//" |
| | |
# The HP-UX ksh and POSIX shell print the target directory to stdout | | # The HP-UX ksh and POSIX shell print the target directory to stdout |
# if CDPATH is set. | | # if CDPATH is set. |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH | | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
| | |
# The names of the tagged configurations supported by this script. | | # The names of the tagged configurations supported by this script. |
available_tags= | | available_tags= |
| | |
# The host system. | | # The host system. |
host_alias=$host_alias | | host_alias=$host_alias |
host=$host | | host=$host |
host_os=$host_os | | |
| | |
# The build system. | | |
build_alias=$build_alias | | |
build=$build | | |
build_os=$build_os | | |
| | |
# An echo program that does not interpret backslashes. | | # An echo program that does not interpret backslashes. |
echo=$lt_echo | | echo=$lt_echo |
| | |
# Regexp to match symbols that can be accessed directly from C. | | # Regexp to match symbols that can be accessed directly from C. |
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' |
| | |
| | # Transform the above into a raw symbol and a C symbol. |
| | symxfrm='\1 \2\3 \3' |
| | |
# Transform an extracted symbol line into a proper C declaration | | # Transform an extracted symbol line into a proper C declaration |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| | |
| | |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
;; | | ;; |
linux*) | | |
if test "$host_cpu" = ia64; then | | |
symcode='[[ABCDGIRSTW]]' | | |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | | |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | | |
fi | | |
;; | | |
irix* | nonstopux*) | | irix* | nonstopux*) |
symcode='[[BCDEGRST]]' | | symcode='[[BCDEGRST]]' |
;; | | ;; |
| | |
# Try without a prefix undercore, then with it. | | # Try without a prefix undercore, then with it. |
for ac_symprfx in "" "_"; do | | for ac_symprfx in "" "_"; do |
| | |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | | |
symxfrm="\\1 $ac_symprfx\\2 \\2" | | |
| | |
# Write the raw and C identifiers. | | # Write the raw and C identifiers. |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
| | |
# Check to see that the pipe works correctly. | | # Check to see that the pipe works correctly. |
pipe_works=no | | pipe_works=no |
| | |
;; | | ;; |
chorus*) | | chorus*) |
case $cc_basename in | | case $cc_basename in |
cxch68*) | | cxch68) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | | # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
;; | | ;; |
esac | | esac |
;; | | ;; |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
;; | | |
esac | | |
;; | | |
dgux*) | | dgux*) |
case $cc_basename in | | case $cc_basename in |
ec++*) | | ec++) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
;; | | ;; |
ghcx*) | | ghcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
;; | | ;; |
| | |
;; | | ;; |
esac | | esac |
;; | | ;; |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
# FreeBSD uses GNU C++ | | # FreeBSD uses GNU C++ |
;; | | ;; |
hpux9* | hpux10* | hpux11*) | | hpux9* | hpux10* | hpux11*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
if test "$host_cpu" != ia64; then | | if test "$host_cpu" != ia64; then |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' |
fi | | fi |
;; | | ;; |
aCC*) | | aCC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
case "$host_cpu" in | | case "$host_cpu" in |
| | |
;; | | ;; |
irix5* | irix6* | nonstopux*) | | irix5* | irix6* | nonstopux*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
# CC pic flag -KPIC is the default. | | # CC pic flag -KPIC is the default. |
| | |
;; | | ;; |
linux*) | | linux*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
# KAI C++ Compiler | | # KAI C++ Compiler |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
;; | | ;; |
icpc* | ecpc*) | | icpc) |
# Intel C++ | | # Intel C++ |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
;; | | ;; |
pgCC*) | | cxx) |
# Portland Group C++ compiler. | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | | |
;; | | |
cxx*) | | |
# Compaq C++ | | # Compaq C++ |
# Make sure the PIC flag is empty. It appears that all Alpha | | # Make sure the PIC flag is empty. It appears that all Alpha |
# Linux and Compaq Tru64 Unix objects are PIC. | | # Linux and Compaq Tru64 Unix objects are PIC. |
| | |
;; | | ;; |
mvs*) | | mvs*) |
case $cc_basename in | | case $cc_basename in |
cxx*) | | cxx) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' |
;; | | ;; |
*) | | *) |
;; | | ;; |
esac | | esac |
;; | | ;; |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
;; | | ;; |
osf3* | osf4* | osf5*) | | osf3* | osf4* | osf5*) |
case $cc_basename in | | case $cc_basename in |
KCC*) | | KCC) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' |
;; | | ;; |
RCC*) | | RCC) |
# Rational C++ 2.4.1 | | # Rational C++ 2.4.1 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
;; | | ;; |
cxx*) | | cxx) |
# Digital/Compaq C++ | | # Digital/Compaq C++ |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
# Make sure the PIC flag is empty. It appears that all Alpha | | # Make sure the PIC flag is empty. It appears that all Alpha |
| | |
;; | | ;; |
sco*) | | sco*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' |
;; | | ;; |
*) | | *) |
| | |
;; | | ;; |
solaris*) | | solaris*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.2, 5.x and Centerline C++ | | # Sun C++ 4.2, 5.x and Centerline C++ |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' |
;; | | ;; |
gcx*) | | gcx) |
# Green Hills C++ Compiler | | # Green Hills C++ Compiler |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' |
;; | | ;; |
| | |
;; | | ;; |
sunos4*) | | sunos4*) |
case $cc_basename in | | case $cc_basename in |
CC*) | | CC) |
# Sun C++ 4.x | | # Sun C++ 4.x |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
;; | | ;; |
lcc*) | | lcc) |
# Lucid | | # Lucid |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
;; | | ;; |
| | |
;; | | ;; |
tandem*) | | tandem*) |
case $cc_basename in | | case $cc_basename in |
NCC*) | | NCC) |
# NonStop-UX NCC 3.20 | | # NonStop-UX NCC 3.20 |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
;; | | ;; |
| | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' |
fi | | fi |
;; | | ;; |
darwin*) | | |
# PIC is the default on this platform | | |
# Common symbols not allowed in MH_DYLIB files | | |
case $cc_basename in | | |
xlc*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
;; | | |
esac | | |
;; | | |
| | |
mingw* | pw32* | os2*) | | mingw* | pw32* | os2*) |
# This hack is so that the source file can tell whether it is being | | # This hack is so that the source file can tell whether it is being |
| | |
;; | | ;; |
| | |
linux*) | | linux*) |
case $cc_basename in | | case $CC in |
icc* | ecc*) | | icc* | ecc*) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
;; | | ;; |
pgcc* | pgf77* | pgf90*) | | |
# Portland Group compilers (*not* the Pentium gcc compiler, | | |
# which looks to be a dead project) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | | |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | | |
;; | | |
ccc*) | | ccc*) |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
# All Alpha code is PIC. | | # All Alpha code is PIC. |
| | |
;; | | ;; |
| | |
solaris*) | | solaris*) |
| | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
case $cc_basename in | | |
f77* | f90* | f95*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | | |
*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | | |
esac | | |
;; | | ;; |
| | |
sunos4*) | | sunos4*) |
| | |
fi | | fi |
;; | | ;; |
| | |
unicos*) | | |
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | | |
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | | |
;; | | |
| | |
uts4*) | | uts4*) |
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' |
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' |
| | |
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
;; | | ;; |
cygwin* | mingw*) | | cygwin* | mingw*) |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | ;; |
| | linux*) |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
;; | | ;; |
*) | | *) |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| | |
# rely on this symbol name, it's probably fine to never include it in | | # rely on this symbol name, it's probably fine to never include it in |
# preloaded symbol tables. | | # preloaded symbol tables. |
extract_expsyms_cmds= | | extract_expsyms_cmds= |
# Just being paranoid about ensuring that cc_basename is set. | | |
_LT_CC_BASENAME([$compiler]) | | |
case $host_os in | | case $host_os in |
cygwin* | mingw* | pw32*) | | cygwin* | mingw* | pw32*) |
# FIXME: the MSVC++ port hasn't been tested in a loooong time | | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| | |
# If archive_cmds runs LD, not CC, wlarc should be empty | | # If archive_cmds runs LD, not CC, wlarc should be empty |
wlarc='${wl}' | | wlarc='${wl}' |
| | |
# Set some defaults for GNU ld with shared library support. These | | |
# are reset later if shared libraries are not supported. Putting them | | |
# here allows them to be overridden if necessary. | | |
runpath_var=LD_RUN_PATH | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | | |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | | |
# ancient GNU ld didn't support --whole-archive et. al. | | |
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | | |
else | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | | |
fi | | |
supports_anon_versioning=no | | |
case `$LD -v 2>/dev/null` in | | |
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | | |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | | |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | | |
*\ 2.11.*) ;; # other 2.11 versions | | |
*) supports_anon_versioning=yes ;; | | |
esac | | |
| | |
# See if GNU ld supports shared libraries. | | # See if GNU ld supports shared libraries. |
case $host_os in | | case $host_os in |
aix3* | aix4* | aix5*) | | aix3* | aix4* | aix5*) |
| | |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
_LT_AC_TAGVAR(always_export_symbols, $1)=no | | _LT_AC_TAGVAR(always_export_symbols, $1)=no |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' |
| | |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
| | |
fi~ | | fi~ |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
else | | else |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | ld_shlibs=no |
fi | | |
;; | | |
| | |
linux*) | | |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | |
tmp_addflag= | | |
case $cc_basename,$host_cpu in | | |
pgcc*) # Portland Group C compiler | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | | |
;; | | |
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | | |
tmp_addflag=' -fpic -Mnomain' ;; | | |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | | |
tmp_addflag=' -i_dynamic' ;; | | |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | | |
tmp_addflag=' -i_dynamic -nofor_main' ;; | | |
ifc* | ifort*) # Intel Fortran compiler | | |
tmp_addflag=' -nofor_main' ;; | | |
esac | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | |
| | |
if test $supports_anon_versioning = yes; then | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | | |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | | |
$echo "local: *; };" >> $output_objdir/$libname.ver~ | | |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | | |
fi | | |
else | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | |
fi | | fi |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
wlarc= | | wlarc= |
| | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
;; | | ;; |
| | |
| | linux*) |
| | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds" |
| | supports_anon_versioning=no |
| | case `$LD -v 2>/dev/null` in |
| | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| | *\ 2.11.*) ;; # other 2.11 versions |
| | *) supports_anon_versioning=yes ;; |
| | esac |
| | if test $supports_anon_versioning = yes; then |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ |
| | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| | else |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds" |
| | fi |
| | _LT_AC_TAGVAR(link_all_deplibs, $1)=no |
| | else |
| | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
| | fi |
| | ;; |
| | |
*) | | *) |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| | |
;; | | ;; |
esac | | esac |
| | |
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then |
runpath_var= | | runpath_var=LD_RUN_PATH |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
| | # ancient GNU ld didn't support --whole-archive et. al. |
| | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| | else |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
fi | | fi |
| | fi |
else | | else |
# PORTME fill in a description of your system's linker (not GNU ld) | | # PORTME fill in a description of your system's linker (not GNU ld) |
case $host_os in | | case $host_os in |
| | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
| | |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
case $host_os in aix4.[[012]]|aix4.[[012]].*) | | case $host_os in aix4.[012]|aix4.[012].*) |
# We only want to do this on AIX 4.2 and lower, the check | | # We only want to do this on AIX 4.2 and lower, the check |
# below for broken collect2 doesn't work under 4.3+ | | # below for broken collect2 doesn't work under 4.3+ |
collect2name=`${CC} -print-prog-name=collect2` | | collect2name=`${CC} -print-prog-name=collect2` |
| | |
fi | | fi |
esac | | esac |
shared_flag='-shared' | | shared_flag='-shared' |
if test "$aix_use_runtimelinking" = yes; then | | |
shared_flag="$shared_flag "'${wl}-G' | | |
fi | | |
else | | else |
# not using gcc | | # not using gcc |
if test "$host_cpu" = ia64; then | | if test "$host_cpu" = ia64; then |
| | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | ;; |
| | |
bsdi[[45]]*) | | bsdi4*) |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic |
;; | | ;; |
| | |
| | |
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' |
# FIXME: Should let the user specify the lib program. | | # FIXME: Should let the user specify the lib program. |
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' |
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | | fix_srcfile_path='`cygpath -w "$srcfile"`' |
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
;; | | ;; |
| | |
darwin* | rhapsody*) | | darwin* | rhapsody*) |
| | if test "$GXX" = yes ; then |
| | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
case "$host_os" in | | case "$host_os" in |
rhapsody* | darwin1.[[012]]) | | rhapsody* | darwin1.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' |
;; | | ;; |
*) # Darwin 1.3 on | | *) # Darwin 1.3 on |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
else | | else |
case ${MACOSX_DEPLOYMENT_TARGET} in | | case ${MACOSX_DEPLOYMENT_TARGET} in |
10.[[012]]) | | 10.[[012]]) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
;; | | ;; |
10.*) | | 10.*) |
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' |
;; | | ;; |
esac | | esac |
fi | | fi |
;; | | ;; |
esac | | esac |
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | | lt_int_apple_cc_single_mod=no |
| | output_verbose_link_cmd='echo' |
| | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
| | lt_int_apple_cc_single_mod=yes |
| | fi |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| | else |
| | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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' |
| | fi |
| | _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
| | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| | else |
| | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| | fi |
| | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
_LT_AC_TAGVAR(hardcode_direct, $1)=no | | _LT_AC_TAGVAR(hardcode_direct, $1)=no |
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes | | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
if test "$GCC" = yes ; then | | |
output_verbose_link_cmd='echo' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | | |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
else | | else |
case $cc_basename in | | |
xlc*) | | |
output_verbose_link_cmd='echo' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | | |
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | | |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | | |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | | |
;; | | |
*) | | |
_LT_AC_TAGVAR(ld_shlibs, $1)=no | | _LT_AC_TAGVAR(ld_shlibs, $1)=no |
;; | | |
esac | | |
fi | | fi |
;; | | ;; |
| | |
| | |
;; | | ;; |
| | |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. | | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
freebsd* | kfreebsd*-gnu | dragonfly*) | | freebsd* | kfreebsd*-gnu) |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
_LT_AC_TAGVAR(hardcode_direct, $1)=yes | | _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
| | |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
;; | | ;; |
| | |
netbsd*) | | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
else | | else |
| | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | | |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
else | | else |
| | |
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
| | |
# Both c and cxx compiler support -rpath directly | | # Both c and cxx compiler support -rpath directly |
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
| | |
solaris*) | | solaris*) |
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' |
if test "$GCC" = yes; then | | if test "$GCC" = yes; then |
wlarc='${wl}' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
else | | else |
wlarc='' | | |
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| | |
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
case $host_os in | | case $host_os in |
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
*) | | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
# The compiler driver will combine linker options so we | | |
# cannot just pass the convience library names through | | |
# without $wl, iff we do not link with $LD. | | |
# Luckily, gcc supports the same syntax we need for Sun Studio. | | |
# Supported since Solaris 2.6 (maybe 2.5.1?) | | |
case $wlarc in | | |
'') | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; |
*) | | |
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | | |
esac ;; | | |
esac | | esac |
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes | | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
;; | | ;; |
| | |
# Add /usr/xpg4/bin/sed as it is typically found on Solaris | | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
# along with /bin/sed that truncates output. | | # along with /bin/sed that truncates output. |
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
test ! -f $lt_ac_sed && continue | | test ! -f $lt_ac_sed && break |
cat /dev/null > conftest.in | | cat /dev/null > conftest.in |
lt_ac_count=0 | | lt_ac_count=0 |
echo $ECHO_N "0123456789$ECHO_C" >conftest.in | | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
| | |
fi | | fi |
done | | done |
done | | done |
]) | | |
SED=$lt_cv_path_SED | | SED=$lt_cv_path_SED |
| | ]) |
AC_MSG_RESULT([$SED]) | | AC_MSG_RESULT([$SED]) |
]) | | ]) |
| | |