241 |
$as_unset CDPATH |
$as_unset CDPATH |
242 |
|
|
243 |
|
|
|
# Find the correct PATH separator. Usually this is `:', but |
|
|
# DJGPP uses `;' like DOS. |
|
|
if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
case X$UNAME in |
|
|
*-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
*) lt_cv_sys_path_separator=':' ;; |
|
|
esac |
|
|
PATH_SEPARATOR=$lt_cv_sys_path_separator |
|
|
fi |
|
|
|
|
244 |
|
|
245 |
# Check that we are running under the correct shell. |
# Check that we are running under the correct shell. |
246 |
SHELL=${CONFIG_SHELL-/bin/sh} |
SHELL=${CONFIG_SHELL-/bin/sh} |
259 |
elif test "X$1" = X--fallback-echo; then |
elif test "X$1" = X--fallback-echo; then |
260 |
# Avoid inline document here, it may be left over |
# Avoid inline document here, it may be left over |
261 |
: |
: |
262 |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
263 |
# Yippee, $echo works! |
# Yippee, $echo works! |
264 |
: |
: |
265 |
else |
else |
271 |
# used as fallback echo |
# used as fallback echo |
272 |
shift |
shift |
273 |
cat <<EOF |
cat <<EOF |
274 |
|
$* |
275 |
EOF |
EOF |
276 |
exit 0 |
exit 0 |
277 |
fi |
fi |
305 |
# |
# |
306 |
# So, first we look for a working echo in the user's PATH. |
# So, first we look for a working echo in the user's PATH. |
307 |
|
|
308 |
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
309 |
for dir in $PATH /usr/ucb; do |
for dir in $PATH /usr/ucb; do |
310 |
|
IFS="$lt_save_ifs" |
311 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
312 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
313 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
316 |
break |
break |
317 |
fi |
fi |
318 |
done |
done |
319 |
IFS="$save_ifs" |
IFS="$lt_save_ifs" |
320 |
|
|
321 |
if test "X$echo" = Xecho; then |
if test "X$echo" = Xecho; then |
322 |
# We didn't find a better echo, so look for alternatives. |
# We didn't find a better echo, so look for alternatives. |
390 |
|
|
391 |
|
|
392 |
|
|
393 |
|
|
394 |
|
tagnames=${tagnames+${tagnames},}CXX |
395 |
|
|
396 |
|
tagnames=${tagnames+${tagnames},}F77 |
397 |
|
|
398 |
# Name of the host. |
# Name of the host. |
399 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
400 |
# so uname gets run too. |
# so uname gets run too. |
463 |
# include <unistd.h> |
# include <unistd.h> |
464 |
#endif" |
#endif" |
465 |
|
|
466 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LIBOBJS LTLIBOBJS' |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 FLIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL HAS_DOXYFILE ROOT_INCLUDES ROOT_LDFLAGS ROOTCINT LIBOBJS LTLIBOBJS' |
467 |
ac_subst_files='' |
ac_subst_files='' |
468 |
|
|
469 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
940 |
ac_env_CPP_value=$CPP |
ac_env_CPP_value=$CPP |
941 |
ac_cv_env_CPP_set=${CPP+set} |
ac_cv_env_CPP_set=${CPP+set} |
942 |
ac_cv_env_CPP_value=$CPP |
ac_cv_env_CPP_value=$CPP |
943 |
|
ac_env_CXXCPP_set=${CXXCPP+set} |
944 |
|
ac_env_CXXCPP_value=$CXXCPP |
945 |
|
ac_cv_env_CXXCPP_set=${CXXCPP+set} |
946 |
|
ac_cv_env_CXXCPP_value=$CXXCPP |
947 |
|
|
948 |
# |
# |
949 |
# Report the --help message. |
# Report the --help message. |
1023 |
Optional Features: |
Optional Features: |
1024 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1025 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1026 |
--enable-shared=PKGS build shared libraries default=yes |
--disable-dependency-tracking Speeds up one-time builds |
1027 |
--enable-static=PKGS build static libraries default=yes |
--enable-dependency-tracking Do not reject slow dependency extractors |
1028 |
--enable-fast-install=PKGS optimize for fast installation default=yes |
--enable-shared[=PKGS] |
1029 |
|
build shared libraries [default=yes] |
1030 |
|
--enable-static[=PKGS] |
1031 |
|
build static libraries [default=yes] |
1032 |
|
--enable-fast-install[=PKGS] |
1033 |
|
optimize for fast installation [default=yes] |
1034 |
--disable-libtool-lock avoid locking (might break parallel builds) |
--disable-libtool-lock avoid locking (might break parallel builds) |
1035 |
--enable-gprof enable memory profiling with gprof |
--enable-gprof enable memory profiling with gprof |
1036 |
|
|
1037 |
Optional Packages: |
Optional Packages: |
1038 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1039 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1040 |
--with-gnu-ld assume the C compiler uses GNU ld default=no |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1041 |
--with-pic try to use only PIC/non-PIC objects default=use both |
--with-pic try to use only PIC/non-PIC objects [default=use |
1042 |
|
both] |
1043 |
|
--with-tags[=TAGS] |
1044 |
|
include additional configurations [automatic] |
1045 |
--with-root=path Use the specified ROOT directory |
--with-root=path Use the specified ROOT directory |
1046 |
--with-log4cxx=path Use the specified directroy for log4cxx |
--with-log4cxx=path Use the specified directroy for log4cxx |
1047 |
|
|
1057 |
CXX C++ compiler command |
CXX C++ compiler command |
1058 |
CXXFLAGS C++ compiler flags |
CXXFLAGS C++ compiler flags |
1059 |
CPP C preprocessor |
CPP C preprocessor |
1060 |
|
CXXCPP C++ preprocessor |
1061 |
|
|
1062 |
Use these variables to override the choices made by `configure' or to help |
Use these variables to override the choices made by `configure' or to help |
1063 |
it to find libraries and programs with nonstandard names/locations. |
it to find libraries and programs with nonstandard names/locations. |
1498 |
|
|
1499 |
|
|
1500 |
|
|
1501 |
am__api_version="1.4" |
am__api_version="1.7" |
1502 |
ac_aux_dir= |
ac_aux_dir= |
1503 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1504 |
if test -f $ac_dir/install-sh; then |
if test -f $ac_dir/install-sh; then |
1607 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
1608 |
# Just in case |
# Just in case |
1609 |
sleep 1 |
sleep 1 |
1610 |
echo timestamp > conftestfile |
echo timestamp > conftest.file |
1611 |
# Do `set' in a subshell so we don't clobber the current shell's |
# Do `set' in a subshell so we don't clobber the current shell's |
1612 |
# arguments. Must try -L first in case configure is actually a |
# arguments. Must try -L first in case configure is actually a |
1613 |
# symlink; some systems play weird games with the mod time of symlinks |
# symlink; some systems play weird games with the mod time of symlinks |
1614 |
# (eg FreeBSD returns the mod time of the symlink's containing |
# (eg FreeBSD returns the mod time of the symlink's containing |
1615 |
# directory). |
# directory). |
1616 |
if ( |
if ( |
1617 |
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1618 |
if test "$*" = "X"; then |
if test "$*" = "X"; then |
1619 |
# -L didn't work. |
# -L didn't work. |
1620 |
set X `ls -t $srcdir/configure conftestfile` |
set X `ls -t $srcdir/configure conftest.file` |
1621 |
fi |
fi |
1622 |
if test "$*" != "X $srcdir/configure conftestfile" \ |
rm -f conftest.file |
1623 |
&& test "$*" != "X conftestfile $srcdir/configure"; then |
if test "$*" != "X $srcdir/configure conftest.file" \ |
1624 |
|
&& test "$*" != "X conftest.file $srcdir/configure"; then |
1625 |
|
|
1626 |
# If neither matched, then we have a broken ls. This can happen |
# If neither matched, then we have a broken ls. This can happen |
1627 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
1634 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1635 |
fi |
fi |
1636 |
|
|
1637 |
test "$2" = conftestfile |
test "$2" = conftest.file |
1638 |
) |
) |
1639 |
then |
then |
1640 |
# Ok. |
# Ok. |
1646 |
Check your system clock" >&2;} |
Check your system clock" >&2;} |
1647 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1648 |
fi |
fi |
|
rm -f conftest* |
|
1649 |
echo "$as_me:$LINENO: result: yes" >&5 |
echo "$as_me:$LINENO: result: yes" >&5 |
1650 |
echo "${ECHO_T}yes" >&6 |
echo "${ECHO_T}yes" >&6 |
1651 |
test "$program_prefix" != NONE && |
test "$program_prefix" != NONE && |
1661 |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1662 |
rm conftest.sed |
rm conftest.sed |
1663 |
|
|
1664 |
|
|
1665 |
|
# expand $ac_aux_dir to an absolute path |
1666 |
|
am_aux_dir=`cd $ac_aux_dir && pwd` |
1667 |
|
|
1668 |
|
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1669 |
|
# Use eval to expand $SHELL |
1670 |
|
if eval "$MISSING --run true"; then |
1671 |
|
am_missing_run="$MISSING --run " |
1672 |
|
else |
1673 |
|
am_missing_run= |
1674 |
|
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1675 |
|
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
1676 |
|
fi |
1677 |
|
|
1678 |
|
for ac_prog in gawk mawk nawk awk |
1679 |
|
do |
1680 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1681 |
|
set dummy $ac_prog; ac_word=$2 |
1682 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1683 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1684 |
|
if test "${ac_cv_prog_AWK+set}" = set; then |
1685 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1686 |
|
else |
1687 |
|
if test -n "$AWK"; then |
1688 |
|
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
1689 |
|
else |
1690 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1691 |
|
for as_dir in $PATH |
1692 |
|
do |
1693 |
|
IFS=$as_save_IFS |
1694 |
|
test -z "$as_dir" && as_dir=. |
1695 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1696 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1697 |
|
ac_cv_prog_AWK="$ac_prog" |
1698 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1699 |
|
break 2 |
1700 |
|
fi |
1701 |
|
done |
1702 |
|
done |
1703 |
|
|
1704 |
|
fi |
1705 |
|
fi |
1706 |
|
AWK=$ac_cv_prog_AWK |
1707 |
|
if test -n "$AWK"; then |
1708 |
|
echo "$as_me:$LINENO: result: $AWK" >&5 |
1709 |
|
echo "${ECHO_T}$AWK" >&6 |
1710 |
|
else |
1711 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1712 |
|
echo "${ECHO_T}no" >&6 |
1713 |
|
fi |
1714 |
|
|
1715 |
|
test -n "$AWK" && break |
1716 |
|
done |
1717 |
|
|
1718 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1719 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
1720 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
1744 |
SET_MAKE="MAKE=${MAKE-make}" |
SET_MAKE="MAKE=${MAKE-make}" |
1745 |
fi |
fi |
1746 |
|
|
1747 |
|
rm -rf .tst 2>/dev/null |
1748 |
PACKAGE=yoda |
mkdir .tst 2>/dev/null |
1749 |
|
if test -d .tst; then |
1750 |
VERSION=0.1.0 |
am__leading_dot=. |
1751 |
|
else |
1752 |
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
am__leading_dot=_ |
1753 |
|
fi |
1754 |
|
rmdir .tst 2>/dev/null |
1755 |
|
|
1756 |
|
# test to see if srcdir already configured |
1757 |
|
if test "`cd $srcdir && pwd`" != "`pwd`" && |
1758 |
|
test -f $srcdir/config.status; then |
1759 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
1760 |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1761 |
{ (exit 1); exit 1; }; } |
{ (exit 1); exit 1; }; } |
1762 |
fi |
fi |
1763 |
|
|
1764 |
|
# test whether we have cygpath |
1765 |
|
if test -z "$CYGPATH_W"; then |
1766 |
|
if (cygpath --version) >/dev/null 2>/dev/null; then |
1767 |
|
CYGPATH_W='cygpath -w' |
1768 |
|
else |
1769 |
|
CYGPATH_W=echo |
1770 |
|
fi |
1771 |
|
fi |
1772 |
|
|
1773 |
|
|
1774 |
|
# Define the identity of the package. |
1775 |
|
PACKAGE=yoda |
1776 |
|
VERSION=0.1.0 |
1777 |
|
|
1778 |
|
|
1779 |
cat >>confdefs.h <<_ACEOF |
cat >>confdefs.h <<_ACEOF |
1780 |
#define PACKAGE "$PACKAGE" |
#define PACKAGE "$PACKAGE" |
1781 |
_ACEOF |
_ACEOF |
1785 |
#define VERSION "$VERSION" |
#define VERSION "$VERSION" |
1786 |
_ACEOF |
_ACEOF |
1787 |
|
|
1788 |
|
# Some tools Automake needs. |
1789 |
|
|
1790 |
|
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
1791 |
|
|
1792 |
|
|
1793 |
|
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
1794 |
|
|
1795 |
|
|
1796 |
|
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
1797 |
|
|
1798 |
|
|
1799 |
|
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
1800 |
|
|
1801 |
|
|
1802 |
|
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
1803 |
|
|
1804 |
|
|
1805 |
|
AMTAR=${AMTAR-"${am_missing_run}tar"} |
1806 |
|
|
1807 |
|
install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1808 |
|
|
1809 |
|
# Installed binaries are usually stripped using `strip' when the user |
1810 |
|
# run `make install-strip'. However `strip' might not be the right |
1811 |
|
# tool to use in cross-compilation environments, therefore Automake |
1812 |
|
# will honor the `STRIP' environment variable to overrule this program. |
1813 |
|
if test "$cross_compiling" != no; then |
1814 |
|
if test -n "$ac_tool_prefix"; then |
1815 |
|
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
1816 |
|
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
1817 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1818 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1819 |
|
if test "${ac_cv_prog_STRIP+set}" = set; then |
1820 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1821 |
|
else |
1822 |
|
if test -n "$STRIP"; then |
1823 |
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
1824 |
|
else |
1825 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1826 |
|
for as_dir in $PATH |
1827 |
|
do |
1828 |
|
IFS=$as_save_IFS |
1829 |
|
test -z "$as_dir" && as_dir=. |
1830 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1831 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1832 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
1833 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1834 |
|
break 2 |
1835 |
|
fi |
1836 |
|
done |
1837 |
|
done |
1838 |
|
|
1839 |
|
fi |
1840 |
|
fi |
1841 |
|
STRIP=$ac_cv_prog_STRIP |
1842 |
|
if test -n "$STRIP"; then |
1843 |
|
echo "$as_me:$LINENO: result: $STRIP" >&5 |
1844 |
|
echo "${ECHO_T}$STRIP" >&6 |
1845 |
|
else |
1846 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1847 |
|
echo "${ECHO_T}no" >&6 |
1848 |
|
fi |
1849 |
|
|
1850 |
|
fi |
1851 |
|
if test -z "$ac_cv_prog_STRIP"; then |
1852 |
|
ac_ct_STRIP=$STRIP |
1853 |
|
# Extract the first word of "strip", so it can be a program name with args. |
1854 |
|
set dummy strip; ac_word=$2 |
1855 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1856 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1857 |
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
1858 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1859 |
|
else |
1860 |
|
if test -n "$ac_ct_STRIP"; then |
1861 |
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
1862 |
|
else |
1863 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1864 |
|
for as_dir in $PATH |
1865 |
|
do |
1866 |
|
IFS=$as_save_IFS |
1867 |
|
test -z "$as_dir" && as_dir=. |
1868 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1869 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1870 |
|
ac_cv_prog_ac_ct_STRIP="strip" |
1871 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1872 |
|
break 2 |
1873 |
|
fi |
1874 |
|
done |
1875 |
|
done |
1876 |
|
|
1877 |
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
1878 |
|
fi |
1879 |
|
fi |
1880 |
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1881 |
|
if test -n "$ac_ct_STRIP"; then |
1882 |
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
1883 |
|
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
1884 |
|
else |
1885 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1886 |
|
echo "${ECHO_T}no" >&6 |
1887 |
|
fi |
1888 |
|
|
1889 |
|
STRIP=$ac_ct_STRIP |
1890 |
|
else |
1891 |
|
STRIP="$ac_cv_prog_STRIP" |
1892 |
|
fi |
1893 |
|
|
|
missing_dir=`cd $ac_aux_dir && pwd` |
|
|
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 |
|
|
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
|
|
ACLOCAL=aclocal-${am__api_version} |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working autoconf" >&5 |
|
|
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOCONF=autoconf |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOCONF="$missing_dir/missing autoconf" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 |
|
|
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOMAKE=automake-${am__api_version} |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOMAKE="$missing_dir/missing automake-${am__api_version}" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working autoheader" >&5 |
|
|
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOHEADER=autoheader |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOHEADER="$missing_dir/missing autoheader" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
|
|
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
|
|
MAKEINFO=makeinfo |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
MAKEINFO="$missing_dir/missing makeinfo" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
1894 |
fi |
fi |
1895 |
|
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
1896 |
|
|
1897 |
|
# We need awk for the "check" target. The system "awk" is bad on |
1898 |
|
# some platforms. |
1899 |
|
|
1900 |
|
|
1901 |
|
|
1902 |
|
|
1903 |
ac_config_headers="$ac_config_headers config.h" |
ac_config_headers="$ac_config_headers config.h" |
1904 |
|
|
|
ac_config_commands="$ac_config_commands default-1" |
|
1905 |
|
|
1906 |
|
|
1907 |
|
|
2890 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2891 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2892 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2893 |
|
DEPDIR="${am__leading_dot}deps" |
2894 |
|
|
2895 |
|
ac_config_commands="$ac_config_commands depfiles" |
2896 |
|
|
2897 |
|
|
2898 |
|
am_make=${MAKE-make} |
2899 |
|
cat > confinc << 'END' |
2900 |
|
am__doit: |
2901 |
|
@echo done |
2902 |
|
.PHONY: am__doit |
2903 |
|
END |
2904 |
|
# If we don't find an include directive, just comment out the code. |
2905 |
|
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2906 |
|
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
2907 |
|
am__include="#" |
2908 |
|
am__quote= |
2909 |
|
_am_result=none |
2910 |
|
# First try GNU make style include. |
2911 |
|
echo "include confinc" > confmf |
2912 |
|
# We grep out `Entering directory' and `Leaving directory' |
2913 |
|
# messages which can occur if `w' ends up in MAKEFLAGS. |
2914 |
|
# In particular we don't look at `^make:' because GNU make might |
2915 |
|
# be invoked under some other name (usually "gmake"), in which |
2916 |
|
# case it prints its new name instead of `make'. |
2917 |
|
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2918 |
|
am__include=include |
2919 |
|
am__quote= |
2920 |
|
_am_result=GNU |
2921 |
|
fi |
2922 |
|
# Now try BSD make style include. |
2923 |
|
if test "$am__include" = "#"; then |
2924 |
|
echo '.include "confinc"' > confmf |
2925 |
|
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2926 |
|
am__include=.include |
2927 |
|
am__quote="\"" |
2928 |
|
_am_result=BSD |
2929 |
|
fi |
2930 |
|
fi |
2931 |
|
|
2932 |
|
|
2933 |
|
echo "$as_me:$LINENO: result: $_am_result" >&5 |
2934 |
|
echo "${ECHO_T}$_am_result" >&6 |
2935 |
|
rm -f confinc confmf |
2936 |
|
|
2937 |
|
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
2938 |
|
if test "${enable_dependency_tracking+set}" = set; then |
2939 |
|
enableval="$enable_dependency_tracking" |
2940 |
|
|
2941 |
|
fi; |
2942 |
|
if test "x$enable_dependency_tracking" != xno; then |
2943 |
|
am_depcomp="$ac_aux_dir/depcomp" |
2944 |
|
AMDEPBACKSLASH='\' |
2945 |
|
fi |
2946 |
|
|
2947 |
|
|
2948 |
|
if test "x$enable_dependency_tracking" != xno; then |
2949 |
|
AMDEP_TRUE= |
2950 |
|
AMDEP_FALSE='#' |
2951 |
|
else |
2952 |
|
AMDEP_TRUE='#' |
2953 |
|
AMDEP_FALSE= |
2954 |
|
fi |
2955 |
|
|
2956 |
|
|
2957 |
|
|
2958 |
|
|
2959 |
|
depcc="$CC" am_compiler_list= |
2960 |
|
|
2961 |
|
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
2962 |
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
2963 |
|
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
2964 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2965 |
|
else |
2966 |
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2967 |
|
# We make a subdir and do the tests there. Otherwise we can end up |
2968 |
|
# making bogus files that we don't know about and never remove. For |
2969 |
|
# instance it was reported that on HP-UX the gcc test will end up |
2970 |
|
# making a dummy file named `D' -- because `-MD' means `put the output |
2971 |
|
# in D'. |
2972 |
|
mkdir conftest.dir |
2973 |
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
2974 |
|
# using a relative directory. |
2975 |
|
cp "$am_depcomp" conftest.dir |
2976 |
|
cd conftest.dir |
2977 |
|
# We will build objects and dependencies in a subdirectory because |
2978 |
|
# it helps to detect inapplicable dependency modes. For instance |
2979 |
|
# both Tru64's cc and ICC support -MD to output dependencies as a |
2980 |
|
# side effect of compilation, but ICC will put the dependencies in |
2981 |
|
# the current directory while Tru64 will put them in the object |
2982 |
|
# directory. |
2983 |
|
mkdir sub |
2984 |
|
|
2985 |
|
am_cv_CC_dependencies_compiler_type=none |
2986 |
|
if test "$am_compiler_list" = ""; then |
2987 |
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
2988 |
|
fi |
2989 |
|
for depmode in $am_compiler_list; do |
2990 |
|
# Setup a source with many dependencies, because some compilers |
2991 |
|
# like to wrap large dependency lists on column 80 (with \), and |
2992 |
|
# we should not choose a depcomp mode which is confused by this. |
2993 |
|
# |
2994 |
|
# We need to recreate these files for each test, as the compiler may |
2995 |
|
# overwrite some of them when testing with obscure command lines. |
2996 |
|
# This happens at least with the AIX C compiler. |
2997 |
|
: > sub/conftest.c |
2998 |
|
for i in 1 2 3 4 5 6; do |
2999 |
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3000 |
|
: > sub/conftst$i.h |
3001 |
|
done |
3002 |
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3003 |
|
|
3004 |
|
case $depmode in |
3005 |
|
nosideeffect) |
3006 |
|
# after this tag, mechanisms are not by side-effect, so they'll |
3007 |
|
# only be used when explicitly requested |
3008 |
|
if test "x$enable_dependency_tracking" = xyes; then |
3009 |
|
continue |
3010 |
|
else |
3011 |
|
break |
3012 |
|
fi |
3013 |
|
;; |
3014 |
|
none) break ;; |
3015 |
|
esac |
3016 |
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
3017 |
|
# mode. It turns out that the SunPro C++ compiler does not properly |
3018 |
|
# handle `-M -o', and we need to detect this. |
3019 |
|
if depmode=$depmode \ |
3020 |
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3021 |
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3022 |
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3023 |
|
>/dev/null 2>conftest.err && |
3024 |
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3025 |
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3026 |
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3027 |
|
# icc doesn't choke on unknown options, it will just issue warnings |
3028 |
|
# (even with -Werror). So we grep stderr for any message |
3029 |
|
# that says an option was ignored. |
3030 |
|
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
3031 |
|
am_cv_CC_dependencies_compiler_type=$depmode |
3032 |
|
break |
3033 |
|
fi |
3034 |
|
fi |
3035 |
|
done |
3036 |
|
|
3037 |
|
cd .. |
3038 |
|
rm -rf conftest.dir |
3039 |
|
else |
3040 |
|
am_cv_CC_dependencies_compiler_type=none |
3041 |
|
fi |
3042 |
|
|
3043 |
|
fi |
3044 |
|
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3045 |
|
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
3046 |
|
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3047 |
|
|
3048 |
|
|
3049 |
|
|
3050 |
|
if |
3051 |
|
test "x$enable_dependency_tracking" != xno \ |
3052 |
|
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3053 |
|
am__fastdepCC_TRUE= |
3054 |
|
am__fastdepCC_FALSE='#' |
3055 |
|
else |
3056 |
|
am__fastdepCC_TRUE='#' |
3057 |
|
am__fastdepCC_FALSE= |
3058 |
|
fi |
3059 |
|
|
3060 |
|
|
3061 |
|
|
3062 |
ac_ext=f |
ac_ext=f |
3151 |
|
|
3152 |
|
|
3153 |
# Provide some information about the compiler. |
# Provide some information about the compiler. |
3154 |
echo "$as_me:2871:" \ |
echo "$as_me:3154:" \ |
3155 |
"checking for Fortran 77 compiler version" >&5 |
"checking for Fortran 77 compiler version" >&5 |
3156 |
ac_compiler=`set X $ac_compile; echo $2` |
ac_compiler=`set X $ac_compile; echo $2` |
3157 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
3348 |
# flags. |
# flags. |
3349 |
ac_save_FFLAGS=$FFLAGS |
ac_save_FFLAGS=$FFLAGS |
3350 |
FFLAGS="$FFLAGS $ac_verb" |
FFLAGS="$FFLAGS $ac_verb" |
3351 |
(eval echo $as_me:3068: \"$ac_link\") >&5 |
(eval echo $as_me:3351: \"$ac_link\") >&5 |
3352 |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3353 |
echo "$ac_f77_v_output" >&5 |
echo "$ac_f77_v_output" >&5 |
3354 |
FFLAGS=$ac_save_FFLAGS |
FFLAGS=$ac_save_FFLAGS |
3426 |
# flags. |
# flags. |
3427 |
ac_save_FFLAGS=$FFLAGS |
ac_save_FFLAGS=$FFLAGS |
3428 |
FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
FFLAGS="$FFLAGS $ac_cv_prog_f77_v" |
3429 |
(eval echo $as_me:3146: \"$ac_link\") >&5 |
(eval echo $as_me:3429: \"$ac_link\") >&5 |
3430 |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` |
3431 |
echo "$ac_f77_v_output" >&5 |
echo "$ac_f77_v_output" >&5 |
3432 |
FFLAGS=$ac_save_FFLAGS |
FFLAGS=$ac_save_FFLAGS |
3955 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3956 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3957 |
|
|
3958 |
|
depcc="$CXX" am_compiler_list= |
3959 |
|
|
3960 |
|
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3961 |
|
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
3962 |
|
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
3963 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3964 |
|
else |
3965 |
|
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3966 |
|
# We make a subdir and do the tests there. Otherwise we can end up |
3967 |
|
# making bogus files that we don't know about and never remove. For |
3968 |
|
# instance it was reported that on HP-UX the gcc test will end up |
3969 |
|
# making a dummy file named `D' -- because `-MD' means `put the output |
3970 |
|
# in D'. |
3971 |
|
mkdir conftest.dir |
3972 |
|
# Copy depcomp to subdir because otherwise we won't find it if we're |
3973 |
|
# using a relative directory. |
3974 |
|
cp "$am_depcomp" conftest.dir |
3975 |
|
cd conftest.dir |
3976 |
|
# We will build objects and dependencies in a subdirectory because |
3977 |
|
# it helps to detect inapplicable dependency modes. For instance |
3978 |
|
# both Tru64's cc and ICC support -MD to output dependencies as a |
3979 |
|
# side effect of compilation, but ICC will put the dependencies in |
3980 |
|
# the current directory while Tru64 will put them in the object |
3981 |
|
# directory. |
3982 |
|
mkdir sub |
3983 |
|
|
3984 |
|
am_cv_CXX_dependencies_compiler_type=none |
3985 |
|
if test "$am_compiler_list" = ""; then |
3986 |
|
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3987 |
|
fi |
3988 |
|
for depmode in $am_compiler_list; do |
3989 |
|
# Setup a source with many dependencies, because some compilers |
3990 |
|
# like to wrap large dependency lists on column 80 (with \), and |
3991 |
|
# we should not choose a depcomp mode which is confused by this. |
3992 |
|
# |
3993 |
|
# We need to recreate these files for each test, as the compiler may |
3994 |
|
# overwrite some of them when testing with obscure command lines. |
3995 |
|
# This happens at least with the AIX C compiler. |
3996 |
|
: > sub/conftest.c |
3997 |
|
for i in 1 2 3 4 5 6; do |
3998 |
|
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3999 |
|
: > sub/conftst$i.h |
4000 |
|
done |
4001 |
|
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4002 |
|
|
4003 |
|
case $depmode in |
4004 |
|
nosideeffect) |
4005 |
|
# after this tag, mechanisms are not by side-effect, so they'll |
4006 |
|
# only be used when explicitly requested |
4007 |
|
if test "x$enable_dependency_tracking" = xyes; then |
4008 |
|
continue |
4009 |
|
else |
4010 |
|
break |
4011 |
|
fi |
4012 |
|
;; |
4013 |
|
none) break ;; |
4014 |
|
esac |
4015 |
|
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
4016 |
|
# mode. It turns out that the SunPro C++ compiler does not properly |
4017 |
|
# handle `-M -o', and we need to detect this. |
4018 |
|
if depmode=$depmode \ |
4019 |
|
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
4020 |
|
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4021 |
|
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
4022 |
|
>/dev/null 2>conftest.err && |
4023 |
|
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4024 |
|
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
4025 |
|
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4026 |
|
# icc doesn't choke on unknown options, it will just issue warnings |
4027 |
|
# (even with -Werror). So we grep stderr for any message |
4028 |
|
# that says an option was ignored. |
4029 |
|
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
4030 |
|
am_cv_CXX_dependencies_compiler_type=$depmode |
4031 |
|
break |
4032 |
|
fi |
4033 |
|
fi |
4034 |
|
done |
4035 |
|
|
4036 |
|
cd .. |
4037 |
|
rm -rf conftest.dir |
4038 |
|
else |
4039 |
|
am_cv_CXX_dependencies_compiler_type=none |
4040 |
|
fi |
4041 |
|
|
4042 |
|
fi |
4043 |
|
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4044 |
|
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
4045 |
|
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4046 |
|
|
4047 |
|
|
4048 |
|
|
4049 |
|
if |
4050 |
|
test "x$enable_dependency_tracking" != xno \ |
4051 |
|
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4052 |
|
am__fastdepCXX_TRUE= |
4053 |
|
am__fastdepCXX_FALSE='#' |
4054 |
|
else |
4055 |
|
am__fastdepCXX_TRUE='#' |
4056 |
|
am__fastdepCXX_FALSE= |
4057 |
|
fi |
4058 |
|
|
4059 |
|
|
4060 |
# Check whether --enable-shared or --disable-shared was given. |
# Check whether --enable-shared or --disable-shared was given. |
4061 |
if test "${enable_shared+set}" = set; then |
if test "${enable_shared+set}" = set; then |
4062 |
enableval="$enable_shared" |
enableval="$enable_shared" |
4063 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
4064 |
case $enableval in |
case $enableval in |
4065 |
yes) enable_shared=yes ;; |
yes) enable_shared=yes ;; |
4066 |
no) enable_shared=no ;; |
no) enable_shared=no ;; |
4067 |
*) |
*) |
4068 |
enable_shared=no |
enable_shared=no |
4069 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
4070 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4071 |
for pkg in $enableval; do |
for pkg in $enableval; do |
4072 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
4073 |
enable_shared=yes |
if test "X$pkg" = "X$p"; then |
4074 |
fi |
enable_shared=yes |
4075 |
done |
fi |
4076 |
IFS="$ac_save_ifs" |
done |
4077 |
;; |
IFS="$lt_save_ifs" |
4078 |
esac |
;; |
4079 |
|
esac |
4080 |
else |
else |
4081 |
enable_shared=yes |
enable_shared=yes |
4082 |
fi; |
fi; |
4083 |
|
|
4084 |
# Check whether --enable-static or --disable-static was given. |
# Check whether --enable-static or --disable-static was given. |
4085 |
if test "${enable_static+set}" = set; then |
if test "${enable_static+set}" = set; then |
4086 |
enableval="$enable_static" |
enableval="$enable_static" |
4087 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
4088 |
case $enableval in |
case $enableval in |
4089 |
yes) enable_static=yes ;; |
yes) enable_static=yes ;; |
4090 |
no) enable_static=no ;; |
no) enable_static=no ;; |
4091 |
*) |
*) |
4092 |
enable_static=no |
enable_static=no |
4093 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
4094 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4095 |
for pkg in $enableval; do |
for pkg in $enableval; do |
4096 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
4097 |
enable_static=yes |
if test "X$pkg" = "X$p"; then |
4098 |
fi |
enable_static=yes |
4099 |
done |
fi |
4100 |
IFS="$ac_save_ifs" |
done |
4101 |
;; |
IFS="$lt_save_ifs" |
4102 |
esac |
;; |
4103 |
|
esac |
4104 |
else |
else |
4105 |
enable_static=yes |
enable_static=yes |
4106 |
fi; |
fi; |
4107 |
|
|
4108 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
# Check whether --enable-fast-install or --disable-fast-install was given. |
4109 |
if test "${enable_fast_install+set}" = set; then |
if test "${enable_fast_install+set}" = set; then |
4110 |
enableval="$enable_fast_install" |
enableval="$enable_fast_install" |
4111 |
p=${PACKAGE-default} |
p=${PACKAGE-default} |
4112 |
case $enableval in |
case $enableval in |
4113 |
yes) enable_fast_install=yes ;; |
yes) enable_fast_install=yes ;; |
4114 |
no) enable_fast_install=no ;; |
no) enable_fast_install=no ;; |
4115 |
*) |
*) |
4116 |
enable_fast_install=no |
enable_fast_install=no |
4117 |
# Look at the argument we got. We use all the common list separators. |
# Look at the argument we got. We use all the common list separators. |
4118 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4119 |
for pkg in $enableval; do |
for pkg in $enableval; do |
4120 |
if test "X$pkg" = "X$p"; then |
IFS="$lt_save_ifs" |
4121 |
enable_fast_install=yes |
if test "X$pkg" = "X$p"; then |
4122 |
fi |
enable_fast_install=yes |
4123 |
done |
fi |
4124 |
IFS="$ac_save_ifs" |
done |
4125 |
;; |
IFS="$lt_save_ifs" |
4126 |
esac |
;; |
4127 |
|
esac |
4128 |
else |
else |
4129 |
enable_fast_install=yes |
enable_fast_install=yes |
4130 |
fi; |
fi; |
|
# Find the correct PATH separator. Usually this is `:', but |
|
|
# DJGPP uses `;' like DOS. |
|
|
if test "X${PATH_SEPARATOR+set}" != Xset; then |
|
|
UNAME=${UNAME-`uname 2>/dev/null`} |
|
|
case X$UNAME in |
|
|
*-DOS) lt_cv_sys_path_separator=';' ;; |
|
|
*) lt_cv_sys_path_separator=':' ;; |
|
|
esac |
|
|
PATH_SEPARATOR=$lt_cv_sys_path_separator |
|
|
fi |
|
4131 |
|
|
4132 |
|
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
4133 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
4134 |
if test "${with_gnu_ld+set}" = set; then |
if test "${lt_cv_path_SED+set}" = set; then |
4135 |
withval="$with_gnu_ld" |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4136 |
test "$withval" = no || with_gnu_ld=yes |
else |
4137 |
else |
# Loop through the user's path and test for sed and gsed. |
4138 |
with_gnu_ld=no |
# Then use that list of sed's as ones to test for truncation. |
4139 |
fi; |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4140 |
|
for as_dir in $PATH |
4141 |
|
do |
4142 |
|
IFS=$as_save_IFS |
4143 |
|
test -z "$as_dir" && as_dir=. |
4144 |
|
for lt_ac_prog in sed gsed; do |
4145 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
4146 |
|
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
4147 |
|
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
4148 |
|
fi |
4149 |
|
done |
4150 |
|
done |
4151 |
|
done |
4152 |
|
lt_ac_max=0 |
4153 |
|
lt_ac_count=0 |
4154 |
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
4155 |
|
# along with /bin/sed that truncates output. |
4156 |
|
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
4157 |
|
test ! -f $lt_ac_sed && break |
4158 |
|
cat /dev/null > conftest.in |
4159 |
|
lt_ac_count=0 |
4160 |
|
echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
4161 |
|
# Check for GNU sed and select it if it is found. |
4162 |
|
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
4163 |
|
lt_cv_path_SED=$lt_ac_sed |
4164 |
|
break |
4165 |
|
fi |
4166 |
|
while true; do |
4167 |
|
cat conftest.in conftest.in >conftest.tmp |
4168 |
|
mv conftest.tmp conftest.in |
4169 |
|
cp conftest.in conftest.nl |
4170 |
|
echo >>conftest.nl |
4171 |
|
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
4172 |
|
cmp -s conftest.out conftest.nl || break |
4173 |
|
# 10000 chars as input seems more than enough |
4174 |
|
test $lt_ac_count -gt 10 && break |
4175 |
|
lt_ac_count=`expr $lt_ac_count + 1` |
4176 |
|
if test $lt_ac_count -gt $lt_ac_max; then |
4177 |
|
lt_ac_max=$lt_ac_count |
4178 |
|
lt_cv_path_SED=$lt_ac_sed |
4179 |
|
fi |
4180 |
|
done |
4181 |
|
done |
4182 |
|
SED=$lt_cv_path_SED |
4183 |
|
|
4184 |
|
fi |
4185 |
|
|
4186 |
|
echo "$as_me:$LINENO: result: $SED" >&5 |
4187 |
|
echo "${ECHO_T}$SED" >&6 |
4188 |
|
|
4189 |
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
4190 |
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4191 |
|
if test "${ac_cv_prog_egrep+set}" = set; then |
4192 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4193 |
|
else |
4194 |
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4195 |
|
then ac_cv_prog_egrep='grep -E' |
4196 |
|
else ac_cv_prog_egrep='egrep' |
4197 |
|
fi |
4198 |
|
fi |
4199 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4200 |
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
4201 |
|
EGREP=$ac_cv_prog_egrep |
4202 |
|
|
4203 |
|
|
4204 |
|
|
4205 |
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
4206 |
|
if test "${with_gnu_ld+set}" = set; then |
4207 |
|
withval="$with_gnu_ld" |
4208 |
|
test "$withval" = no || with_gnu_ld=yes |
4209 |
|
else |
4210 |
|
with_gnu_ld=no |
4211 |
|
fi; |
4212 |
ac_prog=ld |
ac_prog=ld |
4213 |
if test "$GCC" = yes; then |
if test "$GCC" = yes; then |
4214 |
# Check if gcc -print-prog-name=ld gives a path. |
# Check if gcc -print-prog-name=ld gives a path. |
4215 |
echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4216 |
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
4217 |
case $host in |
case $host in |
4218 |
*-*-mingw*) |
*-*-mingw*) |
4219 |
# gcc leaves a trailing carriage return which upsets mingw |
# gcc leaves a trailing carriage return which upsets mingw |
4223 |
esac |
esac |
4224 |
case $ac_prog in |
case $ac_prog in |
4225 |
# Accept absolute paths. |
# Accept absolute paths. |
4226 |
[\\/]* | [A-Za-z]:[\\/]*) |
[\\/]* | ?:[\\/]*) |
4227 |
re_direlt='/[^/][^/]*/\.\./' |
re_direlt='/[^/][^/]*/\.\./' |
4228 |
# Canonicalize the path of ld |
# Canonicalize the pathname of ld |
4229 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4230 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4231 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4232 |
done |
done |
4233 |
test -z "$LD" && LD="$ac_prog" |
test -z "$LD" && LD="$ac_prog" |
4234 |
;; |
;; |
4252 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4253 |
else |
else |
4254 |
if test -z "$LD"; then |
if test -z "$LD"; then |
4255 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4256 |
for ac_dir in $PATH; do |
for ac_dir in $PATH; do |
4257 |
|
IFS="$lt_save_ifs" |
4258 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
4259 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4260 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
lt_cv_path_LD="$ac_dir/$ac_prog" |
4261 |
# Check to see if the program is GNU ld. I'd rather use --version, |
# Check to see if the program is GNU ld. I'd rather use --version, |
4262 |
# but apparently some GNU ld's only accept -v. |
# but apparently some GNU ld's only accept -v. |
4263 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
# Break only if it was the GNU/non-GNU ld that we prefer. |
4264 |
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4265 |
|
*GNU* | *'with BFD'*) |
4266 |
test "$with_gnu_ld" != no && break |
test "$with_gnu_ld" != no && break |
4267 |
else |
;; |
4268 |
|
*) |
4269 |
test "$with_gnu_ld" != yes && break |
test "$with_gnu_ld" != yes && break |
4270 |
fi |
;; |
4271 |
|
esac |
4272 |
fi |
fi |
4273 |
done |
done |
4274 |
IFS="$ac_save_ifs" |
IFS="$lt_save_ifs" |
4275 |
else |
else |
4276 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4277 |
fi |
fi |
4294 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4295 |
else |
else |
4296 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
4297 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
case `$LD -v 2>&1 </dev/null` in |
4298 |
|
*GNU* | *'with BFD'*) |
4299 |
lt_cv_prog_gnu_ld=yes |
lt_cv_prog_gnu_ld=yes |
4300 |
else |
;; |
4301 |
|
*) |
4302 |
lt_cv_prog_gnu_ld=no |
lt_cv_prog_gnu_ld=no |
4303 |
fi |
;; |
4304 |
|
esac |
4305 |
fi |
fi |
4306 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4307 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
4318 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4319 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
4320 |
reload_flag=$lt_cv_ld_reload_flag |
reload_flag=$lt_cv_ld_reload_flag |
4321 |
test -n "$reload_flag" && reload_flag=" $reload_flag" |
case $reload_flag in |
4322 |
|
"" | " "*) ;; |
4323 |
|
*) reload_flag=" $reload_flag" ;; |
4324 |
|
esac |
4325 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4326 |
|
|
4327 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4328 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
4333 |
# Let the user override the test. |
# Let the user override the test. |
4334 |
lt_cv_path_NM="$NM" |
lt_cv_path_NM="$NM" |
4335 |
else |
else |
4336 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4337 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
4338 |
|
IFS="$lt_save_ifs" |
4339 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
4340 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
4341 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4342 |
# Check to see if the nm accepts a BSD-compat flag. |
# Check to see if the nm accepts a BSD-compat flag. |
4343 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4344 |
# nm: unknown option "B" ignored |
# nm: unknown option "B" ignored |
4345 |
# Tru64's nm complains that /dev/null is an invalid object file |
# Tru64's nm complains that /dev/null is an invalid object file |
4346 |
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4347 |
|
*/dev/null* | *'Invalid file or object type'*) |
4348 |
lt_cv_path_NM="$tmp_nm -B" |
lt_cv_path_NM="$tmp_nm -B" |
4349 |
break |
break |
4350 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
;; |
4351 |
lt_cv_path_NM="$tmp_nm -p" |
*) |
4352 |
break |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4353 |
else |
*/dev/null*) |
4354 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
lt_cv_path_NM="$tmp_nm -p" |
4355 |
continue # so that we can try to find one that supports BSD flags |
break |
4356 |
fi |
;; |
4357 |
|
*) |
4358 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4359 |
|
continue # so that we can try to find one that supports BSD flags |
4360 |
|
;; |
4361 |
|
esac |
4362 |
|
esac |
4363 |
fi |
fi |
4364 |
done |
done |
4365 |
IFS="$ac_save_ifs" |
IFS="$lt_save_ifs" |
4366 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4367 |
fi |
fi |
4368 |
fi |
fi |
4369 |
|
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4370 |
|
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
4371 |
NM="$lt_cv_path_NM" |
NM="$lt_cv_path_NM" |
|
echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
echo "${ECHO_T}$NM" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
|
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
|
|
if test "${lt_cv_path_SED+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
# Loop through the user's path and test for sed and gsed. |
|
|
# Then use that list of sed's as ones to test for truncation. |
|
|
as_executable_p="test -f" |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
for as_dir in $PATH |
|
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_prog in sed gsed; do |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
|
|
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" |
|
|
fi |
|
|
done |
|
|
done |
|
|
done |
|
|
|
|
|
# Create a temporary directory, and hook for its removal unless debugging. |
|
|
$debug || |
|
|
{ |
|
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
|
|
} |
|
|
|
|
|
# Create a (secure) tmp directory for tmp files. |
|
|
: ${TMPDIR=/tmp} |
|
|
{ |
|
|
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && |
|
|
test -n "$tmp" && test -d "$tmp" |
|
|
} || |
|
|
{ |
|
|
tmp=$TMPDIR/sed$$-$RANDOM |
|
|
(umask 077 && mkdir $tmp) |
|
|
} || |
|
|
{ |
|
|
echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
|
|
{ (exit 1); exit 1; } |
|
|
} |
|
|
_max=0 |
|
|
_count=0 |
|
|
# Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
|
# along with /bin/sed that truncates output. |
|
|
for _sed in $_sed_list /usr/xpg4/bin/sed; do |
|
|
test ! -f ${_sed} && break |
|
|
cat /dev/null > "$tmp/sed.in" |
|
|
_count=0 |
|
|
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" |
|
|
# Check for GNU sed and select it if it is found. |
|
|
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then |
|
|
lt_cv_path_SED=${_sed} |
|
|
break |
|
|
fi |
|
|
while true; do |
|
|
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" |
|
|
mv "$tmp/sed.tmp" "$tmp/sed.in" |
|
|
cp "$tmp/sed.in" "$tmp/sed.nl" |
|
|
echo >>"$tmp/sed.nl" |
|
|
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break |
|
|
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break |
|
|
# 40000 chars as input seems more than enough |
|
|
test $_count -gt 10 && break |
|
|
_count=`expr $_count + 1` |
|
|
if test $_count -gt $_max; then |
|
|
_max=$_count |
|
|
lt_cv_path_SED=$_sed |
|
|
fi |
|
|
done |
|
|
done |
|
|
rm -rf "$tmp" |
|
|
|
|
|
fi |
|
|
|
|
|
if test "X$SED" != "X"; then |
|
|
lt_cv_path_SED=$SED |
|
|
else |
|
|
SED=$lt_cv_path_SED |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
echo "${ECHO_T}$SED" >&6 |
|
4372 |
|
|
4373 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4374 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
4396 |
# 'pass_all' -- all dependencies passed with no checks. |
# 'pass_all' -- all dependencies passed with no checks. |
4397 |
# 'test_compile' -- check by making test program. |
# 'test_compile' -- check by making test program. |
4398 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
# 'file_magic [[regex]]' -- check by looking for files in library path |
4399 |
# which responds to the $file_magic_cmd with a given egrep regex. |
# which responds to the $file_magic_cmd with a given extended regex. |
4400 |
# If you have `file' or equivalent on your system and you're not sure |
# If you have `file' or equivalent on your system and you're not sure |
4401 |
# whether `pass_all' will *always* work, you probably want this one. |
# whether `pass_all' will *always* work, you probably want this one. |
4402 |
|
|
4415 |
lt_cv_file_magic_test_file=/shlib/libc.so |
lt_cv_file_magic_test_file=/shlib/libc.so |
4416 |
;; |
;; |
4417 |
|
|
4418 |
cygwin* | mingw* | pw32*) |
cygwin*) |
4419 |
|
# func_win32_libid is a shell function defined in ltmain.sh |
4420 |
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4421 |
|
lt_cv_file_magic_cmd='func_win32_libid' |
4422 |
|
;; |
4423 |
|
|
4424 |
|
mingw* | pw32*) |
4425 |
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
4426 |
|
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4427 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4428 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
4429 |
;; |
;; |
4430 |
|
|
4431 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
4432 |
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
lt_cv_deplibs_check_method=pass_all |
|
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
case "$host_os" in |
|
|
rhapsody* | darwin1.[012]) |
|
|
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
;; |
|
|
*) # Darwin 1.3 on |
|
|
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' |
|
|
;; |
|
|
esac |
|
4433 |
;; |
;; |
4434 |
|
|
4435 |
freebsd*) |
freebsd* | kfreebsd*-gnu) |
4436 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4437 |
case $host_cpu in |
case $host_cpu in |
4438 |
i*86 ) |
i*86 ) |
4452 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4453 |
;; |
;; |
4454 |
|
|
4455 |
hpux10.20*|hpux11*) |
hpux10.20* | hpux11*) |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
4456 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
4457 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
case "$host_cpu" in |
4458 |
;; |
ia64*) |
4459 |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4460 |
irix5* | irix6* | nonstopux*) |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4461 |
case $host_os in |
;; |
4462 |
irix5* | nonstopux*) |
hppa*64*) |
4463 |
# this will be overridden with pass_all, but let us keep it just in case |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
4464 |
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4465 |
;; |
;; |
4466 |
*) |
*) |
4467 |
case $LD in |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4468 |
*-32|*"-32 ") libmagic=32-bit;; |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
*-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" |
|
4469 |
;; |
;; |
4470 |
esac |
esac |
4471 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
;; |
4472 |
|
|
4473 |
|
irix5* | irix6* | nonstopux*) |
4474 |
|
case $LD in |
4475 |
|
*-32|*"-32 ") libmagic=32-bit;; |
4476 |
|
*-n32|*"-n32 ") libmagic=N32;; |
4477 |
|
*-64|*"-64 ") libmagic=64-bit;; |
4478 |
|
*) libmagic=never-match;; |
4479 |
|
esac |
4480 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4481 |
;; |
;; |
4482 |
|
|
4483 |
# This must be Linux ELF. |
# This must be Linux ELF. |
4484 |
linux-gnu*) |
linux*) |
4485 |
case $host_cpu in |
case $host_cpu in |
4486 |
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*) |
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*) |
4487 |
lt_cv_deplibs_check_method=pass_all ;; |
lt_cv_deplibs_check_method=pass_all ;; |
4488 |
*) |
*) |
4489 |
# glibc up to 2.1.1 does not perform some relocations on ARM |
# glibc up to 2.1.1 does not perform some relocations on ARM |
4490 |
|
# this will be overridden with pass_all, but let us keep it just in case |
4491 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
4492 |
esac |
esac |
4493 |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
4494 |
|
lt_cv_deplibs_check_method=pass_all |
4495 |
;; |
;; |
4496 |
|
|
4497 |
netbsd*) |
netbsd*) |
4498 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4499 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4500 |
else |
else |
4501 |
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4502 |
fi |
fi |
4503 |
;; |
;; |
4504 |
|
|
4508 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4509 |
;; |
;; |
4510 |
|
|
4511 |
|
nto-qnx*) |
4512 |
|
lt_cv_deplibs_check_method=unknown |
4513 |
|
;; |
4514 |
|
|
4515 |
openbsd*) |
openbsd*) |
4516 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
4517 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4523 |
;; |
;; |
4524 |
|
|
4525 |
osf3* | osf4* | osf5*) |
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 |
|
4526 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4527 |
;; |
;; |
4528 |
|
|
4532 |
|
|
4533 |
solaris*) |
solaris*) |
4534 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
|
lt_cv_file_magic_test_file=/lib/libc.so |
|
|
;; |
|
|
|
|
|
sysv5uw[78]* | sysv4*uw2*) |
|
|
lt_cv_deplibs_check_method=pass_all |
|
4535 |
;; |
;; |
4536 |
|
|
4537 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
4557 |
;; |
;; |
4558 |
esac |
esac |
4559 |
;; |
;; |
4560 |
|
|
4561 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
4562 |
|
lt_cv_deplibs_check_method=pass_all |
4563 |
|
;; |
4564 |
esac |
esac |
4565 |
|
|
4566 |
fi |
fi |
4568 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
4569 |
file_magic_cmd=$lt_cv_file_magic_cmd |
file_magic_cmd=$lt_cv_file_magic_cmd |
4570 |
deplibs_check_method=$lt_cv_deplibs_check_method |
deplibs_check_method=$lt_cv_deplibs_check_method |
4571 |
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4572 |
|
|
4573 |
|
|
4574 |
|
|
4575 |
|
|
4576 |
|
# If no C compiler was specified, use CC. |
4577 |
|
LTCC=${LTCC-"$CC"} |
4578 |
|
|
4579 |
|
# Allow CC to be a program name with arguments. |
4580 |
|
compiler=$CC |
4581 |
|
|
4582 |
|
|
4583 |
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4584 |
|
if test "${enable_libtool_lock+set}" = set; then |
4585 |
|
enableval="$enable_libtool_lock" |
4586 |
|
|
4587 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
fi; |
4588 |
echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
|
|
|
# These are sane defaults that work on at least a few old systems. |
|
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
|
|
|
# Character class describing NM global symbol codes. |
|
|
symcode='[BCDEGRST]' |
|
|
|
|
|
# Regexp to match symbols that can be accessed directly from C. |
|
|
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 |
|
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
|
|
|
# Transform an extracted symbol line into symbol name and symbol address |
|
|
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
|
|
|
# Define system-specific variables. |
|
|
case $host_os in |
|
|
aix*) |
|
|
symcode='[BCDT]' |
|
|
;; |
|
|
cygwin* | mingw* | pw32*) |
|
|
symcode='[ABCDGISTW]' |
|
|
;; |
|
|
hpux*) # Its linker distinguishes data from code symbols |
|
|
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
;; |
|
|
irix* | nonstopux*) |
|
|
symcode='[BCDEGRST]' |
|
|
;; |
|
|
osf*) |
|
|
symcode='[BCDEGQRST]' |
|
|
;; |
|
|
solaris* | sysv5*) |
|
|
symcode='[BDT]' |
|
|
;; |
|
|
sysv4) |
|
|
symcode='[DFNSTU]' |
|
|
;; |
|
|
esac |
|
4589 |
|
|
4590 |
# Handle CRLF in mingw tool chain |
# Some flags need to be propagated to the compiler or linker for good |
4591 |
opt_cr= |
# libtool support. |
4592 |
case $host_os in |
case $host in |
4593 |
mingw*) |
ia64-*-hpux*) |
4594 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
# Find out which ABI we are using. |
4595 |
|
echo 'int i;' > conftest.$ac_ext |
4596 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4597 |
|
(eval $ac_compile) 2>&5 |
4598 |
|
ac_status=$? |
4599 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4600 |
|
(exit $ac_status); }; then |
4601 |
|
case `/usr/bin/file conftest.$ac_objext` in |
4602 |
|
*ELF-32*) |
4603 |
|
HPUX_IA64_MODE="32" |
4604 |
|
;; |
4605 |
|
*ELF-64*) |
4606 |
|
HPUX_IA64_MODE="64" |
4607 |
|
;; |
4608 |
|
esac |
4609 |
|
fi |
4610 |
|
rm -rf conftest* |
4611 |
;; |
;; |
4612 |
esac |
*-*-irix6*) |
4613 |
|
# Find out which ABI we are using. |
4614 |
# If we're using GNU nm, then use its standard symbol codes. |
echo '#line 4614 "configure"' > conftest.$ac_ext |
|
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
symcode='[ABCDGISTW]' |
|
|
fi |
|
|
|
|
|
# Try without a prefix undercore, then with it. |
|
|
for ac_symprfx in "" "_"; do |
|
|
|
|
|
# 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'" |
|
|
|
|
|
# Check to see that the pipe works correctly. |
|
|
pipe_works=no |
|
|
rm -f conftest* |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#ifdef __cplusplus |
|
|
extern "C" { |
|
|
#endif |
|
|
char nm_test_var; |
|
|
void nm_test_func(){} |
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
|
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
EOF |
|
|
|
|
4615 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4616 |
(eval $ac_compile) 2>&5 |
(eval $ac_compile) 2>&5 |
4617 |
ac_status=$? |
ac_status=$? |
4618 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4619 |
(exit $ac_status); }; then |
(exit $ac_status); }; then |
4620 |
# Now try to grab the symbols. |
if test "$lt_cv_prog_gnu_ld" = yes; then |
4621 |
nlist=conftest.nm |
case `/usr/bin/file conftest.$ac_objext` in |
4622 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
*32-bit*) |
4623 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
LD="${LD-ld} -melf32bsmip" |
4624 |
|
;; |
4625 |
|
*N32*) |
4626 |
|
LD="${LD-ld} -melf32bmipn32" |
4627 |
|
;; |
4628 |
|
*64-bit*) |
4629 |
|
LD="${LD-ld} -melf64bmip" |
4630 |
|
;; |
4631 |
|
esac |
4632 |
|
else |
4633 |
|
case `/usr/bin/file conftest.$ac_objext` in |
4634 |
|
*32-bit*) |
4635 |
|
LD="${LD-ld} -32" |
4636 |
|
;; |
4637 |
|
*N32*) |
4638 |
|
LD="${LD-ld} -n32" |
4639 |
|
;; |
4640 |
|
*64-bit*) |
4641 |
|
LD="${LD-ld} -64" |
4642 |
|
;; |
4643 |
|
esac |
4644 |
|
fi |
4645 |
|
fi |
4646 |
|
rm -rf conftest* |
4647 |
|
;; |
4648 |
|
|
4649 |
|
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4650 |
|
# Find out which ABI we are using. |
4651 |
|
echo 'int i;' > conftest.$ac_ext |
4652 |
|
lt_cv_cc_lib64_suffix=no |
4653 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4654 |
|
(eval $ac_compile) 2>&5 |
4655 |
ac_status=$? |
ac_status=$? |
4656 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4657 |
(exit $ac_status); } && test -s "$nlist"; then |
(exit $ac_status); }; then |
4658 |
# Try sorting and uniquifying the output. |
case "`/usr/bin/file conftest.$ac_objext`" in |
4659 |
if sort "$nlist" | uniq > "$nlist"T; then |
*32-bit*) |
4660 |
mv -f "$nlist"T "$nlist" |
case $host in |
4661 |
else |
x86_64-*linux*) |
4662 |
rm -f "$nlist"T |
LD="${LD-ld} -m elf_i386" |
4663 |
fi |
;; |
4664 |
|
ppc64-*linux*|powerpc64-*linux*) |
4665 |
# Make sure that we snagged all the symbols we need. |
LD="${LD-ld} -m elf32ppclinux" |
4666 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
;; |
4667 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
s390x-*linux*) |
4668 |
cat <<EOF > conftest.$ac_ext |
LD="${LD-ld} -m elf_s390" |
4669 |
#ifdef __cplusplus |
;; |
4670 |
extern "C" { |
sparc64-*linux*) |
4671 |
#endif |
LD="${LD-ld} -m elf32_sparc" |
4672 |
|
;; |
4673 |
|
esac |
4674 |
|
;; |
4675 |
|
*64-bit*) |
4676 |
|
case $host in |
4677 |
|
x86_64-*linux*) |
4678 |
|
LD="${LD-ld} -m elf_x86_64" |
4679 |
|
lt_cv_cc_lib64_suffix=yes |
4680 |
|
;; |
4681 |
|
ppc*-*linux*|powerpc*-*linux*) |
4682 |
|
LD="${LD-ld} -m elf64ppc" |
4683 |
|
lt_cv_cc_lib64_suffix=yes |
4684 |
|
;; |
4685 |
|
s390*-*linux*) |
4686 |
|
LD="${LD-ld} -m elf64_s390" |
4687 |
|
lt_cv_cc_lib64_suffix=yes |
4688 |
|
;; |
4689 |
|
sparc*-*linux*) |
4690 |
|
LD="${LD-ld} -m elf64_sparc" |
4691 |
|
lt_cv_cc_lib64_suffix=yes |
4692 |
|
;; |
4693 |
|
esac |
4694 |
|
;; |
4695 |
|
esac |
4696 |
|
fi |
4697 |
|
rm -rf conftest* |
4698 |
|
;; |
4699 |
|
|
4700 |
EOF |
*-*-sco3.2v5*) |
4701 |
# Now generate the symbol file. |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4702 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
SAVE_CFLAGS="$CFLAGS" |
4703 |
|
CFLAGS="$CFLAGS -belf" |
4704 |
|
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4705 |
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
4706 |
|
if test "${lt_cv_cc_needs_belf+set}" = set; then |
4707 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4708 |
|
else |
4709 |
|
ac_ext=c |
4710 |
|
ac_cpp='$CPP $CPPFLAGS' |
4711 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4712 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4713 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4714 |
|
|
4715 |
cat <<EOF >> conftest.$ac_ext |
cat >conftest.$ac_ext <<_ACEOF |
4716 |
#if defined (__STDC__) && __STDC__ |
/* confdefs.h. */ |
4717 |
# define lt_ptr void * |
_ACEOF |
4718 |
#else |
cat confdefs.h >>conftest.$ac_ext |
4719 |
# define lt_ptr char * |
cat >>conftest.$ac_ext <<_ACEOF |
4720 |
# define const |
/* end confdefs.h. */ |
|
#endif |
|
4721 |
|
|
4722 |
/* The mapping between symbol names and symbols. */ |
int |
4723 |
const struct { |
main () |
|
const char *name; |
|
|
lt_ptr address; |
|
|
} |
|
|
lt_preloaded_symbols[] = |
|
4724 |
{ |
{ |
|
EOF |
|
|
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
|
|
cat <<\EOF >> conftest.$ac_ext |
|
|
{0, (lt_ptr) 0} |
|
|
}; |
|
4725 |
|
|
4726 |
#ifdef __cplusplus |
; |
4727 |
|
return 0; |
4728 |
} |
} |
4729 |
#endif |
_ACEOF |
4730 |
EOF |
rm -f conftest.$ac_objext conftest$ac_exeext |
4731 |
# Now try linking the two files. |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4732 |
mv conftest.$ac_objext conftstm.$ac_objext |
(eval $ac_link) 2>conftest.er1 |
|
save_LIBS="$LIBS" |
|
|
save_CFLAGS="$CFLAGS" |
|
|
LIBS="conftstm.$ac_objext" |
|
|
CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
4733 |
ac_status=$? |
ac_status=$? |
4734 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4735 |
|
rm -f conftest.er1 |
4736 |
|
cat conftest.err >&5 |
4737 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4738 |
(exit $ac_status); } && test -s conftest$ac_exeext; then |
(exit $ac_status); } && |
4739 |
pipe_works=yes |
{ ac_try='test -z "$ac_c_werror_flag" |
4740 |
fi |
|| test ! -s conftest.err' |
4741 |
LIBS="$save_LIBS" |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4742 |
CFLAGS="$save_CFLAGS" |
(eval $ac_try) 2>&5 |
4743 |
else |
ac_status=$? |
4744 |
echo "cannot find nm_test_func in $nlist" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4745 |
fi |
(exit $ac_status); }; } && |
4746 |
else |
{ ac_try='test -s conftest$ac_exeext' |
4747 |
echo "cannot find nm_test_var in $nlist" >&5 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4748 |
fi |
(eval $ac_try) 2>&5 |
4749 |
else |
ac_status=$? |
4750 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4751 |
fi |
(exit $ac_status); }; }; then |
4752 |
else |
lt_cv_cc_needs_belf=yes |
4753 |
echo "$progname: failed program was:" >&5 |
else |
4754 |
cat conftest.$ac_ext >&5 |
echo "$as_me: failed program was:" >&5 |
4755 |
fi |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
rm -f conftest* conftst* |
|
|
|
|
|
# Do not use the global_symbol_pipe unless it works. |
|
|
if test "$pipe_works" = yes; then |
|
|
break |
|
|
else |
|
|
lt_cv_sys_global_symbol_pipe= |
|
|
fi |
|
|
done |
|
4756 |
|
|
4757 |
|
lt_cv_cc_needs_belf=no |
4758 |
fi |
fi |
4759 |
|
rm -f conftest.err conftest.$ac_objext \ |
4760 |
|
conftest$ac_exeext conftest.$ac_ext |
4761 |
|
ac_ext=c |
4762 |
|
ac_cpp='$CPP $CPPFLAGS' |
4763 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4764 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4765 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4766 |
|
|
|
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
global_symbol_to_cdecl= |
|
|
global_symbol_to_c_name_address= |
|
|
else |
|
|
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" |
|
|
fi |
|
|
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; |
|
|
then |
|
|
echo "$as_me:$LINENO: result: failed" >&5 |
|
|
echo "${ECHO_T}failed" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: ok" >&5 |
|
|
echo "${ECHO_T}ok" >&6 |
|
4767 |
fi |
fi |
4768 |
|
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4769 |
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
4770 |
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4771 |
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4772 |
|
CFLAGS="$SAVE_CFLAGS" |
4773 |
|
fi |
4774 |
|
;; |
4775 |
|
|
4776 |
|
esac |
4777 |
|
|
4778 |
|
need_locks="$enable_libtool_lock" |
4779 |
|
|
4780 |
|
|
4781 |
ac_ext=c |
ac_ext=c |
4782 |
ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
5013 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5014 |
|
|
5015 |
|
|
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
then ac_cv_prog_egrep='grep -E' |
|
|
else ac_cv_prog_egrep='egrep' |
|
|
fi |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
EGREP=$ac_cv_prog_egrep |
|
|
|
|
|
|
|
5016 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5017 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5018 |
if test "${ac_cv_header_stdc+set}" = set; then |
if test "${ac_cv_header_stdc+set}" = set; then |
5401 |
|
|
5402 |
done |
done |
5403 |
|
|
5404 |
|
ac_ext=cc |
5405 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
5406 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5407 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5408 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5409 |
# Only perform the check for file, if the check method requires it |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5410 |
case $deplibs_check_method in |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5411 |
file_magic*) |
if test -z "$CXXCPP"; then |
5412 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
5413 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5414 |
else |
else |
5415 |
case $MAGIC_CMD in |
# Double quotes because CXXCPP needs to be expanded |
5416 |
/*) |
for CXXCPP in "$CXX -E" "/lib/cpp" |
5417 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
do |
5418 |
;; |
ac_preproc_ok=false |
5419 |
?:/*) |
for ac_cxx_preproc_warn_flag in '' yes |
5420 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
do |
5421 |
;; |
# Use a header file that comes with gcc, so configuring glibc |
5422 |
*) |
# with a fresh cross-compiler works. |
5423 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5424 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
# <limits.h> exists even on freestanding compilers. |
5425 |
ac_dummy="/usr/bin:$PATH" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5426 |
for ac_dir in $ac_dummy; do |
# not just through cpp. "Syntax error" is here to catch this case. |
5427 |
test -z "$ac_dir" && ac_dir=. |
cat >conftest.$ac_ext <<_ACEOF |
5428 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
/* confdefs.h. */ |
5429 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
_ACEOF |
5430 |
if test -n "$file_magic_test_file"; then |
cat confdefs.h >>conftest.$ac_ext |
5431 |
case $deplibs_check_method in |
cat >>conftest.$ac_ext <<_ACEOF |
5432 |
"file_magic "*) |
/* end confdefs.h. */ |
5433 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
#ifdef __STDC__ |
5434 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
# include <limits.h> |
5435 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
#else |
5436 |
egrep "$file_magic_regex" > /dev/null; then |
# include <assert.h> |
5437 |
: |
#endif |
5438 |
else |
Syntax error |
5439 |
cat <<EOF 1>&2 |
_ACEOF |
5440 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5441 |
*** Warning: the command libtool uses to detect shared libraries, |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5442 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
ac_status=$? |
5443 |
*** The result is that libtool may fail to recognize shared libraries |
grep -v '^ *+' conftest.er1 >conftest.err |
5444 |
*** as such. This will affect the creation of libtool libraries that |
rm -f conftest.er1 |
5445 |
*** depend on shared libraries, but programs linked with such libtool |
cat conftest.err >&5 |
5446 |
*** libraries will work regardless of this problem. Nevertheless, you |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5447 |
*** may want to report the problem to your system manager and/or to |
(exit $ac_status); } >/dev/null; then |
5448 |
*** bug-libtool@gnu.org |
if test -s conftest.err; then |
5449 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5450 |
EOF |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5451 |
fi ;; |
else |
5452 |
esac |
ac_cpp_err= |
5453 |
fi |
fi |
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
|
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
if test -n "$MAGIC_CMD"; then |
|
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
5454 |
else |
else |
5455 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
5456 |
fi |
fi |
5457 |
|
if test -z "$ac_cpp_err"; then |
5458 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
: |
|
if test -n "$ac_tool_prefix"; then |
|
|
echo "$as_me:$LINENO: checking for file" >&5 |
|
|
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5459 |
else |
else |
5460 |
case $MAGIC_CMD in |
echo "$as_me: failed program was:" >&5 |
5461 |
/*) |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
;; |
|
|
?:/*) |
|
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
;; |
|
|
*) |
|
|
ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
ac_dummy="/usr/bin:$PATH" |
|
|
for ac_dir in $ac_dummy; do |
|
|
test -z "$ac_dir" && ac_dir=. |
|
|
if test -f $ac_dir/file; then |
|
|
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
if test -n "$file_magic_test_file"; then |
|
|
case $deplibs_check_method in |
|
|
"file_magic "*) |
|
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
egrep "$file_magic_regex" > /dev/null; then |
|
|
: |
|
|
else |
|
|
cat <<EOF 1>&2 |
|
|
|
|
|
*** Warning: the command libtool uses to detect shared libraries, |
|
|
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
*** The result is that libtool may fail to recognize shared libraries |
|
|
*** as such. This will affect the creation of libtool libraries that |
|
|
*** depend on shared libraries, but programs linked with such libtool |
|
|
*** libraries will work regardless of this problem. Nevertheless, you |
|
|
*** may want to report the problem to your system manager and/or to |
|
|
*** bug-libtool@gnu.org |
|
|
|
|
|
EOF |
|
|
fi ;; |
|
|
esac |
|
|
fi |
|
|
break |
|
|
fi |
|
|
done |
|
|
IFS="$ac_save_ifs" |
|
|
MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
;; |
|
|
esac |
|
|
fi |
|
5462 |
|
|
5463 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
# Broken: fails on valid input. |
5464 |
if test -n "$MAGIC_CMD"; then |
continue |
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
5465 |
fi |
fi |
5466 |
|
rm -f conftest.err conftest.$ac_ext |
5467 |
|
|
5468 |
|
# OK, works on sane cases. Now check whether non-existent headers |
5469 |
|
# can be detected and how. |
5470 |
|
cat >conftest.$ac_ext <<_ACEOF |
5471 |
|
/* confdefs.h. */ |
5472 |
|
_ACEOF |
5473 |
|
cat confdefs.h >>conftest.$ac_ext |
5474 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5475 |
|
/* end confdefs.h. */ |
5476 |
|
#include <ac_nonexistent.h> |
5477 |
|
_ACEOF |
5478 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5479 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5480 |
|
ac_status=$? |
5481 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5482 |
|
rm -f conftest.er1 |
5483 |
|
cat conftest.err >&5 |
5484 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5485 |
|
(exit $ac_status); } >/dev/null; then |
5486 |
|
if test -s conftest.err; then |
5487 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5488 |
|
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5489 |
else |
else |
5490 |
MAGIC_CMD=: |
ac_cpp_err= |
|
fi |
|
|
fi |
|
|
|
|
5491 |
fi |
fi |
|
;; |
|
|
esac |
|
|
|
|
|
if test -n "$ac_tool_prefix"; then |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
5492 |
else |
else |
5493 |
if test -n "$RANLIB"; then |
ac_cpp_err=yes |
5494 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
fi |
5495 |
|
if test -z "$ac_cpp_err"; then |
5496 |
|
# Broken: success on invalid input. |
5497 |
|
continue |
5498 |
else |
else |
5499 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
echo "$as_me: failed program was:" >&5 |
5500 |
for as_dir in $PATH |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
5501 |
|
|
5502 |
|
# Passes both tests. |
5503 |
|
ac_preproc_ok=: |
5504 |
|
break |
5505 |
fi |
fi |
5506 |
fi |
rm -f conftest.err conftest.$ac_ext |
5507 |
RANLIB=$ac_cv_prog_RANLIB |
|
5508 |
if test -n "$RANLIB"; then |
done |
5509 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5510 |
echo "${ECHO_T}$RANLIB" >&6 |
rm -f conftest.err conftest.$ac_ext |
5511 |
else |
if $ac_preproc_ok; then |
5512 |
echo "$as_me:$LINENO: result: no" >&5 |
break |
|
echo "${ECHO_T}no" >&6 |
|
5513 |
fi |
fi |
5514 |
|
|
5515 |
|
done |
5516 |
|
ac_cv_prog_CXXCPP=$CXXCPP |
5517 |
|
|
5518 |
fi |
fi |
5519 |
if test -z "$ac_cv_prog_RANLIB"; then |
CXXCPP=$ac_cv_prog_CXXCPP |
|
ac_ct_RANLIB=$RANLIB |
|
|
# Extract the first word of "ranlib", so it can be a program name with args. |
|
|
set dummy ranlib; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
5520 |
else |
else |
5521 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_cv_prog_CXXCPP=$CXXCPP |
5522 |
for as_dir in $PATH |
fi |
5523 |
|
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5524 |
|
echo "${ECHO_T}$CXXCPP" >&6 |
5525 |
|
ac_preproc_ok=false |
5526 |
|
for ac_cxx_preproc_warn_flag in '' yes |
5527 |
do |
do |
5528 |
IFS=$as_save_IFS |
# Use a header file that comes with gcc, so configuring glibc |
5529 |
test -z "$as_dir" && as_dir=. |
# with a fresh cross-compiler works. |
5530 |
for ac_exec_ext in '' $ac_executable_extensions; do |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5531 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
# <limits.h> exists even on freestanding compilers. |
5532 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5533 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
# not just through cpp. "Syntax error" is here to catch this case. |
5534 |
break 2 |
cat >conftest.$ac_ext <<_ACEOF |
5535 |
|
/* confdefs.h. */ |
5536 |
|
_ACEOF |
5537 |
|
cat confdefs.h >>conftest.$ac_ext |
5538 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5539 |
|
/* end confdefs.h. */ |
5540 |
|
#ifdef __STDC__ |
5541 |
|
# include <limits.h> |
5542 |
|
#else |
5543 |
|
# include <assert.h> |
5544 |
|
#endif |
5545 |
|
Syntax error |
5546 |
|
_ACEOF |
5547 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5548 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5549 |
|
ac_status=$? |
5550 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5551 |
|
rm -f conftest.er1 |
5552 |
|
cat conftest.err >&5 |
5553 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5554 |
|
(exit $ac_status); } >/dev/null; then |
5555 |
|
if test -s conftest.err; then |
5556 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5557 |
|
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5558 |
|
else |
5559 |
|
ac_cpp_err= |
5560 |
fi |
fi |
|
done |
|
|
done |
|
|
|
|
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
fi |
|
|
fi |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
if test -n "$ac_ct_RANLIB"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
5561 |
else |
else |
5562 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
5563 |
fi |
fi |
5564 |
|
if test -z "$ac_cpp_err"; then |
5565 |
RANLIB=$ac_ct_RANLIB |
: |
5566 |
else |
else |
5567 |
RANLIB="$ac_cv_prog_RANLIB" |
echo "$as_me: failed program was:" >&5 |
5568 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5569 |
|
|
5570 |
|
# Broken: fails on valid input. |
5571 |
|
continue |
5572 |
fi |
fi |
5573 |
|
rm -f conftest.err conftest.$ac_ext |
5574 |
|
|
5575 |
if test -n "$ac_tool_prefix"; then |
# OK, works on sane cases. Now check whether non-existent headers |
5576 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
# can be detected and how. |
5577 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
cat >conftest.$ac_ext <<_ACEOF |
5578 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
/* confdefs.h. */ |
5579 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
_ACEOF |
5580 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
cat confdefs.h >>conftest.$ac_ext |
5581 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
cat >>conftest.$ac_ext <<_ACEOF |
5582 |
else |
/* end confdefs.h. */ |
5583 |
if test -n "$STRIP"; then |
#include <ac_nonexistent.h> |
5584 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
_ACEOF |
5585 |
else |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5586 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5587 |
for as_dir in $PATH |
ac_status=$? |
5588 |
do |
grep -v '^ *+' conftest.er1 >conftest.err |
5589 |
IFS=$as_save_IFS |
rm -f conftest.er1 |
5590 |
test -z "$as_dir" && as_dir=. |
cat conftest.err >&5 |
5591 |
for ac_exec_ext in '' $ac_executable_extensions; do |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5592 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
(exit $ac_status); } >/dev/null; then |
5593 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
if test -s conftest.err; then |
5594 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5595 |
break 2 |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5596 |
|
else |
5597 |
|
ac_cpp_err= |
5598 |
fi |
fi |
|
done |
|
|
done |
|
|
|
|
|
fi |
|
|
fi |
|
|
STRIP=$ac_cv_prog_STRIP |
|
|
if test -n "$STRIP"; then |
|
|
echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
echo "${ECHO_T}$STRIP" >&6 |
|
5599 |
else |
else |
5600 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
5601 |
fi |
fi |
5602 |
if test -z "$ac_cv_prog_STRIP"; then |
if test -z "$ac_cpp_err"; then |
5603 |
ac_ct_STRIP=$STRIP |
# Broken: success on invalid input. |
5604 |
# Extract the first word of "strip", so it can be a program name with args. |
continue |
|
set dummy strip; ac_word=$2 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test -n "$ac_ct_STRIP"; then |
|
|
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
5605 |
else |
else |
5606 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
echo "$as_me: failed program was:" >&5 |
5607 |
for as_dir in $PATH |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
do |
|
|
IFS=$as_save_IFS |
|
|
test -z "$as_dir" && as_dir=. |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_STRIP="strip" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
5608 |
|
|
5609 |
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
# Passes both tests. |
5610 |
fi |
ac_preproc_ok=: |
5611 |
fi |
break |
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
if test -n "$ac_ct_STRIP"; then |
|
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
5612 |
fi |
fi |
5613 |
|
rm -f conftest.err conftest.$ac_ext |
5614 |
|
|
5615 |
STRIP=$ac_ct_STRIP |
done |
5616 |
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5617 |
|
rm -f conftest.err conftest.$ac_ext |
5618 |
|
if $ac_preproc_ok; then |
5619 |
|
: |
5620 |
else |
else |
5621 |
STRIP="$ac_cv_prog_STRIP" |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5622 |
|
See \`config.log' for more details." >&5 |
5623 |
|
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5624 |
|
See \`config.log' for more details." >&2;} |
5625 |
|
{ (exit 1); exit 1; }; } |
5626 |
fi |
fi |
5627 |
|
|
5628 |
|
ac_ext=cc |
5629 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
5630 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5631 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5632 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5633 |
|
|
|
enable_dlopen=no |
|
|
enable_win32_dll=no |
|
|
|
|
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
if test "${enable_libtool_lock+set}" = set; then |
|
|
enableval="$enable_libtool_lock" |
|
|
|
|
|
fi; |
|
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
5634 |
|
|
|
# Some flags need to be propagated to the compiler or linker for good |
|
|
# libtool support. |
|
|
case $host in |
|
|
*-*-irix6*) |
|
|
# Find out which ABI we are using. |
|
|
echo '#line 5348 "configure"' > conftest.$ac_ext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
|
|
*32-bit*) |
|
|
LD="${LD-ld} -32" |
|
|
;; |
|
|
*N32*) |
|
|
LD="${LD-ld} -n32" |
|
|
;; |
|
|
*64-bit*) |
|
|
LD="${LD-ld} -64" |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
rm -rf conftest* |
|
|
;; |
|
5635 |
|
|
5636 |
*-*-linux*) |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
# Test if the compiler is 64bit |
|
|
echo 'int i;' > conftest.$ac_ext |
|
|
lt_cv_cc_64bit_output=no |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
case `/usr/bin/file conftest.$ac_objext` in |
|
|
*"ELF 64"*) |
|
|
lt_cv_cc_64bit_output=yes |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
rm -rf conftest* |
|
|
;; |
|
5637 |
|
|
5638 |
*-*-sco3.2v5*) |
# find the maximum length of command line arguments |
5639 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5640 |
SAVE_CFLAGS="$CFLAGS" |
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5641 |
CFLAGS="$CFLAGS -belf" |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
5642 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5643 |
else |
else |
5644 |
|
i=0 |
5645 |
|
teststring="ABCD" |
5646 |
|
|
5647 |
|
case $build_os in |
5648 |
|
msdosdjgpp*) |
5649 |
|
# On DJGPP, this test can blow up pretty badly due to problems in libc |
5650 |
|
# (any single argument exceeding 2000 bytes causes a buffer overrun |
5651 |
|
# during glob expansion). Even if it were fixed, the result of this |
5652 |
|
# check would be larger than it should be. |
5653 |
|
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5654 |
|
;; |
5655 |
|
|
5656 |
ac_ext=c |
gnu*) |
5657 |
ac_cpp='$CPP $CPPFLAGS' |
# Under GNU Hurd, this test is not required because there is |
5658 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
# no limit to the length of command line arguments. |
5659 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
# Libtool will interpret -1 as no limit whatsoever |
5660 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
lt_cv_sys_max_cmd_len=-1; |
5661 |
|
;; |
5662 |
|
|
5663 |
cat >conftest.$ac_ext <<_ACEOF |
cygwin* | mingw*) |
5664 |
/* confdefs.h. */ |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
5665 |
_ACEOF |
# about 5 minutes as the teststring grows exponentially. |
5666 |
cat confdefs.h >>conftest.$ac_ext |
# Worse, since 9x/ME are not pre-emptively multitasking, |
5667 |
cat >>conftest.$ac_ext <<_ACEOF |
# you end up with a "frozen" computer, even though with patience |
5668 |
/* end confdefs.h. */ |
# the test eventually succeeds (with a max line length of 256k). |
5669 |
|
# Instead, let's just punt: use the minimum linelength reported by |
5670 |
|
# all of the supported platforms: 8192 (on NT/2K/XP). |
5671 |
|
lt_cv_sys_max_cmd_len=8192; |
5672 |
|
;; |
5673 |
|
|
5674 |
int |
amigaos*) |
5675 |
main () |
# On AmigaOS with pdksh, this test takes hours, literally. |
5676 |
{ |
# So we just punt and use a minimum line length of 8192. |
5677 |
|
lt_cv_sys_max_cmd_len=8192; |
5678 |
|
;; |
5679 |
|
|
5680 |
; |
*) |
5681 |
return 0; |
# If test is not a shell built-in, we'll probably end up computing a |
5682 |
} |
# maximum length that is only half of the actual maximum length, but |
5683 |
_ACEOF |
# we can't tell. |
5684 |
rm -f conftest.$ac_objext conftest$ac_exeext |
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5685 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
= "XX$teststring") >/dev/null 2>&1 && |
5686 |
(eval $ac_link) 2>conftest.er1 |
new_result=`expr "X$teststring" : ".*" 2>&1` && |
5687 |
ac_status=$? |
lt_cv_sys_max_cmd_len=$new_result && |
5688 |
grep -v '^ *+' conftest.er1 >conftest.err |
test $i != 17 # 1/2 MB should be enough |
5689 |
rm -f conftest.er1 |
do |
5690 |
cat conftest.err >&5 |
i=`expr $i + 1` |
5691 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
teststring=$teststring$teststring |
5692 |
(exit $ac_status); } && |
done |
5693 |
{ ac_try='test -z "$ac_c_werror_flag" |
teststring= |
5694 |
|| test ! -s conftest.err' |
# Add a significant safety factor because C++ compilers can tack on massive |
5695 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
# amounts of additional arguments before passing them to the linker. |
5696 |
(eval $ac_try) 2>&5 |
# It appears as though 1/2 is a usable value. |
5697 |
ac_status=$? |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5698 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
;; |
5699 |
(exit $ac_status); }; } && |
esac |
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
lt_cv_cc_needs_belf=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
5700 |
|
|
|
lt_cv_cc_needs_belf=no |
|
5701 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
ac_ext=c |
|
|
ac_cpp='$CPP $CPPFLAGS' |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5702 |
|
|
5703 |
|
if test -n $lt_cv_sys_max_cmd_len ; then |
5704 |
|
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5705 |
|
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5706 |
|
else |
5707 |
|
echo "$as_me:$LINENO: result: none" >&5 |
5708 |
|
echo "${ECHO_T}none" >&6 |
5709 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
CFLAGS="$SAVE_CFLAGS" |
|
|
fi |
|
|
;; |
|
5710 |
|
|
5711 |
|
|
|
esac |
|
5712 |
|
|
|
# Sed substitution that helps us do robust quoting. It backslashifies |
|
|
# metacharacters that are still active within double-quoted strings. |
|
|
Xsed='sed -e s/^X//' |
|
|
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
5713 |
|
|
5714 |
# Same as above, but do not quote variable references. |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
5715 |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5716 |
|
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5717 |
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5718 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5719 |
|
else |
5720 |
|
|
5721 |
# Sed substitution to delay expansion of an escaped shell variable in a |
# These are sane defaults that work on at least a few old systems. |
5722 |
# double_quote_subst'ed string. |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
5723 |
|
|
5724 |
# Constants: |
# Character class describing NM global symbol codes. |
5725 |
rm="rm -f" |
symcode='[BCDEGRST]' |
5726 |
|
|
5727 |
# Global variables: |
# Regexp to match symbols that can be accessed directly from C. |
5728 |
default_ofile=libtool |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
can_build_shared=yes |
|
5729 |
|
|
5730 |
# All known linkers require a `.a' archive for static linking (except M$VC, |
# Transform the above into a raw symbol and a C symbol. |
5731 |
# which needs '.lib'). |
symxfrm='\1 \2\3 \3' |
|
libext=a |
|
|
ltmain="$ac_aux_dir/ltmain.sh" |
|
|
ofile="$default_ofile" |
|
|
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
need_locks="$enable_libtool_lock" |
|
5732 |
|
|
5733 |
old_CC="$CC" |
# Transform an extracted symbol line into a proper C declaration |
5734 |
old_CFLAGS="$CFLAGS" |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5735 |
|
|
5736 |
# Set sane defaults for various variables |
# Transform an extracted symbol line into symbol name and symbol address |
5737 |
test -z "$AR" && AR=ar |
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'" |
5738 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
5739 |
test -z "$AS" && AS=as |
# Define system-specific variables. |
5740 |
test -z "$CC" && CC=cc |
case $host_os in |
5741 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
aix*) |
5742 |
test -z "$LD" && LD=ld |
symcode='[BCDT]' |
5743 |
test -z "$LN_S" && LN_S="ln -s" |
;; |
5744 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
cygwin* | mingw* | pw32*) |
5745 |
test -z "$NM" && NM=nm |
symcode='[ABCDGISTW]' |
5746 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
;; |
5747 |
test -z "$RANLIB" && RANLIB=: |
hpux*) # Its linker distinguishes data from code symbols |
5748 |
test -z "$STRIP" && STRIP=: |
if test "$host_cpu" = ia64; then |
5749 |
test -z "$ac_objext" && ac_objext=o |
symcode='[ABCDEGRST]' |
5750 |
|
fi |
5751 |
|
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5752 |
|
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'" |
5753 |
|
;; |
5754 |
|
irix* | nonstopux*) |
5755 |
|
symcode='[BCDEGRST]' |
5756 |
|
;; |
5757 |
|
osf*) |
5758 |
|
symcode='[BCDEGQRST]' |
5759 |
|
;; |
5760 |
|
solaris* | sysv5*) |
5761 |
|
symcode='[BDRT]' |
5762 |
|
;; |
5763 |
|
sysv4) |
5764 |
|
symcode='[DFNSTU]' |
5765 |
|
;; |
5766 |
|
esac |
5767 |
|
|
5768 |
|
# Handle CRLF in mingw tool chain |
5769 |
|
opt_cr= |
5770 |
|
case $build_os in |
5771 |
|
mingw*) |
5772 |
|
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5773 |
|
;; |
5774 |
|
esac |
5775 |
|
|
5776 |
|
# If we're using GNU nm, then use its standard symbol codes. |
5777 |
|
case `$NM -V 2>&1` in |
5778 |
|
*GNU* | *'with BFD'*) |
5779 |
|
symcode='[ABCDGIRSTW]' ;; |
5780 |
|
esac |
5781 |
|
|
5782 |
|
# Try without a prefix undercore, then with it. |
5783 |
|
for ac_symprfx in "" "_"; do |
5784 |
|
|
5785 |
|
# Write the raw and C identifiers. |
5786 |
|
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
5787 |
|
|
5788 |
|
# Check to see that the pipe works correctly. |
5789 |
|
pipe_works=no |
5790 |
|
|
5791 |
|
rm -f conftest* |
5792 |
|
cat > conftest.$ac_ext <<EOF |
5793 |
|
#ifdef __cplusplus |
5794 |
|
extern "C" { |
5795 |
|
#endif |
5796 |
|
char nm_test_var; |
5797 |
|
void nm_test_func(){} |
5798 |
|
#ifdef __cplusplus |
5799 |
|
} |
5800 |
|
#endif |
5801 |
|
int main(){nm_test_var='a';nm_test_func();return(0);} |
5802 |
|
EOF |
5803 |
|
|
5804 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5805 |
|
(eval $ac_compile) 2>&5 |
5806 |
|
ac_status=$? |
5807 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5808 |
|
(exit $ac_status); }; then |
5809 |
|
# Now try to grab the symbols. |
5810 |
|
nlist=conftest.nm |
5811 |
|
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5812 |
|
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5813 |
|
ac_status=$? |
5814 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5815 |
|
(exit $ac_status); } && test -s "$nlist"; then |
5816 |
|
# Try sorting and uniquifying the output. |
5817 |
|
if sort "$nlist" | uniq > "$nlist"T; then |
5818 |
|
mv -f "$nlist"T "$nlist" |
5819 |
|
else |
5820 |
|
rm -f "$nlist"T |
5821 |
|
fi |
5822 |
|
|
5823 |
|
# Make sure that we snagged all the symbols we need. |
5824 |
|
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5825 |
|
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5826 |
|
cat <<EOF > conftest.$ac_ext |
5827 |
|
#ifdef __cplusplus |
5828 |
|
extern "C" { |
5829 |
|
#endif |
5830 |
|
|
5831 |
|
EOF |
5832 |
|
# Now generate the symbol file. |
5833 |
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5834 |
|
|
5835 |
|
cat <<EOF >> conftest.$ac_ext |
5836 |
|
#if defined (__STDC__) && __STDC__ |
5837 |
|
# define lt_ptr_t void * |
5838 |
|
#else |
5839 |
|
# define lt_ptr_t char * |
5840 |
|
# define const |
5841 |
|
#endif |
5842 |
|
|
5843 |
|
/* The mapping between symbol names and symbols. */ |
5844 |
|
const struct { |
5845 |
|
const char *name; |
5846 |
|
lt_ptr_t address; |
5847 |
|
} |
5848 |
|
lt_preloaded_symbols[] = |
5849 |
|
{ |
5850 |
|
EOF |
5851 |
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5852 |
|
cat <<\EOF >> conftest.$ac_ext |
5853 |
|
{0, (lt_ptr_t) 0} |
5854 |
|
}; |
5855 |
|
|
5856 |
|
#ifdef __cplusplus |
5857 |
|
} |
5858 |
|
#endif |
5859 |
|
EOF |
5860 |
|
# Now try linking the two files. |
5861 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
5862 |
|
lt_save_LIBS="$LIBS" |
5863 |
|
lt_save_CFLAGS="$CFLAGS" |
5864 |
|
LIBS="conftstm.$ac_objext" |
5865 |
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5866 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5867 |
|
(eval $ac_link) 2>&5 |
5868 |
|
ac_status=$? |
5869 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5870 |
|
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
5871 |
|
pipe_works=yes |
5872 |
|
fi |
5873 |
|
LIBS="$lt_save_LIBS" |
5874 |
|
CFLAGS="$lt_save_CFLAGS" |
5875 |
|
else |
5876 |
|
echo "cannot find nm_test_func in $nlist" >&5 |
5877 |
|
fi |
5878 |
|
else |
5879 |
|
echo "cannot find nm_test_var in $nlist" >&5 |
5880 |
|
fi |
5881 |
|
else |
5882 |
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5883 |
|
fi |
5884 |
|
else |
5885 |
|
echo "$progname: failed program was:" >&5 |
5886 |
|
cat conftest.$ac_ext >&5 |
5887 |
|
fi |
5888 |
|
rm -f conftest* conftst* |
5889 |
|
|
5890 |
|
# Do not use the global_symbol_pipe unless it works. |
5891 |
|
if test "$pipe_works" = yes; then |
5892 |
|
break |
5893 |
|
else |
5894 |
|
lt_cv_sys_global_symbol_pipe= |
5895 |
|
fi |
5896 |
|
done |
5897 |
|
|
5898 |
|
fi |
5899 |
|
|
5900 |
if test x"$host" != x"$build"; then |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5901 |
ac_tool_prefix=${host_alias}- |
lt_cv_sys_global_symbol_to_cdecl= |
5902 |
|
fi |
5903 |
|
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5904 |
|
echo "$as_me:$LINENO: result: failed" >&5 |
5905 |
|
echo "${ECHO_T}failed" >&6 |
5906 |
else |
else |
5907 |
ac_tool_prefix= |
echo "$as_me:$LINENO: result: ok" >&5 |
5908 |
|
echo "${ECHO_T}ok" >&6 |
5909 |
fi |
fi |
5910 |
|
|
5911 |
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
echo "$as_me:$LINENO: checking for objdir" >&5 |
5912 |
case $host_os in |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5913 |
linux-gnu*) ;; |
if test "${lt_cv_objdir+set}" = set; then |
5914 |
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5915 |
esac |
else |
5916 |
|
rm -f .libs 2>/dev/null |
5917 |
|
mkdir .libs 2>/dev/null |
5918 |
|
if test -d .libs; then |
5919 |
|
lt_cv_objdir=.libs |
5920 |
|
else |
5921 |
|
# MS-DOS does not allow filenames that begin with a dot. |
5922 |
|
lt_cv_objdir=_libs |
5923 |
|
fi |
5924 |
|
rmdir .libs 2>/dev/null |
5925 |
|
fi |
5926 |
|
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5927 |
|
echo "${ECHO_T}$lt_cv_objdir" >&6 |
5928 |
|
objdir=$lt_cv_objdir |
5929 |
|
|
5930 |
|
|
5931 |
|
|
5932 |
|
|
5933 |
|
|
5934 |
case $host_os in |
case $host_os in |
5935 |
aix3*) |
aix3*) |
5943 |
;; |
;; |
5944 |
esac |
esac |
5945 |
|
|
5946 |
# Determine commands to create old-style static archives. |
# Sed substitution that helps us do robust quoting. It backslashifies |
5947 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
# metacharacters that are still active within double-quoted strings. |
5948 |
old_postinstall_cmds='chmod 644 $oldlib' |
Xsed='sed -e s/^X//' |
5949 |
old_postuninstall_cmds= |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5950 |
|
|
5951 |
if test -n "$RANLIB"; then |
# Same as above, but do not quote variable references. |
5952 |
case $host_os in |
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
openbsd*) |
|
|
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
|
;; |
|
|
*) |
|
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
;; |
|
|
esac |
|
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
fi |
|
5953 |
|
|
5954 |
# Allow CC to be a program name with arguments. |
# Sed substitution to delay expansion of an escaped shell variable in a |
5955 |
set dummy $CC |
# double_quote_subst'ed string. |
5956 |
compiler="$2" |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5957 |
|
|
5958 |
echo "$as_me:$LINENO: checking for objdir" >&5 |
# Sed substitution to avoid accidental globbing in evaled expressions |
5959 |
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
no_glob_subst='s/\*/\\\*/g' |
|
rm -f .libs 2>/dev/null |
|
|
mkdir .libs 2>/dev/null |
|
|
if test -d .libs; then |
|
|
objdir=.libs |
|
|
else |
|
|
# MS-DOS does not allow filenames that begin with a dot. |
|
|
objdir=_libs |
|
|
fi |
|
|
rmdir .libs 2>/dev/null |
|
|
echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
echo "${ECHO_T}$objdir" >&6 |
|
5960 |
|
|
5961 |
|
# Constants: |
5962 |
|
rm="rm -f" |
5963 |
|
|
5964 |
|
# Global variables: |
5965 |
|
default_ofile=libtool |
5966 |
|
can_build_shared=yes |
5967 |
|
|
5968 |
# Check whether --with-pic or --without-pic was given. |
# All known linkers require a `.a' archive for static linking (except M$VC, |
5969 |
if test "${with_pic+set}" = set; then |
# which needs '.lib'). |
5970 |
withval="$with_pic" |
libext=a |
5971 |
pic_mode="$withval" |
ltmain="$ac_aux_dir/ltmain.sh" |
5972 |
else |
ofile="$default_ofile" |
5973 |
pic_mode=default |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
fi; |
|
|
test -z "$pic_mode" && pic_mode=default |
|
5974 |
|
|
5975 |
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
if test -n "$ac_tool_prefix"; then |
5976 |
# in isolation, and that seeing it set (from the cache) indicates that |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5977 |
# the associated values are set (in the cache) correctly too. |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5978 |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5979 |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
5980 |
if test "${lt_cv_prog_cc_pic+set}" = set; then |
if test "${ac_cv_prog_AR+set}" = set; then |
5981 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5982 |
else |
else |
5983 |
lt_cv_prog_cc_pic= |
if test -n "$AR"; then |
5984 |
lt_cv_prog_cc_shlib= |
ac_cv_prog_AR="$AR" # Let the user override the test. |
5985 |
lt_cv_prog_cc_wl= |
else |
5986 |
lt_cv_prog_cc_static= |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5987 |
lt_cv_prog_cc_no_builtin= |
for as_dir in $PATH |
5988 |
lt_cv_prog_cc_can_build_shared=$can_build_shared |
do |
5989 |
|
IFS=$as_save_IFS |
5990 |
if test "$GCC" = yes; then |
test -z "$as_dir" && as_dir=. |
5991 |
lt_cv_prog_cc_wl='-Wl,' |
for ac_exec_ext in '' $ac_executable_extensions; do |
5992 |
lt_cv_prog_cc_static='-static' |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5993 |
|
ac_cv_prog_AR="${ac_tool_prefix}ar" |
5994 |
case $host_os in |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5995 |
aix*) |
break 2 |
|
# Below there is a dirty hack to force normal static linking with -ldl |
|
|
# The problem is because libdl dynamically linked with both libc and |
|
|
# libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
# list by gcc. This cause undefined symbols with -static flags. |
|
|
# This hack allows C programs to be linked with "-static -ldl", but |
|
|
# not sure about C++ programs. |
|
|
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
;; |
|
|
amigaos*) |
|
|
# FIXME: we need at least 68020 code to build shared libraries, but |
|
|
# adding the `-m68020' flag to GCC prevents building anything better, |
|
|
# like `-m68040'. |
|
|
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
;; |
|
|
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
# PIC is the default for these OSes. |
|
|
;; |
|
|
darwin* | rhapsody*) |
|
|
# PIC is the default on this platform |
|
|
# Common symbols not allowed in MH_DYLIB files |
|
|
lt_cv_prog_cc_pic='-fno-common' |
|
|
;; |
|
|
cygwin* | mingw* | pw32* | os2*) |
|
|
# This hack is so that the source file can tell whether it is being |
|
|
# built for inclusion in a dll (and should export symbols for example). |
|
|
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
;; |
|
|
sysv4*MP*) |
|
|
if test -d /usr/nec; then |
|
|
lt_cv_prog_cc_pic=-Kconform_pic |
|
|
fi |
|
|
;; |
|
|
*) |
|
|
lt_cv_prog_cc_pic='-fPIC' |
|
|
;; |
|
|
esac |
|
|
else |
|
|
# PORTME Check for PIC flags for the system compiler. |
|
|
case $host_os in |
|
|
aix3* | aix4* | aix5*) |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
# All AIX code is PIC. |
|
|
if test "$host_cpu" = ia64; then |
|
|
# AIX 5 now supports IA64 processor |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
else |
|
|
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
fi |
|
|
;; |
|
|
|
|
|
hpux9* | hpux10* | hpux11*) |
|
|
# Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
lt_cv_prog_cc_pic='+Z' |
|
|
;; |
|
|
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
lt_cv_prog_cc_static='-non_shared' |
|
|
# PIC (with -KPIC) is the default. |
|
|
;; |
|
|
|
|
|
cygwin* | mingw* | pw32* | os2*) |
|
|
# This hack is so that the source file can tell whether it is being |
|
|
# built for inclusion in a dll (and should export symbols for example). |
|
|
lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
;; |
|
|
|
|
|
newsos6) |
|
|
lt_cv_prog_cc_pic='-KPIC' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
;; |
|
|
|
|
|
osf3* | osf4* | osf5*) |
|
|
# All OSF/1 code is PIC. |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
lt_cv_prog_cc_static='-non_shared' |
|
|
;; |
|
|
|
|
|
sco3.2v5*) |
|
|
lt_cv_prog_cc_pic='-Kpic' |
|
|
lt_cv_prog_cc_static='-dn' |
|
|
lt_cv_prog_cc_shlib='-belf' |
|
|
;; |
|
|
|
|
|
solaris*) |
|
|
lt_cv_prog_cc_pic='-KPIC' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
;; |
|
|
|
|
|
sunos4*) |
|
|
lt_cv_prog_cc_pic='-PIC' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
;; |
|
|
|
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
lt_cv_prog_cc_pic='-KPIC' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
lt_cv_prog_cc_wl='-Wl,' |
|
|
;; |
|
|
|
|
|
uts4*) |
|
|
lt_cv_prog_cc_pic='-pic' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
;; |
|
|
|
|
|
sysv4*MP*) |
|
|
if test -d /usr/nec ;then |
|
|
lt_cv_prog_cc_pic='-Kconform_pic' |
|
|
lt_cv_prog_cc_static='-Bstatic' |
|
|
fi |
|
|
;; |
|
|
|
|
|
*) |
|
|
lt_cv_prog_cc_can_build_shared=no |
|
|
;; |
|
|
esac |
|
5996 |
fi |
fi |
5997 |
|
done |
5998 |
|
done |
5999 |
|
|
6000 |
fi |
fi |
6001 |
|
fi |
6002 |
if test -z "$lt_cv_prog_cc_pic"; then |
AR=$ac_cv_prog_AR |
6003 |
echo "$as_me:$LINENO: result: none" >&5 |
if test -n "$AR"; then |
6004 |
echo "${ECHO_T}none" >&6 |
echo "$as_me:$LINENO: result: $AR" >&5 |
6005 |
|
echo "${ECHO_T}$AR" >&6 |
6006 |
else |
else |
6007 |
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
echo "$as_me:$LINENO: result: no" >&5 |
6008 |
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
echo "${ECHO_T}no" >&6 |
6009 |
|
fi |
6010 |
|
|
6011 |
# Check to make sure the pic_flag actually works. |
fi |
6012 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
if test -z "$ac_cv_prog_AR"; then |
6013 |
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
ac_ct_AR=$AR |
6014 |
if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
# Extract the first word of "ar", so it can be a program name with args. |
6015 |
|
set dummy ar; ac_word=$2 |
6016 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6017 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6018 |
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6019 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6020 |
else |
else |
6021 |
save_CFLAGS="$CFLAGS" |
if test -n "$ac_ct_AR"; then |
6022 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
case $host_os in |
|
|
hpux9* | hpux10* | hpux11*) |
|
|
# On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
# they create non-PIC objects. So, if there were any warnings, we |
|
|
# assume that PIC is not supported. |
|
|
if test -s conftest.err; then |
|
|
lt_cv_prog_cc_pic_works=no |
|
|
else |
|
|
lt_cv_prog_cc_pic_works=yes |
|
|
fi |
|
|
;; |
|
|
*) |
|
|
lt_cv_prog_cc_pic_works=yes |
|
|
;; |
|
|
esac |
|
|
|
|
6023 |
else |
else |
6024 |
echo "$as_me: failed program was:" >&5 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6025 |
sed 's/^/| /' conftest.$ac_ext >&5 |
for as_dir in $PATH |
6026 |
|
do |
6027 |
lt_cv_prog_cc_pic_works=no |
IFS=$as_save_IFS |
6028 |
|
test -z "$as_dir" && as_dir=. |
6029 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6030 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6031 |
|
ac_cv_prog_ac_ct_AR="ar" |
6032 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6033 |
|
break 2 |
6034 |
|
fi |
6035 |
|
done |
6036 |
|
done |
6037 |
|
|
6038 |
|
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
6039 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
CFLAGS="$save_CFLAGS" |
|
|
|
|
6040 |
fi |
fi |
6041 |
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6042 |
|
if test -n "$ac_ct_AR"; then |
6043 |
if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6044 |
lt_cv_prog_cc_pic= |
echo "${ECHO_T}$ac_ct_AR" >&6 |
6045 |
lt_cv_prog_cc_can_build_shared=no |
else |
6046 |
else |
echo "$as_me:$LINENO: result: no" >&5 |
6047 |
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
echo "${ECHO_T}no" >&6 |
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
6048 |
fi |
fi |
6049 |
|
|
6050 |
# Check for any special shared library compilation flags. |
AR=$ac_ct_AR |
6051 |
if test -n "$lt_cv_prog_cc_shlib"; then |
else |
6052 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
AR="$ac_cv_prog_AR" |
|
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
else |
|
|
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
lt_cv_prog_cc_can_build_shared=no |
|
|
fi |
|
6053 |
fi |
fi |
6054 |
|
|
6055 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
if test -n "$ac_tool_prefix"; then |
6056 |
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6057 |
if test "${lt_cv_prog_cc_static_works+set}" = set; then |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6058 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6059 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6060 |
|
if test "${ac_cv_prog_RANLIB+set}" = set; then |
6061 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6062 |
else |
else |
6063 |
lt_cv_prog_cc_static_works=no |
if test -n "$RANLIB"; then |
6064 |
save_LDFLAGS="$LDFLAGS" |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
|
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
lt_cv_prog_cc_static_works=yes |
|
6065 |
else |
else |
6066 |
echo "$as_me: failed program was:" >&5 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6067 |
sed 's/^/| /' conftest.$ac_ext >&5 |
for as_dir in $PATH |
6068 |
|
do |
6069 |
|
IFS=$as_save_IFS |
6070 |
|
test -z "$as_dir" && as_dir=. |
6071 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6072 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6073 |
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6074 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6075 |
|
break 2 |
6076 |
|
fi |
6077 |
|
done |
6078 |
|
done |
6079 |
|
|
6080 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LDFLAGS="$save_LDFLAGS" |
|
|
|
|
6081 |
fi |
fi |
6082 |
|
RANLIB=$ac_cv_prog_RANLIB |
6083 |
|
if test -n "$RANLIB"; then |
6084 |
# Belt *and* braces to stop my trousers falling down: |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6085 |
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
echo "${ECHO_T}$RANLIB" >&6 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
|
|
|
pic_flag="$lt_cv_prog_cc_pic" |
|
|
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
wl="$lt_cv_prog_cc_wl" |
|
|
link_static_flag="$lt_cv_prog_cc_static" |
|
|
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
|
|
|
|
|
|
# Check to see if options -o and -c are simultaneously supported by compiler |
|
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
if test "${lt_cv_compiler_c_o+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
6086 |
else |
else |
6087 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6088 |
$rm -r conftest 2>/dev/null |
echo "${ECHO_T}no" >&6 |
|
mkdir conftest |
|
|
cd conftest |
|
|
echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
mkdir out |
|
|
# 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 . |
|
|
save_CFLAGS="$CFLAGS" |
|
|
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
compiler_c_o=no |
|
|
if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
# The compiler can only warn and ignore the option if not recognized |
|
|
# So say no if there are warnings |
|
|
if test -s out/conftest.err; then |
|
|
lt_cv_compiler_c_o=no |
|
|
else |
|
|
lt_cv_compiler_c_o=yes |
|
|
fi |
|
|
else |
|
|
# Append any errors to the config.log. |
|
|
cat out/conftest.err 1>&5 |
|
|
lt_cv_compiler_c_o=no |
|
|
fi |
|
|
CFLAGS="$save_CFLAGS" |
|
|
chmod u+w . |
|
|
$rm conftest* out/* |
|
|
rmdir out |
|
|
cd .. |
|
|
rmdir conftest |
|
|
$rm -r conftest 2>/dev/null |
|
|
|
|
6089 |
fi |
fi |
6090 |
|
|
6091 |
compiler_c_o=$lt_cv_compiler_c_o |
fi |
6092 |
echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
if test -z "$ac_cv_prog_RANLIB"; then |
6093 |
echo "${ECHO_T}$compiler_c_o" >&6 |
ac_ct_RANLIB=$RANLIB |
6094 |
|
# Extract the first word of "ranlib", so it can be a program name with args. |
6095 |
if test x"$compiler_c_o" = x"yes"; then |
set dummy ranlib; ac_word=$2 |
6096 |
# Check to see if we can write to a .lo |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6097 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6098 |
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
if test "${lt_cv_compiler_o_lo+set}" = set; then |
|
6099 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6100 |
else |
else |
6101 |
|
if test -n "$ac_ct_RANLIB"; then |
6102 |
lt_cv_compiler_o_lo=no |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
save_CFLAGS="$CFLAGS" |
|
|
CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
save_objext="$ac_objext" |
|
|
ac_objext=lo |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
int some_variable = 0; |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
# The compiler can only warn and ignore the option if not recognized |
|
|
# So say no if there are warnings |
|
|
if test -s conftest.err; then |
|
|
lt_cv_compiler_o_lo=no |
|
|
else |
|
|
lt_cv_compiler_o_lo=yes |
|
|
fi |
|
|
|
|
6103 |
else |
else |
6104 |
echo "$as_me: failed program was:" >&5 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6105 |
sed 's/^/| /' conftest.$ac_ext >&5 |
for as_dir in $PATH |
6106 |
|
do |
6107 |
|
IFS=$as_save_IFS |
6108 |
|
test -z "$as_dir" && as_dir=. |
6109 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6110 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6111 |
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6112 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6113 |
|
break 2 |
6114 |
|
fi |
6115 |
|
done |
6116 |
|
done |
6117 |
|
|
6118 |
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6119 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
ac_objext="$save_objext" |
|
|
CFLAGS="$save_CFLAGS" |
|
|
|
|
6120 |
fi |
fi |
6121 |
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6122 |
compiler_o_lo=$lt_cv_compiler_o_lo |
if test -n "$ac_ct_RANLIB"; then |
6123 |
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6124 |
echo "${ECHO_T}$compiler_o_lo" >&6 |
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6125 |
else |
else |
6126 |
compiler_o_lo=no |
echo "$as_me:$LINENO: result: no" >&5 |
6127 |
|
echo "${ECHO_T}no" >&6 |
6128 |
fi |
fi |
6129 |
|
|
6130 |
# Check to see if we can do hard links to lock some files if needed |
RANLIB=$ac_ct_RANLIB |
|
hard_links="nottested" |
|
|
if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
# do not overwrite the value of need_locks provided by the user |
|
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
hard_links=yes |
|
|
$rm conftest* |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
touch conftest.a |
|
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
echo "${ECHO_T}$hard_links" >&6 |
|
|
if test "$hard_links" = no; then |
|
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
need_locks=warn |
|
|
fi |
|
6131 |
else |
else |
6132 |
need_locks=no |
RANLIB="$ac_cv_prog_RANLIB" |
6133 |
fi |
fi |
6134 |
|
|
6135 |
if test "$GCC" = yes; then |
if test -n "$ac_tool_prefix"; then |
6136 |
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6137 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6138 |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6139 |
echo "int some_variable = 0;" > conftest.$ac_ext |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6140 |
save_CFLAGS="$CFLAGS" |
if test "${ac_cv_prog_STRIP+set}" = set; then |
6141 |
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6142 |
compiler_rtti_exceptions=no |
else |
6143 |
cat >conftest.$ac_ext <<_ACEOF |
if test -n "$STRIP"; then |
6144 |
/* confdefs.h. */ |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6145 |
_ACEOF |
else |
6146 |
cat confdefs.h >>conftest.$ac_ext |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6147 |
cat >>conftest.$ac_ext <<_ACEOF |
for as_dir in $PATH |
6148 |
/* end confdefs.h. */ |
do |
6149 |
|
IFS=$as_save_IFS |
6150 |
|
test -z "$as_dir" && as_dir=. |
6151 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6152 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6153 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6154 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6155 |
|
break 2 |
6156 |
|
fi |
6157 |
|
done |
6158 |
|
done |
6159 |
|
|
6160 |
int |
fi |
6161 |
main () |
fi |
6162 |
{ |
STRIP=$ac_cv_prog_STRIP |
6163 |
int some_variable = 0; |
if test -n "$STRIP"; then |
6164 |
; |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
6165 |
return 0; |
echo "${ECHO_T}$STRIP" >&6 |
6166 |
} |
else |
6167 |
_ACEOF |
echo "$as_me:$LINENO: result: no" >&5 |
6168 |
rm -f conftest.$ac_objext |
echo "${ECHO_T}no" >&6 |
6169 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
fi |
|
(eval $ac_compile) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest.$ac_objext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
# The compiler can only warn and ignore the option if not recognized |
|
|
# So say no if there are warnings |
|
|
if test -s conftest.err; then |
|
|
compiler_rtti_exceptions=no |
|
|
else |
|
|
compiler_rtti_exceptions=yes |
|
|
fi |
|
6170 |
|
|
6171 |
|
fi |
6172 |
|
if test -z "$ac_cv_prog_STRIP"; then |
6173 |
|
ac_ct_STRIP=$STRIP |
6174 |
|
# Extract the first word of "strip", so it can be a program name with args. |
6175 |
|
set dummy strip; ac_word=$2 |
6176 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6177 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6178 |
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6179 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6180 |
else |
else |
6181 |
echo "$as_me: failed program was:" >&5 |
if test -n "$ac_ct_STRIP"; then |
6182 |
sed 's/^/| /' conftest.$ac_ext >&5 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6183 |
|
else |
6184 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6185 |
|
for as_dir in $PATH |
6186 |
|
do |
6187 |
|
IFS=$as_save_IFS |
6188 |
|
test -z "$as_dir" && as_dir=. |
6189 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6190 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6191 |
|
ac_cv_prog_ac_ct_STRIP="strip" |
6192 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6193 |
|
break 2 |
6194 |
|
fi |
6195 |
|
done |
6196 |
|
done |
6197 |
|
|
6198 |
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6199 |
|
fi |
6200 |
|
fi |
6201 |
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6202 |
|
if test -n "$ac_ct_STRIP"; then |
6203 |
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6204 |
|
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6205 |
|
else |
6206 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6207 |
|
echo "${ECHO_T}no" >&6 |
6208 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
CFLAGS="$save_CFLAGS" |
|
|
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
6209 |
|
|
6210 |
if test "$compiler_rtti_exceptions" = "yes"; then |
STRIP=$ac_ct_STRIP |
6211 |
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
else |
6212 |
else |
STRIP="$ac_cv_prog_STRIP" |
|
no_builtin_flag=' -fno-builtin' |
|
|
fi |
|
6213 |
fi |
fi |
6214 |
|
|
|
# See if the linker supports building shared libraries. |
|
|
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
6215 |
|
|
6216 |
allow_undefined_flag= |
old_CC="$CC" |
6217 |
no_undefined_flag= |
old_CFLAGS="$CFLAGS" |
|
need_lib_prefix=unknown |
|
|
need_version=unknown |
|
|
# when you set need_version to no, make sure it does not cause -set_version |
|
|
# flags to be left without arguments |
|
|
archive_cmds= |
|
|
archive_expsym_cmds= |
|
|
old_archive_from_new_cmds= |
|
|
old_archive_from_expsyms_cmds= |
|
|
export_dynamic_flag_spec= |
|
|
whole_archive_flag_spec= |
|
|
thread_safe_flag_spec= |
|
|
hardcode_into_libs=no |
|
|
hardcode_libdir_flag_spec= |
|
|
hardcode_libdir_separator= |
|
|
hardcode_direct=no |
|
|
hardcode_minus_L=no |
|
|
hardcode_shlibpath_var=unsupported |
|
|
runpath_var= |
|
|
link_all_deplibs=unknown |
|
|
always_export_symbols=no |
|
|
export_symbols_cmds='$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* |
|
|
# included in the symbol list |
|
|
include_expsyms= |
|
|
# exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
# as well as any symbol that contains `d'. |
|
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
# the symbol is explicitly referenced. Since portable code cannot |
|
|
# rely on this symbol name, it's probably fine to never include it in |
|
|
# preloaded symbol tables. |
|
|
extract_expsyms_cmds= |
|
6218 |
|
|
6219 |
case $host_os in |
# Set sane defaults for various variables |
6220 |
cygwin* | mingw* | pw32*) |
test -z "$AR" && AR=ar |
6221 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
6222 |
# When not using gcc, we currently assume that we are using |
test -z "$AS" && AS=as |
6223 |
# Microsoft Visual C++. |
test -z "$CC" && CC=cc |
6224 |
if test "$GCC" != yes; then |
test -z "$LTCC" && LTCC=$CC |
6225 |
with_gnu_ld=no |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
6226 |
fi |
test -z "$LD" && LD=ld |
6227 |
;; |
test -z "$LN_S" && LN_S="ln -s" |
6228 |
openbsd*) |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6229 |
with_gnu_ld=no |
test -z "$NM" && NM=nm |
6230 |
;; |
test -z "$SED" && SED=sed |
6231 |
esac |
test -z "$OBJDUMP" && OBJDUMP=objdump |
6232 |
|
test -z "$RANLIB" && RANLIB=: |
6233 |
|
test -z "$STRIP" && STRIP=: |
6234 |
|
test -z "$ac_objext" && ac_objext=o |
6235 |
|
|
6236 |
ld_shlibs=yes |
# Determine commands to create old-style static archives. |
6237 |
if test "$with_gnu_ld" = yes; then |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6238 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
old_postinstall_cmds='chmod 644 $oldlib' |
6239 |
wlarc='${wl}' |
old_postuninstall_cmds= |
6240 |
|
|
6241 |
# See if GNU ld supports shared libraries. |
if test -n "$RANLIB"; then |
6242 |
case $host_os in |
case $host_os in |
6243 |
aix3* | aix4* | aix5*) |
openbsd*) |
6244 |
# On AIX, the GNU linker is very broken |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
|
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
|
|
ld_shlibs=no |
|
|
cat <<EOF 1>&2 |
|
|
|
|
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
*** to be unable to reliably create shared libraries on AIX. |
|
|
*** Therefore, libtool is disabling shared libraries support. If you |
|
|
*** really care for shared libraries, you may want to modify your PATH |
|
|
*** so that a non-GNU linker is found, and then restart. |
|
|
|
|
|
EOF |
|
6245 |
;; |
;; |
6246 |
|
*) |
6247 |
amigaos*) |
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_minus_L=yes |
|
|
|
|
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
# to version 4, is to share data among multiple programs linked |
|
|
# with the same dynamic library. Since this doesn't match the |
|
|
# behavior of shared libraries on other platforms, we can use |
|
|
# them. |
|
|
ld_shlibs=no |
|
6248 |
;; |
;; |
6249 |
|
esac |
6250 |
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6251 |
|
fi |
6252 |
|
|
6253 |
beos*) |
# Only perform the check for file, if the check method requires it |
6254 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
case $deplibs_check_method in |
6255 |
allow_undefined_flag=unsupported |
file_magic*) |
6256 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6257 |
# support --undefined. This deserves some investigation. FIXME |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6258 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6259 |
else |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6260 |
ld_shlibs=no |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6261 |
fi |
else |
6262 |
;; |
case $MAGIC_CMD in |
6263 |
|
[\\/*] | ?:[\\/]*) |
6264 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6265 |
|
;; |
6266 |
|
*) |
6267 |
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
6268 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6269 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6270 |
|
for ac_dir in $ac_dummy; do |
6271 |
|
IFS="$lt_save_ifs" |
6272 |
|
test -z "$ac_dir" && ac_dir=. |
6273 |
|
if test -f $ac_dir/${ac_tool_prefix}file; then |
6274 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6275 |
|
if test -n "$file_magic_test_file"; then |
6276 |
|
case $deplibs_check_method in |
6277 |
|
"file_magic "*) |
6278 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6279 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6280 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6281 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
6282 |
|
: |
6283 |
|
else |
6284 |
|
cat <<EOF 1>&2 |
6285 |
|
|
6286 |
cygwin* | mingw* | pw32*) |
*** Warning: the command libtool uses to detect shared libraries, |
6287 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
6288 |
# no search path for DLLs. |
*** The result is that libtool may fail to recognize shared libraries |
6289 |
hardcode_libdir_flag_spec='-L$libdir' |
*** as such. This will affect the creation of libtool libraries that |
6290 |
allow_undefined_flag=unsupported |
*** depend on shared libraries, but programs linked with such libtool |
6291 |
always_export_symbols=yes |
*** libraries will work regardless of this problem. Nevertheless, you |
6292 |
|
*** may want to report the problem to your system manager and/or to |
6293 |
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
*** bug-libtool@gnu.org |
|
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
else $CC -o impgen impgen.c ; fi)~ |
|
|
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' |
|
|
|
|
|
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
|
|
|
# cygwin and mingw dlls have different entry points and sets of symbols |
|
|
# to exclude. |
|
|
# FIXME: what about values for MSVC? |
|
|
dll_entry=__cygwin_dll_entry@12 |
|
|
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
case $host_os in |
|
|
mingw*) |
|
|
# mingw values |
|
|
dll_entry=_DllMainCRTStartup@12 |
|
|
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
|
;; |
|
|
esac |
|
6294 |
|
|
6295 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
EOF |
6296 |
# of the two symbol sets. |
fi ;; |
6297 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
esac |
6298 |
|
fi |
6299 |
# recent cygwin and mingw systems supply a stub DllMain which the user |
break |
|
# can override, but on older systems we have to supply one (in ltdll.c) |
|
|
if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ |
|
|
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
else |
|
|
ltdll_obj= |
|
|
ltdll_cmds= |
|
6300 |
fi |
fi |
6301 |
|
done |
6302 |
|
IFS="$lt_save_ifs" |
6303 |
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
6304 |
|
;; |
6305 |
|
esac |
6306 |
|
fi |
6307 |
|
|
6308 |
# Extract the symbol export list from an `--export-all' def file, |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6309 |
# then regenerate the def file from the symbol export list, so that |
if test -n "$MAGIC_CMD"; then |
6310 |
# the compiled dll only exports the symbol export list. |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6311 |
# Be careful not to strip the DATA tag left be newer dlltools. |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
6312 |
export_symbols_cmds="$ltdll_cmds"' |
else |
6313 |
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
echo "$as_me:$LINENO: result: no" >&5 |
6314 |
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
echo "${ECHO_T}no" >&6 |
6315 |
|
fi |
|
# If the export-symbols file already is a .def file (1st line |
|
|
# is EXPORTS), use it as is. |
|
|
# If DATA tags from a recent dlltool are present, honour them! |
|
|
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then |
|
|
cp $export_symbols $output_objdir/$soname-def; |
|
|
else |
|
|
echo EXPORTS > $output_objdir/$soname-def; |
|
|
_lt_hint=1; |
|
|
cat $export_symbols | while read symbol; do |
|
|
set dummy \$symbol; |
|
|
case \$# in |
|
|
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; |
|
|
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
esac; |
|
|
_lt_hint=`expr 1 + \$_lt_hint`; |
|
|
done; |
|
|
fi~ |
|
|
'"$ltdll_cmds"' |
|
|
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ |
|
|
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ |
|
|
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ |
|
|
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
;; |
|
|
|
|
|
netbsd*) |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
wlarc= |
|
|
else |
|
|
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
fi |
|
|
;; |
|
6316 |
|
|
6317 |
solaris* | sysv5*) |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
6318 |
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
if test -n "$ac_tool_prefix"; then |
6319 |
ld_shlibs=no |
echo "$as_me:$LINENO: checking for file" >&5 |
6320 |
cat <<EOF 1>&2 |
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6321 |
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6322 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6323 |
|
else |
6324 |
|
case $MAGIC_CMD in |
6325 |
|
[\\/*] | ?:[\\/]*) |
6326 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6327 |
|
;; |
6328 |
|
*) |
6329 |
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
6330 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6331 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6332 |
|
for ac_dir in $ac_dummy; do |
6333 |
|
IFS="$lt_save_ifs" |
6334 |
|
test -z "$ac_dir" && ac_dir=. |
6335 |
|
if test -f $ac_dir/file; then |
6336 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6337 |
|
if test -n "$file_magic_test_file"; then |
6338 |
|
case $deplibs_check_method in |
6339 |
|
"file_magic "*) |
6340 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6341 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6342 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6343 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
6344 |
|
: |
6345 |
|
else |
6346 |
|
cat <<EOF 1>&2 |
6347 |
|
|
6348 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
*** Warning: the command libtool uses to detect shared libraries, |
6349 |
*** create shared libraries on Solaris systems. Therefore, libtool |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
6350 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
*** The result is that libtool may fail to recognize shared libraries |
6351 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
*** as such. This will affect the creation of libtool libraries that |
6352 |
*** your PATH or compiler configuration so that the native linker is |
*** depend on shared libraries, but programs linked with such libtool |
6353 |
*** used, and then restart. |
*** libraries will work regardless of this problem. Nevertheless, you |
6354 |
|
*** may want to report the problem to your system manager and/or to |
6355 |
|
*** bug-libtool@gnu.org |
6356 |
|
|
6357 |
EOF |
EOF |
6358 |
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
fi ;; |
6359 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
esac |
6360 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
fi |
6361 |
else |
break |
|
ld_shlibs=no |
|
6362 |
fi |
fi |
6363 |
;; |
done |
6364 |
|
IFS="$lt_save_ifs" |
6365 |
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
6366 |
|
;; |
6367 |
|
esac |
6368 |
|
fi |
6369 |
|
|
6370 |
sunos4*) |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6371 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
if test -n "$MAGIC_CMD"; then |
6372 |
wlarc= |
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6373 |
hardcode_direct=yes |
echo "${ECHO_T}$MAGIC_CMD" >&6 |
6374 |
hardcode_shlibpath_var=no |
else |
6375 |
;; |
echo "$as_me:$LINENO: result: no" >&5 |
6376 |
|
echo "${ECHO_T}no" >&6 |
6377 |
|
fi |
6378 |
|
|
6379 |
*) |
else |
6380 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
MAGIC_CMD=: |
6381 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
fi |
6382 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
fi |
|
else |
|
|
ld_shlibs=no |
|
|
fi |
|
|
;; |
|
|
esac |
|
6383 |
|
|
|
if test "$ld_shlibs" = yes; then |
|
|
runpath_var=LD_RUN_PATH |
|
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
case $host_os in |
|
|
cygwin* | mingw* | pw32*) |
|
|
# dlltool doesn't understand --whole-archive et. al. |
|
|
whole_archive_flag_spec= |
|
|
;; |
|
|
*) |
|
|
# ancient GNU ld didn't support --whole-archive et. al. |
|
|
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
else |
|
|
whole_archive_flag_spec= |
|
|
fi |
|
|
;; |
|
|
esac |
|
6384 |
fi |
fi |
6385 |
|
;; |
6386 |
|
esac |
6387 |
|
|
6388 |
|
enable_dlopen=yes |
6389 |
|
enable_win32_dll=no |
6390 |
|
|
6391 |
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6392 |
|
if test "${enable_libtool_lock+set}" = set; then |
6393 |
|
enableval="$enable_libtool_lock" |
6394 |
|
|
6395 |
|
fi; |
6396 |
|
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
6397 |
|
|
6398 |
|
|
6399 |
|
# Check whether --with-pic or --without-pic was given. |
6400 |
|
if test "${with_pic+set}" = set; then |
6401 |
|
withval="$with_pic" |
6402 |
|
pic_mode="$withval" |
6403 |
else |
else |
6404 |
# PORTME fill in a description of your system's linker (not GNU ld) |
pic_mode=default |
6405 |
case $host_os in |
fi; |
6406 |
aix3*) |
test -z "$pic_mode" && pic_mode=default |
|
allow_undefined_flag=unsupported |
|
|
always_export_symbols=yes |
|
|
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
# Note: this linker hardcodes the directories in LIBPATH if there |
|
|
# are no directories specified by -L. |
|
|
hardcode_minus_L=yes |
|
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
# Neither direct hardcoding nor static linking is supported with a |
|
|
# broken collect2. |
|
|
hardcode_direct=unsupported |
|
|
fi |
|
|
;; |
|
6407 |
|
|
6408 |
aix4* | aix5*) |
# Use C for the default configuration in the libtool script |
6409 |
if test "$host_cpu" = ia64; then |
tagname= |
6410 |
# On IA64, the linker does run time linking by default, so we don't |
lt_save_CC="$CC" |
6411 |
# have to do anything special. |
ac_ext=c |
6412 |
aix_use_runtimelinking=no |
ac_cpp='$CPP $CPPFLAGS' |
6413 |
exp_sym_flag='-Bexport' |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6414 |
no_entry_flag="" |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6415 |
else |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
aix_use_runtimelinking=no |
|
6416 |
|
|
|
# Test if we are trying to use run time linking or normal |
|
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
# need to do runtime linking. |
|
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
for ld_flag in $LDFLAGS; do |
|
|
case $ld_flag in |
|
|
*-brtl*) |
|
|
aix_use_runtimelinking=yes |
|
|
break |
|
|
;; |
|
|
esac |
|
|
done |
|
|
esac |
|
6417 |
|
|
6418 |
exp_sym_flag='-bexport' |
# Source file extension for C test sources. |
6419 |
no_entry_flag='-bnoentry' |
ac_ext=c |
|
fi |
|
6420 |
|
|
6421 |
# When large executables or shared objects are built, AIX ld can |
# Object file extension for compiled C test sources. |
6422 |
# have problems creating the table of contents. If linking a library |
objext=o |
6423 |
# or program results in "error TOC overflow" add -mminimal-toc to |
objext=$objext |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
6424 |
|
|
6425 |
hardcode_direct=yes |
# Code to be used in simple compile tests |
6426 |
archive_cmds='' |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
hardcode_libdir_separator=':' |
|
|
if test "$GCC" = yes; then |
|
|
case $host_os in aix4.[012]|aix4.[012].*) |
|
|
collect2name=`${CC} -print-prog-name=collect2` |
|
|
if test -f "$collect2name" && \ |
|
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
then |
|
|
# We have reworked collect2 |
|
|
hardcode_direct=yes |
|
|
else |
|
|
# We have old collect2 |
|
|
hardcode_direct=unsupported |
|
|
# It fails to find uninstalled libraries when the uninstalled |
|
|
# path is not listed in the libpath. Setting hardcode_minus_L |
|
|
# to unsupported forces relinking |
|
|
hardcode_minus_L=yes |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_libdir_separator= |
|
|
fi |
|
|
esac |
|
6427 |
|
|
6428 |
shared_flag='-shared' |
# Code to be used in simple link tests |
6429 |
else |
lt_simple_link_test_code='int main(){return(0);}\n' |
|
# not using gcc |
|
|
if test "$host_cpu" = ia64; then |
|
|
shared_flag='${wl}-G' |
|
|
else |
|
|
if test "$aix_use_runtimelinking" = yes; then |
|
|
shared_flag='${wl}-G' |
|
|
else |
|
|
shared_flag='${wl}-bM:SRE' |
|
|
fi |
|
|
fi |
|
|
fi |
|
6430 |
|
|
|
# It seems that -bexpall can do strange things, so it is better to |
|
|
# generate a list of symbols to export. |
|
|
always_export_symbols=yes |
|
|
if test "$aix_use_runtimelinking" = yes; then |
|
|
# Warning - without using the other runtime loading flags (-brtl), |
|
|
# -berok will link without error, but may produce a broken library. |
|
|
allow_undefined_flag='-berok' |
|
|
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' |
|
|
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
else |
|
|
if test "$host_cpu" = ia64; then |
|
|
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
|
allow_undefined_flag="-z nodefs" |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
|
|
else |
|
|
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' |
|
|
# Warning - without using the other run time loading flags, |
|
|
# -berok will link without error, but may produce a broken library. |
|
|
allow_undefined_flag='${wl}-berok' |
|
|
# This is a bit strange, but is similar to how AIX traditionally builds |
|
|
# it's shared libraries. |
|
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' |
|
|
fi |
|
|
fi |
|
|
;; |
|
6431 |
|
|
6432 |
amigaos*) |
# If no C compiler was specified, use CC. |
6433 |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
LTCC=${LTCC-"$CC"} |
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_minus_L=yes |
|
|
# see comment about different semantics on the GNU ld section |
|
|
ld_shlibs=no |
|
|
;; |
|
6434 |
|
|
6435 |
cygwin* | mingw* | pw32*) |
# Allow CC to be a program name with arguments. |
6436 |
# When not using gcc, we currently assume that we are using |
compiler=$CC |
|
# Microsoft Visual C++. |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
# no search path for DLLs. |
|
|
hardcode_libdir_flag_spec=' ' |
|
|
allow_undefined_flag=unsupported |
|
|
# Tell ltmain to make .lib files, not .a files. |
|
|
libext=lib |
|
|
# FIXME: Setting linknames here is a bad hack. |
|
|
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
# The linker will automatically build a .lib file if we build a DLL. |
|
|
old_archive_from_new_cmds='true' |
|
|
# FIXME: Should let the user specify the lib program. |
|
|
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
;; |
|
6437 |
|
|
|
darwin* | rhapsody*) |
|
|
case "$host_os" in |
|
|
rhapsody* | darwin1.[012]) |
|
|
allow_undefined_flag='-undefined suppress' |
|
|
;; |
|
|
*) # Darwin 1.3 on |
|
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
|
|
;; |
|
|
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! |
|
|
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' |
|
|
# We need to add '_' to the symbols in $export_symbols first |
|
|
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
whole_archive_flag_spec='-all_load $convenience' |
|
|
;; |
|
6438 |
|
|
6439 |
freebsd1*) |
# |
6440 |
ld_shlibs=no |
# Check for any special shared library compilation flags. |
6441 |
|
# |
6442 |
|
lt_prog_cc_shlib= |
6443 |
|
if test "$GCC" = no; then |
6444 |
|
case $host_os in |
6445 |
|
sco3.2v5*) |
6446 |
|
lt_prog_cc_shlib='-belf' |
6447 |
;; |
;; |
6448 |
|
esac |
6449 |
|
fi |
6450 |
|
if test -n "$lt_prog_cc_shlib"; then |
6451 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
6452 |
|
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
6453 |
|
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
6454 |
|
else |
6455 |
|
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
6456 |
|
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
6457 |
|
lt_cv_prog_cc_can_build_shared=no |
6458 |
|
fi |
6459 |
|
fi |
6460 |
|
|
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
# does not break anything, and helps significantly (at the cost of a little |
|
|
# extra space). |
|
|
freebsd2.2*) |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6461 |
|
|
6462 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
# |
6463 |
freebsd2*) |
# Check to make sure the static flag actually works. |
6464 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
# |
6465 |
hardcode_direct=yes |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
6466 |
hardcode_minus_L=yes |
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
6467 |
hardcode_shlibpath_var=no |
if test "${lt_prog_compiler_static_works+set}" = set; then |
6468 |
;; |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6469 |
|
else |
6470 |
|
lt_prog_compiler_static_works=no |
6471 |
|
save_LDFLAGS="$LDFLAGS" |
6472 |
|
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
6473 |
|
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6474 |
|
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6475 |
|
# The compiler can only warn and ignore the option if not recognized |
6476 |
|
# So say no if there are warnings |
6477 |
|
if test -s conftest.err; then |
6478 |
|
# Append any errors to the config.log. |
6479 |
|
cat conftest.err 1>&5 |
6480 |
|
else |
6481 |
|
lt_prog_compiler_static_works=yes |
6482 |
|
fi |
6483 |
|
fi |
6484 |
|
$rm conftest* |
6485 |
|
LDFLAGS="$save_LDFLAGS" |
6486 |
|
|
6487 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
fi |
6488 |
freebsd*) |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6489 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6490 |
|
|
6491 |
hpux9* | hpux10* | hpux11*) |
if test x"$lt_prog_compiler_static_works" = xyes; then |
6492 |
case $host_os in |
: |
6493 |
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; |
else |
6494 |
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
lt_prog_compiler_static= |
6495 |
esac |
fi |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
hardcode_libdir_separator=: |
|
|
hardcode_direct=yes |
|
|
hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
# location of the library. |
|
|
export_dynamic_flag_spec='${wl}-E' |
|
|
;; |
|
6496 |
|
|
|
irix5* | irix6* | nonstopux*) |
|
|
if test "$GCC" = yes; then |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $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' |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
else |
|
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
fi |
|
|
hardcode_libdir_separator=: |
|
|
link_all_deplibs=yes |
|
|
;; |
|
6497 |
|
|
|
netbsd*) |
|
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
else |
|
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
fi |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6498 |
|
|
|
newsos6) |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_direct=yes |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
hardcode_libdir_separator=: |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6499 |
|
|
6500 |
openbsd*) |
lt_prog_compiler_no_builtin_flag= |
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
export_dynamic_flag_spec='${wl}-E' |
|
|
else |
|
|
case "$host_os" in |
|
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
;; |
|
|
*) |
|
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
;; |
|
6501 |
|
|
6502 |
os2*) |
if test "$GCC" = yes; then |
6503 |
hardcode_libdir_flag_spec='-L$libdir' |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
hardcode_minus_L=yes |
|
|
allow_undefined_flag=unsupported |
|
|
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
;; |
|
6504 |
|
|
|
osf3*) |
|
|
if test "$GCC" = yes; then |
|
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
|
|
else |
|
|
allow_undefined_flag=' -expect_unresolved \*' |
|
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
fi |
|
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
hardcode_libdir_separator=: |
|
|
;; |
|
6505 |
|
|
6506 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6507 |
if test "$GCC" = yes; then |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6508 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6509 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6510 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
else |
6511 |
else |
lt_cv_prog_compiler_rtti_exceptions=no |
6512 |
allow_undefined_flag=' -expect_unresolved \*' |
ac_outfile=conftest.$ac_objext |
6513 |
archive_cmds='$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' |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6514 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
6515 |
$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' |
# Insert the option either (1) after the last *FLAGS variable, or |
6516 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
6517 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
6518 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6519 |
|
# The option is referenced via a variable to avoid confusing sed. |
6520 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6521 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6522 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6523 |
|
-e 's:$: $lt_compiler_flag:'` |
6524 |
|
(eval echo "\"\$as_me:6524: $lt_compile\"" >&5) |
6525 |
|
(eval "$lt_compile" 2>conftest.err) |
6526 |
|
ac_status=$? |
6527 |
|
cat conftest.err >&5 |
6528 |
|
echo "$as_me:6528: \$? = $ac_status" >&5 |
6529 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
6530 |
|
# The compiler can only warn and ignore the option if not recognized |
6531 |
|
# So say no if there are warnings |
6532 |
|
if test ! -s conftest.err; then |
6533 |
|
lt_cv_prog_compiler_rtti_exceptions=yes |
6534 |
|
fi |
6535 |
|
fi |
6536 |
|
$rm conftest* |
6537 |
|
|
6538 |
#Both c and cxx compiler support -rpath directly |
fi |
6539 |
hardcode_libdir_flag_spec='-rpath $libdir' |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6540 |
fi |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
hardcode_libdir_separator=: |
|
|
;; |
|
6541 |
|
|
6542 |
sco3.2v5*) |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6543 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6544 |
hardcode_shlibpath_var=no |
else |
6545 |
runpath_var=LD_RUN_PATH |
: |
6546 |
hardcode_runpath_var=yes |
fi |
|
export_dynamic_flag_spec='${wl}-Bexport' |
|
|
;; |
|
6547 |
|
|
6548 |
solaris*) |
fi |
|
# gcc --version < 3.0 without binutils cannot create self contained |
|
|
# shared libraries reliably, requiring libgcc.a to resolve some of |
|
|
# the object symbols generated in some cases. Libraries that use |
|
|
# assert need libgcc.a to resolve __eprintf, for example. Linking |
|
|
# a copy of libgcc.a into every shared library to guarantee resolving |
|
|
# such symbols causes other problems: According to Tim Van Holder |
|
|
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate |
|
|
# (to the application) exception stack for one thing. |
|
|
no_undefined_flag=' -z defs' |
|
|
if test "$GCC" = yes; then |
|
|
case `$CC --version 2>/dev/null` in |
|
|
[12].*) |
|
|
cat <<EOF 1>&2 |
|
6549 |
|
|
6550 |
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
lt_prog_compiler_wl= |
6551 |
*** create self contained shared libraries on Solaris systems, without |
lt_prog_compiler_pic= |
6552 |
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
lt_prog_compiler_static= |
|
*** -no-undefined support, which will at least allow you to build shared |
|
|
*** libraries. However, you may find that when you link such libraries |
|
|
*** into an application without using GCC, you have to manually add |
|
|
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to |
|
|
*** upgrade to a newer version of GCC. Another option is to rebuild your |
|
|
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. |
|
6553 |
|
|
6554 |
EOF |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6555 |
no_undefined_flag= |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
6556 |
|
|
6557 |
|
if test "$GCC" = yes; then |
6558 |
|
lt_prog_compiler_wl='-Wl,' |
6559 |
|
lt_prog_compiler_static='-static' |
6560 |
|
|
6561 |
|
case $host_os in |
6562 |
|
aix*) |
6563 |
|
# All AIX code is PIC. |
6564 |
|
if test "$host_cpu" = ia64; then |
6565 |
|
# AIX 5 now supports IA64 processor |
6566 |
|
lt_prog_compiler_static='-Bstatic' |
6567 |
|
fi |
6568 |
|
;; |
6569 |
|
|
6570 |
|
amigaos*) |
6571 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
6572 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
6573 |
|
# like `-m68040'. |
6574 |
|
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6575 |
|
;; |
6576 |
|
|
6577 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6578 |
|
# PIC is the default for these OSes. |
6579 |
|
;; |
6580 |
|
|
6581 |
|
mingw* | pw32* | os2*) |
6582 |
|
# This hack is so that the source file can tell whether it is being |
6583 |
|
# built for inclusion in a dll (and should export symbols for example). |
6584 |
|
lt_prog_compiler_pic='-DDLL_EXPORT' |
6585 |
|
;; |
6586 |
|
|
6587 |
|
darwin* | rhapsody*) |
6588 |
|
# PIC is the default on this platform |
6589 |
|
# Common symbols not allowed in MH_DYLIB files |
6590 |
|
lt_prog_compiler_pic='-fno-common' |
6591 |
|
;; |
6592 |
|
|
6593 |
|
msdosdjgpp*) |
6594 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
6595 |
|
# on systems that don't support them. |
6596 |
|
lt_prog_compiler_can_build_shared=no |
6597 |
|
enable_shared=no |
6598 |
|
;; |
6599 |
|
|
6600 |
|
sysv4*MP*) |
6601 |
|
if test -d /usr/nec; then |
6602 |
|
lt_prog_compiler_pic=-Kconform_pic |
6603 |
|
fi |
6604 |
|
;; |
6605 |
|
|
6606 |
|
hpux*) |
6607 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6608 |
|
# not for PA HP-UX. |
6609 |
|
case "$host_cpu" in |
6610 |
|
hppa*64*|ia64*) |
6611 |
|
# +Z the default |
6612 |
|
;; |
6613 |
|
*) |
6614 |
|
lt_prog_compiler_pic='-fPIC' |
6615 |
;; |
;; |
6616 |
esac |
esac |
6617 |
fi |
;; |
6618 |
# $CC -shared without GNU ld will not create a library from C++ |
|
6619 |
# object files and a static libstdc++, better avoid it by now |
*) |
6620 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='-fPIC' |
6621 |
archive_expsym_cmds='$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' |
|
|
hardcode_libdir_flag_spec='-R$libdir' |
|
|
hardcode_shlibpath_var=no |
|
|
case $host_os in |
|
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
6622 |
esac |
esac |
6623 |
link_all_deplibs=yes |
else |
6624 |
;; |
# PORTME Check for flag to pass linker flags through the system compiler. |
6625 |
|
case $host_os in |
6626 |
|
aix*) |
6627 |
|
lt_prog_compiler_wl='-Wl,' |
6628 |
|
if test "$host_cpu" = ia64; then |
6629 |
|
# AIX 5 now supports IA64 processor |
6630 |
|
lt_prog_compiler_static='-Bstatic' |
6631 |
|
else |
6632 |
|
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6633 |
|
fi |
6634 |
|
;; |
6635 |
|
|
6636 |
sunos4*) |
mingw* | pw32* | os2*) |
6637 |
if test "x$host_vendor" = xsequent; then |
# This hack is so that the source file can tell whether it is being |
6638 |
# Use $CC to link under sequent, because it throws in some extra .o |
# built for inclusion in a dll (and should export symbols for example). |
6639 |
# files that make .init and .fini sections work. |
lt_prog_compiler_pic='-DDLL_EXPORT' |
6640 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
;; |
|
else |
|
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
fi |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_direct=yes |
|
|
hardcode_minus_L=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6641 |
|
|
6642 |
sysv4) |
hpux9* | hpux10* | hpux11*) |
6643 |
case $host_vendor in |
lt_prog_compiler_wl='-Wl,' |
6644 |
sni) |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6645 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# not for PA HP-UX. |
6646 |
hardcode_direct=yes # is this really true??? |
case "$host_cpu" in |
6647 |
;; |
hppa*64*|ia64*) |
6648 |
siemens) |
# +Z the default |
6649 |
## LD is ld it makes a PLAMLIB |
;; |
6650 |
## CC just makes a GrossModule. |
*) |
6651 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='+Z' |
6652 |
reload_cmds='$CC -r -o $output$reload_objs' |
;; |
6653 |
hardcode_direct=no |
esac |
6654 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
6655 |
|
lt_prog_compiler_static='${wl}-a ${wl}archive' |
6656 |
|
;; |
6657 |
|
|
6658 |
|
irix5* | irix6* | nonstopux*) |
6659 |
|
lt_prog_compiler_wl='-Wl,' |
6660 |
|
# PIC (with -KPIC) is the default. |
6661 |
|
lt_prog_compiler_static='-non_shared' |
6662 |
|
;; |
6663 |
|
|
6664 |
|
newsos6) |
6665 |
|
lt_prog_compiler_pic='-KPIC' |
6666 |
|
lt_prog_compiler_static='-Bstatic' |
6667 |
|
;; |
6668 |
|
|
6669 |
|
linux*) |
6670 |
|
case $CC in |
6671 |
|
icc* | ecc*) |
6672 |
|
lt_prog_compiler_wl='-Wl,' |
6673 |
|
lt_prog_compiler_pic='-KPIC' |
6674 |
|
lt_prog_compiler_static='-static' |
6675 |
;; |
;; |
6676 |
motorola) |
ccc*) |
6677 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Wl,' |
6678 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
# All Alpha code is PIC. |
6679 |
|
lt_prog_compiler_static='-non_shared' |
6680 |
;; |
;; |
6681 |
esac |
esac |
6682 |
runpath_var='LD_RUN_PATH' |
;; |
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6683 |
|
|
6684 |
sysv4.3*) |
osf3* | osf4* | osf5*) |
6685 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Wl,' |
6686 |
hardcode_shlibpath_var=no |
# All OSF/1 code is PIC. |
6687 |
export_dynamic_flag_spec='-Bexport' |
lt_prog_compiler_static='-non_shared' |
6688 |
;; |
;; |
|
|
|
|
sysv5*) |
|
|
no_undefined_flag=' -z text' |
|
|
# $CC -shared without GNU ld will not create a library from C++ |
|
|
# object files and a static libstdc++, better avoid it by now |
|
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
archive_expsym_cmds='$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' |
|
|
hardcode_libdir_flag_spec= |
|
|
hardcode_shlibpath_var=no |
|
|
runpath_var='LD_RUN_PATH' |
|
|
;; |
|
|
|
|
|
uts4*) |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6689 |
|
|
6690 |
dgux*) |
sco3.2v5*) |
6691 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='-Kpic' |
6692 |
hardcode_libdir_flag_spec='-L$libdir' |
lt_prog_compiler_static='-dn' |
6693 |
hardcode_shlibpath_var=no |
;; |
|
;; |
|
6694 |
|
|
6695 |
sysv4*MP*) |
solaris*) |
6696 |
if test -d /usr/nec; then |
lt_prog_compiler_wl='-Wl,' |
6697 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_pic='-KPIC' |
6698 |
hardcode_shlibpath_var=no |
lt_prog_compiler_static='-Bstatic' |
6699 |
runpath_var=LD_RUN_PATH |
;; |
|
hardcode_runpath_var=yes |
|
|
ld_shlibs=yes |
|
|
fi |
|
|
;; |
|
6700 |
|
|
6701 |
sysv4.2uw2*) |
sunos4*) |
6702 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Qoption ld ' |
6703 |
hardcode_direct=yes |
lt_prog_compiler_pic='-PIC' |
6704 |
hardcode_minus_L=no |
lt_prog_compiler_static='-Bstatic' |
6705 |
hardcode_shlibpath_var=no |
;; |
|
hardcode_runpath_var=yes |
|
|
runpath_var=LD_RUN_PATH |
|
|
;; |
|
6706 |
|
|
6707 |
sysv5uw7* | unixware7*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6708 |
no_undefined_flag='${wl}-z ${wl}text' |
lt_prog_compiler_wl='-Wl,' |
6709 |
if test "$GCC" = yes; then |
lt_prog_compiler_pic='-KPIC' |
6710 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
lt_prog_compiler_static='-Bstatic' |
6711 |
else |
;; |
|
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
fi |
|
|
runpath_var='LD_RUN_PATH' |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6712 |
|
|
6713 |
*) |
sysv4*MP*) |
6714 |
ld_shlibs=no |
if test -d /usr/nec ;then |
6715 |
;; |
lt_prog_compiler_pic='-Kconform_pic' |
6716 |
esac |
lt_prog_compiler_static='-Bstatic' |
6717 |
fi |
fi |
6718 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
;; |
|
echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
test "$ld_shlibs" = no && can_build_shared=no |
|
6719 |
|
|
6720 |
# Check hardcoding attributes. |
uts4*) |
6721 |
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
lt_prog_compiler_pic='-pic' |
6722 |
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
lt_prog_compiler_static='-Bstatic' |
6723 |
hardcode_action= |
;; |
|
if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
test -n "$runpath_var"; then |
|
6724 |
|
|
6725 |
# We can hardcode non-existant directories. |
*) |
6726 |
if test "$hardcode_direct" != no && |
lt_prog_compiler_can_build_shared=no |
6727 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
;; |
6728 |
# have to relink, otherwise we might link with an installed library |
esac |
|
# when we should be linking with a yet-to-be-installed one |
|
|
## test "$hardcode_shlibpath_var" != no && |
|
|
test "$hardcode_minus_L" != no; then |
|
|
# Linking always hardcodes the temporary library directory. |
|
|
hardcode_action=relink |
|
|
else |
|
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
hardcode_action=immediate |
|
6729 |
fi |
fi |
6730 |
|
|
6731 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6732 |
|
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
6733 |
|
|
6734 |
|
# |
6735 |
|
# Check to make sure the PIC flag actually works. |
6736 |
|
# |
6737 |
|
if test -n "$lt_prog_compiler_pic"; then |
6738 |
|
|
6739 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6740 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6741 |
|
if test "${lt_prog_compiler_pic_works+set}" = set; then |
6742 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6743 |
else |
else |
6744 |
# We cannot hardcode anything, or else we can only hardcode existing |
lt_prog_compiler_pic_works=no |
6745 |
# directories. |
ac_outfile=conftest.$ac_objext |
6746 |
hardcode_action=unsupported |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6747 |
|
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6748 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
6749 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
6750 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
6751 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6752 |
|
# The option is referenced via a variable to avoid confusing sed. |
6753 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6754 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6755 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6756 |
|
-e 's:$: $lt_compiler_flag:'` |
6757 |
|
(eval echo "\"\$as_me:6757: $lt_compile\"" >&5) |
6758 |
|
(eval "$lt_compile" 2>conftest.err) |
6759 |
|
ac_status=$? |
6760 |
|
cat conftest.err >&5 |
6761 |
|
echo "$as_me:6761: \$? = $ac_status" >&5 |
6762 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
6763 |
|
# The compiler can only warn and ignore the option if not recognized |
6764 |
|
# So say no if there are warnings |
6765 |
|
if test ! -s conftest.err; then |
6766 |
|
lt_prog_compiler_pic_works=yes |
6767 |
|
fi |
6768 |
|
fi |
6769 |
|
$rm conftest* |
6770 |
|
|
6771 |
fi |
fi |
6772 |
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6773 |
echo "${ECHO_T}$hardcode_action" >&6 |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
6774 |
|
|
6775 |
striplib= |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
6776 |
old_striplib= |
case $lt_prog_compiler_pic in |
6777 |
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
"" | " "*) ;; |
6778 |
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6779 |
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
esac |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
echo "$as_me:$LINENO: result: yes" >&5 |
|
|
echo "${ECHO_T}yes" >&6 |
|
6780 |
else |
else |
6781 |
echo "$as_me:$LINENO: result: no" >&5 |
lt_prog_compiler_pic= |
6782 |
echo "${ECHO_T}no" >&6 |
lt_prog_compiler_can_build_shared=no |
6783 |
fi |
fi |
6784 |
|
|
6785 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
fi |
6786 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
case "$host_os" in |
6787 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
6788 |
|
*djgpp*) |
6789 |
|
lt_prog_compiler_pic= |
6790 |
|
;; |
6791 |
|
*) |
6792 |
|
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6793 |
|
;; |
6794 |
|
esac |
6795 |
|
|
6796 |
# PORTME Fill in your ld.so characteristics |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6797 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6798 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6799 |
library_names_spec= |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6800 |
libname_spec='lib$name' |
else |
6801 |
soname_spec= |
lt_cv_prog_compiler_c_o=no |
6802 |
postinstall_cmds= |
$rm -r conftest 2>/dev/null |
6803 |
postuninstall_cmds= |
mkdir conftest |
6804 |
finish_cmds= |
cd conftest |
6805 |
finish_eval= |
mkdir out |
6806 |
shlibpath_var= |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6807 |
shlibpath_overrides_runpath=unknown |
|
6808 |
version_type=none |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
6809 |
dynamic_linker="$host_os ld.so" |
# Insert the option either (1) after the last *FLAGS variable, or |
6810 |
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib" |
# (2) before a word containing "conftest.", or (3) at the end. |
6811 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib" |
# Note that $ac_compile itself does not contain backslashes and begins |
6812 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6813 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6814 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6815 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6816 |
|
-e 's:$: $lt_compiler_flag:'` |
6817 |
|
(eval echo "\"\$as_me:6817: $lt_compile\"" >&5) |
6818 |
|
(eval "$lt_compile" 2>out/conftest.err) |
6819 |
|
ac_status=$? |
6820 |
|
cat out/conftest.err >&5 |
6821 |
|
echo "$as_me:6821: \$? = $ac_status" >&5 |
6822 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6823 |
|
then |
6824 |
|
# The compiler can only warn and ignore the option if not recognized |
6825 |
|
# So say no if there are warnings |
6826 |
|
if test ! -s out/conftest.err; then |
6827 |
|
lt_cv_prog_compiler_c_o=yes |
6828 |
|
fi |
6829 |
|
fi |
6830 |
|
chmod u+w . |
6831 |
|
$rm conftest* |
6832 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
6833 |
|
# template instantiation |
6834 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6835 |
|
$rm out/* && rmdir out |
6836 |
|
cd .. |
6837 |
|
rmdir conftest |
6838 |
|
$rm conftest* |
6839 |
|
|
6840 |
case $host_os in |
fi |
6841 |
aix3*) |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6842 |
version_type=linux |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
|
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
shlibpath_var=LIBPATH |
|
6843 |
|
|
|
# AIX has no versioning support, so we append a major version to the name. |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
;; |
|
6844 |
|
|
6845 |
aix4* | aix5*) |
hard_links="nottested" |
6846 |
version_type=linux |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6847 |
need_lib_prefix=no |
# do not overwrite the value of need_locks provided by the user |
6848 |
need_version=no |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6849 |
hardcode_into_libs=yes |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6850 |
if test "$host_cpu" = ia64; then |
hard_links=yes |
6851 |
# AIX 5 supports IA64 |
$rm conftest* |
6852 |
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6853 |
shlibpath_var=LD_LIBRARY_PATH |
touch conftest.a |
6854 |
else |
ln conftest.a conftest.b 2>&5 || hard_links=no |
6855 |
# With GCC up to 2.95.x, collect2 would create an import file |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6856 |
# for dependence libraries. The import file would start with |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
6857 |
# the line `#! .'. This would cause the generated library to |
echo "${ECHO_T}$hard_links" >&6 |
6858 |
# depend on `.', always an invalid library. This was fixed in |
if test "$hard_links" = no; then |
6859 |
# development snapshots of GCC prior to 3.0. |
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6860 |
case $host_os in |
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6861 |
aix4 | aix4.[01] | aix4.[01].*) |
need_locks=warn |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
echo ' yes ' |
|
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
: |
|
|
else |
|
|
can_build_shared=no |
|
|
fi |
|
|
;; |
|
|
esac |
|
|
# AIX (on Power*) has no versioning support, so currently we can |
|
|
# not hardcode correct soname into executable. Probably we can |
|
|
# add versioning support to collect2, so additional links can |
|
|
# be useful in future. |
|
|
if test "$aix_use_runtimelinking" = yes; then |
|
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
# instead of lib<name>.a to let people know that these are not |
|
|
# typical AIX shared libraries. |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
else |
|
|
# We preserve .a as extension for shared libraries through AIX4.2 |
|
|
# and later when we are not doing run time linking. |
|
|
library_names_spec='${libname}${release}.a $libname.a' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
fi |
|
|
shlibpath_var=LIBPATH |
|
6862 |
fi |
fi |
6863 |
hardcode_into_libs=yes |
else |
6864 |
;; |
need_locks=no |
6865 |
|
fi |
|
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' |
|
|
;; |
|
6866 |
|
|
6867 |
beos*) |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6868 |
library_names_spec='${libname}.so' |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
dynamic_linker="$host_os ld.so" |
|
|
shlibpath_var=LIBRARY_PATH |
|
|
;; |
|
6869 |
|
|
6870 |
bsdi4*) |
runpath_var= |
6871 |
version_type=linux |
allow_undefined_flag= |
6872 |
need_version=no |
enable_shared_with_static_runtimes=no |
6873 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
archive_cmds= |
6874 |
soname_spec='${libname}${release}.so$major' |
archive_expsym_cmds= |
6875 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
old_archive_From_new_cmds= |
6876 |
shlibpath_var=LD_LIBRARY_PATH |
old_archive_from_expsyms_cmds= |
6877 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
export_dynamic_flag_spec= |
6878 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
whole_archive_flag_spec= |
6879 |
export_dynamic_flag_spec=-rdynamic |
thread_safe_flag_spec= |
6880 |
# the default ld.so.conf also contains /usr/contrib/lib and |
hardcode_libdir_flag_spec= |
6881 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
hardcode_libdir_flag_spec_ld= |
6882 |
# libtool to hard-code these into programs |
hardcode_libdir_separator= |
6883 |
;; |
hardcode_direct=no |
6884 |
|
hardcode_minus_L=no |
6885 |
|
hardcode_shlibpath_var=unsupported |
6886 |
|
link_all_deplibs=unknown |
6887 |
|
hardcode_automatic=no |
6888 |
|
module_cmds= |
6889 |
|
module_expsym_cmds= |
6890 |
|
always_export_symbols=no |
6891 |
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6892 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
6893 |
|
# included in the symbol list |
6894 |
|
include_expsyms= |
6895 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
6896 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
6897 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6898 |
|
# as well as any symbol that contains `d'. |
6899 |
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6900 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6901 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
6902 |
|
# the symbol is explicitly referenced. Since portable code cannot |
6903 |
|
# rely on this symbol name, it's probably fine to never include it in |
6904 |
|
# preloaded symbol tables. |
6905 |
|
extract_expsyms_cmds= |
6906 |
|
|
6907 |
cygwin* | mingw* | pw32*) |
case $host_os in |
6908 |
version_type=windows |
cygwin* | mingw* | pw32*) |
6909 |
need_version=no |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
6910 |
need_lib_prefix=no |
# When not using gcc, we currently assume that we are using |
6911 |
case $GCC,$host_os in |
# Microsoft Visual C++. |
6912 |
yes,cygwin*) |
if test "$GCC" != yes; then |
6913 |
library_names_spec='$libname.dll.a' |
with_gnu_ld=no |
6914 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
fi |
|
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
|
|
dldir=$destdir/`dirname \$dlpath`~ |
|
|
test -d \$dldir || mkdir -p \$dldir~ |
|
|
$install_prog .libs/$dlname \$dldir/$dlname' |
|
|
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
dlpath=$dir/\$dldll~ |
|
|
$rm \$dlpath' |
|
|
;; |
|
|
yes,mingw*) |
|
|
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` |
|
|
;; |
|
|
yes,pw32*) |
|
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' |
|
6915 |
;; |
;; |
6916 |
*) |
openbsd*) |
6917 |
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
with_gnu_ld=no |
6918 |
;; |
;; |
6919 |
esac |
esac |
|
dynamic_linker='Win32 ld.exe' |
|
|
# FIXME: first we should search . and the directory the executable is in |
|
|
shlibpath_var=PATH |
|
|
;; |
|
6920 |
|
|
6921 |
darwin* | rhapsody*) |
ld_shlibs=yes |
6922 |
dynamic_linker="$host_os dyld" |
if test "$with_gnu_ld" = yes; then |
6923 |
version_type=darwin |
# If archive_cmds runs LD, not CC, wlarc should be empty |
6924 |
need_lib_prefix=no |
wlarc='${wl}' |
|
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}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' |
|
|
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
|
|
shlibpath_overrides_runpath=yes |
|
|
shlibpath_var=DYLD_LIBRARY_PATH |
|
|
;; |
|
6925 |
|
|
6926 |
freebsd1*) |
# See if GNU ld supports shared libraries. |
6927 |
dynamic_linker=no |
case $host_os in |
6928 |
;; |
aix3* | aix4* | aix5*) |
6929 |
|
# On AIX/PPC, the GNU linker is very broken |
6930 |
|
if test "$host_cpu" != ia64; then |
6931 |
|
ld_shlibs=no |
6932 |
|
cat <<EOF 1>&2 |
6933 |
|
|
6934 |
freebsd*) |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
6935 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
*** to be unable to reliably create shared libraries on AIX. |
6936 |
version_type=freebsd-$objformat |
*** Therefore, libtool is disabling shared libraries support. If you |
6937 |
case $version_type in |
*** really care for shared libraries, you may want to modify your PATH |
6938 |
freebsd-elf*) |
*** so that a non-GNU linker is found, and then restart. |
6939 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
6940 |
need_version=no |
EOF |
6941 |
need_lib_prefix=no |
fi |
6942 |
;; |
;; |
6943 |
freebsd-*) |
|
6944 |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
amigaos*) |
6945 |
need_version=yes |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
6946 |
|
hardcode_libdir_flag_spec='-L$libdir' |
6947 |
|
hardcode_minus_L=yes |
6948 |
|
|
6949 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
6950 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
6951 |
|
# to version 4, is to share data among multiple programs linked |
6952 |
|
# with the same dynamic library. Since this doesn't match the |
6953 |
|
# behavior of shared libraries on other platforms, we can't use |
6954 |
|
# them. |
6955 |
|
ld_shlibs=no |
6956 |
;; |
;; |
|
esac |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
case $host_os in |
|
|
freebsd2*) |
|
|
shlibpath_overrides_runpath=yes |
|
|
;; |
|
|
*) |
|
|
shlibpath_overrides_runpath=no |
|
|
hardcode_into_libs=yes |
|
|
;; |
|
|
esac |
|
|
;; |
|
6957 |
|
|
6958 |
gnu*) |
beos*) |
6959 |
version_type=linux |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
6960 |
need_lib_prefix=no |
allow_undefined_flag=unsupported |
6961 |
need_version=no |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
6962 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
# support --undefined. This deserves some investigation. FIXME |
6963 |
soname_spec='${libname}${release}.so$major' |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
6964 |
shlibpath_var=LD_LIBRARY_PATH |
else |
6965 |
hardcode_into_libs=yes |
ld_shlibs=no |
6966 |
;; |
fi |
6967 |
|
;; |
6968 |
|
|
6969 |
hpux9* | hpux10* | hpux11*) |
cygwin* | mingw* | pw32*) |
6970 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
6971 |
# link against other versions. |
# as there is no search path for DLLs. |
6972 |
dynamic_linker="$host_os dld.sl" |
hardcode_libdir_flag_spec='-L$libdir' |
6973 |
version_type=sunos |
allow_undefined_flag=unsupported |
6974 |
need_lib_prefix=no |
always_export_symbols=no |
6975 |
need_version=no |
enable_shared_with_static_runtimes=yes |
6976 |
shlibpath_var=SHLIB_PATH |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
6977 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
6978 |
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
6979 |
soname_spec='${libname}${release}.sl$major' |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
6980 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
# If the export-symbols file already is a .def file (1st line |
6981 |
postinstall_cmds='chmod 555 $lib' |
# is EXPORTS), use it as is; otherwise, prepend... |
6982 |
;; |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
6983 |
|
cp $export_symbols $output_objdir/$soname.def; |
6984 |
|
else |
6985 |
|
echo EXPORTS > $output_objdir/$soname.def; |
6986 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
6987 |
|
fi~ |
6988 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
6989 |
|
else |
6990 |
|
ld_shlibs=no |
6991 |
|
fi |
6992 |
|
;; |
6993 |
|
|
6994 |
irix5* | irix6* | nonstopux*) |
netbsd*) |
6995 |
case $host_os in |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
6996 |
nonstopux*) version_type=nonstopux ;; |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
6997 |
*) version_type=irix ;; |
wlarc= |
6998 |
esac |
else |
6999 |
need_lib_prefix=no |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7000 |
need_version=no |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7001 |
soname_spec='${libname}${release}.so$major' |
fi |
7002 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
;; |
|
case $host_os in |
|
|
irix5* | nonstopux*) |
|
|
libsuff= shlibsuff= |
|
|
;; |
|
|
*) |
|
|
case $LD in # libtool.m4 will add one of these switches to LD |
|
|
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
*) libsuff= shlibsuff= libmagic=never-match;; |
|
|
esac |
|
|
;; |
|
|
esac |
|
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
shlibpath_overrides_runpath=no |
|
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
;; |
|
7003 |
|
|
7004 |
# No shared lib support for Linux oldld, aout, or coff. |
solaris* | sysv5*) |
7005 |
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7006 |
dynamic_linker=no |
ld_shlibs=no |
7007 |
;; |
cat <<EOF 1>&2 |
7008 |
|
|
7009 |
# This must be Linux ELF. |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7010 |
linux-gnu*) |
*** create shared libraries on Solaris systems. Therefore, libtool |
7011 |
version_type=linux |
*** is disabling shared libraries support. We urge you to upgrade GNU |
7012 |
need_lib_prefix=no |
*** binutils to release 2.9.1 or newer. Another option is to modify |
7013 |
need_version=no |
*** your PATH or compiler configuration so that the native linker is |
7014 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
*** used, and then restart. |
|
soname_spec='${libname}${release}.so$major' |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
shlibpath_overrides_runpath=no |
|
|
# This implies no fast_install, which is unacceptable. |
|
|
# Some rework will be needed to allow for fast_install |
|
|
# before this can be enabled. |
|
|
hardcode_into_libs=yes |
|
7015 |
|
|
7016 |
case $host_cpu:$lt_cv_cc_64bit_output in |
EOF |
7017 |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7018 |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7019 |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7020 |
;; |
else |
7021 |
esac |
ld_shlibs=no |
7022 |
|
fi |
7023 |
|
;; |
7024 |
|
|
7025 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
sunos4*) |
7026 |
# powerpc, because MkLinux only supported shared libraries with the |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7027 |
# GNU dynamic linker. Since this was broken with cross compilers, |
wlarc= |
7028 |
# most powerpc-linux boxes support dynamic linking these days and |
hardcode_direct=yes |
7029 |
# people can always --disable-shared, the test was removed, and we |
hardcode_shlibpath_var=no |
7030 |
# assume the GNU/Linux dynamic linker is in use. |
;; |
|
dynamic_linker='GNU/Linux ld.so' |
|
|
;; |
|
7031 |
|
|
7032 |
netbsd*) |
linux*) |
7033 |
version_type=sunos |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7034 |
need_lib_prefix=no |
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7035 |
need_version=no |
archive_cmds="$tmp_archive_cmds" |
7036 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
supports_anon_versioning=no |
7037 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
case `$LD -v 2>/dev/null` in |
7038 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7039 |
dynamic_linker='NetBSD (a.out) ld.so' |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7040 |
else |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7041 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
*\ 2.11.*) ;; # other 2.11 versions |
7042 |
soname_spec='${libname}${release}.so$major' |
*) supports_anon_versioning=yes ;; |
7043 |
dynamic_linker='NetBSD ld.elf_so' |
esac |
7044 |
fi |
if test $supports_anon_versioning = yes; then |
7045 |
shlibpath_var=LD_LIBRARY_PATH |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7046 |
shlibpath_overrides_runpath=yes |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7047 |
hardcode_into_libs=yes |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
7048 |
;; |
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7049 |
|
else |
7050 |
newsos6) |
archive_expsym_cmds="$tmp_archive_cmds" |
7051 |
version_type=linux |
fi |
7052 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
else |
7053 |
shlibpath_var=LD_LIBRARY_PATH |
ld_shlibs=no |
7054 |
shlibpath_overrides_runpath=yes |
fi |
7055 |
;; |
;; |
7056 |
|
|
|
openbsd*) |
|
|
version_type=sunos |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
case "$host_os" in |
|
|
openbsd2.[89] | openbsd2.[89].*) |
|
|
shlibpath_overrides_runpath=no |
|
|
;; |
|
7057 |
*) |
*) |
7058 |
shlibpath_overrides_runpath=yes |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7059 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7060 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7061 |
|
else |
7062 |
|
ld_shlibs=no |
7063 |
|
fi |
7064 |
;; |
;; |
7065 |
esac |
esac |
|
else |
|
|
shlibpath_overrides_runpath=yes |
|
|
fi |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
|
|
|
|
os2*) |
|
|
libname_spec='$name' |
|
|
need_lib_prefix=no |
|
|
library_names_spec='$libname.dll $libname.a' |
|
|
dynamic_linker='OS/2 ld.exe' |
|
|
shlibpath_var=LIBPATH |
|
|
;; |
|
|
|
|
|
osf3* | osf4* | osf5*) |
|
|
version_type=osf |
|
|
need_version=no |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
hardcode_into_libs=yes |
|
|
;; |
|
|
|
|
|
sco3.2v5*) |
|
|
version_type=osf |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
|
|
|
|
solaris*) |
|
|
version_type=linux |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
shlibpath_overrides_runpath=yes |
|
|
hardcode_into_libs=yes |
|
|
# ldd complains unless libraries are executable |
|
|
postinstall_cmds='chmod +x $lib' |
|
|
;; |
|
|
|
|
|
sunos4*) |
|
|
version_type=sunos |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
shlibpath_overrides_runpath=yes |
|
|
if test "$with_gnu_ld" = yes; then |
|
|
need_lib_prefix=no |
|
|
fi |
|
|
need_version=yes |
|
|
;; |
|
7066 |
|
|
7067 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
if test "$ld_shlibs" = yes; then |
|
version_type=linux |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
case $host_vendor in |
|
|
sni) |
|
|
shlibpath_overrides_runpath=no |
|
|
need_lib_prefix=no |
|
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
7068 |
runpath_var=LD_RUN_PATH |
runpath_var=LD_RUN_PATH |
7069 |
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7070 |
|
export_dynamic_flag_spec='${wl}--export-dynamic' |
7071 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
7072 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7073 |
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7074 |
|
else |
7075 |
|
whole_archive_flag_spec= |
7076 |
|
fi |
7077 |
|
fi |
7078 |
|
else |
7079 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
7080 |
|
case $host_os in |
7081 |
|
aix3*) |
7082 |
|
allow_undefined_flag=unsupported |
7083 |
|
always_export_symbols=yes |
7084 |
|
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
7085 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
7086 |
|
# are no directories specified by -L. |
7087 |
|
hardcode_minus_L=yes |
7088 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
7089 |
|
# Neither direct hardcoding nor static linking is supported with a |
7090 |
|
# broken collect2. |
7091 |
|
hardcode_direct=unsupported |
7092 |
|
fi |
7093 |
;; |
;; |
|
siemens) |
|
|
need_lib_prefix=no |
|
|
;; |
|
|
motorola) |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
shlibpath_overrides_runpath=no |
|
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
;; |
|
|
esac |
|
|
;; |
|
|
|
|
|
uts4*) |
|
|
version_type=linux |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
|
|
|
|
dgux*) |
|
|
version_type=linux |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
;; |
|
7094 |
|
|
7095 |
sysv4*MP*) |
aix4* | aix5*) |
7096 |
if test -d /usr/nec ;then |
if test "$host_cpu" = ia64; then |
7097 |
version_type=linux |
# On IA64, the linker does run time linking by default, so we don't |
7098 |
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
# have to do anything special. |
7099 |
soname_spec='$libname.so.$major' |
aix_use_runtimelinking=no |
7100 |
shlibpath_var=LD_LIBRARY_PATH |
exp_sym_flag='-Bexport' |
7101 |
fi |
no_entry_flag="" |
7102 |
;; |
else |
7103 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
7104 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
7105 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7106 |
|
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
7107 |
|
else |
7108 |
|
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
7109 |
|
fi |
7110 |
|
aix_use_runtimelinking=no |
7111 |
|
|
7112 |
*) |
# Test if we are trying to use run time linking or normal |
7113 |
dynamic_linker=no |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7114 |
;; |
# need to do runtime linking. |
7115 |
esac |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7116 |
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
for ld_flag in $LDFLAGS; do |
7117 |
echo "${ECHO_T}$dynamic_linker" >&6 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7118 |
test "$dynamic_linker" = no && can_build_shared=no |
aix_use_runtimelinking=yes |
7119 |
|
break |
7120 |
|
fi |
7121 |
|
done |
7122 |
|
esac |
7123 |
|
|
7124 |
# Report the final consequences. |
exp_sym_flag='-bexport' |
7125 |
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
no_entry_flag='-bnoentry' |
7126 |
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
fi |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
echo "${ECHO_T}$can_build_shared" >&6 |
|
7127 |
|
|
7128 |
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
# When large executables or shared objects are built, AIX ld can |
7129 |
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
# have problems creating the table of contents. If linking a library |
7130 |
test "$can_build_shared" = "no" && enable_shared=no |
# or program results in "error TOC overflow" add -mminimal-toc to |
7131 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7132 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7133 |
|
|
7134 |
|
archive_cmds='' |
7135 |
|
hardcode_direct=yes |
7136 |
|
hardcode_libdir_separator=':' |
7137 |
|
link_all_deplibs=yes |
7138 |
|
|
7139 |
|
if test "$GCC" = yes; then |
7140 |
|
case $host_os in aix4.012|aix4.012.*) |
7141 |
|
# We only want to do this on AIX 4.2 and lower, the check |
7142 |
|
# below for broken collect2 doesn't work under 4.3+ |
7143 |
|
collect2name=`${CC} -print-prog-name=collect2` |
7144 |
|
if test -f "$collect2name" && \ |
7145 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
7146 |
|
then |
7147 |
|
# We have reworked collect2 |
7148 |
|
hardcode_direct=yes |
7149 |
|
else |
7150 |
|
# We have old collect2 |
7151 |
|
hardcode_direct=unsupported |
7152 |
|
# It fails to find uninstalled libraries when the uninstalled |
7153 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
7154 |
|
# to unsupported forces relinking |
7155 |
|
hardcode_minus_L=yes |
7156 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7157 |
|
hardcode_libdir_separator= |
7158 |
|
fi |
7159 |
|
esac |
7160 |
|
shared_flag='-shared' |
7161 |
|
else |
7162 |
|
# not using gcc |
7163 |
|
if test "$host_cpu" = ia64; then |
7164 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7165 |
|
# chokes on -Wl,-G. The following line is correct: |
7166 |
|
shared_flag='-G' |
7167 |
|
else |
7168 |
|
if test "$aix_use_runtimelinking" = yes; then |
7169 |
|
shared_flag='${wl}-G' |
7170 |
|
else |
7171 |
|
shared_flag='${wl}-bM:SRE' |
7172 |
|
fi |
7173 |
|
fi |
7174 |
|
fi |
7175 |
|
|
7176 |
# On AIX, shared libraries and static libraries use the same namespace, and |
# It seems that -bexpall does not export symbols beginning with |
7177 |
# are all built from PIC. |
# underscore (_), so it is better to generate a list of symbols to export. |
7178 |
case "$host_os" in |
always_export_symbols=yes |
7179 |
aix3*) |
if test "$aix_use_runtimelinking" = yes; then |
7180 |
test "$enable_shared" = yes && enable_static=no |
# Warning - without using the other runtime loading flags (-brtl), |
7181 |
if test -n "$RANLIB"; then |
# -berok will link without error, but may produce a broken library. |
7182 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
allow_undefined_flag='-berok' |
7183 |
postinstall_cmds='$RANLIB $lib' |
# Determine the default libpath from the value encoded in an empty executable. |
7184 |
fi |
cat >conftest.$ac_ext <<_ACEOF |
7185 |
;; |
/* confdefs.h. */ |
7186 |
|
_ACEOF |
7187 |
|
cat confdefs.h >>conftest.$ac_ext |
7188 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7189 |
|
/* end confdefs.h. */ |
7190 |
|
|
7191 |
aix4*) |
int |
7192 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
main () |
7193 |
test "$enable_shared" = yes && enable_static=no |
{ |
|
fi |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
echo "${ECHO_T}$enable_shared" >&6 |
|
7194 |
|
|
7195 |
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
; |
7196 |
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
return 0; |
7197 |
# Make sure either enable_shared or enable_static is yes. |
} |
7198 |
test "$enable_shared" = yes || enable_static=yes |
_ACEOF |
7199 |
echo "$as_me:$LINENO: result: $enable_static" >&5 |
rm -f conftest.$ac_objext conftest$ac_exeext |
7200 |
echo "${ECHO_T}$enable_static" >&6 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7201 |
|
(eval $ac_link) 2>conftest.er1 |
7202 |
|
ac_status=$? |
7203 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
7204 |
|
rm -f conftest.er1 |
7205 |
|
cat conftest.err >&5 |
7206 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7207 |
|
(exit $ac_status); } && |
7208 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
7209 |
|
|| test ! -s conftest.err' |
7210 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7211 |
|
(eval $ac_try) 2>&5 |
7212 |
|
ac_status=$? |
7213 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7214 |
|
(exit $ac_status); }; } && |
7215 |
|
{ ac_try='test -s conftest$ac_exeext' |
7216 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7217 |
|
(eval $ac_try) 2>&5 |
7218 |
|
ac_status=$? |
7219 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7220 |
|
(exit $ac_status); }; }; then |
7221 |
|
|
7222 |
if test "$hardcode_action" = relink; then |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7223 |
# Fast installation is not supported |
}'` |
7224 |
enable_fast_install=no |
# Check for a 64-bit object if we didn't find anything. |
7225 |
elif test "$shlibpath_overrides_runpath" = yes || |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7226 |
test "$enable_shared" = no; then |
}'`; fi |
7227 |
# Fast installation is not necessary |
else |
7228 |
enable_fast_install=needless |
echo "$as_me: failed program was:" >&5 |
7229 |
fi |
sed 's/^/| /' conftest.$ac_ext >&5 |
7230 |
|
|
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
if test "$GCC" = yes; then |
|
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
7231 |
fi |
fi |
7232 |
|
rm -f conftest.err conftest.$ac_objext \ |
7233 |
|
conftest$ac_exeext conftest.$ac_ext |
7234 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7235 |
|
|
7236 |
if test "x$enable_dlopen" != xyes; then |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7237 |
enable_dlopen=unknown |
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7238 |
enable_dlopen_self=unknown |
else |
7239 |
enable_dlopen_self_static=unknown |
if test "$host_cpu" = ia64; then |
7240 |
else |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7241 |
lt_cv_dlopen=no |
allow_undefined_flag="-z nodefs" |
7242 |
lt_cv_dlopen_libs= |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
7243 |
|
else |
7244 |
|
# Determine the default libpath from the value encoded in an empty executable. |
7245 |
|
cat >conftest.$ac_ext <<_ACEOF |
7246 |
|
/* confdefs.h. */ |
7247 |
|
_ACEOF |
7248 |
|
cat confdefs.h >>conftest.$ac_ext |
7249 |
|
cat >>conftest.$ac_ext <<_ACEOF |
7250 |
|
/* end confdefs.h. */ |
7251 |
|
|
7252 |
case $host_os in |
int |
7253 |
beos*) |
main () |
7254 |
lt_cv_dlopen="load_add_on" |
{ |
|
lt_cv_dlopen_libs= |
|
|
lt_cv_dlopen_self=yes |
|
|
;; |
|
7255 |
|
|
|
cygwin* | mingw* | pw32*) |
|
|
lt_cv_dlopen="LoadLibrary" |
|
|
lt_cv_dlopen_libs= |
|
|
;; |
|
|
|
|
|
*) |
|
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
|
|
if test "${ac_cv_func_shl_load+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define shl_load innocuous_shl_load |
|
|
|
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char shl_load (); below. |
|
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
<limits.h> exists even on freestanding compilers. */ |
|
|
|
|
|
#ifdef __STDC__ |
|
|
# include <limits.h> |
|
|
#else |
|
|
# include <assert.h> |
|
|
#endif |
|
|
|
|
|
#undef shl_load |
|
|
|
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
#ifdef __cplusplus |
|
|
extern "C" |
|
|
{ |
|
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char shl_load (); |
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
choke me |
|
|
#else |
|
|
char (*f) () = shl_load; |
|
|
#endif |
|
|
#ifdef __cplusplus |
|
|
} |
|
|
#endif |
|
|
|
|
|
int |
|
|
main () |
|
|
{ |
|
|
return f != shl_load; |
|
7256 |
; |
; |
7257 |
return 0; |
return 0; |
7258 |
} |
} |
7279 |
ac_status=$? |
ac_status=$? |
7280 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7281 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
|
ac_cv_func_shl_load=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
|
|
|
ac_cv_func_shl_load=no |
|
|
fi |
|
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
if test $ac_cv_func_shl_load = yes; then |
|
|
lt_cv_dlopen="shl_load" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-ldld $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
7282 |
|
|
7283 |
/* Override any gcc2 internal prototype to avoid an error. */ |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7284 |
#ifdef __cplusplus |
}'` |
7285 |
extern "C" |
# Check for a 64-bit object if we didn't find anything. |
7286 |
#endif |
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7287 |
/* We use char because int might match the return type of a gcc2 |
}'`; fi |
|
builtin and then its argument prototype would still apply. */ |
|
|
char shl_load (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
shl_load (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_dld_shl_load=yes |
|
7288 |
else |
else |
7289 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
7290 |
sed 's/^/| /' conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7291 |
|
|
|
ac_cv_lib_dld_shl_load=no |
|
7292 |
fi |
fi |
7293 |
rm -f conftest.err conftest.$ac_objext \ |
rm -f conftest.err conftest.$ac_objext \ |
7294 |
conftest$ac_exeext conftest.$ac_ext |
conftest$ac_exeext conftest.$ac_ext |
7295 |
LIBS=$ac_check_lib_save_LIBS |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
#define dlopen innocuous_dlopen |
|
7296 |
|
|
7297 |
/* System header to define __stub macros and hopefully few prototypes, |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7298 |
which can conflict with char dlopen (); below. |
# Warning - without using the other run time loading flags, |
7299 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
# -berok will link without error, but may produce a broken library. |
7300 |
<limits.h> exists even on freestanding compilers. */ |
no_undefined_flag=' ${wl}-bernotok' |
7301 |
|
allow_undefined_flag=' ${wl}-berok' |
7302 |
|
# -bexpall does not export symbols beginning with underscore (_) |
7303 |
|
always_export_symbols=yes |
7304 |
|
# Exported symbols can be pulled into shared objects from archives |
7305 |
|
whole_archive_flag_spec=' ' |
7306 |
|
archive_cmds_need_lc=yes |
7307 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
7308 |
|
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
7309 |
|
fi |
7310 |
|
fi |
7311 |
|
;; |
7312 |
|
|
7313 |
#ifdef __STDC__ |
amigaos*) |
7314 |
# include <limits.h> |
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
7315 |
#else |
hardcode_libdir_flag_spec='-L$libdir' |
7316 |
# include <assert.h> |
hardcode_minus_L=yes |
7317 |
#endif |
# see comment about different semantics on the GNU ld section |
7318 |
|
ld_shlibs=no |
7319 |
|
;; |
7320 |
|
|
7321 |
#undef dlopen |
bsdi4*) |
7322 |
|
export_dynamic_flag_spec=-rdynamic |
7323 |
|
;; |
7324 |
|
|
7325 |
/* Override any gcc2 internal prototype to avoid an error. */ |
cygwin* | mingw* | pw32*) |
7326 |
#ifdef __cplusplus |
# When not using gcc, we currently assume that we are using |
7327 |
extern "C" |
# Microsoft Visual C++. |
7328 |
{ |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
7329 |
#endif |
# no search path for DLLs. |
7330 |
/* We use char because int might match the return type of a gcc2 |
hardcode_libdir_flag_spec=' ' |
7331 |
builtin and then its argument prototype would still apply. */ |
allow_undefined_flag=unsupported |
7332 |
char dlopen (); |
# Tell ltmain to make .lib files, not .a files. |
7333 |
/* The GNU C library defines this for functions which it implements |
libext=lib |
7334 |
to always fail with ENOSYS. Some functions are actually named |
# Tell ltmain to make .dll files, not .so files. |
7335 |
something starting with __ and the normal name is an alias. */ |
shrext_cmds=".dll" |
7336 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
# FIXME: Setting linknames here is a bad hack. |
7337 |
choke me |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7338 |
#else |
# The linker will automatically build a .lib file if we build a DLL. |
7339 |
char (*f) () = dlopen; |
old_archive_From_new_cmds='true' |
7340 |
#endif |
# FIXME: Should let the user specify the lib program. |
7341 |
#ifdef __cplusplus |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7342 |
} |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
7343 |
#endif |
enable_shared_with_static_runtimes=yes |
7344 |
|
;; |
7345 |
|
|
7346 |
int |
darwin* | rhapsody*) |
7347 |
main () |
if test "$GXX" = yes ; then |
7348 |
{ |
archive_cmds_need_lc=no |
7349 |
return f != dlopen; |
case "$host_os" in |
7350 |
; |
rhapsody* | darwin1.[012]) |
7351 |
return 0; |
allow_undefined_flag='-undefined suppress' |
7352 |
} |
;; |
7353 |
_ACEOF |
*) # Darwin 1.3 on |
7354 |
rm -f conftest.$ac_objext conftest$ac_exeext |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7355 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
allow_undefined_flag='-flat_namespace -undefined suppress' |
7356 |
(eval $ac_link) 2>conftest.er1 |
else |
7357 |
ac_status=$? |
case ${MACOSX_DEPLOYMENT_TARGET} in |
7358 |
grep -v '^ *+' conftest.er1 >conftest.err |
10.[012]) |
7359 |
rm -f conftest.er1 |
allow_undefined_flag='-flat_namespace -undefined suppress' |
7360 |
cat conftest.err >&5 |
;; |
7361 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10.*) |
7362 |
(exit $ac_status); } && |
allow_undefined_flag='-undefined dynamic_lookup' |
7363 |
{ ac_try='test -z "$ac_c_werror_flag" |
;; |
7364 |
|| test ! -s conftest.err' |
esac |
7365 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
fi |
7366 |
(eval $ac_try) 2>&5 |
;; |
7367 |
ac_status=$? |
esac |
7368 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
lt_int_apple_cc_single_mod=no |
7369 |
(exit $ac_status); }; } && |
output_verbose_link_cmd='echo' |
7370 |
{ ac_try='test -s conftest$ac_exeext' |
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
7371 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
lt_int_apple_cc_single_mod=yes |
7372 |
(eval $ac_try) 2>&5 |
fi |
7373 |
ac_status=$? |
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
7374 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7375 |
(exit $ac_status); }; }; then |
else |
7376 |
ac_cv_func_dlopen=yes |
archive_cmds='$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' |
7377 |
else |
fi |
7378 |
echo "$as_me: failed program was:" >&5 |
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7379 |
sed 's/^/| /' conftest.$ac_ext >&5 |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
7380 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
7381 |
|
archive_expsym_cmds='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}' |
7382 |
|
else |
7383 |
|
archive_expsym_cmds='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}' |
7384 |
|
fi |
7385 |
|
module_expsym_cmds='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}' |
7386 |
|
hardcode_direct=no |
7387 |
|
hardcode_automatic=yes |
7388 |
|
hardcode_shlibpath_var=unsupported |
7389 |
|
whole_archive_flag_spec='-all_load $convenience' |
7390 |
|
link_all_deplibs=yes |
7391 |
|
else |
7392 |
|
ld_shlibs=no |
7393 |
|
fi |
7394 |
|
;; |
7395 |
|
|
7396 |
ac_cv_func_dlopen=no |
dgux*) |
7397 |
fi |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7398 |
rm -f conftest.err conftest.$ac_objext \ |
hardcode_libdir_flag_spec='-L$libdir' |
7399 |
conftest$ac_exeext conftest.$ac_ext |
hardcode_shlibpath_var=no |
7400 |
fi |
;; |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
|
if test $ac_cv_func_dlopen = yes; then |
|
|
lt_cv_dlopen="dlopen" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-ldl $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
7401 |
|
|
7402 |
/* Override any gcc2 internal prototype to avoid an error. */ |
freebsd1*) |
7403 |
#ifdef __cplusplus |
ld_shlibs=no |
7404 |
extern "C" |
;; |
|
#endif |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char dlopen (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
dlopen (); |
|
|
; |
|
|
return 0; |
|
|
} |
|
|
_ACEOF |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; }; then |
|
|
ac_cv_lib_dl_dlopen=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7405 |
|
|
7406 |
ac_cv_lib_dl_dlopen=no |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7407 |
fi |
# support. Future versions do this automatically, but an explicit c++rt0.o |
7408 |
rm -f conftest.err conftest.$ac_objext \ |
# does not break anything, and helps significantly (at the cost of a little |
7409 |
conftest$ac_exeext conftest.$ac_ext |
# extra space). |
7410 |
LIBS=$ac_check_lib_save_LIBS |
freebsd2.2*) |
7411 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7412 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7413 |
|
hardcode_direct=yes |
7414 |
|
hardcode_shlibpath_var=no |
7415 |
|
;; |
7416 |
|
|
7417 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7418 |
|
freebsd2*) |
7419 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7420 |
|
hardcode_direct=yes |
7421 |
|
hardcode_minus_L=yes |
7422 |
|
hardcode_shlibpath_var=no |
7423 |
|
;; |
7424 |
|
|
7425 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7426 |
|
freebsd* | kfreebsd*-gnu) |
7427 |
|
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7428 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7429 |
|
hardcode_direct=yes |
7430 |
|
hardcode_shlibpath_var=no |
7431 |
|
;; |
7432 |
|
|
7433 |
|
hpux9*) |
7434 |
|
if test "$GCC" = yes; then |
7435 |
|
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
7436 |
|
else |
7437 |
|
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
7438 |
|
fi |
7439 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7440 |
|
hardcode_libdir_separator=: |
7441 |
|
hardcode_direct=yes |
7442 |
|
|
7443 |
|
# hardcode_minus_L: Not really in the search PATH, |
7444 |
|
# but as the default location of the library. |
7445 |
|
hardcode_minus_L=yes |
7446 |
|
export_dynamic_flag_spec='${wl}-E' |
7447 |
|
;; |
7448 |
|
|
7449 |
|
hpux10* | hpux11*) |
7450 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7451 |
|
case "$host_cpu" in |
7452 |
|
hppa*64*|ia64*) |
7453 |
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7454 |
|
;; |
7455 |
|
*) |
7456 |
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7457 |
|
;; |
7458 |
|
esac |
7459 |
|
else |
7460 |
|
case "$host_cpu" in |
7461 |
|
hppa*64*|ia64*) |
7462 |
|
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
7463 |
|
;; |
7464 |
|
*) |
7465 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7466 |
|
;; |
7467 |
|
esac |
7468 |
|
fi |
7469 |
|
if test "$with_gnu_ld" = no; then |
7470 |
|
case "$host_cpu" in |
7471 |
|
hppa*64*) |
7472 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7473 |
|
hardcode_libdir_flag_spec_ld='+b $libdir' |
7474 |
|
hardcode_libdir_separator=: |
7475 |
|
hardcode_direct=no |
7476 |
|
hardcode_shlibpath_var=no |
7477 |
|
;; |
7478 |
|
ia64*) |
7479 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7480 |
|
hardcode_direct=no |
7481 |
|
hardcode_shlibpath_var=no |
7482 |
|
|
7483 |
|
# hardcode_minus_L: Not really in the search PATH, |
7484 |
|
# but as the default location of the library. |
7485 |
|
hardcode_minus_L=yes |
7486 |
|
;; |
7487 |
|
*) |
7488 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7489 |
|
hardcode_libdir_separator=: |
7490 |
|
hardcode_direct=yes |
7491 |
|
export_dynamic_flag_spec='${wl}-E' |
7492 |
|
|
7493 |
|
# hardcode_minus_L: Not really in the search PATH, |
7494 |
|
# but as the default location of the library. |
7495 |
|
hardcode_minus_L=yes |
7496 |
|
;; |
7497 |
|
esac |
7498 |
|
fi |
7499 |
|
;; |
7500 |
|
|
7501 |
|
irix5* | irix6* | nonstopux*) |
7502 |
|
if test "$GCC" = yes; then |
7503 |
|
archive_cmds='$CC -shared $libobjs $deplibs $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' |
7504 |
|
else |
7505 |
|
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
7506 |
|
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7507 |
|
fi |
7508 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7509 |
|
hardcode_libdir_separator=: |
7510 |
|
link_all_deplibs=yes |
7511 |
|
;; |
7512 |
|
|
7513 |
|
netbsd*) |
7514 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7515 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7516 |
|
else |
7517 |
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7518 |
|
fi |
7519 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7520 |
|
hardcode_direct=yes |
7521 |
|
hardcode_shlibpath_var=no |
7522 |
|
;; |
7523 |
|
|
7524 |
|
newsos6) |
7525 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7526 |
|
hardcode_direct=yes |
7527 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7528 |
|
hardcode_libdir_separator=: |
7529 |
|
hardcode_shlibpath_var=no |
7530 |
|
;; |
7531 |
|
|
7532 |
|
openbsd*) |
7533 |
|
hardcode_direct=yes |
7534 |
|
hardcode_shlibpath_var=no |
7535 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7536 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7537 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7538 |
|
export_dynamic_flag_spec='${wl}-E' |
7539 |
|
else |
7540 |
|
case $host_os in |
7541 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7542 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7543 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7544 |
|
;; |
7545 |
|
*) |
7546 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7547 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7548 |
|
;; |
7549 |
|
esac |
7550 |
|
fi |
7551 |
|
;; |
7552 |
|
|
7553 |
|
os2*) |
7554 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7555 |
|
hardcode_minus_L=yes |
7556 |
|
allow_undefined_flag=unsupported |
7557 |
|
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
7558 |
|
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7559 |
|
;; |
7560 |
|
|
7561 |
|
osf3*) |
7562 |
|
if test "$GCC" = yes; then |
7563 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7564 |
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
7565 |
|
else |
7566 |
|
allow_undefined_flag=' -expect_unresolved \*' |
7567 |
|
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
7568 |
|
fi |
7569 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7570 |
|
hardcode_libdir_separator=: |
7571 |
|
;; |
7572 |
|
|
7573 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
7574 |
|
if test "$GCC" = yes; then |
7575 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7576 |
|
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
7577 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7578 |
|
else |
7579 |
|
allow_undefined_flag=' -expect_unresolved \*' |
7580 |
|
archive_cmds='$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' |
7581 |
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7582 |
|
$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' |
7583 |
|
|
7584 |
|
# Both c and cxx compiler support -rpath directly |
7585 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
7586 |
|
fi |
7587 |
|
hardcode_libdir_separator=: |
7588 |
|
;; |
7589 |
|
|
7590 |
|
sco3.2v5*) |
7591 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7592 |
|
hardcode_shlibpath_var=no |
7593 |
|
export_dynamic_flag_spec='${wl}-Bexport' |
7594 |
|
runpath_var=LD_RUN_PATH |
7595 |
|
hardcode_runpath_var=yes |
7596 |
|
;; |
7597 |
|
|
7598 |
|
solaris*) |
7599 |
|
no_undefined_flag=' -z text' |
7600 |
|
if test "$GCC" = yes; then |
7601 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7602 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7603 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7604 |
|
else |
7605 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7606 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7607 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7608 |
|
fi |
7609 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7610 |
|
hardcode_shlibpath_var=no |
7611 |
|
case $host_os in |
7612 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
7613 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
7614 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7615 |
|
esac |
7616 |
|
link_all_deplibs=yes |
7617 |
|
;; |
7618 |
|
|
7619 |
|
sunos4*) |
7620 |
|
if test "x$host_vendor" = xsequent; then |
7621 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
7622 |
|
# files that make .init and .fini sections work. |
7623 |
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7624 |
|
else |
7625 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7626 |
|
fi |
7627 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7628 |
|
hardcode_direct=yes |
7629 |
|
hardcode_minus_L=yes |
7630 |
|
hardcode_shlibpath_var=no |
7631 |
|
;; |
7632 |
|
|
7633 |
|
sysv4) |
7634 |
|
case $host_vendor in |
7635 |
|
sni) |
7636 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7637 |
|
hardcode_direct=yes # is this really true??? |
7638 |
|
;; |
7639 |
|
siemens) |
7640 |
|
## LD is ld it makes a PLAMLIB |
7641 |
|
## CC just makes a GrossModule. |
7642 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7643 |
|
reload_cmds='$CC -r -o $output$reload_objs' |
7644 |
|
hardcode_direct=no |
7645 |
|
;; |
7646 |
|
motorola) |
7647 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7648 |
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7649 |
|
;; |
7650 |
|
esac |
7651 |
|
runpath_var='LD_RUN_PATH' |
7652 |
|
hardcode_shlibpath_var=no |
7653 |
|
;; |
7654 |
|
|
7655 |
|
sysv4.3*) |
7656 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7657 |
|
hardcode_shlibpath_var=no |
7658 |
|
export_dynamic_flag_spec='-Bexport' |
7659 |
|
;; |
7660 |
|
|
7661 |
|
sysv4*MP*) |
7662 |
|
if test -d /usr/nec; then |
7663 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7664 |
|
hardcode_shlibpath_var=no |
7665 |
|
runpath_var=LD_RUN_PATH |
7666 |
|
hardcode_runpath_var=yes |
7667 |
|
ld_shlibs=yes |
7668 |
|
fi |
7669 |
|
;; |
7670 |
|
|
7671 |
|
sysv4.2uw2*) |
7672 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7673 |
|
hardcode_direct=yes |
7674 |
|
hardcode_minus_L=no |
7675 |
|
hardcode_shlibpath_var=no |
7676 |
|
hardcode_runpath_var=yes |
7677 |
|
runpath_var=LD_RUN_PATH |
7678 |
|
;; |
7679 |
|
|
7680 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
7681 |
|
no_undefined_flag='${wl}-z ${wl}text' |
7682 |
|
if test "$GCC" = yes; then |
7683 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7684 |
|
else |
7685 |
|
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7686 |
|
fi |
7687 |
|
runpath_var='LD_RUN_PATH' |
7688 |
|
hardcode_shlibpath_var=no |
7689 |
|
;; |
7690 |
|
|
7691 |
|
sysv5*) |
7692 |
|
no_undefined_flag=' -z text' |
7693 |
|
# $CC -shared without GNU ld will not create a library from C++ |
7694 |
|
# object files and a static libstdc++, better avoid it by now |
7695 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7696 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7697 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7698 |
|
hardcode_libdir_flag_spec= |
7699 |
|
hardcode_shlibpath_var=no |
7700 |
|
runpath_var='LD_RUN_PATH' |
7701 |
|
;; |
7702 |
|
|
7703 |
|
uts4*) |
7704 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7705 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7706 |
|
hardcode_shlibpath_var=no |
7707 |
|
;; |
7708 |
|
|
7709 |
|
*) |
7710 |
|
ld_shlibs=no |
7711 |
|
;; |
7712 |
|
esac |
7713 |
|
fi |
7714 |
|
|
7715 |
|
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7716 |
|
echo "${ECHO_T}$ld_shlibs" >&6 |
7717 |
|
test "$ld_shlibs" = no && can_build_shared=no |
7718 |
|
|
7719 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
7720 |
|
if test "$GCC" = yes; then |
7721 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
7722 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
ac_check_lib_save_LIBS=$LIBS |
|
|
LIBS="-lsvld $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
7723 |
|
|
7724 |
/* Override any gcc2 internal prototype to avoid an error. */ |
# |
7725 |
#ifdef __cplusplus |
# Do we need to explicitly link libc? |
7726 |
extern "C" |
# |
7727 |
#endif |
case "x$archive_cmds_need_lc" in |
7728 |
/* We use char because int might match the return type of a gcc2 |
x|xyes) |
7729 |
builtin and then its argument prototype would still apply. */ |
# Assume -lc should be added |
7730 |
char dlopen (); |
archive_cmds_need_lc=yes |
7731 |
int |
|
7732 |
main () |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
7733 |
{ |
case $archive_cmds in |
7734 |
dlopen (); |
*'~'*) |
7735 |
; |
# FIXME: we may have to deal with multi-command sequences. |
7736 |
return 0; |
;; |
7737 |
} |
'$CC '*) |
7738 |
_ACEOF |
# Test whether the compiler implicitly links with -lc since on some |
7739 |
rm -f conftest.$ac_objext conftest$ac_exeext |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
7740 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
# to ld, don't add -lc before -lgcc. |
7741 |
(eval $ac_link) 2>conftest.er1 |
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7742 |
ac_status=$? |
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7743 |
grep -v '^ *+' conftest.er1 >conftest.err |
$rm conftest* |
7744 |
rm -f conftest.er1 |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7745 |
cat conftest.err >&5 |
|
7746 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7747 |
(exit $ac_status); } && |
(eval $ac_compile) 2>&5 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
7748 |
ac_status=$? |
ac_status=$? |
7749 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7750 |
(exit $ac_status); }; } && |
(exit $ac_status); } 2>conftest.err; then |
7751 |
{ ac_try='test -s conftest$ac_exeext' |
soname=conftest |
7752 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
lib=conftest |
7753 |
(eval $ac_try) 2>&5 |
libobjs=conftest.$ac_objext |
7754 |
|
deplibs= |
7755 |
|
wl=$lt_prog_compiler_wl |
7756 |
|
compiler_flags=-v |
7757 |
|
linker_flags=-v |
7758 |
|
verstring= |
7759 |
|
output_objdir=. |
7760 |
|
libname=conftest |
7761 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag |
7762 |
|
allow_undefined_flag= |
7763 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7764 |
|
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7765 |
ac_status=$? |
ac_status=$? |
7766 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7767 |
(exit $ac_status); }; }; then |
(exit $ac_status); } |
7768 |
ac_cv_lib_svld_dlopen=yes |
then |
7769 |
else |
archive_cmds_need_lc=no |
7770 |
echo "$as_me: failed program was:" >&5 |
else |
7771 |
sed 's/^/| /' conftest.$ac_ext >&5 |
archive_cmds_need_lc=yes |
7772 |
|
fi |
7773 |
|
allow_undefined_flag=$lt_save_allow_undefined_flag |
7774 |
|
else |
7775 |
|
cat conftest.err 1>&5 |
7776 |
|
fi |
7777 |
|
$rm conftest* |
7778 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7779 |
|
echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7780 |
|
;; |
7781 |
|
esac |
7782 |
|
fi |
7783 |
|
;; |
7784 |
|
esac |
7785 |
|
|
7786 |
ac_cv_lib_svld_dlopen=no |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7787 |
fi |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7788 |
rm -f conftest.err conftest.$ac_objext \ |
library_names_spec= |
7789 |
|
libname_spec='lib$name' |
7790 |
|
soname_spec= |
7791 |
|
shrext_cmds=".so" |
7792 |
|
postinstall_cmds= |
7793 |
|
postuninstall_cmds= |
7794 |
|
finish_cmds= |
7795 |
|
finish_eval= |
7796 |
|
shlibpath_var= |
7797 |
|
shlibpath_overrides_runpath=unknown |
7798 |
|
version_type=none |
7799 |
|
dynamic_linker="$host_os ld.so" |
7800 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7801 |
|
if test "$GCC" = yes; then |
7802 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7803 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7804 |
|
# if the path contains ";" then we assume it to be the separator |
7805 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
7806 |
|
# assumed that no part of a normal pathname contains ";" but that should |
7807 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
7808 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7809 |
|
else |
7810 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7811 |
|
fi |
7812 |
|
else |
7813 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7814 |
|
fi |
7815 |
|
need_lib_prefix=unknown |
7816 |
|
hardcode_into_libs=no |
7817 |
|
|
7818 |
|
# when you set need_version to no, make sure it does not cause -set_version |
7819 |
|
# flags to be left without arguments |
7820 |
|
need_version=unknown |
7821 |
|
|
7822 |
|
case $host_os in |
7823 |
|
aix3*) |
7824 |
|
version_type=linux |
7825 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7826 |
|
shlibpath_var=LIBPATH |
7827 |
|
|
7828 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
7829 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7830 |
|
;; |
7831 |
|
|
7832 |
|
aix4* | aix5*) |
7833 |
|
version_type=linux |
7834 |
|
need_lib_prefix=no |
7835 |
|
need_version=no |
7836 |
|
hardcode_into_libs=yes |
7837 |
|
if test "$host_cpu" = ia64; then |
7838 |
|
# AIX 5 supports IA64 |
7839 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
7840 |
|
shlibpath_var=LD_LIBRARY_PATH |
7841 |
|
else |
7842 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
7843 |
|
# for dependence libraries. The import file would start with |
7844 |
|
# the line `#! .'. This would cause the generated library to |
7845 |
|
# depend on `.', always an invalid library. This was fixed in |
7846 |
|
# development snapshots of GCC prior to 3.0. |
7847 |
|
case $host_os in |
7848 |
|
aix4 | aix4.[01] | aix4.[01].*) |
7849 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7850 |
|
echo ' yes ' |
7851 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7852 |
|
: |
7853 |
|
else |
7854 |
|
can_build_shared=no |
7855 |
|
fi |
7856 |
|
;; |
7857 |
|
esac |
7858 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
7859 |
|
# soname into executable. Probably we can add versioning support to |
7860 |
|
# collect2, so additional links can be useful in future. |
7861 |
|
if test "$aix_use_runtimelinking" = yes; then |
7862 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
7863 |
|
# instead of lib<name>.a to let people know that these are not |
7864 |
|
# typical AIX shared libraries. |
7865 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7866 |
|
else |
7867 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
7868 |
|
# and later when we are not doing run time linking. |
7869 |
|
library_names_spec='${libname}${release}.a $libname.a' |
7870 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7871 |
|
fi |
7872 |
|
shlibpath_var=LIBPATH |
7873 |
|
fi |
7874 |
|
;; |
7875 |
|
|
7876 |
|
amigaos*) |
7877 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
7878 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
7879 |
|
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' |
7880 |
|
;; |
7881 |
|
|
7882 |
|
beos*) |
7883 |
|
library_names_spec='${libname}${shared_ext}' |
7884 |
|
dynamic_linker="$host_os ld.so" |
7885 |
|
shlibpath_var=LIBRARY_PATH |
7886 |
|
;; |
7887 |
|
|
7888 |
|
bsdi4*) |
7889 |
|
version_type=linux |
7890 |
|
need_version=no |
7891 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
7892 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7893 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
7894 |
|
shlibpath_var=LD_LIBRARY_PATH |
7895 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
7896 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
7897 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
7898 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
7899 |
|
# libtool to hard-code these into programs |
7900 |
|
;; |
7901 |
|
|
7902 |
|
cygwin* | mingw* | pw32*) |
7903 |
|
version_type=windows |
7904 |
|
shrext_cmds=".dll" |
7905 |
|
need_version=no |
7906 |
|
need_lib_prefix=no |
7907 |
|
|
7908 |
|
case $GCC,$host_os in |
7909 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
7910 |
|
library_names_spec='$libname.dll.a' |
7911 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
7912 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
7913 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
7914 |
|
dldir=$destdir/`dirname \$dlpath`~ |
7915 |
|
test -d \$dldir || mkdir -p \$dldir~ |
7916 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
7917 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
7918 |
|
dlpath=$dir/\$dldll~ |
7919 |
|
$rm \$dlpath' |
7920 |
|
shlibpath_overrides_runpath=yes |
7921 |
|
|
7922 |
|
case $host_os in |
7923 |
|
cygwin*) |
7924 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
7925 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
7926 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
7927 |
|
;; |
7928 |
|
mingw*) |
7929 |
|
# MinGW DLLs use traditional 'lib' prefix |
7930 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
7931 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7932 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
7933 |
|
# It is most probably a Windows format PATH printed by |
7934 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
7935 |
|
# path with ; separators, and with drive letters. We can handle the |
7936 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
7937 |
|
# especially as we might pass files found there to a mingw objdump, |
7938 |
|
# which wouldn't understand a cygwinified path. Ahh. |
7939 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7940 |
|
else |
7941 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7942 |
|
fi |
7943 |
|
;; |
7944 |
|
pw32*) |
7945 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
7946 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
7947 |
|
;; |
7948 |
|
esac |
7949 |
|
;; |
7950 |
|
|
7951 |
|
*) |
7952 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
7953 |
|
;; |
7954 |
|
esac |
7955 |
|
dynamic_linker='Win32 ld.exe' |
7956 |
|
# FIXME: first we should search . and the directory the executable is in |
7957 |
|
shlibpath_var=PATH |
7958 |
|
;; |
7959 |
|
|
7960 |
|
darwin* | rhapsody*) |
7961 |
|
dynamic_linker="$host_os dyld" |
7962 |
|
version_type=darwin |
7963 |
|
need_lib_prefix=no |
7964 |
|
need_version=no |
7965 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
7966 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
7967 |
|
shlibpath_overrides_runpath=yes |
7968 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
7969 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
7970 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
7971 |
|
if test "$GCC" = yes; then |
7972 |
|
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"` |
7973 |
|
else |
7974 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
7975 |
|
fi |
7976 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
7977 |
|
;; |
7978 |
|
|
7979 |
|
dgux*) |
7980 |
|
version_type=linux |
7981 |
|
need_lib_prefix=no |
7982 |
|
need_version=no |
7983 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
7984 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7985 |
|
shlibpath_var=LD_LIBRARY_PATH |
7986 |
|
;; |
7987 |
|
|
7988 |
|
freebsd1*) |
7989 |
|
dynamic_linker=no |
7990 |
|
;; |
7991 |
|
|
7992 |
|
kfreebsd*-gnu) |
7993 |
|
version_type=linux |
7994 |
|
need_lib_prefix=no |
7995 |
|
need_version=no |
7996 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
7997 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7998 |
|
shlibpath_var=LD_LIBRARY_PATH |
7999 |
|
shlibpath_overrides_runpath=no |
8000 |
|
hardcode_into_libs=yes |
8001 |
|
dynamic_linker='GNU ld.so' |
8002 |
|
;; |
8003 |
|
|
8004 |
|
freebsd*) |
8005 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
8006 |
|
version_type=freebsd-$objformat |
8007 |
|
case $version_type in |
8008 |
|
freebsd-elf*) |
8009 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8010 |
|
need_version=no |
8011 |
|
need_lib_prefix=no |
8012 |
|
;; |
8013 |
|
freebsd-*) |
8014 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8015 |
|
need_version=yes |
8016 |
|
;; |
8017 |
|
esac |
8018 |
|
shlibpath_var=LD_LIBRARY_PATH |
8019 |
|
case $host_os in |
8020 |
|
freebsd2*) |
8021 |
|
shlibpath_overrides_runpath=yes |
8022 |
|
;; |
8023 |
|
freebsd3.01* | freebsdelf3.01*) |
8024 |
|
shlibpath_overrides_runpath=yes |
8025 |
|
hardcode_into_libs=yes |
8026 |
|
;; |
8027 |
|
*) # from 3.2 on |
8028 |
|
shlibpath_overrides_runpath=no |
8029 |
|
hardcode_into_libs=yes |
8030 |
|
;; |
8031 |
|
esac |
8032 |
|
;; |
8033 |
|
|
8034 |
|
gnu*) |
8035 |
|
version_type=linux |
8036 |
|
need_lib_prefix=no |
8037 |
|
need_version=no |
8038 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8039 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8040 |
|
shlibpath_var=LD_LIBRARY_PATH |
8041 |
|
hardcode_into_libs=yes |
8042 |
|
;; |
8043 |
|
|
8044 |
|
hpux9* | hpux10* | hpux11*) |
8045 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
8046 |
|
# link against other versions. |
8047 |
|
version_type=sunos |
8048 |
|
need_lib_prefix=no |
8049 |
|
need_version=no |
8050 |
|
case "$host_cpu" in |
8051 |
|
ia64*) |
8052 |
|
shrext_cmds='.so' |
8053 |
|
hardcode_into_libs=yes |
8054 |
|
dynamic_linker="$host_os dld.so" |
8055 |
|
shlibpath_var=LD_LIBRARY_PATH |
8056 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8057 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8058 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8059 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
8060 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8061 |
|
else |
8062 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8063 |
|
fi |
8064 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8065 |
|
;; |
8066 |
|
hppa*64*) |
8067 |
|
shrext_cmds='.sl' |
8068 |
|
hardcode_into_libs=yes |
8069 |
|
dynamic_linker="$host_os dld.sl" |
8070 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8071 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8072 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8073 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8074 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8075 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8076 |
|
;; |
8077 |
|
*) |
8078 |
|
shrext_cmds='.sl' |
8079 |
|
dynamic_linker="$host_os dld.sl" |
8080 |
|
shlibpath_var=SHLIB_PATH |
8081 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8082 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8083 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8084 |
|
;; |
8085 |
|
esac |
8086 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
8087 |
|
postinstall_cmds='chmod 555 $lib' |
8088 |
|
;; |
8089 |
|
|
8090 |
|
irix5* | irix6* | nonstopux*) |
8091 |
|
case $host_os in |
8092 |
|
nonstopux*) version_type=nonstopux ;; |
8093 |
|
*) |
8094 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
8095 |
|
version_type=linux |
8096 |
|
else |
8097 |
|
version_type=irix |
8098 |
|
fi ;; |
8099 |
|
esac |
8100 |
|
need_lib_prefix=no |
8101 |
|
need_version=no |
8102 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8103 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8104 |
|
case $host_os in |
8105 |
|
irix5* | nonstopux*) |
8106 |
|
libsuff= shlibsuff= |
8107 |
|
;; |
8108 |
|
*) |
8109 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
8110 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8111 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
8112 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8113 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
8114 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8115 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8116 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
8117 |
|
esac |
8118 |
|
;; |
8119 |
|
esac |
8120 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8121 |
|
shlibpath_overrides_runpath=no |
8122 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8123 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8124 |
|
hardcode_into_libs=yes |
8125 |
|
;; |
8126 |
|
|
8127 |
|
# No shared lib support for Linux oldld, aout, or coff. |
8128 |
|
linux*oldld* | linux*aout* | linux*coff*) |
8129 |
|
dynamic_linker=no |
8130 |
|
;; |
8131 |
|
|
8132 |
|
# This must be Linux ELF. |
8133 |
|
linux*) |
8134 |
|
version_type=linux |
8135 |
|
need_lib_prefix=no |
8136 |
|
need_version=no |
8137 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8138 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8139 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8140 |
|
shlibpath_var=LD_LIBRARY_PATH |
8141 |
|
shlibpath_overrides_runpath=no |
8142 |
|
# This implies no fast_install, which is unacceptable. |
8143 |
|
# Some rework will be needed to allow for fast_install |
8144 |
|
# before this can be enabled. |
8145 |
|
hardcode_into_libs=yes |
8146 |
|
|
8147 |
|
libsuff= |
8148 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
8149 |
|
libsuff=64 |
8150 |
|
fi |
8151 |
|
|
8152 |
|
# Append ld.so.conf contents to the search path |
8153 |
|
if test -f /etc/ld.so.conf; then |
8154 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
8155 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
8156 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
8157 |
|
fi |
8158 |
|
|
8159 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
8160 |
|
# powerpc, because MkLinux only supported shared libraries with the |
8161 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
8162 |
|
# most powerpc-linux boxes support dynamic linking these days and |
8163 |
|
# people can always --disable-shared, the test was removed, and we |
8164 |
|
# assume the GNU/Linux dynamic linker is in use. |
8165 |
|
dynamic_linker='GNU/Linux ld.so' |
8166 |
|
;; |
8167 |
|
|
8168 |
|
knetbsd*-gnu) |
8169 |
|
version_type=linux |
8170 |
|
need_lib_prefix=no |
8171 |
|
need_version=no |
8172 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8173 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8174 |
|
shlibpath_var=LD_LIBRARY_PATH |
8175 |
|
shlibpath_overrides_runpath=no |
8176 |
|
hardcode_into_libs=yes |
8177 |
|
dynamic_linker='GNU ld.so' |
8178 |
|
;; |
8179 |
|
|
8180 |
|
netbsd*) |
8181 |
|
version_type=sunos |
8182 |
|
need_lib_prefix=no |
8183 |
|
need_version=no |
8184 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8185 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8186 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8187 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
8188 |
|
else |
8189 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8190 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8191 |
|
dynamic_linker='NetBSD ld.elf_so' |
8192 |
|
fi |
8193 |
|
shlibpath_var=LD_LIBRARY_PATH |
8194 |
|
shlibpath_overrides_runpath=yes |
8195 |
|
hardcode_into_libs=yes |
8196 |
|
;; |
8197 |
|
|
8198 |
|
newsos6) |
8199 |
|
version_type=linux |
8200 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8201 |
|
shlibpath_var=LD_LIBRARY_PATH |
8202 |
|
shlibpath_overrides_runpath=yes |
8203 |
|
;; |
8204 |
|
|
8205 |
|
nto-qnx*) |
8206 |
|
version_type=linux |
8207 |
|
need_lib_prefix=no |
8208 |
|
need_version=no |
8209 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8210 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8211 |
|
shlibpath_var=LD_LIBRARY_PATH |
8212 |
|
shlibpath_overrides_runpath=yes |
8213 |
|
;; |
8214 |
|
|
8215 |
|
openbsd*) |
8216 |
|
version_type=sunos |
8217 |
|
need_lib_prefix=no |
8218 |
|
need_version=yes |
8219 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8220 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8221 |
|
shlibpath_var=LD_LIBRARY_PATH |
8222 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8223 |
|
case $host_os in |
8224 |
|
openbsd2.[89] | openbsd2.[89].*) |
8225 |
|
shlibpath_overrides_runpath=no |
8226 |
|
;; |
8227 |
|
*) |
8228 |
|
shlibpath_overrides_runpath=yes |
8229 |
|
;; |
8230 |
|
esac |
8231 |
|
else |
8232 |
|
shlibpath_overrides_runpath=yes |
8233 |
|
fi |
8234 |
|
;; |
8235 |
|
|
8236 |
|
os2*) |
8237 |
|
libname_spec='$name' |
8238 |
|
shrext_cmds=".dll" |
8239 |
|
need_lib_prefix=no |
8240 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
8241 |
|
dynamic_linker='OS/2 ld.exe' |
8242 |
|
shlibpath_var=LIBPATH |
8243 |
|
;; |
8244 |
|
|
8245 |
|
osf3* | osf4* | osf5*) |
8246 |
|
version_type=osf |
8247 |
|
need_lib_prefix=no |
8248 |
|
need_version=no |
8249 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8250 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8251 |
|
shlibpath_var=LD_LIBRARY_PATH |
8252 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8253 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8254 |
|
;; |
8255 |
|
|
8256 |
|
sco3.2v5*) |
8257 |
|
version_type=osf |
8258 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8259 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8260 |
|
shlibpath_var=LD_LIBRARY_PATH |
8261 |
|
;; |
8262 |
|
|
8263 |
|
solaris*) |
8264 |
|
version_type=linux |
8265 |
|
need_lib_prefix=no |
8266 |
|
need_version=no |
8267 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8268 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8269 |
|
shlibpath_var=LD_LIBRARY_PATH |
8270 |
|
shlibpath_overrides_runpath=yes |
8271 |
|
hardcode_into_libs=yes |
8272 |
|
# ldd complains unless libraries are executable |
8273 |
|
postinstall_cmds='chmod +x $lib' |
8274 |
|
;; |
8275 |
|
|
8276 |
|
sunos4*) |
8277 |
|
version_type=sunos |
8278 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8279 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8280 |
|
shlibpath_var=LD_LIBRARY_PATH |
8281 |
|
shlibpath_overrides_runpath=yes |
8282 |
|
if test "$with_gnu_ld" = yes; then |
8283 |
|
need_lib_prefix=no |
8284 |
|
fi |
8285 |
|
need_version=yes |
8286 |
|
;; |
8287 |
|
|
8288 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
8289 |
|
version_type=linux |
8290 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8291 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8292 |
|
shlibpath_var=LD_LIBRARY_PATH |
8293 |
|
case $host_vendor in |
8294 |
|
sni) |
8295 |
|
shlibpath_overrides_runpath=no |
8296 |
|
need_lib_prefix=no |
8297 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
8298 |
|
runpath_var=LD_RUN_PATH |
8299 |
|
;; |
8300 |
|
siemens) |
8301 |
|
need_lib_prefix=no |
8302 |
|
;; |
8303 |
|
motorola) |
8304 |
|
need_lib_prefix=no |
8305 |
|
need_version=no |
8306 |
|
shlibpath_overrides_runpath=no |
8307 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8308 |
|
;; |
8309 |
|
esac |
8310 |
|
;; |
8311 |
|
|
8312 |
|
sysv4*MP*) |
8313 |
|
if test -d /usr/nec ;then |
8314 |
|
version_type=linux |
8315 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8316 |
|
soname_spec='$libname${shared_ext}.$major' |
8317 |
|
shlibpath_var=LD_LIBRARY_PATH |
8318 |
|
fi |
8319 |
|
;; |
8320 |
|
|
8321 |
|
uts4*) |
8322 |
|
version_type=linux |
8323 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8324 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8325 |
|
shlibpath_var=LD_LIBRARY_PATH |
8326 |
|
;; |
8327 |
|
|
8328 |
|
*) |
8329 |
|
dynamic_linker=no |
8330 |
|
;; |
8331 |
|
esac |
8332 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8333 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
8334 |
|
test "$dynamic_linker" = no && can_build_shared=no |
8335 |
|
|
8336 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8337 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8338 |
|
hardcode_action= |
8339 |
|
if test -n "$hardcode_libdir_flag_spec" || \ |
8340 |
|
test -n "$runpath_var " || \ |
8341 |
|
test "X$hardcode_automatic"="Xyes" ; then |
8342 |
|
|
8343 |
|
# We can hardcode non-existant directories. |
8344 |
|
if test "$hardcode_direct" != no && |
8345 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
8346 |
|
# have to relink, otherwise we might link with an installed library |
8347 |
|
# when we should be linking with a yet-to-be-installed one |
8348 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8349 |
|
test "$hardcode_minus_L" != no; then |
8350 |
|
# Linking always hardcodes the temporary library directory. |
8351 |
|
hardcode_action=relink |
8352 |
|
else |
8353 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
8354 |
|
hardcode_action=immediate |
8355 |
|
fi |
8356 |
|
else |
8357 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
8358 |
|
# directories. |
8359 |
|
hardcode_action=unsupported |
8360 |
|
fi |
8361 |
|
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8362 |
|
echo "${ECHO_T}$hardcode_action" >&6 |
8363 |
|
|
8364 |
|
if test "$hardcode_action" = relink; then |
8365 |
|
# Fast installation is not supported |
8366 |
|
enable_fast_install=no |
8367 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
8368 |
|
test "$enable_shared" = no; then |
8369 |
|
# Fast installation is not necessary |
8370 |
|
enable_fast_install=needless |
8371 |
|
fi |
8372 |
|
|
8373 |
|
striplib= |
8374 |
|
old_striplib= |
8375 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8376 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8377 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8378 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8379 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8380 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
8381 |
|
echo "${ECHO_T}yes" >&6 |
8382 |
|
else |
8383 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
8384 |
|
case $host_os in |
8385 |
|
darwin*) |
8386 |
|
if test -n "$STRIP" ; then |
8387 |
|
striplib="$STRIP -x" |
8388 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
8389 |
|
echo "${ECHO_T}yes" >&6 |
8390 |
|
else |
8391 |
|
echo "$as_me:$LINENO: result: no" >&5 |
8392 |
|
echo "${ECHO_T}no" >&6 |
8393 |
|
fi |
8394 |
|
;; |
8395 |
|
*) |
8396 |
|
echo "$as_me:$LINENO: result: no" >&5 |
8397 |
|
echo "${ECHO_T}no" >&6 |
8398 |
|
;; |
8399 |
|
esac |
8400 |
|
fi |
8401 |
|
|
8402 |
|
if test "x$enable_dlopen" != xyes; then |
8403 |
|
enable_dlopen=unknown |
8404 |
|
enable_dlopen_self=unknown |
8405 |
|
enable_dlopen_self_static=unknown |
8406 |
|
else |
8407 |
|
lt_cv_dlopen=no |
8408 |
|
lt_cv_dlopen_libs= |
8409 |
|
|
8410 |
|
case $host_os in |
8411 |
|
beos*) |
8412 |
|
lt_cv_dlopen="load_add_on" |
8413 |
|
lt_cv_dlopen_libs= |
8414 |
|
lt_cv_dlopen_self=yes |
8415 |
|
;; |
8416 |
|
|
8417 |
|
mingw* | pw32*) |
8418 |
|
lt_cv_dlopen="LoadLibrary" |
8419 |
|
lt_cv_dlopen_libs= |
8420 |
|
;; |
8421 |
|
|
8422 |
|
cygwin*) |
8423 |
|
lt_cv_dlopen="dlopen" |
8424 |
|
lt_cv_dlopen_libs= |
8425 |
|
;; |
8426 |
|
|
8427 |
|
darwin*) |
8428 |
|
# if libdl is installed we need to link against it |
8429 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8430 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8431 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8432 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8433 |
|
else |
8434 |
|
ac_check_lib_save_LIBS=$LIBS |
8435 |
|
LIBS="-ldl $LIBS" |
8436 |
|
cat >conftest.$ac_ext <<_ACEOF |
8437 |
|
/* confdefs.h. */ |
8438 |
|
_ACEOF |
8439 |
|
cat confdefs.h >>conftest.$ac_ext |
8440 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8441 |
|
/* end confdefs.h. */ |
8442 |
|
|
8443 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8444 |
|
#ifdef __cplusplus |
8445 |
|
extern "C" |
8446 |
|
#endif |
8447 |
|
/* We use char because int might match the return type of a gcc2 |
8448 |
|
builtin and then its argument prototype would still apply. */ |
8449 |
|
char dlopen (); |
8450 |
|
int |
8451 |
|
main () |
8452 |
|
{ |
8453 |
|
dlopen (); |
8454 |
|
; |
8455 |
|
return 0; |
8456 |
|
} |
8457 |
|
_ACEOF |
8458 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8459 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8460 |
|
(eval $ac_link) 2>conftest.er1 |
8461 |
|
ac_status=$? |
8462 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8463 |
|
rm -f conftest.er1 |
8464 |
|
cat conftest.err >&5 |
8465 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8466 |
|
(exit $ac_status); } && |
8467 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8468 |
|
|| test ! -s conftest.err' |
8469 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8470 |
|
(eval $ac_try) 2>&5 |
8471 |
|
ac_status=$? |
8472 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8473 |
|
(exit $ac_status); }; } && |
8474 |
|
{ ac_try='test -s conftest$ac_exeext' |
8475 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8476 |
|
(eval $ac_try) 2>&5 |
8477 |
|
ac_status=$? |
8478 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8479 |
|
(exit $ac_status); }; }; then |
8480 |
|
ac_cv_lib_dl_dlopen=yes |
8481 |
|
else |
8482 |
|
echo "$as_me: failed program was:" >&5 |
8483 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8484 |
|
|
8485 |
|
ac_cv_lib_dl_dlopen=no |
8486 |
|
fi |
8487 |
|
rm -f conftest.err conftest.$ac_objext \ |
8488 |
|
conftest$ac_exeext conftest.$ac_ext |
8489 |
|
LIBS=$ac_check_lib_save_LIBS |
8490 |
|
fi |
8491 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8492 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8493 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
8494 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8495 |
|
else |
8496 |
|
|
8497 |
|
lt_cv_dlopen="dyld" |
8498 |
|
lt_cv_dlopen_libs= |
8499 |
|
lt_cv_dlopen_self=yes |
8500 |
|
|
8501 |
|
fi |
8502 |
|
|
8503 |
|
;; |
8504 |
|
|
8505 |
|
*) |
8506 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
8507 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8508 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
8509 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8510 |
|
else |
8511 |
|
cat >conftest.$ac_ext <<_ACEOF |
8512 |
|
/* confdefs.h. */ |
8513 |
|
_ACEOF |
8514 |
|
cat confdefs.h >>conftest.$ac_ext |
8515 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8516 |
|
/* end confdefs.h. */ |
8517 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8518 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8519 |
|
#define shl_load innocuous_shl_load |
8520 |
|
|
8521 |
|
/* System header to define __stub macros and hopefully few prototypes, |
8522 |
|
which can conflict with char shl_load (); below. |
8523 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8524 |
|
<limits.h> exists even on freestanding compilers. */ |
8525 |
|
|
8526 |
|
#ifdef __STDC__ |
8527 |
|
# include <limits.h> |
8528 |
|
#else |
8529 |
|
# include <assert.h> |
8530 |
|
#endif |
8531 |
|
|
8532 |
|
#undef shl_load |
8533 |
|
|
8534 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8535 |
|
#ifdef __cplusplus |
8536 |
|
extern "C" |
8537 |
|
{ |
8538 |
|
#endif |
8539 |
|
/* We use char because int might match the return type of a gcc2 |
8540 |
|
builtin and then its argument prototype would still apply. */ |
8541 |
|
char shl_load (); |
8542 |
|
/* The GNU C library defines this for functions which it implements |
8543 |
|
to always fail with ENOSYS. Some functions are actually named |
8544 |
|
something starting with __ and the normal name is an alias. */ |
8545 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
8546 |
|
choke me |
8547 |
|
#else |
8548 |
|
char (*f) () = shl_load; |
8549 |
|
#endif |
8550 |
|
#ifdef __cplusplus |
8551 |
|
} |
8552 |
|
#endif |
8553 |
|
|
8554 |
|
int |
8555 |
|
main () |
8556 |
|
{ |
8557 |
|
return f != shl_load; |
8558 |
|
; |
8559 |
|
return 0; |
8560 |
|
} |
8561 |
|
_ACEOF |
8562 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8563 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8564 |
|
(eval $ac_link) 2>conftest.er1 |
8565 |
|
ac_status=$? |
8566 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8567 |
|
rm -f conftest.er1 |
8568 |
|
cat conftest.err >&5 |
8569 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8570 |
|
(exit $ac_status); } && |
8571 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8572 |
|
|| test ! -s conftest.err' |
8573 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8574 |
|
(eval $ac_try) 2>&5 |
8575 |
|
ac_status=$? |
8576 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8577 |
|
(exit $ac_status); }; } && |
8578 |
|
{ ac_try='test -s conftest$ac_exeext' |
8579 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8580 |
|
(eval $ac_try) 2>&5 |
8581 |
|
ac_status=$? |
8582 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8583 |
|
(exit $ac_status); }; }; then |
8584 |
|
ac_cv_func_shl_load=yes |
8585 |
|
else |
8586 |
|
echo "$as_me: failed program was:" >&5 |
8587 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8588 |
|
|
8589 |
|
ac_cv_func_shl_load=no |
8590 |
|
fi |
8591 |
|
rm -f conftest.err conftest.$ac_objext \ |
8592 |
|
conftest$ac_exeext conftest.$ac_ext |
8593 |
|
fi |
8594 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8595 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8596 |
|
if test $ac_cv_func_shl_load = yes; then |
8597 |
|
lt_cv_dlopen="shl_load" |
8598 |
|
else |
8599 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8600 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8601 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8602 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8603 |
|
else |
8604 |
|
ac_check_lib_save_LIBS=$LIBS |
8605 |
|
LIBS="-ldld $LIBS" |
8606 |
|
cat >conftest.$ac_ext <<_ACEOF |
8607 |
|
/* confdefs.h. */ |
8608 |
|
_ACEOF |
8609 |
|
cat confdefs.h >>conftest.$ac_ext |
8610 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8611 |
|
/* end confdefs.h. */ |
8612 |
|
|
8613 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8614 |
|
#ifdef __cplusplus |
8615 |
|
extern "C" |
8616 |
|
#endif |
8617 |
|
/* We use char because int might match the return type of a gcc2 |
8618 |
|
builtin and then its argument prototype would still apply. */ |
8619 |
|
char shl_load (); |
8620 |
|
int |
8621 |
|
main () |
8622 |
|
{ |
8623 |
|
shl_load (); |
8624 |
|
; |
8625 |
|
return 0; |
8626 |
|
} |
8627 |
|
_ACEOF |
8628 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8629 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8630 |
|
(eval $ac_link) 2>conftest.er1 |
8631 |
|
ac_status=$? |
8632 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8633 |
|
rm -f conftest.er1 |
8634 |
|
cat conftest.err >&5 |
8635 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8636 |
|
(exit $ac_status); } && |
8637 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8638 |
|
|| test ! -s conftest.err' |
8639 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8640 |
|
(eval $ac_try) 2>&5 |
8641 |
|
ac_status=$? |
8642 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8643 |
|
(exit $ac_status); }; } && |
8644 |
|
{ ac_try='test -s conftest$ac_exeext' |
8645 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8646 |
|
(eval $ac_try) 2>&5 |
8647 |
|
ac_status=$? |
8648 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8649 |
|
(exit $ac_status); }; }; then |
8650 |
|
ac_cv_lib_dld_shl_load=yes |
8651 |
|
else |
8652 |
|
echo "$as_me: failed program was:" >&5 |
8653 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8654 |
|
|
8655 |
|
ac_cv_lib_dld_shl_load=no |
8656 |
|
fi |
8657 |
|
rm -f conftest.err conftest.$ac_objext \ |
8658 |
|
conftest$ac_exeext conftest.$ac_ext |
8659 |
|
LIBS=$ac_check_lib_save_LIBS |
8660 |
|
fi |
8661 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8662 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8663 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
8664 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8665 |
|
else |
8666 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
8667 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8668 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
8669 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8670 |
|
else |
8671 |
|
cat >conftest.$ac_ext <<_ACEOF |
8672 |
|
/* confdefs.h. */ |
8673 |
|
_ACEOF |
8674 |
|
cat confdefs.h >>conftest.$ac_ext |
8675 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8676 |
|
/* end confdefs.h. */ |
8677 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8678 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8679 |
|
#define dlopen innocuous_dlopen |
8680 |
|
|
8681 |
|
/* System header to define __stub macros and hopefully few prototypes, |
8682 |
|
which can conflict with char dlopen (); below. |
8683 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8684 |
|
<limits.h> exists even on freestanding compilers. */ |
8685 |
|
|
8686 |
|
#ifdef __STDC__ |
8687 |
|
# include <limits.h> |
8688 |
|
#else |
8689 |
|
# include <assert.h> |
8690 |
|
#endif |
8691 |
|
|
8692 |
|
#undef dlopen |
8693 |
|
|
8694 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8695 |
|
#ifdef __cplusplus |
8696 |
|
extern "C" |
8697 |
|
{ |
8698 |
|
#endif |
8699 |
|
/* We use char because int might match the return type of a gcc2 |
8700 |
|
builtin and then its argument prototype would still apply. */ |
8701 |
|
char dlopen (); |
8702 |
|
/* The GNU C library defines this for functions which it implements |
8703 |
|
to always fail with ENOSYS. Some functions are actually named |
8704 |
|
something starting with __ and the normal name is an alias. */ |
8705 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
8706 |
|
choke me |
8707 |
|
#else |
8708 |
|
char (*f) () = dlopen; |
8709 |
|
#endif |
8710 |
|
#ifdef __cplusplus |
8711 |
|
} |
8712 |
|
#endif |
8713 |
|
|
8714 |
|
int |
8715 |
|
main () |
8716 |
|
{ |
8717 |
|
return f != dlopen; |
8718 |
|
; |
8719 |
|
return 0; |
8720 |
|
} |
8721 |
|
_ACEOF |
8722 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8723 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8724 |
|
(eval $ac_link) 2>conftest.er1 |
8725 |
|
ac_status=$? |
8726 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8727 |
|
rm -f conftest.er1 |
8728 |
|
cat conftest.err >&5 |
8729 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8730 |
|
(exit $ac_status); } && |
8731 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8732 |
|
|| test ! -s conftest.err' |
8733 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8734 |
|
(eval $ac_try) 2>&5 |
8735 |
|
ac_status=$? |
8736 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8737 |
|
(exit $ac_status); }; } && |
8738 |
|
{ ac_try='test -s conftest$ac_exeext' |
8739 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8740 |
|
(eval $ac_try) 2>&5 |
8741 |
|
ac_status=$? |
8742 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8743 |
|
(exit $ac_status); }; }; then |
8744 |
|
ac_cv_func_dlopen=yes |
8745 |
|
else |
8746 |
|
echo "$as_me: failed program was:" >&5 |
8747 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8748 |
|
|
8749 |
|
ac_cv_func_dlopen=no |
8750 |
|
fi |
8751 |
|
rm -f conftest.err conftest.$ac_objext \ |
8752 |
|
conftest$ac_exeext conftest.$ac_ext |
8753 |
|
fi |
8754 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8755 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8756 |
|
if test $ac_cv_func_dlopen = yes; then |
8757 |
|
lt_cv_dlopen="dlopen" |
8758 |
|
else |
8759 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8760 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8761 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8762 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8763 |
|
else |
8764 |
|
ac_check_lib_save_LIBS=$LIBS |
8765 |
|
LIBS="-ldl $LIBS" |
8766 |
|
cat >conftest.$ac_ext <<_ACEOF |
8767 |
|
/* confdefs.h. */ |
8768 |
|
_ACEOF |
8769 |
|
cat confdefs.h >>conftest.$ac_ext |
8770 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8771 |
|
/* end confdefs.h. */ |
8772 |
|
|
8773 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8774 |
|
#ifdef __cplusplus |
8775 |
|
extern "C" |
8776 |
|
#endif |
8777 |
|
/* We use char because int might match the return type of a gcc2 |
8778 |
|
builtin and then its argument prototype would still apply. */ |
8779 |
|
char dlopen (); |
8780 |
|
int |
8781 |
|
main () |
8782 |
|
{ |
8783 |
|
dlopen (); |
8784 |
|
; |
8785 |
|
return 0; |
8786 |
|
} |
8787 |
|
_ACEOF |
8788 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8789 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8790 |
|
(eval $ac_link) 2>conftest.er1 |
8791 |
|
ac_status=$? |
8792 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8793 |
|
rm -f conftest.er1 |
8794 |
|
cat conftest.err >&5 |
8795 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8796 |
|
(exit $ac_status); } && |
8797 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8798 |
|
|| test ! -s conftest.err' |
8799 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8800 |
|
(eval $ac_try) 2>&5 |
8801 |
|
ac_status=$? |
8802 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8803 |
|
(exit $ac_status); }; } && |
8804 |
|
{ ac_try='test -s conftest$ac_exeext' |
8805 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8806 |
|
(eval $ac_try) 2>&5 |
8807 |
|
ac_status=$? |
8808 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8809 |
|
(exit $ac_status); }; }; then |
8810 |
|
ac_cv_lib_dl_dlopen=yes |
8811 |
|
else |
8812 |
|
echo "$as_me: failed program was:" >&5 |
8813 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8814 |
|
|
8815 |
|
ac_cv_lib_dl_dlopen=no |
8816 |
|
fi |
8817 |
|
rm -f conftest.err conftest.$ac_objext \ |
8818 |
|
conftest$ac_exeext conftest.$ac_ext |
8819 |
|
LIBS=$ac_check_lib_save_LIBS |
8820 |
|
fi |
8821 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8822 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8823 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
8824 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8825 |
|
else |
8826 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
8827 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
8828 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
8829 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8830 |
|
else |
8831 |
|
ac_check_lib_save_LIBS=$LIBS |
8832 |
|
LIBS="-lsvld $LIBS" |
8833 |
|
cat >conftest.$ac_ext <<_ACEOF |
8834 |
|
/* confdefs.h. */ |
8835 |
|
_ACEOF |
8836 |
|
cat confdefs.h >>conftest.$ac_ext |
8837 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8838 |
|
/* end confdefs.h. */ |
8839 |
|
|
8840 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8841 |
|
#ifdef __cplusplus |
8842 |
|
extern "C" |
8843 |
|
#endif |
8844 |
|
/* We use char because int might match the return type of a gcc2 |
8845 |
|
builtin and then its argument prototype would still apply. */ |
8846 |
|
char dlopen (); |
8847 |
|
int |
8848 |
|
main () |
8849 |
|
{ |
8850 |
|
dlopen (); |
8851 |
|
; |
8852 |
|
return 0; |
8853 |
|
} |
8854 |
|
_ACEOF |
8855 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8856 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8857 |
|
(eval $ac_link) 2>conftest.er1 |
8858 |
|
ac_status=$? |
8859 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8860 |
|
rm -f conftest.er1 |
8861 |
|
cat conftest.err >&5 |
8862 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8863 |
|
(exit $ac_status); } && |
8864 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8865 |
|
|| test ! -s conftest.err' |
8866 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8867 |
|
(eval $ac_try) 2>&5 |
8868 |
|
ac_status=$? |
8869 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8870 |
|
(exit $ac_status); }; } && |
8871 |
|
{ ac_try='test -s conftest$ac_exeext' |
8872 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8873 |
|
(eval $ac_try) 2>&5 |
8874 |
|
ac_status=$? |
8875 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8876 |
|
(exit $ac_status); }; }; then |
8877 |
|
ac_cv_lib_svld_dlopen=yes |
8878 |
|
else |
8879 |
|
echo "$as_me: failed program was:" >&5 |
8880 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8881 |
|
|
8882 |
|
ac_cv_lib_svld_dlopen=no |
8883 |
|
fi |
8884 |
|
rm -f conftest.err conftest.$ac_objext \ |
8885 |
|
conftest$ac_exeext conftest.$ac_ext |
8886 |
|
LIBS=$ac_check_lib_save_LIBS |
8887 |
|
fi |
8888 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
8889 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
8890 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
8891 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
8892 |
|
else |
8893 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
8894 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
8895 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
8896 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8897 |
|
else |
8898 |
|
ac_check_lib_save_LIBS=$LIBS |
8899 |
|
LIBS="-ldld $LIBS" |
8900 |
|
cat >conftest.$ac_ext <<_ACEOF |
8901 |
|
/* confdefs.h. */ |
8902 |
|
_ACEOF |
8903 |
|
cat confdefs.h >>conftest.$ac_ext |
8904 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8905 |
|
/* end confdefs.h. */ |
8906 |
|
|
8907 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8908 |
|
#ifdef __cplusplus |
8909 |
|
extern "C" |
8910 |
|
#endif |
8911 |
|
/* We use char because int might match the return type of a gcc2 |
8912 |
|
builtin and then its argument prototype would still apply. */ |
8913 |
|
char dld_link (); |
8914 |
|
int |
8915 |
|
main () |
8916 |
|
{ |
8917 |
|
dld_link (); |
8918 |
|
; |
8919 |
|
return 0; |
8920 |
|
} |
8921 |
|
_ACEOF |
8922 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8923 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8924 |
|
(eval $ac_link) 2>conftest.er1 |
8925 |
|
ac_status=$? |
8926 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8927 |
|
rm -f conftest.er1 |
8928 |
|
cat conftest.err >&5 |
8929 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8930 |
|
(exit $ac_status); } && |
8931 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8932 |
|
|| test ! -s conftest.err' |
8933 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8934 |
|
(eval $ac_try) 2>&5 |
8935 |
|
ac_status=$? |
8936 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8937 |
|
(exit $ac_status); }; } && |
8938 |
|
{ ac_try='test -s conftest$ac_exeext' |
8939 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8940 |
|
(eval $ac_try) 2>&5 |
8941 |
|
ac_status=$? |
8942 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8943 |
|
(exit $ac_status); }; }; then |
8944 |
|
ac_cv_lib_dld_dld_link=yes |
8945 |
|
else |
8946 |
|
echo "$as_me: failed program was:" >&5 |
8947 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8948 |
|
|
8949 |
|
ac_cv_lib_dld_dld_link=no |
8950 |
|
fi |
8951 |
|
rm -f conftest.err conftest.$ac_objext \ |
8952 |
|
conftest$ac_exeext conftest.$ac_ext |
8953 |
|
LIBS=$ac_check_lib_save_LIBS |
8954 |
|
fi |
8955 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
8956 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
8957 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
8958 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
8959 |
|
fi |
8960 |
|
|
8961 |
|
|
8962 |
|
fi |
8963 |
|
|
8964 |
|
|
8965 |
|
fi |
8966 |
|
|
8967 |
|
|
8968 |
|
fi |
8969 |
|
|
8970 |
|
|
8971 |
|
fi |
8972 |
|
|
8973 |
|
|
8974 |
|
fi |
8975 |
|
|
8976 |
|
;; |
8977 |
|
esac |
8978 |
|
|
8979 |
|
if test "x$lt_cv_dlopen" != xno; then |
8980 |
|
enable_dlopen=yes |
8981 |
|
else |
8982 |
|
enable_dlopen=no |
8983 |
|
fi |
8984 |
|
|
8985 |
|
case $lt_cv_dlopen in |
8986 |
|
dlopen) |
8987 |
|
save_CPPFLAGS="$CPPFLAGS" |
8988 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
8989 |
|
|
8990 |
|
save_LDFLAGS="$LDFLAGS" |
8991 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
8992 |
|
|
8993 |
|
save_LIBS="$LIBS" |
8994 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
8995 |
|
|
8996 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
8997 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
8998 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
8999 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9000 |
|
else |
9001 |
|
if test "$cross_compiling" = yes; then : |
9002 |
|
lt_cv_dlopen_self=cross |
9003 |
|
else |
9004 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9005 |
|
lt_status=$lt_dlunknown |
9006 |
|
cat > conftest.$ac_ext <<EOF |
9007 |
|
#line 9007 "configure" |
9008 |
|
#include "confdefs.h" |
9009 |
|
|
9010 |
|
#if HAVE_DLFCN_H |
9011 |
|
#include <dlfcn.h> |
9012 |
|
#endif |
9013 |
|
|
9014 |
|
#include <stdio.h> |
9015 |
|
|
9016 |
|
#ifdef RTLD_GLOBAL |
9017 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
9018 |
|
#else |
9019 |
|
# ifdef DL_GLOBAL |
9020 |
|
# define LT_DLGLOBAL DL_GLOBAL |
9021 |
|
# else |
9022 |
|
# define LT_DLGLOBAL 0 |
9023 |
|
# endif |
9024 |
|
#endif |
9025 |
|
|
9026 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9027 |
|
find out it does not work in some platform. */ |
9028 |
|
#ifndef LT_DLLAZY_OR_NOW |
9029 |
|
# ifdef RTLD_LAZY |
9030 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
9031 |
|
# else |
9032 |
|
# ifdef DL_LAZY |
9033 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
9034 |
|
# else |
9035 |
|
# ifdef RTLD_NOW |
9036 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
9037 |
|
# else |
9038 |
|
# ifdef DL_NOW |
9039 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
9040 |
|
# else |
9041 |
|
# define LT_DLLAZY_OR_NOW 0 |
9042 |
|
# endif |
9043 |
|
# endif |
9044 |
|
# endif |
9045 |
|
# endif |
9046 |
|
#endif |
9047 |
|
|
9048 |
|
#ifdef __cplusplus |
9049 |
|
extern "C" void exit (int); |
9050 |
|
#endif |
9051 |
|
|
9052 |
|
void fnord() { int i=42;} |
9053 |
|
int main () |
9054 |
|
{ |
9055 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9056 |
|
int status = $lt_dlunknown; |
9057 |
|
|
9058 |
|
if (self) |
9059 |
|
{ |
9060 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9061 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9062 |
|
/* dlclose (self); */ |
9063 |
|
} |
9064 |
|
|
9065 |
|
exit (status); |
9066 |
|
} |
9067 |
|
EOF |
9068 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9069 |
|
(eval $ac_link) 2>&5 |
9070 |
|
ac_status=$? |
9071 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9072 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9073 |
|
(./conftest; exit; ) 2>/dev/null |
9074 |
|
lt_status=$? |
9075 |
|
case x$lt_status in |
9076 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9077 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9078 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
9079 |
|
esac |
9080 |
|
else : |
9081 |
|
# compilation failed |
9082 |
|
lt_cv_dlopen_self=no |
9083 |
|
fi |
9084 |
|
fi |
9085 |
|
rm -fr conftest* |
9086 |
|
|
9087 |
|
|
9088 |
|
fi |
9089 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9090 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9091 |
|
|
9092 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
9093 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
9094 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9095 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9096 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
9097 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9098 |
|
else |
9099 |
|
if test "$cross_compiling" = yes; then : |
9100 |
|
lt_cv_dlopen_self_static=cross |
9101 |
|
else |
9102 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9103 |
|
lt_status=$lt_dlunknown |
9104 |
|
cat > conftest.$ac_ext <<EOF |
9105 |
|
#line 9105 "configure" |
9106 |
|
#include "confdefs.h" |
9107 |
|
|
9108 |
|
#if HAVE_DLFCN_H |
9109 |
|
#include <dlfcn.h> |
9110 |
|
#endif |
9111 |
|
|
9112 |
|
#include <stdio.h> |
9113 |
|
|
9114 |
|
#ifdef RTLD_GLOBAL |
9115 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
9116 |
|
#else |
9117 |
|
# ifdef DL_GLOBAL |
9118 |
|
# define LT_DLGLOBAL DL_GLOBAL |
9119 |
|
# else |
9120 |
|
# define LT_DLGLOBAL 0 |
9121 |
|
# endif |
9122 |
|
#endif |
9123 |
|
|
9124 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9125 |
|
find out it does not work in some platform. */ |
9126 |
|
#ifndef LT_DLLAZY_OR_NOW |
9127 |
|
# ifdef RTLD_LAZY |
9128 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
9129 |
|
# else |
9130 |
|
# ifdef DL_LAZY |
9131 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
9132 |
|
# else |
9133 |
|
# ifdef RTLD_NOW |
9134 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
9135 |
|
# else |
9136 |
|
# ifdef DL_NOW |
9137 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
9138 |
|
# else |
9139 |
|
# define LT_DLLAZY_OR_NOW 0 |
9140 |
|
# endif |
9141 |
|
# endif |
9142 |
|
# endif |
9143 |
|
# endif |
9144 |
|
#endif |
9145 |
|
|
9146 |
|
#ifdef __cplusplus |
9147 |
|
extern "C" void exit (int); |
9148 |
|
#endif |
9149 |
|
|
9150 |
|
void fnord() { int i=42;} |
9151 |
|
int main () |
9152 |
|
{ |
9153 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9154 |
|
int status = $lt_dlunknown; |
9155 |
|
|
9156 |
|
if (self) |
9157 |
|
{ |
9158 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9159 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9160 |
|
/* dlclose (self); */ |
9161 |
|
} |
9162 |
|
|
9163 |
|
exit (status); |
9164 |
|
} |
9165 |
|
EOF |
9166 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9167 |
|
(eval $ac_link) 2>&5 |
9168 |
|
ac_status=$? |
9169 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9170 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9171 |
|
(./conftest; exit; ) 2>/dev/null |
9172 |
|
lt_status=$? |
9173 |
|
case x$lt_status in |
9174 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9175 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9176 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
9177 |
|
esac |
9178 |
|
else : |
9179 |
|
# compilation failed |
9180 |
|
lt_cv_dlopen_self_static=no |
9181 |
|
fi |
9182 |
|
fi |
9183 |
|
rm -fr conftest* |
9184 |
|
|
9185 |
|
|
9186 |
|
fi |
9187 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9188 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9189 |
|
fi |
9190 |
|
|
9191 |
|
CPPFLAGS="$save_CPPFLAGS" |
9192 |
|
LDFLAGS="$save_LDFLAGS" |
9193 |
|
LIBS="$save_LIBS" |
9194 |
|
;; |
9195 |
|
esac |
9196 |
|
|
9197 |
|
case $lt_cv_dlopen_self in |
9198 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9199 |
|
*) enable_dlopen_self=unknown ;; |
9200 |
|
esac |
9201 |
|
|
9202 |
|
case $lt_cv_dlopen_self_static in |
9203 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9204 |
|
*) enable_dlopen_self_static=unknown ;; |
9205 |
|
esac |
9206 |
|
fi |
9207 |
|
|
9208 |
|
|
9209 |
|
# Report which librarie types wil actually be built |
9210 |
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9211 |
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9212 |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9213 |
|
echo "${ECHO_T}$can_build_shared" >&6 |
9214 |
|
|
9215 |
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9216 |
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9217 |
|
test "$can_build_shared" = "no" && enable_shared=no |
9218 |
|
|
9219 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
9220 |
|
# are all built from PIC. |
9221 |
|
case "$host_os" in |
9222 |
|
aix3*) |
9223 |
|
test "$enable_shared" = yes && enable_static=no |
9224 |
|
if test -n "$RANLIB"; then |
9225 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9226 |
|
postinstall_cmds='$RANLIB $lib' |
9227 |
|
fi |
9228 |
|
;; |
9229 |
|
|
9230 |
|
aix4* | aix5*) |
9231 |
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9232 |
|
test "$enable_shared" = yes && enable_static=no |
9233 |
|
fi |
9234 |
|
;; |
9235 |
|
darwin* | rhapsody*) |
9236 |
|
if test "$GCC" = yes; then |
9237 |
|
archive_cmds_need_lc=no |
9238 |
|
case "$host_os" in |
9239 |
|
rhapsody* | darwin1.[012]) |
9240 |
|
allow_undefined_flag='-undefined suppress' |
9241 |
|
;; |
9242 |
|
*) # Darwin 1.3 on |
9243 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
9244 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
9245 |
|
else |
9246 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
9247 |
|
10.[012]) |
9248 |
|
allow_undefined_flag='-flat_namespace -undefined suppress' |
9249 |
|
;; |
9250 |
|
10.*) |
9251 |
|
allow_undefined_flag='-undefined dynamic_lookup' |
9252 |
|
;; |
9253 |
|
esac |
9254 |
|
fi |
9255 |
|
;; |
9256 |
|
esac |
9257 |
|
output_verbose_link_cmd='echo' |
9258 |
|
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' |
9259 |
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
9260 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
9261 |
|
archive_expsym_cmds='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}' |
9262 |
|
module_expsym_cmds='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}' |
9263 |
|
hardcode_direct=no |
9264 |
|
hardcode_automatic=yes |
9265 |
|
hardcode_shlibpath_var=unsupported |
9266 |
|
whole_archive_flag_spec='-all_load $convenience' |
9267 |
|
link_all_deplibs=yes |
9268 |
|
else |
9269 |
|
ld_shlibs=no |
9270 |
|
fi |
9271 |
|
;; |
9272 |
|
esac |
9273 |
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9274 |
|
echo "${ECHO_T}$enable_shared" >&6 |
9275 |
|
|
9276 |
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9277 |
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9278 |
|
# Make sure either enable_shared or enable_static is yes. |
9279 |
|
test "$enable_shared" = yes || enable_static=yes |
9280 |
|
echo "$as_me:$LINENO: result: $enable_static" >&5 |
9281 |
|
echo "${ECHO_T}$enable_static" >&6 |
9282 |
|
|
9283 |
|
# The else clause should only fire when bootstrapping the |
9284 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
9285 |
|
# with your package, and you will get complaints that there are |
9286 |
|
# no rules to generate ltmain.sh. |
9287 |
|
if test -f "$ltmain"; then |
9288 |
|
# See if we are running on zsh, and set the options which allow our commands through |
9289 |
|
# without removal of \ escapes. |
9290 |
|
if test -n "${ZSH_VERSION+set}" ; then |
9291 |
|
setopt NO_GLOB_SUBST |
9292 |
|
fi |
9293 |
|
# Now quote all the things that may contain metacharacters while being |
9294 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
9295 |
|
# variables and quote the copies for generation of the libtool script. |
9296 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
9297 |
|
SED SHELL STRIP \ |
9298 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9299 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9300 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
9301 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9302 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
9303 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9304 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
9305 |
|
compiler \ |
9306 |
|
CC \ |
9307 |
|
LD \ |
9308 |
|
lt_prog_compiler_wl \ |
9309 |
|
lt_prog_compiler_pic \ |
9310 |
|
lt_prog_compiler_static \ |
9311 |
|
lt_prog_compiler_no_builtin_flag \ |
9312 |
|
export_dynamic_flag_spec \ |
9313 |
|
thread_safe_flag_spec \ |
9314 |
|
whole_archive_flag_spec \ |
9315 |
|
enable_shared_with_static_runtimes \ |
9316 |
|
old_archive_cmds \ |
9317 |
|
old_archive_from_new_cmds \ |
9318 |
|
predep_objects \ |
9319 |
|
postdep_objects \ |
9320 |
|
predeps \ |
9321 |
|
postdeps \ |
9322 |
|
compiler_lib_search_path \ |
9323 |
|
archive_cmds \ |
9324 |
|
archive_expsym_cmds \ |
9325 |
|
postinstall_cmds \ |
9326 |
|
postuninstall_cmds \ |
9327 |
|
old_archive_from_expsyms_cmds \ |
9328 |
|
allow_undefined_flag \ |
9329 |
|
no_undefined_flag \ |
9330 |
|
export_symbols_cmds \ |
9331 |
|
hardcode_libdir_flag_spec \ |
9332 |
|
hardcode_libdir_flag_spec_ld \ |
9333 |
|
hardcode_libdir_separator \ |
9334 |
|
hardcode_automatic \ |
9335 |
|
module_cmds \ |
9336 |
|
module_expsym_cmds \ |
9337 |
|
lt_cv_prog_compiler_c_o \ |
9338 |
|
exclude_expsyms \ |
9339 |
|
include_expsyms; do |
9340 |
|
|
9341 |
|
case $var in |
9342 |
|
old_archive_cmds | \ |
9343 |
|
old_archive_from_new_cmds | \ |
9344 |
|
archive_cmds | \ |
9345 |
|
archive_expsym_cmds | \ |
9346 |
|
module_cmds | \ |
9347 |
|
module_expsym_cmds | \ |
9348 |
|
old_archive_from_expsyms_cmds | \ |
9349 |
|
export_symbols_cmds | \ |
9350 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9351 |
|
postinstall_cmds | postuninstall_cmds | \ |
9352 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
9353 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9354 |
|
# Double-quote double-evaled strings. |
9355 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9356 |
|
;; |
9357 |
|
*) |
9358 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9359 |
|
;; |
9360 |
|
esac |
9361 |
|
done |
9362 |
|
|
9363 |
|
case $lt_echo in |
9364 |
|
*'\$0 --fallback-echo"') |
9365 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9366 |
|
;; |
9367 |
|
esac |
9368 |
|
|
9369 |
|
cfgfile="${ofile}T" |
9370 |
|
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9371 |
|
$rm -f "$cfgfile" |
9372 |
|
{ echo "$as_me:$LINENO: creating $ofile" >&5 |
9373 |
|
echo "$as_me: creating $ofile" >&6;} |
9374 |
|
|
9375 |
|
cat <<__EOF__ >> "$cfgfile" |
9376 |
|
#! $SHELL |
9377 |
|
|
9378 |
|
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9379 |
|
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9380 |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9381 |
|
# |
9382 |
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9383 |
|
# Free Software Foundation, Inc. |
9384 |
|
# |
9385 |
|
# This file is part of GNU Libtool: |
9386 |
|
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9387 |
|
# |
9388 |
|
# This program is free software; you can redistribute it and/or modify |
9389 |
|
# it under the terms of the GNU General Public License as published by |
9390 |
|
# the Free Software Foundation; either version 2 of the License, or |
9391 |
|
# (at your option) any later version. |
9392 |
|
# |
9393 |
|
# This program is distributed in the hope that it will be useful, but |
9394 |
|
# WITHOUT ANY WARRANTY; without even the implied warranty of |
9395 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9396 |
|
# General Public License for more details. |
9397 |
|
# |
9398 |
|
# You should have received a copy of the GNU General Public License |
9399 |
|
# along with this program; if not, write to the Free Software |
9400 |
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
9401 |
|
# |
9402 |
|
# As a special exception to the GNU General Public License, if you |
9403 |
|
# distribute this file as part of a program that contains a |
9404 |
|
# configuration script generated by Autoconf, you may include it under |
9405 |
|
# the same distribution terms that you use for the rest of that program. |
9406 |
|
|
9407 |
|
# A sed program that does not truncate output. |
9408 |
|
SED=$lt_SED |
9409 |
|
|
9410 |
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9411 |
|
Xsed="$SED -e s/^X//" |
9412 |
|
|
9413 |
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
9414 |
|
# if CDPATH is set. |
9415 |
|
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
9416 |
|
|
9417 |
|
# The names of the tagged configurations supported by this script. |
9418 |
|
available_tags= |
9419 |
|
|
9420 |
|
# ### BEGIN LIBTOOL CONFIG |
9421 |
|
|
9422 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9423 |
|
|
9424 |
|
# Shell to use when invoking shell scripts. |
9425 |
|
SHELL=$lt_SHELL |
9426 |
|
|
9427 |
|
# Whether or not to build shared libraries. |
9428 |
|
build_libtool_libs=$enable_shared |
9429 |
|
|
9430 |
|
# Whether or not to build static libraries. |
9431 |
|
build_old_libs=$enable_static |
9432 |
|
|
9433 |
|
# Whether or not to add -lc for building shared libraries. |
9434 |
|
build_libtool_need_lc=$archive_cmds_need_lc |
9435 |
|
|
9436 |
|
# Whether or not to disallow shared libs when runtime libs are static |
9437 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9438 |
|
|
9439 |
|
# Whether or not to optimize for fast installation. |
9440 |
|
fast_install=$enable_fast_install |
9441 |
|
|
9442 |
|
# The host system. |
9443 |
|
host_alias=$host_alias |
9444 |
|
host=$host |
9445 |
|
|
9446 |
|
# An echo program that does not interpret backslashes. |
9447 |
|
echo=$lt_echo |
9448 |
|
|
9449 |
|
# The archiver. |
9450 |
|
AR=$lt_AR |
9451 |
|
AR_FLAGS=$lt_AR_FLAGS |
9452 |
|
|
9453 |
|
# A C compiler. |
9454 |
|
LTCC=$lt_LTCC |
9455 |
|
|
9456 |
|
# A language-specific compiler. |
9457 |
|
CC=$lt_compiler |
9458 |
|
|
9459 |
|
# Is the compiler the GNU C compiler? |
9460 |
|
with_gcc=$GCC |
9461 |
|
|
9462 |
|
# An ERE matcher. |
9463 |
|
EGREP=$lt_EGREP |
9464 |
|
|
9465 |
|
# The linker used to build libraries. |
9466 |
|
LD=$lt_LD |
9467 |
|
|
9468 |
|
# Whether we need hard or soft links. |
9469 |
|
LN_S=$lt_LN_S |
9470 |
|
|
9471 |
|
# A BSD-compatible nm program. |
9472 |
|
NM=$lt_NM |
9473 |
|
|
9474 |
|
# A symbol stripping program |
9475 |
|
STRIP=$lt_STRIP |
9476 |
|
|
9477 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
9478 |
|
MAGIC_CMD=$MAGIC_CMD |
9479 |
|
|
9480 |
|
# Used on cygwin: DLL creation program. |
9481 |
|
DLLTOOL="$DLLTOOL" |
9482 |
|
|
9483 |
|
# Used on cygwin: object dumper. |
9484 |
|
OBJDUMP="$OBJDUMP" |
9485 |
|
|
9486 |
|
# Used on cygwin: assembler. |
9487 |
|
AS="$AS" |
9488 |
|
|
9489 |
|
# The name of the directory that contains temporary libtool files. |
9490 |
|
objdir=$objdir |
9491 |
|
|
9492 |
|
# How to create reloadable object files. |
9493 |
|
reload_flag=$lt_reload_flag |
9494 |
|
reload_cmds=$lt_reload_cmds |
9495 |
|
|
9496 |
|
# How to pass a linker flag through the compiler. |
9497 |
|
wl=$lt_lt_prog_compiler_wl |
9498 |
|
|
9499 |
|
# Object file suffix (normally "o"). |
9500 |
|
objext="$ac_objext" |
9501 |
|
|
9502 |
|
# Old archive suffix (normally "a"). |
9503 |
|
libext="$libext" |
9504 |
|
|
9505 |
|
# Shared library suffix (normally ".so"). |
9506 |
|
shrext_cmds='$shrext_cmds' |
9507 |
|
|
9508 |
|
# Executable file suffix (normally ""). |
9509 |
|
exeext="$exeext" |
9510 |
|
|
9511 |
|
# Additional compiler flags for building library objects. |
9512 |
|
pic_flag=$lt_lt_prog_compiler_pic |
9513 |
|
pic_mode=$pic_mode |
9514 |
|
|
9515 |
|
# What is the maximum length of a command? |
9516 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
9517 |
|
|
9518 |
|
# Does compiler simultaneously support -c and -o options? |
9519 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9520 |
|
|
9521 |
|
# Must we lock files when doing compilation ? |
9522 |
|
need_locks=$lt_need_locks |
9523 |
|
|
9524 |
|
# Do we need the lib prefix for modules? |
9525 |
|
need_lib_prefix=$need_lib_prefix |
9526 |
|
|
9527 |
|
# Do we need a version for libraries? |
9528 |
|
need_version=$need_version |
9529 |
|
|
9530 |
|
# Whether dlopen is supported. |
9531 |
|
dlopen_support=$enable_dlopen |
9532 |
|
|
9533 |
|
# Whether dlopen of programs is supported. |
9534 |
|
dlopen_self=$enable_dlopen_self |
9535 |
|
|
9536 |
|
# Whether dlopen of statically linked programs is supported. |
9537 |
|
dlopen_self_static=$enable_dlopen_self_static |
9538 |
|
|
9539 |
|
# Compiler flag to prevent dynamic linking. |
9540 |
|
link_static_flag=$lt_lt_prog_compiler_static |
9541 |
|
|
9542 |
|
# Compiler flag to turn off builtin functions. |
9543 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9544 |
|
|
9545 |
|
# Compiler flag to allow reflexive dlopens. |
9546 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9547 |
|
|
9548 |
|
# Compiler flag to generate shared objects directly from archives. |
9549 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9550 |
|
|
9551 |
|
# Compiler flag to generate thread-safe objects. |
9552 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9553 |
|
|
9554 |
|
# Library versioning type. |
9555 |
|
version_type=$version_type |
9556 |
|
|
9557 |
|
# Format of library name prefix. |
9558 |
|
libname_spec=$lt_libname_spec |
9559 |
|
|
9560 |
|
# List of archive names. First name is the real one, the rest are links. |
9561 |
|
# The last name is the one that the linker finds with -lNAME. |
9562 |
|
library_names_spec=$lt_library_names_spec |
9563 |
|
|
9564 |
|
# The coded name of the library, if different from the real name. |
9565 |
|
soname_spec=$lt_soname_spec |
9566 |
|
|
9567 |
|
# Commands used to build and install an old-style archive. |
9568 |
|
RANLIB=$lt_RANLIB |
9569 |
|
old_archive_cmds=$lt_old_archive_cmds |
9570 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
9571 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9572 |
|
|
9573 |
|
# Create an old-style archive from a shared archive. |
9574 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9575 |
|
|
9576 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
9577 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9578 |
|
|
9579 |
|
# Commands used to build and install a shared archive. |
9580 |
|
archive_cmds=$lt_archive_cmds |
9581 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds |
9582 |
|
postinstall_cmds=$lt_postinstall_cmds |
9583 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
9584 |
|
|
9585 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
9586 |
|
module_cmds=$lt_module_cmds |
9587 |
|
module_expsym_cmds=$lt_module_expsym_cmds |
9588 |
|
|
9589 |
|
# Commands to strip libraries. |
9590 |
|
old_striplib=$lt_old_striplib |
9591 |
|
striplib=$lt_striplib |
9592 |
|
|
9593 |
|
# Dependencies to place before the objects being linked to create a |
9594 |
|
# shared library. |
9595 |
|
predep_objects=$lt_predep_objects |
9596 |
|
|
9597 |
|
# Dependencies to place after the objects being linked to create a |
9598 |
|
# shared library. |
9599 |
|
postdep_objects=$lt_postdep_objects |
9600 |
|
|
9601 |
|
# Dependencies to place before the objects being linked to create a |
9602 |
|
# shared library. |
9603 |
|
predeps=$lt_predeps |
9604 |
|
|
9605 |
|
# Dependencies to place after the objects being linked to create a |
9606 |
|
# shared library. |
9607 |
|
postdeps=$lt_postdeps |
9608 |
|
|
9609 |
|
# The library search path used internally by the compiler when linking |
9610 |
|
# a shared library. |
9611 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path |
9612 |
|
|
9613 |
|
# Method to check whether dependent libraries are shared objects. |
9614 |
|
deplibs_check_method=$lt_deplibs_check_method |
9615 |
|
|
9616 |
|
# Command to use when deplibs_check_method == file_magic. |
9617 |
|
file_magic_cmd=$lt_file_magic_cmd |
9618 |
|
|
9619 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
9620 |
|
allow_undefined_flag=$lt_allow_undefined_flag |
9621 |
|
|
9622 |
|
# Flag that forces no undefined symbols. |
9623 |
|
no_undefined_flag=$lt_no_undefined_flag |
9624 |
|
|
9625 |
|
# Commands used to finish a libtool library installation in a directory. |
9626 |
|
finish_cmds=$lt_finish_cmds |
9627 |
|
|
9628 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
9629 |
|
finish_eval=$lt_finish_eval |
9630 |
|
|
9631 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
9632 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9633 |
|
|
9634 |
|
# Transform the output of nm in a proper C declaration |
9635 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9636 |
|
|
9637 |
|
# Transform the output of nm in a C name address pair |
9638 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9639 |
|
|
9640 |
|
# This is the shared library runtime path variable. |
9641 |
|
runpath_var=$runpath_var |
9642 |
|
|
9643 |
|
# This is the shared library path variable. |
9644 |
|
shlibpath_var=$shlibpath_var |
9645 |
|
|
9646 |
|
# Is shlibpath searched before the hard-coded library search path? |
9647 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9648 |
|
|
9649 |
|
# How to hardcode a shared library path into an executable. |
9650 |
|
hardcode_action=$hardcode_action |
9651 |
|
|
9652 |
|
# Whether we should hardcode library paths into libraries. |
9653 |
|
hardcode_into_libs=$hardcode_into_libs |
9654 |
|
|
9655 |
|
# Flag to hardcode \$libdir into a binary during linking. |
9656 |
|
# This must work even if \$libdir does not exist. |
9657 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9658 |
|
|
9659 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
9660 |
|
# a binary during linking. This must work even if \$libdir does |
9661 |
|
# not exist. |
9662 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9663 |
|
|
9664 |
|
# Whether we need a single -rpath flag with a separated argument. |
9665 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9666 |
|
|
9667 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9668 |
|
# resulting binary. |
9669 |
|
hardcode_direct=$hardcode_direct |
9670 |
|
|
9671 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9672 |
|
# resulting binary. |
9673 |
|
hardcode_minus_L=$hardcode_minus_L |
9674 |
|
|
9675 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9676 |
|
# the resulting binary. |
9677 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var |
9678 |
|
|
9679 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
9680 |
|
# and all subsequent libraries and executables linked against it. |
9681 |
|
hardcode_automatic=$hardcode_automatic |
9682 |
|
|
9683 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
9684 |
|
# restored at relink time. |
9685 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
9686 |
|
|
9687 |
|
# Whether libtool must link a program against all its dependency libraries. |
9688 |
|
link_all_deplibs=$link_all_deplibs |
9689 |
|
|
9690 |
|
# Compile-time system search path for libraries |
9691 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
9692 |
|
|
9693 |
|
# Run-time system search path for libraries |
9694 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9695 |
|
|
9696 |
|
# Fix the shell variable \$srcfile for the compiler. |
9697 |
|
fix_srcfile_path="$fix_srcfile_path" |
9698 |
|
|
9699 |
|
# Set to yes if exported symbols are required. |
9700 |
|
always_export_symbols=$always_export_symbols |
9701 |
|
|
9702 |
|
# The commands to list exported symbols. |
9703 |
|
export_symbols_cmds=$lt_export_symbols_cmds |
9704 |
|
|
9705 |
|
# The commands to extract the exported symbol list from a shared archive. |
9706 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9707 |
|
|
9708 |
|
# Symbols that should not be listed in the preloaded symbols. |
9709 |
|
exclude_expsyms=$lt_exclude_expsyms |
9710 |
|
|
9711 |
|
# Symbols that must always be exported. |
9712 |
|
include_expsyms=$lt_include_expsyms |
9713 |
|
|
9714 |
|
# ### END LIBTOOL CONFIG |
9715 |
|
|
9716 |
|
__EOF__ |
9717 |
|
|
9718 |
|
|
9719 |
|
case $host_os in |
9720 |
|
aix3*) |
9721 |
|
cat <<\EOF >> "$cfgfile" |
9722 |
|
|
9723 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
9724 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
9725 |
|
# vanish in a puff of smoke. |
9726 |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
9727 |
|
COLLECT_NAMES= |
9728 |
|
export COLLECT_NAMES |
9729 |
|
fi |
9730 |
|
EOF |
9731 |
|
;; |
9732 |
|
esac |
9733 |
|
|
9734 |
|
# We use sed instead of cat because bash on DJGPP gets confused if |
9735 |
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
9736 |
|
# text mode, it properly converts lines to CR/LF. This bash problem |
9737 |
|
# is reportedly fixed, but why not run on old versions too? |
9738 |
|
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9739 |
|
|
9740 |
|
mv -f "$cfgfile" "$ofile" || \ |
9741 |
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9742 |
|
chmod +x "$ofile" |
9743 |
|
|
9744 |
|
else |
9745 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
9746 |
|
# `config.status --recheck' to rerun these tests and create the |
9747 |
|
# libtool script then. |
9748 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9749 |
|
if test -f "$ltmain_in"; then |
9750 |
|
test -f Makefile && make "$ltmain" |
9751 |
|
fi |
9752 |
|
fi |
9753 |
|
|
9754 |
|
|
9755 |
|
ac_ext=c |
9756 |
|
ac_cpp='$CPP $CPPFLAGS' |
9757 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9758 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9759 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9760 |
|
|
9761 |
|
CC="$lt_save_CC" |
9762 |
|
|
9763 |
|
|
9764 |
|
# Check whether --with-tags or --without-tags was given. |
9765 |
|
if test "${with_tags+set}" = set; then |
9766 |
|
withval="$with_tags" |
9767 |
|
tagnames="$withval" |
9768 |
|
fi; |
9769 |
|
|
9770 |
|
if test -f "$ltmain" && test -n "$tagnames"; then |
9771 |
|
if test ! -f "${ofile}"; then |
9772 |
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9773 |
|
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9774 |
|
fi |
9775 |
|
|
9776 |
|
if test -z "$LTCC"; then |
9777 |
|
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9778 |
|
if test -z "$LTCC"; then |
9779 |
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
9780 |
|
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
9781 |
|
else |
9782 |
|
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
9783 |
|
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
9784 |
|
fi |
9785 |
|
fi |
9786 |
|
|
9787 |
|
# Extract list of available tagged configurations in $ofile. |
9788 |
|
# Note that this assumes the entire list is on one line. |
9789 |
|
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
9790 |
|
|
9791 |
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
9792 |
|
for tagname in $tagnames; do |
9793 |
|
IFS="$lt_save_ifs" |
9794 |
|
# Check whether tagname contains only valid characters |
9795 |
|
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
9796 |
|
"") ;; |
9797 |
|
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
9798 |
|
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
9799 |
|
{ (exit 1); exit 1; }; } |
9800 |
|
;; |
9801 |
|
esac |
9802 |
|
|
9803 |
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
9804 |
|
then |
9805 |
|
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
9806 |
|
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
9807 |
|
{ (exit 1); exit 1; }; } |
9808 |
|
fi |
9809 |
|
|
9810 |
|
# Update the list of available tags. |
9811 |
|
if test -n "$tagname"; then |
9812 |
|
echo appending configuration tag \"$tagname\" to $ofile |
9813 |
|
|
9814 |
|
case $tagname in |
9815 |
|
CXX) |
9816 |
|
if test -n "$CXX" && test "X$CXX" != "Xno"; then |
9817 |
|
ac_ext=cc |
9818 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
9819 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9820 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9821 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9822 |
|
|
9823 |
|
|
9824 |
|
|
9825 |
|
|
9826 |
|
archive_cmds_need_lc_CXX=no |
9827 |
|
allow_undefined_flag_CXX= |
9828 |
|
always_export_symbols_CXX=no |
9829 |
|
archive_expsym_cmds_CXX= |
9830 |
|
export_dynamic_flag_spec_CXX= |
9831 |
|
hardcode_direct_CXX=no |
9832 |
|
hardcode_libdir_flag_spec_CXX= |
9833 |
|
hardcode_libdir_flag_spec_ld_CXX= |
9834 |
|
hardcode_libdir_separator_CXX= |
9835 |
|
hardcode_minus_L_CXX=no |
9836 |
|
hardcode_automatic_CXX=no |
9837 |
|
module_cmds_CXX= |
9838 |
|
module_expsym_cmds_CXX= |
9839 |
|
link_all_deplibs_CXX=unknown |
9840 |
|
old_archive_cmds_CXX=$old_archive_cmds |
9841 |
|
no_undefined_flag_CXX= |
9842 |
|
whole_archive_flag_spec_CXX= |
9843 |
|
enable_shared_with_static_runtimes_CXX=no |
9844 |
|
|
9845 |
|
# Dependencies to place before and after the object being linked: |
9846 |
|
predep_objects_CXX= |
9847 |
|
postdep_objects_CXX= |
9848 |
|
predeps_CXX= |
9849 |
|
postdeps_CXX= |
9850 |
|
compiler_lib_search_path_CXX= |
9851 |
|
|
9852 |
|
# Source file extension for C++ test sources. |
9853 |
|
ac_ext=cc |
9854 |
|
|
9855 |
|
# Object file extension for compiled C++ test sources. |
9856 |
|
objext=o |
9857 |
|
objext_CXX=$objext |
9858 |
|
|
9859 |
|
# Code to be used in simple compile tests |
9860 |
|
lt_simple_compile_test_code="int some_variable = 0;\n" |
9861 |
|
|
9862 |
|
# Code to be used in simple link tests |
9863 |
|
lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
9864 |
|
|
9865 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
9866 |
|
|
9867 |
|
# If no C compiler was specified, use CC. |
9868 |
|
LTCC=${LTCC-"$CC"} |
9869 |
|
|
9870 |
|
# Allow CC to be a program name with arguments. |
9871 |
|
compiler=$CC |
9872 |
|
|
9873 |
|
|
9874 |
|
# Allow CC to be a program name with arguments. |
9875 |
|
lt_save_CC=$CC |
9876 |
|
lt_save_LD=$LD |
9877 |
|
lt_save_GCC=$GCC |
9878 |
|
GCC=$GXX |
9879 |
|
lt_save_with_gnu_ld=$with_gnu_ld |
9880 |
|
lt_save_path_LD=$lt_cv_path_LD |
9881 |
|
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
9882 |
|
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
9883 |
|
else |
9884 |
|
unset lt_cv_prog_gnu_ld |
9885 |
|
fi |
9886 |
|
if test -n "${lt_cv_path_LDCXX+set}"; then |
9887 |
|
lt_cv_path_LD=$lt_cv_path_LDCXX |
9888 |
|
else |
9889 |
|
unset lt_cv_path_LD |
9890 |
|
fi |
9891 |
|
test -z "${LDCXX+set}" || LD=$LDCXX |
9892 |
|
CC=${CXX-"c++"} |
9893 |
|
compiler=$CC |
9894 |
|
compiler_CXX=$CC |
9895 |
|
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
9896 |
|
|
9897 |
|
# We don't want -fno-exception wen compiling C++ code, so set the |
9898 |
|
# no_builtin_flag separately |
9899 |
|
if test "$GXX" = yes; then |
9900 |
|
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
9901 |
|
else |
9902 |
|
lt_prog_compiler_no_builtin_flag_CXX= |
9903 |
|
fi |
9904 |
|
|
9905 |
|
if test "$GXX" = yes; then |
9906 |
|
# Set up default GNU C++ configuration |
9907 |
|
|
9908 |
|
|
9909 |
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
9910 |
|
if test "${with_gnu_ld+set}" = set; then |
9911 |
|
withval="$with_gnu_ld" |
9912 |
|
test "$withval" = no || with_gnu_ld=yes |
9913 |
|
else |
9914 |
|
with_gnu_ld=no |
9915 |
|
fi; |
9916 |
|
ac_prog=ld |
9917 |
|
if test "$GCC" = yes; then |
9918 |
|
# Check if gcc -print-prog-name=ld gives a path. |
9919 |
|
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
9920 |
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
9921 |
|
case $host in |
9922 |
|
*-*-mingw*) |
9923 |
|
# gcc leaves a trailing carriage return which upsets mingw |
9924 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
9925 |
|
*) |
9926 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
9927 |
|
esac |
9928 |
|
case $ac_prog in |
9929 |
|
# Accept absolute paths. |
9930 |
|
[\\/]* | ?:[\\/]*) |
9931 |
|
re_direlt='/[^/][^/]*/\.\./' |
9932 |
|
# Canonicalize the pathname of ld |
9933 |
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
9934 |
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
9935 |
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
9936 |
|
done |
9937 |
|
test -z "$LD" && LD="$ac_prog" |
9938 |
|
;; |
9939 |
|
"") |
9940 |
|
# If it fails, then pretend we aren't using GCC. |
9941 |
|
ac_prog=ld |
9942 |
|
;; |
9943 |
|
*) |
9944 |
|
# If it is relative, then search for the first ld in PATH. |
9945 |
|
with_gnu_ld=unknown |
9946 |
|
;; |
9947 |
|
esac |
9948 |
|
elif test "$with_gnu_ld" = yes; then |
9949 |
|
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
9950 |
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
9951 |
|
else |
9952 |
|
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
9953 |
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
9954 |
|
fi |
9955 |
|
if test "${lt_cv_path_LD+set}" = set; then |
9956 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9957 |
|
else |
9958 |
|
if test -z "$LD"; then |
9959 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
9960 |
|
for ac_dir in $PATH; do |
9961 |
|
IFS="$lt_save_ifs" |
9962 |
|
test -z "$ac_dir" && ac_dir=. |
9963 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
9964 |
|
lt_cv_path_LD="$ac_dir/$ac_prog" |
9965 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
9966 |
|
# but apparently some GNU ld's only accept -v. |
9967 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
9968 |
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
9969 |
|
*GNU* | *'with BFD'*) |
9970 |
|
test "$with_gnu_ld" != no && break |
9971 |
|
;; |
9972 |
|
*) |
9973 |
|
test "$with_gnu_ld" != yes && break |
9974 |
|
;; |
9975 |
|
esac |
9976 |
|
fi |
9977 |
|
done |
9978 |
|
IFS="$lt_save_ifs" |
9979 |
|
else |
9980 |
|
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
9981 |
|
fi |
9982 |
|
fi |
9983 |
|
|
9984 |
|
LD="$lt_cv_path_LD" |
9985 |
|
if test -n "$LD"; then |
9986 |
|
echo "$as_me:$LINENO: result: $LD" >&5 |
9987 |
|
echo "${ECHO_T}$LD" >&6 |
9988 |
|
else |
9989 |
|
echo "$as_me:$LINENO: result: no" >&5 |
9990 |
|
echo "${ECHO_T}no" >&6 |
9991 |
|
fi |
9992 |
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
9993 |
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
9994 |
|
{ (exit 1); exit 1; }; } |
9995 |
|
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
9996 |
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
9997 |
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
9998 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9999 |
|
else |
10000 |
|
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
10001 |
|
case `$LD -v 2>&1 </dev/null` in |
10002 |
|
*GNU* | *'with BFD'*) |
10003 |
|
lt_cv_prog_gnu_ld=yes |
10004 |
|
;; |
10005 |
|
*) |
10006 |
|
lt_cv_prog_gnu_ld=no |
10007 |
|
;; |
10008 |
|
esac |
10009 |
|
fi |
10010 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10011 |
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10012 |
|
with_gnu_ld=$lt_cv_prog_gnu_ld |
10013 |
|
|
10014 |
|
|
10015 |
|
|
10016 |
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
10017 |
|
# archiving commands below assume that GNU ld is being used. |
10018 |
|
if test "$with_gnu_ld" = yes; then |
10019 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10020 |
|
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10021 |
|
|
10022 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10023 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10024 |
|
|
10025 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
10026 |
|
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10027 |
|
# investigate it a little bit more. (MM) |
10028 |
|
wlarc='${wl}' |
10029 |
|
|
10030 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
10031 |
|
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10032 |
|
grep 'no-whole-archive' > /dev/null; then |
10033 |
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10034 |
|
else |
10035 |
|
whole_archive_flag_spec_CXX= |
10036 |
|
fi |
10037 |
|
else |
10038 |
|
with_gnu_ld=no |
10039 |
|
wlarc= |
10040 |
|
|
10041 |
|
# A generic and very simple default shared library creation |
10042 |
|
# command for GNU C++ for the case where it uses the native |
10043 |
|
# linker, instead of GNU ld. If possible, this setting should |
10044 |
|
# overridden to take advantage of the native linker features on |
10045 |
|
# the platform it is being used on. |
10046 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10047 |
|
fi |
10048 |
|
|
10049 |
|
# Commands to make compiler produce verbose output that lists |
10050 |
|
# what "hidden" libraries, object files and flags are used when |
10051 |
|
# linking a shared library. |
10052 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10053 |
|
|
10054 |
|
else |
10055 |
|
GXX=no |
10056 |
|
with_gnu_ld=no |
10057 |
|
wlarc= |
10058 |
|
fi |
10059 |
|
|
10060 |
|
# PORTME: fill in a description of your system's C++ link characteristics |
10061 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10062 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10063 |
|
ld_shlibs_CXX=yes |
10064 |
|
case $host_os in |
10065 |
|
aix3*) |
10066 |
|
# FIXME: insert proper C++ library support |
10067 |
|
ld_shlibs_CXX=no |
10068 |
|
;; |
10069 |
|
aix4* | aix5*) |
10070 |
|
if test "$host_cpu" = ia64; then |
10071 |
|
# On IA64, the linker does run time linking by default, so we don't |
10072 |
|
# have to do anything special. |
10073 |
|
aix_use_runtimelinking=no |
10074 |
|
exp_sym_flag='-Bexport' |
10075 |
|
no_entry_flag="" |
10076 |
|
else |
10077 |
|
aix_use_runtimelinking=no |
10078 |
|
|
10079 |
|
# Test if we are trying to use run time linking or normal |
10080 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10081 |
|
# need to do runtime linking. |
10082 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10083 |
|
for ld_flag in $LDFLAGS; do |
10084 |
|
case $ld_flag in |
10085 |
|
*-brtl*) |
10086 |
|
aix_use_runtimelinking=yes |
10087 |
|
break |
10088 |
|
;; |
10089 |
|
esac |
10090 |
|
done |
10091 |
|
esac |
10092 |
|
|
10093 |
|
exp_sym_flag='-bexport' |
10094 |
|
no_entry_flag='-bnoentry' |
10095 |
|
fi |
10096 |
|
|
10097 |
|
# When large executables or shared objects are built, AIX ld can |
10098 |
|
# have problems creating the table of contents. If linking a library |
10099 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
10100 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10101 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10102 |
|
|
10103 |
|
archive_cmds_CXX='' |
10104 |
|
hardcode_direct_CXX=yes |
10105 |
|
hardcode_libdir_separator_CXX=':' |
10106 |
|
link_all_deplibs_CXX=yes |
10107 |
|
|
10108 |
|
if test "$GXX" = yes; then |
10109 |
|
case $host_os in aix4.012|aix4.012.*) |
10110 |
|
# We only want to do this on AIX 4.2 and lower, the check |
10111 |
|
# below for broken collect2 doesn't work under 4.3+ |
10112 |
|
collect2name=`${CC} -print-prog-name=collect2` |
10113 |
|
if test -f "$collect2name" && \ |
10114 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
10115 |
|
then |
10116 |
|
# We have reworked collect2 |
10117 |
|
hardcode_direct_CXX=yes |
10118 |
|
else |
10119 |
|
# We have old collect2 |
10120 |
|
hardcode_direct_CXX=unsupported |
10121 |
|
# It fails to find uninstalled libraries when the uninstalled |
10122 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
10123 |
|
# to unsupported forces relinking |
10124 |
|
hardcode_minus_L_CXX=yes |
10125 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10126 |
|
hardcode_libdir_separator_CXX= |
10127 |
|
fi |
10128 |
|
esac |
10129 |
|
shared_flag='-shared' |
10130 |
|
else |
10131 |
|
# not using gcc |
10132 |
|
if test "$host_cpu" = ia64; then |
10133 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10134 |
|
# chokes on -Wl,-G. The following line is correct: |
10135 |
|
shared_flag='-G' |
10136 |
|
else |
10137 |
|
if test "$aix_use_runtimelinking" = yes; then |
10138 |
|
shared_flag='${wl}-G' |
10139 |
|
else |
10140 |
|
shared_flag='${wl}-bM:SRE' |
10141 |
|
fi |
10142 |
|
fi |
10143 |
|
fi |
10144 |
|
|
10145 |
|
# It seems that -bexpall does not export symbols beginning with |
10146 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
10147 |
|
always_export_symbols_CXX=yes |
10148 |
|
if test "$aix_use_runtimelinking" = yes; then |
10149 |
|
# Warning - without using the other runtime loading flags (-brtl), |
10150 |
|
# -berok will link without error, but may produce a broken library. |
10151 |
|
allow_undefined_flag_CXX='-berok' |
10152 |
|
# Determine the default libpath from the value encoded in an empty executable. |
10153 |
|
cat >conftest.$ac_ext <<_ACEOF |
10154 |
|
/* confdefs.h. */ |
10155 |
|
_ACEOF |
10156 |
|
cat confdefs.h >>conftest.$ac_ext |
10157 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10158 |
|
/* end confdefs.h. */ |
10159 |
|
|
10160 |
|
int |
10161 |
|
main () |
10162 |
|
{ |
10163 |
|
|
10164 |
|
; |
10165 |
|
return 0; |
10166 |
|
} |
10167 |
|
_ACEOF |
10168 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10169 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10170 |
|
(eval $ac_link) 2>conftest.er1 |
10171 |
|
ac_status=$? |
10172 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10173 |
|
rm -f conftest.er1 |
10174 |
|
cat conftest.err >&5 |
10175 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10176 |
|
(exit $ac_status); } && |
10177 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
10178 |
|
|| test ! -s conftest.err' |
10179 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10180 |
|
(eval $ac_try) 2>&5 |
10181 |
|
ac_status=$? |
10182 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10183 |
|
(exit $ac_status); }; } && |
10184 |
|
{ ac_try='test -s conftest$ac_exeext' |
10185 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10186 |
|
(eval $ac_try) 2>&5 |
10187 |
|
ac_status=$? |
10188 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10189 |
|
(exit $ac_status); }; }; then |
10190 |
|
|
10191 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10192 |
|
}'` |
10193 |
|
# Check for a 64-bit object if we didn't find anything. |
10194 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10195 |
|
}'`; fi |
10196 |
|
else |
10197 |
|
echo "$as_me: failed program was:" >&5 |
10198 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10199 |
|
|
10200 |
|
fi |
10201 |
|
rm -f conftest.err conftest.$ac_objext \ |
10202 |
|
conftest$ac_exeext conftest.$ac_ext |
10203 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10204 |
|
|
10205 |
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10206 |
|
|
10207 |
|
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
10208 |
|
else |
10209 |
|
if test "$host_cpu" = ia64; then |
10210 |
|
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10211 |
|
allow_undefined_flag_CXX="-z nodefs" |
10212 |
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
10213 |
|
else |
10214 |
|
# Determine the default libpath from the value encoded in an empty executable. |
10215 |
|
cat >conftest.$ac_ext <<_ACEOF |
10216 |
|
/* confdefs.h. */ |
10217 |
|
_ACEOF |
10218 |
|
cat confdefs.h >>conftest.$ac_ext |
10219 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10220 |
|
/* end confdefs.h. */ |
10221 |
|
|
10222 |
|
int |
10223 |
|
main () |
10224 |
|
{ |
10225 |
|
|
10226 |
|
; |
10227 |
|
return 0; |
10228 |
|
} |
10229 |
|
_ACEOF |
10230 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10231 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10232 |
|
(eval $ac_link) 2>conftest.er1 |
10233 |
|
ac_status=$? |
10234 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10235 |
|
rm -f conftest.er1 |
10236 |
|
cat conftest.err >&5 |
10237 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10238 |
|
(exit $ac_status); } && |
10239 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
10240 |
|
|| test ! -s conftest.err' |
10241 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10242 |
|
(eval $ac_try) 2>&5 |
10243 |
|
ac_status=$? |
10244 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10245 |
|
(exit $ac_status); }; } && |
10246 |
|
{ ac_try='test -s conftest$ac_exeext' |
10247 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10248 |
|
(eval $ac_try) 2>&5 |
10249 |
|
ac_status=$? |
10250 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10251 |
|
(exit $ac_status); }; }; then |
10252 |
|
|
10253 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10254 |
|
}'` |
10255 |
|
# Check for a 64-bit object if we didn't find anything. |
10256 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10257 |
|
}'`; fi |
10258 |
|
else |
10259 |
|
echo "$as_me: failed program was:" >&5 |
10260 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10261 |
|
|
10262 |
|
fi |
10263 |
|
rm -f conftest.err conftest.$ac_objext \ |
10264 |
|
conftest$ac_exeext conftest.$ac_ext |
10265 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10266 |
|
|
10267 |
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10268 |
|
# Warning - without using the other run time loading flags, |
10269 |
|
# -berok will link without error, but may produce a broken library. |
10270 |
|
no_undefined_flag_CXX=' ${wl}-bernotok' |
10271 |
|
allow_undefined_flag_CXX=' ${wl}-berok' |
10272 |
|
# -bexpall does not export symbols beginning with underscore (_) |
10273 |
|
always_export_symbols_CXX=yes |
10274 |
|
# Exported symbols can be pulled into shared objects from archives |
10275 |
|
whole_archive_flag_spec_CXX=' ' |
10276 |
|
archive_cmds_need_lc_CXX=yes |
10277 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
10278 |
|
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
10279 |
|
fi |
10280 |
|
fi |
10281 |
|
;; |
10282 |
|
chorus*) |
10283 |
|
case $cc_basename in |
10284 |
|
*) |
10285 |
|
# FIXME: insert proper C++ library support |
10286 |
|
ld_shlibs_CXX=no |
10287 |
|
;; |
10288 |
|
esac |
10289 |
|
;; |
10290 |
|
|
10291 |
|
cygwin* | mingw* | pw32*) |
10292 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10293 |
|
# as there is no search path for DLLs. |
10294 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10295 |
|
allow_undefined_flag_CXX=unsupported |
10296 |
|
always_export_symbols_CXX=no |
10297 |
|
enable_shared_with_static_runtimes_CXX=yes |
10298 |
|
|
10299 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10300 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
10301 |
|
# If the export-symbols file already is a .def file (1st line |
10302 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
10303 |
|
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10304 |
|
cp $export_symbols $output_objdir/$soname.def; |
10305 |
|
else |
10306 |
|
echo EXPORTS > $output_objdir/$soname.def; |
10307 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
10308 |
|
fi~ |
10309 |
|
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
10310 |
|
else |
10311 |
|
ld_shlibs_CXX=no |
10312 |
|
fi |
10313 |
|
;; |
10314 |
|
|
10315 |
|
darwin* | rhapsody*) |
10316 |
|
if test "$GXX" = yes; then |
10317 |
|
archive_cmds_need_lc_CXX=no |
10318 |
|
case "$host_os" in |
10319 |
|
rhapsody* | darwin1.[012]) |
10320 |
|
allow_undefined_flag_CXX='-undefined suppress' |
10321 |
|
;; |
10322 |
|
*) # Darwin 1.3 on |
10323 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10324 |
|
allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
10325 |
|
else |
10326 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
10327 |
|
10.[012]) |
10328 |
|
allow_undefined_flag_CXX='-flat_namespace -undefined suppress' |
10329 |
|
;; |
10330 |
|
10.*) |
10331 |
|
allow_undefined_flag_CXX='-undefined dynamic_lookup' |
10332 |
|
;; |
10333 |
|
esac |
10334 |
|
fi |
10335 |
|
;; |
10336 |
|
esac |
10337 |
|
lt_int_apple_cc_single_mod=no |
10338 |
|
output_verbose_link_cmd='echo' |
10339 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
10340 |
|
lt_int_apple_cc_single_mod=yes |
10341 |
|
fi |
10342 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10343 |
|
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10344 |
|
else |
10345 |
|
archive_cmds_CXX='$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' |
10346 |
|
fi |
10347 |
|
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10348 |
|
|
10349 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
10350 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10351 |
|
archive_expsym_cmds_CXX='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}' |
10352 |
|
else |
10353 |
|
archive_expsym_cmds_CXX='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}' |
10354 |
|
fi |
10355 |
|
module_expsym_cmds_CXX='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}' |
10356 |
|
hardcode_direct_CXX=no |
10357 |
|
hardcode_automatic_CXX=yes |
10358 |
|
hardcode_shlibpath_var_CXX=unsupported |
10359 |
|
whole_archive_flag_spec_CXX='-all_load $convenience' |
10360 |
|
link_all_deplibs_CXX=yes |
10361 |
|
else |
10362 |
|
ld_shlibs_CXX=no |
10363 |
|
fi |
10364 |
|
;; |
10365 |
|
|
10366 |
|
dgux*) |
10367 |
|
case $cc_basename in |
10368 |
|
ec++) |
10369 |
|
# FIXME: insert proper C++ library support |
10370 |
|
ld_shlibs_CXX=no |
10371 |
|
;; |
10372 |
|
ghcx) |
10373 |
|
# Green Hills C++ Compiler |
10374 |
|
# FIXME: insert proper C++ library support |
10375 |
|
ld_shlibs_CXX=no |
10376 |
|
;; |
10377 |
|
*) |
10378 |
|
# FIXME: insert proper C++ library support |
10379 |
|
ld_shlibs_CXX=no |
10380 |
|
;; |
10381 |
|
esac |
10382 |
|
;; |
10383 |
|
freebsd12*) |
10384 |
|
# C++ shared libraries reported to be fairly broken before switch to ELF |
10385 |
|
ld_shlibs_CXX=no |
10386 |
|
;; |
10387 |
|
freebsd-elf*) |
10388 |
|
archive_cmds_need_lc_CXX=no |
10389 |
|
;; |
10390 |
|
freebsd* | kfreebsd*-gnu) |
10391 |
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10392 |
|
# conventions |
10393 |
|
ld_shlibs_CXX=yes |
10394 |
|
;; |
10395 |
|
gnu*) |
10396 |
|
;; |
10397 |
|
hpux9*) |
10398 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10399 |
|
hardcode_libdir_separator_CXX=: |
10400 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
10401 |
|
hardcode_direct_CXX=yes |
10402 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10403 |
|
# but as the default |
10404 |
|
# location of the library. |
10405 |
|
|
10406 |
|
case $cc_basename in |
10407 |
|
CC) |
10408 |
|
# FIXME: insert proper C++ library support |
10409 |
|
ld_shlibs_CXX=no |
10410 |
|
;; |
10411 |
|
aCC) |
10412 |
|
archive_cmds_CXX='$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' |
10413 |
|
# Commands to make compiler produce verbose output that lists |
10414 |
|
# what "hidden" libraries, object files and flags are used when |
10415 |
|
# linking a shared library. |
10416 |
|
# |
10417 |
|
# There doesn't appear to be a way to prevent this compiler from |
10418 |
|
# explicitly linking system object files so we need to strip them |
10419 |
|
# from the output so that they don't get included in the library |
10420 |
|
# dependencies. |
10421 |
|
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' |
10422 |
|
;; |
10423 |
|
*) |
10424 |
|
if test "$GXX" = yes; then |
10425 |
|
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' |
10426 |
|
else |
10427 |
|
# FIXME: insert proper C++ library support |
10428 |
|
ld_shlibs_CXX=no |
10429 |
|
fi |
10430 |
|
;; |
10431 |
|
esac |
10432 |
|
;; |
10433 |
|
hpux10*|hpux11*) |
10434 |
|
if test $with_gnu_ld = no; then |
10435 |
|
case "$host_cpu" in |
10436 |
|
hppa*64*) |
10437 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10438 |
|
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10439 |
|
hardcode_libdir_separator_CXX=: |
10440 |
|
;; |
10441 |
|
ia64*) |
10442 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10443 |
|
;; |
10444 |
|
*) |
10445 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10446 |
|
hardcode_libdir_separator_CXX=: |
10447 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
10448 |
|
;; |
10449 |
|
esac |
10450 |
|
fi |
10451 |
|
case "$host_cpu" in |
10452 |
|
hppa*64*) |
10453 |
|
hardcode_direct_CXX=no |
10454 |
|
hardcode_shlibpath_var_CXX=no |
10455 |
|
;; |
10456 |
|
ia64*) |
10457 |
|
hardcode_direct_CXX=no |
10458 |
|
hardcode_shlibpath_var_CXX=no |
10459 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10460 |
|
# but as the default |
10461 |
|
# location of the library. |
10462 |
|
;; |
10463 |
|
*) |
10464 |
|
hardcode_direct_CXX=yes |
10465 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10466 |
|
# but as the default |
10467 |
|
# location of the library. |
10468 |
|
;; |
10469 |
|
esac |
10470 |
|
|
10471 |
|
case $cc_basename in |
10472 |
|
CC) |
10473 |
|
# FIXME: insert proper C++ library support |
10474 |
|
ld_shlibs_CXX=no |
10475 |
|
;; |
10476 |
|
aCC) |
10477 |
|
case "$host_cpu" in |
10478 |
|
hppa*64*|ia64*) |
10479 |
|
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
10480 |
|
;; |
10481 |
|
*) |
10482 |
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10483 |
|
;; |
10484 |
|
esac |
10485 |
|
# Commands to make compiler produce verbose output that lists |
10486 |
|
# what "hidden" libraries, object files and flags are used when |
10487 |
|
# linking a shared library. |
10488 |
|
# |
10489 |
|
# There doesn't appear to be a way to prevent this compiler from |
10490 |
|
# explicitly linking system object files so we need to strip them |
10491 |
|
# from the output so that they don't get included in the library |
10492 |
|
# dependencies. |
10493 |
|
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' |
10494 |
|
;; |
10495 |
|
*) |
10496 |
|
if test "$GXX" = yes; then |
10497 |
|
if test $with_gnu_ld = no; then |
10498 |
|
case "$host_cpu" in |
10499 |
|
ia64*|hppa*64*) |
10500 |
|
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
10501 |
|
;; |
10502 |
|
*) |
10503 |
|
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10504 |
|
;; |
10505 |
|
esac |
10506 |
|
fi |
10507 |
|
else |
10508 |
|
# FIXME: insert proper C++ library support |
10509 |
|
ld_shlibs_CXX=no |
10510 |
|
fi |
10511 |
|
;; |
10512 |
|
esac |
10513 |
|
;; |
10514 |
|
irix5* | irix6*) |
10515 |
|
case $cc_basename in |
10516 |
|
CC) |
10517 |
|
# SGI C++ |
10518 |
|
archive_cmds_CXX='$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' |
10519 |
|
|
10520 |
|
# Archives containing C++ object files must be created using |
10521 |
|
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10522 |
|
# necessary to make sure instantiated templates are included |
10523 |
|
# in the archive. |
10524 |
|
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10525 |
|
;; |
10526 |
|
*) |
10527 |
|
if test "$GXX" = yes; then |
10528 |
|
if test "$with_gnu_ld" = no; then |
10529 |
|
archive_cmds_CXX='$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' |
10530 |
|
else |
10531 |
|
archive_cmds_CXX='$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' |
10532 |
|
fi |
10533 |
|
fi |
10534 |
|
link_all_deplibs_CXX=yes |
10535 |
|
;; |
10536 |
|
esac |
10537 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10538 |
|
hardcode_libdir_separator_CXX=: |
10539 |
|
;; |
10540 |
|
linux*) |
10541 |
|
case $cc_basename in |
10542 |
|
KCC) |
10543 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10544 |
|
|
10545 |
|
# KCC will only create a shared library if the output file |
10546 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10547 |
|
# to its proper name (with version) after linking. |
10548 |
|
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10549 |
|
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
10550 |
|
# Commands to make compiler produce verbose output that lists |
10551 |
|
# what "hidden" libraries, object files and flags are used when |
10552 |
|
# linking a shared library. |
10553 |
|
# |
10554 |
|
# There doesn't appear to be a way to prevent this compiler from |
10555 |
|
# explicitly linking system object files so we need to strip them |
10556 |
|
# from the output so that they don't get included in the library |
10557 |
|
# dependencies. |
10558 |
|
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10559 |
|
|
10560 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10561 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10562 |
|
|
10563 |
|
# Archives containing C++ object files must be created using |
10564 |
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10565 |
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10566 |
|
;; |
10567 |
|
icpc) |
10568 |
|
# Intel C++ |
10569 |
|
with_gnu_ld=yes |
10570 |
|
archive_cmds_need_lc_CXX=no |
10571 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10572 |
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10573 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10574 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10575 |
|
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10576 |
|
;; |
10577 |
|
cxx) |
10578 |
|
# Compaq C++ |
10579 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10580 |
|
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
10581 |
|
|
10582 |
|
runpath_var=LD_RUN_PATH |
10583 |
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10584 |
|
hardcode_libdir_separator_CXX=: |
10585 |
|
|
10586 |
|
# Commands to make compiler produce verbose output that lists |
10587 |
|
# what "hidden" libraries, object files and flags are used when |
10588 |
|
# linking a shared library. |
10589 |
|
# |
10590 |
|
# There doesn't appear to be a way to prevent this compiler from |
10591 |
|
# explicitly linking system object files so we need to strip them |
10592 |
|
# from the output so that they don't get included in the library |
10593 |
|
# dependencies. |
10594 |
|
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10595 |
|
;; |
10596 |
|
esac |
10597 |
|
;; |
10598 |
|
lynxos*) |
10599 |
|
# FIXME: insert proper C++ library support |
10600 |
|
ld_shlibs_CXX=no |
10601 |
|
;; |
10602 |
|
m88k*) |
10603 |
|
# FIXME: insert proper C++ library support |
10604 |
|
ld_shlibs_CXX=no |
10605 |
|
;; |
10606 |
|
mvs*) |
10607 |
|
case $cc_basename in |
10608 |
|
cxx) |
10609 |
|
# FIXME: insert proper C++ library support |
10610 |
|
ld_shlibs_CXX=no |
10611 |
|
;; |
10612 |
|
*) |
10613 |
|
# FIXME: insert proper C++ library support |
10614 |
|
ld_shlibs_CXX=no |
10615 |
|
;; |
10616 |
|
esac |
10617 |
|
;; |
10618 |
|
netbsd*) |
10619 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10620 |
|
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10621 |
|
wlarc= |
10622 |
|
hardcode_libdir_flag_spec_CXX='-R$libdir' |
10623 |
|
hardcode_direct_CXX=yes |
10624 |
|
hardcode_shlibpath_var_CXX=no |
10625 |
|
fi |
10626 |
|
# Workaround some broken pre-1.5 toolchains |
10627 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10628 |
|
;; |
10629 |
|
osf3*) |
10630 |
|
case $cc_basename in |
10631 |
|
KCC) |
10632 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10633 |
|
|
10634 |
|
# KCC will only create a shared library if the output file |
10635 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10636 |
|
# to its proper name (with version) after linking. |
10637 |
|
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10638 |
|
|
10639 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10640 |
|
hardcode_libdir_separator_CXX=: |
10641 |
|
|
10642 |
|
# Archives containing C++ object files must be created using |
10643 |
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10644 |
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10645 |
|
|
10646 |
|
;; |
10647 |
|
RCC) |
10648 |
|
# Rational C++ 2.4.1 |
10649 |
|
# FIXME: insert proper C++ library support |
10650 |
|
ld_shlibs_CXX=no |
10651 |
|
;; |
10652 |
|
cxx) |
10653 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10654 |
|
archive_cmds_CXX='$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' |
10655 |
|
|
10656 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10657 |
|
hardcode_libdir_separator_CXX=: |
10658 |
|
|
10659 |
|
# Commands to make compiler produce verbose output that lists |
10660 |
|
# what "hidden" libraries, object files and flags are used when |
10661 |
|
# linking a shared library. |
10662 |
|
# |
10663 |
|
# There doesn't appear to be a way to prevent this compiler from |
10664 |
|
# explicitly linking system object files so we need to strip them |
10665 |
|
# from the output so that they don't get included in the library |
10666 |
|
# dependencies. |
10667 |
|
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10668 |
|
;; |
10669 |
|
*) |
10670 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10671 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10672 |
|
archive_cmds_CXX='$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' |
10673 |
|
|
10674 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10675 |
|
hardcode_libdir_separator_CXX=: |
10676 |
|
|
10677 |
|
# Commands to make compiler produce verbose output that lists |
10678 |
|
# what "hidden" libraries, object files and flags are used when |
10679 |
|
# linking a shared library. |
10680 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10681 |
|
|
10682 |
|
else |
10683 |
|
# FIXME: insert proper C++ library support |
10684 |
|
ld_shlibs_CXX=no |
10685 |
|
fi |
10686 |
|
;; |
10687 |
|
esac |
10688 |
|
;; |
10689 |
|
osf4* | osf5*) |
10690 |
|
case $cc_basename in |
10691 |
|
KCC) |
10692 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10693 |
|
|
10694 |
|
# KCC will only create a shared library if the output file |
10695 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10696 |
|
# to its proper name (with version) after linking. |
10697 |
|
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
10698 |
|
|
10699 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10700 |
|
hardcode_libdir_separator_CXX=: |
10701 |
|
|
10702 |
|
# Archives containing C++ object files must be created using |
10703 |
|
# the KAI C++ compiler. |
10704 |
|
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
10705 |
|
;; |
10706 |
|
RCC) |
10707 |
|
# Rational C++ 2.4.1 |
10708 |
|
# FIXME: insert proper C++ library support |
10709 |
|
ld_shlibs_CXX=no |
10710 |
|
;; |
10711 |
|
cxx) |
10712 |
|
allow_undefined_flag_CXX=' -expect_unresolved \*' |
10713 |
|
archive_cmds_CXX='$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' |
10714 |
|
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
10715 |
|
echo "-hidden">> $lib.exp~ |
10716 |
|
$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~ |
10717 |
|
$rm $lib.exp' |
10718 |
|
|
10719 |
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10720 |
|
hardcode_libdir_separator_CXX=: |
10721 |
|
|
10722 |
|
# Commands to make compiler produce verbose output that lists |
10723 |
|
# what "hidden" libraries, object files and flags are used when |
10724 |
|
# linking a shared library. |
10725 |
|
# |
10726 |
|
# There doesn't appear to be a way to prevent this compiler from |
10727 |
|
# explicitly linking system object files so we need to strip them |
10728 |
|
# from the output so that they don't get included in the library |
10729 |
|
# dependencies. |
10730 |
|
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10731 |
|
;; |
10732 |
|
*) |
10733 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10734 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10735 |
|
archive_cmds_CXX='$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' |
10736 |
|
|
10737 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10738 |
|
hardcode_libdir_separator_CXX=: |
10739 |
|
|
10740 |
|
# Commands to make compiler produce verbose output that lists |
10741 |
|
# what "hidden" libraries, object files and flags are used when |
10742 |
|
# linking a shared library. |
10743 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10744 |
|
|
10745 |
|
else |
10746 |
|
# FIXME: insert proper C++ library support |
10747 |
|
ld_shlibs_CXX=no |
10748 |
|
fi |
10749 |
|
;; |
10750 |
|
esac |
10751 |
|
;; |
10752 |
|
psos*) |
10753 |
|
# FIXME: insert proper C++ library support |
10754 |
|
ld_shlibs_CXX=no |
10755 |
|
;; |
10756 |
|
sco*) |
10757 |
|
archive_cmds_need_lc_CXX=no |
10758 |
|
case $cc_basename in |
10759 |
|
CC) |
10760 |
|
# FIXME: insert proper C++ library support |
10761 |
|
ld_shlibs_CXX=no |
10762 |
|
;; |
10763 |
|
*) |
10764 |
|
# FIXME: insert proper C++ library support |
10765 |
|
ld_shlibs_CXX=no |
10766 |
|
;; |
10767 |
|
esac |
10768 |
|
;; |
10769 |
|
sunos4*) |
10770 |
|
case $cc_basename in |
10771 |
|
CC) |
10772 |
|
# Sun C++ 4.x |
10773 |
|
# FIXME: insert proper C++ library support |
10774 |
|
ld_shlibs_CXX=no |
10775 |
|
;; |
10776 |
|
lcc) |
10777 |
|
# Lucid |
10778 |
|
# FIXME: insert proper C++ library support |
10779 |
|
ld_shlibs_CXX=no |
10780 |
|
;; |
10781 |
|
*) |
10782 |
|
# FIXME: insert proper C++ library support |
10783 |
|
ld_shlibs_CXX=no |
10784 |
|
;; |
10785 |
|
esac |
10786 |
|
;; |
10787 |
|
solaris*) |
10788 |
|
case $cc_basename in |
10789 |
|
CC) |
10790 |
|
# Sun C++ 4.2, 5.x and Centerline C++ |
10791 |
|
no_undefined_flag_CXX=' -zdefs' |
10792 |
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10793 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
10794 |
|
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
10795 |
|
|
10796 |
|
hardcode_libdir_flag_spec_CXX='-R$libdir' |
10797 |
|
hardcode_shlibpath_var_CXX=no |
10798 |
|
case $host_os in |
10799 |
|
solaris2.0-5 | solaris2.0-5.*) ;; |
10800 |
|
*) |
10801 |
|
# The C++ compiler is used as linker so we must use $wl |
10802 |
|
# flag to pass the commands to the underlying system |
10803 |
|
# linker. |
10804 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
10805 |
|
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
10806 |
|
;; |
10807 |
|
esac |
10808 |
|
link_all_deplibs_CXX=yes |
10809 |
|
|
10810 |
|
# Commands to make compiler produce verbose output that lists |
10811 |
|
# what "hidden" libraries, object files and flags are used when |
10812 |
|
# linking a shared library. |
10813 |
|
# |
10814 |
|
# There doesn't appear to be a way to prevent this compiler from |
10815 |
|
# explicitly linking system object files so we need to strip them |
10816 |
|
# from the output so that they don't get included in the library |
10817 |
|
# dependencies. |
10818 |
|
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
10819 |
|
|
10820 |
|
# Archives containing C++ object files must be created using |
10821 |
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
10822 |
|
# necessary to make sure instantiated templates are included |
10823 |
|
# in the archive. |
10824 |
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
10825 |
|
;; |
10826 |
|
gcx) |
10827 |
|
# Green Hills C++ Compiler |
10828 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
10829 |
|
|
10830 |
|
# The C++ compiler must be used to create the archive. |
10831 |
|
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
10832 |
|
;; |
10833 |
|
*) |
10834 |
|
# GNU C++ compiler with Solaris linker |
10835 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10836 |
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
10837 |
|
if $CC --version | grep -v '^2\.7' > /dev/null; then |
10838 |
|
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
10839 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
10840 |
|
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
10841 |
|
|
10842 |
|
# Commands to make compiler produce verbose output that lists |
10843 |
|
# what "hidden" libraries, object files and flags are used when |
10844 |
|
# linking a shared library. |
10845 |
|
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
10846 |
|
else |
10847 |
|
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
10848 |
|
# platform. |
10849 |
|
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
10850 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
10851 |
|
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
10852 |
|
|
10853 |
|
# Commands to make compiler produce verbose output that lists |
10854 |
|
# what "hidden" libraries, object files and flags are used when |
10855 |
|
# linking a shared library. |
10856 |
|
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
10857 |
|
fi |
10858 |
|
|
10859 |
|
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
10860 |
|
fi |
10861 |
|
;; |
10862 |
|
esac |
10863 |
|
;; |
10864 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
10865 |
|
archive_cmds_need_lc_CXX=no |
10866 |
|
;; |
10867 |
|
tandem*) |
10868 |
|
case $cc_basename in |
10869 |
|
NCC) |
10870 |
|
# NonStop-UX NCC 3.20 |
10871 |
|
# FIXME: insert proper C++ library support |
10872 |
|
ld_shlibs_CXX=no |
10873 |
|
;; |
10874 |
|
*) |
10875 |
|
# FIXME: insert proper C++ library support |
10876 |
|
ld_shlibs_CXX=no |
10877 |
|
;; |
10878 |
|
esac |
10879 |
|
;; |
10880 |
|
vxworks*) |
10881 |
|
# FIXME: insert proper C++ library support |
10882 |
|
ld_shlibs_CXX=no |
10883 |
|
;; |
10884 |
|
*) |
10885 |
|
# FIXME: insert proper C++ library support |
10886 |
|
ld_shlibs_CXX=no |
10887 |
|
;; |
10888 |
|
esac |
10889 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
10890 |
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
10891 |
|
test "$ld_shlibs_CXX" = no && can_build_shared=no |
10892 |
|
|
10893 |
|
GCC_CXX="$GXX" |
10894 |
|
LD_CXX="$LD" |
10895 |
|
|
10896 |
|
|
10897 |
|
cat > conftest.$ac_ext <<EOF |
10898 |
|
class Foo |
10899 |
|
{ |
10900 |
|
public: |
10901 |
|
Foo (void) { a = 0; } |
10902 |
|
private: |
10903 |
|
int a; |
10904 |
|
}; |
10905 |
|
EOF |
10906 |
|
|
10907 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
10908 |
|
(eval $ac_compile) 2>&5 |
10909 |
|
ac_status=$? |
10910 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10911 |
|
(exit $ac_status); }; then |
10912 |
|
# Parse the compiler output and extract the necessary |
10913 |
|
# objects, libraries and library flags. |
10914 |
|
|
10915 |
|
# Sentinel used to keep track of whether or not we are before |
10916 |
|
# the conftest object file. |
10917 |
|
pre_test_object_deps_done=no |
10918 |
|
|
10919 |
|
# The `*' in the case matches for architectures that use `case' in |
10920 |
|
# $output_verbose_cmd can trigger glob expansion during the loop |
10921 |
|
# eval without this substitution. |
10922 |
|
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
10923 |
|
|
10924 |
|
for p in `eval $output_verbose_link_cmd`; do |
10925 |
|
case $p in |
10926 |
|
|
10927 |
|
-L* | -R* | -l*) |
10928 |
|
# Some compilers place space between "-{L,R}" and the path. |
10929 |
|
# Remove the space. |
10930 |
|
if test $p = "-L" \ |
10931 |
|
|| test $p = "-R"; then |
10932 |
|
prev=$p |
10933 |
|
continue |
10934 |
|
else |
10935 |
|
prev= |
10936 |
|
fi |
10937 |
|
|
10938 |
|
if test "$pre_test_object_deps_done" = no; then |
10939 |
|
case $p in |
10940 |
|
-L* | -R*) |
10941 |
|
# Internal compiler library paths should come after those |
10942 |
|
# provided the user. The postdeps already come after the |
10943 |
|
# user supplied libs so there is no need to process them. |
10944 |
|
if test -z "$compiler_lib_search_path_CXX"; then |
10945 |
|
compiler_lib_search_path_CXX="${prev}${p}" |
10946 |
|
else |
10947 |
|
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
10948 |
|
fi |
10949 |
|
;; |
10950 |
|
# The "-l" case would never come before the object being |
10951 |
|
# linked, so don't bother handling this case. |
10952 |
|
esac |
10953 |
|
else |
10954 |
|
if test -z "$postdeps_CXX"; then |
10955 |
|
postdeps_CXX="${prev}${p}" |
10956 |
|
else |
10957 |
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
10958 |
|
fi |
10959 |
|
fi |
10960 |
|
;; |
10961 |
|
|
10962 |
|
*.$objext) |
10963 |
|
# This assumes that the test object file only shows up |
10964 |
|
# once in the compiler output. |
10965 |
|
if test "$p" = "conftest.$objext"; then |
10966 |
|
pre_test_object_deps_done=yes |
10967 |
|
continue |
10968 |
|
fi |
10969 |
|
|
10970 |
|
if test "$pre_test_object_deps_done" = no; then |
10971 |
|
if test -z "$predep_objects_CXX"; then |
10972 |
|
predep_objects_CXX="$p" |
10973 |
|
else |
10974 |
|
predep_objects_CXX="$predep_objects_CXX $p" |
10975 |
|
fi |
10976 |
|
else |
10977 |
|
if test -z "$postdep_objects_CXX"; then |
10978 |
|
postdep_objects_CXX="$p" |
10979 |
|
else |
10980 |
|
postdep_objects_CXX="$postdep_objects_CXX $p" |
10981 |
|
fi |
10982 |
|
fi |
10983 |
|
;; |
10984 |
|
|
10985 |
|
*) ;; # Ignore the rest. |
10986 |
|
|
10987 |
|
esac |
10988 |
|
done |
10989 |
|
|
10990 |
|
# Clean up. |
10991 |
|
rm -f a.out a.exe |
10992 |
|
else |
10993 |
|
echo "libtool.m4: error: problem compiling CXX test program" |
10994 |
|
fi |
10995 |
|
|
10996 |
|
$rm -f confest.$objext |
10997 |
|
|
10998 |
|
case " $postdeps_CXX " in |
10999 |
|
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11000 |
|
esac |
11001 |
|
|
11002 |
|
lt_prog_compiler_wl_CXX= |
11003 |
|
lt_prog_compiler_pic_CXX= |
11004 |
|
lt_prog_compiler_static_CXX= |
11005 |
|
|
11006 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11007 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11008 |
|
|
11009 |
|
# C++ specific cases for pic, static, wl, etc. |
11010 |
|
if test "$GXX" = yes; then |
11011 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11012 |
|
lt_prog_compiler_static_CXX='-static' |
11013 |
|
|
11014 |
|
case $host_os in |
11015 |
|
aix*) |
11016 |
|
# All AIX code is PIC. |
11017 |
|
if test "$host_cpu" = ia64; then |
11018 |
|
# AIX 5 now supports IA64 processor |
11019 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11020 |
|
fi |
11021 |
|
;; |
11022 |
|
amigaos*) |
11023 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
11024 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
11025 |
|
# like `-m68040'. |
11026 |
|
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11027 |
|
;; |
11028 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11029 |
|
# PIC is the default for these OSes. |
11030 |
|
;; |
11031 |
|
mingw* | os2* | pw32*) |
11032 |
|
# This hack is so that the source file can tell whether it is being |
11033 |
|
# built for inclusion in a dll (and should export symbols for example). |
11034 |
|
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11035 |
|
;; |
11036 |
|
darwin* | rhapsody*) |
11037 |
|
# PIC is the default on this platform |
11038 |
|
# Common symbols not allowed in MH_DYLIB files |
11039 |
|
lt_prog_compiler_pic_CXX='-fno-common' |
11040 |
|
;; |
11041 |
|
*djgpp*) |
11042 |
|
# DJGPP does not support shared libraries at all |
11043 |
|
lt_prog_compiler_pic_CXX= |
11044 |
|
;; |
11045 |
|
sysv4*MP*) |
11046 |
|
if test -d /usr/nec; then |
11047 |
|
lt_prog_compiler_pic_CXX=-Kconform_pic |
11048 |
|
fi |
11049 |
|
;; |
11050 |
|
hpux*) |
11051 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11052 |
|
# not for PA HP-UX. |
11053 |
|
case "$host_cpu" in |
11054 |
|
hppa*64*|ia64*) |
11055 |
|
;; |
11056 |
|
*) |
11057 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11058 |
|
;; |
11059 |
|
esac |
11060 |
|
;; |
11061 |
|
*) |
11062 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11063 |
|
;; |
11064 |
|
esac |
11065 |
|
else |
11066 |
|
case $host_os in |
11067 |
|
aix4* | aix5*) |
11068 |
|
# All AIX code is PIC. |
11069 |
|
if test "$host_cpu" = ia64; then |
11070 |
|
# AIX 5 now supports IA64 processor |
11071 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11072 |
|
else |
11073 |
|
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11074 |
|
fi |
11075 |
|
;; |
11076 |
|
chorus*) |
11077 |
|
case $cc_basename in |
11078 |
|
cxch68) |
11079 |
|
# Green Hills C++ Compiler |
11080 |
|
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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" |
11081 |
|
;; |
11082 |
|
esac |
11083 |
|
;; |
11084 |
|
dgux*) |
11085 |
|
case $cc_basename in |
11086 |
|
ec++) |
11087 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11088 |
|
;; |
11089 |
|
ghcx) |
11090 |
|
# Green Hills C++ Compiler |
11091 |
|
lt_prog_compiler_pic_CXX='-pic' |
11092 |
|
;; |
11093 |
|
*) |
11094 |
|
;; |
11095 |
|
esac |
11096 |
|
;; |
11097 |
|
freebsd* | kfreebsd*-gnu) |
11098 |
|
# FreeBSD uses GNU C++ |
11099 |
|
;; |
11100 |
|
hpux9* | hpux10* | hpux11*) |
11101 |
|
case $cc_basename in |
11102 |
|
CC) |
11103 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11104 |
|
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
11105 |
|
if test "$host_cpu" != ia64; then |
11106 |
|
lt_prog_compiler_pic_CXX='+Z' |
11107 |
|
fi |
11108 |
|
;; |
11109 |
|
aCC) |
11110 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11111 |
|
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
11112 |
|
case "$host_cpu" in |
11113 |
|
hppa*64*|ia64*) |
11114 |
|
# +Z the default |
11115 |
|
;; |
11116 |
|
*) |
11117 |
|
lt_prog_compiler_pic_CXX='+Z' |
11118 |
|
;; |
11119 |
|
esac |
11120 |
|
;; |
11121 |
|
*) |
11122 |
|
;; |
11123 |
|
esac |
11124 |
|
;; |
11125 |
|
irix5* | irix6* | nonstopux*) |
11126 |
|
case $cc_basename in |
11127 |
|
CC) |
11128 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11129 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11130 |
|
# CC pic flag -KPIC is the default. |
11131 |
|
;; |
11132 |
|
*) |
11133 |
|
;; |
11134 |
|
esac |
11135 |
|
;; |
11136 |
|
linux*) |
11137 |
|
case $cc_basename in |
11138 |
|
KCC) |
11139 |
|
# KAI C++ Compiler |
11140 |
|
lt_prog_compiler_wl_CXX='--backend -Wl,' |
11141 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11142 |
|
;; |
11143 |
|
icpc) |
11144 |
|
# Intel C++ |
11145 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11146 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11147 |
|
lt_prog_compiler_static_CXX='-static' |
11148 |
|
;; |
11149 |
|
cxx) |
11150 |
|
# Compaq C++ |
11151 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
11152 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
11153 |
|
lt_prog_compiler_pic_CXX= |
11154 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11155 |
|
;; |
11156 |
|
*) |
11157 |
|
;; |
11158 |
|
esac |
11159 |
|
;; |
11160 |
|
lynxos*) |
11161 |
|
;; |
11162 |
|
m88k*) |
11163 |
|
;; |
11164 |
|
mvs*) |
11165 |
|
case $cc_basename in |
11166 |
|
cxx) |
11167 |
|
lt_prog_compiler_pic_CXX='-W c,exportall' |
11168 |
|
;; |
11169 |
|
*) |
11170 |
|
;; |
11171 |
|
esac |
11172 |
|
;; |
11173 |
|
netbsd*) |
11174 |
|
;; |
11175 |
|
osf3* | osf4* | osf5*) |
11176 |
|
case $cc_basename in |
11177 |
|
KCC) |
11178 |
|
lt_prog_compiler_wl_CXX='--backend -Wl,' |
11179 |
|
;; |
11180 |
|
RCC) |
11181 |
|
# Rational C++ 2.4.1 |
11182 |
|
lt_prog_compiler_pic_CXX='-pic' |
11183 |
|
;; |
11184 |
|
cxx) |
11185 |
|
# Digital/Compaq C++ |
11186 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11187 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
11188 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
11189 |
|
lt_prog_compiler_pic_CXX= |
11190 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11191 |
|
;; |
11192 |
|
*) |
11193 |
|
;; |
11194 |
|
esac |
11195 |
|
;; |
11196 |
|
psos*) |
11197 |
|
;; |
11198 |
|
sco*) |
11199 |
|
case $cc_basename in |
11200 |
|
CC) |
11201 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11202 |
|
;; |
11203 |
|
*) |
11204 |
|
;; |
11205 |
|
esac |
11206 |
|
;; |
11207 |
|
solaris*) |
11208 |
|
case $cc_basename in |
11209 |
|
CC) |
11210 |
|
# Sun C++ 4.2, 5.x and Centerline C++ |
11211 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11212 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11213 |
|
lt_prog_compiler_wl_CXX='-Qoption ld ' |
11214 |
|
;; |
11215 |
|
gcx) |
11216 |
|
# Green Hills C++ Compiler |
11217 |
|
lt_prog_compiler_pic_CXX='-PIC' |
11218 |
|
;; |
11219 |
|
*) |
11220 |
|
;; |
11221 |
|
esac |
11222 |
|
;; |
11223 |
|
sunos4*) |
11224 |
|
case $cc_basename in |
11225 |
|
CC) |
11226 |
|
# Sun C++ 4.x |
11227 |
|
lt_prog_compiler_pic_CXX='-pic' |
11228 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11229 |
|
;; |
11230 |
|
lcc) |
11231 |
|
# Lucid |
11232 |
|
lt_prog_compiler_pic_CXX='-pic' |
11233 |
|
;; |
11234 |
|
*) |
11235 |
|
;; |
11236 |
|
esac |
11237 |
|
;; |
11238 |
|
tandem*) |
11239 |
|
case $cc_basename in |
11240 |
|
NCC) |
11241 |
|
# NonStop-UX NCC 3.20 |
11242 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11243 |
|
;; |
11244 |
|
*) |
11245 |
|
;; |
11246 |
|
esac |
11247 |
|
;; |
11248 |
|
unixware*) |
11249 |
|
;; |
11250 |
|
vxworks*) |
11251 |
|
;; |
11252 |
|
*) |
11253 |
|
lt_prog_compiler_can_build_shared_CXX=no |
11254 |
|
;; |
11255 |
|
esac |
11256 |
|
fi |
11257 |
|
|
11258 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11259 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11260 |
|
|
11261 |
|
# |
11262 |
|
# Check to make sure the PIC flag actually works. |
11263 |
|
# |
11264 |
|
if test -n "$lt_prog_compiler_pic_CXX"; then |
11265 |
|
|
11266 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11267 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11268 |
|
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11269 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11270 |
|
else |
11271 |
|
lt_prog_compiler_pic_works_CXX=no |
11272 |
|
ac_outfile=conftest.$ac_objext |
11273 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11274 |
|
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11275 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
11276 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
11277 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
11278 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
11279 |
|
# The option is referenced via a variable to avoid confusing sed. |
11280 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
11281 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
11282 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11283 |
|
-e 's:$: $lt_compiler_flag:'` |
11284 |
|
(eval echo "\"\$as_me:11284: $lt_compile\"" >&5) |
11285 |
|
(eval "$lt_compile" 2>conftest.err) |
11286 |
|
ac_status=$? |
11287 |
|
cat conftest.err >&5 |
11288 |
|
echo "$as_me:11288: \$? = $ac_status" >&5 |
11289 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
11290 |
|
# The compiler can only warn and ignore the option if not recognized |
11291 |
|
# So say no if there are warnings |
11292 |
|
if test ! -s conftest.err; then |
11293 |
|
lt_prog_compiler_pic_works_CXX=yes |
11294 |
|
fi |
11295 |
|
fi |
11296 |
|
$rm conftest* |
11297 |
|
|
11298 |
|
fi |
11299 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11300 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11301 |
|
|
11302 |
|
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11303 |
|
case $lt_prog_compiler_pic_CXX in |
11304 |
|
"" | " "*) ;; |
11305 |
|
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11306 |
|
esac |
11307 |
|
else |
11308 |
|
lt_prog_compiler_pic_CXX= |
11309 |
|
lt_prog_compiler_can_build_shared_CXX=no |
11310 |
|
fi |
11311 |
|
|
11312 |
|
fi |
11313 |
|
case "$host_os" in |
11314 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
11315 |
|
*djgpp*) |
11316 |
|
lt_prog_compiler_pic_CXX= |
11317 |
|
;; |
11318 |
|
*) |
11319 |
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11320 |
|
;; |
11321 |
|
esac |
11322 |
|
|
11323 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11324 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11325 |
|
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11326 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11327 |
|
else |
11328 |
|
lt_cv_prog_compiler_c_o_CXX=no |
11329 |
|
$rm -r conftest 2>/dev/null |
11330 |
|
mkdir conftest |
11331 |
|
cd conftest |
11332 |
|
mkdir out |
11333 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11334 |
|
|
11335 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
11336 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
11337 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
11338 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
11339 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
11340 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
11341 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
11342 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11343 |
|
-e 's:$: $lt_compiler_flag:'` |
11344 |
|
(eval echo "\"\$as_me:11344: $lt_compile\"" >&5) |
11345 |
|
(eval "$lt_compile" 2>out/conftest.err) |
11346 |
|
ac_status=$? |
11347 |
|
cat out/conftest.err >&5 |
11348 |
|
echo "$as_me:11348: \$? = $ac_status" >&5 |
11349 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11350 |
|
then |
11351 |
|
# The compiler can only warn and ignore the option if not recognized |
11352 |
|
# So say no if there are warnings |
11353 |
|
if test ! -s out/conftest.err; then |
11354 |
|
lt_cv_prog_compiler_c_o_CXX=yes |
11355 |
|
fi |
11356 |
|
fi |
11357 |
|
chmod u+w . |
11358 |
|
$rm conftest* |
11359 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
11360 |
|
# template instantiation |
11361 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11362 |
|
$rm out/* && rmdir out |
11363 |
|
cd .. |
11364 |
|
rmdir conftest |
11365 |
|
$rm conftest* |
11366 |
|
|
11367 |
|
fi |
11368 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11369 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11370 |
|
|
11371 |
|
|
11372 |
|
hard_links="nottested" |
11373 |
|
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11374 |
|
# do not overwrite the value of need_locks provided by the user |
11375 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11376 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11377 |
|
hard_links=yes |
11378 |
|
$rm conftest* |
11379 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11380 |
|
touch conftest.a |
11381 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
11382 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11383 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
11384 |
|
echo "${ECHO_T}$hard_links" >&6 |
11385 |
|
if test "$hard_links" = no; then |
11386 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11387 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11388 |
|
need_locks=warn |
11389 |
|
fi |
11390 |
|
else |
11391 |
|
need_locks=no |
11392 |
|
fi |
11393 |
|
|
11394 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11395 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11396 |
|
|
11397 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11398 |
|
case $host_os in |
11399 |
|
aix4* | aix5*) |
11400 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
11401 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
11402 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11403 |
|
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
11404 |
|
else |
11405 |
|
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
11406 |
|
fi |
11407 |
|
;; |
11408 |
|
pw32*) |
11409 |
|
export_symbols_cmds_CXX="$ltdll_cmds" |
11410 |
|
;; |
11411 |
|
cygwin* | mingw*) |
11412 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
11413 |
|
;; |
11414 |
|
*) |
11415 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11416 |
|
;; |
11417 |
|
esac |
11418 |
|
|
11419 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11420 |
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11421 |
|
test "$ld_shlibs_CXX" = no && can_build_shared=no |
11422 |
|
|
11423 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11424 |
|
if test "$GCC" = yes; then |
11425 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11426 |
|
fi |
11427 |
|
|
11428 |
|
# |
11429 |
|
# Do we need to explicitly link libc? |
11430 |
|
# |
11431 |
|
case "x$archive_cmds_need_lc_CXX" in |
11432 |
|
x|xyes) |
11433 |
|
# Assume -lc should be added |
11434 |
|
archive_cmds_need_lc_CXX=yes |
11435 |
|
|
11436 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
11437 |
|
case $archive_cmds_CXX in |
11438 |
|
*'~'*) |
11439 |
|
# FIXME: we may have to deal with multi-command sequences. |
11440 |
|
;; |
11441 |
|
'$CC '*) |
11442 |
|
# Test whether the compiler implicitly links with -lc since on some |
11443 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
11444 |
|
# to ld, don't add -lc before -lgcc. |
11445 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11446 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11447 |
|
$rm conftest* |
11448 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11449 |
|
|
11450 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11451 |
|
(eval $ac_compile) 2>&5 |
11452 |
|
ac_status=$? |
11453 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11454 |
|
(exit $ac_status); } 2>conftest.err; then |
11455 |
|
soname=conftest |
11456 |
|
lib=conftest |
11457 |
|
libobjs=conftest.$ac_objext |
11458 |
|
deplibs= |
11459 |
|
wl=$lt_prog_compiler_wl_CXX |
11460 |
|
compiler_flags=-v |
11461 |
|
linker_flags=-v |
11462 |
|
verstring= |
11463 |
|
output_objdir=. |
11464 |
|
libname=conftest |
11465 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11466 |
|
allow_undefined_flag_CXX= |
11467 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11468 |
|
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11469 |
|
ac_status=$? |
11470 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11471 |
|
(exit $ac_status); } |
11472 |
|
then |
11473 |
|
archive_cmds_need_lc_CXX=no |
11474 |
|
else |
11475 |
|
archive_cmds_need_lc_CXX=yes |
11476 |
|
fi |
11477 |
|
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11478 |
|
else |
11479 |
|
cat conftest.err 1>&5 |
11480 |
|
fi |
11481 |
|
$rm conftest* |
11482 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11483 |
|
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11484 |
|
;; |
11485 |
|
esac |
11486 |
|
fi |
11487 |
|
;; |
11488 |
|
esac |
11489 |
|
|
11490 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11491 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11492 |
|
library_names_spec= |
11493 |
|
libname_spec='lib$name' |
11494 |
|
soname_spec= |
11495 |
|
shrext_cmds=".so" |
11496 |
|
postinstall_cmds= |
11497 |
|
postuninstall_cmds= |
11498 |
|
finish_cmds= |
11499 |
|
finish_eval= |
11500 |
|
shlibpath_var= |
11501 |
|
shlibpath_overrides_runpath=unknown |
11502 |
|
version_type=none |
11503 |
|
dynamic_linker="$host_os ld.so" |
11504 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11505 |
|
if test "$GCC" = yes; then |
11506 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11507 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11508 |
|
# if the path contains ";" then we assume it to be the separator |
11509 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
11510 |
|
# assumed that no part of a normal pathname contains ";" but that should |
11511 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
11512 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11513 |
|
else |
11514 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11515 |
|
fi |
11516 |
|
else |
11517 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11518 |
|
fi |
11519 |
|
need_lib_prefix=unknown |
11520 |
|
hardcode_into_libs=no |
11521 |
|
|
11522 |
|
# when you set need_version to no, make sure it does not cause -set_version |
11523 |
|
# flags to be left without arguments |
11524 |
|
need_version=unknown |
11525 |
|
|
11526 |
|
case $host_os in |
11527 |
|
aix3*) |
11528 |
|
version_type=linux |
11529 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11530 |
|
shlibpath_var=LIBPATH |
11531 |
|
|
11532 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
11533 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11534 |
|
;; |
11535 |
|
|
11536 |
|
aix4* | aix5*) |
11537 |
|
version_type=linux |
11538 |
|
need_lib_prefix=no |
11539 |
|
need_version=no |
11540 |
|
hardcode_into_libs=yes |
11541 |
|
if test "$host_cpu" = ia64; then |
11542 |
|
# AIX 5 supports IA64 |
11543 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11544 |
|
shlibpath_var=LD_LIBRARY_PATH |
11545 |
|
else |
11546 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
11547 |
|
# for dependence libraries. The import file would start with |
11548 |
|
# the line `#! .'. This would cause the generated library to |
11549 |
|
# depend on `.', always an invalid library. This was fixed in |
11550 |
|
# development snapshots of GCC prior to 3.0. |
11551 |
|
case $host_os in |
11552 |
|
aix4 | aix4.[01] | aix4.[01].*) |
11553 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11554 |
|
echo ' yes ' |
11555 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
11556 |
|
: |
11557 |
|
else |
11558 |
|
can_build_shared=no |
11559 |
|
fi |
11560 |
|
;; |
11561 |
|
esac |
11562 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11563 |
|
# soname into executable. Probably we can add versioning support to |
11564 |
|
# collect2, so additional links can be useful in future. |
11565 |
|
if test "$aix_use_runtimelinking" = yes; then |
11566 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11567 |
|
# instead of lib<name>.a to let people know that these are not |
11568 |
|
# typical AIX shared libraries. |
11569 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11570 |
|
else |
11571 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
11572 |
|
# and later when we are not doing run time linking. |
11573 |
|
library_names_spec='${libname}${release}.a $libname.a' |
11574 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11575 |
|
fi |
11576 |
|
shlibpath_var=LIBPATH |
11577 |
|
fi |
11578 |
|
;; |
11579 |
|
|
11580 |
|
amigaos*) |
11581 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
11582 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
11583 |
|
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' |
11584 |
|
;; |
11585 |
|
|
11586 |
|
beos*) |
11587 |
|
library_names_spec='${libname}${shared_ext}' |
11588 |
|
dynamic_linker="$host_os ld.so" |
11589 |
|
shlibpath_var=LIBRARY_PATH |
11590 |
|
;; |
11591 |
|
|
11592 |
|
bsdi4*) |
11593 |
|
version_type=linux |
11594 |
|
need_version=no |
11595 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11596 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11597 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11598 |
|
shlibpath_var=LD_LIBRARY_PATH |
11599 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11600 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
11601 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
11602 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
11603 |
|
# libtool to hard-code these into programs |
11604 |
|
;; |
11605 |
|
|
11606 |
|
cygwin* | mingw* | pw32*) |
11607 |
|
version_type=windows |
11608 |
|
shrext_cmds=".dll" |
11609 |
|
need_version=no |
11610 |
|
need_lib_prefix=no |
11611 |
|
|
11612 |
|
case $GCC,$host_os in |
11613 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
11614 |
|
library_names_spec='$libname.dll.a' |
11615 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
11616 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
11617 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
11618 |
|
dldir=$destdir/`dirname \$dlpath`~ |
11619 |
|
test -d \$dldir || mkdir -p \$dldir~ |
11620 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
11621 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
11622 |
|
dlpath=$dir/\$dldll~ |
11623 |
|
$rm \$dlpath' |
11624 |
|
shlibpath_overrides_runpath=yes |
11625 |
|
|
11626 |
|
case $host_os in |
11627 |
|
cygwin*) |
11628 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
11629 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11630 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
11631 |
|
;; |
11632 |
|
mingw*) |
11633 |
|
# MinGW DLLs use traditional 'lib' prefix |
11634 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11635 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11636 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
11637 |
|
# It is most probably a Windows format PATH printed by |
11638 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
11639 |
|
# path with ; separators, and with drive letters. We can handle the |
11640 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
11641 |
|
# especially as we might pass files found there to a mingw objdump, |
11642 |
|
# which wouldn't understand a cygwinified path. Ahh. |
11643 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11644 |
|
else |
11645 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11646 |
|
fi |
11647 |
|
;; |
11648 |
|
pw32*) |
11649 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
11650 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
11651 |
|
;; |
11652 |
|
esac |
11653 |
|
;; |
11654 |
|
|
11655 |
|
*) |
11656 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
11657 |
|
;; |
11658 |
|
esac |
11659 |
|
dynamic_linker='Win32 ld.exe' |
11660 |
|
# FIXME: first we should search . and the directory the executable is in |
11661 |
|
shlibpath_var=PATH |
11662 |
|
;; |
11663 |
|
|
11664 |
|
darwin* | rhapsody*) |
11665 |
|
dynamic_linker="$host_os dyld" |
11666 |
|
version_type=darwin |
11667 |
|
need_lib_prefix=no |
11668 |
|
need_version=no |
11669 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
11670 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
11671 |
|
shlibpath_overrides_runpath=yes |
11672 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
11673 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
11674 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
11675 |
|
if test "$GCC" = yes; then |
11676 |
|
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"` |
11677 |
|
else |
11678 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
11679 |
|
fi |
11680 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
11681 |
|
;; |
11682 |
|
|
11683 |
|
dgux*) |
11684 |
|
version_type=linux |
11685 |
|
need_lib_prefix=no |
11686 |
|
need_version=no |
11687 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
11688 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11689 |
|
shlibpath_var=LD_LIBRARY_PATH |
11690 |
|
;; |
11691 |
|
|
11692 |
|
freebsd1*) |
11693 |
|
dynamic_linker=no |
11694 |
|
;; |
11695 |
|
|
11696 |
|
kfreebsd*-gnu) |
11697 |
|
version_type=linux |
11698 |
|
need_lib_prefix=no |
11699 |
|
need_version=no |
11700 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11701 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11702 |
|
shlibpath_var=LD_LIBRARY_PATH |
11703 |
|
shlibpath_overrides_runpath=no |
11704 |
|
hardcode_into_libs=yes |
11705 |
|
dynamic_linker='GNU ld.so' |
11706 |
|
;; |
11707 |
|
|
11708 |
|
freebsd*) |
11709 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
11710 |
|
version_type=freebsd-$objformat |
11711 |
|
case $version_type in |
11712 |
|
freebsd-elf*) |
11713 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
11714 |
|
need_version=no |
11715 |
|
need_lib_prefix=no |
11716 |
|
;; |
11717 |
|
freebsd-*) |
11718 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
11719 |
|
need_version=yes |
11720 |
|
;; |
11721 |
|
esac |
11722 |
|
shlibpath_var=LD_LIBRARY_PATH |
11723 |
|
case $host_os in |
11724 |
|
freebsd2*) |
11725 |
|
shlibpath_overrides_runpath=yes |
11726 |
|
;; |
11727 |
|
freebsd3.01* | freebsdelf3.01*) |
11728 |
|
shlibpath_overrides_runpath=yes |
11729 |
|
hardcode_into_libs=yes |
11730 |
|
;; |
11731 |
|
*) # from 3.2 on |
11732 |
|
shlibpath_overrides_runpath=no |
11733 |
|
hardcode_into_libs=yes |
11734 |
|
;; |
11735 |
|
esac |
11736 |
|
;; |
11737 |
|
|
11738 |
|
gnu*) |
11739 |
|
version_type=linux |
11740 |
|
need_lib_prefix=no |
11741 |
|
need_version=no |
11742 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
11743 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11744 |
|
shlibpath_var=LD_LIBRARY_PATH |
11745 |
|
hardcode_into_libs=yes |
11746 |
|
;; |
11747 |
|
|
11748 |
|
hpux9* | hpux10* | hpux11*) |
11749 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
11750 |
|
# link against other versions. |
11751 |
|
version_type=sunos |
11752 |
|
need_lib_prefix=no |
11753 |
|
need_version=no |
11754 |
|
case "$host_cpu" in |
11755 |
|
ia64*) |
11756 |
|
shrext_cmds='.so' |
11757 |
|
hardcode_into_libs=yes |
11758 |
|
dynamic_linker="$host_os dld.so" |
11759 |
|
shlibpath_var=LD_LIBRARY_PATH |
11760 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11761 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11762 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11763 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
11764 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
11765 |
|
else |
11766 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
11767 |
|
fi |
11768 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11769 |
|
;; |
11770 |
|
hppa*64*) |
11771 |
|
shrext_cmds='.sl' |
11772 |
|
hardcode_into_libs=yes |
11773 |
|
dynamic_linker="$host_os dld.sl" |
11774 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
11775 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
11776 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11777 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11778 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
11779 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
11780 |
|
;; |
11781 |
|
*) |
11782 |
|
shrext_cmds='.sl' |
11783 |
|
dynamic_linker="$host_os dld.sl" |
11784 |
|
shlibpath_var=SHLIB_PATH |
11785 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
11786 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11787 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11788 |
|
;; |
11789 |
|
esac |
11790 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
11791 |
|
postinstall_cmds='chmod 555 $lib' |
11792 |
|
;; |
11793 |
|
|
11794 |
|
irix5* | irix6* | nonstopux*) |
11795 |
|
case $host_os in |
11796 |
|
nonstopux*) version_type=nonstopux ;; |
11797 |
|
*) |
11798 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
11799 |
|
version_type=linux |
11800 |
|
else |
11801 |
|
version_type=irix |
11802 |
|
fi ;; |
11803 |
|
esac |
11804 |
|
need_lib_prefix=no |
11805 |
|
need_version=no |
11806 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11807 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
11808 |
|
case $host_os in |
11809 |
|
irix5* | nonstopux*) |
11810 |
|
libsuff= shlibsuff= |
11811 |
|
;; |
11812 |
|
*) |
11813 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
11814 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
11815 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
11816 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
11817 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
11818 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
11819 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
11820 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
11821 |
|
esac |
11822 |
|
;; |
11823 |
|
esac |
11824 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
11825 |
|
shlibpath_overrides_runpath=no |
11826 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
11827 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
11828 |
|
hardcode_into_libs=yes |
11829 |
|
;; |
11830 |
|
|
11831 |
|
# No shared lib support for Linux oldld, aout, or coff. |
11832 |
|
linux*oldld* | linux*aout* | linux*coff*) |
11833 |
|
dynamic_linker=no |
11834 |
|
;; |
11835 |
|
|
11836 |
|
# This must be Linux ELF. |
11837 |
|
linux*) |
11838 |
|
version_type=linux |
11839 |
|
need_lib_prefix=no |
11840 |
|
need_version=no |
11841 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11842 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11843 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11844 |
|
shlibpath_var=LD_LIBRARY_PATH |
11845 |
|
shlibpath_overrides_runpath=no |
11846 |
|
# This implies no fast_install, which is unacceptable. |
11847 |
|
# Some rework will be needed to allow for fast_install |
11848 |
|
# before this can be enabled. |
11849 |
|
hardcode_into_libs=yes |
11850 |
|
|
11851 |
|
libsuff= |
11852 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
11853 |
|
libsuff=64 |
11854 |
|
fi |
11855 |
|
|
11856 |
|
# Append ld.so.conf contents to the search path |
11857 |
|
if test -f /etc/ld.so.conf; then |
11858 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
11859 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
11860 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
11861 |
|
fi |
11862 |
|
|
11863 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
11864 |
|
# powerpc, because MkLinux only supported shared libraries with the |
11865 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
11866 |
|
# most powerpc-linux boxes support dynamic linking these days and |
11867 |
|
# people can always --disable-shared, the test was removed, and we |
11868 |
|
# assume the GNU/Linux dynamic linker is in use. |
11869 |
|
dynamic_linker='GNU/Linux ld.so' |
11870 |
|
;; |
11871 |
|
|
11872 |
|
knetbsd*-gnu) |
11873 |
|
version_type=linux |
11874 |
|
need_lib_prefix=no |
11875 |
|
need_version=no |
11876 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11877 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11878 |
|
shlibpath_var=LD_LIBRARY_PATH |
11879 |
|
shlibpath_overrides_runpath=no |
11880 |
|
hardcode_into_libs=yes |
11881 |
|
dynamic_linker='GNU ld.so' |
11882 |
|
;; |
11883 |
|
|
11884 |
|
netbsd*) |
11885 |
|
version_type=sunos |
11886 |
|
need_lib_prefix=no |
11887 |
|
need_version=no |
11888 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11889 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11890 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11891 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
11892 |
|
else |
11893 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11894 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11895 |
|
dynamic_linker='NetBSD ld.elf_so' |
11896 |
|
fi |
11897 |
|
shlibpath_var=LD_LIBRARY_PATH |
11898 |
|
shlibpath_overrides_runpath=yes |
11899 |
|
hardcode_into_libs=yes |
11900 |
|
;; |
11901 |
|
|
11902 |
|
newsos6) |
11903 |
|
version_type=linux |
11904 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11905 |
|
shlibpath_var=LD_LIBRARY_PATH |
11906 |
|
shlibpath_overrides_runpath=yes |
11907 |
|
;; |
11908 |
|
|
11909 |
|
nto-qnx*) |
11910 |
|
version_type=linux |
11911 |
|
need_lib_prefix=no |
11912 |
|
need_version=no |
11913 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11914 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11915 |
|
shlibpath_var=LD_LIBRARY_PATH |
11916 |
|
shlibpath_overrides_runpath=yes |
11917 |
|
;; |
11918 |
|
|
11919 |
|
openbsd*) |
11920 |
|
version_type=sunos |
11921 |
|
need_lib_prefix=no |
11922 |
|
need_version=yes |
11923 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11924 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11925 |
|
shlibpath_var=LD_LIBRARY_PATH |
11926 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11927 |
|
case $host_os in |
11928 |
|
openbsd2.[89] | openbsd2.[89].*) |
11929 |
|
shlibpath_overrides_runpath=no |
11930 |
|
;; |
11931 |
|
*) |
11932 |
|
shlibpath_overrides_runpath=yes |
11933 |
|
;; |
11934 |
|
esac |
11935 |
|
else |
11936 |
|
shlibpath_overrides_runpath=yes |
11937 |
|
fi |
11938 |
|
;; |
11939 |
|
|
11940 |
|
os2*) |
11941 |
|
libname_spec='$name' |
11942 |
|
shrext_cmds=".dll" |
11943 |
|
need_lib_prefix=no |
11944 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
11945 |
|
dynamic_linker='OS/2 ld.exe' |
11946 |
|
shlibpath_var=LIBPATH |
11947 |
|
;; |
11948 |
|
|
11949 |
|
osf3* | osf4* | osf5*) |
11950 |
|
version_type=osf |
11951 |
|
need_lib_prefix=no |
11952 |
|
need_version=no |
11953 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11954 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11955 |
|
shlibpath_var=LD_LIBRARY_PATH |
11956 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
11957 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
11958 |
|
;; |
11959 |
|
|
11960 |
|
sco3.2v5*) |
11961 |
|
version_type=osf |
11962 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11963 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11964 |
|
shlibpath_var=LD_LIBRARY_PATH |
11965 |
|
;; |
11966 |
|
|
11967 |
|
solaris*) |
11968 |
|
version_type=linux |
11969 |
|
need_lib_prefix=no |
11970 |
|
need_version=no |
11971 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11972 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11973 |
|
shlibpath_var=LD_LIBRARY_PATH |
11974 |
|
shlibpath_overrides_runpath=yes |
11975 |
|
hardcode_into_libs=yes |
11976 |
|
# ldd complains unless libraries are executable |
11977 |
|
postinstall_cmds='chmod +x $lib' |
11978 |
|
;; |
11979 |
|
|
11980 |
|
sunos4*) |
11981 |
|
version_type=sunos |
11982 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11983 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11984 |
|
shlibpath_var=LD_LIBRARY_PATH |
11985 |
|
shlibpath_overrides_runpath=yes |
11986 |
|
if test "$with_gnu_ld" = yes; then |
11987 |
|
need_lib_prefix=no |
11988 |
|
fi |
11989 |
|
need_version=yes |
11990 |
|
;; |
11991 |
|
|
11992 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
11993 |
|
version_type=linux |
11994 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11995 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11996 |
|
shlibpath_var=LD_LIBRARY_PATH |
11997 |
|
case $host_vendor in |
11998 |
|
sni) |
11999 |
|
shlibpath_overrides_runpath=no |
12000 |
|
need_lib_prefix=no |
12001 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
12002 |
|
runpath_var=LD_RUN_PATH |
12003 |
|
;; |
12004 |
|
siemens) |
12005 |
|
need_lib_prefix=no |
12006 |
|
;; |
12007 |
|
motorola) |
12008 |
|
need_lib_prefix=no |
12009 |
|
need_version=no |
12010 |
|
shlibpath_overrides_runpath=no |
12011 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12012 |
|
;; |
12013 |
|
esac |
12014 |
|
;; |
12015 |
|
|
12016 |
|
sysv4*MP*) |
12017 |
|
if test -d /usr/nec ;then |
12018 |
|
version_type=linux |
12019 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12020 |
|
soname_spec='$libname${shared_ext}.$major' |
12021 |
|
shlibpath_var=LD_LIBRARY_PATH |
12022 |
|
fi |
12023 |
|
;; |
12024 |
|
|
12025 |
|
uts4*) |
12026 |
|
version_type=linux |
12027 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12028 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12029 |
|
shlibpath_var=LD_LIBRARY_PATH |
12030 |
|
;; |
12031 |
|
|
12032 |
|
*) |
12033 |
|
dynamic_linker=no |
12034 |
|
;; |
12035 |
|
esac |
12036 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12037 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
12038 |
|
test "$dynamic_linker" = no && can_build_shared=no |
12039 |
|
|
12040 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12041 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12042 |
|
hardcode_action_CXX= |
12043 |
|
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12044 |
|
test -n "$runpath_var CXX" || \ |
12045 |
|
test "X$hardcode_automatic_CXX"="Xyes" ; then |
12046 |
|
|
12047 |
|
# We can hardcode non-existant directories. |
12048 |
|
if test "$hardcode_direct_CXX" != no && |
12049 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
12050 |
|
# have to relink, otherwise we might link with an installed library |
12051 |
|
# when we should be linking with a yet-to-be-installed one |
12052 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12053 |
|
test "$hardcode_minus_L_CXX" != no; then |
12054 |
|
# Linking always hardcodes the temporary library directory. |
12055 |
|
hardcode_action_CXX=relink |
12056 |
|
else |
12057 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
12058 |
|
hardcode_action_CXX=immediate |
12059 |
|
fi |
12060 |
|
else |
12061 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
12062 |
|
# directories. |
12063 |
|
hardcode_action_CXX=unsupported |
12064 |
|
fi |
12065 |
|
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12066 |
|
echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12067 |
|
|
12068 |
|
if test "$hardcode_action_CXX" = relink; then |
12069 |
|
# Fast installation is not supported |
12070 |
|
enable_fast_install=no |
12071 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
12072 |
|
test "$enable_shared" = no; then |
12073 |
|
# Fast installation is not necessary |
12074 |
|
enable_fast_install=needless |
12075 |
|
fi |
12076 |
|
|
12077 |
|
striplib= |
12078 |
|
old_striplib= |
12079 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
12080 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
12081 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
12082 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
12083 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
12084 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
12085 |
|
echo "${ECHO_T}yes" >&6 |
12086 |
|
else |
12087 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
12088 |
|
case $host_os in |
12089 |
|
darwin*) |
12090 |
|
if test -n "$STRIP" ; then |
12091 |
|
striplib="$STRIP -x" |
12092 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
12093 |
|
echo "${ECHO_T}yes" >&6 |
12094 |
|
else |
12095 |
|
echo "$as_me:$LINENO: result: no" >&5 |
12096 |
|
echo "${ECHO_T}no" >&6 |
12097 |
|
fi |
12098 |
|
;; |
12099 |
|
*) |
12100 |
|
echo "$as_me:$LINENO: result: no" >&5 |
12101 |
|
echo "${ECHO_T}no" >&6 |
12102 |
|
;; |
12103 |
|
esac |
12104 |
|
fi |
12105 |
|
|
12106 |
|
if test "x$enable_dlopen" != xyes; then |
12107 |
|
enable_dlopen=unknown |
12108 |
|
enable_dlopen_self=unknown |
12109 |
|
enable_dlopen_self_static=unknown |
12110 |
|
else |
12111 |
|
lt_cv_dlopen=no |
12112 |
|
lt_cv_dlopen_libs= |
12113 |
|
|
12114 |
|
case $host_os in |
12115 |
|
beos*) |
12116 |
|
lt_cv_dlopen="load_add_on" |
12117 |
|
lt_cv_dlopen_libs= |
12118 |
|
lt_cv_dlopen_self=yes |
12119 |
|
;; |
12120 |
|
|
12121 |
|
mingw* | pw32*) |
12122 |
|
lt_cv_dlopen="LoadLibrary" |
12123 |
|
lt_cv_dlopen_libs= |
12124 |
|
;; |
12125 |
|
|
12126 |
|
cygwin*) |
12127 |
|
lt_cv_dlopen="dlopen" |
12128 |
|
lt_cv_dlopen_libs= |
12129 |
|
;; |
12130 |
|
|
12131 |
|
darwin*) |
12132 |
|
# if libdl is installed we need to link against it |
12133 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12134 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
12135 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
12136 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12137 |
|
else |
12138 |
|
ac_check_lib_save_LIBS=$LIBS |
12139 |
|
LIBS="-ldl $LIBS" |
12140 |
|
cat >conftest.$ac_ext <<_ACEOF |
12141 |
|
/* confdefs.h. */ |
12142 |
|
_ACEOF |
12143 |
|
cat confdefs.h >>conftest.$ac_ext |
12144 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12145 |
|
/* end confdefs.h. */ |
12146 |
|
|
12147 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12148 |
|
#ifdef __cplusplus |
12149 |
|
extern "C" |
12150 |
|
#endif |
12151 |
|
/* We use char because int might match the return type of a gcc2 |
12152 |
|
builtin and then its argument prototype would still apply. */ |
12153 |
|
char dlopen (); |
12154 |
|
int |
12155 |
|
main () |
12156 |
|
{ |
12157 |
|
dlopen (); |
12158 |
|
; |
12159 |
|
return 0; |
12160 |
|
} |
12161 |
|
_ACEOF |
12162 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12163 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12164 |
|
(eval $ac_link) 2>conftest.er1 |
12165 |
|
ac_status=$? |
12166 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12167 |
|
rm -f conftest.er1 |
12168 |
|
cat conftest.err >&5 |
12169 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12170 |
|
(exit $ac_status); } && |
12171 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12172 |
|
|| test ! -s conftest.err' |
12173 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12174 |
|
(eval $ac_try) 2>&5 |
12175 |
|
ac_status=$? |
12176 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12177 |
|
(exit $ac_status); }; } && |
12178 |
|
{ ac_try='test -s conftest$ac_exeext' |
12179 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12180 |
|
(eval $ac_try) 2>&5 |
12181 |
|
ac_status=$? |
12182 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12183 |
|
(exit $ac_status); }; }; then |
12184 |
|
ac_cv_lib_dl_dlopen=yes |
12185 |
|
else |
12186 |
|
echo "$as_me: failed program was:" >&5 |
12187 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12188 |
|
|
12189 |
|
ac_cv_lib_dl_dlopen=no |
12190 |
|
fi |
12191 |
|
rm -f conftest.err conftest.$ac_objext \ |
12192 |
|
conftest$ac_exeext conftest.$ac_ext |
12193 |
|
LIBS=$ac_check_lib_save_LIBS |
12194 |
|
fi |
12195 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12196 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
12197 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
12198 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12199 |
|
else |
12200 |
|
|
12201 |
|
lt_cv_dlopen="dyld" |
12202 |
|
lt_cv_dlopen_libs= |
12203 |
|
lt_cv_dlopen_self=yes |
12204 |
|
|
12205 |
|
fi |
12206 |
|
|
12207 |
|
;; |
12208 |
|
|
12209 |
|
*) |
12210 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
12211 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
12212 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
12213 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12214 |
|
else |
12215 |
|
cat >conftest.$ac_ext <<_ACEOF |
12216 |
|
/* confdefs.h. */ |
12217 |
|
_ACEOF |
12218 |
|
cat confdefs.h >>conftest.$ac_ext |
12219 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12220 |
|
/* end confdefs.h. */ |
12221 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
12222 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12223 |
|
#define shl_load innocuous_shl_load |
12224 |
|
|
12225 |
|
/* System header to define __stub macros and hopefully few prototypes, |
12226 |
|
which can conflict with char shl_load (); below. |
12227 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12228 |
|
<limits.h> exists even on freestanding compilers. */ |
12229 |
|
|
12230 |
|
#ifdef __STDC__ |
12231 |
|
# include <limits.h> |
12232 |
|
#else |
12233 |
|
# include <assert.h> |
12234 |
|
#endif |
12235 |
|
|
12236 |
|
#undef shl_load |
12237 |
|
|
12238 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12239 |
|
#ifdef __cplusplus |
12240 |
|
extern "C" |
12241 |
|
{ |
12242 |
|
#endif |
12243 |
|
/* We use char because int might match the return type of a gcc2 |
12244 |
|
builtin and then its argument prototype would still apply. */ |
12245 |
|
char shl_load (); |
12246 |
|
/* The GNU C library defines this for functions which it implements |
12247 |
|
to always fail with ENOSYS. Some functions are actually named |
12248 |
|
something starting with __ and the normal name is an alias. */ |
12249 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
12250 |
|
choke me |
12251 |
|
#else |
12252 |
|
char (*f) () = shl_load; |
12253 |
|
#endif |
12254 |
|
#ifdef __cplusplus |
12255 |
|
} |
12256 |
|
#endif |
12257 |
|
|
12258 |
|
int |
12259 |
|
main () |
12260 |
|
{ |
12261 |
|
return f != shl_load; |
12262 |
|
; |
12263 |
|
return 0; |
12264 |
|
} |
12265 |
|
_ACEOF |
12266 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12267 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12268 |
|
(eval $ac_link) 2>conftest.er1 |
12269 |
|
ac_status=$? |
12270 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12271 |
|
rm -f conftest.er1 |
12272 |
|
cat conftest.err >&5 |
12273 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12274 |
|
(exit $ac_status); } && |
12275 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12276 |
|
|| test ! -s conftest.err' |
12277 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12278 |
|
(eval $ac_try) 2>&5 |
12279 |
|
ac_status=$? |
12280 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12281 |
|
(exit $ac_status); }; } && |
12282 |
|
{ ac_try='test -s conftest$ac_exeext' |
12283 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12284 |
|
(eval $ac_try) 2>&5 |
12285 |
|
ac_status=$? |
12286 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12287 |
|
(exit $ac_status); }; }; then |
12288 |
|
ac_cv_func_shl_load=yes |
12289 |
|
else |
12290 |
|
echo "$as_me: failed program was:" >&5 |
12291 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12292 |
|
|
12293 |
|
ac_cv_func_shl_load=no |
12294 |
|
fi |
12295 |
|
rm -f conftest.err conftest.$ac_objext \ |
12296 |
|
conftest$ac_exeext conftest.$ac_ext |
12297 |
|
fi |
12298 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
12299 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
12300 |
|
if test $ac_cv_func_shl_load = yes; then |
12301 |
|
lt_cv_dlopen="shl_load" |
12302 |
|
else |
12303 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
12304 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
12305 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
12306 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12307 |
|
else |
12308 |
|
ac_check_lib_save_LIBS=$LIBS |
12309 |
|
LIBS="-ldld $LIBS" |
12310 |
|
cat >conftest.$ac_ext <<_ACEOF |
12311 |
|
/* confdefs.h. */ |
12312 |
|
_ACEOF |
12313 |
|
cat confdefs.h >>conftest.$ac_ext |
12314 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12315 |
|
/* end confdefs.h. */ |
12316 |
|
|
12317 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12318 |
|
#ifdef __cplusplus |
12319 |
|
extern "C" |
12320 |
|
#endif |
12321 |
|
/* We use char because int might match the return type of a gcc2 |
12322 |
|
builtin and then its argument prototype would still apply. */ |
12323 |
|
char shl_load (); |
12324 |
|
int |
12325 |
|
main () |
12326 |
|
{ |
12327 |
|
shl_load (); |
12328 |
|
; |
12329 |
|
return 0; |
12330 |
|
} |
12331 |
|
_ACEOF |
12332 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12333 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12334 |
|
(eval $ac_link) 2>conftest.er1 |
12335 |
|
ac_status=$? |
12336 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12337 |
|
rm -f conftest.er1 |
12338 |
|
cat conftest.err >&5 |
12339 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12340 |
|
(exit $ac_status); } && |
12341 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12342 |
|
|| test ! -s conftest.err' |
12343 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12344 |
|
(eval $ac_try) 2>&5 |
12345 |
|
ac_status=$? |
12346 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12347 |
|
(exit $ac_status); }; } && |
12348 |
|
{ ac_try='test -s conftest$ac_exeext' |
12349 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12350 |
|
(eval $ac_try) 2>&5 |
12351 |
|
ac_status=$? |
12352 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12353 |
|
(exit $ac_status); }; }; then |
12354 |
|
ac_cv_lib_dld_shl_load=yes |
12355 |
|
else |
12356 |
|
echo "$as_me: failed program was:" >&5 |
12357 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12358 |
|
|
12359 |
|
ac_cv_lib_dld_shl_load=no |
12360 |
|
fi |
12361 |
|
rm -f conftest.err conftest.$ac_objext \ |
12362 |
|
conftest$ac_exeext conftest.$ac_ext |
12363 |
|
LIBS=$ac_check_lib_save_LIBS |
12364 |
|
fi |
12365 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
12366 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
12367 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
12368 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
12369 |
|
else |
12370 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
12371 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
12372 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
12373 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12374 |
|
else |
12375 |
|
cat >conftest.$ac_ext <<_ACEOF |
12376 |
|
/* confdefs.h. */ |
12377 |
|
_ACEOF |
12378 |
|
cat confdefs.h >>conftest.$ac_ext |
12379 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12380 |
|
/* end confdefs.h. */ |
12381 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
12382 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12383 |
|
#define dlopen innocuous_dlopen |
12384 |
|
|
12385 |
|
/* System header to define __stub macros and hopefully few prototypes, |
12386 |
|
which can conflict with char dlopen (); below. |
12387 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12388 |
|
<limits.h> exists even on freestanding compilers. */ |
12389 |
|
|
12390 |
|
#ifdef __STDC__ |
12391 |
|
# include <limits.h> |
12392 |
|
#else |
12393 |
|
# include <assert.h> |
12394 |
|
#endif |
12395 |
|
|
12396 |
|
#undef dlopen |
12397 |
|
|
12398 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12399 |
|
#ifdef __cplusplus |
12400 |
|
extern "C" |
12401 |
|
{ |
12402 |
|
#endif |
12403 |
|
/* We use char because int might match the return type of a gcc2 |
12404 |
|
builtin and then its argument prototype would still apply. */ |
12405 |
|
char dlopen (); |
12406 |
|
/* The GNU C library defines this for functions which it implements |
12407 |
|
to always fail with ENOSYS. Some functions are actually named |
12408 |
|
something starting with __ and the normal name is an alias. */ |
12409 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
12410 |
|
choke me |
12411 |
|
#else |
12412 |
|
char (*f) () = dlopen; |
12413 |
|
#endif |
12414 |
|
#ifdef __cplusplus |
12415 |
|
} |
12416 |
|
#endif |
12417 |
|
|
12418 |
|
int |
12419 |
|
main () |
12420 |
|
{ |
12421 |
|
return f != dlopen; |
12422 |
|
; |
12423 |
|
return 0; |
12424 |
|
} |
12425 |
|
_ACEOF |
12426 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12427 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12428 |
|
(eval $ac_link) 2>conftest.er1 |
12429 |
|
ac_status=$? |
12430 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12431 |
|
rm -f conftest.er1 |
12432 |
|
cat conftest.err >&5 |
12433 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12434 |
|
(exit $ac_status); } && |
12435 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12436 |
|
|| test ! -s conftest.err' |
12437 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12438 |
|
(eval $ac_try) 2>&5 |
12439 |
|
ac_status=$? |
12440 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12441 |
|
(exit $ac_status); }; } && |
12442 |
|
{ ac_try='test -s conftest$ac_exeext' |
12443 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12444 |
|
(eval $ac_try) 2>&5 |
12445 |
|
ac_status=$? |
12446 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12447 |
|
(exit $ac_status); }; }; then |
12448 |
|
ac_cv_func_dlopen=yes |
12449 |
|
else |
12450 |
|
echo "$as_me: failed program was:" >&5 |
12451 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12452 |
|
|
12453 |
|
ac_cv_func_dlopen=no |
12454 |
|
fi |
12455 |
|
rm -f conftest.err conftest.$ac_objext \ |
12456 |
|
conftest$ac_exeext conftest.$ac_ext |
12457 |
|
fi |
12458 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
12459 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
12460 |
|
if test $ac_cv_func_dlopen = yes; then |
12461 |
|
lt_cv_dlopen="dlopen" |
12462 |
|
else |
12463 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12464 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
12465 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
12466 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12467 |
|
else |
12468 |
|
ac_check_lib_save_LIBS=$LIBS |
12469 |
|
LIBS="-ldl $LIBS" |
12470 |
|
cat >conftest.$ac_ext <<_ACEOF |
12471 |
|
/* confdefs.h. */ |
12472 |
|
_ACEOF |
12473 |
|
cat confdefs.h >>conftest.$ac_ext |
12474 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12475 |
|
/* end confdefs.h. */ |
12476 |
|
|
12477 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12478 |
|
#ifdef __cplusplus |
12479 |
|
extern "C" |
12480 |
|
#endif |
12481 |
|
/* We use char because int might match the return type of a gcc2 |
12482 |
|
builtin and then its argument prototype would still apply. */ |
12483 |
|
char dlopen (); |
12484 |
|
int |
12485 |
|
main () |
12486 |
|
{ |
12487 |
|
dlopen (); |
12488 |
|
; |
12489 |
|
return 0; |
12490 |
|
} |
12491 |
|
_ACEOF |
12492 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12493 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12494 |
|
(eval $ac_link) 2>conftest.er1 |
12495 |
|
ac_status=$? |
12496 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12497 |
|
rm -f conftest.er1 |
12498 |
|
cat conftest.err >&5 |
12499 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12500 |
|
(exit $ac_status); } && |
12501 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12502 |
|
|| test ! -s conftest.err' |
12503 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12504 |
|
(eval $ac_try) 2>&5 |
12505 |
|
ac_status=$? |
12506 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12507 |
|
(exit $ac_status); }; } && |
12508 |
|
{ ac_try='test -s conftest$ac_exeext' |
12509 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12510 |
|
(eval $ac_try) 2>&5 |
12511 |
|
ac_status=$? |
12512 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12513 |
|
(exit $ac_status); }; }; then |
12514 |
|
ac_cv_lib_dl_dlopen=yes |
12515 |
|
else |
12516 |
|
echo "$as_me: failed program was:" >&5 |
12517 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12518 |
|
|
12519 |
|
ac_cv_lib_dl_dlopen=no |
12520 |
|
fi |
12521 |
|
rm -f conftest.err conftest.$ac_objext \ |
12522 |
|
conftest$ac_exeext conftest.$ac_ext |
12523 |
|
LIBS=$ac_check_lib_save_LIBS |
12524 |
|
fi |
12525 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12526 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
12527 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
12528 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12529 |
|
else |
12530 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
12531 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
12532 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
12533 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12534 |
|
else |
12535 |
|
ac_check_lib_save_LIBS=$LIBS |
12536 |
|
LIBS="-lsvld $LIBS" |
12537 |
|
cat >conftest.$ac_ext <<_ACEOF |
12538 |
|
/* confdefs.h. */ |
12539 |
|
_ACEOF |
12540 |
|
cat confdefs.h >>conftest.$ac_ext |
12541 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12542 |
|
/* end confdefs.h. */ |
12543 |
|
|
12544 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12545 |
|
#ifdef __cplusplus |
12546 |
|
extern "C" |
12547 |
|
#endif |
12548 |
|
/* We use char because int might match the return type of a gcc2 |
12549 |
|
builtin and then its argument prototype would still apply. */ |
12550 |
|
char dlopen (); |
12551 |
|
int |
12552 |
|
main () |
12553 |
|
{ |
12554 |
|
dlopen (); |
12555 |
|
; |
12556 |
|
return 0; |
12557 |
|
} |
12558 |
|
_ACEOF |
12559 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12560 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12561 |
|
(eval $ac_link) 2>conftest.er1 |
12562 |
|
ac_status=$? |
12563 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12564 |
|
rm -f conftest.er1 |
12565 |
|
cat conftest.err >&5 |
12566 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12567 |
|
(exit $ac_status); } && |
12568 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12569 |
|
|| test ! -s conftest.err' |
12570 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12571 |
|
(eval $ac_try) 2>&5 |
12572 |
|
ac_status=$? |
12573 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12574 |
|
(exit $ac_status); }; } && |
12575 |
|
{ ac_try='test -s conftest$ac_exeext' |
12576 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12577 |
|
(eval $ac_try) 2>&5 |
12578 |
|
ac_status=$? |
12579 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12580 |
|
(exit $ac_status); }; }; then |
12581 |
|
ac_cv_lib_svld_dlopen=yes |
12582 |
|
else |
12583 |
|
echo "$as_me: failed program was:" >&5 |
12584 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12585 |
|
|
12586 |
|
ac_cv_lib_svld_dlopen=no |
12587 |
|
fi |
12588 |
|
rm -f conftest.err conftest.$ac_objext \ |
12589 |
|
conftest$ac_exeext conftest.$ac_ext |
12590 |
|
LIBS=$ac_check_lib_save_LIBS |
12591 |
|
fi |
12592 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
12593 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
12594 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
12595 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12596 |
|
else |
12597 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
12598 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
12599 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
12600 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12601 |
|
else |
12602 |
|
ac_check_lib_save_LIBS=$LIBS |
12603 |
|
LIBS="-ldld $LIBS" |
12604 |
|
cat >conftest.$ac_ext <<_ACEOF |
12605 |
|
/* confdefs.h. */ |
12606 |
|
_ACEOF |
12607 |
|
cat confdefs.h >>conftest.$ac_ext |
12608 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12609 |
|
/* end confdefs.h. */ |
12610 |
|
|
12611 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12612 |
|
#ifdef __cplusplus |
12613 |
|
extern "C" |
12614 |
|
#endif |
12615 |
|
/* We use char because int might match the return type of a gcc2 |
12616 |
|
builtin and then its argument prototype would still apply. */ |
12617 |
|
char dld_link (); |
12618 |
|
int |
12619 |
|
main () |
12620 |
|
{ |
12621 |
|
dld_link (); |
12622 |
|
; |
12623 |
|
return 0; |
12624 |
|
} |
12625 |
|
_ACEOF |
12626 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12627 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12628 |
|
(eval $ac_link) 2>conftest.er1 |
12629 |
|
ac_status=$? |
12630 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12631 |
|
rm -f conftest.er1 |
12632 |
|
cat conftest.err >&5 |
12633 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12634 |
|
(exit $ac_status); } && |
12635 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12636 |
|
|| test ! -s conftest.err' |
12637 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12638 |
|
(eval $ac_try) 2>&5 |
12639 |
|
ac_status=$? |
12640 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12641 |
|
(exit $ac_status); }; } && |
12642 |
|
{ ac_try='test -s conftest$ac_exeext' |
12643 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12644 |
|
(eval $ac_try) 2>&5 |
12645 |
|
ac_status=$? |
12646 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12647 |
|
(exit $ac_status); }; }; then |
12648 |
|
ac_cv_lib_dld_dld_link=yes |
12649 |
|
else |
12650 |
|
echo "$as_me: failed program was:" >&5 |
12651 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12652 |
|
|
12653 |
|
ac_cv_lib_dld_dld_link=no |
12654 |
|
fi |
12655 |
|
rm -f conftest.err conftest.$ac_objext \ |
12656 |
|
conftest$ac_exeext conftest.$ac_ext |
12657 |
|
LIBS=$ac_check_lib_save_LIBS |
12658 |
|
fi |
12659 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
12660 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
12661 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
12662 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
12663 |
|
fi |
12664 |
|
|
12665 |
|
|
12666 |
|
fi |
12667 |
|
|
12668 |
|
|
12669 |
|
fi |
12670 |
|
|
12671 |
|
|
12672 |
|
fi |
12673 |
|
|
12674 |
|
|
12675 |
|
fi |
12676 |
|
|
12677 |
|
|
12678 |
|
fi |
12679 |
|
|
12680 |
|
;; |
12681 |
|
esac |
12682 |
|
|
12683 |
|
if test "x$lt_cv_dlopen" != xno; then |
12684 |
|
enable_dlopen=yes |
12685 |
|
else |
12686 |
|
enable_dlopen=no |
12687 |
|
fi |
12688 |
|
|
12689 |
|
case $lt_cv_dlopen in |
12690 |
|
dlopen) |
12691 |
|
save_CPPFLAGS="$CPPFLAGS" |
12692 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
12693 |
|
|
12694 |
|
save_LDFLAGS="$LDFLAGS" |
12695 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
12696 |
|
|
12697 |
|
save_LIBS="$LIBS" |
12698 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
12699 |
|
|
12700 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
12701 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
12702 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
12703 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12704 |
|
else |
12705 |
|
if test "$cross_compiling" = yes; then : |
12706 |
|
lt_cv_dlopen_self=cross |
12707 |
|
else |
12708 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12709 |
|
lt_status=$lt_dlunknown |
12710 |
|
cat > conftest.$ac_ext <<EOF |
12711 |
|
#line 12711 "configure" |
12712 |
|
#include "confdefs.h" |
12713 |
|
|
12714 |
|
#if HAVE_DLFCN_H |
12715 |
|
#include <dlfcn.h> |
12716 |
|
#endif |
12717 |
|
|
12718 |
|
#include <stdio.h> |
12719 |
|
|
12720 |
|
#ifdef RTLD_GLOBAL |
12721 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
12722 |
|
#else |
12723 |
|
# ifdef DL_GLOBAL |
12724 |
|
# define LT_DLGLOBAL DL_GLOBAL |
12725 |
|
# else |
12726 |
|
# define LT_DLGLOBAL 0 |
12727 |
|
# endif |
12728 |
|
#endif |
12729 |
|
|
12730 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12731 |
|
find out it does not work in some platform. */ |
12732 |
|
#ifndef LT_DLLAZY_OR_NOW |
12733 |
|
# ifdef RTLD_LAZY |
12734 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12735 |
|
# else |
12736 |
|
# ifdef DL_LAZY |
12737 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
12738 |
|
# else |
12739 |
|
# ifdef RTLD_NOW |
12740 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12741 |
|
# else |
12742 |
|
# ifdef DL_NOW |
12743 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
12744 |
|
# else |
12745 |
|
# define LT_DLLAZY_OR_NOW 0 |
12746 |
|
# endif |
12747 |
|
# endif |
12748 |
|
# endif |
12749 |
|
# endif |
12750 |
|
#endif |
12751 |
|
|
12752 |
|
#ifdef __cplusplus |
12753 |
|
extern "C" void exit (int); |
12754 |
|
#endif |
12755 |
|
|
12756 |
|
void fnord() { int i=42;} |
12757 |
|
int main () |
12758 |
|
{ |
12759 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12760 |
|
int status = $lt_dlunknown; |
12761 |
|
|
12762 |
|
if (self) |
12763 |
|
{ |
12764 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12765 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12766 |
|
/* dlclose (self); */ |
12767 |
|
} |
12768 |
|
|
12769 |
|
exit (status); |
12770 |
|
} |
12771 |
|
EOF |
12772 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12773 |
|
(eval $ac_link) 2>&5 |
12774 |
|
ac_status=$? |
12775 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12776 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
12777 |
|
(./conftest; exit; ) 2>/dev/null |
12778 |
|
lt_status=$? |
12779 |
|
case x$lt_status in |
12780 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
12781 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
12782 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
12783 |
|
esac |
12784 |
|
else : |
12785 |
|
# compilation failed |
12786 |
|
lt_cv_dlopen_self=no |
12787 |
|
fi |
12788 |
|
fi |
12789 |
|
rm -fr conftest* |
12790 |
|
|
12791 |
|
|
12792 |
|
fi |
12793 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
12794 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
12795 |
|
|
12796 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
12797 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
12798 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
12799 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
12800 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
12801 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12802 |
|
else |
12803 |
|
if test "$cross_compiling" = yes; then : |
12804 |
|
lt_cv_dlopen_self_static=cross |
12805 |
|
else |
12806 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12807 |
|
lt_status=$lt_dlunknown |
12808 |
|
cat > conftest.$ac_ext <<EOF |
12809 |
|
#line 12809 "configure" |
12810 |
|
#include "confdefs.h" |
12811 |
|
|
12812 |
|
#if HAVE_DLFCN_H |
12813 |
|
#include <dlfcn.h> |
12814 |
|
#endif |
12815 |
|
|
12816 |
|
#include <stdio.h> |
12817 |
|
|
12818 |
|
#ifdef RTLD_GLOBAL |
12819 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
12820 |
|
#else |
12821 |
|
# ifdef DL_GLOBAL |
12822 |
|
# define LT_DLGLOBAL DL_GLOBAL |
12823 |
|
# else |
12824 |
|
# define LT_DLGLOBAL 0 |
12825 |
|
# endif |
12826 |
|
#endif |
12827 |
|
|
12828 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12829 |
|
find out it does not work in some platform. */ |
12830 |
|
#ifndef LT_DLLAZY_OR_NOW |
12831 |
|
# ifdef RTLD_LAZY |
12832 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12833 |
|
# else |
12834 |
|
# ifdef DL_LAZY |
12835 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
12836 |
|
# else |
12837 |
|
# ifdef RTLD_NOW |
12838 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
12839 |
|
# else |
12840 |
|
# ifdef DL_NOW |
12841 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
12842 |
|
# else |
12843 |
|
# define LT_DLLAZY_OR_NOW 0 |
12844 |
|
# endif |
12845 |
|
# endif |
12846 |
|
# endif |
12847 |
|
# endif |
12848 |
|
#endif |
12849 |
|
|
12850 |
|
#ifdef __cplusplus |
12851 |
|
extern "C" void exit (int); |
12852 |
|
#endif |
12853 |
|
|
12854 |
|
void fnord() { int i=42;} |
12855 |
|
int main () |
12856 |
|
{ |
12857 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12858 |
|
int status = $lt_dlunknown; |
12859 |
|
|
12860 |
|
if (self) |
12861 |
|
{ |
12862 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12863 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
12864 |
|
/* dlclose (self); */ |
12865 |
|
} |
12866 |
|
|
12867 |
|
exit (status); |
12868 |
|
} |
12869 |
|
EOF |
12870 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12871 |
|
(eval $ac_link) 2>&5 |
12872 |
|
ac_status=$? |
12873 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12874 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
12875 |
|
(./conftest; exit; ) 2>/dev/null |
12876 |
|
lt_status=$? |
12877 |
|
case x$lt_status in |
12878 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12879 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
12880 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
12881 |
|
esac |
12882 |
|
else : |
12883 |
|
# compilation failed |
12884 |
|
lt_cv_dlopen_self_static=no |
12885 |
|
fi |
12886 |
|
fi |
12887 |
|
rm -fr conftest* |
12888 |
|
|
12889 |
|
|
12890 |
|
fi |
12891 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
12892 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
12893 |
|
fi |
12894 |
|
|
12895 |
|
CPPFLAGS="$save_CPPFLAGS" |
12896 |
|
LDFLAGS="$save_LDFLAGS" |
12897 |
|
LIBS="$save_LIBS" |
12898 |
|
;; |
12899 |
|
esac |
12900 |
|
|
12901 |
|
case $lt_cv_dlopen_self in |
12902 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
12903 |
|
*) enable_dlopen_self=unknown ;; |
12904 |
|
esac |
12905 |
|
|
12906 |
|
case $lt_cv_dlopen_self_static in |
12907 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
12908 |
|
*) enable_dlopen_self_static=unknown ;; |
12909 |
|
esac |
12910 |
|
fi |
12911 |
|
|
12912 |
|
|
12913 |
|
# The else clause should only fire when bootstrapping the |
12914 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
12915 |
|
# with your package, and you will get complaints that there are |
12916 |
|
# no rules to generate ltmain.sh. |
12917 |
|
if test -f "$ltmain"; then |
12918 |
|
# See if we are running on zsh, and set the options which allow our commands through |
12919 |
|
# without removal of \ escapes. |
12920 |
|
if test -n "${ZSH_VERSION+set}" ; then |
12921 |
|
setopt NO_GLOB_SUBST |
12922 |
|
fi |
12923 |
|
# Now quote all the things that may contain metacharacters while being |
12924 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
12925 |
|
# variables and quote the copies for generation of the libtool script. |
12926 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
12927 |
|
SED SHELL STRIP \ |
12928 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
12929 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
12930 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
12931 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
12932 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
12933 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
12934 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
12935 |
|
compiler_CXX \ |
12936 |
|
CC_CXX \ |
12937 |
|
LD_CXX \ |
12938 |
|
lt_prog_compiler_wl_CXX \ |
12939 |
|
lt_prog_compiler_pic_CXX \ |
12940 |
|
lt_prog_compiler_static_CXX \ |
12941 |
|
lt_prog_compiler_no_builtin_flag_CXX \ |
12942 |
|
export_dynamic_flag_spec_CXX \ |
12943 |
|
thread_safe_flag_spec_CXX \ |
12944 |
|
whole_archive_flag_spec_CXX \ |
12945 |
|
enable_shared_with_static_runtimes_CXX \ |
12946 |
|
old_archive_cmds_CXX \ |
12947 |
|
old_archive_from_new_cmds_CXX \ |
12948 |
|
predep_objects_CXX \ |
12949 |
|
postdep_objects_CXX \ |
12950 |
|
predeps_CXX \ |
12951 |
|
postdeps_CXX \ |
12952 |
|
compiler_lib_search_path_CXX \ |
12953 |
|
archive_cmds_CXX \ |
12954 |
|
archive_expsym_cmds_CXX \ |
12955 |
|
postinstall_cmds_CXX \ |
12956 |
|
postuninstall_cmds_CXX \ |
12957 |
|
old_archive_from_expsyms_cmds_CXX \ |
12958 |
|
allow_undefined_flag_CXX \ |
12959 |
|
no_undefined_flag_CXX \ |
12960 |
|
export_symbols_cmds_CXX \ |
12961 |
|
hardcode_libdir_flag_spec_CXX \ |
12962 |
|
hardcode_libdir_flag_spec_ld_CXX \ |
12963 |
|
hardcode_libdir_separator_CXX \ |
12964 |
|
hardcode_automatic_CXX \ |
12965 |
|
module_cmds_CXX \ |
12966 |
|
module_expsym_cmds_CXX \ |
12967 |
|
lt_cv_prog_compiler_c_o_CXX \ |
12968 |
|
exclude_expsyms_CXX \ |
12969 |
|
include_expsyms_CXX; do |
12970 |
|
|
12971 |
|
case $var in |
12972 |
|
old_archive_cmds_CXX | \ |
12973 |
|
old_archive_from_new_cmds_CXX | \ |
12974 |
|
archive_cmds_CXX | \ |
12975 |
|
archive_expsym_cmds_CXX | \ |
12976 |
|
module_cmds_CXX | \ |
12977 |
|
module_expsym_cmds_CXX | \ |
12978 |
|
old_archive_from_expsyms_cmds_CXX | \ |
12979 |
|
export_symbols_cmds_CXX | \ |
12980 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
12981 |
|
postinstall_cmds | postuninstall_cmds | \ |
12982 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
12983 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
12984 |
|
# Double-quote double-evaled strings. |
12985 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
12986 |
|
;; |
12987 |
|
*) |
12988 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
12989 |
|
;; |
12990 |
|
esac |
12991 |
|
done |
12992 |
|
|
12993 |
|
case $lt_echo in |
12994 |
|
*'\$0 --fallback-echo"') |
12995 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
12996 |
|
;; |
12997 |
|
esac |
12998 |
|
|
12999 |
|
cfgfile="$ofile" |
13000 |
|
|
13001 |
|
cat <<__EOF__ >> "$cfgfile" |
13002 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13003 |
|
|
13004 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13005 |
|
|
13006 |
|
# Shell to use when invoking shell scripts. |
13007 |
|
SHELL=$lt_SHELL |
13008 |
|
|
13009 |
|
# Whether or not to build shared libraries. |
13010 |
|
build_libtool_libs=$enable_shared |
13011 |
|
|
13012 |
|
# Whether or not to build static libraries. |
13013 |
|
build_old_libs=$enable_static |
13014 |
|
|
13015 |
|
# Whether or not to add -lc for building shared libraries. |
13016 |
|
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13017 |
|
|
13018 |
|
# Whether or not to disallow shared libs when runtime libs are static |
13019 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13020 |
|
|
13021 |
|
# Whether or not to optimize for fast installation. |
13022 |
|
fast_install=$enable_fast_install |
13023 |
|
|
13024 |
|
# The host system. |
13025 |
|
host_alias=$host_alias |
13026 |
|
host=$host |
13027 |
|
|
13028 |
|
# An echo program that does not interpret backslashes. |
13029 |
|
echo=$lt_echo |
13030 |
|
|
13031 |
|
# The archiver. |
13032 |
|
AR=$lt_AR |
13033 |
|
AR_FLAGS=$lt_AR_FLAGS |
13034 |
|
|
13035 |
|
# A C compiler. |
13036 |
|
LTCC=$lt_LTCC |
13037 |
|
|
13038 |
|
# A language-specific compiler. |
13039 |
|
CC=$lt_compiler_CXX |
13040 |
|
|
13041 |
|
# Is the compiler the GNU C compiler? |
13042 |
|
with_gcc=$GCC_CXX |
13043 |
|
|
13044 |
|
# An ERE matcher. |
13045 |
|
EGREP=$lt_EGREP |
13046 |
|
|
13047 |
|
# The linker used to build libraries. |
13048 |
|
LD=$lt_LD_CXX |
13049 |
|
|
13050 |
|
# Whether we need hard or soft links. |
13051 |
|
LN_S=$lt_LN_S |
13052 |
|
|
13053 |
|
# A BSD-compatible nm program. |
13054 |
|
NM=$lt_NM |
13055 |
|
|
13056 |
|
# A symbol stripping program |
13057 |
|
STRIP=$lt_STRIP |
13058 |
|
|
13059 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
13060 |
|
MAGIC_CMD=$MAGIC_CMD |
13061 |
|
|
13062 |
|
# Used on cygwin: DLL creation program. |
13063 |
|
DLLTOOL="$DLLTOOL" |
13064 |
|
|
13065 |
|
# Used on cygwin: object dumper. |
13066 |
|
OBJDUMP="$OBJDUMP" |
13067 |
|
|
13068 |
|
# Used on cygwin: assembler. |
13069 |
|
AS="$AS" |
13070 |
|
|
13071 |
|
# The name of the directory that contains temporary libtool files. |
13072 |
|
objdir=$objdir |
13073 |
|
|
13074 |
|
# How to create reloadable object files. |
13075 |
|
reload_flag=$lt_reload_flag |
13076 |
|
reload_cmds=$lt_reload_cmds |
13077 |
|
|
13078 |
|
# How to pass a linker flag through the compiler. |
13079 |
|
wl=$lt_lt_prog_compiler_wl_CXX |
13080 |
|
|
13081 |
|
# Object file suffix (normally "o"). |
13082 |
|
objext="$ac_objext" |
13083 |
|
|
13084 |
|
# Old archive suffix (normally "a"). |
13085 |
|
libext="$libext" |
13086 |
|
|
13087 |
|
# Shared library suffix (normally ".so"). |
13088 |
|
shrext_cmds='$shrext_cmds' |
13089 |
|
|
13090 |
|
# Executable file suffix (normally ""). |
13091 |
|
exeext="$exeext" |
13092 |
|
|
13093 |
|
# Additional compiler flags for building library objects. |
13094 |
|
pic_flag=$lt_lt_prog_compiler_pic_CXX |
13095 |
|
pic_mode=$pic_mode |
13096 |
|
|
13097 |
|
# What is the maximum length of a command? |
13098 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
13099 |
|
|
13100 |
|
# Does compiler simultaneously support -c and -o options? |
13101 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13102 |
|
|
13103 |
|
# Must we lock files when doing compilation ? |
13104 |
|
need_locks=$lt_need_locks |
13105 |
|
|
13106 |
|
# Do we need the lib prefix for modules? |
13107 |
|
need_lib_prefix=$need_lib_prefix |
13108 |
|
|
13109 |
|
# Do we need a version for libraries? |
13110 |
|
need_version=$need_version |
13111 |
|
|
13112 |
|
# Whether dlopen is supported. |
13113 |
|
dlopen_support=$enable_dlopen |
13114 |
|
|
13115 |
|
# Whether dlopen of programs is supported. |
13116 |
|
dlopen_self=$enable_dlopen_self |
13117 |
|
|
13118 |
|
# Whether dlopen of statically linked programs is supported. |
13119 |
|
dlopen_self_static=$enable_dlopen_self_static |
13120 |
|
|
13121 |
|
# Compiler flag to prevent dynamic linking. |
13122 |
|
link_static_flag=$lt_lt_prog_compiler_static_CXX |
13123 |
|
|
13124 |
|
# Compiler flag to turn off builtin functions. |
13125 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13126 |
|
|
13127 |
|
# Compiler flag to allow reflexive dlopens. |
13128 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13129 |
|
|
13130 |
|
# Compiler flag to generate shared objects directly from archives. |
13131 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13132 |
|
|
13133 |
|
# Compiler flag to generate thread-safe objects. |
13134 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13135 |
|
|
13136 |
|
# Library versioning type. |
13137 |
|
version_type=$version_type |
13138 |
|
|
13139 |
|
# Format of library name prefix. |
13140 |
|
libname_spec=$lt_libname_spec |
13141 |
|
|
13142 |
|
# List of archive names. First name is the real one, the rest are links. |
13143 |
|
# The last name is the one that the linker finds with -lNAME. |
13144 |
|
library_names_spec=$lt_library_names_spec |
13145 |
|
|
13146 |
|
# The coded name of the library, if different from the real name. |
13147 |
|
soname_spec=$lt_soname_spec |
13148 |
|
|
13149 |
|
# Commands used to build and install an old-style archive. |
13150 |
|
RANLIB=$lt_RANLIB |
13151 |
|
old_archive_cmds=$lt_old_archive_cmds_CXX |
13152 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
13153 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13154 |
|
|
13155 |
|
# Create an old-style archive from a shared archive. |
13156 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13157 |
|
|
13158 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
13159 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13160 |
|
|
13161 |
|
# Commands used to build and install a shared archive. |
13162 |
|
archive_cmds=$lt_archive_cmds_CXX |
13163 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13164 |
|
postinstall_cmds=$lt_postinstall_cmds |
13165 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
13166 |
|
|
13167 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
13168 |
|
module_cmds=$lt_module_cmds_CXX |
13169 |
|
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13170 |
|
|
13171 |
|
# Commands to strip libraries. |
13172 |
|
old_striplib=$lt_old_striplib |
13173 |
|
striplib=$lt_striplib |
13174 |
|
|
13175 |
|
# Dependencies to place before the objects being linked to create a |
13176 |
|
# shared library. |
13177 |
|
predep_objects=$lt_predep_objects_CXX |
13178 |
|
|
13179 |
|
# Dependencies to place after the objects being linked to create a |
13180 |
|
# shared library. |
13181 |
|
postdep_objects=$lt_postdep_objects_CXX |
13182 |
|
|
13183 |
|
# Dependencies to place before the objects being linked to create a |
13184 |
|
# shared library. |
13185 |
|
predeps=$lt_predeps_CXX |
13186 |
|
|
13187 |
|
# Dependencies to place after the objects being linked to create a |
13188 |
|
# shared library. |
13189 |
|
postdeps=$lt_postdeps_CXX |
13190 |
|
|
13191 |
|
# The library search path used internally by the compiler when linking |
13192 |
|
# a shared library. |
13193 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
13194 |
|
|
13195 |
|
# Method to check whether dependent libraries are shared objects. |
13196 |
|
deplibs_check_method=$lt_deplibs_check_method |
13197 |
|
|
13198 |
|
# Command to use when deplibs_check_method == file_magic. |
13199 |
|
file_magic_cmd=$lt_file_magic_cmd |
13200 |
|
|
13201 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
13202 |
|
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13203 |
|
|
13204 |
|
# Flag that forces no undefined symbols. |
13205 |
|
no_undefined_flag=$lt_no_undefined_flag_CXX |
13206 |
|
|
13207 |
|
# Commands used to finish a libtool library installation in a directory. |
13208 |
|
finish_cmds=$lt_finish_cmds |
13209 |
|
|
13210 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
13211 |
|
finish_eval=$lt_finish_eval |
13212 |
|
|
13213 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
13214 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13215 |
|
|
13216 |
|
# Transform the output of nm in a proper C declaration |
13217 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13218 |
|
|
13219 |
|
# Transform the output of nm in a C name address pair |
13220 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13221 |
|
|
13222 |
|
# This is the shared library runtime path variable. |
13223 |
|
runpath_var=$runpath_var |
13224 |
|
|
13225 |
|
# This is the shared library path variable. |
13226 |
|
shlibpath_var=$shlibpath_var |
13227 |
|
|
13228 |
|
# Is shlibpath searched before the hard-coded library search path? |
13229 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13230 |
|
|
13231 |
|
# How to hardcode a shared library path into an executable. |
13232 |
|
hardcode_action=$hardcode_action_CXX |
13233 |
|
|
13234 |
|
# Whether we should hardcode library paths into libraries. |
13235 |
|
hardcode_into_libs=$hardcode_into_libs |
13236 |
|
|
13237 |
|
# Flag to hardcode \$libdir into a binary during linking. |
13238 |
|
# This must work even if \$libdir does not exist. |
13239 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13240 |
|
|
13241 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
13242 |
|
# a binary during linking. This must work even if \$libdir does |
13243 |
|
# not exist. |
13244 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13245 |
|
|
13246 |
|
# Whether we need a single -rpath flag with a separated argument. |
13247 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13248 |
|
|
13249 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13250 |
|
# resulting binary. |
13251 |
|
hardcode_direct=$hardcode_direct_CXX |
13252 |
|
|
13253 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13254 |
|
# resulting binary. |
13255 |
|
hardcode_minus_L=$hardcode_minus_L_CXX |
13256 |
|
|
13257 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13258 |
|
# the resulting binary. |
13259 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13260 |
|
|
13261 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
13262 |
|
# and all subsequent libraries and executables linked against it. |
13263 |
|
hardcode_automatic=$hardcode_automatic_CXX |
13264 |
|
|
13265 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
13266 |
|
# restored at relink time. |
13267 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
13268 |
|
|
13269 |
|
# Whether libtool must link a program against all its dependency libraries. |
13270 |
|
link_all_deplibs=$link_all_deplibs_CXX |
13271 |
|
|
13272 |
|
# Compile-time system search path for libraries |
13273 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
13274 |
|
|
13275 |
|
# Run-time system search path for libraries |
13276 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13277 |
|
|
13278 |
|
# Fix the shell variable \$srcfile for the compiler. |
13279 |
|
fix_srcfile_path="$fix_srcfile_path_CXX" |
13280 |
|
|
13281 |
|
# Set to yes if exported symbols are required. |
13282 |
|
always_export_symbols=$always_export_symbols_CXX |
13283 |
|
|
13284 |
|
# The commands to list exported symbols. |
13285 |
|
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13286 |
|
|
13287 |
|
# The commands to extract the exported symbol list from a shared archive. |
13288 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13289 |
|
|
13290 |
|
# Symbols that should not be listed in the preloaded symbols. |
13291 |
|
exclude_expsyms=$lt_exclude_expsyms_CXX |
13292 |
|
|
13293 |
|
# Symbols that must always be exported. |
13294 |
|
include_expsyms=$lt_include_expsyms_CXX |
13295 |
|
|
13296 |
|
# ### END LIBTOOL TAG CONFIG: $tagname |
13297 |
|
|
13298 |
|
__EOF__ |
13299 |
|
|
13300 |
|
|
13301 |
|
else |
13302 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
13303 |
|
# `config.status --recheck' to rerun these tests and create the |
13304 |
|
# libtool script then. |
13305 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13306 |
|
if test -f "$ltmain_in"; then |
13307 |
|
test -f Makefile && make "$ltmain" |
13308 |
|
fi |
13309 |
|
fi |
13310 |
|
|
13311 |
|
|
13312 |
|
ac_ext=c |
13313 |
|
ac_cpp='$CPP $CPPFLAGS' |
13314 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13315 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13316 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13317 |
|
|
13318 |
|
CC=$lt_save_CC |
13319 |
|
LDCXX=$LD |
13320 |
|
LD=$lt_save_LD |
13321 |
|
GCC=$lt_save_GCC |
13322 |
|
with_gnu_ldcxx=$with_gnu_ld |
13323 |
|
with_gnu_ld=$lt_save_with_gnu_ld |
13324 |
|
lt_cv_path_LDCXX=$lt_cv_path_LD |
13325 |
|
lt_cv_path_LD=$lt_save_path_LD |
13326 |
|
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13327 |
|
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13328 |
|
|
13329 |
|
else |
13330 |
|
tagname="" |
13331 |
|
fi |
13332 |
|
;; |
13333 |
|
|
13334 |
|
F77) |
13335 |
|
if test -n "$F77" && test "X$F77" != "Xno"; then |
13336 |
|
|
13337 |
|
ac_ext=f |
13338 |
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13339 |
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13340 |
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13341 |
|
|
13342 |
|
|
13343 |
|
archive_cmds_need_lc_F77=no |
13344 |
|
allow_undefined_flag_F77= |
13345 |
|
always_export_symbols_F77=no |
13346 |
|
archive_expsym_cmds_F77= |
13347 |
|
export_dynamic_flag_spec_F77= |
13348 |
|
hardcode_direct_F77=no |
13349 |
|
hardcode_libdir_flag_spec_F77= |
13350 |
|
hardcode_libdir_flag_spec_ld_F77= |
13351 |
|
hardcode_libdir_separator_F77= |
13352 |
|
hardcode_minus_L_F77=no |
13353 |
|
hardcode_automatic_F77=no |
13354 |
|
module_cmds_F77= |
13355 |
|
module_expsym_cmds_F77= |
13356 |
|
link_all_deplibs_F77=unknown |
13357 |
|
old_archive_cmds_F77=$old_archive_cmds |
13358 |
|
no_undefined_flag_F77= |
13359 |
|
whole_archive_flag_spec_F77= |
13360 |
|
enable_shared_with_static_runtimes_F77=no |
13361 |
|
|
13362 |
|
# Source file extension for f77 test sources. |
13363 |
|
ac_ext=f |
13364 |
|
|
13365 |
|
# Object file extension for compiled f77 test sources. |
13366 |
|
objext=o |
13367 |
|
objext_F77=$objext |
13368 |
|
|
13369 |
|
# Code to be used in simple compile tests |
13370 |
|
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13371 |
|
|
13372 |
|
# Code to be used in simple link tests |
13373 |
|
lt_simple_link_test_code=" program t\n end\n" |
13374 |
|
|
13375 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13376 |
|
|
13377 |
|
# If no C compiler was specified, use CC. |
13378 |
|
LTCC=${LTCC-"$CC"} |
13379 |
|
|
13380 |
|
# Allow CC to be a program name with arguments. |
13381 |
|
compiler=$CC |
13382 |
|
|
13383 |
|
|
13384 |
|
# Allow CC to be a program name with arguments. |
13385 |
|
lt_save_CC="$CC" |
13386 |
|
CC=${F77-"f77"} |
13387 |
|
compiler=$CC |
13388 |
|
compiler_F77=$CC |
13389 |
|
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` |
13390 |
|
|
13391 |
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13392 |
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13393 |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13394 |
|
echo "${ECHO_T}$can_build_shared" >&6 |
13395 |
|
|
13396 |
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13397 |
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13398 |
|
test "$can_build_shared" = "no" && enable_shared=no |
13399 |
|
|
13400 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
13401 |
|
# are all built from PIC. |
13402 |
|
case "$host_os" in |
13403 |
|
aix3*) |
13404 |
|
test "$enable_shared" = yes && enable_static=no |
13405 |
|
if test -n "$RANLIB"; then |
13406 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13407 |
|
postinstall_cmds='$RANLIB $lib' |
13408 |
|
fi |
13409 |
|
;; |
13410 |
|
aix4* | aix5*) |
13411 |
|
test "$enable_shared" = yes && enable_static=no |
13412 |
|
;; |
13413 |
|
esac |
13414 |
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13415 |
|
echo "${ECHO_T}$enable_shared" >&6 |
13416 |
|
|
13417 |
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13418 |
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13419 |
|
# Make sure either enable_shared or enable_static is yes. |
13420 |
|
test "$enable_shared" = yes || enable_static=yes |
13421 |
|
echo "$as_me:$LINENO: result: $enable_static" >&5 |
13422 |
|
echo "${ECHO_T}$enable_static" >&6 |
13423 |
|
|
13424 |
|
test "$ld_shlibs_F77" = no && can_build_shared=no |
13425 |
|
|
13426 |
|
GCC_F77="$G77" |
13427 |
|
LD_F77="$LD" |
13428 |
|
|
13429 |
|
lt_prog_compiler_wl_F77= |
13430 |
|
lt_prog_compiler_pic_F77= |
13431 |
|
lt_prog_compiler_static_F77= |
13432 |
|
|
13433 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13434 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13435 |
|
|
13436 |
|
if test "$GCC" = yes; then |
13437 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13438 |
|
lt_prog_compiler_static_F77='-static' |
13439 |
|
|
13440 |
|
case $host_os in |
13441 |
|
aix*) |
13442 |
|
# All AIX code is PIC. |
13443 |
|
if test "$host_cpu" = ia64; then |
13444 |
|
# AIX 5 now supports IA64 processor |
13445 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13446 |
|
fi |
13447 |
|
;; |
13448 |
|
|
13449 |
|
amigaos*) |
13450 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
13451 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
13452 |
|
# like `-m68040'. |
13453 |
|
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13454 |
|
;; |
13455 |
|
|
13456 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13457 |
|
# PIC is the default for these OSes. |
13458 |
|
;; |
13459 |
|
|
13460 |
|
mingw* | pw32* | os2*) |
13461 |
|
# This hack is so that the source file can tell whether it is being |
13462 |
|
# built for inclusion in a dll (and should export symbols for example). |
13463 |
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13464 |
|
;; |
13465 |
|
|
13466 |
|
darwin* | rhapsody*) |
13467 |
|
# PIC is the default on this platform |
13468 |
|
# Common symbols not allowed in MH_DYLIB files |
13469 |
|
lt_prog_compiler_pic_F77='-fno-common' |
13470 |
|
;; |
13471 |
|
|
13472 |
|
msdosdjgpp*) |
13473 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
13474 |
|
# on systems that don't support them. |
13475 |
|
lt_prog_compiler_can_build_shared_F77=no |
13476 |
|
enable_shared=no |
13477 |
|
;; |
13478 |
|
|
13479 |
|
sysv4*MP*) |
13480 |
|
if test -d /usr/nec; then |
13481 |
|
lt_prog_compiler_pic_F77=-Kconform_pic |
13482 |
|
fi |
13483 |
|
;; |
13484 |
|
|
13485 |
|
hpux*) |
13486 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13487 |
|
# not for PA HP-UX. |
13488 |
|
case "$host_cpu" in |
13489 |
|
hppa*64*|ia64*) |
13490 |
|
# +Z the default |
13491 |
|
;; |
13492 |
|
*) |
13493 |
|
lt_prog_compiler_pic_F77='-fPIC' |
13494 |
|
;; |
13495 |
|
esac |
13496 |
|
;; |
13497 |
|
|
13498 |
|
*) |
13499 |
|
lt_prog_compiler_pic_F77='-fPIC' |
13500 |
|
;; |
13501 |
|
esac |
13502 |
|
else |
13503 |
|
# PORTME Check for flag to pass linker flags through the system compiler. |
13504 |
|
case $host_os in |
13505 |
|
aix*) |
13506 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13507 |
|
if test "$host_cpu" = ia64; then |
13508 |
|
# AIX 5 now supports IA64 processor |
13509 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13510 |
|
else |
13511 |
|
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13512 |
|
fi |
13513 |
|
;; |
13514 |
|
|
13515 |
|
mingw* | pw32* | os2*) |
13516 |
|
# This hack is so that the source file can tell whether it is being |
13517 |
|
# built for inclusion in a dll (and should export symbols for example). |
13518 |
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13519 |
|
;; |
13520 |
|
|
13521 |
|
hpux9* | hpux10* | hpux11*) |
13522 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13523 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13524 |
|
# not for PA HP-UX. |
13525 |
|
case "$host_cpu" in |
13526 |
|
hppa*64*|ia64*) |
13527 |
|
# +Z the default |
13528 |
|
;; |
13529 |
|
*) |
13530 |
|
lt_prog_compiler_pic_F77='+Z' |
13531 |
|
;; |
13532 |
|
esac |
13533 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
13534 |
|
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13535 |
|
;; |
13536 |
|
|
13537 |
|
irix5* | irix6* | nonstopux*) |
13538 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13539 |
|
# PIC (with -KPIC) is the default. |
13540 |
|
lt_prog_compiler_static_F77='-non_shared' |
13541 |
|
;; |
13542 |
|
|
13543 |
|
newsos6) |
13544 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13545 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13546 |
|
;; |
13547 |
|
|
13548 |
|
linux*) |
13549 |
|
case $CC in |
13550 |
|
icc* | ecc*) |
13551 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13552 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13553 |
|
lt_prog_compiler_static_F77='-static' |
13554 |
|
;; |
13555 |
|
ccc*) |
13556 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13557 |
|
# All Alpha code is PIC. |
13558 |
|
lt_prog_compiler_static_F77='-non_shared' |
13559 |
|
;; |
13560 |
|
esac |
13561 |
|
;; |
13562 |
|
|
13563 |
|
osf3* | osf4* | osf5*) |
13564 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13565 |
|
# All OSF/1 code is PIC. |
13566 |
|
lt_prog_compiler_static_F77='-non_shared' |
13567 |
|
;; |
13568 |
|
|
13569 |
|
sco3.2v5*) |
13570 |
|
lt_prog_compiler_pic_F77='-Kpic' |
13571 |
|
lt_prog_compiler_static_F77='-dn' |
13572 |
|
;; |
13573 |
|
|
13574 |
|
solaris*) |
13575 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13576 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13577 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13578 |
|
;; |
13579 |
|
|
13580 |
|
sunos4*) |
13581 |
|
lt_prog_compiler_wl_F77='-Qoption ld ' |
13582 |
|
lt_prog_compiler_pic_F77='-PIC' |
13583 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13584 |
|
;; |
13585 |
|
|
13586 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13587 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13588 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13589 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13590 |
|
;; |
13591 |
|
|
13592 |
|
sysv4*MP*) |
13593 |
|
if test -d /usr/nec ;then |
13594 |
|
lt_prog_compiler_pic_F77='-Kconform_pic' |
13595 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13596 |
|
fi |
13597 |
|
;; |
13598 |
|
|
13599 |
|
uts4*) |
13600 |
|
lt_prog_compiler_pic_F77='-pic' |
13601 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13602 |
|
;; |
13603 |
|
|
13604 |
|
*) |
13605 |
|
lt_prog_compiler_can_build_shared_F77=no |
13606 |
|
;; |
13607 |
|
esac |
13608 |
|
fi |
13609 |
|
|
13610 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13611 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13612 |
|
|
13613 |
|
# |
13614 |
|
# Check to make sure the PIC flag actually works. |
13615 |
|
# |
13616 |
|
if test -n "$lt_prog_compiler_pic_F77"; then |
13617 |
|
|
13618 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13619 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13620 |
|
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13621 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13622 |
|
else |
13623 |
|
lt_prog_compiler_pic_works_F77=no |
13624 |
|
ac_outfile=conftest.$ac_objext |
13625 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13626 |
|
lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13627 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
13628 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
13629 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
13630 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
13631 |
|
# The option is referenced via a variable to avoid confusing sed. |
13632 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
13633 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
13634 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13635 |
|
-e 's:$: $lt_compiler_flag:'` |
13636 |
|
(eval echo "\"\$as_me:13636: $lt_compile\"" >&5) |
13637 |
|
(eval "$lt_compile" 2>conftest.err) |
13638 |
|
ac_status=$? |
13639 |
|
cat conftest.err >&5 |
13640 |
|
echo "$as_me:13640: \$? = $ac_status" >&5 |
13641 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
13642 |
|
# The compiler can only warn and ignore the option if not recognized |
13643 |
|
# So say no if there are warnings |
13644 |
|
if test ! -s conftest.err; then |
13645 |
|
lt_prog_compiler_pic_works_F77=yes |
13646 |
|
fi |
13647 |
|
fi |
13648 |
|
$rm conftest* |
13649 |
|
|
13650 |
|
fi |
13651 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13652 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13653 |
|
|
13654 |
|
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13655 |
|
case $lt_prog_compiler_pic_F77 in |
13656 |
|
"" | " "*) ;; |
13657 |
|
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13658 |
|
esac |
13659 |
|
else |
13660 |
|
lt_prog_compiler_pic_F77= |
13661 |
|
lt_prog_compiler_can_build_shared_F77=no |
13662 |
|
fi |
13663 |
|
|
13664 |
|
fi |
13665 |
|
case "$host_os" in |
13666 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
13667 |
|
*djgpp*) |
13668 |
|
lt_prog_compiler_pic_F77= |
13669 |
|
;; |
13670 |
|
*) |
13671 |
|
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13672 |
|
;; |
13673 |
|
esac |
13674 |
|
|
13675 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13676 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13677 |
|
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13678 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13679 |
|
else |
13680 |
|
lt_cv_prog_compiler_c_o_F77=no |
13681 |
|
$rm -r conftest 2>/dev/null |
13682 |
|
mkdir conftest |
13683 |
|
cd conftest |
13684 |
|
mkdir out |
13685 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13686 |
|
|
13687 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
13688 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
13689 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
13690 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
13691 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
13692 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
13693 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
13694 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13695 |
|
-e 's:$: $lt_compiler_flag:'` |
13696 |
|
(eval echo "\"\$as_me:13696: $lt_compile\"" >&5) |
13697 |
|
(eval "$lt_compile" 2>out/conftest.err) |
13698 |
|
ac_status=$? |
13699 |
|
cat out/conftest.err >&5 |
13700 |
|
echo "$as_me:13700: \$? = $ac_status" >&5 |
13701 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13702 |
|
then |
13703 |
|
# The compiler can only warn and ignore the option if not recognized |
13704 |
|
# So say no if there are warnings |
13705 |
|
if test ! -s out/conftest.err; then |
13706 |
|
lt_cv_prog_compiler_c_o_F77=yes |
13707 |
|
fi |
13708 |
|
fi |
13709 |
|
chmod u+w . |
13710 |
|
$rm conftest* |
13711 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
13712 |
|
# template instantiation |
13713 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
13714 |
|
$rm out/* && rmdir out |
13715 |
|
cd .. |
13716 |
|
rmdir conftest |
13717 |
|
$rm conftest* |
13718 |
|
|
13719 |
|
fi |
13720 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
13721 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
13722 |
|
|
13723 |
|
|
13724 |
|
hard_links="nottested" |
13725 |
|
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
13726 |
|
# do not overwrite the value of need_locks provided by the user |
13727 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
13728 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
13729 |
|
hard_links=yes |
13730 |
|
$rm conftest* |
13731 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13732 |
|
touch conftest.a |
13733 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
13734 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
13735 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
13736 |
|
echo "${ECHO_T}$hard_links" >&6 |
13737 |
|
if test "$hard_links" = no; then |
13738 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
13739 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
13740 |
|
need_locks=warn |
13741 |
|
fi |
13742 |
|
else |
13743 |
|
need_locks=no |
13744 |
|
fi |
13745 |
|
|
13746 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
13747 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
13748 |
|
|
13749 |
|
runpath_var= |
13750 |
|
allow_undefined_flag_F77= |
13751 |
|
enable_shared_with_static_runtimes_F77=no |
13752 |
|
archive_cmds_F77= |
13753 |
|
archive_expsym_cmds_F77= |
13754 |
|
old_archive_From_new_cmds_F77= |
13755 |
|
old_archive_from_expsyms_cmds_F77= |
13756 |
|
export_dynamic_flag_spec_F77= |
13757 |
|
whole_archive_flag_spec_F77= |
13758 |
|
thread_safe_flag_spec_F77= |
13759 |
|
hardcode_libdir_flag_spec_F77= |
13760 |
|
hardcode_libdir_flag_spec_ld_F77= |
13761 |
|
hardcode_libdir_separator_F77= |
13762 |
|
hardcode_direct_F77=no |
13763 |
|
hardcode_minus_L_F77=no |
13764 |
|
hardcode_shlibpath_var_F77=unsupported |
13765 |
|
link_all_deplibs_F77=unknown |
13766 |
|
hardcode_automatic_F77=no |
13767 |
|
module_cmds_F77= |
13768 |
|
module_expsym_cmds_F77= |
13769 |
|
always_export_symbols_F77=no |
13770 |
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13771 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
13772 |
|
# included in the symbol list |
13773 |
|
include_expsyms_F77= |
13774 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
13775 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
13776 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
13777 |
|
# as well as any symbol that contains `d'. |
13778 |
|
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
13779 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
13780 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
13781 |
|
# the symbol is explicitly referenced. Since portable code cannot |
13782 |
|
# rely on this symbol name, it's probably fine to never include it in |
13783 |
|
# preloaded symbol tables. |
13784 |
|
extract_expsyms_cmds= |
13785 |
|
|
13786 |
|
case $host_os in |
13787 |
|
cygwin* | mingw* | pw32*) |
13788 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
13789 |
|
# When not using gcc, we currently assume that we are using |
13790 |
|
# Microsoft Visual C++. |
13791 |
|
if test "$GCC" != yes; then |
13792 |
|
with_gnu_ld=no |
13793 |
|
fi |
13794 |
|
;; |
13795 |
|
openbsd*) |
13796 |
|
with_gnu_ld=no |
13797 |
|
;; |
13798 |
|
esac |
13799 |
|
|
13800 |
|
ld_shlibs_F77=yes |
13801 |
|
if test "$with_gnu_ld" = yes; then |
13802 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
13803 |
|
wlarc='${wl}' |
13804 |
|
|
13805 |
|
# See if GNU ld supports shared libraries. |
13806 |
|
case $host_os in |
13807 |
|
aix3* | aix4* | aix5*) |
13808 |
|
# On AIX/PPC, the GNU linker is very broken |
13809 |
|
if test "$host_cpu" != ia64; then |
13810 |
|
ld_shlibs_F77=no |
13811 |
|
cat <<EOF 1>&2 |
13812 |
|
|
13813 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
13814 |
|
*** to be unable to reliably create shared libraries on AIX. |
13815 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
13816 |
|
*** really care for shared libraries, you may want to modify your PATH |
13817 |
|
*** so that a non-GNU linker is found, and then restart. |
13818 |
|
|
13819 |
|
EOF |
13820 |
|
fi |
13821 |
|
;; |
13822 |
|
|
13823 |
|
amigaos*) |
13824 |
|
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
13825 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
13826 |
|
hardcode_minus_L_F77=yes |
13827 |
|
|
13828 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
13829 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
13830 |
|
# to version 4, is to share data among multiple programs linked |
13831 |
|
# with the same dynamic library. Since this doesn't match the |
13832 |
|
# behavior of shared libraries on other platforms, we can't use |
13833 |
|
# them. |
13834 |
|
ld_shlibs_F77=no |
13835 |
|
;; |
13836 |
|
|
13837 |
|
beos*) |
13838 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13839 |
|
allow_undefined_flag_F77=unsupported |
13840 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
13841 |
|
# support --undefined. This deserves some investigation. FIXME |
13842 |
|
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13843 |
|
else |
13844 |
|
ld_shlibs_F77=no |
13845 |
|
fi |
13846 |
|
;; |
13847 |
|
|
13848 |
|
cygwin* | mingw* | pw32*) |
13849 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
13850 |
|
# as there is no search path for DLLs. |
13851 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
13852 |
|
allow_undefined_flag_F77=unsupported |
13853 |
|
always_export_symbols_F77=no |
13854 |
|
enable_shared_with_static_runtimes_F77=yes |
13855 |
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
13856 |
|
|
13857 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
13858 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
13859 |
|
# If the export-symbols file already is a .def file (1st line |
13860 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
13861 |
|
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
13862 |
|
cp $export_symbols $output_objdir/$soname.def; |
13863 |
|
else |
13864 |
|
echo EXPORTS > $output_objdir/$soname.def; |
13865 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
13866 |
|
fi~ |
13867 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
13868 |
|
else |
13869 |
|
ld_shlibs=no |
13870 |
|
fi |
13871 |
|
;; |
13872 |
|
|
13873 |
|
netbsd*) |
13874 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13875 |
|
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
13876 |
|
wlarc= |
13877 |
|
else |
13878 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13879 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13880 |
|
fi |
13881 |
|
;; |
13882 |
|
|
13883 |
|
solaris* | sysv5*) |
13884 |
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13885 |
|
ld_shlibs_F77=no |
13886 |
|
cat <<EOF 1>&2 |
13887 |
|
|
13888 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
13889 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
13890 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
13891 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
13892 |
|
*** your PATH or compiler configuration so that the native linker is |
13893 |
|
*** used, and then restart. |
13894 |
|
|
13895 |
|
EOF |
13896 |
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13897 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13898 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13899 |
|
else |
13900 |
|
ld_shlibs_F77=no |
13901 |
|
fi |
13902 |
|
;; |
13903 |
|
|
13904 |
|
sunos4*) |
13905 |
|
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
13906 |
|
wlarc= |
13907 |
|
hardcode_direct_F77=yes |
13908 |
|
hardcode_shlibpath_var_F77=no |
13909 |
|
;; |
13910 |
|
|
13911 |
|
linux*) |
13912 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13913 |
|
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13914 |
|
archive_cmds_F77="$tmp_archive_cmds" |
13915 |
|
supports_anon_versioning=no |
13916 |
|
case `$LD -v 2>/dev/null` in |
13917 |
|
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
13918 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
13919 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
13920 |
|
*\ 2.11.*) ;; # other 2.11 versions |
13921 |
|
*) supports_anon_versioning=yes ;; |
13922 |
|
esac |
13923 |
|
if test $supports_anon_versioning = yes; then |
13924 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
13925 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
13926 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
13927 |
|
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
13928 |
|
else |
13929 |
|
archive_expsym_cmds_F77="$tmp_archive_cmds" |
13930 |
|
fi |
13931 |
|
else |
13932 |
|
ld_shlibs_F77=no |
13933 |
|
fi |
13934 |
|
;; |
13935 |
|
|
13936 |
|
*) |
13937 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
13938 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
13939 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
13940 |
|
else |
13941 |
|
ld_shlibs_F77=no |
13942 |
|
fi |
13943 |
|
;; |
13944 |
|
esac |
13945 |
|
|
13946 |
|
if test "$ld_shlibs_F77" = yes; then |
13947 |
|
runpath_var=LD_RUN_PATH |
13948 |
|
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
13949 |
|
export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
13950 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
13951 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
13952 |
|
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
13953 |
|
else |
13954 |
|
whole_archive_flag_spec_F77= |
13955 |
|
fi |
13956 |
|
fi |
13957 |
|
else |
13958 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
13959 |
|
case $host_os in |
13960 |
|
aix3*) |
13961 |
|
allow_undefined_flag_F77=unsupported |
13962 |
|
always_export_symbols_F77=yes |
13963 |
|
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
13964 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
13965 |
|
# are no directories specified by -L. |
13966 |
|
hardcode_minus_L_F77=yes |
13967 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
13968 |
|
# Neither direct hardcoding nor static linking is supported with a |
13969 |
|
# broken collect2. |
13970 |
|
hardcode_direct_F77=unsupported |
13971 |
|
fi |
13972 |
|
;; |
13973 |
|
|
13974 |
|
aix4* | aix5*) |
13975 |
|
if test "$host_cpu" = ia64; then |
13976 |
|
# On IA64, the linker does run time linking by default, so we don't |
13977 |
|
# have to do anything special. |
13978 |
|
aix_use_runtimelinking=no |
13979 |
|
exp_sym_flag='-Bexport' |
13980 |
|
no_entry_flag="" |
13981 |
|
else |
13982 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
13983 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
13984 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13985 |
|
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
13986 |
|
else |
13987 |
|
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
13988 |
|
fi |
13989 |
|
aix_use_runtimelinking=no |
13990 |
|
|
13991 |
|
# Test if we are trying to use run time linking or normal |
13992 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
13993 |
|
# need to do runtime linking. |
13994 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
13995 |
|
for ld_flag in $LDFLAGS; do |
13996 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
13997 |
|
aix_use_runtimelinking=yes |
13998 |
|
break |
13999 |
|
fi |
14000 |
|
done |
14001 |
|
esac |
14002 |
|
|
14003 |
|
exp_sym_flag='-bexport' |
14004 |
|
no_entry_flag='-bnoentry' |
14005 |
|
fi |
14006 |
|
|
14007 |
|
# When large executables or shared objects are built, AIX ld can |
14008 |
|
# have problems creating the table of contents. If linking a library |
14009 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
14010 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14011 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14012 |
|
|
14013 |
|
archive_cmds_F77='' |
14014 |
|
hardcode_direct_F77=yes |
14015 |
|
hardcode_libdir_separator_F77=':' |
14016 |
|
link_all_deplibs_F77=yes |
14017 |
|
|
14018 |
|
if test "$GCC" = yes; then |
14019 |
|
case $host_os in aix4.012|aix4.012.*) |
14020 |
|
# We only want to do this on AIX 4.2 and lower, the check |
14021 |
|
# below for broken collect2 doesn't work under 4.3+ |
14022 |
|
collect2name=`${CC} -print-prog-name=collect2` |
14023 |
|
if test -f "$collect2name" && \ |
14024 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
14025 |
|
then |
14026 |
|
# We have reworked collect2 |
14027 |
|
hardcode_direct_F77=yes |
14028 |
|
else |
14029 |
|
# We have old collect2 |
14030 |
|
hardcode_direct_F77=unsupported |
14031 |
|
# It fails to find uninstalled libraries when the uninstalled |
14032 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
14033 |
|
# to unsupported forces relinking |
14034 |
|
hardcode_minus_L_F77=yes |
14035 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14036 |
|
hardcode_libdir_separator_F77= |
14037 |
|
fi |
14038 |
|
esac |
14039 |
|
shared_flag='-shared' |
14040 |
|
else |
14041 |
|
# not using gcc |
14042 |
|
if test "$host_cpu" = ia64; then |
14043 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14044 |
|
# chokes on -Wl,-G. The following line is correct: |
14045 |
|
shared_flag='-G' |
14046 |
|
else |
14047 |
|
if test "$aix_use_runtimelinking" = yes; then |
14048 |
|
shared_flag='${wl}-G' |
14049 |
|
else |
14050 |
|
shared_flag='${wl}-bM:SRE' |
14051 |
|
fi |
14052 |
|
fi |
14053 |
|
fi |
14054 |
|
|
14055 |
|
# It seems that -bexpall does not export symbols beginning with |
14056 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
14057 |
|
always_export_symbols_F77=yes |
14058 |
|
if test "$aix_use_runtimelinking" = yes; then |
14059 |
|
# Warning - without using the other runtime loading flags (-brtl), |
14060 |
|
# -berok will link without error, but may produce a broken library. |
14061 |
|
allow_undefined_flag_F77='-berok' |
14062 |
|
# Determine the default libpath from the value encoded in an empty executable. |
14063 |
|
cat >conftest.$ac_ext <<_ACEOF |
14064 |
|
program main |
14065 |
|
|
14066 |
|
end |
14067 |
|
_ACEOF |
14068 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
14069 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14070 |
|
(eval $ac_link) 2>conftest.er1 |
14071 |
|
ac_status=$? |
14072 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
14073 |
|
rm -f conftest.er1 |
14074 |
|
cat conftest.err >&5 |
14075 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14076 |
|
(exit $ac_status); } && |
14077 |
|
{ ac_try='test -z "$ac_f77_werror_flag" |
14078 |
|
|| test ! -s conftest.err' |
14079 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14080 |
|
(eval $ac_try) 2>&5 |
14081 |
|
ac_status=$? |
14082 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14083 |
|
(exit $ac_status); }; } && |
14084 |
|
{ ac_try='test -s conftest$ac_exeext' |
14085 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14086 |
|
(eval $ac_try) 2>&5 |
14087 |
|
ac_status=$? |
14088 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14089 |
|
(exit $ac_status); }; }; then |
14090 |
|
|
14091 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14092 |
|
}'` |
14093 |
|
# Check for a 64-bit object if we didn't find anything. |
14094 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14095 |
|
}'`; fi |
14096 |
|
else |
14097 |
|
echo "$as_me: failed program was:" >&5 |
14098 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
14099 |
|
|
14100 |
|
fi |
14101 |
|
rm -f conftest.err conftest.$ac_objext \ |
14102 |
|
conftest$ac_exeext conftest.$ac_ext |
14103 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14104 |
|
|
14105 |
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14106 |
|
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14107 |
|
else |
14108 |
|
if test "$host_cpu" = ia64; then |
14109 |
|
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14110 |
|
allow_undefined_flag_F77="-z nodefs" |
14111 |
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
14112 |
|
else |
14113 |
|
# Determine the default libpath from the value encoded in an empty executable. |
14114 |
|
cat >conftest.$ac_ext <<_ACEOF |
14115 |
|
program main |
14116 |
|
|
14117 |
|
end |
14118 |
|
_ACEOF |
14119 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
14120 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14121 |
|
(eval $ac_link) 2>conftest.er1 |
14122 |
|
ac_status=$? |
14123 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
14124 |
|
rm -f conftest.er1 |
14125 |
|
cat conftest.err >&5 |
14126 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14127 |
|
(exit $ac_status); } && |
14128 |
|
{ ac_try='test -z "$ac_f77_werror_flag" |
14129 |
|
|| test ! -s conftest.err' |
14130 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14131 |
|
(eval $ac_try) 2>&5 |
14132 |
|
ac_status=$? |
14133 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14134 |
|
(exit $ac_status); }; } && |
14135 |
|
{ ac_try='test -s conftest$ac_exeext' |
14136 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14137 |
|
(eval $ac_try) 2>&5 |
14138 |
|
ac_status=$? |
14139 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14140 |
|
(exit $ac_status); }; }; then |
14141 |
|
|
14142 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14143 |
|
}'` |
14144 |
|
# Check for a 64-bit object if we didn't find anything. |
14145 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14146 |
|
}'`; fi |
14147 |
|
else |
14148 |
|
echo "$as_me: failed program was:" >&5 |
14149 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
14150 |
|
|
14151 |
|
fi |
14152 |
|
rm -f conftest.err conftest.$ac_objext \ |
14153 |
|
conftest$ac_exeext conftest.$ac_ext |
14154 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14155 |
|
|
14156 |
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14157 |
|
# Warning - without using the other run time loading flags, |
14158 |
|
# -berok will link without error, but may produce a broken library. |
14159 |
|
no_undefined_flag_F77=' ${wl}-bernotok' |
14160 |
|
allow_undefined_flag_F77=' ${wl}-berok' |
14161 |
|
# -bexpall does not export symbols beginning with underscore (_) |
14162 |
|
always_export_symbols_F77=yes |
14163 |
|
# Exported symbols can be pulled into shared objects from archives |
14164 |
|
whole_archive_flag_spec_F77=' ' |
14165 |
|
archive_cmds_need_lc_F77=yes |
14166 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
14167 |
|
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
14168 |
|
fi |
14169 |
|
fi |
14170 |
|
;; |
14171 |
|
|
14172 |
|
amigaos*) |
14173 |
|
archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
14174 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14175 |
|
hardcode_minus_L_F77=yes |
14176 |
|
# see comment about different semantics on the GNU ld section |
14177 |
|
ld_shlibs_F77=no |
14178 |
|
;; |
14179 |
|
|
14180 |
|
bsdi4*) |
14181 |
|
export_dynamic_flag_spec_F77=-rdynamic |
14182 |
|
;; |
14183 |
|
|
14184 |
|
cygwin* | mingw* | pw32*) |
14185 |
|
# When not using gcc, we currently assume that we are using |
14186 |
|
# Microsoft Visual C++. |
14187 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
14188 |
|
# no search path for DLLs. |
14189 |
|
hardcode_libdir_flag_spec_F77=' ' |
14190 |
|
allow_undefined_flag_F77=unsupported |
14191 |
|
# Tell ltmain to make .lib files, not .a files. |
14192 |
|
libext=lib |
14193 |
|
# Tell ltmain to make .dll files, not .so files. |
14194 |
|
shrext_cmds=".dll" |
14195 |
|
# FIXME: Setting linknames here is a bad hack. |
14196 |
|
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14197 |
|
# The linker will automatically build a .lib file if we build a DLL. |
14198 |
|
old_archive_From_new_cmds_F77='true' |
14199 |
|
# FIXME: Should let the user specify the lib program. |
14200 |
|
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14201 |
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
14202 |
|
enable_shared_with_static_runtimes_F77=yes |
14203 |
|
;; |
14204 |
|
|
14205 |
|
darwin* | rhapsody*) |
14206 |
|
if test "$GXX" = yes ; then |
14207 |
|
archive_cmds_need_lc_F77=no |
14208 |
|
case "$host_os" in |
14209 |
|
rhapsody* | darwin1.[012]) |
14210 |
|
allow_undefined_flag_F77='-undefined suppress' |
14211 |
|
;; |
14212 |
|
*) # Darwin 1.3 on |
14213 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14214 |
|
allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
14215 |
|
else |
14216 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
14217 |
|
10.[012]) |
14218 |
|
allow_undefined_flag_F77='-flat_namespace -undefined suppress' |
14219 |
|
;; |
14220 |
|
10.*) |
14221 |
|
allow_undefined_flag_F77='-undefined dynamic_lookup' |
14222 |
|
;; |
14223 |
|
esac |
14224 |
|
fi |
14225 |
|
;; |
14226 |
|
esac |
14227 |
|
lt_int_apple_cc_single_mod=no |
14228 |
|
output_verbose_link_cmd='echo' |
14229 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
14230 |
|
lt_int_apple_cc_single_mod=yes |
14231 |
|
fi |
14232 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
14233 |
|
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14234 |
|
else |
14235 |
|
archive_cmds_F77='$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' |
14236 |
|
fi |
14237 |
|
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14238 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
14239 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
14240 |
|
archive_expsym_cmds_F77='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}' |
14241 |
|
else |
14242 |
|
archive_expsym_cmds_F77='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}' |
14243 |
|
fi |
14244 |
|
module_expsym_cmds_F77='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}' |
14245 |
|
hardcode_direct_F77=no |
14246 |
|
hardcode_automatic_F77=yes |
14247 |
|
hardcode_shlibpath_var_F77=unsupported |
14248 |
|
whole_archive_flag_spec_F77='-all_load $convenience' |
14249 |
|
link_all_deplibs_F77=yes |
14250 |
|
else |
14251 |
|
ld_shlibs_F77=no |
14252 |
|
fi |
14253 |
|
;; |
14254 |
|
|
14255 |
|
dgux*) |
14256 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14257 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14258 |
|
hardcode_shlibpath_var_F77=no |
14259 |
|
;; |
14260 |
|
|
14261 |
|
freebsd1*) |
14262 |
|
ld_shlibs_F77=no |
14263 |
|
;; |
14264 |
|
|
14265 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14266 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
14267 |
|
# does not break anything, and helps significantly (at the cost of a little |
14268 |
|
# extra space). |
14269 |
|
freebsd2.2*) |
14270 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14271 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14272 |
|
hardcode_direct_F77=yes |
14273 |
|
hardcode_shlibpath_var_F77=no |
14274 |
|
;; |
14275 |
|
|
14276 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14277 |
|
freebsd2*) |
14278 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14279 |
|
hardcode_direct_F77=yes |
14280 |
|
hardcode_minus_L_F77=yes |
14281 |
|
hardcode_shlibpath_var_F77=no |
14282 |
|
;; |
14283 |
|
|
14284 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14285 |
|
freebsd* | kfreebsd*-gnu) |
14286 |
|
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14287 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14288 |
|
hardcode_direct_F77=yes |
14289 |
|
hardcode_shlibpath_var_F77=no |
14290 |
|
;; |
14291 |
|
|
14292 |
|
hpux9*) |
14293 |
|
if test "$GCC" = yes; then |
14294 |
|
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
14295 |
|
else |
14296 |
|
archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
14297 |
|
fi |
14298 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14299 |
|
hardcode_libdir_separator_F77=: |
14300 |
|
hardcode_direct_F77=yes |
14301 |
|
|
14302 |
|
# hardcode_minus_L: Not really in the search PATH, |
14303 |
|
# but as the default location of the library. |
14304 |
|
hardcode_minus_L_F77=yes |
14305 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14306 |
|
;; |
14307 |
|
|
14308 |
|
hpux10* | hpux11*) |
14309 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14310 |
|
case "$host_cpu" in |
14311 |
|
hppa*64*|ia64*) |
14312 |
|
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14313 |
|
;; |
14314 |
|
*) |
14315 |
|
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14316 |
|
;; |
14317 |
|
esac |
14318 |
|
else |
14319 |
|
case "$host_cpu" in |
14320 |
|
hppa*64*|ia64*) |
14321 |
|
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
14322 |
|
;; |
14323 |
|
*) |
14324 |
|
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14325 |
|
;; |
14326 |
|
esac |
14327 |
|
fi |
14328 |
|
if test "$with_gnu_ld" = no; then |
14329 |
|
case "$host_cpu" in |
14330 |
|
hppa*64*) |
14331 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14332 |
|
hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14333 |
|
hardcode_libdir_separator_F77=: |
14334 |
|
hardcode_direct_F77=no |
14335 |
|
hardcode_shlibpath_var_F77=no |
14336 |
|
;; |
14337 |
|
ia64*) |
14338 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14339 |
|
hardcode_direct_F77=no |
14340 |
|
hardcode_shlibpath_var_F77=no |
14341 |
|
|
14342 |
|
# hardcode_minus_L: Not really in the search PATH, |
14343 |
|
# but as the default location of the library. |
14344 |
|
hardcode_minus_L_F77=yes |
14345 |
|
;; |
14346 |
|
*) |
14347 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14348 |
|
hardcode_libdir_separator_F77=: |
14349 |
|
hardcode_direct_F77=yes |
14350 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14351 |
|
|
14352 |
|
# hardcode_minus_L: Not really in the search PATH, |
14353 |
|
# but as the default location of the library. |
14354 |
|
hardcode_minus_L_F77=yes |
14355 |
|
;; |
14356 |
|
esac |
14357 |
|
fi |
14358 |
|
;; |
14359 |
|
|
14360 |
|
irix5* | irix6* | nonstopux*) |
14361 |
|
if test "$GCC" = yes; then |
14362 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $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' |
14363 |
|
else |
14364 |
|
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
14365 |
|
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14366 |
|
fi |
14367 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14368 |
|
hardcode_libdir_separator_F77=: |
14369 |
|
link_all_deplibs_F77=yes |
14370 |
|
;; |
14371 |
|
|
14372 |
|
netbsd*) |
14373 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14374 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14375 |
|
else |
14376 |
|
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14377 |
|
fi |
14378 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14379 |
|
hardcode_direct_F77=yes |
14380 |
|
hardcode_shlibpath_var_F77=no |
14381 |
|
;; |
14382 |
|
|
14383 |
|
newsos6) |
14384 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14385 |
|
hardcode_direct_F77=yes |
14386 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14387 |
|
hardcode_libdir_separator_F77=: |
14388 |
|
hardcode_shlibpath_var_F77=no |
14389 |
|
;; |
14390 |
|
|
14391 |
|
openbsd*) |
14392 |
|
hardcode_direct_F77=yes |
14393 |
|
hardcode_shlibpath_var_F77=no |
14394 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14395 |
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14396 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14397 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14398 |
|
else |
14399 |
|
case $host_os in |
14400 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14401 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14402 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14403 |
|
;; |
14404 |
|
*) |
14405 |
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14406 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14407 |
|
;; |
14408 |
|
esac |
14409 |
|
fi |
14410 |
|
;; |
14411 |
|
|
14412 |
|
os2*) |
14413 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14414 |
|
hardcode_minus_L_F77=yes |
14415 |
|
allow_undefined_flag_F77=unsupported |
14416 |
|
archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
14417 |
|
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14418 |
|
;; |
14419 |
|
|
14420 |
|
osf3*) |
14421 |
|
if test "$GCC" = yes; then |
14422 |
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14423 |
|
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
14424 |
|
else |
14425 |
|
allow_undefined_flag_F77=' -expect_unresolved \*' |
14426 |
|
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
14427 |
|
fi |
14428 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14429 |
|
hardcode_libdir_separator_F77=: |
14430 |
|
;; |
14431 |
|
|
14432 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
14433 |
|
if test "$GCC" = yes; then |
14434 |
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14435 |
|
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
14436 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14437 |
|
else |
14438 |
|
allow_undefined_flag_F77=' -expect_unresolved \*' |
14439 |
|
archive_cmds_F77='$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' |
14440 |
|
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
14441 |
|
$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' |
14442 |
|
|
14443 |
|
# Both c and cxx compiler support -rpath directly |
14444 |
|
hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14445 |
|
fi |
14446 |
|
hardcode_libdir_separator_F77=: |
14447 |
|
;; |
14448 |
|
|
14449 |
|
sco3.2v5*) |
14450 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14451 |
|
hardcode_shlibpath_var_F77=no |
14452 |
|
export_dynamic_flag_spec_F77='${wl}-Bexport' |
14453 |
|
runpath_var=LD_RUN_PATH |
14454 |
|
hardcode_runpath_var=yes |
14455 |
|
;; |
14456 |
|
|
14457 |
|
solaris*) |
14458 |
|
no_undefined_flag_F77=' -z text' |
14459 |
|
if test "$GCC" = yes; then |
14460 |
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14461 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14462 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14463 |
|
else |
14464 |
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14465 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14466 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14467 |
|
fi |
14468 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14469 |
|
hardcode_shlibpath_var_F77=no |
14470 |
|
case $host_os in |
14471 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
14472 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
14473 |
|
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14474 |
|
esac |
14475 |
|
link_all_deplibs_F77=yes |
14476 |
|
;; |
14477 |
|
|
14478 |
|
sunos4*) |
14479 |
|
if test "x$host_vendor" = xsequent; then |
14480 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
14481 |
|
# files that make .init and .fini sections work. |
14482 |
|
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14483 |
|
else |
14484 |
|
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14485 |
|
fi |
14486 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14487 |
|
hardcode_direct_F77=yes |
14488 |
|
hardcode_minus_L_F77=yes |
14489 |
|
hardcode_shlibpath_var_F77=no |
14490 |
|
;; |
14491 |
|
|
14492 |
|
sysv4) |
14493 |
|
case $host_vendor in |
14494 |
|
sni) |
14495 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14496 |
|
hardcode_direct_F77=yes # is this really true??? |
14497 |
|
;; |
14498 |
|
siemens) |
14499 |
|
## LD is ld it makes a PLAMLIB |
14500 |
|
## CC just makes a GrossModule. |
14501 |
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14502 |
|
reload_cmds_F77='$CC -r -o $output$reload_objs' |
14503 |
|
hardcode_direct_F77=no |
14504 |
|
;; |
14505 |
|
motorola) |
14506 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14507 |
|
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14508 |
|
;; |
14509 |
|
esac |
14510 |
|
runpath_var='LD_RUN_PATH' |
14511 |
|
hardcode_shlibpath_var_F77=no |
14512 |
|
;; |
14513 |
|
|
14514 |
|
sysv4.3*) |
14515 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14516 |
|
hardcode_shlibpath_var_F77=no |
14517 |
|
export_dynamic_flag_spec_F77='-Bexport' |
14518 |
|
;; |
14519 |
|
|
14520 |
|
sysv4*MP*) |
14521 |
|
if test -d /usr/nec; then |
14522 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14523 |
|
hardcode_shlibpath_var_F77=no |
14524 |
|
runpath_var=LD_RUN_PATH |
14525 |
|
hardcode_runpath_var=yes |
14526 |
|
ld_shlibs_F77=yes |
14527 |
|
fi |
14528 |
|
;; |
14529 |
|
|
14530 |
|
sysv4.2uw2*) |
14531 |
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14532 |
|
hardcode_direct_F77=yes |
14533 |
|
hardcode_minus_L_F77=no |
14534 |
|
hardcode_shlibpath_var_F77=no |
14535 |
|
hardcode_runpath_var=yes |
14536 |
|
runpath_var=LD_RUN_PATH |
14537 |
|
;; |
14538 |
|
|
14539 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
14540 |
|
no_undefined_flag_F77='${wl}-z ${wl}text' |
14541 |
|
if test "$GCC" = yes; then |
14542 |
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14543 |
|
else |
14544 |
|
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14545 |
|
fi |
14546 |
|
runpath_var='LD_RUN_PATH' |
14547 |
|
hardcode_shlibpath_var_F77=no |
14548 |
|
;; |
14549 |
|
|
14550 |
|
sysv5*) |
14551 |
|
no_undefined_flag_F77=' -z text' |
14552 |
|
# $CC -shared without GNU ld will not create a library from C++ |
14553 |
|
# object files and a static libstdc++, better avoid it by now |
14554 |
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14555 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14556 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14557 |
|
hardcode_libdir_flag_spec_F77= |
14558 |
|
hardcode_shlibpath_var_F77=no |
14559 |
|
runpath_var='LD_RUN_PATH' |
14560 |
|
;; |
14561 |
|
|
14562 |
|
uts4*) |
14563 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14564 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14565 |
|
hardcode_shlibpath_var_F77=no |
14566 |
|
;; |
14567 |
|
|
14568 |
|
*) |
14569 |
|
ld_shlibs_F77=no |
14570 |
|
;; |
14571 |
|
esac |
14572 |
|
fi |
14573 |
|
|
14574 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14575 |
|
echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14576 |
|
test "$ld_shlibs_F77" = no && can_build_shared=no |
14577 |
|
|
14578 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14579 |
|
if test "$GCC" = yes; then |
14580 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
14581 |
|
fi |
14582 |
|
|
14583 |
|
# |
14584 |
|
# Do we need to explicitly link libc? |
14585 |
|
# |
14586 |
|
case "x$archive_cmds_need_lc_F77" in |
14587 |
|
x|xyes) |
14588 |
|
# Assume -lc should be added |
14589 |
|
archive_cmds_need_lc_F77=yes |
14590 |
|
|
14591 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
14592 |
|
case $archive_cmds_F77 in |
14593 |
|
*'~'*) |
14594 |
|
# FIXME: we may have to deal with multi-command sequences. |
14595 |
|
;; |
14596 |
|
'$CC '*) |
14597 |
|
# Test whether the compiler implicitly links with -lc since on some |
14598 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
14599 |
|
# to ld, don't add -lc before -lgcc. |
14600 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14601 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14602 |
|
$rm conftest* |
14603 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14604 |
|
|
14605 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14606 |
|
(eval $ac_compile) 2>&5 |
14607 |
|
ac_status=$? |
14608 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14609 |
|
(exit $ac_status); } 2>conftest.err; then |
14610 |
|
soname=conftest |
14611 |
|
lib=conftest |
14612 |
|
libobjs=conftest.$ac_objext |
14613 |
|
deplibs= |
14614 |
|
wl=$lt_prog_compiler_wl_F77 |
14615 |
|
compiler_flags=-v |
14616 |
|
linker_flags=-v |
14617 |
|
verstring= |
14618 |
|
output_objdir=. |
14619 |
|
libname=conftest |
14620 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14621 |
|
allow_undefined_flag_F77= |
14622 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14623 |
|
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14624 |
|
ac_status=$? |
14625 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14626 |
|
(exit $ac_status); } |
14627 |
|
then |
14628 |
|
archive_cmds_need_lc_F77=no |
14629 |
|
else |
14630 |
|
archive_cmds_need_lc_F77=yes |
14631 |
|
fi |
14632 |
|
allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
14633 |
|
else |
14634 |
|
cat conftest.err 1>&5 |
14635 |
|
fi |
14636 |
|
$rm conftest* |
14637 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
14638 |
|
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
14639 |
|
;; |
14640 |
|
esac |
14641 |
|
fi |
14642 |
|
;; |
14643 |
|
esac |
14644 |
|
|
14645 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
14646 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
14647 |
|
library_names_spec= |
14648 |
|
libname_spec='lib$name' |
14649 |
|
soname_spec= |
14650 |
|
shrext_cmds=".so" |
14651 |
|
postinstall_cmds= |
14652 |
|
postuninstall_cmds= |
14653 |
|
finish_cmds= |
14654 |
|
finish_eval= |
14655 |
|
shlibpath_var= |
14656 |
|
shlibpath_overrides_runpath=unknown |
14657 |
|
version_type=none |
14658 |
|
dynamic_linker="$host_os ld.so" |
14659 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
14660 |
|
if test "$GCC" = yes; then |
14661 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14662 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
14663 |
|
# if the path contains ";" then we assume it to be the separator |
14664 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
14665 |
|
# assumed that no part of a normal pathname contains ";" but that should |
14666 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
14667 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14668 |
|
else |
14669 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14670 |
|
fi |
14671 |
|
else |
14672 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
14673 |
|
fi |
14674 |
|
need_lib_prefix=unknown |
14675 |
|
hardcode_into_libs=no |
14676 |
|
|
14677 |
|
# when you set need_version to no, make sure it does not cause -set_version |
14678 |
|
# flags to be left without arguments |
14679 |
|
need_version=unknown |
14680 |
|
|
14681 |
|
case $host_os in |
14682 |
|
aix3*) |
14683 |
|
version_type=linux |
14684 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
14685 |
|
shlibpath_var=LIBPATH |
14686 |
|
|
14687 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
14688 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14689 |
|
;; |
14690 |
|
|
14691 |
|
aix4* | aix5*) |
14692 |
|
version_type=linux |
14693 |
|
need_lib_prefix=no |
14694 |
|
need_version=no |
14695 |
|
hardcode_into_libs=yes |
14696 |
|
if test "$host_cpu" = ia64; then |
14697 |
|
# AIX 5 supports IA64 |
14698 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
14699 |
|
shlibpath_var=LD_LIBRARY_PATH |
14700 |
|
else |
14701 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
14702 |
|
# for dependence libraries. The import file would start with |
14703 |
|
# the line `#! .'. This would cause the generated library to |
14704 |
|
# depend on `.', always an invalid library. This was fixed in |
14705 |
|
# development snapshots of GCC prior to 3.0. |
14706 |
|
case $host_os in |
14707 |
|
aix4 | aix4.[01] | aix4.[01].*) |
14708 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
14709 |
|
echo ' yes ' |
14710 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
14711 |
|
: |
14712 |
|
else |
14713 |
|
can_build_shared=no |
14714 |
|
fi |
14715 |
|
;; |
14716 |
|
esac |
14717 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
14718 |
|
# soname into executable. Probably we can add versioning support to |
14719 |
|
# collect2, so additional links can be useful in future. |
14720 |
|
if test "$aix_use_runtimelinking" = yes; then |
14721 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
14722 |
|
# instead of lib<name>.a to let people know that these are not |
14723 |
|
# typical AIX shared libraries. |
14724 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14725 |
|
else |
14726 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
14727 |
|
# and later when we are not doing run time linking. |
14728 |
|
library_names_spec='${libname}${release}.a $libname.a' |
14729 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14730 |
|
fi |
14731 |
|
shlibpath_var=LIBPATH |
14732 |
|
fi |
14733 |
|
;; |
14734 |
|
|
14735 |
|
amigaos*) |
14736 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
14737 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
14738 |
|
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' |
14739 |
|
;; |
14740 |
|
|
14741 |
|
beos*) |
14742 |
|
library_names_spec='${libname}${shared_ext}' |
14743 |
|
dynamic_linker="$host_os ld.so" |
14744 |
|
shlibpath_var=LIBRARY_PATH |
14745 |
|
;; |
14746 |
|
|
14747 |
|
bsdi4*) |
14748 |
|
version_type=linux |
14749 |
|
need_version=no |
14750 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14751 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14752 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
14753 |
|
shlibpath_var=LD_LIBRARY_PATH |
14754 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
14755 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
14756 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
14757 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
14758 |
|
# libtool to hard-code these into programs |
14759 |
|
;; |
14760 |
|
|
14761 |
|
cygwin* | mingw* | pw32*) |
14762 |
|
version_type=windows |
14763 |
|
shrext_cmds=".dll" |
14764 |
|
need_version=no |
14765 |
|
need_lib_prefix=no |
14766 |
|
|
14767 |
|
case $GCC,$host_os in |
14768 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
14769 |
|
library_names_spec='$libname.dll.a' |
14770 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
14771 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
14772 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
14773 |
|
dldir=$destdir/`dirname \$dlpath`~ |
14774 |
|
test -d \$dldir || mkdir -p \$dldir~ |
14775 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
14776 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14777 |
|
dlpath=$dir/\$dldll~ |
14778 |
|
$rm \$dlpath' |
14779 |
|
shlibpath_overrides_runpath=yes |
14780 |
|
|
14781 |
|
case $host_os in |
14782 |
|
cygwin*) |
14783 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
14784 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14785 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
14786 |
|
;; |
14787 |
|
mingw*) |
14788 |
|
# MinGW DLLs use traditional 'lib' prefix |
14789 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
14790 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
14791 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
14792 |
|
# It is most probably a Windows format PATH printed by |
14793 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
14794 |
|
# path with ; separators, and with drive letters. We can handle the |
14795 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
14796 |
|
# especially as we might pass files found there to a mingw objdump, |
14797 |
|
# which wouldn't understand a cygwinified path. Ahh. |
14798 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
14799 |
|
else |
14800 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
14801 |
|
fi |
14802 |
|
;; |
14803 |
|
pw32*) |
14804 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
14805 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
14806 |
|
;; |
14807 |
|
esac |
14808 |
|
;; |
14809 |
|
|
14810 |
|
*) |
14811 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
14812 |
|
;; |
14813 |
|
esac |
14814 |
|
dynamic_linker='Win32 ld.exe' |
14815 |
|
# FIXME: first we should search . and the directory the executable is in |
14816 |
|
shlibpath_var=PATH |
14817 |
|
;; |
14818 |
|
|
14819 |
|
darwin* | rhapsody*) |
14820 |
|
dynamic_linker="$host_os dyld" |
14821 |
|
version_type=darwin |
14822 |
|
need_lib_prefix=no |
14823 |
|
need_version=no |
14824 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
14825 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
14826 |
|
shlibpath_overrides_runpath=yes |
14827 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
14828 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
14829 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14830 |
|
if test "$GCC" = yes; then |
14831 |
|
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"` |
14832 |
|
else |
14833 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
14834 |
|
fi |
14835 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
14836 |
|
;; |
14837 |
|
|
14838 |
|
dgux*) |
14839 |
|
version_type=linux |
14840 |
|
need_lib_prefix=no |
14841 |
|
need_version=no |
14842 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
14843 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14844 |
|
shlibpath_var=LD_LIBRARY_PATH |
14845 |
|
;; |
14846 |
|
|
14847 |
|
freebsd1*) |
14848 |
|
dynamic_linker=no |
14849 |
|
;; |
14850 |
|
|
14851 |
|
kfreebsd*-gnu) |
14852 |
|
version_type=linux |
14853 |
|
need_lib_prefix=no |
14854 |
|
need_version=no |
14855 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
14856 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14857 |
|
shlibpath_var=LD_LIBRARY_PATH |
14858 |
|
shlibpath_overrides_runpath=no |
14859 |
|
hardcode_into_libs=yes |
14860 |
|
dynamic_linker='GNU ld.so' |
14861 |
|
;; |
14862 |
|
|
14863 |
|
freebsd*) |
14864 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
14865 |
|
version_type=freebsd-$objformat |
14866 |
|
case $version_type in |
14867 |
|
freebsd-elf*) |
14868 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
14869 |
|
need_version=no |
14870 |
|
need_lib_prefix=no |
14871 |
|
;; |
14872 |
|
freebsd-*) |
14873 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
14874 |
|
need_version=yes |
14875 |
|
;; |
14876 |
|
esac |
14877 |
|
shlibpath_var=LD_LIBRARY_PATH |
14878 |
|
case $host_os in |
14879 |
|
freebsd2*) |
14880 |
|
shlibpath_overrides_runpath=yes |
14881 |
|
;; |
14882 |
|
freebsd3.01* | freebsdelf3.01*) |
14883 |
|
shlibpath_overrides_runpath=yes |
14884 |
|
hardcode_into_libs=yes |
14885 |
|
;; |
14886 |
|
*) # from 3.2 on |
14887 |
|
shlibpath_overrides_runpath=no |
14888 |
|
hardcode_into_libs=yes |
14889 |
|
;; |
14890 |
|
esac |
14891 |
|
;; |
14892 |
|
|
14893 |
|
gnu*) |
14894 |
|
version_type=linux |
14895 |
|
need_lib_prefix=no |
14896 |
|
need_version=no |
14897 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
14898 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14899 |
|
shlibpath_var=LD_LIBRARY_PATH |
14900 |
|
hardcode_into_libs=yes |
14901 |
|
;; |
14902 |
|
|
14903 |
|
hpux9* | hpux10* | hpux11*) |
14904 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
14905 |
|
# link against other versions. |
14906 |
|
version_type=sunos |
14907 |
|
need_lib_prefix=no |
14908 |
|
need_version=no |
14909 |
|
case "$host_cpu" in |
14910 |
|
ia64*) |
14911 |
|
shrext_cmds='.so' |
14912 |
|
hardcode_into_libs=yes |
14913 |
|
dynamic_linker="$host_os dld.so" |
14914 |
|
shlibpath_var=LD_LIBRARY_PATH |
14915 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14916 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14917 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14918 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
14919 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
14920 |
|
else |
14921 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
14922 |
|
fi |
14923 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14924 |
|
;; |
14925 |
|
hppa*64*) |
14926 |
|
shrext_cmds='.sl' |
14927 |
|
hardcode_into_libs=yes |
14928 |
|
dynamic_linker="$host_os dld.sl" |
14929 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
14930 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
14931 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14932 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14933 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
14934 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
14935 |
|
;; |
14936 |
|
*) |
14937 |
|
shrext_cmds='.sl' |
14938 |
|
dynamic_linker="$host_os dld.sl" |
14939 |
|
shlibpath_var=SHLIB_PATH |
14940 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
14941 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14942 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14943 |
|
;; |
14944 |
|
esac |
14945 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
14946 |
|
postinstall_cmds='chmod 555 $lib' |
14947 |
|
;; |
14948 |
|
|
14949 |
|
irix5* | irix6* | nonstopux*) |
14950 |
|
case $host_os in |
14951 |
|
nonstopux*) version_type=nonstopux ;; |
14952 |
|
*) |
14953 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
14954 |
|
version_type=linux |
14955 |
|
else |
14956 |
|
version_type=irix |
14957 |
|
fi ;; |
14958 |
|
esac |
14959 |
|
need_lib_prefix=no |
14960 |
|
need_version=no |
14961 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14962 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
14963 |
|
case $host_os in |
14964 |
|
irix5* | nonstopux*) |
14965 |
|
libsuff= shlibsuff= |
14966 |
|
;; |
14967 |
|
*) |
14968 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
14969 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
14970 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
14971 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
14972 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
14973 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
14974 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
14975 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
14976 |
|
esac |
14977 |
|
;; |
14978 |
|
esac |
14979 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
14980 |
|
shlibpath_overrides_runpath=no |
14981 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
14982 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
14983 |
|
hardcode_into_libs=yes |
14984 |
|
;; |
14985 |
|
|
14986 |
|
# No shared lib support for Linux oldld, aout, or coff. |
14987 |
|
linux*oldld* | linux*aout* | linux*coff*) |
14988 |
|
dynamic_linker=no |
14989 |
|
;; |
14990 |
|
|
14991 |
|
# This must be Linux ELF. |
14992 |
|
linux*) |
14993 |
|
version_type=linux |
14994 |
|
need_lib_prefix=no |
14995 |
|
need_version=no |
14996 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
14997 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
14998 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
14999 |
|
shlibpath_var=LD_LIBRARY_PATH |
15000 |
|
shlibpath_overrides_runpath=no |
15001 |
|
# This implies no fast_install, which is unacceptable. |
15002 |
|
# Some rework will be needed to allow for fast_install |
15003 |
|
# before this can be enabled. |
15004 |
|
hardcode_into_libs=yes |
15005 |
|
|
15006 |
|
libsuff= |
15007 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
15008 |
|
libsuff=64 |
15009 |
|
fi |
15010 |
|
|
15011 |
|
# Append ld.so.conf contents to the search path |
15012 |
|
if test -f /etc/ld.so.conf; then |
15013 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
15014 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
15015 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
15016 |
|
fi |
15017 |
|
|
15018 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
15019 |
|
# powerpc, because MkLinux only supported shared libraries with the |
15020 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
15021 |
|
# most powerpc-linux boxes support dynamic linking these days and |
15022 |
|
# people can always --disable-shared, the test was removed, and we |
15023 |
|
# assume the GNU/Linux dynamic linker is in use. |
15024 |
|
dynamic_linker='GNU/Linux ld.so' |
15025 |
|
;; |
15026 |
|
|
15027 |
|
knetbsd*-gnu) |
15028 |
|
version_type=linux |
15029 |
|
need_lib_prefix=no |
15030 |
|
need_version=no |
15031 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15032 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15033 |
|
shlibpath_var=LD_LIBRARY_PATH |
15034 |
|
shlibpath_overrides_runpath=no |
15035 |
|
hardcode_into_libs=yes |
15036 |
|
dynamic_linker='GNU ld.so' |
15037 |
|
;; |
15038 |
|
|
15039 |
|
netbsd*) |
15040 |
|
version_type=sunos |
15041 |
|
need_lib_prefix=no |
15042 |
|
need_version=no |
15043 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15044 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15045 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15046 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
15047 |
|
else |
15048 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15049 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15050 |
|
dynamic_linker='NetBSD ld.elf_so' |
15051 |
|
fi |
15052 |
|
shlibpath_var=LD_LIBRARY_PATH |
15053 |
|
shlibpath_overrides_runpath=yes |
15054 |
|
hardcode_into_libs=yes |
15055 |
|
;; |
15056 |
|
|
15057 |
|
newsos6) |
15058 |
|
version_type=linux |
15059 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15060 |
|
shlibpath_var=LD_LIBRARY_PATH |
15061 |
|
shlibpath_overrides_runpath=yes |
15062 |
|
;; |
15063 |
|
|
15064 |
|
nto-qnx*) |
15065 |
|
version_type=linux |
15066 |
|
need_lib_prefix=no |
15067 |
|
need_version=no |
15068 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15069 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15070 |
|
shlibpath_var=LD_LIBRARY_PATH |
15071 |
|
shlibpath_overrides_runpath=yes |
15072 |
|
;; |
15073 |
|
|
15074 |
|
openbsd*) |
15075 |
|
version_type=sunos |
15076 |
|
need_lib_prefix=no |
15077 |
|
need_version=yes |
15078 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15079 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15080 |
|
shlibpath_var=LD_LIBRARY_PATH |
15081 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15082 |
|
case $host_os in |
15083 |
|
openbsd2.[89] | openbsd2.[89].*) |
15084 |
|
shlibpath_overrides_runpath=no |
15085 |
|
;; |
15086 |
|
*) |
15087 |
|
shlibpath_overrides_runpath=yes |
15088 |
|
;; |
15089 |
|
esac |
15090 |
|
else |
15091 |
|
shlibpath_overrides_runpath=yes |
15092 |
|
fi |
15093 |
|
;; |
15094 |
|
|
15095 |
|
os2*) |
15096 |
|
libname_spec='$name' |
15097 |
|
shrext_cmds=".dll" |
15098 |
|
need_lib_prefix=no |
15099 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
15100 |
|
dynamic_linker='OS/2 ld.exe' |
15101 |
|
shlibpath_var=LIBPATH |
15102 |
|
;; |
15103 |
|
|
15104 |
|
osf3* | osf4* | osf5*) |
15105 |
|
version_type=osf |
15106 |
|
need_lib_prefix=no |
15107 |
|
need_version=no |
15108 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15109 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15110 |
|
shlibpath_var=LD_LIBRARY_PATH |
15111 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15112 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15113 |
|
;; |
15114 |
|
|
15115 |
|
sco3.2v5*) |
15116 |
|
version_type=osf |
15117 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15118 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15119 |
|
shlibpath_var=LD_LIBRARY_PATH |
15120 |
|
;; |
15121 |
|
|
15122 |
|
solaris*) |
15123 |
|
version_type=linux |
15124 |
|
need_lib_prefix=no |
15125 |
|
need_version=no |
15126 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15127 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15128 |
|
shlibpath_var=LD_LIBRARY_PATH |
15129 |
|
shlibpath_overrides_runpath=yes |
15130 |
|
hardcode_into_libs=yes |
15131 |
|
# ldd complains unless libraries are executable |
15132 |
|
postinstall_cmds='chmod +x $lib' |
15133 |
|
;; |
15134 |
|
|
15135 |
|
sunos4*) |
15136 |
|
version_type=sunos |
15137 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15138 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15139 |
|
shlibpath_var=LD_LIBRARY_PATH |
15140 |
|
shlibpath_overrides_runpath=yes |
15141 |
|
if test "$with_gnu_ld" = yes; then |
15142 |
|
need_lib_prefix=no |
15143 |
|
fi |
15144 |
|
need_version=yes |
15145 |
|
;; |
15146 |
|
|
15147 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
15148 |
|
version_type=linux |
15149 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15150 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15151 |
|
shlibpath_var=LD_LIBRARY_PATH |
15152 |
|
case $host_vendor in |
15153 |
|
sni) |
15154 |
|
shlibpath_overrides_runpath=no |
15155 |
|
need_lib_prefix=no |
15156 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
15157 |
|
runpath_var=LD_RUN_PATH |
15158 |
|
;; |
15159 |
|
siemens) |
15160 |
|
need_lib_prefix=no |
15161 |
|
;; |
15162 |
|
motorola) |
15163 |
|
need_lib_prefix=no |
15164 |
|
need_version=no |
15165 |
|
shlibpath_overrides_runpath=no |
15166 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15167 |
|
;; |
15168 |
|
esac |
15169 |
|
;; |
15170 |
|
|
15171 |
|
sysv4*MP*) |
15172 |
|
if test -d /usr/nec ;then |
15173 |
|
version_type=linux |
15174 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15175 |
|
soname_spec='$libname${shared_ext}.$major' |
15176 |
|
shlibpath_var=LD_LIBRARY_PATH |
15177 |
|
fi |
15178 |
|
;; |
15179 |
|
|
15180 |
|
uts4*) |
15181 |
|
version_type=linux |
15182 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15183 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15184 |
|
shlibpath_var=LD_LIBRARY_PATH |
15185 |
|
;; |
15186 |
|
|
15187 |
|
*) |
15188 |
|
dynamic_linker=no |
15189 |
|
;; |
15190 |
|
esac |
15191 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15192 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
15193 |
|
test "$dynamic_linker" = no && can_build_shared=no |
15194 |
|
|
15195 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15196 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15197 |
|
hardcode_action_F77= |
15198 |
|
if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15199 |
|
test -n "$runpath_var F77" || \ |
15200 |
|
test "X$hardcode_automatic_F77"="Xyes" ; then |
15201 |
|
|
15202 |
|
# We can hardcode non-existant directories. |
15203 |
|
if test "$hardcode_direct_F77" != no && |
15204 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
15205 |
|
# have to relink, otherwise we might link with an installed library |
15206 |
|
# when we should be linking with a yet-to-be-installed one |
15207 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15208 |
|
test "$hardcode_minus_L_F77" != no; then |
15209 |
|
# Linking always hardcodes the temporary library directory. |
15210 |
|
hardcode_action_F77=relink |
15211 |
|
else |
15212 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
15213 |
|
hardcode_action_F77=immediate |
15214 |
|
fi |
15215 |
|
else |
15216 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
15217 |
|
# directories. |
15218 |
|
hardcode_action_F77=unsupported |
15219 |
|
fi |
15220 |
|
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15221 |
|
echo "${ECHO_T}$hardcode_action_F77" >&6 |
15222 |
|
|
15223 |
|
if test "$hardcode_action_F77" = relink; then |
15224 |
|
# Fast installation is not supported |
15225 |
|
enable_fast_install=no |
15226 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
15227 |
|
test "$enable_shared" = no; then |
15228 |
|
# Fast installation is not necessary |
15229 |
|
enable_fast_install=needless |
15230 |
|
fi |
15231 |
|
|
15232 |
|
striplib= |
15233 |
|
old_striplib= |
15234 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
15235 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
15236 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
15237 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
15238 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
15239 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
15240 |
|
echo "${ECHO_T}yes" >&6 |
15241 |
|
else |
15242 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
15243 |
|
case $host_os in |
15244 |
|
darwin*) |
15245 |
|
if test -n "$STRIP" ; then |
15246 |
|
striplib="$STRIP -x" |
15247 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
15248 |
|
echo "${ECHO_T}yes" >&6 |
15249 |
|
else |
15250 |
|
echo "$as_me:$LINENO: result: no" >&5 |
15251 |
|
echo "${ECHO_T}no" >&6 |
15252 |
|
fi |
15253 |
|
;; |
15254 |
|
*) |
15255 |
|
echo "$as_me:$LINENO: result: no" >&5 |
15256 |
|
echo "${ECHO_T}no" >&6 |
15257 |
|
;; |
15258 |
|
esac |
15259 |
|
fi |
15260 |
|
|
15261 |
|
|
15262 |
|
|
15263 |
|
# The else clause should only fire when bootstrapping the |
15264 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
15265 |
|
# with your package, and you will get complaints that there are |
15266 |
|
# no rules to generate ltmain.sh. |
15267 |
|
if test -f "$ltmain"; then |
15268 |
|
# See if we are running on zsh, and set the options which allow our commands through |
15269 |
|
# without removal of \ escapes. |
15270 |
|
if test -n "${ZSH_VERSION+set}" ; then |
15271 |
|
setopt NO_GLOB_SUBST |
15272 |
|
fi |
15273 |
|
# Now quote all the things that may contain metacharacters while being |
15274 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
15275 |
|
# variables and quote the copies for generation of the libtool script. |
15276 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
15277 |
|
SED SHELL STRIP \ |
15278 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15279 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15280 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
15281 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15282 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
15283 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15284 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
15285 |
|
compiler_F77 \ |
15286 |
|
CC_F77 \ |
15287 |
|
LD_F77 \ |
15288 |
|
lt_prog_compiler_wl_F77 \ |
15289 |
|
lt_prog_compiler_pic_F77 \ |
15290 |
|
lt_prog_compiler_static_F77 \ |
15291 |
|
lt_prog_compiler_no_builtin_flag_F77 \ |
15292 |
|
export_dynamic_flag_spec_F77 \ |
15293 |
|
thread_safe_flag_spec_F77 \ |
15294 |
|
whole_archive_flag_spec_F77 \ |
15295 |
|
enable_shared_with_static_runtimes_F77 \ |
15296 |
|
old_archive_cmds_F77 \ |
15297 |
|
old_archive_from_new_cmds_F77 \ |
15298 |
|
predep_objects_F77 \ |
15299 |
|
postdep_objects_F77 \ |
15300 |
|
predeps_F77 \ |
15301 |
|
postdeps_F77 \ |
15302 |
|
compiler_lib_search_path_F77 \ |
15303 |
|
archive_cmds_F77 \ |
15304 |
|
archive_expsym_cmds_F77 \ |
15305 |
|
postinstall_cmds_F77 \ |
15306 |
|
postuninstall_cmds_F77 \ |
15307 |
|
old_archive_from_expsyms_cmds_F77 \ |
15308 |
|
allow_undefined_flag_F77 \ |
15309 |
|
no_undefined_flag_F77 \ |
15310 |
|
export_symbols_cmds_F77 \ |
15311 |
|
hardcode_libdir_flag_spec_F77 \ |
15312 |
|
hardcode_libdir_flag_spec_ld_F77 \ |
15313 |
|
hardcode_libdir_separator_F77 \ |
15314 |
|
hardcode_automatic_F77 \ |
15315 |
|
module_cmds_F77 \ |
15316 |
|
module_expsym_cmds_F77 \ |
15317 |
|
lt_cv_prog_compiler_c_o_F77 \ |
15318 |
|
exclude_expsyms_F77 \ |
15319 |
|
include_expsyms_F77; do |
15320 |
|
|
15321 |
|
case $var in |
15322 |
|
old_archive_cmds_F77 | \ |
15323 |
|
old_archive_from_new_cmds_F77 | \ |
15324 |
|
archive_cmds_F77 | \ |
15325 |
|
archive_expsym_cmds_F77 | \ |
15326 |
|
module_cmds_F77 | \ |
15327 |
|
module_expsym_cmds_F77 | \ |
15328 |
|
old_archive_from_expsyms_cmds_F77 | \ |
15329 |
|
export_symbols_cmds_F77 | \ |
15330 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15331 |
|
postinstall_cmds | postuninstall_cmds | \ |
15332 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
15333 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15334 |
|
# Double-quote double-evaled strings. |
15335 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15336 |
|
;; |
15337 |
|
*) |
15338 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15339 |
|
;; |
15340 |
|
esac |
15341 |
|
done |
15342 |
|
|
15343 |
|
case $lt_echo in |
15344 |
|
*'\$0 --fallback-echo"') |
15345 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15346 |
|
;; |
15347 |
|
esac |
15348 |
|
|
15349 |
|
cfgfile="$ofile" |
15350 |
|
|
15351 |
|
cat <<__EOF__ >> "$cfgfile" |
15352 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15353 |
|
|
15354 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15355 |
|
|
15356 |
|
# Shell to use when invoking shell scripts. |
15357 |
|
SHELL=$lt_SHELL |
15358 |
|
|
15359 |
|
# Whether or not to build shared libraries. |
15360 |
|
build_libtool_libs=$enable_shared |
15361 |
|
|
15362 |
|
# Whether or not to build static libraries. |
15363 |
|
build_old_libs=$enable_static |
15364 |
|
|
15365 |
|
# Whether or not to add -lc for building shared libraries. |
15366 |
|
build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15367 |
|
|
15368 |
|
# Whether or not to disallow shared libs when runtime libs are static |
15369 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15370 |
|
|
15371 |
|
# Whether or not to optimize for fast installation. |
15372 |
|
fast_install=$enable_fast_install |
15373 |
|
|
15374 |
|
# The host system. |
15375 |
|
host_alias=$host_alias |
15376 |
|
host=$host |
15377 |
|
|
15378 |
|
# An echo program that does not interpret backslashes. |
15379 |
|
echo=$lt_echo |
15380 |
|
|
15381 |
|
# The archiver. |
15382 |
|
AR=$lt_AR |
15383 |
|
AR_FLAGS=$lt_AR_FLAGS |
15384 |
|
|
15385 |
|
# A C compiler. |
15386 |
|
LTCC=$lt_LTCC |
15387 |
|
|
15388 |
|
# A language-specific compiler. |
15389 |
|
CC=$lt_compiler_F77 |
15390 |
|
|
15391 |
|
# Is the compiler the GNU C compiler? |
15392 |
|
with_gcc=$GCC_F77 |
15393 |
|
|
15394 |
|
# An ERE matcher. |
15395 |
|
EGREP=$lt_EGREP |
15396 |
|
|
15397 |
|
# The linker used to build libraries. |
15398 |
|
LD=$lt_LD_F77 |
15399 |
|
|
15400 |
|
# Whether we need hard or soft links. |
15401 |
|
LN_S=$lt_LN_S |
15402 |
|
|
15403 |
|
# A BSD-compatible nm program. |
15404 |
|
NM=$lt_NM |
15405 |
|
|
15406 |
|
# A symbol stripping program |
15407 |
|
STRIP=$lt_STRIP |
15408 |
|
|
15409 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
15410 |
|
MAGIC_CMD=$MAGIC_CMD |
15411 |
|
|
15412 |
|
# Used on cygwin: DLL creation program. |
15413 |
|
DLLTOOL="$DLLTOOL" |
15414 |
|
|
15415 |
|
# Used on cygwin: object dumper. |
15416 |
|
OBJDUMP="$OBJDUMP" |
15417 |
|
|
15418 |
|
# Used on cygwin: assembler. |
15419 |
|
AS="$AS" |
15420 |
|
|
15421 |
|
# The name of the directory that contains temporary libtool files. |
15422 |
|
objdir=$objdir |
15423 |
|
|
15424 |
|
# How to create reloadable object files. |
15425 |
|
reload_flag=$lt_reload_flag |
15426 |
|
reload_cmds=$lt_reload_cmds |
15427 |
|
|
15428 |
|
# How to pass a linker flag through the compiler. |
15429 |
|
wl=$lt_lt_prog_compiler_wl_F77 |
15430 |
|
|
15431 |
|
# Object file suffix (normally "o"). |
15432 |
|
objext="$ac_objext" |
15433 |
|
|
15434 |
|
# Old archive suffix (normally "a"). |
15435 |
|
libext="$libext" |
15436 |
|
|
15437 |
|
# Shared library suffix (normally ".so"). |
15438 |
|
shrext_cmds='$shrext_cmds' |
15439 |
|
|
15440 |
|
# Executable file suffix (normally ""). |
15441 |
|
exeext="$exeext" |
15442 |
|
|
15443 |
|
# Additional compiler flags for building library objects. |
15444 |
|
pic_flag=$lt_lt_prog_compiler_pic_F77 |
15445 |
|
pic_mode=$pic_mode |
15446 |
|
|
15447 |
|
# What is the maximum length of a command? |
15448 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
15449 |
|
|
15450 |
|
# Does compiler simultaneously support -c and -o options? |
15451 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15452 |
|
|
15453 |
|
# Must we lock files when doing compilation ? |
15454 |
|
need_locks=$lt_need_locks |
15455 |
|
|
15456 |
|
# Do we need the lib prefix for modules? |
15457 |
|
need_lib_prefix=$need_lib_prefix |
15458 |
|
|
15459 |
|
# Do we need a version for libraries? |
15460 |
|
need_version=$need_version |
15461 |
|
|
15462 |
|
# Whether dlopen is supported. |
15463 |
|
dlopen_support=$enable_dlopen |
15464 |
|
|
15465 |
|
# Whether dlopen of programs is supported. |
15466 |
|
dlopen_self=$enable_dlopen_self |
15467 |
|
|
15468 |
|
# Whether dlopen of statically linked programs is supported. |
15469 |
|
dlopen_self_static=$enable_dlopen_self_static |
15470 |
|
|
15471 |
|
# Compiler flag to prevent dynamic linking. |
15472 |
|
link_static_flag=$lt_lt_prog_compiler_static_F77 |
15473 |
|
|
15474 |
|
# Compiler flag to turn off builtin functions. |
15475 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15476 |
|
|
15477 |
|
# Compiler flag to allow reflexive dlopens. |
15478 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15479 |
|
|
15480 |
|
# Compiler flag to generate shared objects directly from archives. |
15481 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15482 |
|
|
15483 |
|
# Compiler flag to generate thread-safe objects. |
15484 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15485 |
|
|
15486 |
|
# Library versioning type. |
15487 |
|
version_type=$version_type |
15488 |
|
|
15489 |
|
# Format of library name prefix. |
15490 |
|
libname_spec=$lt_libname_spec |
15491 |
|
|
15492 |
|
# List of archive names. First name is the real one, the rest are links. |
15493 |
|
# The last name is the one that the linker finds with -lNAME. |
15494 |
|
library_names_spec=$lt_library_names_spec |
15495 |
|
|
15496 |
|
# The coded name of the library, if different from the real name. |
15497 |
|
soname_spec=$lt_soname_spec |
15498 |
|
|
15499 |
|
# Commands used to build and install an old-style archive. |
15500 |
|
RANLIB=$lt_RANLIB |
15501 |
|
old_archive_cmds=$lt_old_archive_cmds_F77 |
15502 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
15503 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15504 |
|
|
15505 |
|
# Create an old-style archive from a shared archive. |
15506 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15507 |
|
|
15508 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
15509 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15510 |
|
|
15511 |
|
# Commands used to build and install a shared archive. |
15512 |
|
archive_cmds=$lt_archive_cmds_F77 |
15513 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15514 |
|
postinstall_cmds=$lt_postinstall_cmds |
15515 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
15516 |
|
|
15517 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
15518 |
|
module_cmds=$lt_module_cmds_F77 |
15519 |
|
module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15520 |
|
|
15521 |
|
# Commands to strip libraries. |
15522 |
|
old_striplib=$lt_old_striplib |
15523 |
|
striplib=$lt_striplib |
15524 |
|
|
15525 |
|
# Dependencies to place before the objects being linked to create a |
15526 |
|
# shared library. |
15527 |
|
predep_objects=$lt_predep_objects_F77 |
15528 |
|
|
15529 |
|
# Dependencies to place after the objects being linked to create a |
15530 |
|
# shared library. |
15531 |
|
postdep_objects=$lt_postdep_objects_F77 |
15532 |
|
|
15533 |
|
# Dependencies to place before the objects being linked to create a |
15534 |
|
# shared library. |
15535 |
|
predeps=$lt_predeps_F77 |
15536 |
|
|
15537 |
|
# Dependencies to place after the objects being linked to create a |
15538 |
|
# shared library. |
15539 |
|
postdeps=$lt_postdeps_F77 |
15540 |
|
|
15541 |
|
# The library search path used internally by the compiler when linking |
15542 |
|
# a shared library. |
15543 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
15544 |
|
|
15545 |
|
# Method to check whether dependent libraries are shared objects. |
15546 |
|
deplibs_check_method=$lt_deplibs_check_method |
15547 |
|
|
15548 |
|
# Command to use when deplibs_check_method == file_magic. |
15549 |
|
file_magic_cmd=$lt_file_magic_cmd |
15550 |
|
|
15551 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
15552 |
|
allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15553 |
|
|
15554 |
|
# Flag that forces no undefined symbols. |
15555 |
|
no_undefined_flag=$lt_no_undefined_flag_F77 |
15556 |
|
|
15557 |
|
# Commands used to finish a libtool library installation in a directory. |
15558 |
|
finish_cmds=$lt_finish_cmds |
15559 |
|
|
15560 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
15561 |
|
finish_eval=$lt_finish_eval |
15562 |
|
|
15563 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
15564 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15565 |
|
|
15566 |
|
# Transform the output of nm in a proper C declaration |
15567 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15568 |
|
|
15569 |
|
# Transform the output of nm in a C name address pair |
15570 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15571 |
|
|
15572 |
|
# This is the shared library runtime path variable. |
15573 |
|
runpath_var=$runpath_var |
15574 |
|
|
15575 |
|
# This is the shared library path variable. |
15576 |
|
shlibpath_var=$shlibpath_var |
15577 |
|
|
15578 |
|
# Is shlibpath searched before the hard-coded library search path? |
15579 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15580 |
|
|
15581 |
|
# How to hardcode a shared library path into an executable. |
15582 |
|
hardcode_action=$hardcode_action_F77 |
15583 |
|
|
15584 |
|
# Whether we should hardcode library paths into libraries. |
15585 |
|
hardcode_into_libs=$hardcode_into_libs |
15586 |
|
|
15587 |
|
# Flag to hardcode \$libdir into a binary during linking. |
15588 |
|
# This must work even if \$libdir does not exist. |
15589 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15590 |
|
|
15591 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
15592 |
|
# a binary during linking. This must work even if \$libdir does |
15593 |
|
# not exist. |
15594 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15595 |
|
|
15596 |
|
# Whether we need a single -rpath flag with a separated argument. |
15597 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15598 |
|
|
15599 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15600 |
|
# resulting binary. |
15601 |
|
hardcode_direct=$hardcode_direct_F77 |
15602 |
|
|
15603 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
15604 |
|
# resulting binary. |
15605 |
|
hardcode_minus_L=$hardcode_minus_L_F77 |
15606 |
|
|
15607 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
15608 |
|
# the resulting binary. |
15609 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
15610 |
|
|
15611 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
15612 |
|
# and all subsequent libraries and executables linked against it. |
15613 |
|
hardcode_automatic=$hardcode_automatic_F77 |
15614 |
|
|
15615 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
15616 |
|
# restored at relink time. |
15617 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
15618 |
|
|
15619 |
|
# Whether libtool must link a program against all its dependency libraries. |
15620 |
|
link_all_deplibs=$link_all_deplibs_F77 |
15621 |
|
|
15622 |
|
# Compile-time system search path for libraries |
15623 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
15624 |
|
|
15625 |
|
# Run-time system search path for libraries |
15626 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
15627 |
|
|
15628 |
|
# Fix the shell variable \$srcfile for the compiler. |
15629 |
|
fix_srcfile_path="$fix_srcfile_path_F77" |
15630 |
|
|
15631 |
|
# Set to yes if exported symbols are required. |
15632 |
|
always_export_symbols=$always_export_symbols_F77 |
15633 |
|
|
15634 |
|
# The commands to list exported symbols. |
15635 |
|
export_symbols_cmds=$lt_export_symbols_cmds_F77 |
15636 |
|
|
15637 |
|
# The commands to extract the exported symbol list from a shared archive. |
15638 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
15639 |
|
|
15640 |
|
# Symbols that should not be listed in the preloaded symbols. |
15641 |
|
exclude_expsyms=$lt_exclude_expsyms_F77 |
15642 |
|
|
15643 |
|
# Symbols that must always be exported. |
15644 |
|
include_expsyms=$lt_include_expsyms_F77 |
15645 |
|
|
15646 |
|
# ### END LIBTOOL TAG CONFIG: $tagname |
15647 |
|
|
15648 |
|
__EOF__ |
15649 |
|
|
15650 |
|
|
15651 |
|
else |
15652 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
15653 |
|
# `config.status --recheck' to rerun these tests and create the |
15654 |
|
# libtool script then. |
15655 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
15656 |
|
if test -f "$ltmain_in"; then |
15657 |
|
test -f Makefile && make "$ltmain" |
15658 |
|
fi |
15659 |
|
fi |
15660 |
|
|
15661 |
|
|
15662 |
|
ac_ext=c |
15663 |
|
ac_cpp='$CPP $CPPFLAGS' |
15664 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15665 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
15666 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
15667 |
|
|
15668 |
|
CC="$lt_save_CC" |
15669 |
|
|
15670 |
|
else |
15671 |
|
tagname="" |
15672 |
|
fi |
15673 |
|
;; |
15674 |
|
|
15675 |
|
GCJ) |
15676 |
|
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
15677 |
|
|
15678 |
|
|
15679 |
|
|
15680 |
|
# Source file extension for Java test sources. |
15681 |
|
ac_ext=java |
15682 |
|
|
15683 |
|
# Object file extension for compiled Java test sources. |
15684 |
|
objext=o |
15685 |
|
objext_GCJ=$objext |
15686 |
|
|
15687 |
|
# Code to be used in simple compile tests |
15688 |
|
lt_simple_compile_test_code="class foo {}\n" |
15689 |
|
|
15690 |
|
# Code to be used in simple link tests |
15691 |
|
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' |
15692 |
|
|
15693 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
15694 |
|
|
15695 |
|
# If no C compiler was specified, use CC. |
15696 |
|
LTCC=${LTCC-"$CC"} |
15697 |
|
|
15698 |
|
# Allow CC to be a program name with arguments. |
15699 |
|
compiler=$CC |
15700 |
|
|
15701 |
|
|
15702 |
|
# Allow CC to be a program name with arguments. |
15703 |
|
lt_save_CC="$CC" |
15704 |
|
CC=${GCJ-"gcj"} |
15705 |
|
compiler=$CC |
15706 |
|
compiler_GCJ=$CC |
15707 |
|
|
15708 |
|
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
15709 |
|
archive_cmds_need_lc_GCJ=no |
15710 |
|
|
15711 |
|
|
15712 |
|
lt_prog_compiler_no_builtin_flag_GCJ= |
15713 |
|
|
15714 |
|
if test "$GCC" = yes; then |
15715 |
|
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
15716 |
|
|
15717 |
|
|
15718 |
|
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
15719 |
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
15720 |
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
15721 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
15722 |
|
else |
15723 |
|
lt_cv_prog_compiler_rtti_exceptions=no |
15724 |
|
ac_outfile=conftest.$ac_objext |
15725 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15726 |
|
lt_compiler_flag="-fno-rtti -fno-exceptions" |
15727 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
15728 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
15729 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
15730 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
15731 |
|
# The option is referenced via a variable to avoid confusing sed. |
15732 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
15733 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
15734 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15735 |
|
-e 's:$: $lt_compiler_flag:'` |
15736 |
|
(eval echo "\"\$as_me:15736: $lt_compile\"" >&5) |
15737 |
|
(eval "$lt_compile" 2>conftest.err) |
15738 |
|
ac_status=$? |
15739 |
|
cat conftest.err >&5 |
15740 |
|
echo "$as_me:15740: \$? = $ac_status" >&5 |
15741 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
15742 |
|
# The compiler can only warn and ignore the option if not recognized |
15743 |
|
# So say no if there are warnings |
15744 |
|
if test ! -s conftest.err; then |
15745 |
|
lt_cv_prog_compiler_rtti_exceptions=yes |
15746 |
|
fi |
15747 |
|
fi |
15748 |
|
$rm conftest* |
15749 |
|
|
15750 |
|
fi |
15751 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
15752 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
15753 |
|
|
15754 |
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
15755 |
|
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
15756 |
|
else |
15757 |
|
: |
15758 |
|
fi |
15759 |
|
|
15760 |
|
fi |
15761 |
|
|
15762 |
|
lt_prog_compiler_wl_GCJ= |
15763 |
|
lt_prog_compiler_pic_GCJ= |
15764 |
|
lt_prog_compiler_static_GCJ= |
15765 |
|
|
15766 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
15767 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
15768 |
|
|
15769 |
|
if test "$GCC" = yes; then |
15770 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15771 |
|
lt_prog_compiler_static_GCJ='-static' |
15772 |
|
|
15773 |
|
case $host_os in |
15774 |
|
aix*) |
15775 |
|
# All AIX code is PIC. |
15776 |
|
if test "$host_cpu" = ia64; then |
15777 |
|
# AIX 5 now supports IA64 processor |
15778 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15779 |
|
fi |
15780 |
|
;; |
15781 |
|
|
15782 |
|
amigaos*) |
15783 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
15784 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
15785 |
|
# like `-m68040'. |
15786 |
|
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
15787 |
|
;; |
15788 |
|
|
15789 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
15790 |
|
# PIC is the default for these OSes. |
15791 |
|
;; |
15792 |
|
|
15793 |
|
mingw* | pw32* | os2*) |
15794 |
|
# This hack is so that the source file can tell whether it is being |
15795 |
|
# built for inclusion in a dll (and should export symbols for example). |
15796 |
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15797 |
|
;; |
15798 |
|
|
15799 |
|
darwin* | rhapsody*) |
15800 |
|
# PIC is the default on this platform |
15801 |
|
# Common symbols not allowed in MH_DYLIB files |
15802 |
|
lt_prog_compiler_pic_GCJ='-fno-common' |
15803 |
|
;; |
15804 |
|
|
15805 |
|
msdosdjgpp*) |
15806 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
15807 |
|
# on systems that don't support them. |
15808 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
15809 |
|
enable_shared=no |
15810 |
|
;; |
15811 |
|
|
15812 |
|
sysv4*MP*) |
15813 |
|
if test -d /usr/nec; then |
15814 |
|
lt_prog_compiler_pic_GCJ=-Kconform_pic |
15815 |
|
fi |
15816 |
|
;; |
15817 |
|
|
15818 |
|
hpux*) |
15819 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15820 |
|
# not for PA HP-UX. |
15821 |
|
case "$host_cpu" in |
15822 |
|
hppa*64*|ia64*) |
15823 |
|
# +Z the default |
15824 |
|
;; |
15825 |
|
*) |
15826 |
|
lt_prog_compiler_pic_GCJ='-fPIC' |
15827 |
|
;; |
15828 |
|
esac |
15829 |
|
;; |
15830 |
|
|
15831 |
|
*) |
15832 |
|
lt_prog_compiler_pic_GCJ='-fPIC' |
15833 |
|
;; |
15834 |
|
esac |
15835 |
|
else |
15836 |
|
# PORTME Check for flag to pass linker flags through the system compiler. |
15837 |
|
case $host_os in |
15838 |
|
aix*) |
15839 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15840 |
|
if test "$host_cpu" = ia64; then |
15841 |
|
# AIX 5 now supports IA64 processor |
15842 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15843 |
|
else |
15844 |
|
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
15845 |
|
fi |
15846 |
|
;; |
15847 |
|
|
15848 |
|
mingw* | pw32* | os2*) |
15849 |
|
# This hack is so that the source file can tell whether it is being |
15850 |
|
# built for inclusion in a dll (and should export symbols for example). |
15851 |
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
15852 |
|
;; |
15853 |
|
|
15854 |
|
hpux9* | hpux10* | hpux11*) |
15855 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15856 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
15857 |
|
# not for PA HP-UX. |
15858 |
|
case "$host_cpu" in |
15859 |
|
hppa*64*|ia64*) |
15860 |
|
# +Z the default |
15861 |
|
;; |
15862 |
|
*) |
15863 |
|
lt_prog_compiler_pic_GCJ='+Z' |
15864 |
|
;; |
15865 |
|
esac |
15866 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
15867 |
|
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
15868 |
|
;; |
15869 |
|
|
15870 |
|
irix5* | irix6* | nonstopux*) |
15871 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15872 |
|
# PIC (with -KPIC) is the default. |
15873 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
15874 |
|
;; |
15875 |
|
|
15876 |
|
newsos6) |
15877 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15878 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15879 |
|
;; |
15880 |
|
|
15881 |
|
linux*) |
15882 |
|
case $CC in |
15883 |
|
icc* | ecc*) |
15884 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15885 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15886 |
|
lt_prog_compiler_static_GCJ='-static' |
15887 |
|
;; |
15888 |
|
ccc*) |
15889 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15890 |
|
# All Alpha code is PIC. |
15891 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
15892 |
|
;; |
15893 |
|
esac |
15894 |
|
;; |
15895 |
|
|
15896 |
|
osf3* | osf4* | osf5*) |
15897 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15898 |
|
# All OSF/1 code is PIC. |
15899 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
15900 |
|
;; |
15901 |
|
|
15902 |
|
sco3.2v5*) |
15903 |
|
lt_prog_compiler_pic_GCJ='-Kpic' |
15904 |
|
lt_prog_compiler_static_GCJ='-dn' |
15905 |
|
;; |
15906 |
|
|
15907 |
|
solaris*) |
15908 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15909 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15910 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15911 |
|
;; |
15912 |
|
|
15913 |
|
sunos4*) |
15914 |
|
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
15915 |
|
lt_prog_compiler_pic_GCJ='-PIC' |
15916 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15917 |
|
;; |
15918 |
|
|
15919 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
15920 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
15921 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
15922 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15923 |
|
;; |
15924 |
|
|
15925 |
|
sysv4*MP*) |
15926 |
|
if test -d /usr/nec ;then |
15927 |
|
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
15928 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15929 |
|
fi |
15930 |
|
;; |
15931 |
|
|
15932 |
|
uts4*) |
15933 |
|
lt_prog_compiler_pic_GCJ='-pic' |
15934 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
15935 |
|
;; |
15936 |
|
|
15937 |
|
*) |
15938 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
15939 |
|
;; |
15940 |
|
esac |
15941 |
|
fi |
15942 |
|
|
15943 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
15944 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
15945 |
|
|
15946 |
|
# |
15947 |
|
# Check to make sure the PIC flag actually works. |
15948 |
|
# |
15949 |
|
if test -n "$lt_prog_compiler_pic_GCJ"; then |
15950 |
|
|
15951 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
15952 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
15953 |
|
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
15954 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
15955 |
|
else |
15956 |
|
lt_prog_compiler_pic_works_GCJ=no |
15957 |
|
ac_outfile=conftest.$ac_objext |
15958 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15959 |
|
lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
15960 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
15961 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
15962 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
15963 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
15964 |
|
# The option is referenced via a variable to avoid confusing sed. |
15965 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
15966 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
15967 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15968 |
|
-e 's:$: $lt_compiler_flag:'` |
15969 |
|
(eval echo "\"\$as_me:15969: $lt_compile\"" >&5) |
15970 |
|
(eval "$lt_compile" 2>conftest.err) |
15971 |
|
ac_status=$? |
15972 |
|
cat conftest.err >&5 |
15973 |
|
echo "$as_me:15973: \$? = $ac_status" >&5 |
15974 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
15975 |
|
# The compiler can only warn and ignore the option if not recognized |
15976 |
|
# So say no if there are warnings |
15977 |
|
if test ! -s conftest.err; then |
15978 |
|
lt_prog_compiler_pic_works_GCJ=yes |
15979 |
|
fi |
15980 |
|
fi |
15981 |
|
$rm conftest* |
15982 |
|
|
15983 |
|
fi |
15984 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
15985 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
15986 |
|
|
15987 |
|
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
15988 |
|
case $lt_prog_compiler_pic_GCJ in |
15989 |
|
"" | " "*) ;; |
15990 |
|
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
15991 |
|
esac |
15992 |
|
else |
15993 |
|
lt_prog_compiler_pic_GCJ= |
15994 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
15995 |
|
fi |
15996 |
|
|
15997 |
|
fi |
15998 |
|
case "$host_os" in |
15999 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
16000 |
|
*djgpp*) |
16001 |
|
lt_prog_compiler_pic_GCJ= |
16002 |
|
;; |
16003 |
|
*) |
16004 |
|
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16005 |
|
;; |
16006 |
|
esac |
16007 |
|
|
16008 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16009 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16010 |
|
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16011 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
16012 |
|
else |
16013 |
|
lt_cv_prog_compiler_c_o_GCJ=no |
16014 |
|
$rm -r conftest 2>/dev/null |
16015 |
|
mkdir conftest |
16016 |
|
cd conftest |
16017 |
|
mkdir out |
16018 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16019 |
|
|
16020 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
16021 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
16022 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
16023 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
16024 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
16025 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
16026 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16027 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16028 |
|
-e 's:$: $lt_compiler_flag:'` |
16029 |
|
(eval echo "\"\$as_me:16029: $lt_compile\"" >&5) |
16030 |
|
(eval "$lt_compile" 2>out/conftest.err) |
16031 |
|
ac_status=$? |
16032 |
|
cat out/conftest.err >&5 |
16033 |
|
echo "$as_me:16033: \$? = $ac_status" >&5 |
16034 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16035 |
|
then |
16036 |
|
# The compiler can only warn and ignore the option if not recognized |
16037 |
|
# So say no if there are warnings |
16038 |
|
if test ! -s out/conftest.err; then |
16039 |
|
lt_cv_prog_compiler_c_o_GCJ=yes |
16040 |
|
fi |
16041 |
|
fi |
16042 |
|
chmod u+w . |
16043 |
|
$rm conftest* |
16044 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
16045 |
|
# template instantiation |
16046 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16047 |
|
$rm out/* && rmdir out |
16048 |
|
cd .. |
16049 |
|
rmdir conftest |
16050 |
|
$rm conftest* |
16051 |
|
|
16052 |
|
fi |
16053 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16054 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16055 |
|
|
16056 |
|
|
16057 |
|
hard_links="nottested" |
16058 |
|
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16059 |
|
# do not overwrite the value of need_locks provided by the user |
16060 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16061 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16062 |
|
hard_links=yes |
16063 |
|
$rm conftest* |
16064 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16065 |
|
touch conftest.a |
16066 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
16067 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16068 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
16069 |
|
echo "${ECHO_T}$hard_links" >&6 |
16070 |
|
if test "$hard_links" = no; then |
16071 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16072 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16073 |
|
need_locks=warn |
16074 |
|
fi |
16075 |
|
else |
16076 |
|
need_locks=no |
16077 |
|
fi |
16078 |
|
|
16079 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16080 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16081 |
|
|
16082 |
|
runpath_var= |
16083 |
|
allow_undefined_flag_GCJ= |
16084 |
|
enable_shared_with_static_runtimes_GCJ=no |
16085 |
|
archive_cmds_GCJ= |
16086 |
|
archive_expsym_cmds_GCJ= |
16087 |
|
old_archive_From_new_cmds_GCJ= |
16088 |
|
old_archive_from_expsyms_cmds_GCJ= |
16089 |
|
export_dynamic_flag_spec_GCJ= |
16090 |
|
whole_archive_flag_spec_GCJ= |
16091 |
|
thread_safe_flag_spec_GCJ= |
16092 |
|
hardcode_libdir_flag_spec_GCJ= |
16093 |
|
hardcode_libdir_flag_spec_ld_GCJ= |
16094 |
|
hardcode_libdir_separator_GCJ= |
16095 |
|
hardcode_direct_GCJ=no |
16096 |
|
hardcode_minus_L_GCJ=no |
16097 |
|
hardcode_shlibpath_var_GCJ=unsupported |
16098 |
|
link_all_deplibs_GCJ=unknown |
16099 |
|
hardcode_automatic_GCJ=no |
16100 |
|
module_cmds_GCJ= |
16101 |
|
module_expsym_cmds_GCJ= |
16102 |
|
always_export_symbols_GCJ=no |
16103 |
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16104 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
16105 |
|
# included in the symbol list |
16106 |
|
include_expsyms_GCJ= |
16107 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
16108 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
16109 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16110 |
|
# as well as any symbol that contains `d'. |
16111 |
|
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16112 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16113 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
16114 |
|
# the symbol is explicitly referenced. Since portable code cannot |
16115 |
|
# rely on this symbol name, it's probably fine to never include it in |
16116 |
|
# preloaded symbol tables. |
16117 |
|
extract_expsyms_cmds= |
16118 |
|
|
16119 |
|
case $host_os in |
16120 |
|
cygwin* | mingw* | pw32*) |
16121 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
16122 |
|
# When not using gcc, we currently assume that we are using |
16123 |
|
# Microsoft Visual C++. |
16124 |
|
if test "$GCC" != yes; then |
16125 |
|
with_gnu_ld=no |
16126 |
|
fi |
16127 |
|
;; |
16128 |
|
openbsd*) |
16129 |
|
with_gnu_ld=no |
16130 |
|
;; |
16131 |
|
esac |
16132 |
|
|
16133 |
|
ld_shlibs_GCJ=yes |
16134 |
|
if test "$with_gnu_ld" = yes; then |
16135 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
16136 |
|
wlarc='${wl}' |
16137 |
|
|
16138 |
|
# See if GNU ld supports shared libraries. |
16139 |
|
case $host_os in |
16140 |
|
aix3* | aix4* | aix5*) |
16141 |
|
# On AIX/PPC, the GNU linker is very broken |
16142 |
|
if test "$host_cpu" != ia64; then |
16143 |
|
ld_shlibs_GCJ=no |
16144 |
|
cat <<EOF 1>&2 |
16145 |
|
|
16146 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16147 |
|
*** to be unable to reliably create shared libraries on AIX. |
16148 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
16149 |
|
*** really care for shared libraries, you may want to modify your PATH |
16150 |
|
*** so that a non-GNU linker is found, and then restart. |
16151 |
|
|
16152 |
|
EOF |
16153 |
|
fi |
16154 |
|
;; |
16155 |
|
|
16156 |
|
amigaos*) |
16157 |
|
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
16158 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16159 |
|
hardcode_minus_L_GCJ=yes |
16160 |
|
|
16161 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16162 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
16163 |
|
# to version 4, is to share data among multiple programs linked |
16164 |
|
# with the same dynamic library. Since this doesn't match the |
16165 |
|
# behavior of shared libraries on other platforms, we can't use |
16166 |
|
# them. |
16167 |
|
ld_shlibs_GCJ=no |
16168 |
|
;; |
16169 |
|
|
16170 |
|
beos*) |
16171 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16172 |
|
allow_undefined_flag_GCJ=unsupported |
16173 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16174 |
|
# support --undefined. This deserves some investigation. FIXME |
16175 |
|
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16176 |
|
else |
16177 |
|
ld_shlibs_GCJ=no |
16178 |
|
fi |
16179 |
|
;; |
16180 |
|
|
16181 |
|
cygwin* | mingw* | pw32*) |
16182 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16183 |
|
# as there is no search path for DLLs. |
16184 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16185 |
|
allow_undefined_flag_GCJ=unsupported |
16186 |
|
always_export_symbols_GCJ=no |
16187 |
|
enable_shared_with_static_runtimes_GCJ=yes |
16188 |
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16189 |
|
|
16190 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16191 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16192 |
|
# If the export-symbols file already is a .def file (1st line |
16193 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
16194 |
|
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16195 |
|
cp $export_symbols $output_objdir/$soname.def; |
16196 |
|
else |
16197 |
|
echo EXPORTS > $output_objdir/$soname.def; |
16198 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
16199 |
|
fi~ |
16200 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16201 |
|
else |
16202 |
|
ld_shlibs=no |
16203 |
|
fi |
16204 |
|
;; |
16205 |
|
|
16206 |
|
netbsd*) |
16207 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16208 |
|
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16209 |
|
wlarc= |
16210 |
|
else |
16211 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16212 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16213 |
|
fi |
16214 |
|
;; |
16215 |
|
|
16216 |
|
solaris* | sysv5*) |
16217 |
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16218 |
|
ld_shlibs_GCJ=no |
16219 |
|
cat <<EOF 1>&2 |
16220 |
|
|
16221 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16222 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
16223 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
16224 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
16225 |
|
*** your PATH or compiler configuration so that the native linker is |
16226 |
|
*** used, and then restart. |
16227 |
|
|
16228 |
|
EOF |
16229 |
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16230 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16231 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16232 |
|
else |
16233 |
|
ld_shlibs_GCJ=no |
16234 |
|
fi |
16235 |
|
;; |
16236 |
|
|
16237 |
|
sunos4*) |
16238 |
|
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16239 |
|
wlarc= |
16240 |
|
hardcode_direct_GCJ=yes |
16241 |
|
hardcode_shlibpath_var_GCJ=no |
16242 |
|
;; |
16243 |
|
|
16244 |
|
linux*) |
16245 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16246 |
|
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16247 |
|
archive_cmds_GCJ="$tmp_archive_cmds" |
16248 |
|
supports_anon_versioning=no |
16249 |
|
case `$LD -v 2>/dev/null` in |
16250 |
|
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16251 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16252 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16253 |
|
*\ 2.11.*) ;; # other 2.11 versions |
16254 |
|
*) supports_anon_versioning=yes ;; |
16255 |
|
esac |
16256 |
|
if test $supports_anon_versioning = yes; then |
16257 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16258 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16259 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
16260 |
|
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16261 |
|
else |
16262 |
|
archive_expsym_cmds_GCJ="$tmp_archive_cmds" |
16263 |
|
fi |
16264 |
|
else |
16265 |
|
ld_shlibs_GCJ=no |
16266 |
|
fi |
16267 |
|
;; |
16268 |
|
|
16269 |
|
*) |
16270 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16271 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16272 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16273 |
|
else |
16274 |
|
ld_shlibs_GCJ=no |
16275 |
|
fi |
16276 |
|
;; |
16277 |
|
esac |
16278 |
|
|
16279 |
|
if test "$ld_shlibs_GCJ" = yes; then |
16280 |
|
runpath_var=LD_RUN_PATH |
16281 |
|
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16282 |
|
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16283 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
16284 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16285 |
|
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16286 |
|
else |
16287 |
|
whole_archive_flag_spec_GCJ= |
16288 |
|
fi |
16289 |
|
fi |
16290 |
|
else |
16291 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
16292 |
|
case $host_os in |
16293 |
|
aix3*) |
16294 |
|
allow_undefined_flag_GCJ=unsupported |
16295 |
|
always_export_symbols_GCJ=yes |
16296 |
|
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
16297 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
16298 |
|
# are no directories specified by -L. |
16299 |
|
hardcode_minus_L_GCJ=yes |
16300 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
16301 |
|
# Neither direct hardcoding nor static linking is supported with a |
16302 |
|
# broken collect2. |
16303 |
|
hardcode_direct_GCJ=unsupported |
16304 |
|
fi |
16305 |
|
;; |
16306 |
|
|
16307 |
|
aix4* | aix5*) |
16308 |
|
if test "$host_cpu" = ia64; then |
16309 |
|
# On IA64, the linker does run time linking by default, so we don't |
16310 |
|
# have to do anything special. |
16311 |
|
aix_use_runtimelinking=no |
16312 |
|
exp_sym_flag='-Bexport' |
16313 |
|
no_entry_flag="" |
16314 |
|
else |
16315 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
16316 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
16317 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16318 |
|
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
16319 |
|
else |
16320 |
|
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
16321 |
|
fi |
16322 |
|
aix_use_runtimelinking=no |
16323 |
|
|
16324 |
|
# Test if we are trying to use run time linking or normal |
16325 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16326 |
|
# need to do runtime linking. |
16327 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16328 |
|
for ld_flag in $LDFLAGS; do |
16329 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16330 |
|
aix_use_runtimelinking=yes |
16331 |
|
break |
16332 |
|
fi |
16333 |
|
done |
16334 |
|
esac |
16335 |
|
|
16336 |
|
exp_sym_flag='-bexport' |
16337 |
|
no_entry_flag='-bnoentry' |
16338 |
|
fi |
16339 |
|
|
16340 |
|
# When large executables or shared objects are built, AIX ld can |
16341 |
|
# have problems creating the table of contents. If linking a library |
16342 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
16343 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16344 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16345 |
|
|
16346 |
|
archive_cmds_GCJ='' |
16347 |
|
hardcode_direct_GCJ=yes |
16348 |
|
hardcode_libdir_separator_GCJ=':' |
16349 |
|
link_all_deplibs_GCJ=yes |
16350 |
|
|
16351 |
|
if test "$GCC" = yes; then |
16352 |
|
case $host_os in aix4.012|aix4.012.*) |
16353 |
|
# We only want to do this on AIX 4.2 and lower, the check |
16354 |
|
# below for broken collect2 doesn't work under 4.3+ |
16355 |
|
collect2name=`${CC} -print-prog-name=collect2` |
16356 |
|
if test -f "$collect2name" && \ |
16357 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
16358 |
|
then |
16359 |
|
# We have reworked collect2 |
16360 |
|
hardcode_direct_GCJ=yes |
16361 |
|
else |
16362 |
|
# We have old collect2 |
16363 |
|
hardcode_direct_GCJ=unsupported |
16364 |
|
# It fails to find uninstalled libraries when the uninstalled |
16365 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
16366 |
|
# to unsupported forces relinking |
16367 |
|
hardcode_minus_L_GCJ=yes |
16368 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16369 |
|
hardcode_libdir_separator_GCJ= |
16370 |
|
fi |
16371 |
|
esac |
16372 |
|
shared_flag='-shared' |
16373 |
|
else |
16374 |
|
# not using gcc |
16375 |
|
if test "$host_cpu" = ia64; then |
16376 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16377 |
|
# chokes on -Wl,-G. The following line is correct: |
16378 |
|
shared_flag='-G' |
16379 |
|
else |
16380 |
|
if test "$aix_use_runtimelinking" = yes; then |
16381 |
|
shared_flag='${wl}-G' |
16382 |
|
else |
16383 |
|
shared_flag='${wl}-bM:SRE' |
16384 |
|
fi |
16385 |
|
fi |
16386 |
|
fi |
16387 |
|
|
16388 |
|
# It seems that -bexpall does not export symbols beginning with |
16389 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
16390 |
|
always_export_symbols_GCJ=yes |
16391 |
|
if test "$aix_use_runtimelinking" = yes; then |
16392 |
|
# Warning - without using the other runtime loading flags (-brtl), |
16393 |
|
# -berok will link without error, but may produce a broken library. |
16394 |
|
allow_undefined_flag_GCJ='-berok' |
16395 |
|
# Determine the default libpath from the value encoded in an empty executable. |
16396 |
|
cat >conftest.$ac_ext <<_ACEOF |
16397 |
|
/* confdefs.h. */ |
16398 |
|
_ACEOF |
16399 |
|
cat confdefs.h >>conftest.$ac_ext |
16400 |
|
cat >>conftest.$ac_ext <<_ACEOF |
16401 |
|
/* end confdefs.h. */ |
16402 |
|
|
16403 |
|
int |
16404 |
|
main () |
16405 |
|
{ |
16406 |
|
|
16407 |
|
; |
16408 |
|
return 0; |
16409 |
|
} |
16410 |
|
_ACEOF |
16411 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
16412 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16413 |
|
(eval $ac_link) 2>conftest.er1 |
16414 |
|
ac_status=$? |
16415 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
16416 |
|
rm -f conftest.er1 |
16417 |
|
cat conftest.err >&5 |
16418 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16419 |
|
(exit $ac_status); } && |
16420 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
16421 |
|
|| test ! -s conftest.err' |
16422 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16423 |
|
(eval $ac_try) 2>&5 |
16424 |
|
ac_status=$? |
16425 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16426 |
|
(exit $ac_status); }; } && |
16427 |
|
{ ac_try='test -s conftest$ac_exeext' |
16428 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16429 |
|
(eval $ac_try) 2>&5 |
16430 |
|
ac_status=$? |
16431 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16432 |
|
(exit $ac_status); }; }; then |
16433 |
|
|
16434 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16435 |
|
}'` |
16436 |
|
# Check for a 64-bit object if we didn't find anything. |
16437 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16438 |
|
}'`; fi |
16439 |
|
else |
16440 |
|
echo "$as_me: failed program was:" >&5 |
16441 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
16442 |
|
|
16443 |
|
fi |
16444 |
|
rm -f conftest.err conftest.$ac_objext \ |
16445 |
|
conftest$ac_exeext conftest.$ac_ext |
16446 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16447 |
|
|
16448 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16449 |
|
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
16450 |
|
else |
16451 |
|
if test "$host_cpu" = ia64; then |
16452 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16453 |
|
allow_undefined_flag_GCJ="-z nodefs" |
16454 |
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
16455 |
|
else |
16456 |
|
# Determine the default libpath from the value encoded in an empty executable. |
16457 |
|
cat >conftest.$ac_ext <<_ACEOF |
16458 |
|
/* confdefs.h. */ |
16459 |
|
_ACEOF |
16460 |
|
cat confdefs.h >>conftest.$ac_ext |
16461 |
|
cat >>conftest.$ac_ext <<_ACEOF |
16462 |
|
/* end confdefs.h. */ |
16463 |
|
|
16464 |
|
int |
16465 |
|
main () |
16466 |
|
{ |
16467 |
|
|
16468 |
|
; |
16469 |
|
return 0; |
16470 |
|
} |
16471 |
|
_ACEOF |
16472 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
16473 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16474 |
|
(eval $ac_link) 2>conftest.er1 |
16475 |
|
ac_status=$? |
16476 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
16477 |
|
rm -f conftest.er1 |
16478 |
|
cat conftest.err >&5 |
16479 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16480 |
|
(exit $ac_status); } && |
16481 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
16482 |
|
|| test ! -s conftest.err' |
16483 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16484 |
|
(eval $ac_try) 2>&5 |
16485 |
|
ac_status=$? |
16486 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16487 |
|
(exit $ac_status); }; } && |
16488 |
|
{ ac_try='test -s conftest$ac_exeext' |
16489 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16490 |
|
(eval $ac_try) 2>&5 |
16491 |
|
ac_status=$? |
16492 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16493 |
|
(exit $ac_status); }; }; then |
16494 |
|
|
16495 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16496 |
|
}'` |
16497 |
|
# Check for a 64-bit object if we didn't find anything. |
16498 |
|
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16499 |
|
}'`; fi |
16500 |
|
else |
16501 |
|
echo "$as_me: failed program was:" >&5 |
16502 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
16503 |
|
|
16504 |
|
fi |
16505 |
|
rm -f conftest.err conftest.$ac_objext \ |
16506 |
|
conftest$ac_exeext conftest.$ac_ext |
16507 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16508 |
|
|
16509 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16510 |
|
# Warning - without using the other run time loading flags, |
16511 |
|
# -berok will link without error, but may produce a broken library. |
16512 |
|
no_undefined_flag_GCJ=' ${wl}-bernotok' |
16513 |
|
allow_undefined_flag_GCJ=' ${wl}-berok' |
16514 |
|
# -bexpall does not export symbols beginning with underscore (_) |
16515 |
|
always_export_symbols_GCJ=yes |
16516 |
|
# Exported symbols can be pulled into shared objects from archives |
16517 |
|
whole_archive_flag_spec_GCJ=' ' |
16518 |
|
archive_cmds_need_lc_GCJ=yes |
16519 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
16520 |
|
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
16521 |
|
fi |
16522 |
|
fi |
16523 |
|
;; |
16524 |
|
|
16525 |
|
amigaos*) |
16526 |
|
archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
16527 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16528 |
|
hardcode_minus_L_GCJ=yes |
16529 |
|
# see comment about different semantics on the GNU ld section |
16530 |
|
ld_shlibs_GCJ=no |
16531 |
|
;; |
16532 |
|
|
16533 |
|
bsdi4*) |
16534 |
|
export_dynamic_flag_spec_GCJ=-rdynamic |
16535 |
|
;; |
16536 |
|
|
16537 |
|
cygwin* | mingw* | pw32*) |
16538 |
|
# When not using gcc, we currently assume that we are using |
16539 |
|
# Microsoft Visual C++. |
16540 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
16541 |
|
# no search path for DLLs. |
16542 |
|
hardcode_libdir_flag_spec_GCJ=' ' |
16543 |
|
allow_undefined_flag_GCJ=unsupported |
16544 |
|
# Tell ltmain to make .lib files, not .a files. |
16545 |
|
libext=lib |
16546 |
|
# Tell ltmain to make .dll files, not .so files. |
16547 |
|
shrext_cmds=".dll" |
16548 |
|
# FIXME: Setting linknames here is a bad hack. |
16549 |
|
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
16550 |
|
# The linker will automatically build a .lib file if we build a DLL. |
16551 |
|
old_archive_From_new_cmds_GCJ='true' |
16552 |
|
# FIXME: Should let the user specify the lib program. |
16553 |
|
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
16554 |
|
fix_srcfile_path='`cygpath -w "$srcfile"`' |
16555 |
|
enable_shared_with_static_runtimes_GCJ=yes |
16556 |
|
;; |
16557 |
|
|
16558 |
|
darwin* | rhapsody*) |
16559 |
|
if test "$GXX" = yes ; then |
16560 |
|
archive_cmds_need_lc_GCJ=no |
16561 |
|
case "$host_os" in |
16562 |
|
rhapsody* | darwin1.[012]) |
16563 |
|
allow_undefined_flag_GCJ='-undefined suppress' |
16564 |
|
;; |
16565 |
|
*) # Darwin 1.3 on |
16566 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
16567 |
|
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
16568 |
|
else |
16569 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
16570 |
|
10.[012]) |
16571 |
|
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' |
16572 |
|
;; |
16573 |
|
10.*) |
16574 |
|
allow_undefined_flag_GCJ='-undefined dynamic_lookup' |
16575 |
|
;; |
16576 |
|
esac |
16577 |
|
fi |
16578 |
|
;; |
16579 |
|
esac |
16580 |
|
lt_int_apple_cc_single_mod=no |
16581 |
|
output_verbose_link_cmd='echo' |
16582 |
|
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then |
16583 |
|
lt_int_apple_cc_single_mod=yes |
16584 |
|
fi |
16585 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
16586 |
|
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
16587 |
|
else |
16588 |
|
archive_cmds_GCJ='$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' |
16589 |
|
fi |
16590 |
|
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
16591 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
16592 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
16593 |
|
archive_expsym_cmds_GCJ='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}' |
16594 |
|
else |
16595 |
|
archive_expsym_cmds_GCJ='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}' |
16596 |
|
fi |
16597 |
|
module_expsym_cmds_GCJ='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}' |
16598 |
|
hardcode_direct_GCJ=no |
16599 |
|
hardcode_automatic_GCJ=yes |
16600 |
|
hardcode_shlibpath_var_GCJ=unsupported |
16601 |
|
whole_archive_flag_spec_GCJ='-all_load $convenience' |
16602 |
|
link_all_deplibs_GCJ=yes |
16603 |
|
else |
16604 |
|
ld_shlibs_GCJ=no |
16605 |
|
fi |
16606 |
|
;; |
16607 |
|
|
16608 |
|
dgux*) |
16609 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16610 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16611 |
|
hardcode_shlibpath_var_GCJ=no |
16612 |
|
;; |
16613 |
|
|
16614 |
|
freebsd1*) |
16615 |
|
ld_shlibs_GCJ=no |
16616 |
|
;; |
16617 |
|
|
16618 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
16619 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
16620 |
|
# does not break anything, and helps significantly (at the cost of a little |
16621 |
|
# extra space). |
16622 |
|
freebsd2.2*) |
16623 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
16624 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16625 |
|
hardcode_direct_GCJ=yes |
16626 |
|
hardcode_shlibpath_var_GCJ=no |
16627 |
|
;; |
16628 |
|
|
16629 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
16630 |
|
freebsd2*) |
16631 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16632 |
|
hardcode_direct_GCJ=yes |
16633 |
|
hardcode_minus_L_GCJ=yes |
16634 |
|
hardcode_shlibpath_var_GCJ=no |
16635 |
|
;; |
16636 |
|
|
16637 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
16638 |
|
freebsd* | kfreebsd*-gnu) |
16639 |
|
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16640 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16641 |
|
hardcode_direct_GCJ=yes |
16642 |
|
hardcode_shlibpath_var_GCJ=no |
16643 |
|
;; |
16644 |
|
|
16645 |
|
hpux9*) |
16646 |
|
if test "$GCC" = yes; then |
16647 |
|
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
16648 |
|
else |
16649 |
|
archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
16650 |
|
fi |
16651 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16652 |
|
hardcode_libdir_separator_GCJ=: |
16653 |
|
hardcode_direct_GCJ=yes |
16654 |
|
|
16655 |
|
# hardcode_minus_L: Not really in the search PATH, |
16656 |
|
# but as the default location of the library. |
16657 |
|
hardcode_minus_L_GCJ=yes |
16658 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
16659 |
|
;; |
16660 |
|
|
16661 |
|
hpux10* | hpux11*) |
16662 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
16663 |
|
case "$host_cpu" in |
16664 |
|
hppa*64*|ia64*) |
16665 |
|
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16666 |
|
;; |
16667 |
|
*) |
16668 |
|
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
16669 |
|
;; |
16670 |
|
esac |
16671 |
|
else |
16672 |
|
case "$host_cpu" in |
16673 |
|
hppa*64*|ia64*) |
16674 |
|
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
16675 |
|
;; |
16676 |
|
*) |
16677 |
|
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
16678 |
|
;; |
16679 |
|
esac |
16680 |
|
fi |
16681 |
|
if test "$with_gnu_ld" = no; then |
16682 |
|
case "$host_cpu" in |
16683 |
|
hppa*64*) |
16684 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16685 |
|
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
16686 |
|
hardcode_libdir_separator_GCJ=: |
16687 |
|
hardcode_direct_GCJ=no |
16688 |
|
hardcode_shlibpath_var_GCJ=no |
16689 |
|
;; |
16690 |
|
ia64*) |
16691 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16692 |
|
hardcode_direct_GCJ=no |
16693 |
|
hardcode_shlibpath_var_GCJ=no |
16694 |
|
|
16695 |
|
# hardcode_minus_L: Not really in the search PATH, |
16696 |
|
# but as the default location of the library. |
16697 |
|
hardcode_minus_L_GCJ=yes |
16698 |
|
;; |
16699 |
|
*) |
16700 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
16701 |
|
hardcode_libdir_separator_GCJ=: |
16702 |
|
hardcode_direct_GCJ=yes |
16703 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
16704 |
|
|
16705 |
|
# hardcode_minus_L: Not really in the search PATH, |
16706 |
|
# but as the default location of the library. |
16707 |
|
hardcode_minus_L_GCJ=yes |
16708 |
|
;; |
16709 |
|
esac |
16710 |
|
fi |
16711 |
|
;; |
16712 |
|
|
16713 |
|
irix5* | irix6* | nonstopux*) |
16714 |
|
if test "$GCC" = yes; then |
16715 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $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' |
16716 |
|
else |
16717 |
|
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
16718 |
|
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
16719 |
|
fi |
16720 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16721 |
|
hardcode_libdir_separator_GCJ=: |
16722 |
|
link_all_deplibs_GCJ=yes |
16723 |
|
;; |
16724 |
|
|
16725 |
|
netbsd*) |
16726 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16727 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
16728 |
|
else |
16729 |
|
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
16730 |
|
fi |
16731 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16732 |
|
hardcode_direct_GCJ=yes |
16733 |
|
hardcode_shlibpath_var_GCJ=no |
16734 |
|
;; |
16735 |
|
|
16736 |
|
newsos6) |
16737 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16738 |
|
hardcode_direct_GCJ=yes |
16739 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16740 |
|
hardcode_libdir_separator_GCJ=: |
16741 |
|
hardcode_shlibpath_var_GCJ=no |
16742 |
|
;; |
16743 |
|
|
16744 |
|
openbsd*) |
16745 |
|
hardcode_direct_GCJ=yes |
16746 |
|
hardcode_shlibpath_var_GCJ=no |
16747 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16748 |
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16749 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16750 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
16751 |
|
else |
16752 |
|
case $host_os in |
16753 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
16754 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16755 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16756 |
|
;; |
16757 |
|
*) |
16758 |
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
16759 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16760 |
|
;; |
16761 |
|
esac |
16762 |
|
fi |
16763 |
|
;; |
16764 |
|
|
16765 |
|
os2*) |
16766 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16767 |
|
hardcode_minus_L_GCJ=yes |
16768 |
|
allow_undefined_flag_GCJ=unsupported |
16769 |
|
archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
16770 |
|
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
16771 |
|
;; |
16772 |
|
|
16773 |
|
osf3*) |
16774 |
|
if test "$GCC" = yes; then |
16775 |
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16776 |
|
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
16777 |
|
else |
16778 |
|
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16779 |
|
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
16780 |
|
fi |
16781 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16782 |
|
hardcode_libdir_separator_GCJ=: |
16783 |
|
;; |
16784 |
|
|
16785 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
16786 |
|
if test "$GCC" = yes; then |
16787 |
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
16788 |
|
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' |
16789 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
16790 |
|
else |
16791 |
|
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
16792 |
|
archive_cmds_GCJ='$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' |
16793 |
|
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
16794 |
|
$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' |
16795 |
|
|
16796 |
|
# Both c and cxx compiler support -rpath directly |
16797 |
|
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
16798 |
|
fi |
16799 |
|
hardcode_libdir_separator_GCJ=: |
16800 |
|
;; |
16801 |
|
|
16802 |
|
sco3.2v5*) |
16803 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16804 |
|
hardcode_shlibpath_var_GCJ=no |
16805 |
|
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
16806 |
|
runpath_var=LD_RUN_PATH |
16807 |
|
hardcode_runpath_var=yes |
16808 |
|
;; |
16809 |
|
|
16810 |
|
solaris*) |
16811 |
|
no_undefined_flag_GCJ=' -z text' |
16812 |
|
if test "$GCC" = yes; then |
16813 |
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16814 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16815 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
16816 |
|
else |
16817 |
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16818 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16819 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16820 |
|
fi |
16821 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
16822 |
|
hardcode_shlibpath_var_GCJ=no |
16823 |
|
case $host_os in |
16824 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
16825 |
|
*) # Supported since Solaris 2.6 (maybe 2.5.1?) |
16826 |
|
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
16827 |
|
esac |
16828 |
|
link_all_deplibs_GCJ=yes |
16829 |
|
;; |
16830 |
|
|
16831 |
|
sunos4*) |
16832 |
|
if test "x$host_vendor" = xsequent; then |
16833 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
16834 |
|
# files that make .init and .fini sections work. |
16835 |
|
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
16836 |
|
else |
16837 |
|
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
16838 |
|
fi |
16839 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16840 |
|
hardcode_direct_GCJ=yes |
16841 |
|
hardcode_minus_L_GCJ=yes |
16842 |
|
hardcode_shlibpath_var_GCJ=no |
16843 |
|
;; |
16844 |
|
|
16845 |
|
sysv4) |
16846 |
|
case $host_vendor in |
16847 |
|
sni) |
16848 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16849 |
|
hardcode_direct_GCJ=yes # is this really true??? |
16850 |
|
;; |
16851 |
|
siemens) |
16852 |
|
## LD is ld it makes a PLAMLIB |
16853 |
|
## CC just makes a GrossModule. |
16854 |
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16855 |
|
reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
16856 |
|
hardcode_direct_GCJ=no |
16857 |
|
;; |
16858 |
|
motorola) |
16859 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16860 |
|
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
16861 |
|
;; |
16862 |
|
esac |
16863 |
|
runpath_var='LD_RUN_PATH' |
16864 |
|
hardcode_shlibpath_var_GCJ=no |
16865 |
|
;; |
16866 |
|
|
16867 |
|
sysv4.3*) |
16868 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16869 |
|
hardcode_shlibpath_var_GCJ=no |
16870 |
|
export_dynamic_flag_spec_GCJ='-Bexport' |
16871 |
|
;; |
16872 |
|
|
16873 |
|
sysv4*MP*) |
16874 |
|
if test -d /usr/nec; then |
16875 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16876 |
|
hardcode_shlibpath_var_GCJ=no |
16877 |
|
runpath_var=LD_RUN_PATH |
16878 |
|
hardcode_runpath_var=yes |
16879 |
|
ld_shlibs_GCJ=yes |
16880 |
|
fi |
16881 |
|
;; |
16882 |
|
|
16883 |
|
sysv4.2uw2*) |
16884 |
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
16885 |
|
hardcode_direct_GCJ=yes |
16886 |
|
hardcode_minus_L_GCJ=no |
16887 |
|
hardcode_shlibpath_var_GCJ=no |
16888 |
|
hardcode_runpath_var=yes |
16889 |
|
runpath_var=LD_RUN_PATH |
16890 |
|
;; |
16891 |
|
|
16892 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
16893 |
|
no_undefined_flag_GCJ='${wl}-z ${wl}text' |
16894 |
|
if test "$GCC" = yes; then |
16895 |
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16896 |
|
else |
16897 |
|
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
16898 |
|
fi |
16899 |
|
runpath_var='LD_RUN_PATH' |
16900 |
|
hardcode_shlibpath_var_GCJ=no |
16901 |
|
;; |
16902 |
|
|
16903 |
|
sysv5*) |
16904 |
|
no_undefined_flag_GCJ=' -z text' |
16905 |
|
# $CC -shared without GNU ld will not create a library from C++ |
16906 |
|
# object files and a static libstdc++, better avoid it by now |
16907 |
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16908 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
16909 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
16910 |
|
hardcode_libdir_flag_spec_GCJ= |
16911 |
|
hardcode_shlibpath_var_GCJ=no |
16912 |
|
runpath_var='LD_RUN_PATH' |
16913 |
|
;; |
16914 |
|
|
16915 |
|
uts4*) |
16916 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
16917 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16918 |
|
hardcode_shlibpath_var_GCJ=no |
16919 |
|
;; |
16920 |
|
|
16921 |
|
*) |
16922 |
|
ld_shlibs_GCJ=no |
16923 |
|
;; |
16924 |
|
esac |
16925 |
|
fi |
16926 |
|
|
16927 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
16928 |
|
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
16929 |
|
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
16930 |
|
|
16931 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
16932 |
|
if test "$GCC" = yes; then |
16933 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
16934 |
|
fi |
16935 |
|
|
16936 |
|
# |
16937 |
|
# Do we need to explicitly link libc? |
16938 |
|
# |
16939 |
|
case "x$archive_cmds_need_lc_GCJ" in |
16940 |
|
x|xyes) |
16941 |
|
# Assume -lc should be added |
16942 |
|
archive_cmds_need_lc_GCJ=yes |
16943 |
|
|
16944 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
16945 |
|
case $archive_cmds_GCJ in |
16946 |
|
*'~'*) |
16947 |
|
# FIXME: we may have to deal with multi-command sequences. |
16948 |
|
;; |
16949 |
|
'$CC '*) |
16950 |
|
# Test whether the compiler implicitly links with -lc since on some |
16951 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
16952 |
|
# to ld, don't add -lc before -lgcc. |
16953 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
16954 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
16955 |
|
$rm conftest* |
16956 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16957 |
|
|
16958 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
16959 |
|
(eval $ac_compile) 2>&5 |
16960 |
|
ac_status=$? |
16961 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16962 |
|
(exit $ac_status); } 2>conftest.err; then |
16963 |
|
soname=conftest |
16964 |
|
lib=conftest |
16965 |
|
libobjs=conftest.$ac_objext |
16966 |
|
deplibs= |
16967 |
|
wl=$lt_prog_compiler_wl_GCJ |
16968 |
|
compiler_flags=-v |
16969 |
|
linker_flags=-v |
16970 |
|
verstring= |
16971 |
|
output_objdir=. |
16972 |
|
libname=conftest |
16973 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
16974 |
|
allow_undefined_flag_GCJ= |
16975 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
16976 |
|
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
16977 |
|
ac_status=$? |
16978 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16979 |
|
(exit $ac_status); } |
16980 |
|
then |
16981 |
|
archive_cmds_need_lc_GCJ=no |
16982 |
|
else |
16983 |
|
archive_cmds_need_lc_GCJ=yes |
16984 |
|
fi |
16985 |
|
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
16986 |
|
else |
16987 |
|
cat conftest.err 1>&5 |
16988 |
|
fi |
16989 |
|
$rm conftest* |
16990 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
16991 |
|
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
16992 |
|
;; |
16993 |
|
esac |
16994 |
|
fi |
16995 |
|
;; |
16996 |
|
esac |
16997 |
|
|
16998 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
16999 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17000 |
|
library_names_spec= |
17001 |
|
libname_spec='lib$name' |
17002 |
|
soname_spec= |
17003 |
|
shrext_cmds=".so" |
17004 |
|
postinstall_cmds= |
17005 |
|
postuninstall_cmds= |
17006 |
|
finish_cmds= |
17007 |
|
finish_eval= |
17008 |
|
shlibpath_var= |
17009 |
|
shlibpath_overrides_runpath=unknown |
17010 |
|
version_type=none |
17011 |
|
dynamic_linker="$host_os ld.so" |
17012 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17013 |
|
if test "$GCC" = yes; then |
17014 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17015 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17016 |
|
# if the path contains ";" then we assume it to be the separator |
17017 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
17018 |
|
# assumed that no part of a normal pathname contains ";" but that should |
17019 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
17020 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17021 |
|
else |
17022 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17023 |
|
fi |
17024 |
|
else |
17025 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17026 |
|
fi |
17027 |
|
need_lib_prefix=unknown |
17028 |
|
hardcode_into_libs=no |
17029 |
|
|
17030 |
|
# when you set need_version to no, make sure it does not cause -set_version |
17031 |
|
# flags to be left without arguments |
17032 |
|
need_version=unknown |
17033 |
|
|
17034 |
|
case $host_os in |
17035 |
|
aix3*) |
17036 |
|
version_type=linux |
17037 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17038 |
|
shlibpath_var=LIBPATH |
17039 |
|
|
17040 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
17041 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17042 |
|
;; |
17043 |
|
|
17044 |
|
aix4* | aix5*) |
17045 |
|
version_type=linux |
17046 |
|
need_lib_prefix=no |
17047 |
|
need_version=no |
17048 |
|
hardcode_into_libs=yes |
17049 |
|
if test "$host_cpu" = ia64; then |
17050 |
|
# AIX 5 supports IA64 |
17051 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17052 |
|
shlibpath_var=LD_LIBRARY_PATH |
17053 |
|
else |
17054 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
17055 |
|
# for dependence libraries. The import file would start with |
17056 |
|
# the line `#! .'. This would cause the generated library to |
17057 |
|
# depend on `.', always an invalid library. This was fixed in |
17058 |
|
# development snapshots of GCC prior to 3.0. |
17059 |
|
case $host_os in |
17060 |
|
aix4 | aix4.[01] | aix4.[01].*) |
17061 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17062 |
|
echo ' yes ' |
17063 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17064 |
|
: |
17065 |
|
else |
17066 |
|
can_build_shared=no |
17067 |
|
fi |
17068 |
|
;; |
17069 |
|
esac |
17070 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17071 |
|
# soname into executable. Probably we can add versioning support to |
17072 |
|
# collect2, so additional links can be useful in future. |
17073 |
|
if test "$aix_use_runtimelinking" = yes; then |
17074 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17075 |
|
# instead of lib<name>.a to let people know that these are not |
17076 |
|
# typical AIX shared libraries. |
17077 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17078 |
|
else |
17079 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
17080 |
|
# and later when we are not doing run time linking. |
17081 |
|
library_names_spec='${libname}${release}.a $libname.a' |
17082 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17083 |
|
fi |
17084 |
|
shlibpath_var=LIBPATH |
17085 |
|
fi |
17086 |
|
;; |
17087 |
|
|
17088 |
|
amigaos*) |
17089 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
17090 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
17091 |
|
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' |
17092 |
|
;; |
17093 |
|
|
17094 |
|
beos*) |
17095 |
|
library_names_spec='${libname}${shared_ext}' |
17096 |
|
dynamic_linker="$host_os ld.so" |
17097 |
|
shlibpath_var=LIBRARY_PATH |
17098 |
|
;; |
17099 |
|
|
17100 |
|
bsdi4*) |
17101 |
|
version_type=linux |
17102 |
|
need_version=no |
17103 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17104 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17105 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17106 |
|
shlibpath_var=LD_LIBRARY_PATH |
17107 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17108 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17109 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
17110 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17111 |
|
# libtool to hard-code these into programs |
17112 |
|
;; |
17113 |
|
|
17114 |
|
cygwin* | mingw* | pw32*) |
17115 |
|
version_type=windows |
17116 |
|
shrext_cmds=".dll" |
17117 |
|
need_version=no |
17118 |
|
need_lib_prefix=no |
17119 |
|
|
17120 |
|
case $GCC,$host_os in |
17121 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
17122 |
|
library_names_spec='$libname.dll.a' |
17123 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
17124 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
17125 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17126 |
|
dldir=$destdir/`dirname \$dlpath`~ |
17127 |
|
test -d \$dldir || mkdir -p \$dldir~ |
17128 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
17129 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17130 |
|
dlpath=$dir/\$dldll~ |
17131 |
|
$rm \$dlpath' |
17132 |
|
shlibpath_overrides_runpath=yes |
17133 |
|
|
17134 |
|
case $host_os in |
17135 |
|
cygwin*) |
17136 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17137 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17138 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17139 |
|
;; |
17140 |
|
mingw*) |
17141 |
|
# MinGW DLLs use traditional 'lib' prefix |
17142 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17143 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17144 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17145 |
|
# It is most probably a Windows format PATH printed by |
17146 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
17147 |
|
# path with ; separators, and with drive letters. We can handle the |
17148 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
17149 |
|
# especially as we might pass files found there to a mingw objdump, |
17150 |
|
# which wouldn't understand a cygwinified path. Ahh. |
17151 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17152 |
|
else |
17153 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17154 |
|
fi |
17155 |
|
;; |
17156 |
|
pw32*) |
17157 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
17158 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' |
17159 |
|
;; |
17160 |
|
esac |
17161 |
|
;; |
17162 |
|
|
17163 |
|
*) |
17164 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17165 |
|
;; |
17166 |
|
esac |
17167 |
|
dynamic_linker='Win32 ld.exe' |
17168 |
|
# FIXME: first we should search . and the directory the executable is in |
17169 |
|
shlibpath_var=PATH |
17170 |
|
;; |
17171 |
|
|
17172 |
|
darwin* | rhapsody*) |
17173 |
|
dynamic_linker="$host_os dyld" |
17174 |
|
version_type=darwin |
17175 |
|
need_lib_prefix=no |
17176 |
|
need_version=no |
17177 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17178 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
17179 |
|
shlibpath_overrides_runpath=yes |
17180 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
17181 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
17182 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17183 |
|
if test "$GCC" = yes; then |
17184 |
|
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"` |
17185 |
|
else |
17186 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17187 |
|
fi |
17188 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17189 |
|
;; |
17190 |
|
|
17191 |
|
dgux*) |
17192 |
|
version_type=linux |
17193 |
|
need_lib_prefix=no |
17194 |
|
need_version=no |
17195 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17196 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17197 |
|
shlibpath_var=LD_LIBRARY_PATH |
17198 |
|
;; |
17199 |
|
|
17200 |
|
freebsd1*) |
17201 |
|
dynamic_linker=no |
17202 |
|
;; |
17203 |
|
|
17204 |
|
kfreebsd*-gnu) |
17205 |
|
version_type=linux |
17206 |
|
need_lib_prefix=no |
17207 |
|
need_version=no |
17208 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17209 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17210 |
|
shlibpath_var=LD_LIBRARY_PATH |
17211 |
|
shlibpath_overrides_runpath=no |
17212 |
|
hardcode_into_libs=yes |
17213 |
|
dynamic_linker='GNU ld.so' |
17214 |
|
;; |
17215 |
|
|
17216 |
|
freebsd*) |
17217 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
17218 |
|
version_type=freebsd-$objformat |
17219 |
|
case $version_type in |
17220 |
|
freebsd-elf*) |
17221 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17222 |
|
need_version=no |
17223 |
|
need_lib_prefix=no |
17224 |
|
;; |
17225 |
|
freebsd-*) |
17226 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17227 |
|
need_version=yes |
17228 |
|
;; |
17229 |
|
esac |
17230 |
|
shlibpath_var=LD_LIBRARY_PATH |
17231 |
|
case $host_os in |
17232 |
|
freebsd2*) |
17233 |
|
shlibpath_overrides_runpath=yes |
17234 |
|
;; |
17235 |
|
freebsd3.01* | freebsdelf3.01*) |
17236 |
|
shlibpath_overrides_runpath=yes |
17237 |
|
hardcode_into_libs=yes |
17238 |
|
;; |
17239 |
|
*) # from 3.2 on |
17240 |
|
shlibpath_overrides_runpath=no |
17241 |
|
hardcode_into_libs=yes |
17242 |
|
;; |
17243 |
|
esac |
17244 |
|
;; |
17245 |
|
|
17246 |
|
gnu*) |
17247 |
|
version_type=linux |
17248 |
|
need_lib_prefix=no |
17249 |
|
need_version=no |
17250 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17251 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17252 |
|
shlibpath_var=LD_LIBRARY_PATH |
17253 |
|
hardcode_into_libs=yes |
17254 |
|
;; |
17255 |
|
|
17256 |
|
hpux9* | hpux10* | hpux11*) |
17257 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
17258 |
|
# link against other versions. |
17259 |
|
version_type=sunos |
17260 |
|
need_lib_prefix=no |
17261 |
|
need_version=no |
17262 |
|
case "$host_cpu" in |
17263 |
|
ia64*) |
17264 |
|
shrext_cmds='.so' |
17265 |
|
hardcode_into_libs=yes |
17266 |
|
dynamic_linker="$host_os dld.so" |
17267 |
|
shlibpath_var=LD_LIBRARY_PATH |
17268 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17269 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17270 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17271 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
17272 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17273 |
|
else |
17274 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17275 |
|
fi |
17276 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17277 |
|
;; |
17278 |
|
hppa*64*) |
17279 |
|
shrext_cmds='.sl' |
17280 |
|
hardcode_into_libs=yes |
17281 |
|
dynamic_linker="$host_os dld.sl" |
17282 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17283 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17284 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17285 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17286 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17287 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17288 |
|
;; |
17289 |
|
*) |
17290 |
|
shrext_cmds='.sl' |
17291 |
|
dynamic_linker="$host_os dld.sl" |
17292 |
|
shlibpath_var=SHLIB_PATH |
17293 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17294 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17295 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17296 |
|
;; |
17297 |
|
esac |
17298 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
17299 |
|
postinstall_cmds='chmod 555 $lib' |
17300 |
|
;; |
17301 |
|
|
17302 |
|
irix5* | irix6* | nonstopux*) |
17303 |
|
case $host_os in |
17304 |
|
nonstopux*) version_type=nonstopux ;; |
17305 |
|
*) |
17306 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
17307 |
|
version_type=linux |
17308 |
|
else |
17309 |
|
version_type=irix |
17310 |
|
fi ;; |
17311 |
|
esac |
17312 |
|
need_lib_prefix=no |
17313 |
|
need_version=no |
17314 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17315 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17316 |
|
case $host_os in |
17317 |
|
irix5* | nonstopux*) |
17318 |
|
libsuff= shlibsuff= |
17319 |
|
;; |
17320 |
|
*) |
17321 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
17322 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17323 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
17324 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17325 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
17326 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17327 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17328 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
17329 |
|
esac |
17330 |
|
;; |
17331 |
|
esac |
17332 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17333 |
|
shlibpath_overrides_runpath=no |
17334 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17335 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17336 |
|
hardcode_into_libs=yes |
17337 |
|
;; |
17338 |
|
|
17339 |
|
# No shared lib support for Linux oldld, aout, or coff. |
17340 |
|
linux*oldld* | linux*aout* | linux*coff*) |
17341 |
|
dynamic_linker=no |
17342 |
|
;; |
17343 |
|
|
17344 |
|
# This must be Linux ELF. |
17345 |
|
linux*) |
17346 |
|
version_type=linux |
17347 |
|
need_lib_prefix=no |
17348 |
|
need_version=no |
17349 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17350 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17351 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17352 |
|
shlibpath_var=LD_LIBRARY_PATH |
17353 |
|
shlibpath_overrides_runpath=no |
17354 |
|
# This implies no fast_install, which is unacceptable. |
17355 |
|
# Some rework will be needed to allow for fast_install |
17356 |
|
# before this can be enabled. |
17357 |
|
hardcode_into_libs=yes |
17358 |
|
|
17359 |
|
libsuff= |
17360 |
|
if test "$lt_cv_cc_lib64_suffix" = "yes"; then |
17361 |
|
libsuff=64 |
17362 |
|
fi |
17363 |
|
|
17364 |
|
# Append ld.so.conf contents to the search path |
17365 |
|
if test -f /etc/ld.so.conf; then |
17366 |
|
lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` |
17367 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} $lt_ld_extra" |
17368 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/X11R6/lib${libsuff} /usr/local/lib${libsuff} $lt_ld_extra" |
17369 |
|
fi |
17370 |
|
|
17371 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
17372 |
|
# powerpc, because MkLinux only supported shared libraries with the |
17373 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
17374 |
|
# most powerpc-linux boxes support dynamic linking these days and |
17375 |
|
# people can always --disable-shared, the test was removed, and we |
17376 |
|
# assume the GNU/Linux dynamic linker is in use. |
17377 |
|
dynamic_linker='GNU/Linux ld.so' |
17378 |
|
;; |
17379 |
|
|
17380 |
|
knetbsd*-gnu) |
17381 |
|
version_type=linux |
17382 |
|
need_lib_prefix=no |
17383 |
|
need_version=no |
17384 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17385 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17386 |
|
shlibpath_var=LD_LIBRARY_PATH |
17387 |
|
shlibpath_overrides_runpath=no |
17388 |
|
hardcode_into_libs=yes |
17389 |
|
dynamic_linker='GNU ld.so' |
17390 |
|
;; |
17391 |
|
|
17392 |
|
netbsd*) |
17393 |
|
version_type=sunos |
17394 |
|
need_lib_prefix=no |
17395 |
|
need_version=no |
17396 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17397 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17398 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17399 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
17400 |
|
else |
17401 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17402 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17403 |
|
dynamic_linker='NetBSD ld.elf_so' |
17404 |
|
fi |
17405 |
|
shlibpath_var=LD_LIBRARY_PATH |
17406 |
|
shlibpath_overrides_runpath=yes |
17407 |
|
hardcode_into_libs=yes |
17408 |
|
;; |
17409 |
|
|
17410 |
|
newsos6) |
17411 |
|
version_type=linux |
17412 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17413 |
|
shlibpath_var=LD_LIBRARY_PATH |
17414 |
|
shlibpath_overrides_runpath=yes |
17415 |
|
;; |
17416 |
|
|
17417 |
|
nto-qnx*) |
17418 |
|
version_type=linux |
17419 |
|
need_lib_prefix=no |
17420 |
|
need_version=no |
17421 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17422 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17423 |
|
shlibpath_var=LD_LIBRARY_PATH |
17424 |
|
shlibpath_overrides_runpath=yes |
17425 |
|
;; |
17426 |
|
|
17427 |
|
openbsd*) |
17428 |
|
version_type=sunos |
17429 |
|
need_lib_prefix=no |
17430 |
|
need_version=yes |
17431 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17432 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17433 |
|
shlibpath_var=LD_LIBRARY_PATH |
17434 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17435 |
|
case $host_os in |
17436 |
|
openbsd2.[89] | openbsd2.[89].*) |
17437 |
|
shlibpath_overrides_runpath=no |
17438 |
|
;; |
17439 |
|
*) |
17440 |
|
shlibpath_overrides_runpath=yes |
17441 |
|
;; |
17442 |
|
esac |
17443 |
|
else |
17444 |
|
shlibpath_overrides_runpath=yes |
17445 |
|
fi |
17446 |
|
;; |
17447 |
|
|
17448 |
|
os2*) |
17449 |
|
libname_spec='$name' |
17450 |
|
shrext_cmds=".dll" |
17451 |
|
need_lib_prefix=no |
17452 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
17453 |
|
dynamic_linker='OS/2 ld.exe' |
17454 |
|
shlibpath_var=LIBPATH |
17455 |
|
;; |
17456 |
|
|
17457 |
|
osf3* | osf4* | osf5*) |
17458 |
|
version_type=osf |
17459 |
|
need_lib_prefix=no |
17460 |
|
need_version=no |
17461 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17462 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17463 |
|
shlibpath_var=LD_LIBRARY_PATH |
17464 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17465 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17466 |
|
;; |
17467 |
|
|
17468 |
|
sco3.2v5*) |
17469 |
|
version_type=osf |
17470 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17471 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17472 |
|
shlibpath_var=LD_LIBRARY_PATH |
17473 |
|
;; |
17474 |
|
|
17475 |
|
solaris*) |
17476 |
|
version_type=linux |
17477 |
|
need_lib_prefix=no |
17478 |
|
need_version=no |
17479 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17480 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17481 |
|
shlibpath_var=LD_LIBRARY_PATH |
17482 |
|
shlibpath_overrides_runpath=yes |
17483 |
|
hardcode_into_libs=yes |
17484 |
|
# ldd complains unless libraries are executable |
17485 |
|
postinstall_cmds='chmod +x $lib' |
17486 |
|
;; |
17487 |
|
|
17488 |
|
sunos4*) |
17489 |
|
version_type=sunos |
17490 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17491 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
17492 |
|
shlibpath_var=LD_LIBRARY_PATH |
17493 |
|
shlibpath_overrides_runpath=yes |
17494 |
|
if test "$with_gnu_ld" = yes; then |
17495 |
|
need_lib_prefix=no |
17496 |
|
fi |
17497 |
|
need_version=yes |
17498 |
|
;; |
17499 |
|
|
17500 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
17501 |
|
version_type=linux |
17502 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17503 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17504 |
|
shlibpath_var=LD_LIBRARY_PATH |
17505 |
|
case $host_vendor in |
17506 |
|
sni) |
17507 |
|
shlibpath_overrides_runpath=no |
17508 |
|
need_lib_prefix=no |
17509 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
17510 |
|
runpath_var=LD_RUN_PATH |
17511 |
|
;; |
17512 |
|
siemens) |
17513 |
|
need_lib_prefix=no |
17514 |
|
;; |
17515 |
|
motorola) |
17516 |
|
need_lib_prefix=no |
17517 |
|
need_version=no |
17518 |
|
shlibpath_overrides_runpath=no |
17519 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
17520 |
|
;; |
17521 |
|
esac |
17522 |
|
;; |
17523 |
|
|
17524 |
|
sysv4*MP*) |
17525 |
|
if test -d /usr/nec ;then |
17526 |
|
version_type=linux |
17527 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
17528 |
|
soname_spec='$libname${shared_ext}.$major' |
17529 |
|
shlibpath_var=LD_LIBRARY_PATH |
17530 |
|
fi |
17531 |
|
;; |
17532 |
|
|
17533 |
|
uts4*) |
17534 |
|
version_type=linux |
17535 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17536 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17537 |
|
shlibpath_var=LD_LIBRARY_PATH |
17538 |
|
;; |
17539 |
|
|
17540 |
|
*) |
17541 |
|
dynamic_linker=no |
17542 |
|
;; |
17543 |
|
esac |
17544 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
17545 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
17546 |
|
test "$dynamic_linker" = no && can_build_shared=no |
17547 |
|
|
17548 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17549 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
17550 |
|
hardcode_action_GCJ= |
17551 |
|
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
17552 |
|
test -n "$runpath_var GCJ" || \ |
17553 |
|
test "X$hardcode_automatic_GCJ"="Xyes" ; then |
17554 |
|
|
17555 |
|
# We can hardcode non-existant directories. |
17556 |
|
if test "$hardcode_direct_GCJ" != no && |
17557 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
17558 |
|
# have to relink, otherwise we might link with an installed library |
17559 |
|
# when we should be linking with a yet-to-be-installed one |
17560 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
17561 |
|
test "$hardcode_minus_L_GCJ" != no; then |
17562 |
|
# Linking always hardcodes the temporary library directory. |
17563 |
|
hardcode_action_GCJ=relink |
17564 |
|
else |
17565 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
17566 |
|
hardcode_action_GCJ=immediate |
17567 |
|
fi |
17568 |
|
else |
17569 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
17570 |
|
# directories. |
17571 |
|
hardcode_action_GCJ=unsupported |
17572 |
|
fi |
17573 |
|
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
17574 |
|
echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
17575 |
|
|
17576 |
|
if test "$hardcode_action_GCJ" = relink; then |
17577 |
|
# Fast installation is not supported |
17578 |
|
enable_fast_install=no |
17579 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
17580 |
|
test "$enable_shared" = no; then |
17581 |
|
# Fast installation is not necessary |
17582 |
|
enable_fast_install=needless |
17583 |
|
fi |
17584 |
|
|
17585 |
|
striplib= |
17586 |
|
old_striplib= |
17587 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
17588 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
17589 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
17590 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
17591 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
17592 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
17593 |
|
echo "${ECHO_T}yes" >&6 |
17594 |
|
else |
17595 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
17596 |
|
case $host_os in |
17597 |
|
darwin*) |
17598 |
|
if test -n "$STRIP" ; then |
17599 |
|
striplib="$STRIP -x" |
17600 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
17601 |
|
echo "${ECHO_T}yes" >&6 |
17602 |
|
else |
17603 |
|
echo "$as_me:$LINENO: result: no" >&5 |
17604 |
|
echo "${ECHO_T}no" >&6 |
17605 |
|
fi |
17606 |
|
;; |
17607 |
|
*) |
17608 |
|
echo "$as_me:$LINENO: result: no" >&5 |
17609 |
|
echo "${ECHO_T}no" >&6 |
17610 |
|
;; |
17611 |
|
esac |
17612 |
|
fi |
17613 |
|
|
17614 |
|
if test "x$enable_dlopen" != xyes; then |
17615 |
|
enable_dlopen=unknown |
17616 |
|
enable_dlopen_self=unknown |
17617 |
|
enable_dlopen_self_static=unknown |
17618 |
|
else |
17619 |
|
lt_cv_dlopen=no |
17620 |
|
lt_cv_dlopen_libs= |
17621 |
|
|
17622 |
|
case $host_os in |
17623 |
|
beos*) |
17624 |
|
lt_cv_dlopen="load_add_on" |
17625 |
|
lt_cv_dlopen_libs= |
17626 |
|
lt_cv_dlopen_self=yes |
17627 |
|
;; |
17628 |
|
|
17629 |
|
mingw* | pw32*) |
17630 |
|
lt_cv_dlopen="LoadLibrary" |
17631 |
|
lt_cv_dlopen_libs= |
17632 |
|
;; |
17633 |
|
|
17634 |
|
cygwin*) |
17635 |
|
lt_cv_dlopen="dlopen" |
17636 |
|
lt_cv_dlopen_libs= |
17637 |
|
;; |
17638 |
|
|
17639 |
|
darwin*) |
17640 |
|
# if libdl is installed we need to link against it |
17641 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
17642 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
17643 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
17644 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17645 |
|
else |
17646 |
|
ac_check_lib_save_LIBS=$LIBS |
17647 |
|
LIBS="-ldl $LIBS" |
17648 |
|
cat >conftest.$ac_ext <<_ACEOF |
17649 |
|
/* confdefs.h. */ |
17650 |
|
_ACEOF |
17651 |
|
cat confdefs.h >>conftest.$ac_ext |
17652 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17653 |
|
/* end confdefs.h. */ |
17654 |
|
|
17655 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17656 |
|
#ifdef __cplusplus |
17657 |
|
extern "C" |
17658 |
|
#endif |
17659 |
|
/* We use char because int might match the return type of a gcc2 |
17660 |
|
builtin and then its argument prototype would still apply. */ |
17661 |
|
char dlopen (); |
17662 |
|
int |
17663 |
|
main () |
17664 |
|
{ |
17665 |
|
dlopen (); |
17666 |
|
; |
17667 |
|
return 0; |
17668 |
|
} |
17669 |
|
_ACEOF |
17670 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17671 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17672 |
|
(eval $ac_link) 2>conftest.er1 |
17673 |
|
ac_status=$? |
17674 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17675 |
|
rm -f conftest.er1 |
17676 |
|
cat conftest.err >&5 |
17677 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17678 |
|
(exit $ac_status); } && |
17679 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17680 |
|
|| test ! -s conftest.err' |
17681 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17682 |
|
(eval $ac_try) 2>&5 |
17683 |
|
ac_status=$? |
17684 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17685 |
|
(exit $ac_status); }; } && |
17686 |
|
{ ac_try='test -s conftest$ac_exeext' |
17687 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17688 |
|
(eval $ac_try) 2>&5 |
17689 |
|
ac_status=$? |
17690 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17691 |
|
(exit $ac_status); }; }; then |
17692 |
|
ac_cv_lib_dl_dlopen=yes |
17693 |
|
else |
17694 |
|
echo "$as_me: failed program was:" >&5 |
17695 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
17696 |
|
|
17697 |
|
ac_cv_lib_dl_dlopen=no |
17698 |
|
fi |
17699 |
|
rm -f conftest.err conftest.$ac_objext \ |
17700 |
|
conftest$ac_exeext conftest.$ac_ext |
17701 |
|
LIBS=$ac_check_lib_save_LIBS |
17702 |
|
fi |
17703 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
17704 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
17705 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
17706 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
17707 |
|
else |
17708 |
|
|
17709 |
|
lt_cv_dlopen="dyld" |
17710 |
|
lt_cv_dlopen_libs= |
17711 |
|
lt_cv_dlopen_self=yes |
17712 |
|
|
17713 |
|
fi |
17714 |
|
|
17715 |
|
;; |
17716 |
|
|
17717 |
|
*) |
17718 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
17719 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
17720 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
17721 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17722 |
|
else |
17723 |
|
cat >conftest.$ac_ext <<_ACEOF |
17724 |
|
/* confdefs.h. */ |
17725 |
|
_ACEOF |
17726 |
|
cat confdefs.h >>conftest.$ac_ext |
17727 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17728 |
|
/* end confdefs.h. */ |
17729 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
17730 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
17731 |
|
#define shl_load innocuous_shl_load |
17732 |
|
|
17733 |
|
/* System header to define __stub macros and hopefully few prototypes, |
17734 |
|
which can conflict with char shl_load (); below. |
17735 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17736 |
|
<limits.h> exists even on freestanding compilers. */ |
17737 |
|
|
17738 |
|
#ifdef __STDC__ |
17739 |
|
# include <limits.h> |
17740 |
|
#else |
17741 |
|
# include <assert.h> |
17742 |
|
#endif |
17743 |
|
|
17744 |
|
#undef shl_load |
17745 |
|
|
17746 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17747 |
|
#ifdef __cplusplus |
17748 |
|
extern "C" |
17749 |
|
{ |
17750 |
|
#endif |
17751 |
|
/* We use char because int might match the return type of a gcc2 |
17752 |
|
builtin and then its argument prototype would still apply. */ |
17753 |
|
char shl_load (); |
17754 |
|
/* The GNU C library defines this for functions which it implements |
17755 |
|
to always fail with ENOSYS. Some functions are actually named |
17756 |
|
something starting with __ and the normal name is an alias. */ |
17757 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
17758 |
|
choke me |
17759 |
|
#else |
17760 |
|
char (*f) () = shl_load; |
17761 |
|
#endif |
17762 |
|
#ifdef __cplusplus |
17763 |
|
} |
17764 |
|
#endif |
17765 |
|
|
17766 |
|
int |
17767 |
|
main () |
17768 |
|
{ |
17769 |
|
return f != shl_load; |
17770 |
|
; |
17771 |
|
return 0; |
17772 |
|
} |
17773 |
|
_ACEOF |
17774 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17775 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17776 |
|
(eval $ac_link) 2>conftest.er1 |
17777 |
|
ac_status=$? |
17778 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17779 |
|
rm -f conftest.er1 |
17780 |
|
cat conftest.err >&5 |
17781 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17782 |
|
(exit $ac_status); } && |
17783 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17784 |
|
|| test ! -s conftest.err' |
17785 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17786 |
|
(eval $ac_try) 2>&5 |
17787 |
|
ac_status=$? |
17788 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17789 |
|
(exit $ac_status); }; } && |
17790 |
|
{ ac_try='test -s conftest$ac_exeext' |
17791 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17792 |
|
(eval $ac_try) 2>&5 |
17793 |
|
ac_status=$? |
17794 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17795 |
|
(exit $ac_status); }; }; then |
17796 |
|
ac_cv_func_shl_load=yes |
17797 |
|
else |
17798 |
|
echo "$as_me: failed program was:" >&5 |
17799 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
17800 |
|
|
17801 |
|
ac_cv_func_shl_load=no |
17802 |
|
fi |
17803 |
|
rm -f conftest.err conftest.$ac_objext \ |
17804 |
|
conftest$ac_exeext conftest.$ac_ext |
17805 |
|
fi |
17806 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
17807 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
17808 |
|
if test $ac_cv_func_shl_load = yes; then |
17809 |
|
lt_cv_dlopen="shl_load" |
17810 |
|
else |
17811 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
17812 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
17813 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
17814 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17815 |
|
else |
17816 |
|
ac_check_lib_save_LIBS=$LIBS |
17817 |
|
LIBS="-ldld $LIBS" |
17818 |
|
cat >conftest.$ac_ext <<_ACEOF |
17819 |
|
/* confdefs.h. */ |
17820 |
|
_ACEOF |
17821 |
|
cat confdefs.h >>conftest.$ac_ext |
17822 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17823 |
|
/* end confdefs.h. */ |
17824 |
|
|
17825 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17826 |
|
#ifdef __cplusplus |
17827 |
|
extern "C" |
17828 |
|
#endif |
17829 |
|
/* We use char because int might match the return type of a gcc2 |
17830 |
|
builtin and then its argument prototype would still apply. */ |
17831 |
|
char shl_load (); |
17832 |
|
int |
17833 |
|
main () |
17834 |
|
{ |
17835 |
|
shl_load (); |
17836 |
|
; |
17837 |
|
return 0; |
17838 |
|
} |
17839 |
|
_ACEOF |
17840 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17841 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17842 |
|
(eval $ac_link) 2>conftest.er1 |
17843 |
|
ac_status=$? |
17844 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17845 |
|
rm -f conftest.er1 |
17846 |
|
cat conftest.err >&5 |
17847 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17848 |
|
(exit $ac_status); } && |
17849 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17850 |
|
|| test ! -s conftest.err' |
17851 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17852 |
|
(eval $ac_try) 2>&5 |
17853 |
|
ac_status=$? |
17854 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17855 |
|
(exit $ac_status); }; } && |
17856 |
|
{ ac_try='test -s conftest$ac_exeext' |
17857 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17858 |
|
(eval $ac_try) 2>&5 |
17859 |
|
ac_status=$? |
17860 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17861 |
|
(exit $ac_status); }; }; then |
17862 |
|
ac_cv_lib_dld_shl_load=yes |
17863 |
|
else |
17864 |
|
echo "$as_me: failed program was:" >&5 |
17865 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
17866 |
|
|
17867 |
|
ac_cv_lib_dld_shl_load=no |
17868 |
|
fi |
17869 |
|
rm -f conftest.err conftest.$ac_objext \ |
17870 |
|
conftest$ac_exeext conftest.$ac_ext |
17871 |
|
LIBS=$ac_check_lib_save_LIBS |
17872 |
|
fi |
17873 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
17874 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
17875 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
17876 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
17877 |
|
else |
17878 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
17879 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
17880 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
17881 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17882 |
|
else |
17883 |
|
cat >conftest.$ac_ext <<_ACEOF |
17884 |
|
/* confdefs.h. */ |
17885 |
|
_ACEOF |
17886 |
|
cat confdefs.h >>conftest.$ac_ext |
17887 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17888 |
|
/* end confdefs.h. */ |
17889 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
17890 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
17891 |
|
#define dlopen innocuous_dlopen |
17892 |
|
|
17893 |
|
/* System header to define __stub macros and hopefully few prototypes, |
17894 |
|
which can conflict with char dlopen (); below. |
17895 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
17896 |
|
<limits.h> exists even on freestanding compilers. */ |
17897 |
|
|
17898 |
|
#ifdef __STDC__ |
17899 |
|
# include <limits.h> |
17900 |
|
#else |
17901 |
|
# include <assert.h> |
17902 |
|
#endif |
17903 |
|
|
17904 |
|
#undef dlopen |
17905 |
|
|
17906 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17907 |
|
#ifdef __cplusplus |
17908 |
|
extern "C" |
17909 |
|
{ |
17910 |
|
#endif |
17911 |
|
/* We use char because int might match the return type of a gcc2 |
17912 |
|
builtin and then its argument prototype would still apply. */ |
17913 |
|
char dlopen (); |
17914 |
|
/* The GNU C library defines this for functions which it implements |
17915 |
|
to always fail with ENOSYS. Some functions are actually named |
17916 |
|
something starting with __ and the normal name is an alias. */ |
17917 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
17918 |
|
choke me |
17919 |
|
#else |
17920 |
|
char (*f) () = dlopen; |
17921 |
|
#endif |
17922 |
|
#ifdef __cplusplus |
17923 |
|
} |
17924 |
|
#endif |
17925 |
|
|
17926 |
|
int |
17927 |
|
main () |
17928 |
|
{ |
17929 |
|
return f != dlopen; |
17930 |
|
; |
17931 |
|
return 0; |
17932 |
|
} |
17933 |
|
_ACEOF |
17934 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
17935 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
17936 |
|
(eval $ac_link) 2>conftest.er1 |
17937 |
|
ac_status=$? |
17938 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
17939 |
|
rm -f conftest.er1 |
17940 |
|
cat conftest.err >&5 |
17941 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17942 |
|
(exit $ac_status); } && |
17943 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
17944 |
|
|| test ! -s conftest.err' |
17945 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17946 |
|
(eval $ac_try) 2>&5 |
17947 |
|
ac_status=$? |
17948 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17949 |
|
(exit $ac_status); }; } && |
17950 |
|
{ ac_try='test -s conftest$ac_exeext' |
17951 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17952 |
|
(eval $ac_try) 2>&5 |
17953 |
|
ac_status=$? |
17954 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17955 |
|
(exit $ac_status); }; }; then |
17956 |
|
ac_cv_func_dlopen=yes |
17957 |
|
else |
17958 |
|
echo "$as_me: failed program was:" >&5 |
17959 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
17960 |
|
|
17961 |
|
ac_cv_func_dlopen=no |
17962 |
|
fi |
17963 |
|
rm -f conftest.err conftest.$ac_objext \ |
17964 |
|
conftest$ac_exeext conftest.$ac_ext |
17965 |
|
fi |
17966 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
17967 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
17968 |
|
if test $ac_cv_func_dlopen = yes; then |
17969 |
|
lt_cv_dlopen="dlopen" |
17970 |
|
else |
17971 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
17972 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
17973 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
17974 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
17975 |
|
else |
17976 |
|
ac_check_lib_save_LIBS=$LIBS |
17977 |
|
LIBS="-ldl $LIBS" |
17978 |
|
cat >conftest.$ac_ext <<_ACEOF |
17979 |
|
/* confdefs.h. */ |
17980 |
|
_ACEOF |
17981 |
|
cat confdefs.h >>conftest.$ac_ext |
17982 |
|
cat >>conftest.$ac_ext <<_ACEOF |
17983 |
|
/* end confdefs.h. */ |
17984 |
|
|
17985 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
17986 |
|
#ifdef __cplusplus |
17987 |
|
extern "C" |
17988 |
|
#endif |
17989 |
|
/* We use char because int might match the return type of a gcc2 |
17990 |
|
builtin and then its argument prototype would still apply. */ |
17991 |
|
char dlopen (); |
17992 |
|
int |
17993 |
|
main () |
17994 |
|
{ |
17995 |
|
dlopen (); |
17996 |
|
; |
17997 |
|
return 0; |
17998 |
|
} |
17999 |
|
_ACEOF |
18000 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18001 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18002 |
|
(eval $ac_link) 2>conftest.er1 |
18003 |
|
ac_status=$? |
18004 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18005 |
|
rm -f conftest.er1 |
18006 |
|
cat conftest.err >&5 |
18007 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18008 |
|
(exit $ac_status); } && |
18009 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18010 |
|
|| test ! -s conftest.err' |
18011 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18012 |
|
(eval $ac_try) 2>&5 |
18013 |
|
ac_status=$? |
18014 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18015 |
|
(exit $ac_status); }; } && |
18016 |
|
{ ac_try='test -s conftest$ac_exeext' |
18017 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18018 |
|
(eval $ac_try) 2>&5 |
18019 |
|
ac_status=$? |
18020 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18021 |
|
(exit $ac_status); }; }; then |
18022 |
|
ac_cv_lib_dl_dlopen=yes |
18023 |
|
else |
18024 |
|
echo "$as_me: failed program was:" >&5 |
18025 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18026 |
|
|
18027 |
|
ac_cv_lib_dl_dlopen=no |
18028 |
|
fi |
18029 |
|
rm -f conftest.err conftest.$ac_objext \ |
18030 |
|
conftest$ac_exeext conftest.$ac_ext |
18031 |
|
LIBS=$ac_check_lib_save_LIBS |
18032 |
|
fi |
18033 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18034 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
18035 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
18036 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
18037 |
|
else |
18038 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
18039 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
18040 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
18041 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18042 |
|
else |
18043 |
|
ac_check_lib_save_LIBS=$LIBS |
18044 |
|
LIBS="-lsvld $LIBS" |
18045 |
|
cat >conftest.$ac_ext <<_ACEOF |
18046 |
|
/* confdefs.h. */ |
18047 |
|
_ACEOF |
18048 |
|
cat confdefs.h >>conftest.$ac_ext |
18049 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18050 |
|
/* end confdefs.h. */ |
18051 |
|
|
18052 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18053 |
|
#ifdef __cplusplus |
18054 |
|
extern "C" |
18055 |
|
#endif |
18056 |
|
/* We use char because int might match the return type of a gcc2 |
18057 |
|
builtin and then its argument prototype would still apply. */ |
18058 |
|
char dlopen (); |
18059 |
|
int |
18060 |
|
main () |
18061 |
|
{ |
18062 |
|
dlopen (); |
18063 |
|
; |
18064 |
|
return 0; |
18065 |
|
} |
18066 |
|
_ACEOF |
18067 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18068 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18069 |
|
(eval $ac_link) 2>conftest.er1 |
18070 |
|
ac_status=$? |
18071 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18072 |
|
rm -f conftest.er1 |
18073 |
|
cat conftest.err >&5 |
18074 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18075 |
|
(exit $ac_status); } && |
18076 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18077 |
|
|| test ! -s conftest.err' |
18078 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18079 |
|
(eval $ac_try) 2>&5 |
18080 |
|
ac_status=$? |
18081 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18082 |
|
(exit $ac_status); }; } && |
18083 |
|
{ ac_try='test -s conftest$ac_exeext' |
18084 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18085 |
|
(eval $ac_try) 2>&5 |
18086 |
|
ac_status=$? |
18087 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18088 |
|
(exit $ac_status); }; }; then |
18089 |
|
ac_cv_lib_svld_dlopen=yes |
18090 |
|
else |
18091 |
|
echo "$as_me: failed program was:" >&5 |
18092 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18093 |
|
|
18094 |
|
ac_cv_lib_svld_dlopen=no |
18095 |
|
fi |
18096 |
|
rm -f conftest.err conftest.$ac_objext \ |
18097 |
conftest$ac_exeext conftest.$ac_ext |
conftest$ac_exeext conftest.$ac_ext |
18098 |
LIBS=$ac_check_lib_save_LIBS |
LIBS=$ac_check_lib_save_LIBS |
18099 |
fi |
fi |
18118 |
|
|
18119 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
18120 |
#ifdef __cplusplus |
#ifdef __cplusplus |
18121 |
extern "C" |
extern "C" |
18122 |
|
#endif |
18123 |
|
/* We use char because int might match the return type of a gcc2 |
18124 |
|
builtin and then its argument prototype would still apply. */ |
18125 |
|
char dld_link (); |
18126 |
|
int |
18127 |
|
main () |
18128 |
|
{ |
18129 |
|
dld_link (); |
18130 |
|
; |
18131 |
|
return 0; |
18132 |
|
} |
18133 |
|
_ACEOF |
18134 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18135 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18136 |
|
(eval $ac_link) 2>conftest.er1 |
18137 |
|
ac_status=$? |
18138 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18139 |
|
rm -f conftest.er1 |
18140 |
|
cat conftest.err >&5 |
18141 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18142 |
|
(exit $ac_status); } && |
18143 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18144 |
|
|| test ! -s conftest.err' |
18145 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18146 |
|
(eval $ac_try) 2>&5 |
18147 |
|
ac_status=$? |
18148 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18149 |
|
(exit $ac_status); }; } && |
18150 |
|
{ ac_try='test -s conftest$ac_exeext' |
18151 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18152 |
|
(eval $ac_try) 2>&5 |
18153 |
|
ac_status=$? |
18154 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18155 |
|
(exit $ac_status); }; }; then |
18156 |
|
ac_cv_lib_dld_dld_link=yes |
18157 |
|
else |
18158 |
|
echo "$as_me: failed program was:" >&5 |
18159 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18160 |
|
|
18161 |
|
ac_cv_lib_dld_dld_link=no |
18162 |
|
fi |
18163 |
|
rm -f conftest.err conftest.$ac_objext \ |
18164 |
|
conftest$ac_exeext conftest.$ac_ext |
18165 |
|
LIBS=$ac_check_lib_save_LIBS |
18166 |
|
fi |
18167 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
18168 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
18169 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
18170 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
18171 |
|
fi |
18172 |
|
|
18173 |
|
|
18174 |
|
fi |
18175 |
|
|
18176 |
|
|
18177 |
|
fi |
18178 |
|
|
18179 |
|
|
18180 |
|
fi |
18181 |
|
|
18182 |
|
|
18183 |
|
fi |
18184 |
|
|
18185 |
|
|
18186 |
|
fi |
18187 |
|
|
18188 |
|
;; |
18189 |
|
esac |
18190 |
|
|
18191 |
|
if test "x$lt_cv_dlopen" != xno; then |
18192 |
|
enable_dlopen=yes |
18193 |
|
else |
18194 |
|
enable_dlopen=no |
18195 |
|
fi |
18196 |
|
|
18197 |
|
case $lt_cv_dlopen in |
18198 |
|
dlopen) |
18199 |
|
save_CPPFLAGS="$CPPFLAGS" |
18200 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
18201 |
|
|
18202 |
|
save_LDFLAGS="$LDFLAGS" |
18203 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
18204 |
|
|
18205 |
|
save_LIBS="$LIBS" |
18206 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
18207 |
|
|
18208 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
18209 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
18210 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
18211 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18212 |
|
else |
18213 |
|
if test "$cross_compiling" = yes; then : |
18214 |
|
lt_cv_dlopen_self=cross |
18215 |
|
else |
18216 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
18217 |
|
lt_status=$lt_dlunknown |
18218 |
|
cat > conftest.$ac_ext <<EOF |
18219 |
|
#line 18219 "configure" |
18220 |
|
#include "confdefs.h" |
18221 |
|
|
18222 |
|
#if HAVE_DLFCN_H |
18223 |
|
#include <dlfcn.h> |
18224 |
|
#endif |
18225 |
|
|
18226 |
|
#include <stdio.h> |
18227 |
|
|
18228 |
|
#ifdef RTLD_GLOBAL |
18229 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
18230 |
|
#else |
18231 |
|
# ifdef DL_GLOBAL |
18232 |
|
# define LT_DLGLOBAL DL_GLOBAL |
18233 |
|
# else |
18234 |
|
# define LT_DLGLOBAL 0 |
18235 |
|
# endif |
18236 |
|
#endif |
18237 |
|
|
18238 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
18239 |
|
find out it does not work in some platform. */ |
18240 |
|
#ifndef LT_DLLAZY_OR_NOW |
18241 |
|
# ifdef RTLD_LAZY |
18242 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
18243 |
|
# else |
18244 |
|
# ifdef DL_LAZY |
18245 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
18246 |
|
# else |
18247 |
|
# ifdef RTLD_NOW |
18248 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
18249 |
|
# else |
18250 |
|
# ifdef DL_NOW |
18251 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
18252 |
|
# else |
18253 |
|
# define LT_DLLAZY_OR_NOW 0 |
18254 |
|
# endif |
18255 |
|
# endif |
18256 |
|
# endif |
18257 |
|
# endif |
18258 |
|
#endif |
18259 |
|
|
18260 |
|
#ifdef __cplusplus |
18261 |
|
extern "C" void exit (int); |
18262 |
|
#endif |
18263 |
|
|
18264 |
|
void fnord() { int i=42;} |
18265 |
|
int main () |
18266 |
|
{ |
18267 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
18268 |
|
int status = $lt_dlunknown; |
18269 |
|
|
18270 |
|
if (self) |
18271 |
|
{ |
18272 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
18273 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
18274 |
|
/* dlclose (self); */ |
18275 |
|
} |
18276 |
|
|
18277 |
|
exit (status); |
18278 |
|
} |
18279 |
|
EOF |
18280 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18281 |
|
(eval $ac_link) 2>&5 |
18282 |
|
ac_status=$? |
18283 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18284 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
18285 |
|
(./conftest; exit; ) 2>/dev/null |
18286 |
|
lt_status=$? |
18287 |
|
case x$lt_status in |
18288 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
18289 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
18290 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
18291 |
|
esac |
18292 |
|
else : |
18293 |
|
# compilation failed |
18294 |
|
lt_cv_dlopen_self=no |
18295 |
|
fi |
18296 |
|
fi |
18297 |
|
rm -fr conftest* |
18298 |
|
|
18299 |
|
|
18300 |
|
fi |
18301 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
18302 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
18303 |
|
|
18304 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
18305 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
18306 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
18307 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
18308 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
18309 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18310 |
|
else |
18311 |
|
if test "$cross_compiling" = yes; then : |
18312 |
|
lt_cv_dlopen_self_static=cross |
18313 |
|
else |
18314 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
18315 |
|
lt_status=$lt_dlunknown |
18316 |
|
cat > conftest.$ac_ext <<EOF |
18317 |
|
#line 18317 "configure" |
18318 |
|
#include "confdefs.h" |
18319 |
|
|
18320 |
|
#if HAVE_DLFCN_H |
18321 |
|
#include <dlfcn.h> |
18322 |
|
#endif |
18323 |
|
|
18324 |
|
#include <stdio.h> |
18325 |
|
|
18326 |
|
#ifdef RTLD_GLOBAL |
18327 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
18328 |
|
#else |
18329 |
|
# ifdef DL_GLOBAL |
18330 |
|
# define LT_DLGLOBAL DL_GLOBAL |
18331 |
|
# else |
18332 |
|
# define LT_DLGLOBAL 0 |
18333 |
|
# endif |
18334 |
|
#endif |
18335 |
|
|
18336 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
18337 |
|
find out it does not work in some platform. */ |
18338 |
|
#ifndef LT_DLLAZY_OR_NOW |
18339 |
|
# ifdef RTLD_LAZY |
18340 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
18341 |
|
# else |
18342 |
|
# ifdef DL_LAZY |
18343 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
18344 |
|
# else |
18345 |
|
# ifdef RTLD_NOW |
18346 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
18347 |
|
# else |
18348 |
|
# ifdef DL_NOW |
18349 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
18350 |
|
# else |
18351 |
|
# define LT_DLLAZY_OR_NOW 0 |
18352 |
|
# endif |
18353 |
|
# endif |
18354 |
|
# endif |
18355 |
|
# endif |
18356 |
|
#endif |
18357 |
|
|
18358 |
|
#ifdef __cplusplus |
18359 |
|
extern "C" void exit (int); |
18360 |
#endif |
#endif |
18361 |
/* We use char because int might match the return type of a gcc2 |
|
18362 |
builtin and then its argument prototype would still apply. */ |
void fnord() { int i=42;} |
18363 |
char dld_link (); |
int main () |
|
int |
|
|
main () |
|
18364 |
{ |
{ |
18365 |
dld_link (); |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
18366 |
; |
int status = $lt_dlunknown; |
18367 |
return 0; |
|
18368 |
|
if (self) |
18369 |
|
{ |
18370 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
18371 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
18372 |
|
/* dlclose (self); */ |
18373 |
|
} |
18374 |
|
|
18375 |
|
exit (status); |
18376 |
} |
} |
18377 |
_ACEOF |
EOF |
18378 |
rm -f conftest.$ac_objext conftest$ac_exeext |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18379 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
(eval $ac_link) 2>&5 |
|
(eval $ac_link) 2>conftest.er1 |
|
|
ac_status=$? |
|
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && |
|
|
{ ac_try='test -z "$ac_c_werror_flag" |
|
|
|| test ! -s conftest.err' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; } && |
|
|
{ ac_try='test -s conftest$ac_exeext' |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
(eval $ac_try) 2>&5 |
|
18380 |
ac_status=$? |
ac_status=$? |
18381 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18382 |
(exit $ac_status); }; }; then |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
18383 |
ac_cv_lib_dld_dld_link=yes |
(./conftest; exit; ) 2>/dev/null |
18384 |
else |
lt_status=$? |
18385 |
echo "$as_me: failed program was:" >&5 |
case x$lt_status in |
18386 |
sed 's/^/| /' conftest.$ac_ext >&5 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
18387 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
18388 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
18389 |
|
esac |
18390 |
|
else : |
18391 |
|
# compilation failed |
18392 |
|
lt_cv_dlopen_self_static=no |
18393 |
|
fi |
18394 |
|
fi |
18395 |
|
rm -fr conftest* |
18396 |
|
|
18397 |
|
|
18398 |
|
fi |
18399 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
18400 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
18401 |
|
fi |
18402 |
|
|
18403 |
|
CPPFLAGS="$save_CPPFLAGS" |
18404 |
|
LDFLAGS="$save_LDFLAGS" |
18405 |
|
LIBS="$save_LIBS" |
18406 |
|
;; |
18407 |
|
esac |
18408 |
|
|
18409 |
|
case $lt_cv_dlopen_self in |
18410 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
18411 |
|
*) enable_dlopen_self=unknown ;; |
18412 |
|
esac |
18413 |
|
|
18414 |
|
case $lt_cv_dlopen_self_static in |
18415 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
18416 |
|
*) enable_dlopen_self_static=unknown ;; |
18417 |
|
esac |
18418 |
|
fi |
18419 |
|
|
18420 |
|
|
18421 |
|
# The else clause should only fire when bootstrapping the |
18422 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
18423 |
|
# with your package, and you will get complaints that there are |
18424 |
|
# no rules to generate ltmain.sh. |
18425 |
|
if test -f "$ltmain"; then |
18426 |
|
# See if we are running on zsh, and set the options which allow our commands through |
18427 |
|
# without removal of \ escapes. |
18428 |
|
if test -n "${ZSH_VERSION+set}" ; then |
18429 |
|
setopt NO_GLOB_SUBST |
18430 |
|
fi |
18431 |
|
# Now quote all the things that may contain metacharacters while being |
18432 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
18433 |
|
# variables and quote the copies for generation of the libtool script. |
18434 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
18435 |
|
SED SHELL STRIP \ |
18436 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18437 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18438 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
18439 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18440 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
18441 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18442 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
18443 |
|
compiler_GCJ \ |
18444 |
|
CC_GCJ \ |
18445 |
|
LD_GCJ \ |
18446 |
|
lt_prog_compiler_wl_GCJ \ |
18447 |
|
lt_prog_compiler_pic_GCJ \ |
18448 |
|
lt_prog_compiler_static_GCJ \ |
18449 |
|
lt_prog_compiler_no_builtin_flag_GCJ \ |
18450 |
|
export_dynamic_flag_spec_GCJ \ |
18451 |
|
thread_safe_flag_spec_GCJ \ |
18452 |
|
whole_archive_flag_spec_GCJ \ |
18453 |
|
enable_shared_with_static_runtimes_GCJ \ |
18454 |
|
old_archive_cmds_GCJ \ |
18455 |
|
old_archive_from_new_cmds_GCJ \ |
18456 |
|
predep_objects_GCJ \ |
18457 |
|
postdep_objects_GCJ \ |
18458 |
|
predeps_GCJ \ |
18459 |
|
postdeps_GCJ \ |
18460 |
|
compiler_lib_search_path_GCJ \ |
18461 |
|
archive_cmds_GCJ \ |
18462 |
|
archive_expsym_cmds_GCJ \ |
18463 |
|
postinstall_cmds_GCJ \ |
18464 |
|
postuninstall_cmds_GCJ \ |
18465 |
|
old_archive_from_expsyms_cmds_GCJ \ |
18466 |
|
allow_undefined_flag_GCJ \ |
18467 |
|
no_undefined_flag_GCJ \ |
18468 |
|
export_symbols_cmds_GCJ \ |
18469 |
|
hardcode_libdir_flag_spec_GCJ \ |
18470 |
|
hardcode_libdir_flag_spec_ld_GCJ \ |
18471 |
|
hardcode_libdir_separator_GCJ \ |
18472 |
|
hardcode_automatic_GCJ \ |
18473 |
|
module_cmds_GCJ \ |
18474 |
|
module_expsym_cmds_GCJ \ |
18475 |
|
lt_cv_prog_compiler_c_o_GCJ \ |
18476 |
|
exclude_expsyms_GCJ \ |
18477 |
|
include_expsyms_GCJ; do |
18478 |
|
|
18479 |
|
case $var in |
18480 |
|
old_archive_cmds_GCJ | \ |
18481 |
|
old_archive_from_new_cmds_GCJ | \ |
18482 |
|
archive_cmds_GCJ | \ |
18483 |
|
archive_expsym_cmds_GCJ | \ |
18484 |
|
module_cmds_GCJ | \ |
18485 |
|
module_expsym_cmds_GCJ | \ |
18486 |
|
old_archive_from_expsyms_cmds_GCJ | \ |
18487 |
|
export_symbols_cmds_GCJ | \ |
18488 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18489 |
|
postinstall_cmds | postuninstall_cmds | \ |
18490 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
18491 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18492 |
|
# Double-quote double-evaled strings. |
18493 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18494 |
|
;; |
18495 |
|
*) |
18496 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18497 |
|
;; |
18498 |
|
esac |
18499 |
|
done |
18500 |
|
|
18501 |
|
case $lt_echo in |
18502 |
|
*'\$0 --fallback-echo"') |
18503 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18504 |
|
;; |
18505 |
|
esac |
18506 |
|
|
18507 |
|
cfgfile="$ofile" |
18508 |
|
|
18509 |
|
cat <<__EOF__ >> "$cfgfile" |
18510 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18511 |
|
|
18512 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18513 |
|
|
18514 |
|
# Shell to use when invoking shell scripts. |
18515 |
|
SHELL=$lt_SHELL |
18516 |
|
|
18517 |
|
# Whether or not to build shared libraries. |
18518 |
|
build_libtool_libs=$enable_shared |
18519 |
|
|
18520 |
|
# Whether or not to build static libraries. |
18521 |
|
build_old_libs=$enable_static |
18522 |
|
|
18523 |
|
# Whether or not to add -lc for building shared libraries. |
18524 |
|
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18525 |
|
|
18526 |
|
# Whether or not to disallow shared libs when runtime libs are static |
18527 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18528 |
|
|
18529 |
|
# Whether or not to optimize for fast installation. |
18530 |
|
fast_install=$enable_fast_install |
18531 |
|
|
18532 |
|
# The host system. |
18533 |
|
host_alias=$host_alias |
18534 |
|
host=$host |
18535 |
|
|
18536 |
|
# An echo program that does not interpret backslashes. |
18537 |
|
echo=$lt_echo |
18538 |
|
|
18539 |
|
# The archiver. |
18540 |
|
AR=$lt_AR |
18541 |
|
AR_FLAGS=$lt_AR_FLAGS |
18542 |
|
|
18543 |
|
# A C compiler. |
18544 |
|
LTCC=$lt_LTCC |
18545 |
|
|
18546 |
|
# A language-specific compiler. |
18547 |
|
CC=$lt_compiler_GCJ |
18548 |
|
|
18549 |
|
# Is the compiler the GNU C compiler? |
18550 |
|
with_gcc=$GCC_GCJ |
18551 |
|
|
18552 |
|
# An ERE matcher. |
18553 |
|
EGREP=$lt_EGREP |
18554 |
|
|
18555 |
|
# The linker used to build libraries. |
18556 |
|
LD=$lt_LD_GCJ |
18557 |
|
|
18558 |
|
# Whether we need hard or soft links. |
18559 |
|
LN_S=$lt_LN_S |
18560 |
|
|
18561 |
|
# A BSD-compatible nm program. |
18562 |
|
NM=$lt_NM |
18563 |
|
|
18564 |
|
# A symbol stripping program |
18565 |
|
STRIP=$lt_STRIP |
18566 |
|
|
18567 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
18568 |
|
MAGIC_CMD=$MAGIC_CMD |
18569 |
|
|
18570 |
|
# Used on cygwin: DLL creation program. |
18571 |
|
DLLTOOL="$DLLTOOL" |
18572 |
|
|
18573 |
|
# Used on cygwin: object dumper. |
18574 |
|
OBJDUMP="$OBJDUMP" |
18575 |
|
|
18576 |
|
# Used on cygwin: assembler. |
18577 |
|
AS="$AS" |
18578 |
|
|
18579 |
|
# The name of the directory that contains temporary libtool files. |
18580 |
|
objdir=$objdir |
18581 |
|
|
18582 |
|
# How to create reloadable object files. |
18583 |
|
reload_flag=$lt_reload_flag |
18584 |
|
reload_cmds=$lt_reload_cmds |
18585 |
|
|
18586 |
|
# How to pass a linker flag through the compiler. |
18587 |
|
wl=$lt_lt_prog_compiler_wl_GCJ |
18588 |
|
|
18589 |
|
# Object file suffix (normally "o"). |
18590 |
|
objext="$ac_objext" |
18591 |
|
|
18592 |
|
# Old archive suffix (normally "a"). |
18593 |
|
libext="$libext" |
18594 |
|
|
18595 |
|
# Shared library suffix (normally ".so"). |
18596 |
|
shrext_cmds='$shrext_cmds' |
18597 |
|
|
18598 |
|
# Executable file suffix (normally ""). |
18599 |
|
exeext="$exeext" |
18600 |
|
|
18601 |
|
# Additional compiler flags for building library objects. |
18602 |
|
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18603 |
|
pic_mode=$pic_mode |
18604 |
|
|
18605 |
|
# What is the maximum length of a command? |
18606 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
18607 |
|
|
18608 |
|
# Does compiler simultaneously support -c and -o options? |
18609 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18610 |
|
|
18611 |
|
# Must we lock files when doing compilation ? |
18612 |
|
need_locks=$lt_need_locks |
18613 |
|
|
18614 |
|
# Do we need the lib prefix for modules? |
18615 |
|
need_lib_prefix=$need_lib_prefix |
18616 |
|
|
18617 |
|
# Do we need a version for libraries? |
18618 |
|
need_version=$need_version |
18619 |
|
|
18620 |
|
# Whether dlopen is supported. |
18621 |
|
dlopen_support=$enable_dlopen |
18622 |
|
|
18623 |
|
# Whether dlopen of programs is supported. |
18624 |
|
dlopen_self=$enable_dlopen_self |
18625 |
|
|
18626 |
|
# Whether dlopen of statically linked programs is supported. |
18627 |
|
dlopen_self_static=$enable_dlopen_self_static |
18628 |
|
|
18629 |
|
# Compiler flag to prevent dynamic linking. |
18630 |
|
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18631 |
|
|
18632 |
|
# Compiler flag to turn off builtin functions. |
18633 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18634 |
|
|
18635 |
|
# Compiler flag to allow reflexive dlopens. |
18636 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18637 |
|
|
18638 |
|
# Compiler flag to generate shared objects directly from archives. |
18639 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18640 |
|
|
18641 |
|
# Compiler flag to generate thread-safe objects. |
18642 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18643 |
|
|
18644 |
|
# Library versioning type. |
18645 |
|
version_type=$version_type |
18646 |
|
|
18647 |
|
# Format of library name prefix. |
18648 |
|
libname_spec=$lt_libname_spec |
18649 |
|
|
18650 |
|
# List of archive names. First name is the real one, the rest are links. |
18651 |
|
# The last name is the one that the linker finds with -lNAME. |
18652 |
|
library_names_spec=$lt_library_names_spec |
18653 |
|
|
18654 |
|
# The coded name of the library, if different from the real name. |
18655 |
|
soname_spec=$lt_soname_spec |
18656 |
|
|
18657 |
|
# Commands used to build and install an old-style archive. |
18658 |
|
RANLIB=$lt_RANLIB |
18659 |
|
old_archive_cmds=$lt_old_archive_cmds_GCJ |
18660 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
18661 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18662 |
|
|
18663 |
|
# Create an old-style archive from a shared archive. |
18664 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18665 |
|
|
18666 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
18667 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18668 |
|
|
18669 |
|
# Commands used to build and install a shared archive. |
18670 |
|
archive_cmds=$lt_archive_cmds_GCJ |
18671 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18672 |
|
postinstall_cmds=$lt_postinstall_cmds |
18673 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
18674 |
|
|
18675 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
18676 |
|
module_cmds=$lt_module_cmds_GCJ |
18677 |
|
module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18678 |
|
|
18679 |
|
# Commands to strip libraries. |
18680 |
|
old_striplib=$lt_old_striplib |
18681 |
|
striplib=$lt_striplib |
18682 |
|
|
18683 |
ac_cv_lib_dld_dld_link=no |
# Dependencies to place before the objects being linked to create a |
18684 |
fi |
# shared library. |
18685 |
rm -f conftest.err conftest.$ac_objext \ |
predep_objects=$lt_predep_objects_GCJ |
18686 |
conftest$ac_exeext conftest.$ac_ext |
|
18687 |
LIBS=$ac_check_lib_save_LIBS |
# Dependencies to place after the objects being linked to create a |
18688 |
fi |
# shared library. |
18689 |
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
postdep_objects=$lt_postdep_objects_GCJ |
18690 |
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
18691 |
if test $ac_cv_lib_dld_dld_link = yes; then |
# Dependencies to place before the objects being linked to create a |
18692 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
# shared library. |
18693 |
fi |
predeps=$lt_predeps_GCJ |
18694 |
|
|
18695 |
|
# Dependencies to place after the objects being linked to create a |
18696 |
|
# shared library. |
18697 |
|
postdeps=$lt_postdeps_GCJ |
18698 |
|
|
18699 |
|
# The library search path used internally by the compiler when linking |
18700 |
|
# a shared library. |
18701 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
18702 |
|
|
18703 |
|
# Method to check whether dependent libraries are shared objects. |
18704 |
|
deplibs_check_method=$lt_deplibs_check_method |
18705 |
|
|
18706 |
fi |
# Command to use when deplibs_check_method == file_magic. |
18707 |
|
file_magic_cmd=$lt_file_magic_cmd |
18708 |
|
|
18709 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
18710 |
|
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18711 |
|
|
18712 |
fi |
# Flag that forces no undefined symbols. |
18713 |
|
no_undefined_flag=$lt_no_undefined_flag_GCJ |
18714 |
|
|
18715 |
|
# Commands used to finish a libtool library installation in a directory. |
18716 |
|
finish_cmds=$lt_finish_cmds |
18717 |
|
|
18718 |
fi |
# Same as above, but a single script fragment to be evaled but not shown. |
18719 |
|
finish_eval=$lt_finish_eval |
18720 |
|
|
18721 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
18722 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18723 |
|
|
18724 |
fi |
# Transform the output of nm in a proper C declaration |
18725 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18726 |
|
|
18727 |
|
# Transform the output of nm in a C name address pair |
18728 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18729 |
|
|
18730 |
fi |
# This is the shared library runtime path variable. |
18731 |
|
runpath_var=$runpath_var |
18732 |
|
|
18733 |
;; |
# This is the shared library path variable. |
18734 |
esac |
shlibpath_var=$shlibpath_var |
18735 |
|
|
18736 |
if test "x$lt_cv_dlopen" != xno; then |
# Is shlibpath searched before the hard-coded library search path? |
18737 |
enable_dlopen=yes |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
else |
|
|
enable_dlopen=no |
|
|
fi |
|
18738 |
|
|
18739 |
case $lt_cv_dlopen in |
# How to hardcode a shared library path into an executable. |
18740 |
dlopen) |
hardcode_action=$hardcode_action_GCJ |
|
save_CPPFLAGS="$CPPFLAGS" |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
18741 |
|
|
18742 |
save_LDFLAGS="$LDFLAGS" |
# Whether we should hardcode library paths into libraries. |
18743 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
hardcode_into_libs=$hardcode_into_libs |
18744 |
|
|
18745 |
save_LIBS="$LIBS" |
# Flag to hardcode \$libdir into a binary during linking. |
18746 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
# This must work even if \$libdir does not exist. |
18747 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18748 |
|
|
18749 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
# If ld is used when linking, flag to hardcode \$libdir into |
18750 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
# a binary during linking. This must work even if \$libdir does |
18751 |
if test "${lt_cv_dlopen_self+set}" = set; then |
# not exist. |
18752 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
else |
|
|
if test "$cross_compiling" = yes; then : |
|
|
lt_cv_dlopen_self=cross |
|
|
else |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
lt_status=$lt_dlunknown |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 7857 "configure" |
|
|
#include "confdefs.h" |
|
18753 |
|
|
18754 |
#if HAVE_DLFCN_H |
# Whether we need a single -rpath flag with a separated argument. |
18755 |
#include <dlfcn.h> |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
#endif |
|
18756 |
|
|
18757 |
#include <stdio.h> |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18758 |
|
# resulting binary. |
18759 |
|
hardcode_direct=$hardcode_direct_GCJ |
18760 |
|
|
18761 |
#ifdef RTLD_GLOBAL |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18762 |
# define LT_DLGLOBAL RTLD_GLOBAL |
# resulting binary. |
18763 |
#else |
hardcode_minus_L=$hardcode_minus_L_GCJ |
|
# ifdef DL_GLOBAL |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
|
|
# else |
|
|
# define LT_DLGLOBAL 0 |
|
|
# endif |
|
|
#endif |
|
18764 |
|
|
18765 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18766 |
find out it does not work in some platform. */ |
# the resulting binary. |
18767 |
#ifndef LT_DLLAZY_OR_NOW |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
# ifdef RTLD_LAZY |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
# else |
|
|
# ifdef DL_LAZY |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
# else |
|
|
# ifdef RTLD_NOW |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
# else |
|
|
# ifdef DL_NOW |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW |
|
|
# else |
|
|
# define LT_DLLAZY_OR_NOW 0 |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
#endif |
|
18768 |
|
|
18769 |
#ifdef __cplusplus |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
18770 |
extern "C" void exit (int); |
# and all subsequent libraries and executables linked against it. |
18771 |
#endif |
hardcode_automatic=$hardcode_automatic_GCJ |
18772 |
|
|
18773 |
void fnord() { int i=42;} |
# Variables whose values should be saved in libtool wrapper scripts and |
18774 |
int main () |
# restored at relink time. |
18775 |
{ |
variables_saved_for_relink="$variables_saved_for_relink" |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
int status = $lt_dlunknown; |
|
18776 |
|
|
18777 |
if (self) |
# Whether libtool must link a program against all its dependency libraries. |
18778 |
{ |
link_all_deplibs=$link_all_deplibs_GCJ |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
/* dlclose (self); */ |
|
|
} |
|
18779 |
|
|
18780 |
exit (status); |
# Compile-time system search path for libraries |
18781 |
} |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
EOF |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
(eval $ac_link) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
(./conftest; exit; ) 2>/dev/null |
|
|
lt_status=$? |
|
|
case x$lt_status in |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
esac |
|
|
else : |
|
|
# compilation failed |
|
|
lt_cv_dlopen_self=no |
|
|
fi |
|
|
fi |
|
|
rm -fr conftest* |
|
18782 |
|
|
18783 |
|
# Run-time system search path for libraries |
18784 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18785 |
|
|
18786 |
fi |
# Fix the shell variable \$srcfile for the compiler. |
18787 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
18788 |
|
|
18789 |
if test "x$lt_cv_dlopen_self" = xyes; then |
# Set to yes if exported symbols are required. |
18790 |
LDFLAGS="$LDFLAGS $link_static_flag" |
always_export_symbols=$always_export_symbols_GCJ |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
if test "$cross_compiling" = yes; then : |
|
|
lt_cv_dlopen_self_static=cross |
|
|
else |
|
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
lt_status=$lt_dlunknown |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 7955 "configure" |
|
|
#include "confdefs.h" |
|
18791 |
|
|
18792 |
#if HAVE_DLFCN_H |
# The commands to list exported symbols. |
18793 |
#include <dlfcn.h> |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
#endif |
|
18794 |
|
|
18795 |
#include <stdio.h> |
# The commands to extract the exported symbol list from a shared archive. |
18796 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18797 |
|
|
18798 |
#ifdef RTLD_GLOBAL |
# Symbols that should not be listed in the preloaded symbols. |
18799 |
# define LT_DLGLOBAL RTLD_GLOBAL |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
#else |
|
|
# ifdef DL_GLOBAL |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
|
|
# else |
|
|
# define LT_DLGLOBAL 0 |
|
|
# endif |
|
|
#endif |
|
18800 |
|
|
18801 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
# Symbols that must always be exported. |
18802 |
find out it does not work in some platform. */ |
include_expsyms=$lt_include_expsyms_GCJ |
|
#ifndef LT_DLLAZY_OR_NOW |
|
|
# ifdef RTLD_LAZY |
|
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
# else |
|
|
# ifdef DL_LAZY |
|
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
# else |
|
|
# ifdef RTLD_NOW |
|
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
# else |
|
|
# ifdef DL_NOW |
|
|
# define LT_DLLAZY_OR_NOW DL_NOW |
|
|
# else |
|
|
# define LT_DLLAZY_OR_NOW 0 |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
#endif |
|
18803 |
|
|
18804 |
#ifdef __cplusplus |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
extern "C" void exit (int); |
|
|
#endif |
|
18805 |
|
|
18806 |
void fnord() { int i=42;} |
__EOF__ |
|
int main () |
|
|
{ |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
int status = $lt_dlunknown; |
|
18807 |
|
|
|
if (self) |
|
|
{ |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
/* dlclose (self); */ |
|
|
} |
|
18808 |
|
|
18809 |
exit (status); |
else |
18810 |
} |
# If there is no Makefile yet, we rely on a make rule to execute |
18811 |
EOF |
# `config.status --recheck' to rerun these tests and create the |
18812 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
# libtool script then. |
18813 |
(eval $ac_link) 2>&5 |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18814 |
ac_status=$? |
if test -f "$ltmain_in"; then |
18815 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
test -f Makefile && make "$ltmain" |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
(./conftest; exit; ) 2>/dev/null |
|
|
lt_status=$? |
|
|
case x$lt_status in |
|
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
esac |
|
|
else : |
|
|
# compilation failed |
|
|
lt_cv_dlopen_self_static=no |
|
18816 |
fi |
fi |
18817 |
fi |
fi |
|
rm -fr conftest* |
|
18818 |
|
|
18819 |
|
|
18820 |
fi |
ac_ext=c |
18821 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
ac_cpp='$CPP $CPPFLAGS' |
18822 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18823 |
fi |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18824 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18825 |
|
|
18826 |
|
CC="$lt_save_CC" |
18827 |
|
|
18828 |
|
else |
18829 |
|
tagname="" |
18830 |
|
fi |
18831 |
|
;; |
18832 |
|
|
18833 |
|
RC) |
18834 |
|
|
18835 |
|
|
18836 |
|
|
18837 |
CPPFLAGS="$save_CPPFLAGS" |
# Source file extension for RC test sources. |
18838 |
LDFLAGS="$save_LDFLAGS" |
ac_ext=rc |
|
LIBS="$save_LIBS" |
|
|
;; |
|
|
esac |
|
18839 |
|
|
18840 |
case $lt_cv_dlopen_self in |
# Object file extension for compiled RC test sources. |
18841 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
objext=o |
18842 |
*) enable_dlopen_self=unknown ;; |
objext_RC=$objext |
|
esac |
|
18843 |
|
|
18844 |
case $lt_cv_dlopen_self_static in |
# Code to be used in simple compile tests |
18845 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
*) enable_dlopen_self_static=unknown ;; |
|
|
esac |
|
|
fi |
|
18846 |
|
|
18847 |
|
# Code to be used in simple link tests |
18848 |
|
lt_simple_link_test_code="$lt_simple_compile_test_code" |
18849 |
|
|
18850 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
case $archive_cmds in |
|
|
*'~'*) |
|
|
# FIXME: we may have to deal with multi-command sequences. |
|
|
;; |
|
|
'$CC '*) |
|
|
# Test whether the compiler implicitly links with -lc since on some |
|
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
# to ld, don't add -lc before -lgcc. |
|
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
|
$rm conftest* |
|
|
echo 'static int dummy;' > conftest.$ac_ext |
|
18851 |
|
|
18852 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
# If no C compiler was specified, use CC. |
18853 |
(eval $ac_compile) 2>&5 |
LTCC=${LTCC-"$CC"} |
18854 |
ac_status=$? |
|
18855 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
# Allow CC to be a program name with arguments. |
18856 |
(exit $ac_status); }; then |
compiler=$CC |
|
soname=conftest |
|
|
lib=conftest |
|
|
libobjs=conftest.$ac_objext |
|
|
deplibs= |
|
|
wl=$lt_cv_prog_cc_wl |
|
|
compiler_flags=-v |
|
|
linker_flags=-v |
|
|
verstring= |
|
|
output_objdir=. |
|
|
libname=conftest |
|
|
save_allow_undefined_flag=$allow_undefined_flag |
|
|
allow_undefined_flag= |
|
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); } |
|
|
then |
|
|
lt_cv_archive_cmds_need_lc=no |
|
|
else |
|
|
lt_cv_archive_cmds_need_lc=yes |
|
|
fi |
|
|
allow_undefined_flag=$save_allow_undefined_flag |
|
|
else |
|
|
cat conftest.err 1>&5 |
|
|
fi |
|
|
fi |
|
18857 |
|
|
|
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
|
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
|
|
;; |
|
|
esac |
|
|
fi |
|
|
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
18858 |
|
|
18859 |
# The second clause should only fire when bootstrapping the |
# Allow CC to be a program name with arguments. |
18860 |
|
lt_save_CC="$CC" |
18861 |
|
CC=${RC-"windres"} |
18862 |
|
compiler=$CC |
18863 |
|
compiler_RC=$CC |
18864 |
|
lt_cv_prog_compiler_c_o_RC=yes |
18865 |
|
|
18866 |
|
# The else clause should only fire when bootstrapping the |
18867 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
18868 |
# with your package, and you will get complaints that there are |
# with your package, and you will get complaints that there are |
18869 |
# no rules to generate ltmain.sh. |
# no rules to generate ltmain.sh. |
18870 |
if test -f "$ltmain"; then |
if test -f "$ltmain"; then |
18871 |
: |
# See if we are running on zsh, and set the options which allow our commands through |
18872 |
else |
# without removal of \ escapes. |
18873 |
# If there is no Makefile yet, we rely on a make rule to execute |
if test -n "${ZSH_VERSION+set}" ; then |
18874 |
# `config.status --recheck' to rerun these tests and create the |
setopt NO_GLOB_SUBST |
18875 |
# libtool script then. |
fi |
|
test -f Makefile && make "$ltmain" |
|
|
fi |
|
|
|
|
|
if test -f "$ltmain"; then |
|
|
trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
$rm -f "${ofile}T" |
|
|
|
|
|
echo creating $ofile |
|
|
|
|
18876 |
# Now quote all the things that may contain metacharacters while being |
# Now quote all the things that may contain metacharacters while being |
18877 |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
# careful not to overquote the AC_SUBSTed values. We take copies of the |
18878 |
# variables and quote the copies for generation of the libtool script. |
# variables and quote the copies for generation of the libtool script. |
18879 |
for var in echo old_CC old_CFLAGS SED \ |
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
18880 |
AR AR_FLAGS CC LD LN_S NM SHELL \ |
SED SHELL STRIP \ |
18881 |
reload_flag reload_cmds wl \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18882 |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18883 |
thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
deplibs_check_method reload_flag reload_cmds need_locks \ |
18884 |
library_names_spec soname_spec \ |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18885 |
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
global_symbol_to_c_name_address \ |
|
|
hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
18886 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18887 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
old_postinstall_cmds old_postuninstall_cmds \ |
18888 |
|
compiler_RC \ |
18889 |
|
CC_RC \ |
18890 |
|
LD_RC \ |
18891 |
|
lt_prog_compiler_wl_RC \ |
18892 |
|
lt_prog_compiler_pic_RC \ |
18893 |
|
lt_prog_compiler_static_RC \ |
18894 |
|
lt_prog_compiler_no_builtin_flag_RC \ |
18895 |
|
export_dynamic_flag_spec_RC \ |
18896 |
|
thread_safe_flag_spec_RC \ |
18897 |
|
whole_archive_flag_spec_RC \ |
18898 |
|
enable_shared_with_static_runtimes_RC \ |
18899 |
|
old_archive_cmds_RC \ |
18900 |
|
old_archive_from_new_cmds_RC \ |
18901 |
|
predep_objects_RC \ |
18902 |
|
postdep_objects_RC \ |
18903 |
|
predeps_RC \ |
18904 |
|
postdeps_RC \ |
18905 |
|
compiler_lib_search_path_RC \ |
18906 |
|
archive_cmds_RC \ |
18907 |
|
archive_expsym_cmds_RC \ |
18908 |
|
postinstall_cmds_RC \ |
18909 |
|
postuninstall_cmds_RC \ |
18910 |
|
old_archive_from_expsyms_cmds_RC \ |
18911 |
|
allow_undefined_flag_RC \ |
18912 |
|
no_undefined_flag_RC \ |
18913 |
|
export_symbols_cmds_RC \ |
18914 |
|
hardcode_libdir_flag_spec_RC \ |
18915 |
|
hardcode_libdir_flag_spec_ld_RC \ |
18916 |
|
hardcode_libdir_separator_RC \ |
18917 |
|
hardcode_automatic_RC \ |
18918 |
|
module_cmds_RC \ |
18919 |
|
module_expsym_cmds_RC \ |
18920 |
|
lt_cv_prog_compiler_c_o_RC \ |
18921 |
|
exclude_expsyms_RC \ |
18922 |
|
include_expsyms_RC; do |
18923 |
|
|
18924 |
case $var in |
case $var in |
18925 |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
old_archive_cmds_RC | \ |
18926 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
old_archive_from_new_cmds_RC | \ |
18927 |
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
archive_cmds_RC | \ |
18928 |
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
archive_expsym_cmds_RC | \ |
18929 |
|
module_cmds_RC | \ |
18930 |
|
module_expsym_cmds_RC | \ |
18931 |
|
old_archive_from_expsyms_cmds_RC | \ |
18932 |
|
export_symbols_cmds_RC | \ |
18933 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18934 |
postinstall_cmds | postuninstall_cmds | \ |
postinstall_cmds | postuninstall_cmds | \ |
18935 |
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
old_postinstall_cmds | old_postuninstall_cmds | \ |
18936 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18937 |
# Double-quote double-evaled strings. |
# Double-quote double-evaled strings. |
18938 |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18939 |
;; |
;; |
18943 |
esac |
esac |
18944 |
done |
done |
18945 |
|
|
18946 |
cat <<__EOF__ > "${ofile}T" |
case $lt_echo in |
18947 |
#! $SHELL |
*'\$0 --fallback-echo"') |
18948 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18949 |
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
;; |
18950 |
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
esac |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
# |
|
|
# Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
# |
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
|
# (at your option) any later version. |
|
|
# |
|
|
# This program is distributed in the hope that it will be useful, but |
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
# General Public License for more details. |
|
|
# |
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
# |
|
|
# As a special exception to the GNU General Public License, if you |
|
|
# distribute this file as part of a program that contains a |
|
|
# configuration script generated by Autoconf, you may include it under |
|
|
# the same distribution terms that you use for the rest of that program. |
|
|
|
|
|
# A sed that does not truncate output. |
|
|
SED=$lt_SED |
|
|
|
|
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
Xsed="${SED} -e s/^X//" |
|
18951 |
|
|
18952 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
cfgfile="$ofile" |
|
# if CDPATH is set. |
|
|
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
18953 |
|
|
18954 |
# ### BEGIN LIBTOOL CONFIG |
cat <<__EOF__ >> "$cfgfile" |
18955 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18956 |
|
|
18957 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18958 |
|
|
18966 |
build_old_libs=$enable_static |
build_old_libs=$enable_static |
18967 |
|
|
18968 |
# Whether or not to add -lc for building shared libraries. |
# Whether or not to add -lc for building shared libraries. |
18969 |
build_libtool_need_lc=$need_lc |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
18970 |
|
|
18971 |
|
# Whether or not to disallow shared libs when runtime libs are static |
18972 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18973 |
|
|
18974 |
# Whether or not to optimize for fast installation. |
# Whether or not to optimize for fast installation. |
18975 |
fast_install=$enable_fast_install |
fast_install=$enable_fast_install |
18985 |
AR=$lt_AR |
AR=$lt_AR |
18986 |
AR_FLAGS=$lt_AR_FLAGS |
AR_FLAGS=$lt_AR_FLAGS |
18987 |
|
|
18988 |
# The default C compiler. |
# A C compiler. |
18989 |
CC=$lt_CC |
LTCC=$lt_LTCC |
18990 |
|
|
18991 |
|
# A language-specific compiler. |
18992 |
|
CC=$lt_compiler_RC |
18993 |
|
|
18994 |
# Is the compiler the GNU C compiler? |
# Is the compiler the GNU C compiler? |
18995 |
with_gcc=$GCC |
with_gcc=$GCC_RC |
18996 |
|
|
18997 |
|
# An ERE matcher. |
18998 |
|
EGREP=$lt_EGREP |
18999 |
|
|
19000 |
# The linker used to build libraries. |
# The linker used to build libraries. |
19001 |
LD=$lt_LD |
LD=$lt_LD_RC |
19002 |
|
|
19003 |
# Whether we need hard or soft links. |
# Whether we need hard or soft links. |
19004 |
LN_S=$lt_LN_S |
LN_S=$lt_LN_S |
19007 |
NM=$lt_NM |
NM=$lt_NM |
19008 |
|
|
19009 |
# A symbol stripping program |
# A symbol stripping program |
19010 |
STRIP=$STRIP |
STRIP=$lt_STRIP |
19011 |
|
|
19012 |
# Used to examine libraries when file_magic_cmd begins "file" |
# Used to examine libraries when file_magic_cmd begins "file" |
19013 |
MAGIC_CMD=$MAGIC_CMD |
MAGIC_CMD=$MAGIC_CMD |
19029 |
reload_cmds=$lt_reload_cmds |
reload_cmds=$lt_reload_cmds |
19030 |
|
|
19031 |
# How to pass a linker flag through the compiler. |
# How to pass a linker flag through the compiler. |
19032 |
wl=$lt_wl |
wl=$lt_lt_prog_compiler_wl_RC |
19033 |
|
|
19034 |
# Object file suffix (normally "o"). |
# Object file suffix (normally "o"). |
19035 |
objext="$ac_objext" |
objext="$ac_objext" |
19037 |
# Old archive suffix (normally "a"). |
# Old archive suffix (normally "a"). |
19038 |
libext="$libext" |
libext="$libext" |
19039 |
|
|
19040 |
|
# Shared library suffix (normally ".so"). |
19041 |
|
shrext_cmds='$shrext_cmds' |
19042 |
|
|
19043 |
# Executable file suffix (normally ""). |
# Executable file suffix (normally ""). |
19044 |
exeext="$exeext" |
exeext="$exeext" |
19045 |
|
|
19046 |
# Additional compiler flags for building library objects. |
# Additional compiler flags for building library objects. |
19047 |
pic_flag=$lt_pic_flag |
pic_flag=$lt_lt_prog_compiler_pic_RC |
19048 |
pic_mode=$pic_mode |
pic_mode=$pic_mode |
19049 |
|
|
19050 |
# Does compiler simultaneously support -c and -o options? |
# What is the maximum length of a command? |
19051 |
compiler_c_o=$lt_compiler_c_o |
max_cmd_len=$lt_cv_sys_max_cmd_len |
19052 |
|
|
19053 |
# Can we write directly to a .lo ? |
# Does compiler simultaneously support -c and -o options? |
19054 |
compiler_o_lo=$lt_compiler_o_lo |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19055 |
|
|
19056 |
# Must we lock files when doing compilation ? |
# Must we lock files when doing compilation ? |
19057 |
need_locks=$lt_need_locks |
need_locks=$lt_need_locks |
19072 |
dlopen_self_static=$enable_dlopen_self_static |
dlopen_self_static=$enable_dlopen_self_static |
19073 |
|
|
19074 |
# Compiler flag to prevent dynamic linking. |
# Compiler flag to prevent dynamic linking. |
19075 |
link_static_flag=$lt_link_static_flag |
link_static_flag=$lt_lt_prog_compiler_static_RC |
19076 |
|
|
19077 |
# Compiler flag to turn off builtin functions. |
# Compiler flag to turn off builtin functions. |
19078 |
no_builtin_flag=$lt_no_builtin_flag |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19079 |
|
|
19080 |
# Compiler flag to allow reflexive dlopens. |
# Compiler flag to allow reflexive dlopens. |
19081 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19082 |
|
|
19083 |
# Compiler flag to generate shared objects directly from archives. |
# Compiler flag to generate shared objects directly from archives. |
19084 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19085 |
|
|
19086 |
# Compiler flag to generate thread-safe objects. |
# Compiler flag to generate thread-safe objects. |
19087 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19088 |
|
|
19089 |
# Library versioning type. |
# Library versioning type. |
19090 |
version_type=$version_type |
version_type=$version_type |
19101 |
|
|
19102 |
# Commands used to build and install an old-style archive. |
# Commands used to build and install an old-style archive. |
19103 |
RANLIB=$lt_RANLIB |
RANLIB=$lt_RANLIB |
19104 |
old_archive_cmds=$lt_old_archive_cmds |
old_archive_cmds=$lt_old_archive_cmds_RC |
19105 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
old_postinstall_cmds=$lt_old_postinstall_cmds |
19106 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19107 |
|
|
19108 |
# Create an old-style archive from a shared archive. |
# Create an old-style archive from a shared archive. |
19109 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19110 |
|
|
19111 |
# Create a temporary old-style archive to link instead of a shared archive. |
# Create a temporary old-style archive to link instead of a shared archive. |
19112 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19113 |
|
|
19114 |
# Commands used to build and install a shared archive. |
# Commands used to build and install a shared archive. |
19115 |
archive_cmds=$lt_archive_cmds |
archive_cmds=$lt_archive_cmds_RC |
19116 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19117 |
postinstall_cmds=$lt_postinstall_cmds |
postinstall_cmds=$lt_postinstall_cmds |
19118 |
postuninstall_cmds=$lt_postuninstall_cmds |
postuninstall_cmds=$lt_postuninstall_cmds |
19119 |
|
|
19120 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
19121 |
|
module_cmds=$lt_module_cmds_RC |
19122 |
|
module_expsym_cmds=$lt_module_expsym_cmds_RC |
19123 |
|
|
19124 |
# Commands to strip libraries. |
# Commands to strip libraries. |
19125 |
old_striplib=$lt_old_striplib |
old_striplib=$lt_old_striplib |
19126 |
striplib=$lt_striplib |
striplib=$lt_striplib |
19127 |
|
|
19128 |
|
# Dependencies to place before the objects being linked to create a |
19129 |
|
# shared library. |
19130 |
|
predep_objects=$lt_predep_objects_RC |
19131 |
|
|
19132 |
|
# Dependencies to place after the objects being linked to create a |
19133 |
|
# shared library. |
19134 |
|
postdep_objects=$lt_postdep_objects_RC |
19135 |
|
|
19136 |
|
# Dependencies to place before the objects being linked to create a |
19137 |
|
# shared library. |
19138 |
|
predeps=$lt_predeps_RC |
19139 |
|
|
19140 |
|
# Dependencies to place after the objects being linked to create a |
19141 |
|
# shared library. |
19142 |
|
postdeps=$lt_postdeps_RC |
19143 |
|
|
19144 |
|
# The library search path used internally by the compiler when linking |
19145 |
|
# a shared library. |
19146 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
19147 |
|
|
19148 |
# Method to check whether dependent libraries are shared objects. |
# Method to check whether dependent libraries are shared objects. |
19149 |
deplibs_check_method=$lt_deplibs_check_method |
deplibs_check_method=$lt_deplibs_check_method |
19150 |
|
|
19152 |
file_magic_cmd=$lt_file_magic_cmd |
file_magic_cmd=$lt_file_magic_cmd |
19153 |
|
|
19154 |
# Flag that allows shared libraries with undefined symbols to be built. |
# Flag that allows shared libraries with undefined symbols to be built. |
19155 |
allow_undefined_flag=$lt_allow_undefined_flag |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
19156 |
|
|
19157 |
# Flag that forces no undefined symbols. |
# Flag that forces no undefined symbols. |
19158 |
no_undefined_flag=$lt_no_undefined_flag |
no_undefined_flag=$lt_no_undefined_flag_RC |
19159 |
|
|
19160 |
# Commands used to finish a libtool library installation in a directory. |
# Commands used to finish a libtool library installation in a directory. |
19161 |
finish_cmds=$lt_finish_cmds |
finish_cmds=$lt_finish_cmds |
19164 |
finish_eval=$lt_finish_eval |
finish_eval=$lt_finish_eval |
19165 |
|
|
19166 |
# Take the output of nm and produce a listing of raw symbols and C names. |
# Take the output of nm and produce a listing of raw symbols and C names. |
19167 |
global_symbol_pipe=$lt_global_symbol_pipe |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19168 |
|
|
19169 |
# Transform the output of nm in a proper C declaration |
# Transform the output of nm in a proper C declaration |
19170 |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19171 |
|
|
19172 |
# Transform the output of nm in a C name address pair |
# Transform the output of nm in a C name address pair |
19173 |
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19174 |
|
|
19175 |
# This is the shared library runtime path variable. |
# This is the shared library runtime path variable. |
19176 |
runpath_var=$runpath_var |
runpath_var=$runpath_var |
19182 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19183 |
|
|
19184 |
# How to hardcode a shared library path into an executable. |
# How to hardcode a shared library path into an executable. |
19185 |
hardcode_action=$hardcode_action |
hardcode_action=$hardcode_action_RC |
19186 |
|
|
19187 |
# Whether we should hardcode library paths into libraries. |
# Whether we should hardcode library paths into libraries. |
19188 |
hardcode_into_libs=$hardcode_into_libs |
hardcode_into_libs=$hardcode_into_libs |
19189 |
|
|
19190 |
# Flag to hardcode \$libdir into a binary during linking. |
# Flag to hardcode \$libdir into a binary during linking. |
19191 |
# This must work even if \$libdir does not exist. |
# This must work even if \$libdir does not exist. |
19192 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19193 |
|
|
19194 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
19195 |
|
# a binary during linking. This must work even if \$libdir does |
19196 |
|
# not exist. |
19197 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19198 |
|
|
19199 |
# Whether we need a single -rpath flag with a separated argument. |
# Whether we need a single -rpath flag with a separated argument. |
19200 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19201 |
|
|
19202 |
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19203 |
# resulting binary. |
# resulting binary. |
19204 |
hardcode_direct=$hardcode_direct |
hardcode_direct=$hardcode_direct_RC |
19205 |
|
|
19206 |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19207 |
# resulting binary. |
# resulting binary. |
19208 |
hardcode_minus_L=$hardcode_minus_L |
hardcode_minus_L=$hardcode_minus_L_RC |
19209 |
|
|
19210 |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19211 |
# the resulting binary. |
# the resulting binary. |
19212 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19213 |
|
|
19214 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
19215 |
|
# and all subsequent libraries and executables linked against it. |
19216 |
|
hardcode_automatic=$hardcode_automatic_RC |
19217 |
|
|
19218 |
# Variables whose values should be saved in libtool wrapper scripts and |
# Variables whose values should be saved in libtool wrapper scripts and |
19219 |
# restored at relink time. |
# restored at relink time. |
19220 |
variables_saved_for_relink="$variables_saved_for_relink" |
variables_saved_for_relink="$variables_saved_for_relink" |
19221 |
|
|
19222 |
# Whether libtool must link a program against all its dependency libraries. |
# Whether libtool must link a program against all its dependency libraries. |
19223 |
link_all_deplibs=$link_all_deplibs |
link_all_deplibs=$link_all_deplibs_RC |
19224 |
|
|
19225 |
# Compile-time system search path for libraries |
# Compile-time system search path for libraries |
19226 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
19229 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19230 |
|
|
19231 |
# Fix the shell variable \$srcfile for the compiler. |
# Fix the shell variable \$srcfile for the compiler. |
19232 |
fix_srcfile_path="$fix_srcfile_path" |
fix_srcfile_path="$fix_srcfile_path_RC" |
19233 |
|
|
19234 |
# Set to yes if exported symbols are required. |
# Set to yes if exported symbols are required. |
19235 |
always_export_symbols=$always_export_symbols |
always_export_symbols=$always_export_symbols_RC |
19236 |
|
|
19237 |
# The commands to list exported symbols. |
# The commands to list exported symbols. |
19238 |
export_symbols_cmds=$lt_export_symbols_cmds |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
19239 |
|
|
19240 |
# The commands to extract the exported symbol list from a shared archive. |
# The commands to extract the exported symbol list from a shared archive. |
19241 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19242 |
|
|
19243 |
# Symbols that should not be listed in the preloaded symbols. |
# Symbols that should not be listed in the preloaded symbols. |
19244 |
exclude_expsyms=$lt_exclude_expsyms |
exclude_expsyms=$lt_exclude_expsyms_RC |
19245 |
|
|
19246 |
# Symbols that must always be exported. |
# Symbols that must always be exported. |
19247 |
include_expsyms=$lt_include_expsyms |
include_expsyms=$lt_include_expsyms_RC |
19248 |
|
|
19249 |
# ### END LIBTOOL CONFIG |
# ### END LIBTOOL TAG CONFIG: $tagname |
19250 |
|
|
19251 |
__EOF__ |
__EOF__ |
19252 |
|
|
|
case $host_os in |
|
|
aix3*) |
|
|
cat <<\EOF >> "${ofile}T" |
|
19253 |
|
|
19254 |
# AIX sometimes has problems with the GCC collect2 program. For some |
else |
19255 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
# If there is no Makefile yet, we rely on a make rule to execute |
19256 |
# vanish in a puff of smoke. |
# `config.status --recheck' to rerun these tests and create the |
19257 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
# libtool script then. |
19258 |
COLLECT_NAMES= |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19259 |
export COLLECT_NAMES |
if test -f "$ltmain_in"; then |
19260 |
|
test -f Makefile && make "$ltmain" |
19261 |
|
fi |
19262 |
fi |
fi |
|
EOF |
|
|
;; |
|
|
esac |
|
19263 |
|
|
|
case $host_os in |
|
|
cygwin* | mingw* | pw32* | os2*) |
|
|
cat <<'EOF' >> "${ofile}T" |
|
|
# This is a source program that is used to create dlls on Windows |
|
|
# Don't remove nor modify the starting and closing comments |
|
|
# /* ltdll.c starts here */ |
|
|
# #define WIN32_LEAN_AND_MEAN |
|
|
# #include <windows.h> |
|
|
# #undef WIN32_LEAN_AND_MEAN |
|
|
# #include <stdio.h> |
|
|
# |
|
|
# #ifndef __CYGWIN__ |
|
|
# # ifdef __CYGWIN32__ |
|
|
# # define __CYGWIN__ __CYGWIN32__ |
|
|
# # endif |
|
|
# #endif |
|
|
# |
|
|
# #ifdef __cplusplus |
|
|
# extern "C" { |
|
|
# #endif |
|
|
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
# #ifdef __cplusplus |
|
|
# } |
|
|
# #endif |
|
|
# |
|
|
# #ifdef __CYGWIN__ |
|
|
# #include <cygwin/cygwin_dll.h> |
|
|
# DECLARE_CYGWIN_DLL( DllMain ); |
|
|
# #endif |
|
|
# HINSTANCE __hDllInstance_base; |
|
|
# |
|
|
# BOOL APIENTRY |
|
|
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
# { |
|
|
# __hDllInstance_base = hInst; |
|
|
# return TRUE; |
|
|
# } |
|
|
# /* ltdll.c ends here */ |
|
|
# This is a source program that is used to create import libraries |
|
|
# on Windows for dlls which lack them. Don't remove nor modify the |
|
|
# starting and closing comments |
|
|
# /* impgen.c starts here */ |
|
|
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
# |
|
|
# This file is part of GNU libtool. |
|
|
# |
|
|
# This program is free software; you can redistribute it and/or modify |
|
|
# it under the terms of the GNU General Public License as published by |
|
|
# the Free Software Foundation; either version 2 of the License, or |
|
|
# (at your option) any later version. |
|
|
# |
|
|
# This program is distributed in the hope that it will be useful, |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
# GNU General Public License for more details. |
|
|
# |
|
|
# You should have received a copy of the GNU General Public License |
|
|
# along with this program; if not, write to the Free Software |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
# */ |
|
|
# |
|
|
# #include <stdio.h> /* for printf() */ |
|
|
# #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
# #include <string.h> /* for strdup() */ |
|
|
# |
|
|
# /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
# #ifndef O_BINARY |
|
|
# #define O_BINARY 0 |
|
|
# #endif |
|
|
# |
|
|
# static unsigned int |
|
|
# pe_get16 (fd, offset) |
|
|
# int fd; |
|
|
# int offset; |
|
|
# { |
|
|
# unsigned char b[2]; |
|
|
# lseek (fd, offset, SEEK_SET); |
|
|
# read (fd, b, 2); |
|
|
# return b[0] + (b[1]<<8); |
|
|
# } |
|
|
# |
|
|
# static unsigned int |
|
|
# pe_get32 (fd, offset) |
|
|
# int fd; |
|
|
# int offset; |
|
|
# { |
|
|
# unsigned char b[4]; |
|
|
# lseek (fd, offset, SEEK_SET); |
|
|
# read (fd, b, 4); |
|
|
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
# } |
|
|
# |
|
|
# static unsigned int |
|
|
# pe_as32 (ptr) |
|
|
# void *ptr; |
|
|
# { |
|
|
# unsigned char *b = ptr; |
|
|
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
# } |
|
|
# |
|
|
# int |
|
|
# main (argc, argv) |
|
|
# int argc; |
|
|
# char *argv[]; |
|
|
# { |
|
|
# int dll; |
|
|
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
# unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
# unsigned long name_rvas, nexp; |
|
|
# unsigned char *expdata, *erva; |
|
|
# char *filename, *dll_name; |
|
|
# |
|
|
# filename = argv[1]; |
|
|
# |
|
|
# dll = open(filename, O_RDONLY|O_BINARY); |
|
|
# if (dll < 1) |
|
|
# return 1; |
|
|
# |
|
|
# dll_name = filename; |
|
|
# |
|
|
# for (i=0; filename[i]; i++) |
|
|
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
# dll_name = filename + i +1; |
|
|
# |
|
|
# pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
# opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
# num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
# |
|
|
# if (num_entries < 1) /* no exports */ |
|
|
# return 1; |
|
|
# |
|
|
# export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
# export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
# nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
# secptr = (pe_header_offset + 4 + 20 + |
|
|
# pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
# |
|
|
# expptr = 0; |
|
|
# for (i = 0; i < nsections; i++) |
|
|
# { |
|
|
# char sname[8]; |
|
|
# unsigned long secptr1 = secptr + 40 * i; |
|
|
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
# unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
# unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
# lseek(dll, secptr1, SEEK_SET); |
|
|
# read(dll, sname, 8); |
|
|
# if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
# { |
|
|
# expptr = fptr + (export_rva - vaddr); |
|
|
# if (export_rva + export_size > vaddr + vsize) |
|
|
# export_size = vsize - (export_rva - vaddr); |
|
|
# break; |
|
|
# } |
|
|
# } |
|
|
# |
|
|
# expdata = (unsigned char*)malloc(export_size); |
|
|
# lseek (dll, expptr, SEEK_SET); |
|
|
# read (dll, expdata, export_size); |
|
|
# erva = expdata - export_rva; |
|
|
# |
|
|
# nexp = pe_as32 (expdata+24); |
|
|
# name_rvas = pe_as32 (expdata+32); |
|
|
# |
|
|
# printf ("EXPORTS\n"); |
|
|
# for (i = 0; i<nexp; i++) |
|
|
# { |
|
|
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
# } |
|
|
# |
|
|
# return 0; |
|
|
# } |
|
|
# /* impgen.c ends here */ |
|
19264 |
|
|
19265 |
EOF |
ac_ext=c |
19266 |
;; |
ac_cpp='$CPP $CPPFLAGS' |
19267 |
esac |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19268 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19269 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19270 |
|
|
19271 |
# We use sed instead of cat because bash on DJGPP gets confused if |
CC="$lt_save_CC" |
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
# text mode, it properly converts lines to CR/LF. This bash problem |
|
|
# is reportedly fixed, but why not run on old versions too? |
|
|
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
19272 |
|
|
19273 |
mv -f "${ofile}T" "$ofile" || \ |
;; |
19274 |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
19275 |
chmod +x "$ofile" |
*) |
19276 |
fi |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19277 |
|
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19278 |
|
{ (exit 1); exit 1; }; } |
19279 |
|
;; |
19280 |
|
esac |
19281 |
|
|
19282 |
|
# Append the new tag name to the list of available tags. |
19283 |
|
if test -n "$tagname" ; then |
19284 |
|
available_tags="$available_tags $tagname" |
19285 |
|
fi |
19286 |
|
fi |
19287 |
|
done |
19288 |
|
IFS="$lt_save_ifs" |
19289 |
|
|
19290 |
|
# Now substitute the updated list of available tags. |
19291 |
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19292 |
|
mv "${ofile}T" "$ofile" |
19293 |
|
chmod +x "$ofile" |
19294 |
|
else |
19295 |
|
rm -f "${ofile}T" |
19296 |
|
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19297 |
|
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19298 |
|
{ (exit 1); exit 1; }; } |
19299 |
|
fi |
19300 |
|
fi |
19301 |
|
|
19302 |
|
|
19303 |
|
|
19311 |
|
|
19312 |
|
|
19313 |
|
|
19314 |
|
|
19315 |
|
|
19316 |
|
|
19317 |
|
|
19318 |
|
|
19319 |
|
|
19320 |
|
|
19321 |
|
|
19322 |
|
|
19323 |
|
|
19324 |
|
|
19325 |
|
|
19326 |
|
|
19327 |
|
|
19328 |
|
|
19329 |
|
|
19330 |
|
|
19331 |
|
|
19332 |
# Find a good install program. We prefer a C program (faster), |
# Find a good install program. We prefer a C program (faster), |
19333 |
# so one script is as good as another. But avoid the broken or |
# so one script is as good as another. But avoid the broken or |
19334 |
# incompatible versions: |
# incompatible versions: |
19557 |
|
|
19558 |
|
|
19559 |
missing_dir=`cd $ac_aux_dir && pwd` |
missing_dir=`cd $ac_aux_dir && pwd` |
19560 |
echo "$as_me:$LINENO: checking for working aclocal" >&5 |
|
19561 |
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
19562 |
# Run test in a subshell; some versions of sh will print an error if |
|
19563 |
# an executable is not found, even if stderr is redirected. |
|
19564 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
19565 |
if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
|
19566 |
ACLOCAL=aclocal |
|
19567 |
echo "$as_me:$LINENO: result: found" >&5 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
19568 |
echo "${ECHO_T}found" >&6 |
|
19569 |
else |
|
19570 |
ACLOCAL="$missing_dir/missing aclocal" |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
19571 |
echo "$as_me:$LINENO: result: missing" >&5 |
|
19572 |
echo "${ECHO_T}missing" >&6 |
|
19573 |
fi |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
|
|
|
echo "$as_me:$LINENO: checking for working autoconf" >&5 |
|
|
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOCONF=autoconf |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOCONF="$missing_dir/missing autoconf" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working automake" >&5 |
|
|
echo $ECHO_N "checking for working automake... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (automake --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOMAKE=automake |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOMAKE="$missing_dir/missing automake" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working autoheader" >&5 |
|
|
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
|
|
AUTOHEADER=autoheader |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
AUTOHEADER="$missing_dir/missing autoheader" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
|
|
|
|
echo "$as_me:$LINENO: checking for working makeinfo" >&5 |
|
|
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
|
|
# Run test in a subshell; some versions of sh will print an error if |
|
|
# an executable is not found, even if stderr is redirected. |
|
|
# Redirect stdin to placate older versions of autoconf. Sigh. |
|
|
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
|
|
MAKEINFO=makeinfo |
|
|
echo "$as_me:$LINENO: result: found" >&5 |
|
|
echo "${ECHO_T}found" >&6 |
|
|
else |
|
|
MAKEINFO="$missing_dir/missing makeinfo" |
|
|
echo "$as_me:$LINENO: result: missing" >&5 |
|
|
echo "${ECHO_T}missing" >&6 |
|
|
fi |
|
19574 |
|
|
19575 |
|
|
19576 |
|
|
19898 |
LTLIBOBJS=$ac_ltlibobjs |
LTLIBOBJS=$ac_ltlibobjs |
19899 |
|
|
19900 |
|
|
19901 |
|
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19902 |
|
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19903 |
|
Usually this means the macro was only invoked conditionally." >&5 |
19904 |
|
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19905 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
19906 |
|
{ (exit 1); exit 1; }; } |
19907 |
|
fi |
19908 |
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19909 |
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19910 |
|
Usually this means the macro was only invoked conditionally." >&5 |
19911 |
|
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19912 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
19913 |
|
{ (exit 1); exit 1; }; } |
19914 |
|
fi |
19915 |
|
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19916 |
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19917 |
|
Usually this means the macro was only invoked conditionally." >&5 |
19918 |
|
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19919 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
19920 |
|
{ (exit 1); exit 1; }; } |
19921 |
|
fi |
19922 |
|
|
19923 |
: ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
19924 |
ac_clean_files_save=$ac_clean_files |
ac_clean_files_save=$ac_clean_files |
20352 |
# INIT-COMMANDS section. |
# INIT-COMMANDS section. |
20353 |
# |
# |
20354 |
|
|
20355 |
|
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20356 |
|
|
20357 |
_ACEOF |
_ACEOF |
20358 |
|
|
20385 |
"techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;; |
"techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;; |
20386 |
"techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;; |
"techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;; |
20387 |
"techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;; |
"techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;; |
20388 |
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20389 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20390 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20391 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20475 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
20476 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
20477 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
20478 |
|
s,@CYGPATH_W@,$CYGPATH_W,;t t |
20479 |
s,@PACKAGE@,$PACKAGE,;t t |
s,@PACKAGE@,$PACKAGE,;t t |
20480 |
s,@VERSION@,$VERSION,;t t |
s,@VERSION@,$VERSION,;t t |
20481 |
s,@ACLOCAL@,$ACLOCAL,;t t |
s,@ACLOCAL@,$ACLOCAL,;t t |
20483 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
20484 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
20485 |
s,@MAKEINFO@,$MAKEINFO,;t t |
s,@MAKEINFO@,$MAKEINFO,;t t |
20486 |
|
s,@AMTAR@,$AMTAR,;t t |
20487 |
|
s,@install_sh@,$install_sh,;t t |
20488 |
|
s,@STRIP@,$STRIP,;t t |
20489 |
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
20490 |
|
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
20491 |
|
s,@AWK@,$AWK,;t t |
20492 |
s,@SET_MAKE@,$SET_MAKE,;t t |
s,@SET_MAKE@,$SET_MAKE,;t t |
20493 |
|
s,@am__leading_dot@,$am__leading_dot,;t t |
20494 |
s,@build@,$build,;t t |
s,@build@,$build,;t t |
20495 |
s,@build_cpu@,$build_cpu,;t t |
s,@build_cpu@,$build_cpu,;t t |
20496 |
s,@build_vendor@,$build_vendor,;t t |
s,@build_vendor@,$build_vendor,;t t |
20506 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
20507 |
s,@EXEEXT@,$EXEEXT,;t t |
s,@EXEEXT@,$EXEEXT,;t t |
20508 |
s,@OBJEXT@,$OBJEXT,;t t |
s,@OBJEXT@,$OBJEXT,;t t |
20509 |
|
s,@DEPDIR@,$DEPDIR,;t t |
20510 |
|
s,@am__include@,$am__include,;t t |
20511 |
|
s,@am__quote@,$am__quote,;t t |
20512 |
|
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
20513 |
|
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
20514 |
|
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
20515 |
|
s,@CCDEPMODE@,$CCDEPMODE,;t t |
20516 |
|
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
20517 |
|
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
20518 |
s,@F77@,$F77,;t t |
s,@F77@,$F77,;t t |
20519 |
s,@FFLAGS@,$FFLAGS,;t t |
s,@FFLAGS@,$FFLAGS,;t t |
20520 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
20522 |
s,@CXX@,$CXX,;t t |
s,@CXX@,$CXX,;t t |
20523 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
20524 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
20525 |
|
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
20526 |
|
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
20527 |
|
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
20528 |
|
s,@EGREP@,$EGREP,;t t |
20529 |
s,@LN_S@,$LN_S,;t t |
s,@LN_S@,$LN_S,;t t |
20530 |
s,@ECHO@,$ECHO,;t t |
s,@ECHO@,$ECHO,;t t |
20531 |
|
s,@AR@,$AR,;t t |
20532 |
|
s,@ac_ct_AR@,$ac_ct_AR,;t t |
20533 |
s,@RANLIB@,$RANLIB,;t t |
s,@RANLIB@,$RANLIB,;t t |
20534 |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
s,@STRIP@,$STRIP,;t t |
|
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
20535 |
s,@CPP@,$CPP,;t t |
s,@CPP@,$CPP,;t t |
20536 |
s,@EGREP@,$EGREP,;t t |
s,@CXXCPP@,$CXXCPP,;t t |
20537 |
s,@LIBTOOL@,$LIBTOOL,;t t |
s,@LIBTOOL@,$LIBTOOL,;t t |
20538 |
s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t |
s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t |
20539 |
s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t |
s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t |
21000 |
cat $tmp/config.h |
cat $tmp/config.h |
21001 |
rm -f $tmp/config.h |
rm -f $tmp/config.h |
21002 |
fi |
fi |
21003 |
|
# Compute $ac_file's index in $config_headers. |
21004 |
|
_am_stamp_count=1 |
21005 |
|
for _am_header in $config_headers :; do |
21006 |
|
case $_am_header in |
21007 |
|
$ac_file | $ac_file:* ) |
21008 |
|
break ;; |
21009 |
|
* ) |
21010 |
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21011 |
|
esac |
21012 |
|
done |
21013 |
|
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
21014 |
|
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21015 |
|
X$ac_file : 'X\(//\)[^/]' \| \ |
21016 |
|
X$ac_file : 'X\(//\)$' \| \ |
21017 |
|
X$ac_file : 'X\(/\)' \| \ |
21018 |
|
. : '\(.\)' 2>/dev/null || |
21019 |
|
echo X$ac_file | |
21020 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21021 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21022 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21023 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21024 |
|
s/.*/./; q'`/stamp-h$_am_stamp_count |
21025 |
done |
done |
21026 |
_ACEOF |
_ACEOF |
21027 |
cat >>$CONFIG_STATUS <<\_ACEOF |
cat >>$CONFIG_STATUS <<\_ACEOF |
21138 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
21139 |
echo "$as_me: executing $ac_dest commands" >&6;} |
echo "$as_me: executing $ac_dest commands" >&6;} |
21140 |
case $ac_dest in |
case $ac_dest in |
21141 |
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
21142 |
|
# Strip MF so we end up with the name of the file. |
21143 |
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
21144 |
|
# Check whether this is an Automake generated Makefile or not. |
21145 |
|
# We used to match only the files named `Makefile.in', but |
21146 |
|
# some people rename them; so instead we look at the file content. |
21147 |
|
# Grep'ing the first line is not enough: some people post-process |
21148 |
|
# each Makefile.in and add a new line on top of each file to say so. |
21149 |
|
# So let's grep whole file. |
21150 |
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
21151 |
|
dirpart=`(dirname "$mf") 2>/dev/null || |
21152 |
|
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21153 |
|
X"$mf" : 'X\(//\)[^/]' \| \ |
21154 |
|
X"$mf" : 'X\(//\)$' \| \ |
21155 |
|
X"$mf" : 'X\(/\)' \| \ |
21156 |
|
. : '\(.\)' 2>/dev/null || |
21157 |
|
echo X"$mf" | |
21158 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21159 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21160 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21161 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21162 |
|
s/.*/./; q'` |
21163 |
|
else |
21164 |
|
continue |
21165 |
|
fi |
21166 |
|
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
21167 |
|
# Extract the definition of DEP_FILES from the Makefile without |
21168 |
|
# running `make'. |
21169 |
|
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
21170 |
|
test -z "$DEPDIR" && continue |
21171 |
|
# When using ansi2knr, U may be empty or an underscore; expand it |
21172 |
|
U=`sed -n -e '/^U = / s///p' < "$mf"` |
21173 |
|
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
21174 |
|
# We invoke sed twice because it is the simplest approach to |
21175 |
|
# changing $(DEPDIR) to its actual value in the expansion. |
21176 |
|
for file in `sed -n -e ' |
21177 |
|
/^DEP_FILES = .*\\\\$/ { |
21178 |
|
s/^DEP_FILES = // |
21179 |
|
:loop |
21180 |
|
s/\\\\$// |
21181 |
|
p |
21182 |
|
n |
21183 |
|
/\\\\$/ b loop |
21184 |
|
p |
21185 |
|
} |
21186 |
|
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
21187 |
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21188 |
|
# Make sure the directory exists. |
21189 |
|
test -f "$dirpart/$file" && continue |
21190 |
|
fdir=`(dirname "$file") 2>/dev/null || |
21191 |
|
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21192 |
|
X"$file" : 'X\(//\)[^/]' \| \ |
21193 |
|
X"$file" : 'X\(//\)$' \| \ |
21194 |
|
X"$file" : 'X\(/\)' \| \ |
21195 |
|
. : '\(.\)' 2>/dev/null || |
21196 |
|
echo X"$file" | |
21197 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21198 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21199 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21200 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21201 |
|
s/.*/./; q'` |
21202 |
|
{ if $as_mkdir_p; then |
21203 |
|
mkdir -p $dirpart/$fdir |
21204 |
|
else |
21205 |
|
as_dir=$dirpart/$fdir |
21206 |
|
as_dirs= |
21207 |
|
while test ! -d "$as_dir"; do |
21208 |
|
as_dirs="$as_dir $as_dirs" |
21209 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
21210 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21211 |
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
21212 |
|
X"$as_dir" : 'X\(//\)$' \| \ |
21213 |
|
X"$as_dir" : 'X\(/\)' \| \ |
21214 |
|
. : '\(.\)' 2>/dev/null || |
21215 |
|
echo X"$as_dir" | |
21216 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21217 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21218 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21219 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21220 |
|
s/.*/./; q'` |
21221 |
|
done |
21222 |
|
test ! -n "$as_dirs" || mkdir $as_dirs |
21223 |
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
21224 |
|
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
21225 |
|
{ (exit 1); exit 1; }; }; } |
21226 |
|
|
21227 |
|
# echo "creating $dirpart/$file" |
21228 |
|
echo '# dummy' > "$dirpart/$file" |
21229 |
|
done |
21230 |
|
done |
21231 |
|
;; |
21232 |
esac |
esac |
21233 |
done |
done |
21234 |
_ACEOF |
_ACEOF |