|
|
|
@ -491,7 +491,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
|
|
|
|
x86_64-*linux*) |
|
|
|
|
LD="${LD-ld} -m elf_i386" |
|
|
|
|
;; |
|
|
|
|
ppc64-*linux*) |
|
|
|
|
ppc64-*linux*|powerpc64-*linux*) |
|
|
|
|
LD="${LD-ld} -m elf32ppclinux" |
|
|
|
|
;; |
|
|
|
|
s390x-*linux*) |
|
|
|
@ -555,7 +555,8 @@ need_locks="$enable_libtool_lock" |
|
|
|
|
# ---------------------------------------------------------------- |
|
|
|
|
# Check whether the given compiler option works |
|
|
|
|
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
|
|
|
|
[AC_CACHE_CHECK([$1], [$2], |
|
|
|
|
[AC_REQUIRE([LT_AC_PROG_SED]) |
|
|
|
|
AC_CACHE_CHECK([$1], [$2], |
|
|
|
|
[$2=no |
|
|
|
|
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
|
|
|
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
|
@ -660,6 +661,12 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
|
|
|
|
lt_cv_sys_max_cmd_len=8192; |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
amigaos*) |
|
|
|
|
# On AmigaOS with pdksh, this test takes hours, literally. |
|
|
|
|
# So we just punt and use a minimum line length of 8192. |
|
|
|
|
lt_cv_sys_max_cmd_len=8192; |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
*) |
|
|
|
|
# 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 |
|
|
|
@ -823,7 +830,7 @@ else |
|
|
|
|
lt_cv_dlopen_self=yes |
|
|
|
|
]) |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*) |
|
|
|
|
AC_CHECK_FUNC([shl_load], |
|
|
|
|
[lt_cv_dlopen="shl_load"], |
|
|
|
@ -912,13 +919,6 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
|
|
|
|
mkdir out |
|
|
|
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
|
|
|
|
|
|
|
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
|
|
# that will create temporary files in the current directory regardless of |
|
|
|
|
# the output directory. Thus, making CWD read-only will cause this test |
|
|
|
|
# to fail, enabling locking or at least warning the user not to do parallel |
|
|
|
|
# builds. |
|
|
|
|
chmod -w . |
|
|
|
|
|
|
|
|
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
|
|
# Insert the option either (1) after the last *FLAGS variable, or |
|
|
|
|
# (2) before a word containing "conftest.", or (3) at the end. |
|
|
|
@ -942,8 +942,11 @@ AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
chmod u+w . |
|
|
|
|
$rm conftest* out/* |
|
|
|
|
rmdir out |
|
|
|
|
$rm conftest* |
|
|
|
|
# SGI C++ compiler will create directory out/ii_files/ for |
|
|
|
|
# template instantiation |
|
|
|
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
|
|
$rm out/* && rmdir out |
|
|
|
|
cd .. |
|
|
|
|
rmdir conftest |
|
|
|
|
$rm conftest* |
|
|
|
@ -1060,7 +1063,7 @@ fi |
|
|
|
|
*) |
|
|
|
|
AC_MSG_RESULT([no]) |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
esac |
|
|
|
|
fi |
|
|
|
|
])# AC_LIBTOOL_SYS_LIB_STRIP |
|
|
|
|
|
|
|
|
@ -1161,7 +1164,7 @@ aix4* | aix5*) |
|
|
|
|
amigaos*) |
|
|
|
|
library_names_spec='$libname.ixlibrary $libname.a' |
|
|
|
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
|
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' |
|
|
|
|
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
beos*) |
|
|
|
@ -1208,7 +1211,7 @@ cygwin* | mingw* | pw32*) |
|
|
|
|
cygwin*) |
|
|
|
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
|
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
|
|
|
|
sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" |
|
|
|
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
|
|
;; |
|
|
|
|
mingw*) |
|
|
|
|
# MinGW DLLs use traditional 'lib' prefix |
|
|
|
@ -1247,17 +1250,16 @@ darwin* | rhapsody*) |
|
|
|
|
version_type=darwin |
|
|
|
|
need_lib_prefix=no |
|
|
|
|
need_version=no |
|
|
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
|
|
# yet detect zsh echo's removal of \ escapes. |
|
|
|
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
|
|
soname_spec='${libname}${release}${major}$shared_ext' |
|
|
|
|
shlibpath_overrides_runpath=yes |
|
|
|
|
shlibpath_var=DYLD_LIBRARY_PATH |
|
|
|
|
shrext='$(test .$module = .yes && echo .so || echo .dylib)' |
|
|
|
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
|
|
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
|
|
if test "$GCC" = yes; then |
|
|
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
|
|
else |
|
|
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
|
|
fi |
|
|
|
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
|
|
;; |
|
|
|
@ -1275,6 +1277,18 @@ freebsd1*) |
|
|
|
|
dynamic_linker=no |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
kfreebsd*-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='GNU ld.so' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
freebsd*) |
|
|
|
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
|
|
version_type=freebsd-$objformat |
|
|
|
@ -1418,6 +1432,12 @@ linux*) |
|
|
|
|
# before this can be enabled. |
|
|
|
|
hardcode_into_libs=yes |
|
|
|
|
|
|
|
|
|
# Append ld.so.conf contents to the search path |
|
|
|
|
if test -f /etc/ld.so.conf; then |
|
|
|
|
ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf` |
|
|
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
|
|
# powerpc, because MkLinux only supported shared libraries with the |
|
|
|
|
# GNU dynamic linker. Since this was broken with cross compilers, |
|
|
|
@ -1427,6 +1447,18 @@ linux*) |
|
|
|
|
dynamic_linker='GNU/Linux ld.so' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
knetbsd*-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='GNU ld.so' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
netbsd*) |
|
|
|
|
version_type=sunos |
|
|
|
|
need_lib_prefix=no |
|
|
|
@ -1436,7 +1468,7 @@ netbsd*) |
|
|
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
|
|
dynamic_linker='NetBSD (a.out) ld.so' |
|
|
|
|
else |
|
|
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' |
|
|
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
|
|
soname_spec='${libname}${release}${shared_ext}$major' |
|
|
|
|
dynamic_linker='NetBSD ld.elf_so' |
|
|
|
|
fi |
|
|
|
@ -1452,7 +1484,7 @@ newsos6) |
|
|
|
|
shlibpath_overrides_runpath=yes |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
nto-qnx) |
|
|
|
|
nto-qnx*) |
|
|
|
|
version_type=linux |
|
|
|
|
need_lib_prefix=no |
|
|
|
|
need_version=no |
|
|
|
@ -1465,7 +1497,7 @@ nto-qnx) |
|
|
|
|
openbsd*) |
|
|
|
|
version_type=sunos |
|
|
|
|
need_lib_prefix=no |
|
|
|
|
need_version=no |
|
|
|
|
need_version=yes |
|
|
|
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
|
@ -1921,7 +1953,7 @@ fi |
|
|
|
|
|
|
|
|
|
# AC_PROG_LD |
|
|
|
|
# ---------- |
|
|
|
|
# find the path to the GNU or non-GNU linker |
|
|
|
|
# find the pathname to the GNU or non-GNU linker |
|
|
|
|
AC_DEFUN([AC_PROG_LD], |
|
|
|
|
[AC_ARG_WITH([gnu-ld], |
|
|
|
|
[AC_HELP_STRING([--with-gnu-ld], |
|
|
|
@ -1947,7 +1979,7 @@ if test "$GCC" = yes; then |
|
|
|
|
# Accept absolute paths. |
|
|
|
|
[[\\/]]* | ?:[[\\/]]*) |
|
|
|
|
re_direlt='/[[^/]][[^/]]*/\.\./' |
|
|
|
|
# Canonicalize the path of ld |
|
|
|
|
# Canonicalize the pathname of ld |
|
|
|
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
|
|
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
|
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
|
|
@ -2010,7 +2042,7 @@ AC_DEFUN([AC_PROG_LD_GNU], |
|
|
|
|
[AC_REQUIRE([AC_PROG_EGREP])dnl |
|
|
|
|
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
|
|
|
|
[# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
|
|
case `"$LD" -v 2>&1 </dev/null` in |
|
|
|
|
case `$LD -v 2>&1 </dev/null` in |
|
|
|
|
*GNU* | *'with BFD'*) |
|
|
|
|
lt_cv_prog_gnu_ld=yes |
|
|
|
|
;; |
|
|
|
@ -2075,28 +2107,24 @@ bsdi4*) |
|
|
|
|
lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
cygwin* | mingw* | pw32*) |
|
|
|
|
cygwin*) |
|
|
|
|
# win32_libid is a shell function defined in ltmain.sh |
|
|
|
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
|
|
|
lt_cv_file_magic_cmd='win32_libid' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
mingw* | pw32*) |
|
|
|
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
|
|
|
|
# win32_libid shell function, so use a weaker test based on 'objdump'. |
|
|
|
|
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
|
|
lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
darwin* | rhapsody*) |
|
|
|
|
# this will be overwritten by pass_all, but leave it in just in case |
|
|
|
|
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
|
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
|
|
case "$host_os" in |
|
|
|
|
rhapsody* | darwin1.[[012]]) |
|
|
|
|
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` |
|
|
|
|
;; |
|
|
|
|
*) # Darwin 1.3 on |
|
|
|
|
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
lt_cv_deplibs_check_method=pass_all |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
freebsd*) |
|
|
|
|
freebsd* | kfreebsd*-gnu) |
|
|
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
|
|
case $host_cpu in |
|
|
|
|
i*86 ) |
|
|
|
@ -2135,36 +2163,27 @@ hpux10.20* | hpux11*) |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
|
|
case $host_os in |
|
|
|
|
irix5* | nonstopux*) |
|
|
|
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
|
|
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
|
|
;; |
|
|
|
|
*) |
|
|
|
|
case $LD in |
|
|
|
|
*-32|*"-32 ") libmagic=32-bit;; |
|
|
|
|
*-n32|*"-n32 ") libmagic=N32;; |
|
|
|
|
*-64|*"-64 ") libmagic=64-bit;; |
|
|
|
|
*) libmagic=never-match;; |
|
|
|
|
esac |
|
|
|
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
|
|
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" |
|
|
|
|
;; |
|
|
|
|
case $LD in |
|
|
|
|
*-32|*"-32 ") libmagic=32-bit;; |
|
|
|
|
*-n32|*"-n32 ") libmagic=N32;; |
|
|
|
|
*-64|*"-64 ") libmagic=64-bit;; |
|
|
|
|
*) libmagic=never-match;; |
|
|
|
|
esac |
|
|
|
|
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
|
|
lt_cv_deplibs_check_method=pass_all |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
# This must be Linux ELF. |
|
|
|
|
linux*) |
|
|
|
|
case $host_cpu in |
|
|
|
|
alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) |
|
|
|
|
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) |
|
|
|
|
lt_cv_deplibs_check_method=pass_all ;; |
|
|
|
|
*) |
|
|
|
|
# glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
|
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
|
|
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; |
|
|
|
|
esac |
|
|
|
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
|
|
lt_cv_deplibs_check_method=pass_all |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
netbsd*) |
|
|
|
@ -2181,7 +2200,7 @@ newos6*) |
|
|
|
|
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
nto-qnx) |
|
|
|
|
nto-qnx*) |
|
|
|
|
lt_cv_deplibs_check_method=unknown |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
@ -2196,9 +2215,6 @@ openbsd*) |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
osf3* | osf4* | osf5*) |
|
|
|
|
# this will be overridden with pass_all, but let us keep it just in case |
|
|
|
|
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
|
|
lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
|
|
lt_cv_deplibs_check_method=pass_all |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
@ -2208,7 +2224,6 @@ sco3.2v5*) |
|
|
|
|
|
|
|
|
|
solaris*) |
|
|
|
|
lt_cv_deplibs_check_method=pass_all |
|
|
|
|
lt_cv_file_magic_test_file=/lib/libc.so |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
|
@ -2248,7 +2263,7 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
|
|
|
|
|
|
|
# AC_PROG_NM |
|
|
|
|
# ---------- |
|
|
|
|
# find the path to a BSD-compatible name lister |
|
|
|
|
# find the pathname to a BSD-compatible name lister |
|
|
|
|
AC_DEFUN([AC_PROG_NM], |
|
|
|
|
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
|
|
|
|
[if test -n "$NM"; then |
|
|
|
@ -2386,7 +2401,7 @@ AC_DEFUN([AC_LIBTOOL_CXX], |
|
|
|
|
AC_DEFUN([_LT_AC_LANG_CXX], |
|
|
|
|
[AC_REQUIRE([AC_PROG_CXX]) |
|
|
|
|
AC_REQUIRE([AC_PROG_CXXCPP]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
|
|
|
|
])# _LT_AC_LANG_CXX |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2402,7 +2417,7 @@ AC_DEFUN([AC_LIBTOOL_F77], |
|
|
|
|
# --------------- |
|
|
|
|
AC_DEFUN([_LT_AC_LANG_F77], |
|
|
|
|
[AC_REQUIRE([AC_PROG_F77]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
|
|
|
|
])# _LT_AC_LANG_F77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2423,7 +2438,7 @@ AC_DEFUN([_LT_AC_LANG_GCJ], |
|
|
|
|
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
|
|
|
|
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
|
|
|
|
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
|
|
|
|
])# _LT_AC_LANG_GCJ |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2432,7 +2447,7 @@ _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) |
|
|
|
|
# enable support for Windows resource files |
|
|
|
|
AC_DEFUN([AC_LIBTOOL_RC], |
|
|
|
|
[AC_REQUIRE([LT_AC_PROG_RC]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`]) |
|
|
|
|
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
|
|
|
|
])# AC_LIBTOOL_RC |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2474,7 +2489,7 @@ if test "$GCC" = no; then |
|
|
|
|
fi |
|
|
|
|
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
|
|
|
|
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
|
|
|
|
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : |
|
|
|
|
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
|
|
|
|
else |
|
|
|
|
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
|
|
|
|
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
|
|
|
@ -2497,9 +2512,9 @@ AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
|
|
AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
|
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
|
|
AC_LIBTOOL_SYS_LIB_STRIP |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
|
|
|
|
|
|
|
# Report which librarie types wil actually be built |
|
|
|
@ -2526,33 +2541,42 @@ aix4*) |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
darwin* | rhapsody*) |
|
|
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
|
|
|
|
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 |
|
|
|
|
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
|
|
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 |
|
|
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
|
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
|
|
|
# `"' quotes if we put them in here... so don't! |
|
|
|
|
output_verbose_link_cmd='echo' |
|
|
|
|
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 -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
|
|
|
_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 -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~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 $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 |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
else |
|
|
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
AC_MSG_RESULT([$enable_shared]) |
|
|
|
|
|
|
|
|
@ -2687,7 +2711,7 @@ if test "$GXX" = yes; then |
|
|
|
|
# linker, instead of GNU ld. If possible, this setting should |
|
|
|
|
# overridden to take advantage of the native linker features on |
|
|
|
|
# the platform it is being used on. |
|
|
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# Commands to make compiler produce verbose output that lists |
|
|
|
@ -2854,41 +2878,54 @@ case $host_os in |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
darwin* | rhapsody*) |
|
|
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
|
|
|
|
if test "$GXX" = 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 |
|
|
|
|
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
|
|
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 |
|
|
|
|
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 -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' |
|
|
|
|
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 -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
|
|
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_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 |
|
|
|
|
fi |
|
|
|
|
else |
|
|
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
dgux*) |
|
|
|
@ -2915,7 +2952,7 @@ case $host_os in |
|
|
|
|
freebsd-elf*) |
|
|
|
|
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
|
|
|
|
;; |
|
|
|
|
freebsd*) |
|
|
|
|
freebsd* | kfreebsd*-gnu) |
|
|
|
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
|
|
|
# conventions |
|
|
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
|
|
|
@ -3425,9 +3462,9 @@ AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
|
|
AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
|
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
|
|
AC_LIBTOOL_SYS_LIB_STRIP |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
|
|
|
|
|
|
|
AC_LIBTOOL_CONFIG($1) |
|
|
|
@ -3669,9 +3706,10 @@ AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
|
|
AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
|
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
|
|
AC_LIBTOOL_SYS_LIB_STRIP |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_LIBTOOL_CONFIG($1) |
|
|
|
|
|
|
|
|
@ -3719,9 +3757,9 @@ AC_LIBTOOL_PROG_COMPILER_PIC($1) |
|
|
|
|
AC_LIBTOOL_PROG_CC_C_O($1) |
|
|
|
|
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_SHLIBS($1) |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
|
|
|
|
AC_LIBTOOL_SYS_LIB_STRIP |
|
|
|
|
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
|
|
|
|
AC_LIBTOOL_DLOPEN_SELF($1) |
|
|
|
|
|
|
|
|
|
AC_LIBTOOL_CONFIG($1) |
|
|
|
@ -3786,11 +3824,12 @@ if test -f "$ltmain"; then |
|
|
|
|
# without removal of \ escapes. |
|
|
|
|
if test -n "${ZSH_VERSION+set}" ; then |
|
|
|
|
setopt NO_GLOB_SUBST |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
# Now quote all the things that may contain metacharacters while being |
|
|
|
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
|
|
# variables and quote the copies for generation of the libtool script. |
|
|
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ |
|
|
|
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
|
|
|
|
SED SHELL STRIP \ |
|
|
|
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
|
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
|
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
|
@ -3840,7 +3879,7 @@ if test -f "$ltmain"; then |
|
|
|
|
_LT_AC_TAGVAR(archive_cmds, $1) | \ |
|
|
|
|
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ |
|
|
|
|
_LT_AC_TAGVAR(module_cmds, $1) | \ |
|
|
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
|
|
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \ |
|
|
|
|
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ |
|
|
|
|
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \ |
|
|
|
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
|
@ -3971,7 +4010,7 @@ LN_S=$lt_LN_S |
|
|
|
|
NM=$lt_NM |
|
|
|
|
|
|
|
|
|
# A symbol stripping program |
|
|
|
|
STRIP=$STRIP |
|
|
|
|
STRIP=$lt_STRIP |
|
|
|
|
|
|
|
|
|
# Used to examine libraries when file_magic_cmd begins "file" |
|
|
|
|
MAGIC_CMD=$MAGIC_CMD |
|
|
|
@ -4246,7 +4285,10 @@ else |
|
|
|
|
# If there is no Makefile yet, we rely on a make rule to execute |
|
|
|
|
# `config.status --recheck' to rerun these tests and create the |
|
|
|
|
# libtool script then. |
|
|
|
|
test -f Makefile && make "$ltmain" |
|
|
|
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
|
|
if test -f "$ltmain_in"; then |
|
|
|
|
test -f Makefile && make "$ltmain" |
|
|
|
|
fi |
|
|
|
|
fi |
|
|
|
|
])# AC_LIBTOOL_CONFIG |
|
|
|
|
|
|
|
|
@ -4319,7 +4361,7 @@ osf*) |
|
|
|
|
symcode='[[BCDEGQRST]]' |
|
|
|
|
;; |
|
|
|
|
solaris* | sysv5*) |
|
|
|
|
symcode='[[BDT]]' |
|
|
|
|
symcode='[[BDRT]]' |
|
|
|
|
;; |
|
|
|
|
sysv4) |
|
|
|
|
symcode='[[DFNSTU]]' |
|
|
|
@ -4337,7 +4379,7 @@ esac |
|
|
|
|
# If we're using GNU nm, then use its standard symbol codes. |
|
|
|
|
case `$NM -V 2>&1` in |
|
|
|
|
*GNU* | *'with BFD'*) |
|
|
|
|
symcode='[[ABCDGISTW]]' ;; |
|
|
|
|
symcode='[[ABCDGIRSTW]]' ;; |
|
|
|
|
esac |
|
|
|
|
|
|
|
|
|
# Try without a prefix undercore, then with it. |
|
|
|
@ -4552,7 +4594,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) |
|
|
|
|
;; |
|
|
|
|
esac |
|
|
|
|
;; |
|
|
|
|
freebsd*) |
|
|
|
|
freebsd* | kfreebsd*-gnu) |
|
|
|
|
# FreeBSD uses GNU C++ |
|
|
|
|
;; |
|
|
|
|
hpux9* | hpux10* | hpux11*) |
|
|
|
@ -4603,7 +4645,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
|
|
|
|
;; |
|
|
|
|
;; |
|
|
|
|
cxx) |
|
|
|
|
# Compaq C++ |
|
|
|
|
# Make sure the PIC flag is empty. It appears that all Alpha |
|
|
|
@ -4828,12 +4870,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) |
|
|
|
|
|
|
|
|
|
linux*) |
|
|
|
|
case $CC in |
|
|
|
|
icc|ecc) |
|
|
|
|
icc* | ecc*) |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' |
|
|
|
|
;; |
|
|
|
|
ccc) |
|
|
|
|
ccc*) |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' |
|
|
|
|
# All Alpha code is PIC. |
|
|
|
|
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' |
|
|
|
@ -4963,7 +5005,7 @@ ifelse([$1],[CXX],[ |
|
|
|
|
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
|
|
|
|
_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
|
|
|
|
_LT_AC_TAGVAR(module_cmds, $1)= |
|
|
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
|
|
|
|
_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
|
|
|
|
_LT_AC_TAGVAR(always_export_symbols, $1)=no |
|
|
|
|
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
|
|
# include_expsyms should be a list of space-separated symbols to be *always* |
|
|
|
@ -5106,6 +5148,31 @@ EOF |
|
|
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
linux*) |
|
|
|
|
if $LD --help 2>&1 | egrep ': 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 |
|
|
|
|
else |
|
|
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
*) |
|
|
|
|
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' |
|
|
|
@ -5294,20 +5361,27 @@ EOF |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
darwin* | rhapsody*) |
|
|
|
|
if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then |
|
|
|
|
if test "$GXX" = 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 |
|
|
|
|
test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' |
|
|
|
|
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 |
|
|
|
|
# FIXME: Relying on posixy $() will cause problems for |
|
|
|
|
# cross-compilation, but unfortunately the echo tests do not |
|
|
|
|
# yet detect zsh echo's removal of \ escapes. Also zsh mangles |
|
|
|
|
# `"' quotes if we put them in here... so don't! |
|
|
|
|
lt_int_apple_cc_single_mod=no |
|
|
|
|
output_verbose_link_cmd='echo' |
|
|
|
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
|
|
|
@ -5318,20 +5392,22 @@ EOF |
|
|
|
|
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 -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $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 |
|
|
|
|
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 -bundle $allow_undefined_flag -o $lib $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 |
|
|
|
|
fi |
|
|
|
|
else |
|
|
|
|
_LT_AC_TAGVAR(ld_shlibs, $1)=no |
|
|
|
|
fi |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
dgux*) |
|
|
|
@ -5364,7 +5440,7 @@ EOF |
|
|
|
|
;; |
|
|
|
|
|
|
|
|
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
|
|
freebsd*) |
|
|
|
|
freebsd* | kfreebsd*-gnu) |
|
|
|
|
_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_direct, $1)=yes |
|
|
|
@ -5681,7 +5757,7 @@ x|xyes) |
|
|
|
|
AC_MSG_CHECKING([whether -lc should be explicitly linked in]) |
|
|
|
|
$rm conftest* |
|
|
|
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
|
|
|
|
soname=conftest |
|
|
|
|
lib=conftest |
|
|
|
|