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 |
278 |
|
|
279 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
280 |
# if CDPATH is set. |
# if CDPATH is set. |
281 |
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
282 |
|
|
283 |
if test -z "$ECHO"; then |
if test -z "$ECHO"; then |
284 |
if test "X${echo_test_string+set}" != Xset; then |
if test "X${echo_test_string+set}" != Xset; then |
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 LOG4CXX_INCLUDES LOG4CXX_LDFLAGS LOG4CXX_LIBRARY 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=4.2.4 |
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 && continue |
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 |
|
|
4183 |
|
fi |
4184 |
|
|
4185 |
|
SED=$lt_cv_path_SED |
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 |
|
case $host_os in |
4327 |
|
darwin*) |
4328 |
|
if test "$GCC" = yes; then |
4329 |
|
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
4330 |
|
else |
4331 |
|
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4332 |
|
fi |
4333 |
|
;; |
4334 |
|
esac |
4335 |
|
|
4336 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4337 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
4342 |
# Let the user override the test. |
# Let the user override the test. |
4343 |
lt_cv_path_NM="$NM" |
lt_cv_path_NM="$NM" |
4344 |
else |
else |
4345 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4346 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
4347 |
|
IFS="$lt_save_ifs" |
4348 |
test -z "$ac_dir" && ac_dir=. |
test -z "$ac_dir" && ac_dir=. |
4349 |
tmp_nm=$ac_dir/${ac_tool_prefix}nm |
tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
4350 |
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4351 |
# Check to see if the nm accepts a BSD-compat flag. |
# Check to see if the nm accepts a BSD-compat flag. |
4352 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4353 |
# nm: unknown option "B" ignored |
# nm: unknown option "B" ignored |
4354 |
# Tru64's nm complains that /dev/null is an invalid object file |
# Tru64's nm complains that /dev/null is an invalid object file |
4355 |
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 |
4356 |
|
*/dev/null* | *'Invalid file or object type'*) |
4357 |
lt_cv_path_NM="$tmp_nm -B" |
lt_cv_path_NM="$tmp_nm -B" |
4358 |
break |
break |
4359 |
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
;; |
4360 |
lt_cv_path_NM="$tmp_nm -p" |
*) |
4361 |
break |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4362 |
else |
*/dev/null*) |
4363 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
lt_cv_path_NM="$tmp_nm -p" |
4364 |
continue # so that we can try to find one that supports BSD flags |
break |
4365 |
fi |
;; |
4366 |
|
*) |
4367 |
|
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4368 |
|
continue # so that we can try to find one that supports BSD flags |
4369 |
|
;; |
4370 |
|
esac |
4371 |
|
esac |
4372 |
fi |
fi |
4373 |
done |
done |
4374 |
IFS="$ac_save_ifs" |
IFS="$lt_save_ifs" |
4375 |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4376 |
fi |
fi |
4377 |
fi |
fi |
4378 |
|
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4379 |
|
echo "${ECHO_T}$lt_cv_path_NM" >&6 |
4380 |
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 |
|
4381 |
|
|
4382 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4383 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
4405 |
# 'pass_all' -- all dependencies passed with no checks. |
# 'pass_all' -- all dependencies passed with no checks. |
4406 |
# 'test_compile' -- check by making test program. |
# 'test_compile' -- check by making test program. |
4407 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
# 'file_magic [[regex]]' -- check by looking for files in library path |
4408 |
# which responds to the $file_magic_cmd with a given egrep regex. |
# which responds to the $file_magic_cmd with a given extended regex. |
4409 |
# 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 |
4410 |
# whether `pass_all' will *always* work, you probably want this one. |
# whether `pass_all' will *always* work, you probably want this one. |
4411 |
|
|
4418 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4419 |
;; |
;; |
4420 |
|
|
4421 |
bsdi4*) |
bsdi[45]*) |
4422 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4423 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
4424 |
lt_cv_file_magic_test_file=/shlib/libc.so |
lt_cv_file_magic_test_file=/shlib/libc.so |
4425 |
;; |
;; |
4426 |
|
|
4427 |
cygwin* | mingw* | pw32*) |
cygwin*) |
4428 |
|
# func_win32_libid is a shell function defined in ltmain.sh |
4429 |
|
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4430 |
|
lt_cv_file_magic_cmd='func_win32_libid' |
4431 |
|
;; |
4432 |
|
|
4433 |
|
mingw* | pw32*) |
4434 |
|
# Base MSYS/MinGW do not provide the 'file' command needed by |
4435 |
|
# func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4436 |
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)?' |
4437 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
4438 |
;; |
;; |
4439 |
|
|
4440 |
darwin* | rhapsody*) |
darwin* | rhapsody*) |
4441 |
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 |
|
4442 |
;; |
;; |
4443 |
|
|
4444 |
freebsd*) |
freebsd* | kfreebsd*-gnu | dragonfly*) |
4445 |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4446 |
case $host_cpu in |
case $host_cpu in |
4447 |
i*86 ) |
i*86 ) |
4448 |
# Not sure whether the presence of OpenBSD here was a mistake. |
# Not sure whether the presence of OpenBSD here was a mistake. |
4449 |
# Let's accept both of them until this is cleared up. |
# Let's accept both of them until this is cleared up. |
4450 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4451 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
4452 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4453 |
;; |
;; |
4461 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4462 |
;; |
;; |
4463 |
|
|
4464 |
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' |
|
4465 |
lt_cv_file_magic_cmd=/usr/bin/file |
lt_cv_file_magic_cmd=/usr/bin/file |
4466 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
case "$host_cpu" in |
4467 |
;; |
ia64*) |
4468 |
|
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4469 |
irix5* | irix6* | nonstopux*) |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4470 |
case $host_os in |
;; |
4471 |
irix5* | nonstopux*) |
hppa*64*) |
4472 |
# 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]' |
4473 |
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 |
4474 |
;; |
;; |
4475 |
*) |
*) |
4476 |
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' |
4477 |
*-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" |
|
4478 |
;; |
;; |
4479 |
esac |
esac |
4480 |
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
;; |
4481 |
|
|
4482 |
|
irix5* | irix6* | nonstopux*) |
4483 |
|
case $LD in |
4484 |
|
*-32|*"-32 ") libmagic=32-bit;; |
4485 |
|
*-n32|*"-n32 ") libmagic=N32;; |
4486 |
|
*-64|*"-64 ") libmagic=64-bit;; |
4487 |
|
*) libmagic=never-match;; |
4488 |
|
esac |
4489 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4490 |
;; |
;; |
4491 |
|
|
4492 |
# This must be Linux ELF. |
# This must be Linux ELF. |
4493 |
linux-gnu*) |
linux*) |
4494 |
case $host_cpu in |
lt_cv_deplibs_check_method=pass_all |
|
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | x86_64*) |
|
|
lt_cv_deplibs_check_method=pass_all ;; |
|
|
*) |
|
|
# glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
esac |
|
|
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
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*) |
|
lt_cv_file_magic_cmd=/usr/bin/file |
|
|
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
4516 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4517 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4518 |
else |
else |
4519 |
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4520 |
fi |
fi |
4521 |
;; |
;; |
4522 |
|
|
4523 |
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 |
|
4524 |
lt_cv_deplibs_check_method=pass_all |
lt_cv_deplibs_check_method=pass_all |
4525 |
;; |
;; |
4526 |
|
|
4530 |
|
|
4531 |
solaris*) |
solaris*) |
4532 |
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 |
|
4533 |
;; |
;; |
4534 |
|
|
4535 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
4555 |
;; |
;; |
4556 |
esac |
esac |
4557 |
;; |
;; |
4558 |
|
|
4559 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
4560 |
|
lt_cv_deplibs_check_method=pass_all |
4561 |
|
;; |
4562 |
esac |
esac |
4563 |
|
|
4564 |
fi |
fi |
4566 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
4567 |
file_magic_cmd=$lt_cv_file_magic_cmd |
file_magic_cmd=$lt_cv_file_magic_cmd |
4568 |
deplibs_check_method=$lt_cv_deplibs_check_method |
deplibs_check_method=$lt_cv_deplibs_check_method |
4569 |
|
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4570 |
|
|
4571 |
|
|
4572 |
|
|
4573 |
|
|
4574 |
|
# If no C compiler was specified, use CC. |
4575 |
|
LTCC=${LTCC-"$CC"} |
4576 |
|
|
4577 |
|
# Allow CC to be a program name with arguments. |
4578 |
|
compiler=$CC |
4579 |
|
|
4580 |
|
|
4581 |
|
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4582 |
|
if test "${enable_libtool_lock+set}" = set; then |
4583 |
|
enableval="$enable_libtool_lock" |
4584 |
|
|
4585 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
fi; |
4586 |
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 |
|
|
|
|
|
# Handle CRLF in mingw tool chain |
|
|
opt_cr= |
|
|
case $host_os in |
|
|
mingw*) |
|
|
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
;; |
|
|
esac |
|
|
|
|
|
# If we're using GNU nm, then use its standard symbol codes. |
|
|
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 |
|
4587 |
|
|
4588 |
|
# Some flags need to be propagated to the compiler or linker for good |
4589 |
|
# libtool support. |
4590 |
|
case $host in |
4591 |
|
ia64-*-hpux*) |
4592 |
|
# Find out which ABI we are using. |
4593 |
|
echo 'int i;' > conftest.$ac_ext |
4594 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4595 |
(eval $ac_compile) 2>&5 |
(eval $ac_compile) 2>&5 |
4596 |
ac_status=$? |
ac_status=$? |
4597 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4598 |
(exit $ac_status); }; then |
(exit $ac_status); }; then |
4599 |
# Now try to grab the symbols. |
case `/usr/bin/file conftest.$ac_objext` in |
4600 |
nlist=conftest.nm |
*ELF-32*) |
4601 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
HPUX_IA64_MODE="32" |
4602 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
;; |
4603 |
ac_status=$? |
*ELF-64*) |
4604 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
HPUX_IA64_MODE="64" |
4605 |
(exit $ac_status); } && test -s "$nlist"; then |
;; |
4606 |
# Try sorting and uniquifying the output. |
esac |
4607 |
if sort "$nlist" | uniq > "$nlist"T; then |
fi |
4608 |
mv -f "$nlist"T "$nlist" |
rm -rf conftest* |
4609 |
else |
;; |
4610 |
rm -f "$nlist"T |
*-*-irix6*) |
4611 |
fi |
# Find out which ABI we are using. |
4612 |
|
echo '#line 4612 "configure"' > conftest.$ac_ext |
4613 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4614 |
|
(eval $ac_compile) 2>&5 |
4615 |
|
ac_status=$? |
4616 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4617 |
|
(exit $ac_status); }; then |
4618 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
4619 |
|
case `/usr/bin/file conftest.$ac_objext` in |
4620 |
|
*32-bit*) |
4621 |
|
LD="${LD-ld} -melf32bsmip" |
4622 |
|
;; |
4623 |
|
*N32*) |
4624 |
|
LD="${LD-ld} -melf32bmipn32" |
4625 |
|
;; |
4626 |
|
*64-bit*) |
4627 |
|
LD="${LD-ld} -melf64bmip" |
4628 |
|
;; |
4629 |
|
esac |
4630 |
|
else |
4631 |
|
case `/usr/bin/file conftest.$ac_objext` in |
4632 |
|
*32-bit*) |
4633 |
|
LD="${LD-ld} -32" |
4634 |
|
;; |
4635 |
|
*N32*) |
4636 |
|
LD="${LD-ld} -n32" |
4637 |
|
;; |
4638 |
|
*64-bit*) |
4639 |
|
LD="${LD-ld} -64" |
4640 |
|
;; |
4641 |
|
esac |
4642 |
|
fi |
4643 |
|
fi |
4644 |
|
rm -rf conftest* |
4645 |
|
;; |
4646 |
|
|
4647 |
# Make sure that we snagged all the symbols we need. |
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4648 |
if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
# Find out which ABI we are using. |
4649 |
if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
echo 'int i;' > conftest.$ac_ext |
4650 |
cat <<EOF > conftest.$ac_ext |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4651 |
#ifdef __cplusplus |
(eval $ac_compile) 2>&5 |
4652 |
extern "C" { |
ac_status=$? |
4653 |
#endif |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4654 |
|
(exit $ac_status); }; then |
4655 |
|
case "`/usr/bin/file conftest.o`" in |
4656 |
|
*32-bit*) |
4657 |
|
case $host in |
4658 |
|
x86_64-*linux*) |
4659 |
|
LD="${LD-ld} -m elf_i386" |
4660 |
|
;; |
4661 |
|
ppc64-*linux*|powerpc64-*linux*) |
4662 |
|
LD="${LD-ld} -m elf32ppclinux" |
4663 |
|
;; |
4664 |
|
s390x-*linux*) |
4665 |
|
LD="${LD-ld} -m elf_s390" |
4666 |
|
;; |
4667 |
|
sparc64-*linux*) |
4668 |
|
LD="${LD-ld} -m elf32_sparc" |
4669 |
|
;; |
4670 |
|
esac |
4671 |
|
;; |
4672 |
|
*64-bit*) |
4673 |
|
case $host in |
4674 |
|
x86_64-*linux*) |
4675 |
|
LD="${LD-ld} -m elf_x86_64" |
4676 |
|
;; |
4677 |
|
ppc*-*linux*|powerpc*-*linux*) |
4678 |
|
LD="${LD-ld} -m elf64ppc" |
4679 |
|
;; |
4680 |
|
s390*-*linux*) |
4681 |
|
LD="${LD-ld} -m elf64_s390" |
4682 |
|
;; |
4683 |
|
sparc*-*linux*) |
4684 |
|
LD="${LD-ld} -m elf64_sparc" |
4685 |
|
;; |
4686 |
|
esac |
4687 |
|
;; |
4688 |
|
esac |
4689 |
|
fi |
4690 |
|
rm -rf conftest* |
4691 |
|
;; |
4692 |
|
|
4693 |
EOF |
*-*-sco3.2v5*) |
4694 |
# Now generate the symbol file. |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4695 |
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
SAVE_CFLAGS="$CFLAGS" |
4696 |
|
CFLAGS="$CFLAGS -belf" |
4697 |
|
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4698 |
|
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
4699 |
|
if test "${lt_cv_cc_needs_belf+set}" = set; then |
4700 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4701 |
|
else |
4702 |
|
ac_ext=c |
4703 |
|
ac_cpp='$CPP $CPPFLAGS' |
4704 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4705 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4706 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4707 |
|
|
4708 |
cat <<EOF >> conftest.$ac_ext |
cat >conftest.$ac_ext <<_ACEOF |
4709 |
#if defined (__STDC__) && __STDC__ |
/* confdefs.h. */ |
4710 |
# define lt_ptr void * |
_ACEOF |
4711 |
#else |
cat confdefs.h >>conftest.$ac_ext |
4712 |
# define lt_ptr char * |
cat >>conftest.$ac_ext <<_ACEOF |
4713 |
# define const |
/* end confdefs.h. */ |
|
#endif |
|
4714 |
|
|
4715 |
/* The mapping between symbol names and symbols. */ |
int |
4716 |
const struct { |
main () |
|
const char *name; |
|
|
lt_ptr address; |
|
|
} |
|
|
lt_preloaded_symbols[] = |
|
4717 |
{ |
{ |
|
EOF |
|
|
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext |
|
|
cat <<\EOF >> conftest.$ac_ext |
|
|
{0, (lt_ptr) 0} |
|
|
}; |
|
4718 |
|
|
4719 |
#ifdef __cplusplus |
; |
4720 |
|
return 0; |
4721 |
} |
} |
4722 |
#endif |
_ACEOF |
4723 |
EOF |
rm -f conftest.$ac_objext conftest$ac_exeext |
4724 |
# Now try linking the two files. |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4725 |
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 |
|
4726 |
ac_status=$? |
ac_status=$? |
4727 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
4728 |
|
rm -f conftest.er1 |
4729 |
|
cat conftest.err >&5 |
4730 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4731 |
(exit $ac_status); } && test -s conftest$ac_exeext; then |
(exit $ac_status); } && |
4732 |
pipe_works=yes |
{ ac_try='test -z "$ac_c_werror_flag" |
4733 |
fi |
|| test ! -s conftest.err' |
4734 |
LIBS="$save_LIBS" |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4735 |
CFLAGS="$save_CFLAGS" |
(eval $ac_try) 2>&5 |
4736 |
else |
ac_status=$? |
4737 |
echo "cannot find nm_test_func in $nlist" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4738 |
fi |
(exit $ac_status); }; } && |
4739 |
else |
{ ac_try='test -s conftest$ac_exeext' |
4740 |
echo "cannot find nm_test_var in $nlist" >&5 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4741 |
fi |
(eval $ac_try) 2>&5 |
4742 |
else |
ac_status=$? |
4743 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4744 |
fi |
(exit $ac_status); }; }; then |
4745 |
else |
lt_cv_cc_needs_belf=yes |
4746 |
echo "$progname: failed program was:" >&5 |
else |
4747 |
cat conftest.$ac_ext >&5 |
echo "$as_me: failed program was:" >&5 |
4748 |
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 |
|
4749 |
|
|
4750 |
|
lt_cv_cc_needs_belf=no |
4751 |
fi |
fi |
4752 |
|
rm -f conftest.err conftest.$ac_objext \ |
4753 |
|
conftest$ac_exeext conftest.$ac_ext |
4754 |
|
ac_ext=c |
4755 |
|
ac_cpp='$CPP $CPPFLAGS' |
4756 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4757 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4758 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4759 |
|
|
|
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 |
|
4760 |
fi |
fi |
4761 |
|
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4762 |
|
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
4763 |
|
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4764 |
|
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4765 |
|
CFLAGS="$SAVE_CFLAGS" |
4766 |
|
fi |
4767 |
|
;; |
4768 |
|
|
4769 |
|
esac |
4770 |
|
|
4771 |
|
need_locks="$enable_libtool_lock" |
4772 |
|
|
4773 |
|
|
4774 |
ac_ext=c |
ac_ext=c |
4775 |
ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
5006 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5007 |
|
|
5008 |
|
|
|
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 |
|
|
|
|
|
|
|
5009 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5010 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5011 |
if test "${ac_cv_header_stdc+set}" = set; then |
if test "${ac_cv_header_stdc+set}" = set; then |
5396 |
|
|
5397 |
|
|
5398 |
|
|
5399 |
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5400 |
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5401 |
|
(test "X$CXX" != "Xg++"))) ; then |
5402 |
# Only perform the check for file, if the check method requires it |
ac_ext=cc |
5403 |
case $deplibs_check_method in |
ac_cpp='$CXXCPP $CPPFLAGS' |
5404 |
file_magic*) |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5405 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5406 |
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5407 |
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5408 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
5409 |
|
if test -z "$CXXCPP"; then |
5410 |
|
if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5411 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5412 |
else |
else |
5413 |
case $MAGIC_CMD in |
# Double quotes because CXXCPP needs to be expanded |
5414 |
/*) |
for CXXCPP in "$CXX -E" "/lib/cpp" |
5415 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
do |
5416 |
;; |
ac_preproc_ok=false |
5417 |
?:/*) |
for ac_cxx_preproc_warn_flag in '' yes |
5418 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
do |
5419 |
;; |
# Use a header file that comes with gcc, so configuring glibc |
5420 |
*) |
# with a fresh cross-compiler works. |
5421 |
ac_save_MAGIC_CMD="$MAGIC_CMD" |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5422 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
# <limits.h> exists even on freestanding compilers. |
5423 |
ac_dummy="/usr/bin:$PATH" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5424 |
for ac_dir in $ac_dummy; do |
# not just through cpp. "Syntax error" is here to catch this case. |
5425 |
test -z "$ac_dir" && ac_dir=. |
cat >conftest.$ac_ext <<_ACEOF |
5426 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
/* confdefs.h. */ |
5427 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
_ACEOF |
5428 |
if test -n "$file_magic_test_file"; then |
cat confdefs.h >>conftest.$ac_ext |
5429 |
case $deplibs_check_method in |
cat >>conftest.$ac_ext <<_ACEOF |
5430 |
"file_magic "*) |
/* end confdefs.h. */ |
5431 |
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
#ifdef __STDC__ |
5432 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
# include <limits.h> |
5433 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
#else |
5434 |
egrep "$file_magic_regex" > /dev/null; then |
# include <assert.h> |
5435 |
: |
#endif |
5436 |
else |
Syntax error |
5437 |
cat <<EOF 1>&2 |
_ACEOF |
5438 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5439 |
*** Warning: the command libtool uses to detect shared libraries, |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5440 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
ac_status=$? |
5441 |
*** The result is that libtool may fail to recognize shared libraries |
grep -v '^ *+' conftest.er1 >conftest.err |
5442 |
*** as such. This will affect the creation of libtool libraries that |
rm -f conftest.er1 |
5443 |
*** depend on shared libraries, but programs linked with such libtool |
cat conftest.err >&5 |
5444 |
*** libraries will work regardless of this problem. Nevertheless, you |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5445 |
*** may want to report the problem to your system manager and/or to |
(exit $ac_status); } >/dev/null; then |
5446 |
*** bug-libtool@gnu.org |
if test -s conftest.err; then |
5447 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5448 |
EOF |
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5449 |
fi ;; |
else |
5450 |
esac |
ac_cpp_err= |
5451 |
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 |
|
5452 |
else |
else |
5453 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
5454 |
fi |
fi |
5455 |
|
if test -z "$ac_cpp_err"; then |
5456 |
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 |
|
5457 |
else |
else |
5458 |
case $MAGIC_CMD in |
echo "$as_me: failed program was:" >&5 |
5459 |
/*) |
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 |
|
5460 |
|
|
5461 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
# Broken: fails on valid input. |
5462 |
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 |
|
5463 |
fi |
fi |
5464 |
|
rm -f conftest.err conftest.$ac_ext |
5465 |
|
|
5466 |
|
# OK, works on sane cases. Now check whether non-existent headers |
5467 |
|
# can be detected and how. |
5468 |
|
cat >conftest.$ac_ext <<_ACEOF |
5469 |
|
/* confdefs.h. */ |
5470 |
|
_ACEOF |
5471 |
|
cat confdefs.h >>conftest.$ac_ext |
5472 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5473 |
|
/* end confdefs.h. */ |
5474 |
|
#include <ac_nonexistent.h> |
5475 |
|
_ACEOF |
5476 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5477 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5478 |
|
ac_status=$? |
5479 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5480 |
|
rm -f conftest.er1 |
5481 |
|
cat conftest.err >&5 |
5482 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5483 |
|
(exit $ac_status); } >/dev/null; then |
5484 |
|
if test -s conftest.err; then |
5485 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5486 |
|
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5487 |
else |
else |
5488 |
MAGIC_CMD=: |
ac_cpp_err= |
|
fi |
|
|
fi |
|
|
|
|
5489 |
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 |
|
5490 |
else |
else |
5491 |
if test -n "$RANLIB"; then |
ac_cpp_err=yes |
5492 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
fi |
5493 |
|
if test -z "$ac_cpp_err"; then |
5494 |
|
# Broken: success on invalid input. |
5495 |
|
continue |
5496 |
else |
else |
5497 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
echo "$as_me: failed program was:" >&5 |
5498 |
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 |
|
5499 |
|
|
5500 |
|
# Passes both tests. |
5501 |
|
ac_preproc_ok=: |
5502 |
|
break |
5503 |
fi |
fi |
5504 |
fi |
rm -f conftest.err conftest.$ac_ext |
5505 |
RANLIB=$ac_cv_prog_RANLIB |
|
5506 |
if test -n "$RANLIB"; then |
done |
5507 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5508 |
echo "${ECHO_T}$RANLIB" >&6 |
rm -f conftest.err conftest.$ac_ext |
5509 |
else |
if $ac_preproc_ok; then |
5510 |
echo "$as_me:$LINENO: result: no" >&5 |
break |
|
echo "${ECHO_T}no" >&6 |
|
5511 |
fi |
fi |
5512 |
|
|
5513 |
|
done |
5514 |
|
ac_cv_prog_CXXCPP=$CXXCPP |
5515 |
|
|
5516 |
fi |
fi |
5517 |
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. |
|
5518 |
else |
else |
5519 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
ac_cv_prog_CXXCPP=$CXXCPP |
5520 |
for as_dir in $PATH |
fi |
5521 |
|
echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5522 |
|
echo "${ECHO_T}$CXXCPP" >&6 |
5523 |
|
ac_preproc_ok=false |
5524 |
|
for ac_cxx_preproc_warn_flag in '' yes |
5525 |
do |
do |
5526 |
IFS=$as_save_IFS |
# Use a header file that comes with gcc, so configuring glibc |
5527 |
test -z "$as_dir" && as_dir=. |
# with a fresh cross-compiler works. |
5528 |
for ac_exec_ext in '' $ac_executable_extensions; do |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5529 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
# <limits.h> exists even on freestanding compilers. |
5530 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
# On the NeXT, cc -E runs the code through the compiler's parser, |
5531 |
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. |
5532 |
break 2 |
cat >conftest.$ac_ext <<_ACEOF |
5533 |
|
/* confdefs.h. */ |
5534 |
|
_ACEOF |
5535 |
|
cat confdefs.h >>conftest.$ac_ext |
5536 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5537 |
|
/* end confdefs.h. */ |
5538 |
|
#ifdef __STDC__ |
5539 |
|
# include <limits.h> |
5540 |
|
#else |
5541 |
|
# include <assert.h> |
5542 |
|
#endif |
5543 |
|
Syntax error |
5544 |
|
_ACEOF |
5545 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5546 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5547 |
|
ac_status=$? |
5548 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5549 |
|
rm -f conftest.er1 |
5550 |
|
cat conftest.err >&5 |
5551 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5552 |
|
(exit $ac_status); } >/dev/null; then |
5553 |
|
if test -s conftest.err; then |
5554 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5555 |
|
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5556 |
|
else |
5557 |
|
ac_cpp_err= |
5558 |
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 |
|
5559 |
else |
else |
5560 |
echo "$as_me:$LINENO: result: no" >&5 |
ac_cpp_err=yes |
|
echo "${ECHO_T}no" >&6 |
|
5561 |
fi |
fi |
5562 |
|
if test -z "$ac_cpp_err"; then |
5563 |
RANLIB=$ac_ct_RANLIB |
: |
5564 |
else |
else |
5565 |
RANLIB="$ac_cv_prog_RANLIB" |
echo "$as_me: failed program was:" >&5 |
5566 |
fi |
sed 's/^/| /' conftest.$ac_ext >&5 |
5567 |
|
|
5568 |
if test -n "$ac_tool_prefix"; then |
# Broken: fails on valid input. |
5569 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
continue |
5570 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
fi |
5571 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
rm -f conftest.err conftest.$ac_ext |
5572 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
5573 |
if test "${ac_cv_prog_STRIP+set}" = set; then |
# OK, works on sane cases. Now check whether non-existent headers |
5574 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
# can be detected and how. |
5575 |
|
cat >conftest.$ac_ext <<_ACEOF |
5576 |
|
/* confdefs.h. */ |
5577 |
|
_ACEOF |
5578 |
|
cat confdefs.h >>conftest.$ac_ext |
5579 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5580 |
|
/* end confdefs.h. */ |
5581 |
|
#include <ac_nonexistent.h> |
5582 |
|
_ACEOF |
5583 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5584 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5585 |
|
ac_status=$? |
5586 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5587 |
|
rm -f conftest.er1 |
5588 |
|
cat conftest.err >&5 |
5589 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5590 |
|
(exit $ac_status); } >/dev/null; then |
5591 |
|
if test -s conftest.err; then |
5592 |
|
ac_cpp_err=$ac_cxx_preproc_warn_flag |
5593 |
|
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5594 |
|
else |
5595 |
|
ac_cpp_err= |
5596 |
|
fi |
5597 |
else |
else |
5598 |
if test -n "$STRIP"; then |
ac_cpp_err=yes |
5599 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
fi |
5600 |
|
if test -z "$ac_cpp_err"; then |
5601 |
|
# Broken: success on invalid input. |
5602 |
|
continue |
5603 |
else |
else |
5604 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
echo "$as_me: failed program was:" >&5 |
5605 |
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_STRIP="${ac_tool_prefix}strip" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
fi |
|
|
done |
|
|
done |
|
5606 |
|
|
5607 |
|
# Passes both tests. |
5608 |
|
ac_preproc_ok=: |
5609 |
|
break |
5610 |
fi |
fi |
5611 |
fi |
rm -f conftest.err conftest.$ac_ext |
5612 |
STRIP=$ac_cv_prog_STRIP |
|
5613 |
if test -n "$STRIP"; then |
done |
5614 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5615 |
echo "${ECHO_T}$STRIP" >&6 |
rm -f conftest.err conftest.$ac_ext |
5616 |
|
if $ac_preproc_ok; then |
5617 |
|
: |
5618 |
else |
else |
5619 |
echo "$as_me:$LINENO: result: no" >&5 |
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5620 |
echo "${ECHO_T}no" >&6 |
See \`config.log' for more details." >&5 |
5621 |
|
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5622 |
|
See \`config.log' for more details." >&2;} |
5623 |
|
{ (exit 1); exit 1; }; } |
5624 |
fi |
fi |
5625 |
|
|
5626 |
|
ac_ext=cc |
5627 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
5628 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5629 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5630 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5631 |
|
|
5632 |
fi |
fi |
5633 |
if test -z "$ac_cv_prog_STRIP"; then |
|
5634 |
ac_ct_STRIP=$STRIP |
|
5635 |
# Extract the first word of "strip", so it can be a program name with args. |
|
5636 |
set dummy strip; ac_word=$2 |
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
5637 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
5638 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
# find the maximum length of command line arguments |
5639 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
5640 |
|
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
5641 |
|
if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
5642 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5643 |
else |
else |
5644 |
if test -n "$ac_ct_STRIP"; then |
i=0 |
5645 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
teststring="ABCD" |
5646 |
else |
|
5647 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
case $build_os in |
5648 |
for as_dir in $PATH |
msdosdjgpp*) |
5649 |
do |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
5650 |
IFS=$as_save_IFS |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
5651 |
test -z "$as_dir" && as_dir=. |
# during glob expansion). Even if it were fixed, the result of this |
5652 |
for ac_exec_ext in '' $ac_executable_extensions; do |
# check would be larger than it should be. |
5653 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
5654 |
ac_cv_prog_ac_ct_STRIP="strip" |
;; |
5655 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5656 |
break 2 |
gnu*) |
5657 |
fi |
# Under GNU Hurd, this test is not required because there is |
5658 |
done |
# no limit to the length of command line arguments. |
5659 |
done |
# Libtool will interpret -1 as no limit whatsoever |
5660 |
|
lt_cv_sys_max_cmd_len=-1; |
5661 |
|
;; |
5662 |
|
|
5663 |
|
cygwin* | mingw*) |
5664 |
|
# On Win9x/ME, this test blows up -- it succeeds, but takes |
5665 |
|
# about 5 minutes as the teststring grows exponentially. |
5666 |
|
# Worse, since 9x/ME are not pre-emptively multitasking, |
5667 |
|
# you end up with a "frozen" computer, even though with patience |
5668 |
|
# 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 |
|
amigaos*) |
5675 |
|
# 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 |
|
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5681 |
|
# This has been around since 386BSD, at least. Likely further. |
5682 |
|
if test -x /sbin/sysctl; then |
5683 |
|
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
5684 |
|
elif test -x /usr/sbin/sysctl; then |
5685 |
|
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
5686 |
|
else |
5687 |
|
lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
5688 |
|
fi |
5689 |
|
# And add a safety zone |
5690 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5691 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5692 |
|
;; |
5693 |
|
osf*) |
5694 |
|
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5695 |
|
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
5696 |
|
# nice to cause kernel panics so lets avoid the loop below. |
5697 |
|
# First set a reasonable default. |
5698 |
|
lt_cv_sys_max_cmd_len=16384 |
5699 |
|
# |
5700 |
|
if test -x /sbin/sysconfig; then |
5701 |
|
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
5702 |
|
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
5703 |
|
esac |
5704 |
|
fi |
5705 |
|
;; |
5706 |
|
*) |
5707 |
|
# If test is not a shell built-in, we'll probably end up computing a |
5708 |
|
# maximum length that is only half of the actual maximum length, but |
5709 |
|
# we can't tell. |
5710 |
|
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5711 |
|
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
5712 |
|
= "XX$teststring") >/dev/null 2>&1 && |
5713 |
|
new_result=`expr "X$teststring" : ".*" 2>&1` && |
5714 |
|
lt_cv_sys_max_cmd_len=$new_result && |
5715 |
|
test $i != 17 # 1/2 MB should be enough |
5716 |
|
do |
5717 |
|
i=`expr $i + 1` |
5718 |
|
teststring=$teststring$teststring |
5719 |
|
done |
5720 |
|
teststring= |
5721 |
|
# Add a significant safety factor because C++ compilers can tack on massive |
5722 |
|
# amounts of additional arguments before passing them to the linker. |
5723 |
|
# It appears as though 1/2 is a usable value. |
5724 |
|
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
5725 |
|
;; |
5726 |
|
esac |
5727 |
|
|
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
fi |
|
5728 |
fi |
fi |
5729 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
5730 |
if test -n "$ac_ct_STRIP"; then |
if test -n $lt_cv_sys_max_cmd_len ; then |
5731 |
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5732 |
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
5733 |
else |
else |
5734 |
echo "$as_me:$LINENO: result: no" >&5 |
echo "$as_me:$LINENO: result: none" >&5 |
5735 |
echo "${ECHO_T}no" >&6 |
echo "${ECHO_T}none" >&6 |
5736 |
fi |
fi |
5737 |
|
|
5738 |
STRIP=$ac_ct_STRIP |
|
5739 |
|
|
5740 |
|
|
5741 |
|
# Check for command to grab the raw symbol name followed by C symbol from nm. |
5742 |
|
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
5743 |
|
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
5744 |
|
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
5745 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5746 |
else |
else |
|
STRIP="$ac_cv_prog_STRIP" |
|
|
fi |
|
5747 |
|
|
5748 |
|
# These are sane defaults that work on at least a few old systems. |
5749 |
|
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
5750 |
|
|
5751 |
enable_dlopen=no |
# Character class describing NM global symbol codes. |
5752 |
enable_win32_dll=no |
symcode='[BCDEGRST]' |
5753 |
|
|
5754 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
# Regexp to match symbols that can be accessed directly from C. |
5755 |
if test "${enable_libtool_lock+set}" = set; then |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
enableval="$enable_libtool_lock" |
|
5756 |
|
|
5757 |
fi; |
# Transform an extracted symbol line into a proper C declaration |
5758 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
5759 |
|
|
5760 |
# Some flags need to be propagated to the compiler or linker for good |
# Transform an extracted symbol line into symbol name and symbol address |
5761 |
# libtool support. |
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'" |
5762 |
case $host in |
|
5763 |
*-*-irix6*) |
# Define system-specific variables. |
5764 |
# Find out which ABI we are using. |
case $host_os in |
5765 |
echo '#line 5348 "configure"' > conftest.$ac_ext |
aix*) |
5766 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
symcode='[BCDT]' |
5767 |
(eval $ac_compile) 2>&5 |
;; |
5768 |
ac_status=$? |
cygwin* | mingw* | pw32*) |
5769 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
symcode='[ABCDGISTW]' |
5770 |
(exit $ac_status); }; then |
;; |
5771 |
case `/usr/bin/file conftest.$ac_objext` in |
hpux*) # Its linker distinguishes data from code symbols |
5772 |
*32-bit*) |
if test "$host_cpu" = ia64; then |
5773 |
LD="${LD-ld} -32" |
symcode='[ABCDEGRST]' |
|
;; |
|
|
*N32*) |
|
|
LD="${LD-ld} -n32" |
|
|
;; |
|
|
*64-bit*) |
|
|
LD="${LD-ld} -64" |
|
|
;; |
|
|
esac |
|
5774 |
fi |
fi |
5775 |
rm -rf conftest* |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5776 |
|
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'" |
5777 |
;; |
;; |
5778 |
|
linux*) |
5779 |
*-*-linux*) |
if test "$host_cpu" = ia64; then |
5780 |
# Test if the compiler is 64bit |
symcode='[ABCDGIRSTW]' |
5781 |
echo 'int i;' > conftest.$ac_ext |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5782 |
lt_cv_cc_64bit_output=no |
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'" |
|
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 |
|
5783 |
fi |
fi |
|
rm -rf conftest* |
|
5784 |
;; |
;; |
5785 |
|
irix* | nonstopux*) |
5786 |
|
symcode='[BCDEGRST]' |
5787 |
|
;; |
5788 |
|
osf*) |
5789 |
|
symcode='[BCDEGQRST]' |
5790 |
|
;; |
5791 |
|
solaris* | sysv5*) |
5792 |
|
symcode='[BDRT]' |
5793 |
|
;; |
5794 |
|
sysv4) |
5795 |
|
symcode='[DFNSTU]' |
5796 |
|
;; |
5797 |
|
esac |
5798 |
|
|
5799 |
*-*-sco3.2v5*) |
# Handle CRLF in mingw tool chain |
5800 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
opt_cr= |
5801 |
SAVE_CFLAGS="$CFLAGS" |
case $build_os in |
5802 |
CFLAGS="$CFLAGS -belf" |
mingw*) |
5803 |
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
5804 |
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
;; |
5805 |
if test "${lt_cv_cc_needs_belf+set}" = set; then |
esac |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
else |
|
5806 |
|
|
5807 |
|
# If we're using GNU nm, then use its standard symbol codes. |
5808 |
|
case `$NM -V 2>&1` in |
5809 |
|
*GNU* | *'with BFD'*) |
5810 |
|
symcode='[ABCDGIRSTW]' ;; |
5811 |
|
esac |
5812 |
|
|
5813 |
ac_ext=c |
# Try without a prefix undercore, then with it. |
5814 |
ac_cpp='$CPP $CPPFLAGS' |
for ac_symprfx in "" "_"; do |
|
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 |
|
5815 |
|
|
5816 |
cat >conftest.$ac_ext <<_ACEOF |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
5817 |
/* confdefs.h. */ |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
5818 |
|
|
5819 |
int |
# Write the raw and C identifiers. |
5820 |
main () |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
|
{ |
|
5821 |
|
|
5822 |
; |
# Check to see that the pipe works correctly. |
5823 |
return 0; |
pipe_works=no |
5824 |
|
|
5825 |
|
rm -f conftest* |
5826 |
|
cat > conftest.$ac_ext <<EOF |
5827 |
|
#ifdef __cplusplus |
5828 |
|
extern "C" { |
5829 |
|
#endif |
5830 |
|
char nm_test_var; |
5831 |
|
void nm_test_func(){} |
5832 |
|
#ifdef __cplusplus |
5833 |
} |
} |
5834 |
_ACEOF |
#endif |
5835 |
rm -f conftest.$ac_objext conftest$ac_exeext |
int main(){nm_test_var='a';nm_test_func();return(0);} |
5836 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
EOF |
5837 |
(eval $ac_link) 2>conftest.er1 |
|
5838 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5839 |
|
(eval $ac_compile) 2>&5 |
5840 |
ac_status=$? |
ac_status=$? |
|
grep -v '^ *+' conftest.er1 >conftest.err |
|
|
rm -f conftest.er1 |
|
|
cat conftest.err >&5 |
|
5841 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5842 |
(exit $ac_status); } && |
(exit $ac_status); }; then |
5843 |
{ ac_try='test -z "$ac_c_werror_flag" |
# Now try to grab the symbols. |
5844 |
|| test ! -s conftest.err' |
nlist=conftest.nm |
5845 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
5846 |
(eval $ac_try) 2>&5 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
5847 |
ac_status=$? |
ac_status=$? |
5848 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5849 |
(exit $ac_status); }; } && |
(exit $ac_status); } && test -s "$nlist"; then |
5850 |
{ ac_try='test -s conftest$ac_exeext' |
# Try sorting and uniquifying the output. |
5851 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
if sort "$nlist" | uniq > "$nlist"T; then |
5852 |
(eval $ac_try) 2>&5 |
mv -f "$nlist"T "$nlist" |
5853 |
|
else |
5854 |
|
rm -f "$nlist"T |
5855 |
|
fi |
5856 |
|
|
5857 |
|
# Make sure that we snagged all the symbols we need. |
5858 |
|
if grep ' nm_test_var$' "$nlist" >/dev/null; then |
5859 |
|
if grep ' nm_test_func$' "$nlist" >/dev/null; then |
5860 |
|
cat <<EOF > conftest.$ac_ext |
5861 |
|
#ifdef __cplusplus |
5862 |
|
extern "C" { |
5863 |
|
#endif |
5864 |
|
|
5865 |
|
EOF |
5866 |
|
# Now generate the symbol file. |
5867 |
|
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
5868 |
|
|
5869 |
|
cat <<EOF >> conftest.$ac_ext |
5870 |
|
#if defined (__STDC__) && __STDC__ |
5871 |
|
# define lt_ptr_t void * |
5872 |
|
#else |
5873 |
|
# define lt_ptr_t char * |
5874 |
|
# define const |
5875 |
|
#endif |
5876 |
|
|
5877 |
|
/* The mapping between symbol names and symbols. */ |
5878 |
|
const struct { |
5879 |
|
const char *name; |
5880 |
|
lt_ptr_t address; |
5881 |
|
} |
5882 |
|
lt_preloaded_symbols[] = |
5883 |
|
{ |
5884 |
|
EOF |
5885 |
|
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
5886 |
|
cat <<\EOF >> conftest.$ac_ext |
5887 |
|
{0, (lt_ptr_t) 0} |
5888 |
|
}; |
5889 |
|
|
5890 |
|
#ifdef __cplusplus |
5891 |
|
} |
5892 |
|
#endif |
5893 |
|
EOF |
5894 |
|
# Now try linking the two files. |
5895 |
|
mv conftest.$ac_objext conftstm.$ac_objext |
5896 |
|
lt_save_LIBS="$LIBS" |
5897 |
|
lt_save_CFLAGS="$CFLAGS" |
5898 |
|
LIBS="conftstm.$ac_objext" |
5899 |
|
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
5900 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5901 |
|
(eval $ac_link) 2>&5 |
5902 |
ac_status=$? |
ac_status=$? |
5903 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5904 |
(exit $ac_status); }; }; then |
(exit $ac_status); } && test -s conftest${ac_exeext}; then |
5905 |
lt_cv_cc_needs_belf=yes |
pipe_works=yes |
5906 |
else |
fi |
5907 |
echo "$as_me: failed program was:" >&5 |
LIBS="$lt_save_LIBS" |
5908 |
sed 's/^/| /' conftest.$ac_ext >&5 |
CFLAGS="$lt_save_CFLAGS" |
5909 |
|
else |
5910 |
|
echo "cannot find nm_test_func in $nlist" >&5 |
5911 |
|
fi |
5912 |
|
else |
5913 |
|
echo "cannot find nm_test_var in $nlist" >&5 |
5914 |
|
fi |
5915 |
|
else |
5916 |
|
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
5917 |
|
fi |
5918 |
|
else |
5919 |
|
echo "$progname: failed program was:" >&5 |
5920 |
|
cat conftest.$ac_ext >&5 |
5921 |
|
fi |
5922 |
|
rm -f conftest* conftst* |
5923 |
|
|
5924 |
|
# Do not use the global_symbol_pipe unless it works. |
5925 |
|
if test "$pipe_works" = yes; then |
5926 |
|
break |
5927 |
|
else |
5928 |
|
lt_cv_sys_global_symbol_pipe= |
5929 |
|
fi |
5930 |
|
done |
5931 |
|
|
|
lt_cv_cc_needs_belf=no |
|
5932 |
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 |
|
5933 |
|
|
5934 |
|
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5935 |
|
lt_cv_sys_global_symbol_to_cdecl= |
5936 |
fi |
fi |
5937 |
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
5938 |
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
echo "$as_me:$LINENO: result: failed" >&5 |
5939 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
echo "${ECHO_T}failed" >&6 |
5940 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
else |
5941 |
CFLAGS="$SAVE_CFLAGS" |
echo "$as_me:$LINENO: result: ok" >&5 |
5942 |
fi |
echo "${ECHO_T}ok" >&6 |
5943 |
;; |
fi |
5944 |
|
|
5945 |
|
echo "$as_me:$LINENO: checking for objdir" >&5 |
5946 |
|
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
5947 |
|
if test "${lt_cv_objdir+set}" = set; then |
5948 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5949 |
|
else |
5950 |
|
rm -f .libs 2>/dev/null |
5951 |
|
mkdir .libs 2>/dev/null |
5952 |
|
if test -d .libs; then |
5953 |
|
lt_cv_objdir=.libs |
5954 |
|
else |
5955 |
|
# MS-DOS does not allow filenames that begin with a dot. |
5956 |
|
lt_cv_objdir=_libs |
5957 |
|
fi |
5958 |
|
rmdir .libs 2>/dev/null |
5959 |
|
fi |
5960 |
|
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
5961 |
|
echo "${ECHO_T}$lt_cv_objdir" >&6 |
5962 |
|
objdir=$lt_cv_objdir |
5963 |
|
|
5964 |
|
|
5965 |
|
|
5966 |
|
|
5967 |
|
|
5968 |
|
case $host_os in |
5969 |
|
aix3*) |
5970 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
5971 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
5972 |
|
# vanish in a puff of smoke. |
5973 |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
5974 |
|
COLLECT_NAMES= |
5975 |
|
export COLLECT_NAMES |
5976 |
|
fi |
5977 |
|
;; |
5978 |
esac |
esac |
5979 |
|
|
5980 |
# Sed substitution that helps us do robust quoting. It backslashifies |
# Sed substitution that helps us do robust quoting. It backslashifies |
5981 |
# metacharacters that are still active within double-quoted strings. |
# metacharacters that are still active within double-quoted strings. |
5982 |
Xsed='sed -e s/^X//' |
Xsed='sed -e 1s/^X//' |
5983 |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
5984 |
|
|
5985 |
# Same as above, but do not quote variable references. |
# Same as above, but do not quote variable references. |
5989 |
# double_quote_subst'ed string. |
# double_quote_subst'ed string. |
5990 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
5991 |
|
|
5992 |
|
# Sed substitution to avoid accidental globbing in evaled expressions |
5993 |
|
no_glob_subst='s/\*/\\\*/g' |
5994 |
|
|
5995 |
# Constants: |
# Constants: |
5996 |
rm="rm -f" |
rm="rm -f" |
5997 |
|
|
6005 |
ltmain="$ac_aux_dir/ltmain.sh" |
ltmain="$ac_aux_dir/ltmain.sh" |
6006 |
ofile="$default_ofile" |
ofile="$default_ofile" |
6007 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
need_locks="$enable_libtool_lock" |
|
|
|
|
|
old_CC="$CC" |
|
|
old_CFLAGS="$CFLAGS" |
|
6008 |
|
|
6009 |
# Set sane defaults for various variables |
if test -n "$ac_tool_prefix"; then |
6010 |
test -z "$AR" && AR=ar |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6011 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6012 |
test -z "$AS" && AS=as |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6013 |
test -z "$CC" && CC=cc |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6014 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
if test "${ac_cv_prog_AR+set}" = set; then |
6015 |
test -z "$LD" && LD=ld |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6016 |
test -z "$LN_S" && LN_S="ln -s" |
else |
6017 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
if test -n "$AR"; then |
6018 |
test -z "$NM" && NM=nm |
ac_cv_prog_AR="$AR" # Let the user override the test. |
6019 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
else |
6020 |
test -z "$RANLIB" && RANLIB=: |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6021 |
test -z "$STRIP" && STRIP=: |
for as_dir in $PATH |
6022 |
test -z "$ac_objext" && ac_objext=o |
do |
6023 |
|
IFS=$as_save_IFS |
6024 |
|
test -z "$as_dir" && as_dir=. |
6025 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6026 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6027 |
|
ac_cv_prog_AR="${ac_tool_prefix}ar" |
6028 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6029 |
|
break 2 |
6030 |
|
fi |
6031 |
|
done |
6032 |
|
done |
6033 |
|
|
6034 |
if test x"$host" != x"$build"; then |
fi |
6035 |
ac_tool_prefix=${host_alias}- |
fi |
6036 |
|
AR=$ac_cv_prog_AR |
6037 |
|
if test -n "$AR"; then |
6038 |
|
echo "$as_me:$LINENO: result: $AR" >&5 |
6039 |
|
echo "${ECHO_T}$AR" >&6 |
6040 |
else |
else |
6041 |
ac_tool_prefix= |
echo "$as_me:$LINENO: result: no" >&5 |
6042 |
|
echo "${ECHO_T}no" >&6 |
6043 |
fi |
fi |
6044 |
|
|
6045 |
# Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
fi |
6046 |
case $host_os in |
if test -z "$ac_cv_prog_AR"; then |
6047 |
linux-gnu*) ;; |
ac_ct_AR=$AR |
6048 |
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
# Extract the first word of "ar", so it can be a program name with args. |
6049 |
esac |
set dummy ar; ac_word=$2 |
6050 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6051 |
case $host_os in |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6052 |
aix3*) |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6053 |
# AIX sometimes has problems with the GCC collect2 program. For some |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6054 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
else |
6055 |
# vanish in a puff of smoke. |
if test -n "$ac_ct_AR"; then |
6056 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6057 |
COLLECT_NAMES= |
else |
6058 |
export COLLECT_NAMES |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6059 |
|
for as_dir in $PATH |
6060 |
|
do |
6061 |
|
IFS=$as_save_IFS |
6062 |
|
test -z "$as_dir" && as_dir=. |
6063 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6064 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6065 |
|
ac_cv_prog_ac_ct_AR="ar" |
6066 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6067 |
|
break 2 |
6068 |
fi |
fi |
6069 |
;; |
done |
6070 |
esac |
done |
|
|
|
|
# Determine commands to create old-style static archives. |
|
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
old_postinstall_cmds='chmod 644 $oldlib' |
|
|
old_postuninstall_cmds= |
|
6071 |
|
|
6072 |
if test -n "$RANLIB"; then |
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
|
case $host_os in |
|
|
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" |
|
6073 |
fi |
fi |
6074 |
|
fi |
6075 |
# Allow CC to be a program name with arguments. |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6076 |
set dummy $CC |
if test -n "$ac_ct_AR"; then |
6077 |
compiler="$2" |
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6078 |
|
echo "${ECHO_T}$ac_ct_AR" >&6 |
|
echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
rm -f .libs 2>/dev/null |
|
|
mkdir .libs 2>/dev/null |
|
|
if test -d .libs; then |
|
|
objdir=.libs |
|
6079 |
else |
else |
6080 |
# MS-DOS does not allow filenames that begin with a dot. |
echo "$as_me:$LINENO: result: no" >&5 |
6081 |
objdir=_libs |
echo "${ECHO_T}no" >&6 |
6082 |
fi |
fi |
|
rmdir .libs 2>/dev/null |
|
|
echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
echo "${ECHO_T}$objdir" >&6 |
|
6083 |
|
|
6084 |
|
AR=$ac_ct_AR |
6085 |
|
else |
6086 |
|
AR="$ac_cv_prog_AR" |
6087 |
|
fi |
6088 |
|
|
6089 |
|
if test -n "$ac_tool_prefix"; then |
6090 |
# Check whether --with-pic or --without-pic was given. |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6091 |
if test "${with_pic+set}" = set; then |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6092 |
withval="$with_pic" |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6093 |
pic_mode="$withval" |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6094 |
else |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
pic_mode=default |
|
|
fi; |
|
|
test -z "$pic_mode" && pic_mode=default |
|
|
|
|
|
# We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
# in isolation, and that seeing it set (from the cache) indicates that |
|
|
# the associated values are set (in the cache) correctly too. |
|
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
6095 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6096 |
else |
else |
6097 |
lt_cv_prog_cc_pic= |
if test -n "$RANLIB"; then |
6098 |
lt_cv_prog_cc_shlib= |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6099 |
lt_cv_prog_cc_wl= |
else |
6100 |
lt_cv_prog_cc_static= |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6101 |
lt_cv_prog_cc_no_builtin= |
for as_dir in $PATH |
6102 |
lt_cv_prog_cc_can_build_shared=$can_build_shared |
do |
6103 |
|
IFS=$as_save_IFS |
6104 |
if test "$GCC" = yes; then |
test -z "$as_dir" && as_dir=. |
6105 |
lt_cv_prog_cc_wl='-Wl,' |
for ac_exec_ext in '' $ac_executable_extensions; do |
6106 |
lt_cv_prog_cc_static='-static' |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6107 |
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6108 |
case $host_os in |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6109 |
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 |
|
6110 |
fi |
fi |
6111 |
|
done |
6112 |
|
done |
6113 |
|
|
6114 |
fi |
fi |
6115 |
|
fi |
6116 |
if test -z "$lt_cv_prog_cc_pic"; then |
RANLIB=$ac_cv_prog_RANLIB |
6117 |
echo "$as_me:$LINENO: result: none" >&5 |
if test -n "$RANLIB"; then |
6118 |
echo "${ECHO_T}none" >&6 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6119 |
|
echo "${ECHO_T}$RANLIB" >&6 |
6120 |
else |
else |
6121 |
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
echo "$as_me:$LINENO: result: no" >&5 |
6122 |
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
echo "${ECHO_T}no" >&6 |
6123 |
|
fi |
6124 |
|
|
6125 |
# Check to make sure the pic_flag actually works. |
fi |
6126 |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
if test -z "$ac_cv_prog_RANLIB"; then |
6127 |
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
ac_ct_RANLIB=$RANLIB |
6128 |
if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
# Extract the first word of "ranlib", so it can be a program name with args. |
6129 |
|
set dummy ranlib; ac_word=$2 |
6130 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6131 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6132 |
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6133 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6134 |
else |
else |
6135 |
save_CFLAGS="$CFLAGS" |
if test -n "$ac_ct_RANLIB"; then |
6136 |
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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 |
|
|
|
|
6137 |
else |
else |
6138 |
echo "$as_me: failed program was:" >&5 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6139 |
sed 's/^/| /' conftest.$ac_ext >&5 |
for as_dir in $PATH |
6140 |
|
do |
6141 |
lt_cv_prog_cc_pic_works=no |
IFS=$as_save_IFS |
6142 |
|
test -z "$as_dir" && as_dir=. |
6143 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6144 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6145 |
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
6146 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6147 |
|
break 2 |
6148 |
|
fi |
6149 |
|
done |
6150 |
|
done |
6151 |
|
|
6152 |
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6153 |
fi |
fi |
6154 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
fi |
6155 |
CFLAGS="$save_CFLAGS" |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6156 |
|
if test -n "$ac_ct_RANLIB"; then |
6157 |
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6158 |
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
6159 |
|
else |
6160 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6161 |
|
echo "${ECHO_T}no" >&6 |
6162 |
fi |
fi |
6163 |
|
|
6164 |
|
RANLIB=$ac_ct_RANLIB |
6165 |
|
else |
6166 |
|
RANLIB="$ac_cv_prog_RANLIB" |
6167 |
|
fi |
6168 |
|
|
6169 |
if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
if test -n "$ac_tool_prefix"; then |
6170 |
lt_cv_prog_cc_pic= |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6171 |
lt_cv_prog_cc_can_build_shared=no |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6172 |
else |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6173 |
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6174 |
|
if test "${ac_cv_prog_STRIP+set}" = set; then |
6175 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6176 |
|
else |
6177 |
|
if test -n "$STRIP"; then |
6178 |
|
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6179 |
|
else |
6180 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6181 |
|
for as_dir in $PATH |
6182 |
|
do |
6183 |
|
IFS=$as_save_IFS |
6184 |
|
test -z "$as_dir" && as_dir=. |
6185 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6186 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6187 |
|
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6188 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6189 |
|
break 2 |
6190 |
fi |
fi |
6191 |
|
done |
6192 |
|
done |
6193 |
|
|
|
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
6194 |
fi |
fi |
6195 |
|
fi |
6196 |
# Check for any special shared library compilation flags. |
STRIP=$ac_cv_prog_STRIP |
6197 |
if test -n "$lt_cv_prog_cc_shlib"; then |
if test -n "$STRIP"; then |
6198 |
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
echo "$as_me:$LINENO: result: $STRIP" >&5 |
6199 |
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
echo "${ECHO_T}$STRIP" >&6 |
6200 |
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
else |
6201 |
else |
echo "$as_me:$LINENO: result: no" >&5 |
6202 |
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
echo "${ECHO_T}no" >&6 |
|
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 |
|
6203 |
fi |
fi |
6204 |
|
|
6205 |
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
fi |
6206 |
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
if test -z "$ac_cv_prog_STRIP"; then |
6207 |
if test "${lt_cv_prog_cc_static_works+set}" = set; then |
ac_ct_STRIP=$STRIP |
6208 |
|
# Extract the first word of "strip", so it can be a program name with args. |
6209 |
|
set dummy strip; ac_word=$2 |
6210 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6211 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6212 |
|
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6213 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6214 |
else |
else |
6215 |
lt_cv_prog_cc_static_works=no |
if test -n "$ac_ct_STRIP"; then |
6216 |
save_LDFLAGS="$LDFLAGS" |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 |
|
6217 |
else |
else |
6218 |
echo "$as_me: failed program was:" >&5 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6219 |
sed 's/^/| /' conftest.$ac_ext >&5 |
for as_dir in $PATH |
6220 |
|
do |
6221 |
|
IFS=$as_save_IFS |
6222 |
|
test -z "$as_dir" && as_dir=. |
6223 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
6224 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
6225 |
|
ac_cv_prog_ac_ct_STRIP="strip" |
6226 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6227 |
|
break 2 |
6228 |
|
fi |
6229 |
|
done |
6230 |
|
done |
6231 |
|
|
6232 |
|
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
6233 |
|
fi |
6234 |
|
fi |
6235 |
|
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6236 |
|
if test -n "$ac_ct_STRIP"; then |
6237 |
|
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6238 |
|
echo "${ECHO_T}$ac_ct_STRIP" >&6 |
6239 |
|
else |
6240 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6241 |
|
echo "${ECHO_T}no" >&6 |
6242 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LDFLAGS="$save_LDFLAGS" |
|
6243 |
|
|
6244 |
|
STRIP=$ac_ct_STRIP |
6245 |
|
else |
6246 |
|
STRIP="$ac_cv_prog_STRIP" |
6247 |
fi |
fi |
6248 |
|
|
6249 |
|
|
6250 |
# Belt *and* braces to stop my trousers falling down: |
old_CC="$CC" |
6251 |
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
old_CFLAGS="$CFLAGS" |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
6252 |
|
|
6253 |
pic_flag="$lt_cv_prog_cc_pic" |
# Set sane defaults for various variables |
6254 |
special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
test -z "$AR" && AR=ar |
6255 |
wl="$lt_cv_prog_cc_wl" |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
6256 |
link_static_flag="$lt_cv_prog_cc_static" |
test -z "$AS" && AS=as |
6257 |
no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
test -z "$CC" && CC=cc |
6258 |
can_build_shared="$lt_cv_prog_cc_can_build_shared" |
test -z "$LTCC" && LTCC=$CC |
6259 |
|
test -z "$DLLTOOL" && DLLTOOL=dlltool |
6260 |
|
test -z "$LD" && LD=ld |
6261 |
|
test -z "$LN_S" && LN_S="ln -s" |
6262 |
|
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6263 |
|
test -z "$NM" && NM=nm |
6264 |
|
test -z "$SED" && SED=sed |
6265 |
|
test -z "$OBJDUMP" && OBJDUMP=objdump |
6266 |
|
test -z "$RANLIB" && RANLIB=: |
6267 |
|
test -z "$STRIP" && STRIP=: |
6268 |
|
test -z "$ac_objext" && ac_objext=o |
6269 |
|
|
6270 |
|
# Determine commands to create old-style static archives. |
6271 |
|
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6272 |
|
old_postinstall_cmds='chmod 644 $oldlib' |
6273 |
|
old_postuninstall_cmds= |
6274 |
|
|
6275 |
# Check to see if options -o and -c are simultaneously supported by compiler |
if test -n "$RANLIB"; then |
6276 |
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
case $host_os in |
6277 |
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
openbsd*) |
6278 |
if test "${lt_cv_compiler_c_o+set}" = set; then |
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
6279 |
|
;; |
6280 |
|
*) |
6281 |
|
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
6282 |
|
;; |
6283 |
|
esac |
6284 |
|
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6285 |
|
fi |
6286 |
|
|
6287 |
|
for cc_temp in $compiler""; do |
6288 |
|
case $cc_temp in |
6289 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6290 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6291 |
|
\-*) ;; |
6292 |
|
*) break;; |
6293 |
|
esac |
6294 |
|
done |
6295 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6296 |
|
|
6297 |
|
|
6298 |
|
# Only perform the check for file, if the check method requires it |
6299 |
|
case $deplibs_check_method in |
6300 |
|
file_magic*) |
6301 |
|
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
6302 |
|
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6303 |
|
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
6304 |
|
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6305 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6306 |
else |
else |
6307 |
|
case $MAGIC_CMD in |
6308 |
|
[\\/*] | ?:[\\/]*) |
6309 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6310 |
|
;; |
6311 |
|
*) |
6312 |
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
6313 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6314 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6315 |
|
for ac_dir in $ac_dummy; do |
6316 |
|
IFS="$lt_save_ifs" |
6317 |
|
test -z "$ac_dir" && ac_dir=. |
6318 |
|
if test -f $ac_dir/${ac_tool_prefix}file; then |
6319 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6320 |
|
if test -n "$file_magic_test_file"; then |
6321 |
|
case $deplibs_check_method in |
6322 |
|
"file_magic "*) |
6323 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6324 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6325 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6326 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
6327 |
|
: |
6328 |
|
else |
6329 |
|
cat <<EOF 1>&2 |
6330 |
|
|
6331 |
$rm -r conftest 2>/dev/null |
*** Warning: the command libtool uses to detect shared libraries, |
6332 |
mkdir conftest |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
6333 |
cd conftest |
*** The result is that libtool may fail to recognize shared libraries |
6334 |
echo "int some_variable = 0;" > conftest.$ac_ext |
*** as such. This will affect the creation of libtool libraries that |
6335 |
mkdir out |
*** depend on shared libraries, but programs linked with such libtool |
6336 |
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
*** libraries will work regardless of this problem. Nevertheless, you |
6337 |
# that will create temporary files in the current directory regardless of |
*** may want to report the problem to your system manager and/or to |
6338 |
# the output directory. Thus, making CWD read-only will cause this test |
*** bug-libtool@gnu.org |
6339 |
# to fail, enabling locking or at least warning the user not to do parallel |
|
6340 |
# builds. |
EOF |
6341 |
chmod -w . |
fi ;; |
6342 |
save_CFLAGS="$CFLAGS" |
esac |
6343 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
fi |
6344 |
compiler_c_o=no |
break |
6345 |
if { (eval echo configure:5924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
fi |
6346 |
# The compiler can only warn and ignore the option if not recognized |
done |
6347 |
# So say no if there are warnings |
IFS="$lt_save_ifs" |
6348 |
if test -s out/conftest.err; then |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
6349 |
lt_cv_compiler_c_o=no |
;; |
6350 |
else |
esac |
6351 |
lt_cv_compiler_c_o=yes |
fi |
|
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 |
|
6352 |
|
|
6353 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6354 |
|
if test -n "$MAGIC_CMD"; then |
6355 |
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6356 |
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
6357 |
|
else |
6358 |
|
echo "$as_me:$LINENO: result: no" >&5 |
6359 |
|
echo "${ECHO_T}no" >&6 |
6360 |
fi |
fi |
6361 |
|
|
6362 |
compiler_c_o=$lt_cv_compiler_c_o |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
6363 |
echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
if test -n "$ac_tool_prefix"; then |
6364 |
echo "${ECHO_T}$compiler_c_o" >&6 |
echo "$as_me:$LINENO: checking for file" >&5 |
6365 |
|
echo $ECHO_N "checking for file... $ECHO_C" >&6 |
6366 |
if test x"$compiler_c_o" = x"yes"; then |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
# Check to see if we can write to a .lo |
|
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
|
|
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
|
|
if test "${lt_cv_compiler_o_lo+set}" = set; then |
|
6367 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6368 |
else |
else |
6369 |
|
case $MAGIC_CMD in |
6370 |
|
[\\/*] | ?:[\\/]*) |
6371 |
|
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6372 |
|
;; |
6373 |
|
*) |
6374 |
|
lt_save_MAGIC_CMD="$MAGIC_CMD" |
6375 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6376 |
|
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6377 |
|
for ac_dir in $ac_dummy; do |
6378 |
|
IFS="$lt_save_ifs" |
6379 |
|
test -z "$ac_dir" && ac_dir=. |
6380 |
|
if test -f $ac_dir/file; then |
6381 |
|
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
6382 |
|
if test -n "$file_magic_test_file"; then |
6383 |
|
case $deplibs_check_method in |
6384 |
|
"file_magic "*) |
6385 |
|
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
6386 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6387 |
|
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6388 |
|
$EGREP "$file_magic_regex" > /dev/null; then |
6389 |
|
: |
6390 |
|
else |
6391 |
|
cat <<EOF 1>&2 |
6392 |
|
|
6393 |
lt_cv_compiler_o_lo=no |
*** Warning: the command libtool uses to detect shared libraries, |
6394 |
save_CFLAGS="$CFLAGS" |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
6395 |
CFLAGS="$CFLAGS -c -o conftest.lo" |
*** The result is that libtool may fail to recognize shared libraries |
6396 |
save_objext="$ac_objext" |
*** as such. This will affect the creation of libtool libraries that |
6397 |
ac_objext=lo |
*** depend on shared libraries, but programs linked with such libtool |
6398 |
cat >conftest.$ac_ext <<_ACEOF |
*** libraries will work regardless of this problem. Nevertheless, you |
6399 |
/* confdefs.h. */ |
*** may want to report the problem to your system manager and/or to |
6400 |
_ACEOF |
*** bug-libtool@gnu.org |
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
6401 |
|
|
6402 |
int |
EOF |
6403 |
main () |
fi ;; |
6404 |
{ |
esac |
6405 |
int some_variable = 0; |
fi |
6406 |
; |
break |
|
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 |
|
6407 |
fi |
fi |
6408 |
|
done |
6409 |
|
IFS="$lt_save_ifs" |
6410 |
|
MAGIC_CMD="$lt_save_MAGIC_CMD" |
6411 |
|
;; |
6412 |
|
esac |
6413 |
|
fi |
6414 |
|
|
6415 |
|
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6416 |
|
if test -n "$MAGIC_CMD"; then |
6417 |
|
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6418 |
|
echo "${ECHO_T}$MAGIC_CMD" >&6 |
6419 |
else |
else |
6420 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me:$LINENO: result: no" >&5 |
6421 |
sed 's/^/| /' conftest.$ac_ext >&5 |
echo "${ECHO_T}no" >&6 |
|
|
|
6422 |
fi |
fi |
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
ac_objext="$save_objext" |
|
|
CFLAGS="$save_CFLAGS" |
|
6423 |
|
|
6424 |
|
else |
6425 |
|
MAGIC_CMD=: |
6426 |
|
fi |
6427 |
fi |
fi |
6428 |
|
|
6429 |
compiler_o_lo=$lt_cv_compiler_o_lo |
fi |
6430 |
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 |
;; |
6431 |
echo "${ECHO_T}$compiler_o_lo" >&6 |
esac |
|
else |
|
|
compiler_o_lo=no |
|
|
fi |
|
6432 |
|
|
6433 |
# Check to see if we can do hard links to lock some files if needed |
enable_dlopen=yes |
6434 |
hard_links="nottested" |
enable_win32_dll=no |
|
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 |
|
|
else |
|
|
need_locks=no |
|
|
fi |
|
6435 |
|
|
6436 |
if test "$GCC" = yes; then |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6437 |
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
if test "${enable_libtool_lock+set}" = set; then |
6438 |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
enableval="$enable_libtool_lock" |
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
save_CFLAGS="$CFLAGS" |
|
|
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
|
|
compiler_rtti_exceptions=no |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
|
/* confdefs.h. */ |
|
|
_ACEOF |
|
|
cat confdefs.h >>conftest.$ac_ext |
|
|
cat >>conftest.$ac_ext <<_ACEOF |
|
|
/* end confdefs.h. */ |
|
6439 |
|
|
6440 |
int |
fi; |
6441 |
main () |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
{ |
|
|
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 |
|
|
compiler_rtti_exceptions=no |
|
|
else |
|
|
compiler_rtti_exceptions=yes |
|
|
fi |
|
6442 |
|
|
6443 |
|
|
6444 |
|
# Check whether --with-pic or --without-pic was given. |
6445 |
|
if test "${with_pic+set}" = set; then |
6446 |
|
withval="$with_pic" |
6447 |
|
pic_mode="$withval" |
6448 |
else |
else |
6449 |
echo "$as_me: failed program was:" >&5 |
pic_mode=default |
6450 |
sed 's/^/| /' conftest.$ac_ext >&5 |
fi; |
6451 |
|
test -z "$pic_mode" && pic_mode=default |
6452 |
|
|
6453 |
fi |
# Use C for the default configuration in the libtool script |
6454 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
tagname= |
6455 |
CFLAGS="$save_CFLAGS" |
lt_save_CC="$CC" |
6456 |
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
ac_ext=c |
6457 |
echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
ac_cpp='$CPP $CPPFLAGS' |
6458 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6459 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6460 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6461 |
|
|
|
if test "$compiler_rtti_exceptions" = "yes"; then |
|
|
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
|
|
else |
|
|
no_builtin_flag=' -fno-builtin' |
|
|
fi |
|
|
fi |
|
6462 |
|
|
6463 |
# See if the linker supports building shared libraries. |
# Source file extension for C test sources. |
6464 |
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
ac_ext=c |
|
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
6465 |
|
|
6466 |
allow_undefined_flag= |
# Object file extension for compiled C test sources. |
6467 |
no_undefined_flag= |
objext=o |
6468 |
need_lib_prefix=unknown |
objext=$objext |
|
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= |
|
6469 |
|
|
6470 |
case $host_os in |
# Code to be used in simple compile tests |
6471 |
cygwin* | mingw* | pw32*) |
lt_simple_compile_test_code="int some_variable = 0;\n" |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
# When not using gcc, we currently assume that we are using |
|
|
# Microsoft Visual C++. |
|
|
if test "$GCC" != yes; then |
|
|
with_gnu_ld=no |
|
|
fi |
|
|
;; |
|
|
openbsd*) |
|
|
with_gnu_ld=no |
|
|
;; |
|
|
esac |
|
6472 |
|
|
6473 |
ld_shlibs=yes |
# Code to be used in simple link tests |
6474 |
if test "$with_gnu_ld" = yes; then |
lt_simple_link_test_code='int main(){return(0);}\n' |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
wlarc='${wl}' |
|
6475 |
|
|
|
# See if GNU ld supports shared libraries. |
|
|
case $host_os in |
|
|
aix3* | aix4* | aix5*) |
|
|
# On AIX, the GNU linker is very broken |
|
|
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. |
|
|
ld_shlibs=no |
|
|
cat <<EOF 1>&2 |
|
6476 |
|
|
6477 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
# If no C compiler was specified, use CC. |
6478 |
*** to be unable to reliably create shared libraries on AIX. |
LTCC=${LTCC-"$CC"} |
|
*** 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. |
|
6479 |
|
|
6480 |
EOF |
# Allow CC to be a program name with arguments. |
6481 |
;; |
compiler=$CC |
6482 |
|
|
|
amigaos*) |
|
|
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 |
|
|
;; |
|
6483 |
|
|
6484 |
beos*) |
# save warnings/boilerplate of simple test code |
6485 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
ac_outfile=conftest.$ac_objext |
6486 |
allow_undefined_flag=unsupported |
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6487 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
6488 |
# support --undefined. This deserves some investigation. FIXME |
_lt_compiler_boilerplate=`cat conftest.err` |
6489 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
$rm conftest* |
6490 |
else |
|
6491 |
ld_shlibs=no |
ac_outfile=conftest.$ac_objext |
6492 |
fi |
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6493 |
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
6494 |
|
_lt_linker_boilerplate=`cat conftest.err` |
6495 |
|
$rm conftest* |
6496 |
|
|
6497 |
|
|
6498 |
|
# |
6499 |
|
# Check for any special shared library compilation flags. |
6500 |
|
# |
6501 |
|
lt_prog_cc_shlib= |
6502 |
|
if test "$GCC" = no; then |
6503 |
|
case $host_os in |
6504 |
|
sco3.2v5*) |
6505 |
|
lt_prog_cc_shlib='-belf' |
6506 |
;; |
;; |
6507 |
|
esac |
6508 |
|
fi |
6509 |
|
if test -n "$lt_prog_cc_shlib"; then |
6510 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
6511 |
|
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
6512 |
|
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
6513 |
|
else |
6514 |
|
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
6515 |
|
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
6516 |
|
lt_cv_prog_cc_can_build_shared=no |
6517 |
|
fi |
6518 |
|
fi |
6519 |
|
|
|
cygwin* | mingw* | pw32*) |
|
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
# no search path for DLLs. |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
allow_undefined_flag=unsupported |
|
|
always_export_symbols=yes |
|
|
|
|
|
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
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 |
|
6520 |
|
|
6521 |
# mingw and cygwin differ, and it's simplest to just exclude the union |
# |
6522 |
# of the two symbol sets. |
# Check to make sure the static flag actually works. |
6523 |
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
# |
6524 |
|
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
6525 |
# recent cygwin and mingw systems supply a stub DllMain which the user |
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 |
6526 |
# can override, but on older systems we have to supply one (in ltdll.c) |
if test "${lt_prog_compiler_static_works+set}" = set; then |
6527 |
if test "x$lt_cv_need_dllmain" = "xyes"; then |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6528 |
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
else |
6529 |
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~ |
lt_prog_compiler_static_works=no |
6530 |
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
save_LDFLAGS="$LDFLAGS" |
6531 |
else |
LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
6532 |
ltdll_obj= |
printf "$lt_simple_link_test_code" > conftest.$ac_ext |
6533 |
ltdll_cmds= |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
6534 |
fi |
# The compiler can only warn and ignore the option if not recognized |
6535 |
|
# So say no if there are warnings |
6536 |
|
if test -s conftest.err; then |
6537 |
|
# Append any errors to the config.log. |
6538 |
|
cat conftest.err 1>&5 |
6539 |
|
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp |
6540 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
6541 |
|
if diff conftest.exp conftest.er2 >/dev/null; then |
6542 |
|
lt_prog_compiler_static_works=yes |
6543 |
|
fi |
6544 |
|
else |
6545 |
|
lt_prog_compiler_static_works=yes |
6546 |
|
fi |
6547 |
|
fi |
6548 |
|
$rm conftest* |
6549 |
|
LDFLAGS="$save_LDFLAGS" |
6550 |
|
|
6551 |
# Extract the symbol export list from an `--export-all' def file, |
fi |
6552 |
# then regenerate the def file from the symbol export list, so that |
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
6553 |
# the compiled dll only exports the symbol export list. |
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
# Be careful not to strip the DATA tag left be newer dlltools. |
|
|
export_symbols_cmds="$ltdll_cmds"' |
|
|
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
|
|
|
|
|
# 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' |
|
|
;; |
|
6554 |
|
|
6555 |
netbsd*) |
if test x"$lt_prog_compiler_static_works" = xyes; then |
6556 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
: |
6557 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
else |
6558 |
wlarc= |
lt_prog_compiler_static= |
6559 |
else |
fi |
|
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 |
|
|
;; |
|
6560 |
|
|
|
solaris* | sysv5*) |
|
|
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
|
ld_shlibs=no |
|
|
cat <<EOF 1>&2 |
|
6561 |
|
|
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
*** create shared libraries on Solaris systems. Therefore, libtool |
|
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
*** your PATH or compiler configuration so that the native linker is |
|
|
*** used, and then restart. |
|
6562 |
|
|
|
EOF |
|
|
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
else |
|
|
ld_shlibs=no |
|
|
fi |
|
|
;; |
|
6563 |
|
|
6564 |
sunos4*) |
lt_prog_compiler_no_builtin_flag= |
|
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
wlarc= |
|
|
hardcode_direct=yes |
|
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6565 |
|
|
6566 |
*) |
if test "$GCC" = yes; then |
6567 |
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
else |
|
|
ld_shlibs=no |
|
|
fi |
|
|
;; |
|
|
esac |
|
6568 |
|
|
6569 |
if test "$ld_shlibs" = yes; then |
|
6570 |
runpath_var=LD_RUN_PATH |
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
6571 |
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
6572 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
6573 |
case $host_os in |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
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 |
|
|
fi |
|
6574 |
else |
else |
6575 |
# PORTME fill in a description of your system's linker (not GNU ld) |
lt_cv_prog_compiler_rtti_exceptions=no |
6576 |
case $host_os in |
ac_outfile=conftest.$ac_objext |
6577 |
aix3*) |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6578 |
allow_undefined_flag=unsupported |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
6579 |
always_export_symbols=yes |
# Insert the option either (1) after the last *FLAGS variable, or |
6580 |
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' |
# (2) before a word containing "conftest.", or (3) at the end. |
6581 |
# Note: this linker hardcodes the directories in LIBPATH if there |
# Note that $ac_compile itself does not contain backslashes and begins |
6582 |
# are no directories specified by -L. |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6583 |
hardcode_minus_L=yes |
# The option is referenced via a variable to avoid confusing sed. |
6584 |
if test "$GCC" = yes && test -z "$link_static_flag"; then |
lt_compile=`echo "$ac_compile" | $SED \ |
6585 |
# Neither direct hardcoding nor static linking is supported with a |
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6586 |
# broken collect2. |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6587 |
hardcode_direct=unsupported |
-e 's:$: $lt_compiler_flag:'` |
6588 |
fi |
(eval echo "\"\$as_me:6588: $lt_compile\"" >&5) |
6589 |
;; |
(eval "$lt_compile" 2>conftest.err) |
6590 |
|
ac_status=$? |
6591 |
|
cat conftest.err >&5 |
6592 |
|
echo "$as_me:6592: \$? = $ac_status" >&5 |
6593 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
6594 |
|
# The compiler can only warn and ignore the option if not recognized |
6595 |
|
# So say no if there are warnings other than the usual output. |
6596 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
6597 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
6598 |
|
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
6599 |
|
lt_cv_prog_compiler_rtti_exceptions=yes |
6600 |
|
fi |
6601 |
|
fi |
6602 |
|
$rm conftest* |
6603 |
|
|
6604 |
aix4* | aix5*) |
fi |
6605 |
if test "$host_cpu" = ia64; then |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
6606 |
# On IA64, the linker does run time linking by default, so we don't |
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
# have to do anything special. |
|
|
aix_use_runtimelinking=no |
|
|
exp_sym_flag='-Bexport' |
|
|
no_entry_flag="" |
|
|
else |
|
|
aix_use_runtimelinking=no |
|
6607 |
|
|
6608 |
# Test if we are trying to use run time linking or normal |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
6609 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
6610 |
# need to do runtime linking. |
else |
6611 |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
: |
6612 |
for ld_flag in $LDFLAGS; do |
fi |
|
case $ld_flag in |
|
|
*-brtl*) |
|
|
aix_use_runtimelinking=yes |
|
|
break |
|
|
;; |
|
|
esac |
|
|
done |
|
|
esac |
|
6613 |
|
|
6614 |
exp_sym_flag='-bexport' |
fi |
|
no_entry_flag='-bnoentry' |
|
|
fi |
|
6615 |
|
|
6616 |
# When large executables or shared objects are built, AIX ld can |
lt_prog_compiler_wl= |
6617 |
# have problems creating the table of contents. If linking a library |
lt_prog_compiler_pic= |
6618 |
# or program results in "error TOC overflow" add -mminimal-toc to |
lt_prog_compiler_static= |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
6619 |
|
|
6620 |
hardcode_direct=yes |
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
6621 |
archive_cmds='' |
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
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 |
|
6622 |
|
|
6623 |
shared_flag='-shared' |
if test "$GCC" = yes; then |
6624 |
else |
lt_prog_compiler_wl='-Wl,' |
6625 |
# not using gcc |
lt_prog_compiler_static='-static' |
6626 |
|
|
6627 |
|
case $host_os in |
6628 |
|
aix*) |
6629 |
|
# All AIX code is PIC. |
6630 |
if test "$host_cpu" = ia64; then |
if test "$host_cpu" = ia64; then |
6631 |
shared_flag='${wl}-G' |
# AIX 5 now supports IA64 processor |
6632 |
else |
lt_prog_compiler_static='-Bstatic' |
|
if test "$aix_use_runtimelinking" = yes; then |
|
|
shared_flag='${wl}-G' |
|
|
else |
|
|
shared_flag='${wl}-bM:SRE' |
|
|
fi |
|
6633 |
fi |
fi |
6634 |
fi |
;; |
6635 |
|
|
6636 |
# It seems that -bexpall can do strange things, so it is better to |
amigaos*) |
6637 |
# generate a list of symbols to export. |
# FIXME: we need at least 68020 code to build shared libraries, but |
6638 |
always_export_symbols=yes |
# adding the `-m68020' flag to GCC prevents building anything better, |
6639 |
if test "$aix_use_runtimelinking" = yes; then |
# like `-m68040'. |
6640 |
# Warning - without using the other runtime loading flags (-brtl), |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
6641 |
# -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 |
|
|
;; |
|
6642 |
|
|
6643 |
amigaos*) |
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
6644 |
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)' |
# PIC is the default for these OSes. |
6645 |
hardcode_libdir_flag_spec='-L$libdir' |
;; |
|
hardcode_minus_L=yes |
|
|
# see comment about different semantics on the GNU ld section |
|
|
ld_shlibs=no |
|
|
;; |
|
6646 |
|
|
6647 |
cygwin* | mingw* | pw32*) |
mingw* | pw32* | os2*) |
6648 |
# When not using gcc, we currently assume that we are using |
# This hack is so that the source file can tell whether it is being |
6649 |
# Microsoft Visual C++. |
# built for inclusion in a dll (and should export symbols for example). |
6650 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
lt_prog_compiler_pic='-DDLL_EXPORT' |
6651 |
# 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"`' |
|
|
;; |
|
|
|
|
|
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' |
|
|
;; |
|
|
|
|
|
freebsd1*) |
|
|
ld_shlibs=no |
|
|
;; |
|
|
|
|
|
# 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 |
|
|
;; |
|
6652 |
|
|
6653 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
darwin* | rhapsody*) |
6654 |
freebsd2*) |
# PIC is the default on this platform |
6655 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
# Common symbols not allowed in MH_DYLIB files |
6656 |
hardcode_direct=yes |
lt_prog_compiler_pic='-fno-common' |
6657 |
hardcode_minus_L=yes |
;; |
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6658 |
|
|
6659 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
msdosdjgpp*) |
6660 |
freebsd*) |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
6661 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
# on systems that don't support them. |
6662 |
hardcode_libdir_flag_spec='-R$libdir' |
lt_prog_compiler_can_build_shared=no |
6663 |
hardcode_direct=yes |
enable_shared=no |
6664 |
hardcode_shlibpath_var=no |
;; |
|
;; |
|
6665 |
|
|
6666 |
hpux9* | hpux10* | hpux11*) |
sysv4*MP*) |
6667 |
case $host_os in |
if test -d /usr/nec; then |
6668 |
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' ;; |
lt_prog_compiler_pic=-Kconform_pic |
6669 |
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
fi |
6670 |
|
;; |
6671 |
|
|
6672 |
|
hpux*) |
6673 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6674 |
|
# not for PA HP-UX. |
6675 |
|
case "$host_cpu" in |
6676 |
|
hppa*64*|ia64*) |
6677 |
|
# +Z the default |
6678 |
|
;; |
6679 |
|
*) |
6680 |
|
lt_prog_compiler_pic='-fPIC' |
6681 |
|
;; |
6682 |
|
esac |
6683 |
|
;; |
6684 |
|
|
6685 |
|
*) |
6686 |
|
lt_prog_compiler_pic='-fPIC' |
6687 |
|
;; |
6688 |
esac |
esac |
6689 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
else |
6690 |
hardcode_libdir_separator=: |
# PORTME Check for flag to pass linker flags through the system compiler. |
6691 |
hardcode_direct=yes |
case $host_os in |
6692 |
hardcode_minus_L=yes # Not in the search PATH, but as the default |
aix*) |
6693 |
# location of the library. |
lt_prog_compiler_wl='-Wl,' |
6694 |
export_dynamic_flag_spec='${wl}-E' |
if test "$host_cpu" = ia64; then |
6695 |
;; |
# AIX 5 now supports IA64 processor |
6696 |
|
lt_prog_compiler_static='-Bstatic' |
6697 |
|
else |
6698 |
|
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
6699 |
|
fi |
6700 |
|
;; |
6701 |
|
darwin*) |
6702 |
|
# PIC is the default on this platform |
6703 |
|
# Common symbols not allowed in MH_DYLIB files |
6704 |
|
case $cc_basename in |
6705 |
|
xlc*) |
6706 |
|
lt_prog_compiler_pic='-qnocommon' |
6707 |
|
lt_prog_compiler_wl='-Wl,' |
6708 |
|
;; |
6709 |
|
esac |
6710 |
|
;; |
6711 |
|
|
6712 |
irix5* | irix6* | nonstopux*) |
mingw* | pw32* | os2*) |
6713 |
if test "$GCC" = yes; then |
# This hack is so that the source file can tell whether it is being |
6714 |
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' |
# built for inclusion in a dll (and should export symbols for example). |
6715 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
lt_prog_compiler_pic='-DDLL_EXPORT' |
6716 |
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 |
|
|
;; |
|
6717 |
|
|
6718 |
netbsd*) |
hpux9* | hpux10* | hpux11*) |
6719 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
lt_prog_compiler_wl='-Wl,' |
6720 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
6721 |
else |
# not for PA HP-UX. |
6722 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
case "$host_cpu" in |
6723 |
fi |
hppa*64*|ia64*) |
6724 |
hardcode_libdir_flag_spec='-R$libdir' |
# +Z the default |
6725 |
hardcode_direct=yes |
;; |
6726 |
hardcode_shlibpath_var=no |
*) |
6727 |
;; |
lt_prog_compiler_pic='+Z' |
6728 |
|
;; |
6729 |
|
esac |
6730 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
6731 |
|
lt_prog_compiler_static='${wl}-a ${wl}archive' |
6732 |
|
;; |
6733 |
|
|
6734 |
newsos6) |
irix5* | irix6* | nonstopux*) |
6735 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Wl,' |
6736 |
hardcode_direct=yes |
# PIC (with -KPIC) is the default. |
6737 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
lt_prog_compiler_static='-non_shared' |
6738 |
hardcode_libdir_separator=: |
;; |
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6739 |
|
|
6740 |
openbsd*) |
newsos6) |
6741 |
hardcode_direct=yes |
lt_prog_compiler_pic='-KPIC' |
6742 |
hardcode_shlibpath_var=no |
lt_prog_compiler_static='-Bstatic' |
6743 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
;; |
6744 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
6745 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
linux*) |
6746 |
export_dynamic_flag_spec='${wl}-E' |
case $cc_basename in |
6747 |
else |
icc* | ecc*) |
6748 |
case "$host_os" in |
lt_prog_compiler_wl='-Wl,' |
6749 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
lt_prog_compiler_pic='-KPIC' |
6750 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_static='-static' |
|
hardcode_libdir_flag_spec='-R$libdir' |
|
6751 |
;; |
;; |
6752 |
*) |
pgcc* | pgf77* | pgf90*) |
6753 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
# Portland Group compilers (*not* the Pentium gcc compiler, |
6754 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
# which looks to be a dead project) |
6755 |
|
lt_prog_compiler_wl='-Wl,' |
6756 |
|
lt_prog_compiler_pic='-fpic' |
6757 |
|
lt_prog_compiler_static='-static' |
6758 |
|
;; |
6759 |
|
ccc*) |
6760 |
|
lt_prog_compiler_wl='-Wl,' |
6761 |
|
# All Alpha code is PIC. |
6762 |
|
lt_prog_compiler_static='-non_shared' |
6763 |
;; |
;; |
6764 |
esac |
esac |
6765 |
fi |
;; |
|
;; |
|
|
|
|
|
os2*) |
|
|
hardcode_libdir_flag_spec='-L$libdir' |
|
|
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' |
|
|
;; |
|
6766 |
|
|
6767 |
osf3*) |
osf3* | osf4* | osf5*) |
6768 |
if test "$GCC" = yes; then |
lt_prog_compiler_wl='-Wl,' |
6769 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
# All OSF/1 code is PIC. |
6770 |
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' |
lt_prog_compiler_static='-non_shared' |
6771 |
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=: |
|
|
;; |
|
6772 |
|
|
6773 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
sco3.2v5*) |
6774 |
if test "$GCC" = yes; then |
lt_prog_compiler_pic='-Kpic' |
6775 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
lt_prog_compiler_static='-dn' |
6776 |
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' |
;; |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
else |
|
|
allow_undefined_flag=' -expect_unresolved \*' |
|
|
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' |
|
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' |
|
6777 |
|
|
6778 |
#Both c and cxx compiler support -rpath directly |
solaris*) |
6779 |
hardcode_libdir_flag_spec='-rpath $libdir' |
lt_prog_compiler_pic='-KPIC' |
6780 |
fi |
lt_prog_compiler_static='-Bstatic' |
6781 |
hardcode_libdir_separator=: |
case $cc_basename in |
6782 |
;; |
f77* | f90* | f95*) |
6783 |
|
lt_prog_compiler_wl='-Qoption ld ';; |
6784 |
|
*) |
6785 |
|
lt_prog_compiler_wl='-Wl,';; |
6786 |
|
esac |
6787 |
|
;; |
6788 |
|
|
6789 |
sco3.2v5*) |
sunos4*) |
6790 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
lt_prog_compiler_wl='-Qoption ld ' |
6791 |
hardcode_shlibpath_var=no |
lt_prog_compiler_pic='-PIC' |
6792 |
runpath_var=LD_RUN_PATH |
lt_prog_compiler_static='-Bstatic' |
6793 |
hardcode_runpath_var=yes |
;; |
|
export_dynamic_flag_spec='${wl}-Bexport' |
|
|
;; |
|
6794 |
|
|
6795 |
solaris*) |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
6796 |
# gcc --version < 3.0 without binutils cannot create self contained |
lt_prog_compiler_wl='-Wl,' |
6797 |
# shared libraries reliably, requiring libgcc.a to resolve some of |
lt_prog_compiler_pic='-KPIC' |
6798 |
# the object symbols generated in some cases. Libraries that use |
lt_prog_compiler_static='-Bstatic' |
6799 |
# 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 |
|
6800 |
|
|
6801 |
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably |
sysv4*MP*) |
6802 |
*** create self contained shared libraries on Solaris systems, without |
if test -d /usr/nec ;then |
6803 |
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling |
lt_prog_compiler_pic='-Kconform_pic' |
6804 |
*** -no-undefined support, which will at least allow you to build shared |
lt_prog_compiler_static='-Bstatic' |
6805 |
*** libraries. However, you may find that when you link such libraries |
fi |
6806 |
*** 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. |
|
6807 |
|
|
6808 |
EOF |
unicos*) |
6809 |
no_undefined_flag= |
lt_prog_compiler_wl='-Wl,' |
6810 |
;; |
lt_prog_compiler_can_build_shared=no |
6811 |
esac |
;; |
|
fi |
|
|
# $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='-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' ;; |
|
|
esac |
|
|
link_all_deplibs=yes |
|
|
;; |
|
6812 |
|
|
6813 |
sunos4*) |
uts4*) |
6814 |
if test "x$host_vendor" = xsequent; then |
lt_prog_compiler_pic='-pic' |
6815 |
# Use $CC to link under sequent, because it throws in some extra .o |
lt_prog_compiler_static='-Bstatic' |
6816 |
# files that make .init and .fini sections work. |
;; |
|
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 |
|
|
;; |
|
6817 |
|
|
6818 |
sysv4) |
*) |
6819 |
case $host_vendor in |
lt_prog_compiler_can_build_shared=no |
6820 |
sni) |
;; |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_direct=yes # is this really true??? |
|
|
;; |
|
|
siemens) |
|
|
## LD is ld it makes a PLAMLIB |
|
|
## CC just makes a GrossModule. |
|
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
reload_cmds='$CC -r -o $output$reload_objs' |
|
|
hardcode_direct=no |
|
|
;; |
|
|
motorola) |
|
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
;; |
|
6821 |
esac |
esac |
6822 |
runpath_var='LD_RUN_PATH' |
fi |
|
hardcode_shlibpath_var=no |
|
|
;; |
|
6823 |
|
|
6824 |
sysv4.3*) |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
6825 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
|
hardcode_shlibpath_var=no |
|
|
export_dynamic_flag_spec='-Bexport' |
|
|
;; |
|
|
|
|
|
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 |
|
|
;; |
|
6826 |
|
|
6827 |
dgux*) |
# |
6828 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
# Check to make sure the PIC flag actually works. |
6829 |
hardcode_libdir_flag_spec='-L$libdir' |
# |
6830 |
hardcode_shlibpath_var=no |
if test -n "$lt_prog_compiler_pic"; then |
|
;; |
|
6831 |
|
|
6832 |
sysv4*MP*) |
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
6833 |
if test -d /usr/nec; then |
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
6834 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
if test "${lt_prog_compiler_pic_works+set}" = set; then |
6835 |
hardcode_shlibpath_var=no |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6836 |
runpath_var=LD_RUN_PATH |
else |
6837 |
hardcode_runpath_var=yes |
lt_prog_compiler_pic_works=no |
6838 |
ld_shlibs=yes |
ac_outfile=conftest.$ac_objext |
6839 |
fi |
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6840 |
;; |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
6841 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
6842 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
6843 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
6844 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6845 |
|
# The option is referenced via a variable to avoid confusing sed. |
6846 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6847 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6848 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6849 |
|
-e 's:$: $lt_compiler_flag:'` |
6850 |
|
(eval echo "\"\$as_me:6850: $lt_compile\"" >&5) |
6851 |
|
(eval "$lt_compile" 2>conftest.err) |
6852 |
|
ac_status=$? |
6853 |
|
cat conftest.err >&5 |
6854 |
|
echo "$as_me:6854: \$? = $ac_status" >&5 |
6855 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
6856 |
|
# The compiler can only warn and ignore the option if not recognized |
6857 |
|
# So say no if there are warnings other than the usual output. |
6858 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
6859 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
6860 |
|
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
6861 |
|
lt_prog_compiler_pic_works=yes |
6862 |
|
fi |
6863 |
|
fi |
6864 |
|
$rm conftest* |
6865 |
|
|
6866 |
sysv4.2uw2*) |
fi |
6867 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
6868 |
hardcode_direct=yes |
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
|
hardcode_minus_L=no |
|
|
hardcode_shlibpath_var=no |
|
|
hardcode_runpath_var=yes |
|
|
runpath_var=LD_RUN_PATH |
|
|
;; |
|
6869 |
|
|
6870 |
sysv5uw7* | unixware7*) |
if test x"$lt_prog_compiler_pic_works" = xyes; then |
6871 |
no_undefined_flag='${wl}-z ${wl}text' |
case $lt_prog_compiler_pic in |
6872 |
if test "$GCC" = yes; then |
"" | " "*) ;; |
6873 |
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
6874 |
else |
esac |
6875 |
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
else |
6876 |
fi |
lt_prog_compiler_pic= |
6877 |
runpath_var='LD_RUN_PATH' |
lt_prog_compiler_can_build_shared=no |
6878 |
hardcode_shlibpath_var=no |
fi |
|
;; |
|
6879 |
|
|
6880 |
|
fi |
6881 |
|
case "$host_os" in |
6882 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
6883 |
|
*djgpp*) |
6884 |
|
lt_prog_compiler_pic= |
6885 |
|
;; |
6886 |
*) |
*) |
6887 |
ld_shlibs=no |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
6888 |
;; |
;; |
6889 |
esac |
esac |
6890 |
|
|
6891 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
6892 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
6893 |
|
if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
6894 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6895 |
|
else |
6896 |
|
lt_cv_prog_compiler_c_o=no |
6897 |
|
$rm -r conftest 2>/dev/null |
6898 |
|
mkdir conftest |
6899 |
|
cd conftest |
6900 |
|
mkdir out |
6901 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
6902 |
|
|
6903 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
6904 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
6905 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
6906 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
6907 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
6908 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
6909 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
6910 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6911 |
|
-e 's:$: $lt_compiler_flag:'` |
6912 |
|
(eval echo "\"\$as_me:6912: $lt_compile\"" >&5) |
6913 |
|
(eval "$lt_compile" 2>out/conftest.err) |
6914 |
|
ac_status=$? |
6915 |
|
cat out/conftest.err >&5 |
6916 |
|
echo "$as_me:6916: \$? = $ac_status" >&5 |
6917 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
6918 |
|
then |
6919 |
|
# The compiler can only warn and ignore the option if not recognized |
6920 |
|
# So say no if there are warnings |
6921 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
6922 |
|
$SED '/^$/d' out/conftest.err >out/conftest.er2 |
6923 |
|
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
6924 |
|
lt_cv_prog_compiler_c_o=yes |
6925 |
|
fi |
6926 |
|
fi |
6927 |
|
chmod u+w . |
6928 |
|
$rm conftest* |
6929 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
6930 |
|
# template instantiation |
6931 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
6932 |
|
$rm out/* && rmdir out |
6933 |
|
cd .. |
6934 |
|
rmdir conftest |
6935 |
|
$rm conftest* |
6936 |
|
|
6937 |
fi |
fi |
6938 |
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
6939 |
echo "${ECHO_T}$ld_shlibs" >&6 |
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
|
test "$ld_shlibs" = no && can_build_shared=no |
|
6940 |
|
|
|
# Check hardcoding attributes. |
|
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
hardcode_action= |
|
|
if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
test -n "$runpath_var"; then |
|
6941 |
|
|
6942 |
# We can hardcode non-existant directories. |
hard_links="nottested" |
6943 |
if test "$hardcode_direct" != no && |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
6944 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
# do not overwrite the value of need_locks provided by the user |
6945 |
# have to relink, otherwise we might link with an installed library |
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
6946 |
# when we should be linking with a yet-to-be-installed one |
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
6947 |
## test "$hardcode_shlibpath_var" != no && |
hard_links=yes |
6948 |
test "$hardcode_minus_L" != no; then |
$rm conftest* |
6949 |
# Linking always hardcodes the temporary library directory. |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6950 |
hardcode_action=relink |
touch conftest.a |
6951 |
else |
ln conftest.a conftest.b 2>&5 || hard_links=no |
6952 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
6953 |
hardcode_action=immediate |
echo "$as_me:$LINENO: result: $hard_links" >&5 |
6954 |
|
echo "${ECHO_T}$hard_links" >&6 |
6955 |
|
if test "$hard_links" = no; then |
6956 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
6957 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
6958 |
|
need_locks=warn |
6959 |
fi |
fi |
6960 |
else |
else |
6961 |
# We cannot hardcode anything, or else we can only hardcode existing |
need_locks=no |
|
# directories. |
|
|
hardcode_action=unsupported |
|
6962 |
fi |
fi |
|
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
echo "${ECHO_T}$hardcode_action" >&6 |
|
6963 |
|
|
6964 |
striplib= |
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
6965 |
old_striplib= |
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
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 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
6966 |
|
|
6967 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
runpath_var= |
6968 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
allow_undefined_flag= |
6969 |
|
enable_shared_with_static_runtimes=no |
6970 |
|
archive_cmds= |
6971 |
|
archive_expsym_cmds= |
6972 |
|
old_archive_From_new_cmds= |
6973 |
|
old_archive_from_expsyms_cmds= |
6974 |
|
export_dynamic_flag_spec= |
6975 |
|
whole_archive_flag_spec= |
6976 |
|
thread_safe_flag_spec= |
6977 |
|
hardcode_libdir_flag_spec= |
6978 |
|
hardcode_libdir_flag_spec_ld= |
6979 |
|
hardcode_libdir_separator= |
6980 |
|
hardcode_direct=no |
6981 |
|
hardcode_minus_L=no |
6982 |
|
hardcode_shlibpath_var=unsupported |
6983 |
|
link_all_deplibs=unknown |
6984 |
|
hardcode_automatic=no |
6985 |
|
module_cmds= |
6986 |
|
module_expsym_cmds= |
6987 |
|
always_export_symbols=no |
6988 |
|
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
6989 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
6990 |
|
# included in the symbol list |
6991 |
|
include_expsyms= |
6992 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
6993 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
6994 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
6995 |
|
# as well as any symbol that contains `d'. |
6996 |
|
exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
6997 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
6998 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
6999 |
|
# the symbol is explicitly referenced. Since portable code cannot |
7000 |
|
# rely on this symbol name, it's probably fine to never include it in |
7001 |
|
# preloaded symbol tables. |
7002 |
|
extract_expsyms_cmds= |
7003 |
|
# Just being paranoid about ensuring that cc_basename is set. |
7004 |
|
for cc_temp in $compiler""; do |
7005 |
|
case $cc_temp in |
7006 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7007 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7008 |
|
\-*) ;; |
7009 |
|
*) break;; |
7010 |
|
esac |
7011 |
|
done |
7012 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7013 |
|
|
7014 |
# PORTME Fill in your ld.so characteristics |
case $host_os in |
7015 |
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
cygwin* | mingw* | pw32*) |
7016 |
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
7017 |
library_names_spec= |
# When not using gcc, we currently assume that we are using |
7018 |
libname_spec='lib$name' |
# Microsoft Visual C++. |
7019 |
soname_spec= |
if test "$GCC" != yes; then |
7020 |
postinstall_cmds= |
with_gnu_ld=no |
7021 |
postuninstall_cmds= |
fi |
7022 |
finish_cmds= |
;; |
7023 |
finish_eval= |
openbsd*) |
7024 |
shlibpath_var= |
with_gnu_ld=no |
7025 |
shlibpath_overrides_runpath=unknown |
;; |
7026 |
version_type=none |
esac |
|
dynamic_linker="$host_os ld.so" |
|
|
sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib" |
|
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib /usr/X11R6/lib" |
|
7027 |
|
|
7028 |
case $host_os in |
ld_shlibs=yes |
7029 |
aix3*) |
if test "$with_gnu_ld" = yes; then |
7030 |
version_type=linux |
# If archive_cmds runs LD, not CC, wlarc should be empty |
7031 |
library_names_spec='${libname}${release}.so$versuffix $libname.a' |
wlarc='${wl}' |
|
shlibpath_var=LIBPATH |
|
7032 |
|
|
7033 |
# AIX has no versioning support, so we append a major version to the name. |
# Set some defaults for GNU ld with shared library support. These |
7034 |
soname_spec='${libname}${release}.so$major' |
# are reset later if shared libraries are not supported. Putting them |
7035 |
;; |
# here allows them to be overridden if necessary. |
7036 |
|
runpath_var=LD_RUN_PATH |
7037 |
|
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7038 |
|
export_dynamic_flag_spec='${wl}--export-dynamic' |
7039 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
7040 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7041 |
|
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7042 |
|
else |
7043 |
|
whole_archive_flag_spec= |
7044 |
|
fi |
7045 |
|
supports_anon_versioning=no |
7046 |
|
case `$LD -v 2>/dev/null` in |
7047 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7048 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7049 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7050 |
|
*\ 2.11.*) ;; # other 2.11 versions |
7051 |
|
*) supports_anon_versioning=yes ;; |
7052 |
|
esac |
7053 |
|
|
7054 |
aix4* | aix5*) |
# See if GNU ld supports shared libraries. |
|
version_type=linux |
|
|
need_lib_prefix=no |
|
|
need_version=no |
|
|
hardcode_into_libs=yes |
|
|
if test "$host_cpu" = ia64; then |
|
|
# AIX 5 supports IA64 |
|
|
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
else |
|
|
# With GCC up to 2.95.x, collect2 would create an import file |
|
|
# for dependence libraries. The import file would start with |
|
|
# the line `#! .'. This would cause the generated library to |
|
|
# depend on `.', always an invalid library. This was fixed in |
|
|
# development snapshots of GCC prior to 3.0. |
|
7055 |
case $host_os in |
case $host_os in |
7056 |
aix4 | aix4.[01] | aix4.[01].*) |
aix3* | aix4* | aix5*) |
7057 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
# On AIX/PPC, the GNU linker is very broken |
7058 |
echo ' yes ' |
if test "$host_cpu" != ia64; then |
7059 |
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
ld_shlibs=no |
7060 |
: |
cat <<EOF 1>&2 |
|
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 |
|
|
fi |
|
|
hardcode_into_libs=yes |
|
|
;; |
|
7061 |
|
|
7062 |
amigaos*) |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7063 |
library_names_spec='$libname.ixlibrary $libname.a' |
*** to be unable to reliably create shared libraries on AIX. |
7064 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
*** Therefore, libtool is disabling shared libraries support. If you |
7065 |
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' |
*** really care for shared libraries, you may want to modify your PATH |
7066 |
;; |
*** so that a non-GNU linker is found, and then restart. |
7067 |
|
|
7068 |
beos*) |
EOF |
7069 |
library_names_spec='${libname}.so' |
fi |
7070 |
dynamic_linker="$host_os ld.so" |
;; |
|
shlibpath_var=LIBRARY_PATH |
|
|
;; |
|
7071 |
|
|
7072 |
bsdi4*) |
amigaos*) |
7073 |
version_type=linux |
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)' |
7074 |
need_version=no |
hardcode_libdir_flag_spec='-L$libdir' |
7075 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
hardcode_minus_L=yes |
7076 |
soname_spec='${libname}${release}.so$major' |
|
7077 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7078 |
shlibpath_var=LD_LIBRARY_PATH |
# that the semantics of dynamic libraries on AmigaOS, at least up |
7079 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
# to version 4, is to share data among multiple programs linked |
7080 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
# with the same dynamic library. Since this doesn't match the |
7081 |
export_dynamic_flag_spec=-rdynamic |
# behavior of shared libraries on other platforms, we can't use |
7082 |
# the default ld.so.conf also contains /usr/contrib/lib and |
# them. |
7083 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
ld_shlibs=no |
7084 |
# libtool to hard-code these into programs |
;; |
|
;; |
|
7085 |
|
|
7086 |
cygwin* | mingw* | pw32*) |
beos*) |
7087 |
version_type=windows |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7088 |
need_version=no |
allow_undefined_flag=unsupported |
7089 |
need_lib_prefix=no |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7090 |
case $GCC,$host_os in |
# support --undefined. This deserves some investigation. FIXME |
7091 |
yes,cygwin*) |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7092 |
library_names_spec='$libname.dll.a' |
else |
7093 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
ld_shlibs=no |
7094 |
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ |
fi |
7095 |
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' |
|
|
;; |
|
|
*) |
|
|
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
|
|
;; |
|
|
esac |
|
|
dynamic_linker='Win32 ld.exe' |
|
|
# FIXME: first we should search . and the directory the executable is in |
|
|
shlibpath_var=PATH |
|
|
;; |
|
7096 |
|
|
7097 |
darwin* | rhapsody*) |
cygwin* | mingw* | pw32*) |
7098 |
dynamic_linker="$host_os dyld" |
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7099 |
version_type=darwin |
# as there is no search path for DLLs. |
7100 |
need_lib_prefix=no |
hardcode_libdir_flag_spec='-L$libdir' |
7101 |
need_version=no |
allow_undefined_flag=unsupported |
7102 |
# FIXME: Relying on posixy $() will cause problems for |
always_export_symbols=no |
7103 |
# cross-compilation, but unfortunately the echo tests do not |
enable_shared_with_static_runtimes=yes |
7104 |
# yet detect zsh echo's removal of \ escapes. |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7105 |
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)' |
|
7106 |
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' |
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7107 |
shlibpath_overrides_runpath=yes |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
7108 |
shlibpath_var=DYLD_LIBRARY_PATH |
# If the export-symbols file already is a .def file (1st line |
7109 |
;; |
# is EXPORTS), use it as is; otherwise, prepend... |
7110 |
|
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7111 |
|
cp $export_symbols $output_objdir/$soname.def; |
7112 |
|
else |
7113 |
|
echo EXPORTS > $output_objdir/$soname.def; |
7114 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
7115 |
|
fi~ |
7116 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
7117 |
|
else |
7118 |
|
ld_shlibs=no |
7119 |
|
fi |
7120 |
|
;; |
7121 |
|
|
7122 |
freebsd1*) |
linux*) |
7123 |
dynamic_linker=no |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7124 |
;; |
tmp_addflag= |
7125 |
|
case $cc_basename,$host_cpu in |
7126 |
|
pgcc*) # Portland Group C compiler |
7127 |
|
whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7128 |
|
tmp_addflag=' $pic_flag' |
7129 |
|
;; |
7130 |
|
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
7131 |
|
whole_archive_flag_spec='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
7132 |
|
tmp_addflag=' $pic_flag -Mnomain' ;; |
7133 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7134 |
|
tmp_addflag=' -i_dynamic' ;; |
7135 |
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7136 |
|
tmp_addflag=' -i_dynamic -nofor_main' ;; |
7137 |
|
ifc* | ifort*) # Intel Fortran compiler |
7138 |
|
tmp_addflag=' -nofor_main' ;; |
7139 |
|
esac |
7140 |
|
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7141 |
|
|
7142 |
freebsd*) |
if test $supports_anon_versioning = yes; then |
7143 |
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7144 |
version_type=freebsd-$objformat |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7145 |
case $version_type in |
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
7146 |
freebsd-elf*) |
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7147 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
fi |
7148 |
need_version=no |
else |
7149 |
need_lib_prefix=no |
ld_shlibs=no |
7150 |
|
fi |
7151 |
;; |
;; |
7152 |
freebsd-*) |
|
7153 |
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
netbsd*) |
7154 |
need_version=yes |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7155 |
|
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7156 |
|
wlarc= |
7157 |
|
else |
7158 |
|
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7159 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7160 |
|
fi |
7161 |
;; |
;; |
|
esac |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
case $host_os in |
|
|
freebsd2*) |
|
|
shlibpath_overrides_runpath=yes |
|
|
;; |
|
|
*) |
|
|
shlibpath_overrides_runpath=no |
|
|
hardcode_into_libs=yes |
|
|
;; |
|
|
esac |
|
|
;; |
|
7162 |
|
|
7163 |
gnu*) |
solaris* | sysv5*) |
7164 |
version_type=linux |
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7165 |
need_lib_prefix=no |
ld_shlibs=no |
7166 |
need_version=no |
cat <<EOF 1>&2 |
|
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
|
|
soname_spec='${libname}${release}.so$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
hardcode_into_libs=yes |
|
|
;; |
|
7167 |
|
|
7168 |
hpux9* | hpux10* | hpux11*) |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7169 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
*** create shared libraries on Solaris systems. Therefore, libtool |
7170 |
# link against other versions. |
*** is disabling shared libraries support. We urge you to upgrade GNU |
7171 |
dynamic_linker="$host_os dld.sl" |
*** binutils to release 2.9.1 or newer. Another option is to modify |
7172 |
version_type=sunos |
*** your PATH or compiler configuration so that the native linker is |
7173 |
need_lib_prefix=no |
*** used, and then restart. |
|
need_version=no |
|
|
shlibpath_var=SHLIB_PATH |
|
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
|
|
soname_spec='${libname}${release}.sl$major' |
|
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
postinstall_cmds='chmod 555 $lib' |
|
|
;; |
|
7174 |
|
|
7175 |
irix5* | irix6* | nonstopux*) |
EOF |
7176 |
case $host_os in |
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7177 |
nonstopux*) version_type=nonstopux ;; |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7178 |
*) version_type=irix ;; |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7179 |
esac |
else |
7180 |
need_lib_prefix=no |
ld_shlibs=no |
7181 |
need_version=no |
fi |
7182 |
soname_spec='${libname}${release}.so$major' |
;; |
7183 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
7184 |
case $host_os in |
sunos4*) |
7185 |
irix5* | nonstopux*) |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7186 |
libsuff= shlibsuff= |
wlarc= |
7187 |
;; |
hardcode_direct=yes |
7188 |
*) |
hardcode_shlibpath_var=no |
7189 |
case $LD in # libtool.m4 will add one of these switches to LD |
;; |
7190 |
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
7191 |
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
*) |
7192 |
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7193 |
*) libsuff= shlibsuff= libmagic=never-match;; |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7194 |
|
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7195 |
|
else |
7196 |
|
ld_shlibs=no |
7197 |
|
fi |
7198 |
|
;; |
7199 |
esac |
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}" |
|
|
;; |
|
7200 |
|
|
7201 |
# No shared lib support for Linux oldld, aout, or coff. |
if test "$ld_shlibs" = no; then |
7202 |
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
runpath_var= |
7203 |
dynamic_linker=no |
hardcode_libdir_flag_spec= |
7204 |
;; |
export_dynamic_flag_spec= |
7205 |
|
whole_archive_flag_spec= |
7206 |
|
fi |
7207 |
|
else |
7208 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
7209 |
|
case $host_os in |
7210 |
|
aix3*) |
7211 |
|
allow_undefined_flag=unsupported |
7212 |
|
always_export_symbols=yes |
7213 |
|
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' |
7214 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
7215 |
|
# are no directories specified by -L. |
7216 |
|
hardcode_minus_L=yes |
7217 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
7218 |
|
# Neither direct hardcoding nor static linking is supported with a |
7219 |
|
# broken collect2. |
7220 |
|
hardcode_direct=unsupported |
7221 |
|
fi |
7222 |
|
;; |
7223 |
|
|
7224 |
# This must be Linux ELF. |
aix4* | aix5*) |
7225 |
linux-gnu*) |
if test "$host_cpu" = ia64; then |
7226 |
version_type=linux |
# On IA64, the linker does run time linking by default, so we don't |
7227 |
need_lib_prefix=no |
# have to do anything special. |
7228 |
need_version=no |
aix_use_runtimelinking=no |
7229 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
exp_sym_flag='-Bexport' |
7230 |
soname_spec='${libname}${release}.so$major' |
no_entry_flag="" |
7231 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
else |
7232 |
shlibpath_var=LD_LIBRARY_PATH |
# If we're using GNU nm, then we don't want the "-C" option. |
7233 |
shlibpath_overrides_runpath=no |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
7234 |
# This implies no fast_install, which is unacceptable. |
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7235 |
# Some rework will be needed to allow for fast_install |
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' |
7236 |
# before this can be enabled. |
else |
7237 |
hardcode_into_libs=yes |
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' |
7238 |
|
fi |
7239 |
|
aix_use_runtimelinking=no |
7240 |
|
|
7241 |
case $host_cpu:$lt_cv_cc_64bit_output in |
# Test if we are trying to use run time linking or normal |
7242 |
powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7243 |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" |
# need to do runtime linking. |
7244 |
sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" |
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7245 |
;; |
for ld_flag in $LDFLAGS; do |
7246 |
esac |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7247 |
|
aix_use_runtimelinking=yes |
7248 |
|
break |
7249 |
|
fi |
7250 |
|
done |
7251 |
|
esac |
7252 |
|
|
7253 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
exp_sym_flag='-bexport' |
7254 |
# powerpc, because MkLinux only supported shared libraries with the |
no_entry_flag='-bnoentry' |
7255 |
# GNU dynamic linker. Since this was broken with cross compilers, |
fi |
|
# most powerpc-linux boxes support dynamic linking these days and |
|
|
# people can always --disable-shared, the test was removed, and we |
|
|
# assume the GNU/Linux dynamic linker is in use. |
|
|
dynamic_linker='GNU/Linux ld.so' |
|
|
;; |
|
7256 |
|
|
7257 |
netbsd*) |
# When large executables or shared objects are built, AIX ld can |
7258 |
version_type=sunos |
# have problems creating the table of contents. If linking a library |
7259 |
need_lib_prefix=no |
# or program results in "error TOC overflow" add -mminimal-toc to |
7260 |
need_version=no |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7261 |
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7262 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
7263 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
archive_cmds='' |
7264 |
dynamic_linker='NetBSD (a.out) ld.so' |
hardcode_direct=yes |
7265 |
else |
hardcode_libdir_separator=':' |
7266 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
link_all_deplibs=yes |
7267 |
soname_spec='${libname}${release}.so$major' |
|
7268 |
dynamic_linker='NetBSD ld.elf_so' |
if test "$GCC" = yes; then |
7269 |
fi |
case $host_os in aix4.[012]|aix4.[012].*) |
7270 |
shlibpath_var=LD_LIBRARY_PATH |
# We only want to do this on AIX 4.2 and lower, the check |
7271 |
shlibpath_overrides_runpath=yes |
# below for broken collect2 doesn't work under 4.3+ |
7272 |
hardcode_into_libs=yes |
collect2name=`${CC} -print-prog-name=collect2` |
7273 |
;; |
if test -f "$collect2name" && \ |
7274 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
7275 |
newsos6) |
then |
7276 |
version_type=linux |
# We have reworked collect2 |
7277 |
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
hardcode_direct=yes |
7278 |
shlibpath_var=LD_LIBRARY_PATH |
else |
7279 |
shlibpath_overrides_runpath=yes |
# We have old collect2 |
7280 |
;; |
hardcode_direct=unsupported |
7281 |
|
# It fails to find uninstalled libraries when the uninstalled |
7282 |
openbsd*) |
# path is not listed in the libpath. Setting hardcode_minus_L |
7283 |
version_type=sunos |
# to unsupported forces relinking |
7284 |
need_lib_prefix=no |
hardcode_minus_L=yes |
7285 |
need_version=no |
hardcode_libdir_flag_spec='-L$libdir' |
7286 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
hardcode_libdir_separator= |
7287 |
case "$host_os" in |
fi |
7288 |
openbsd2.[89] | openbsd2.[89].*) |
esac |
7289 |
shlibpath_overrides_runpath=no |
shared_flag='-shared' |
7290 |
;; |
if test "$aix_use_runtimelinking" = yes; then |
7291 |
*) |
shared_flag="$shared_flag "'${wl}-G' |
7292 |
shlibpath_overrides_runpath=yes |
fi |
7293 |
;; |
else |
7294 |
esac |
# not using gcc |
7295 |
else |
if test "$host_cpu" = ia64; then |
7296 |
shlibpath_overrides_runpath=yes |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7297 |
fi |
# chokes on -Wl,-G. The following line is correct: |
7298 |
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
shared_flag='-G' |
7299 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
else |
7300 |
shlibpath_var=LD_LIBRARY_PATH |
if test "$aix_use_runtimelinking" = yes; then |
7301 |
;; |
shared_flag='${wl}-G' |
7302 |
|
else |
7303 |
os2*) |
shared_flag='${wl}-bM:SRE' |
7304 |
libname_spec='$name' |
fi |
7305 |
need_lib_prefix=no |
fi |
7306 |
library_names_spec='$libname.dll $libname.a' |
fi |
|
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 |
|
|
;; |
|
|
|
|
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
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' |
|
|
runpath_var=LD_RUN_PATH |
|
|
;; |
|
|
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 |
|
|
;; |
|
|
|
|
|
sysv4*MP*) |
|
|
if test -d /usr/nec ;then |
|
|
version_type=linux |
|
|
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
|
|
soname_spec='$libname.so.$major' |
|
|
shlibpath_var=LD_LIBRARY_PATH |
|
|
fi |
|
|
;; |
|
|
|
|
|
*) |
|
|
dynamic_linker=no |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
test "$dynamic_linker" = no && can_build_shared=no |
|
|
|
|
|
# Report the final consequences. |
|
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
echo "${ECHO_T}$can_build_shared" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
|
test "$can_build_shared" = "no" && enable_shared=no |
|
|
|
|
|
# On AIX, shared libraries and static libraries use the same namespace, and |
|
|
# are all built from PIC. |
|
|
case "$host_os" in |
|
|
aix3*) |
|
|
test "$enable_shared" = yes && enable_static=no |
|
|
if test -n "$RANLIB"; then |
|
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
postinstall_cmds='$RANLIB $lib' |
|
|
fi |
|
|
;; |
|
|
|
|
|
aix4*) |
|
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
test "$enable_shared" = yes && enable_static=no |
|
|
fi |
|
|
;; |
|
|
esac |
|
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
echo "${ECHO_T}$enable_shared" >&6 |
|
|
|
|
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
|
# Make sure either enable_shared or enable_static is yes. |
|
|
test "$enable_shared" = yes || enable_static=yes |
|
|
echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
|
echo "${ECHO_T}$enable_static" >&6 |
|
|
|
|
|
if test "$hardcode_action" = relink; then |
|
|
# Fast installation is not supported |
|
|
enable_fast_install=no |
|
|
elif test "$shlibpath_overrides_runpath" = yes || |
|
|
test "$enable_shared" = no; then |
|
|
# Fast installation is not necessary |
|
|
enable_fast_install=needless |
|
|
fi |
|
|
|
|
|
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" |
|
|
fi |
|
|
|
|
|
if test "x$enable_dlopen" != xyes; then |
|
|
enable_dlopen=unknown |
|
|
enable_dlopen_self=unknown |
|
|
enable_dlopen_self_static=unknown |
|
|
else |
|
|
lt_cv_dlopen=no |
|
|
lt_cv_dlopen_libs= |
|
|
|
|
|
case $host_os in |
|
|
beos*) |
|
|
lt_cv_dlopen="load_add_on" |
|
|
lt_cv_dlopen_libs= |
|
|
lt_cv_dlopen_self=yes |
|
|
;; |
|
|
|
|
|
cygwin* | mingw* | pw32*) |
|
|
lt_cv_dlopen="LoadLibrary" |
|
|
lt_cv_dlopen_libs= |
|
|
;; |
|
7307 |
|
|
7308 |
*) |
# It seems that -bexpall does not export symbols beginning with |
7309 |
echo "$as_me:$LINENO: checking for shl_load" >&5 |
# underscore (_), so it is better to generate a list of symbols to export. |
7310 |
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
always_export_symbols=yes |
7311 |
if test "${ac_cv_func_shl_load+set}" = set; then |
if test "$aix_use_runtimelinking" = yes; then |
7312 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
# Warning - without using the other runtime loading flags (-brtl), |
7313 |
else |
# -berok will link without error, but may produce a broken library. |
7314 |
cat >conftest.$ac_ext <<_ACEOF |
allow_undefined_flag='-berok' |
7315 |
|
# Determine the default libpath from the value encoded in an empty executable. |
7316 |
|
cat >conftest.$ac_ext <<_ACEOF |
7317 |
/* confdefs.h. */ |
/* confdefs.h. */ |
7318 |
_ACEOF |
_ACEOF |
7319 |
cat confdefs.h >>conftest.$ac_ext |
cat confdefs.h >>conftest.$ac_ext |
7320 |
cat >>conftest.$ac_ext <<_ACEOF |
cat >>conftest.$ac_ext <<_ACEOF |
7321 |
/* end confdefs.h. */ |
/* 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 |
|
7322 |
|
|
7323 |
int |
int |
7324 |
main () |
main () |
7325 |
{ |
{ |
7326 |
return f != shl_load; |
|
7327 |
; |
; |
7328 |
return 0; |
return 0; |
7329 |
} |
} |
7350 |
ac_status=$? |
ac_status=$? |
7351 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7352 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
7353 |
ac_cv_func_shl_load=yes |
|
7354 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7355 |
|
}'` |
7356 |
|
# Check for a 64-bit object if we didn't find anything. |
7357 |
|
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; } |
7358 |
|
}'`; fi |
7359 |
else |
else |
7360 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
7361 |
sed 's/^/| /' conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7362 |
|
|
|
ac_cv_func_shl_load=no |
|
7363 |
fi |
fi |
7364 |
rm -f conftest.err conftest.$ac_objext \ |
rm -f conftest.err conftest.$ac_objext \ |
7365 |
conftest$ac_exeext conftest.$ac_ext |
conftest$ac_exeext conftest.$ac_ext |
7366 |
fi |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7367 |
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
7368 |
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7369 |
if test $ac_cv_func_shl_load = yes; then |
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" |
7370 |
lt_cv_dlopen="shl_load" |
else |
7371 |
else |
if test "$host_cpu" = ia64; then |
7372 |
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7373 |
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
allow_undefined_flag="-z nodefs" |
7374 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
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" |
7375 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
else |
7376 |
else |
# Determine the default libpath from the value encoded in an empty executable. |
7377 |
ac_check_lib_save_LIBS=$LIBS |
cat >conftest.$ac_ext <<_ACEOF |
|
LIBS="-ldld $LIBS" |
|
|
cat >conftest.$ac_ext <<_ACEOF |
|
7378 |
/* confdefs.h. */ |
/* confdefs.h. */ |
7379 |
_ACEOF |
_ACEOF |
7380 |
cat confdefs.h >>conftest.$ac_ext |
cat confdefs.h >>conftest.$ac_ext |
7381 |
cat >>conftest.$ac_ext <<_ACEOF |
cat >>conftest.$ac_ext <<_ACEOF |
7382 |
/* end confdefs.h. */ |
/* end confdefs.h. */ |
7383 |
|
|
|
/* 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 (); |
|
7384 |
int |
int |
7385 |
main () |
main () |
7386 |
{ |
{ |
7387 |
shl_load (); |
|
7388 |
; |
; |
7389 |
return 0; |
return 0; |
7390 |
} |
} |
7411 |
ac_status=$? |
ac_status=$? |
7412 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7413 |
(exit $ac_status); }; }; then |
(exit $ac_status); }; }; then |
7414 |
ac_cv_lib_dld_shl_load=yes |
|
7415 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
7416 |
|
}'` |
7417 |
|
# Check for a 64-bit object if we didn't find anything. |
7418 |
|
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; } |
7419 |
|
}'`; fi |
7420 |
else |
else |
7421 |
echo "$as_me: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
7422 |
sed 's/^/| /' conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
7423 |
|
|
|
ac_cv_lib_dld_shl_load=no |
|
7424 |
fi |
fi |
7425 |
rm -f conftest.err conftest.$ac_objext \ |
rm -f conftest.err conftest.$ac_objext \ |
7426 |
conftest$ac_exeext conftest.$ac_ext |
conftest$ac_exeext conftest.$ac_ext |
7427 |
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 |
|
7428 |
|
|
7429 |
/* System header to define __stub macros and hopefully few prototypes, |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7430 |
which can conflict with char dlopen (); below. |
# Warning - without using the other run time loading flags, |
7431 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
# -berok will link without error, but may produce a broken library. |
7432 |
<limits.h> exists even on freestanding compilers. */ |
no_undefined_flag=' ${wl}-bernotok' |
7433 |
|
allow_undefined_flag=' ${wl}-berok' |
7434 |
|
# -bexpall does not export symbols beginning with underscore (_) |
7435 |
|
always_export_symbols=yes |
7436 |
|
# Exported symbols can be pulled into shared objects from archives |
7437 |
|
whole_archive_flag_spec=' ' |
7438 |
|
archive_cmds_need_lc=yes |
7439 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
7440 |
|
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' |
7441 |
|
fi |
7442 |
|
fi |
7443 |
|
;; |
7444 |
|
|
7445 |
#ifdef __STDC__ |
amigaos*) |
7446 |
# 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)' |
7447 |
#else |
hardcode_libdir_flag_spec='-L$libdir' |
7448 |
# include <assert.h> |
hardcode_minus_L=yes |
7449 |
#endif |
# see comment about different semantics on the GNU ld section |
7450 |
|
ld_shlibs=no |
7451 |
|
;; |
7452 |
|
|
7453 |
#undef dlopen |
bsdi[45]*) |
7454 |
|
export_dynamic_flag_spec=-rdynamic |
7455 |
|
;; |
7456 |
|
|
7457 |
/* Override any gcc2 internal prototype to avoid an error. */ |
cygwin* | mingw* | pw32*) |
7458 |
#ifdef __cplusplus |
# When not using gcc, we currently assume that we are using |
7459 |
extern "C" |
# Microsoft Visual C++. |
7460 |
{ |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
7461 |
#endif |
# no search path for DLLs. |
7462 |
/* We use char because int might match the return type of a gcc2 |
hardcode_libdir_flag_spec=' ' |
7463 |
builtin and then its argument prototype would still apply. */ |
allow_undefined_flag=unsupported |
7464 |
char dlopen (); |
# Tell ltmain to make .lib files, not .a files. |
7465 |
/* The GNU C library defines this for functions which it implements |
libext=lib |
7466 |
to always fail with ENOSYS. Some functions are actually named |
# Tell ltmain to make .dll files, not .so files. |
7467 |
something starting with __ and the normal name is an alias. */ |
shrext_cmds=".dll" |
7468 |
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
# FIXME: Setting linknames here is a bad hack. |
7469 |
choke me |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
7470 |
#else |
# The linker will automatically build a .lib file if we build a DLL. |
7471 |
char (*f) () = dlopen; |
old_archive_From_new_cmds='true' |
7472 |
#endif |
# FIXME: Should let the user specify the lib program. |
7473 |
#ifdef __cplusplus |
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
7474 |
} |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
7475 |
#endif |
enable_shared_with_static_runtimes=yes |
7476 |
|
;; |
7477 |
|
|
7478 |
int |
darwin* | rhapsody*) |
7479 |
main () |
case "$host_os" in |
7480 |
{ |
rhapsody* | darwin1.[012]) |
7481 |
return f != dlopen; |
allow_undefined_flag='${wl}-undefined ${wl}suppress' |
7482 |
; |
;; |
7483 |
return 0; |
*) # Darwin 1.3 on |
7484 |
} |
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
7485 |
_ACEOF |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7486 |
rm -f conftest.$ac_objext conftest$ac_exeext |
else |
7487 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
case ${MACOSX_DEPLOYMENT_TARGET} in |
7488 |
(eval $ac_link) 2>conftest.er1 |
10.[012]) |
7489 |
ac_status=$? |
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
7490 |
grep -v '^ *+' conftest.er1 >conftest.err |
;; |
7491 |
rm -f conftest.er1 |
10.*) |
7492 |
cat conftest.err >&5 |
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
7493 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
;; |
7494 |
(exit $ac_status); } && |
esac |
7495 |
{ ac_try='test -z "$ac_c_werror_flag" |
fi |
7496 |
|| test ! -s conftest.err' |
;; |
7497 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
esac |
7498 |
(eval $ac_try) 2>&5 |
archive_cmds_need_lc=no |
7499 |
ac_status=$? |
hardcode_direct=no |
7500 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
hardcode_automatic=yes |
7501 |
(exit $ac_status); }; } && |
hardcode_shlibpath_var=unsupported |
7502 |
{ ac_try='test -s conftest$ac_exeext' |
whole_archive_flag_spec='' |
7503 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
link_all_deplibs=yes |
7504 |
(eval $ac_try) 2>&5 |
if test "$GCC" = yes ; then |
7505 |
ac_status=$? |
output_verbose_link_cmd='echo' |
7506 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
7507 |
(exit $ac_status); }; }; then |
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7508 |
ac_cv_func_dlopen=yes |
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
7509 |
else |
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}' |
7510 |
echo "$as_me: failed program was:" >&5 |
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}' |
7511 |
sed 's/^/| /' conftest.$ac_ext >&5 |
else |
7512 |
|
case $cc_basename in |
7513 |
|
xlc*) |
7514 |
|
output_verbose_link_cmd='echo' |
7515 |
|
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
7516 |
|
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
7517 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
7518 |
|
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7519 |
|
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}' |
7520 |
|
;; |
7521 |
|
*) |
7522 |
|
ld_shlibs=no |
7523 |
|
;; |
7524 |
|
esac |
7525 |
|
fi |
7526 |
|
;; |
7527 |
|
|
7528 |
ac_cv_func_dlopen=no |
dgux*) |
7529 |
fi |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7530 |
rm -f conftest.err conftest.$ac_objext \ |
hardcode_libdir_flag_spec='-L$libdir' |
7531 |
conftest$ac_exeext conftest.$ac_ext |
hardcode_shlibpath_var=no |
7532 |
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. */ |
|
7533 |
|
|
7534 |
/* Override any gcc2 internal prototype to avoid an error. */ |
freebsd1*) |
7535 |
#ifdef __cplusplus |
ld_shlibs=no |
7536 |
extern "C" |
;; |
7537 |
#endif |
|
7538 |
/* We use char because int might match the return type of a gcc2 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
7539 |
builtin and then its argument prototype would still apply. */ |
# support. Future versions do this automatically, but an explicit c++rt0.o |
7540 |
char dlopen (); |
# does not break anything, and helps significantly (at the cost of a little |
7541 |
int |
# extra space). |
7542 |
main () |
freebsd2.2*) |
7543 |
{ |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
7544 |
dlopen (); |
hardcode_libdir_flag_spec='-R$libdir' |
7545 |
; |
hardcode_direct=yes |
7546 |
return 0; |
hardcode_shlibpath_var=no |
7547 |
} |
;; |
7548 |
_ACEOF |
|
7549 |
rm -f conftest.$ac_objext conftest$ac_exeext |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
7550 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
freebsd2*) |
7551 |
(eval $ac_link) 2>conftest.er1 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7552 |
ac_status=$? |
hardcode_direct=yes |
7553 |
grep -v '^ *+' conftest.er1 >conftest.err |
hardcode_minus_L=yes |
7554 |
rm -f conftest.er1 |
hardcode_shlibpath_var=no |
7555 |
cat conftest.err >&5 |
;; |
7556 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7557 |
(exit $ac_status); } && |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7558 |
{ ac_try='test -z "$ac_c_werror_flag" |
freebsd* | kfreebsd*-gnu | dragonfly*) |
7559 |
|| test ! -s conftest.err' |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7560 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
hardcode_libdir_flag_spec='-R$libdir' |
7561 |
(eval $ac_try) 2>&5 |
hardcode_direct=yes |
7562 |
ac_status=$? |
hardcode_shlibpath_var=no |
7563 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
;; |
7564 |
(exit $ac_status); }; } && |
|
7565 |
{ ac_try='test -s conftest$ac_exeext' |
hpux9*) |
7566 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
if test "$GCC" = yes; then |
7567 |
(eval $ac_try) 2>&5 |
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' |
7568 |
ac_status=$? |
else |
7569 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
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' |
7570 |
(exit $ac_status); }; }; then |
fi |
7571 |
ac_cv_lib_dl_dlopen=yes |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7572 |
else |
hardcode_libdir_separator=: |
7573 |
echo "$as_me: failed program was:" >&5 |
hardcode_direct=yes |
7574 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
7575 |
|
# hardcode_minus_L: Not really in the search PATH, |
7576 |
|
# but as the default location of the library. |
7577 |
|
hardcode_minus_L=yes |
7578 |
|
export_dynamic_flag_spec='${wl}-E' |
7579 |
|
;; |
7580 |
|
|
7581 |
|
hpux10* | hpux11*) |
7582 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7583 |
|
case "$host_cpu" in |
7584 |
|
hppa*64*|ia64*) |
7585 |
|
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7586 |
|
;; |
7587 |
|
*) |
7588 |
|
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7589 |
|
;; |
7590 |
|
esac |
7591 |
|
else |
7592 |
|
case "$host_cpu" in |
7593 |
|
hppa*64*|ia64*) |
7594 |
|
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
7595 |
|
;; |
7596 |
|
*) |
7597 |
|
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
7598 |
|
;; |
7599 |
|
esac |
7600 |
|
fi |
7601 |
|
if test "$with_gnu_ld" = no; then |
7602 |
|
case "$host_cpu" in |
7603 |
|
hppa*64*) |
7604 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7605 |
|
hardcode_libdir_flag_spec_ld='+b $libdir' |
7606 |
|
hardcode_libdir_separator=: |
7607 |
|
hardcode_direct=no |
7608 |
|
hardcode_shlibpath_var=no |
7609 |
|
;; |
7610 |
|
ia64*) |
7611 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7612 |
|
hardcode_direct=no |
7613 |
|
hardcode_shlibpath_var=no |
7614 |
|
|
7615 |
|
# hardcode_minus_L: Not really in the search PATH, |
7616 |
|
# but as the default location of the library. |
7617 |
|
hardcode_minus_L=yes |
7618 |
|
;; |
7619 |
|
*) |
7620 |
|
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7621 |
|
hardcode_libdir_separator=: |
7622 |
|
hardcode_direct=yes |
7623 |
|
export_dynamic_flag_spec='${wl}-E' |
7624 |
|
|
7625 |
|
# hardcode_minus_L: Not really in the search PATH, |
7626 |
|
# but as the default location of the library. |
7627 |
|
hardcode_minus_L=yes |
7628 |
|
;; |
7629 |
|
esac |
7630 |
|
fi |
7631 |
|
;; |
7632 |
|
|
7633 |
|
irix5* | irix6* | nonstopux*) |
7634 |
|
if test "$GCC" = yes; then |
7635 |
|
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' |
7636 |
|
else |
7637 |
|
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' |
7638 |
|
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
7639 |
|
fi |
7640 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7641 |
|
hardcode_libdir_separator=: |
7642 |
|
link_all_deplibs=yes |
7643 |
|
;; |
7644 |
|
|
7645 |
|
netbsd*) |
7646 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7647 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
7648 |
|
else |
7649 |
|
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
7650 |
|
fi |
7651 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7652 |
|
hardcode_direct=yes |
7653 |
|
hardcode_shlibpath_var=no |
7654 |
|
;; |
7655 |
|
|
7656 |
|
newsos6) |
7657 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7658 |
|
hardcode_direct=yes |
7659 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7660 |
|
hardcode_libdir_separator=: |
7661 |
|
hardcode_shlibpath_var=no |
7662 |
|
;; |
7663 |
|
|
7664 |
|
openbsd*) |
7665 |
|
hardcode_direct=yes |
7666 |
|
hardcode_shlibpath_var=no |
7667 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
7668 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7669 |
|
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
7670 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7671 |
|
export_dynamic_flag_spec='${wl}-E' |
7672 |
|
else |
7673 |
|
case $host_os in |
7674 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
7675 |
|
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7676 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7677 |
|
;; |
7678 |
|
*) |
7679 |
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
7680 |
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7681 |
|
;; |
7682 |
|
esac |
7683 |
|
fi |
7684 |
|
;; |
7685 |
|
|
7686 |
|
os2*) |
7687 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7688 |
|
hardcode_minus_L=yes |
7689 |
|
allow_undefined_flag=unsupported |
7690 |
|
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' |
7691 |
|
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
7692 |
|
;; |
7693 |
|
|
7694 |
|
osf3*) |
7695 |
|
if test "$GCC" = yes; then |
7696 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7697 |
|
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' |
7698 |
|
else |
7699 |
|
allow_undefined_flag=' -expect_unresolved \*' |
7700 |
|
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' |
7701 |
|
fi |
7702 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7703 |
|
hardcode_libdir_separator=: |
7704 |
|
;; |
7705 |
|
|
7706 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
7707 |
|
if test "$GCC" = yes; then |
7708 |
|
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
7709 |
|
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' |
7710 |
|
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
7711 |
|
else |
7712 |
|
allow_undefined_flag=' -expect_unresolved \*' |
7713 |
|
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' |
7714 |
|
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
7715 |
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
7716 |
|
|
7717 |
|
# Both c and cxx compiler support -rpath directly |
7718 |
|
hardcode_libdir_flag_spec='-rpath $libdir' |
7719 |
|
fi |
7720 |
|
hardcode_libdir_separator=: |
7721 |
|
;; |
7722 |
|
|
7723 |
|
sco3.2v5*) |
7724 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7725 |
|
hardcode_shlibpath_var=no |
7726 |
|
export_dynamic_flag_spec='${wl}-Bexport' |
7727 |
|
runpath_var=LD_RUN_PATH |
7728 |
|
hardcode_runpath_var=yes |
7729 |
|
;; |
7730 |
|
|
7731 |
|
solaris*) |
7732 |
|
no_undefined_flag=' -z text' |
7733 |
|
if test "$GCC" = yes; then |
7734 |
|
wlarc='${wl}' |
7735 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7736 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7737 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
7738 |
|
else |
7739 |
|
wlarc='' |
7740 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7741 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7742 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7743 |
|
fi |
7744 |
|
hardcode_libdir_flag_spec='-R$libdir' |
7745 |
|
hardcode_shlibpath_var=no |
7746 |
|
case $host_os in |
7747 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
7748 |
|
*) |
7749 |
|
# The compiler driver will combine linker options so we |
7750 |
|
# cannot just pass the convience library names through |
7751 |
|
# without $wl, iff we do not link with $LD. |
7752 |
|
# Luckily, gcc supports the same syntax we need for Sun Studio. |
7753 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
7754 |
|
case $wlarc in |
7755 |
|
'') |
7756 |
|
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
7757 |
|
*) |
7758 |
|
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
7759 |
|
esac ;; |
7760 |
|
esac |
7761 |
|
link_all_deplibs=yes |
7762 |
|
;; |
7763 |
|
|
7764 |
|
sunos4*) |
7765 |
|
if test "x$host_vendor" = xsequent; then |
7766 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
7767 |
|
# files that make .init and .fini sections work. |
7768 |
|
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
7769 |
|
else |
7770 |
|
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
7771 |
|
fi |
7772 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7773 |
|
hardcode_direct=yes |
7774 |
|
hardcode_minus_L=yes |
7775 |
|
hardcode_shlibpath_var=no |
7776 |
|
;; |
7777 |
|
|
7778 |
|
sysv4) |
7779 |
|
case $host_vendor in |
7780 |
|
sni) |
7781 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7782 |
|
hardcode_direct=yes # is this really true??? |
7783 |
|
;; |
7784 |
|
siemens) |
7785 |
|
## LD is ld it makes a PLAMLIB |
7786 |
|
## CC just makes a GrossModule. |
7787 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7788 |
|
reload_cmds='$CC -r -o $output$reload_objs' |
7789 |
|
hardcode_direct=no |
7790 |
|
;; |
7791 |
|
motorola) |
7792 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7793 |
|
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
7794 |
|
;; |
7795 |
|
esac |
7796 |
|
runpath_var='LD_RUN_PATH' |
7797 |
|
hardcode_shlibpath_var=no |
7798 |
|
;; |
7799 |
|
|
7800 |
|
sysv4.3*) |
7801 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7802 |
|
hardcode_shlibpath_var=no |
7803 |
|
export_dynamic_flag_spec='-Bexport' |
7804 |
|
;; |
7805 |
|
|
7806 |
|
sysv4*MP*) |
7807 |
|
if test -d /usr/nec; then |
7808 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7809 |
|
hardcode_shlibpath_var=no |
7810 |
|
runpath_var=LD_RUN_PATH |
7811 |
|
hardcode_runpath_var=yes |
7812 |
|
ld_shlibs=yes |
7813 |
|
fi |
7814 |
|
;; |
7815 |
|
|
7816 |
|
sysv4.2uw2*) |
7817 |
|
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
7818 |
|
hardcode_direct=yes |
7819 |
|
hardcode_minus_L=no |
7820 |
|
hardcode_shlibpath_var=no |
7821 |
|
hardcode_runpath_var=yes |
7822 |
|
runpath_var=LD_RUN_PATH |
7823 |
|
;; |
7824 |
|
|
7825 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
7826 |
|
no_undefined_flag='${wl}-z ${wl}text' |
7827 |
|
if test "$GCC" = yes; then |
7828 |
|
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7829 |
|
else |
7830 |
|
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7831 |
|
fi |
7832 |
|
runpath_var='LD_RUN_PATH' |
7833 |
|
hardcode_shlibpath_var=no |
7834 |
|
;; |
7835 |
|
|
7836 |
|
sysv5*) |
7837 |
|
no_undefined_flag=' -z text' |
7838 |
|
# $CC -shared without GNU ld will not create a library from C++ |
7839 |
|
# object files and a static libstdc++, better avoid it by now |
7840 |
|
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7841 |
|
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
7842 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
7843 |
|
hardcode_libdir_flag_spec= |
7844 |
|
hardcode_shlibpath_var=no |
7845 |
|
runpath_var='LD_RUN_PATH' |
7846 |
|
;; |
7847 |
|
|
7848 |
|
uts4*) |
7849 |
|
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
7850 |
|
hardcode_libdir_flag_spec='-L$libdir' |
7851 |
|
hardcode_shlibpath_var=no |
7852 |
|
;; |
7853 |
|
|
7854 |
|
*) |
7855 |
|
ld_shlibs=no |
7856 |
|
;; |
7857 |
|
esac |
7858 |
|
fi |
7859 |
|
|
7860 |
|
echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
7861 |
|
echo "${ECHO_T}$ld_shlibs" >&6 |
7862 |
|
test "$ld_shlibs" = no && can_build_shared=no |
7863 |
|
|
7864 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
7865 |
|
if test "$GCC" = yes; then |
7866 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
7867 |
|
fi |
7868 |
|
|
7869 |
|
# |
7870 |
|
# Do we need to explicitly link libc? |
7871 |
|
# |
7872 |
|
case "x$archive_cmds_need_lc" in |
7873 |
|
x|xyes) |
7874 |
|
# Assume -lc should be added |
7875 |
|
archive_cmds_need_lc=yes |
7876 |
|
|
7877 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
7878 |
|
case $archive_cmds in |
7879 |
|
*'~'*) |
7880 |
|
# FIXME: we may have to deal with multi-command sequences. |
7881 |
|
;; |
7882 |
|
'$CC '*) |
7883 |
|
# Test whether the compiler implicitly links with -lc since on some |
7884 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
7885 |
|
# to ld, don't add -lc before -lgcc. |
7886 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
7887 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
7888 |
|
$rm conftest* |
7889 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7890 |
|
|
7891 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7892 |
|
(eval $ac_compile) 2>&5 |
7893 |
|
ac_status=$? |
7894 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7895 |
|
(exit $ac_status); } 2>conftest.err; then |
7896 |
|
soname=conftest |
7897 |
|
lib=conftest |
7898 |
|
libobjs=conftest.$ac_objext |
7899 |
|
deplibs= |
7900 |
|
wl=$lt_prog_compiler_wl |
7901 |
|
compiler_flags=-v |
7902 |
|
linker_flags=-v |
7903 |
|
verstring= |
7904 |
|
output_objdir=. |
7905 |
|
libname=conftest |
7906 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag |
7907 |
|
allow_undefined_flag= |
7908 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
7909 |
|
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
7910 |
|
ac_status=$? |
7911 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7912 |
|
(exit $ac_status); } |
7913 |
|
then |
7914 |
|
archive_cmds_need_lc=no |
7915 |
|
else |
7916 |
|
archive_cmds_need_lc=yes |
7917 |
|
fi |
7918 |
|
allow_undefined_flag=$lt_save_allow_undefined_flag |
7919 |
|
else |
7920 |
|
cat conftest.err 1>&5 |
7921 |
|
fi |
7922 |
|
$rm conftest* |
7923 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
7924 |
|
echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
7925 |
|
;; |
7926 |
|
esac |
7927 |
|
fi |
7928 |
|
;; |
7929 |
|
esac |
7930 |
|
|
7931 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
7932 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
7933 |
|
library_names_spec= |
7934 |
|
libname_spec='lib$name' |
7935 |
|
soname_spec= |
7936 |
|
shrext_cmds=".so" |
7937 |
|
postinstall_cmds= |
7938 |
|
postuninstall_cmds= |
7939 |
|
finish_cmds= |
7940 |
|
finish_eval= |
7941 |
|
shlibpath_var= |
7942 |
|
shlibpath_overrides_runpath=unknown |
7943 |
|
version_type=none |
7944 |
|
dynamic_linker="$host_os ld.so" |
7945 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
7946 |
|
if test "$GCC" = yes; then |
7947 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
7948 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
7949 |
|
# if the path contains ";" then we assume it to be the separator |
7950 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
7951 |
|
# assumed that no part of a normal pathname contains ";" but that should |
7952 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
7953 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
7954 |
|
else |
7955 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
7956 |
|
fi |
7957 |
|
else |
7958 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
7959 |
|
fi |
7960 |
|
need_lib_prefix=unknown |
7961 |
|
hardcode_into_libs=no |
7962 |
|
|
7963 |
|
# when you set need_version to no, make sure it does not cause -set_version |
7964 |
|
# flags to be left without arguments |
7965 |
|
need_version=unknown |
7966 |
|
|
7967 |
|
case $host_os in |
7968 |
|
aix3*) |
7969 |
|
version_type=linux |
7970 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
7971 |
|
shlibpath_var=LIBPATH |
7972 |
|
|
7973 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
7974 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
7975 |
|
;; |
7976 |
|
|
7977 |
|
aix4* | aix5*) |
7978 |
|
version_type=linux |
7979 |
|
need_lib_prefix=no |
7980 |
|
need_version=no |
7981 |
|
hardcode_into_libs=yes |
7982 |
|
if test "$host_cpu" = ia64; then |
7983 |
|
# AIX 5 supports IA64 |
7984 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
7985 |
|
shlibpath_var=LD_LIBRARY_PATH |
7986 |
|
else |
7987 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
7988 |
|
# for dependence libraries. The import file would start with |
7989 |
|
# the line `#! .'. This would cause the generated library to |
7990 |
|
# depend on `.', always an invalid library. This was fixed in |
7991 |
|
# development snapshots of GCC prior to 3.0. |
7992 |
|
case $host_os in |
7993 |
|
aix4 | aix4.[01] | aix4.[01].*) |
7994 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
7995 |
|
echo ' yes ' |
7996 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
7997 |
|
: |
7998 |
|
else |
7999 |
|
can_build_shared=no |
8000 |
|
fi |
8001 |
|
;; |
8002 |
|
esac |
8003 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8004 |
|
# soname into executable. Probably we can add versioning support to |
8005 |
|
# collect2, so additional links can be useful in future. |
8006 |
|
if test "$aix_use_runtimelinking" = yes; then |
8007 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8008 |
|
# instead of lib<name>.a to let people know that these are not |
8009 |
|
# typical AIX shared libraries. |
8010 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8011 |
|
else |
8012 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
8013 |
|
# and later when we are not doing run time linking. |
8014 |
|
library_names_spec='${libname}${release}.a $libname.a' |
8015 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8016 |
|
fi |
8017 |
|
shlibpath_var=LIBPATH |
8018 |
|
fi |
8019 |
|
;; |
8020 |
|
|
8021 |
|
amigaos*) |
8022 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
8023 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
8024 |
|
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' |
8025 |
|
;; |
8026 |
|
|
8027 |
|
beos*) |
8028 |
|
library_names_spec='${libname}${shared_ext}' |
8029 |
|
dynamic_linker="$host_os ld.so" |
8030 |
|
shlibpath_var=LIBRARY_PATH |
8031 |
|
;; |
8032 |
|
|
8033 |
|
bsdi[45]*) |
8034 |
|
version_type=linux |
8035 |
|
need_version=no |
8036 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8037 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8038 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8039 |
|
shlibpath_var=LD_LIBRARY_PATH |
8040 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8041 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8042 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
8043 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8044 |
|
# libtool to hard-code these into programs |
8045 |
|
;; |
8046 |
|
|
8047 |
|
cygwin* | mingw* | pw32*) |
8048 |
|
version_type=windows |
8049 |
|
shrext_cmds=".dll" |
8050 |
|
need_version=no |
8051 |
|
need_lib_prefix=no |
8052 |
|
|
8053 |
|
case $GCC,$host_os in |
8054 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
8055 |
|
library_names_spec='$libname.dll.a' |
8056 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
8057 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
8058 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8059 |
|
dldir=$destdir/`dirname \$dlpath`~ |
8060 |
|
test -d \$dldir || mkdir -p \$dldir~ |
8061 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
8062 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8063 |
|
dlpath=$dir/\$dldll~ |
8064 |
|
$rm \$dlpath' |
8065 |
|
shlibpath_overrides_runpath=yes |
8066 |
|
|
8067 |
|
case $host_os in |
8068 |
|
cygwin*) |
8069 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8070 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8071 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8072 |
|
;; |
8073 |
|
mingw*) |
8074 |
|
# MinGW DLLs use traditional 'lib' prefix |
8075 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8076 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8077 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8078 |
|
# It is most probably a Windows format PATH printed by |
8079 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
8080 |
|
# path with ; separators, and with drive letters. We can handle the |
8081 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
8082 |
|
# especially as we might pass files found there to a mingw objdump, |
8083 |
|
# which wouldn't understand a cygwinified path. Ahh. |
8084 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8085 |
|
else |
8086 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8087 |
|
fi |
8088 |
|
;; |
8089 |
|
pw32*) |
8090 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
8091 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8092 |
|
;; |
8093 |
|
esac |
8094 |
|
;; |
8095 |
|
|
8096 |
|
*) |
8097 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8098 |
|
;; |
8099 |
|
esac |
8100 |
|
dynamic_linker='Win32 ld.exe' |
8101 |
|
# FIXME: first we should search . and the directory the executable is in |
8102 |
|
shlibpath_var=PATH |
8103 |
|
;; |
8104 |
|
|
8105 |
|
darwin* | rhapsody*) |
8106 |
|
dynamic_linker="$host_os dyld" |
8107 |
|
version_type=darwin |
8108 |
|
need_lib_prefix=no |
8109 |
|
need_version=no |
8110 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8111 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
8112 |
|
shlibpath_overrides_runpath=yes |
8113 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
8114 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
8115 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8116 |
|
if test "$GCC" = yes; then |
8117 |
|
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"` |
8118 |
|
else |
8119 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8120 |
|
fi |
8121 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8122 |
|
;; |
8123 |
|
|
8124 |
|
dgux*) |
8125 |
|
version_type=linux |
8126 |
|
need_lib_prefix=no |
8127 |
|
need_version=no |
8128 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8129 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8130 |
|
shlibpath_var=LD_LIBRARY_PATH |
8131 |
|
;; |
8132 |
|
|
8133 |
|
freebsd1*) |
8134 |
|
dynamic_linker=no |
8135 |
|
;; |
8136 |
|
|
8137 |
|
kfreebsd*-gnu) |
8138 |
|
version_type=linux |
8139 |
|
need_lib_prefix=no |
8140 |
|
need_version=no |
8141 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8142 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8143 |
|
shlibpath_var=LD_LIBRARY_PATH |
8144 |
|
shlibpath_overrides_runpath=no |
8145 |
|
hardcode_into_libs=yes |
8146 |
|
dynamic_linker='GNU ld.so' |
8147 |
|
;; |
8148 |
|
|
8149 |
|
freebsd* | dragonfly*) |
8150 |
|
# DragonFly does not have aout. When/if they implement a new |
8151 |
|
# versioning mechanism, adjust this. |
8152 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
8153 |
|
version_type=freebsd-$objformat |
8154 |
|
case $version_type in |
8155 |
|
freebsd-elf*) |
8156 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8157 |
|
need_version=no |
8158 |
|
need_lib_prefix=no |
8159 |
|
;; |
8160 |
|
freebsd-*) |
8161 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8162 |
|
need_version=yes |
8163 |
|
;; |
8164 |
|
esac |
8165 |
|
shlibpath_var=LD_LIBRARY_PATH |
8166 |
|
case $host_os in |
8167 |
|
freebsd2*) |
8168 |
|
shlibpath_overrides_runpath=yes |
8169 |
|
;; |
8170 |
|
freebsd3.[01]* | freebsdelf3.[01]*) |
8171 |
|
shlibpath_overrides_runpath=yes |
8172 |
|
hardcode_into_libs=yes |
8173 |
|
;; |
8174 |
|
*) # from 3.2 on |
8175 |
|
shlibpath_overrides_runpath=no |
8176 |
|
hardcode_into_libs=yes |
8177 |
|
;; |
8178 |
|
esac |
8179 |
|
;; |
8180 |
|
|
8181 |
|
gnu*) |
8182 |
|
version_type=linux |
8183 |
|
need_lib_prefix=no |
8184 |
|
need_version=no |
8185 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8186 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8187 |
|
shlibpath_var=LD_LIBRARY_PATH |
8188 |
|
hardcode_into_libs=yes |
8189 |
|
;; |
8190 |
|
|
8191 |
|
hpux9* | hpux10* | hpux11*) |
8192 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
8193 |
|
# link against other versions. |
8194 |
|
version_type=sunos |
8195 |
|
need_lib_prefix=no |
8196 |
|
need_version=no |
8197 |
|
case "$host_cpu" in |
8198 |
|
ia64*) |
8199 |
|
shrext_cmds='.so' |
8200 |
|
hardcode_into_libs=yes |
8201 |
|
dynamic_linker="$host_os dld.so" |
8202 |
|
shlibpath_var=LD_LIBRARY_PATH |
8203 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8204 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8205 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8206 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
8207 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8208 |
|
else |
8209 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8210 |
|
fi |
8211 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8212 |
|
;; |
8213 |
|
hppa*64*) |
8214 |
|
shrext_cmds='.sl' |
8215 |
|
hardcode_into_libs=yes |
8216 |
|
dynamic_linker="$host_os dld.sl" |
8217 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8218 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8219 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8220 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8221 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8222 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8223 |
|
;; |
8224 |
|
*) |
8225 |
|
shrext_cmds='.sl' |
8226 |
|
dynamic_linker="$host_os dld.sl" |
8227 |
|
shlibpath_var=SHLIB_PATH |
8228 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8229 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8230 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8231 |
|
;; |
8232 |
|
esac |
8233 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
8234 |
|
postinstall_cmds='chmod 555 $lib' |
8235 |
|
;; |
8236 |
|
|
8237 |
|
irix5* | irix6* | nonstopux*) |
8238 |
|
case $host_os in |
8239 |
|
nonstopux*) version_type=nonstopux ;; |
8240 |
|
*) |
8241 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
8242 |
|
version_type=linux |
8243 |
|
else |
8244 |
|
version_type=irix |
8245 |
|
fi ;; |
8246 |
|
esac |
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}${release}${shared_ext} $libname${shared_ext}' |
8251 |
|
case $host_os in |
8252 |
|
irix5* | nonstopux*) |
8253 |
|
libsuff= shlibsuff= |
8254 |
|
;; |
8255 |
|
*) |
8256 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
8257 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8258 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
8259 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8260 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
8261 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8262 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8263 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
8264 |
|
esac |
8265 |
|
;; |
8266 |
|
esac |
8267 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8268 |
|
shlibpath_overrides_runpath=no |
8269 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8270 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8271 |
|
hardcode_into_libs=yes |
8272 |
|
;; |
8273 |
|
|
8274 |
|
# No shared lib support for Linux oldld, aout, or coff. |
8275 |
|
linux*oldld* | linux*aout* | linux*coff*) |
8276 |
|
dynamic_linker=no |
8277 |
|
;; |
8278 |
|
|
8279 |
|
# This must be Linux ELF. |
8280 |
|
linux*) |
8281 |
|
version_type=linux |
8282 |
|
need_lib_prefix=no |
8283 |
|
need_version=no |
8284 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8285 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8286 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8287 |
|
shlibpath_var=LD_LIBRARY_PATH |
8288 |
|
shlibpath_overrides_runpath=no |
8289 |
|
# This implies no fast_install, which is unacceptable. |
8290 |
|
# Some rework will be needed to allow for fast_install |
8291 |
|
# before this can be enabled. |
8292 |
|
hardcode_into_libs=yes |
8293 |
|
|
8294 |
|
# find out which ABI we are using |
8295 |
|
libsuff= |
8296 |
|
case "$host_cpu" in |
8297 |
|
x86_64*|s390x*|powerpc64*) |
8298 |
|
echo '#line 8298 "configure"' > conftest.$ac_ext |
8299 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8300 |
|
(eval $ac_compile) 2>&5 |
8301 |
|
ac_status=$? |
8302 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8303 |
|
(exit $ac_status); }; then |
8304 |
|
case `/usr/bin/file conftest.$ac_objext` in |
8305 |
|
*64-bit*) |
8306 |
|
libsuff=64 |
8307 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
8308 |
|
;; |
8309 |
|
esac |
8310 |
|
fi |
8311 |
|
rm -rf conftest* |
8312 |
|
;; |
8313 |
|
esac |
8314 |
|
|
8315 |
|
# Append ld.so.conf contents to the search path |
8316 |
|
if test -f /etc/ld.so.conf; then |
8317 |
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
8318 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
8319 |
|
fi |
8320 |
|
|
8321 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
8322 |
|
# powerpc, because MkLinux only supported shared libraries with the |
8323 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
8324 |
|
# most powerpc-linux boxes support dynamic linking these days and |
8325 |
|
# people can always --disable-shared, the test was removed, and we |
8326 |
|
# assume the GNU/Linux dynamic linker is in use. |
8327 |
|
dynamic_linker='GNU/Linux ld.so' |
8328 |
|
;; |
8329 |
|
|
8330 |
|
knetbsd*-gnu) |
8331 |
|
version_type=linux |
8332 |
|
need_lib_prefix=no |
8333 |
|
need_version=no |
8334 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8335 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8336 |
|
shlibpath_var=LD_LIBRARY_PATH |
8337 |
|
shlibpath_overrides_runpath=no |
8338 |
|
hardcode_into_libs=yes |
8339 |
|
dynamic_linker='GNU ld.so' |
8340 |
|
;; |
8341 |
|
|
8342 |
|
netbsd*) |
8343 |
|
version_type=sunos |
8344 |
|
need_lib_prefix=no |
8345 |
|
need_version=no |
8346 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8347 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8348 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8349 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
8350 |
|
else |
8351 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8352 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8353 |
|
dynamic_linker='NetBSD ld.elf_so' |
8354 |
|
fi |
8355 |
|
shlibpath_var=LD_LIBRARY_PATH |
8356 |
|
shlibpath_overrides_runpath=yes |
8357 |
|
hardcode_into_libs=yes |
8358 |
|
;; |
8359 |
|
|
8360 |
|
newsos6) |
8361 |
|
version_type=linux |
8362 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8363 |
|
shlibpath_var=LD_LIBRARY_PATH |
8364 |
|
shlibpath_overrides_runpath=yes |
8365 |
|
;; |
8366 |
|
|
8367 |
|
nto-qnx*) |
8368 |
|
version_type=linux |
8369 |
|
need_lib_prefix=no |
8370 |
|
need_version=no |
8371 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8372 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8373 |
|
shlibpath_var=LD_LIBRARY_PATH |
8374 |
|
shlibpath_overrides_runpath=yes |
8375 |
|
;; |
8376 |
|
|
8377 |
|
openbsd*) |
8378 |
|
version_type=sunos |
8379 |
|
need_lib_prefix=no |
8380 |
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8381 |
|
case $host_os in |
8382 |
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
8383 |
|
*) need_version=no ;; |
8384 |
|
esac |
8385 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8386 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
8387 |
|
shlibpath_var=LD_LIBRARY_PATH |
8388 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8389 |
|
case $host_os in |
8390 |
|
openbsd2.[89] | openbsd2.[89].*) |
8391 |
|
shlibpath_overrides_runpath=no |
8392 |
|
;; |
8393 |
|
*) |
8394 |
|
shlibpath_overrides_runpath=yes |
8395 |
|
;; |
8396 |
|
esac |
8397 |
|
else |
8398 |
|
shlibpath_overrides_runpath=yes |
8399 |
|
fi |
8400 |
|
;; |
8401 |
|
|
8402 |
|
os2*) |
8403 |
|
libname_spec='$name' |
8404 |
|
shrext_cmds=".dll" |
8405 |
|
need_lib_prefix=no |
8406 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
8407 |
|
dynamic_linker='OS/2 ld.exe' |
8408 |
|
shlibpath_var=LIBPATH |
8409 |
|
;; |
8410 |
|
|
8411 |
|
osf3* | osf4* | osf5*) |
8412 |
|
version_type=osf |
8413 |
|
need_lib_prefix=no |
8414 |
|
need_version=no |
8415 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8416 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8417 |
|
shlibpath_var=LD_LIBRARY_PATH |
8418 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
8419 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8420 |
|
;; |
8421 |
|
|
8422 |
|
sco3.2v5*) |
8423 |
|
version_type=osf |
8424 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8425 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8426 |
|
shlibpath_var=LD_LIBRARY_PATH |
8427 |
|
;; |
8428 |
|
|
8429 |
|
solaris*) |
8430 |
|
version_type=linux |
8431 |
|
need_lib_prefix=no |
8432 |
|
need_version=no |
8433 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8434 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8435 |
|
shlibpath_var=LD_LIBRARY_PATH |
8436 |
|
shlibpath_overrides_runpath=yes |
8437 |
|
hardcode_into_libs=yes |
8438 |
|
# ldd complains unless libraries are executable |
8439 |
|
postinstall_cmds='chmod +x $lib' |
8440 |
|
;; |
8441 |
|
|
8442 |
|
sunos4*) |
8443 |
|
version_type=sunos |
8444 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8445 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
8446 |
|
shlibpath_var=LD_LIBRARY_PATH |
8447 |
|
shlibpath_overrides_runpath=yes |
8448 |
|
if test "$with_gnu_ld" = yes; then |
8449 |
|
need_lib_prefix=no |
8450 |
|
fi |
8451 |
|
need_version=yes |
8452 |
|
;; |
8453 |
|
|
8454 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
8455 |
|
version_type=linux |
8456 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8457 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8458 |
|
shlibpath_var=LD_LIBRARY_PATH |
8459 |
|
case $host_vendor in |
8460 |
|
sni) |
8461 |
|
shlibpath_overrides_runpath=no |
8462 |
|
need_lib_prefix=no |
8463 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
8464 |
|
runpath_var=LD_RUN_PATH |
8465 |
|
;; |
8466 |
|
siemens) |
8467 |
|
need_lib_prefix=no |
8468 |
|
;; |
8469 |
|
motorola) |
8470 |
|
need_lib_prefix=no |
8471 |
|
need_version=no |
8472 |
|
shlibpath_overrides_runpath=no |
8473 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
8474 |
|
;; |
8475 |
|
esac |
8476 |
|
;; |
8477 |
|
|
8478 |
|
sysv4*MP*) |
8479 |
|
if test -d /usr/nec ;then |
8480 |
|
version_type=linux |
8481 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
8482 |
|
soname_spec='$libname${shared_ext}.$major' |
8483 |
|
shlibpath_var=LD_LIBRARY_PATH |
8484 |
|
fi |
8485 |
|
;; |
8486 |
|
|
8487 |
|
uts4*) |
8488 |
|
version_type=linux |
8489 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8490 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
8491 |
|
shlibpath_var=LD_LIBRARY_PATH |
8492 |
|
;; |
8493 |
|
|
8494 |
|
*) |
8495 |
|
dynamic_linker=no |
8496 |
|
;; |
8497 |
|
esac |
8498 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
8499 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
8500 |
|
test "$dynamic_linker" = no && can_build_shared=no |
8501 |
|
|
8502 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8503 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8504 |
|
hardcode_action= |
8505 |
|
if test -n "$hardcode_libdir_flag_spec" || \ |
8506 |
|
test -n "$runpath_var" || \ |
8507 |
|
test "X$hardcode_automatic" = "Xyes" ; then |
8508 |
|
|
8509 |
|
# We can hardcode non-existant directories. |
8510 |
|
if test "$hardcode_direct" != no && |
8511 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
8512 |
|
# have to relink, otherwise we might link with an installed library |
8513 |
|
# when we should be linking with a yet-to-be-installed one |
8514 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
8515 |
|
test "$hardcode_minus_L" != no; then |
8516 |
|
# Linking always hardcodes the temporary library directory. |
8517 |
|
hardcode_action=relink |
8518 |
|
else |
8519 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
8520 |
|
hardcode_action=immediate |
8521 |
|
fi |
8522 |
|
else |
8523 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
8524 |
|
# directories. |
8525 |
|
hardcode_action=unsupported |
8526 |
|
fi |
8527 |
|
echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
8528 |
|
echo "${ECHO_T}$hardcode_action" >&6 |
8529 |
|
|
8530 |
|
if test "$hardcode_action" = relink; then |
8531 |
|
# Fast installation is not supported |
8532 |
|
enable_fast_install=no |
8533 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
8534 |
|
test "$enable_shared" = no; then |
8535 |
|
# Fast installation is not necessary |
8536 |
|
enable_fast_install=needless |
8537 |
|
fi |
8538 |
|
|
8539 |
|
striplib= |
8540 |
|
old_striplib= |
8541 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
8542 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
8543 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
8544 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
8545 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
8546 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
8547 |
|
echo "${ECHO_T}yes" >&6 |
8548 |
|
else |
8549 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
8550 |
|
case $host_os in |
8551 |
|
darwin*) |
8552 |
|
if test -n "$STRIP" ; then |
8553 |
|
striplib="$STRIP -x" |
8554 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
8555 |
|
echo "${ECHO_T}yes" >&6 |
8556 |
|
else |
8557 |
|
echo "$as_me:$LINENO: result: no" >&5 |
8558 |
|
echo "${ECHO_T}no" >&6 |
8559 |
|
fi |
8560 |
|
;; |
8561 |
|
*) |
8562 |
|
echo "$as_me:$LINENO: result: no" >&5 |
8563 |
|
echo "${ECHO_T}no" >&6 |
8564 |
|
;; |
8565 |
|
esac |
8566 |
|
fi |
8567 |
|
|
8568 |
|
if test "x$enable_dlopen" != xyes; then |
8569 |
|
enable_dlopen=unknown |
8570 |
|
enable_dlopen_self=unknown |
8571 |
|
enable_dlopen_self_static=unknown |
8572 |
|
else |
8573 |
|
lt_cv_dlopen=no |
8574 |
|
lt_cv_dlopen_libs= |
8575 |
|
|
8576 |
|
case $host_os in |
8577 |
|
beos*) |
8578 |
|
lt_cv_dlopen="load_add_on" |
8579 |
|
lt_cv_dlopen_libs= |
8580 |
|
lt_cv_dlopen_self=yes |
8581 |
|
;; |
8582 |
|
|
8583 |
|
mingw* | pw32*) |
8584 |
|
lt_cv_dlopen="LoadLibrary" |
8585 |
|
lt_cv_dlopen_libs= |
8586 |
|
;; |
8587 |
|
|
8588 |
|
cygwin*) |
8589 |
|
lt_cv_dlopen="dlopen" |
8590 |
|
lt_cv_dlopen_libs= |
8591 |
|
;; |
8592 |
|
|
8593 |
|
darwin*) |
8594 |
|
# if libdl is installed we need to link against it |
8595 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8596 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8597 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8598 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8599 |
|
else |
8600 |
|
ac_check_lib_save_LIBS=$LIBS |
8601 |
|
LIBS="-ldl $LIBS" |
8602 |
|
cat >conftest.$ac_ext <<_ACEOF |
8603 |
|
/* confdefs.h. */ |
8604 |
|
_ACEOF |
8605 |
|
cat confdefs.h >>conftest.$ac_ext |
8606 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8607 |
|
/* end confdefs.h. */ |
8608 |
|
|
8609 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8610 |
|
#ifdef __cplusplus |
8611 |
|
extern "C" |
8612 |
|
#endif |
8613 |
|
/* We use char because int might match the return type of a gcc2 |
8614 |
|
builtin and then its argument prototype would still apply. */ |
8615 |
|
char dlopen (); |
8616 |
|
int |
8617 |
|
main () |
8618 |
|
{ |
8619 |
|
dlopen (); |
8620 |
|
; |
8621 |
|
return 0; |
8622 |
|
} |
8623 |
|
_ACEOF |
8624 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8625 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8626 |
|
(eval $ac_link) 2>conftest.er1 |
8627 |
|
ac_status=$? |
8628 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8629 |
|
rm -f conftest.er1 |
8630 |
|
cat conftest.err >&5 |
8631 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8632 |
|
(exit $ac_status); } && |
8633 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8634 |
|
|| test ! -s conftest.err' |
8635 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8636 |
|
(eval $ac_try) 2>&5 |
8637 |
|
ac_status=$? |
8638 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8639 |
|
(exit $ac_status); }; } && |
8640 |
|
{ ac_try='test -s conftest$ac_exeext' |
8641 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8642 |
|
(eval $ac_try) 2>&5 |
8643 |
|
ac_status=$? |
8644 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8645 |
|
(exit $ac_status); }; }; then |
8646 |
|
ac_cv_lib_dl_dlopen=yes |
8647 |
|
else |
8648 |
|
echo "$as_me: failed program was:" >&5 |
8649 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8650 |
|
|
8651 |
|
ac_cv_lib_dl_dlopen=no |
8652 |
|
fi |
8653 |
|
rm -f conftest.err conftest.$ac_objext \ |
8654 |
|
conftest$ac_exeext conftest.$ac_ext |
8655 |
|
LIBS=$ac_check_lib_save_LIBS |
8656 |
|
fi |
8657 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8658 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8659 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
8660 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8661 |
|
else |
8662 |
|
|
8663 |
|
lt_cv_dlopen="dyld" |
8664 |
|
lt_cv_dlopen_libs= |
8665 |
|
lt_cv_dlopen_self=yes |
8666 |
|
|
8667 |
|
fi |
8668 |
|
|
8669 |
|
;; |
8670 |
|
|
8671 |
|
*) |
8672 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
8673 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
8674 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
8675 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8676 |
|
else |
8677 |
|
cat >conftest.$ac_ext <<_ACEOF |
8678 |
|
/* confdefs.h. */ |
8679 |
|
_ACEOF |
8680 |
|
cat confdefs.h >>conftest.$ac_ext |
8681 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8682 |
|
/* end confdefs.h. */ |
8683 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
8684 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8685 |
|
#define shl_load innocuous_shl_load |
8686 |
|
|
8687 |
|
/* System header to define __stub macros and hopefully few prototypes, |
8688 |
|
which can conflict with char shl_load (); below. |
8689 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8690 |
|
<limits.h> exists even on freestanding compilers. */ |
8691 |
|
|
8692 |
|
#ifdef __STDC__ |
8693 |
|
# include <limits.h> |
8694 |
|
#else |
8695 |
|
# include <assert.h> |
8696 |
|
#endif |
8697 |
|
|
8698 |
|
#undef shl_load |
8699 |
|
|
8700 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8701 |
|
#ifdef __cplusplus |
8702 |
|
extern "C" |
8703 |
|
{ |
8704 |
|
#endif |
8705 |
|
/* We use char because int might match the return type of a gcc2 |
8706 |
|
builtin and then its argument prototype would still apply. */ |
8707 |
|
char shl_load (); |
8708 |
|
/* The GNU C library defines this for functions which it implements |
8709 |
|
to always fail with ENOSYS. Some functions are actually named |
8710 |
|
something starting with __ and the normal name is an alias. */ |
8711 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
8712 |
|
choke me |
8713 |
|
#else |
8714 |
|
char (*f) () = shl_load; |
8715 |
|
#endif |
8716 |
|
#ifdef __cplusplus |
8717 |
|
} |
8718 |
|
#endif |
8719 |
|
|
8720 |
|
int |
8721 |
|
main () |
8722 |
|
{ |
8723 |
|
return f != shl_load; |
8724 |
|
; |
8725 |
|
return 0; |
8726 |
|
} |
8727 |
|
_ACEOF |
8728 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8729 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8730 |
|
(eval $ac_link) 2>conftest.er1 |
8731 |
|
ac_status=$? |
8732 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8733 |
|
rm -f conftest.er1 |
8734 |
|
cat conftest.err >&5 |
8735 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8736 |
|
(exit $ac_status); } && |
8737 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8738 |
|
|| test ! -s conftest.err' |
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); }; } && |
8744 |
|
{ ac_try='test -s conftest$ac_exeext' |
8745 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8746 |
|
(eval $ac_try) 2>&5 |
8747 |
|
ac_status=$? |
8748 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8749 |
|
(exit $ac_status); }; }; then |
8750 |
|
ac_cv_func_shl_load=yes |
8751 |
|
else |
8752 |
|
echo "$as_me: failed program was:" >&5 |
8753 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8754 |
|
|
8755 |
|
ac_cv_func_shl_load=no |
8756 |
|
fi |
8757 |
|
rm -f conftest.err conftest.$ac_objext \ |
8758 |
|
conftest$ac_exeext conftest.$ac_ext |
8759 |
|
fi |
8760 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
8761 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
8762 |
|
if test $ac_cv_func_shl_load = yes; then |
8763 |
|
lt_cv_dlopen="shl_load" |
8764 |
|
else |
8765 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
8766 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
8767 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
8768 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8769 |
|
else |
8770 |
|
ac_check_lib_save_LIBS=$LIBS |
8771 |
|
LIBS="-ldld $LIBS" |
8772 |
|
cat >conftest.$ac_ext <<_ACEOF |
8773 |
|
/* confdefs.h. */ |
8774 |
|
_ACEOF |
8775 |
|
cat confdefs.h >>conftest.$ac_ext |
8776 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8777 |
|
/* end confdefs.h. */ |
8778 |
|
|
8779 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8780 |
|
#ifdef __cplusplus |
8781 |
|
extern "C" |
8782 |
|
#endif |
8783 |
|
/* We use char because int might match the return type of a gcc2 |
8784 |
|
builtin and then its argument prototype would still apply. */ |
8785 |
|
char shl_load (); |
8786 |
|
int |
8787 |
|
main () |
8788 |
|
{ |
8789 |
|
shl_load (); |
8790 |
|
; |
8791 |
|
return 0; |
8792 |
|
} |
8793 |
|
_ACEOF |
8794 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8795 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8796 |
|
(eval $ac_link) 2>conftest.er1 |
8797 |
|
ac_status=$? |
8798 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8799 |
|
rm -f conftest.er1 |
8800 |
|
cat conftest.err >&5 |
8801 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8802 |
|
(exit $ac_status); } && |
8803 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8804 |
|
|| test ! -s conftest.err' |
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); }; } && |
8810 |
|
{ ac_try='test -s conftest$ac_exeext' |
8811 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8812 |
|
(eval $ac_try) 2>&5 |
8813 |
|
ac_status=$? |
8814 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8815 |
|
(exit $ac_status); }; }; then |
8816 |
|
ac_cv_lib_dld_shl_load=yes |
8817 |
|
else |
8818 |
|
echo "$as_me: failed program was:" >&5 |
8819 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8820 |
|
|
8821 |
|
ac_cv_lib_dld_shl_load=no |
8822 |
|
fi |
8823 |
|
rm -f conftest.err conftest.$ac_objext \ |
8824 |
|
conftest$ac_exeext conftest.$ac_ext |
8825 |
|
LIBS=$ac_check_lib_save_LIBS |
8826 |
|
fi |
8827 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
8828 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
8829 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
8830 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
8831 |
|
else |
8832 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
8833 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
8834 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
8835 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8836 |
|
else |
8837 |
|
cat >conftest.$ac_ext <<_ACEOF |
8838 |
|
/* confdefs.h. */ |
8839 |
|
_ACEOF |
8840 |
|
cat confdefs.h >>conftest.$ac_ext |
8841 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8842 |
|
/* end confdefs.h. */ |
8843 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
8844 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
8845 |
|
#define dlopen innocuous_dlopen |
8846 |
|
|
8847 |
|
/* System header to define __stub macros and hopefully few prototypes, |
8848 |
|
which can conflict with char dlopen (); below. |
8849 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
8850 |
|
<limits.h> exists even on freestanding compilers. */ |
8851 |
|
|
8852 |
|
#ifdef __STDC__ |
8853 |
|
# include <limits.h> |
8854 |
|
#else |
8855 |
|
# include <assert.h> |
8856 |
|
#endif |
8857 |
|
|
8858 |
|
#undef dlopen |
8859 |
|
|
8860 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8861 |
|
#ifdef __cplusplus |
8862 |
|
extern "C" |
8863 |
|
{ |
8864 |
|
#endif |
8865 |
|
/* We use char because int might match the return type of a gcc2 |
8866 |
|
builtin and then its argument prototype would still apply. */ |
8867 |
|
char dlopen (); |
8868 |
|
/* The GNU C library defines this for functions which it implements |
8869 |
|
to always fail with ENOSYS. Some functions are actually named |
8870 |
|
something starting with __ and the normal name is an alias. */ |
8871 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
8872 |
|
choke me |
8873 |
|
#else |
8874 |
|
char (*f) () = dlopen; |
8875 |
|
#endif |
8876 |
|
#ifdef __cplusplus |
8877 |
|
} |
8878 |
|
#endif |
8879 |
|
|
8880 |
|
int |
8881 |
|
main () |
8882 |
|
{ |
8883 |
|
return f != dlopen; |
8884 |
|
; |
8885 |
|
return 0; |
8886 |
|
} |
8887 |
|
_ACEOF |
8888 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8889 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8890 |
|
(eval $ac_link) 2>conftest.er1 |
8891 |
|
ac_status=$? |
8892 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8893 |
|
rm -f conftest.er1 |
8894 |
|
cat conftest.err >&5 |
8895 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8896 |
|
(exit $ac_status); } && |
8897 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8898 |
|
|| test ! -s conftest.err' |
8899 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8900 |
|
(eval $ac_try) 2>&5 |
8901 |
|
ac_status=$? |
8902 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8903 |
|
(exit $ac_status); }; } && |
8904 |
|
{ ac_try='test -s conftest$ac_exeext' |
8905 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8906 |
|
(eval $ac_try) 2>&5 |
8907 |
|
ac_status=$? |
8908 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8909 |
|
(exit $ac_status); }; }; then |
8910 |
|
ac_cv_func_dlopen=yes |
8911 |
|
else |
8912 |
|
echo "$as_me: failed program was:" >&5 |
8913 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8914 |
|
|
8915 |
|
ac_cv_func_dlopen=no |
8916 |
|
fi |
8917 |
|
rm -f conftest.err conftest.$ac_objext \ |
8918 |
|
conftest$ac_exeext conftest.$ac_ext |
8919 |
|
fi |
8920 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
8921 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
8922 |
|
if test $ac_cv_func_dlopen = yes; then |
8923 |
|
lt_cv_dlopen="dlopen" |
8924 |
|
else |
8925 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
8926 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
8927 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
8928 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8929 |
|
else |
8930 |
|
ac_check_lib_save_LIBS=$LIBS |
8931 |
|
LIBS="-ldl $LIBS" |
8932 |
|
cat >conftest.$ac_ext <<_ACEOF |
8933 |
|
/* confdefs.h. */ |
8934 |
|
_ACEOF |
8935 |
|
cat confdefs.h >>conftest.$ac_ext |
8936 |
|
cat >>conftest.$ac_ext <<_ACEOF |
8937 |
|
/* end confdefs.h. */ |
8938 |
|
|
8939 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
8940 |
|
#ifdef __cplusplus |
8941 |
|
extern "C" |
8942 |
|
#endif |
8943 |
|
/* We use char because int might match the return type of a gcc2 |
8944 |
|
builtin and then its argument prototype would still apply. */ |
8945 |
|
char dlopen (); |
8946 |
|
int |
8947 |
|
main () |
8948 |
|
{ |
8949 |
|
dlopen (); |
8950 |
|
; |
8951 |
|
return 0; |
8952 |
|
} |
8953 |
|
_ACEOF |
8954 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
8955 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
8956 |
|
(eval $ac_link) 2>conftest.er1 |
8957 |
|
ac_status=$? |
8958 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
8959 |
|
rm -f conftest.er1 |
8960 |
|
cat conftest.err >&5 |
8961 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8962 |
|
(exit $ac_status); } && |
8963 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
8964 |
|
|| test ! -s conftest.err' |
8965 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8966 |
|
(eval $ac_try) 2>&5 |
8967 |
|
ac_status=$? |
8968 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8969 |
|
(exit $ac_status); }; } && |
8970 |
|
{ ac_try='test -s conftest$ac_exeext' |
8971 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8972 |
|
(eval $ac_try) 2>&5 |
8973 |
|
ac_status=$? |
8974 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8975 |
|
(exit $ac_status); }; }; then |
8976 |
|
ac_cv_lib_dl_dlopen=yes |
8977 |
|
else |
8978 |
|
echo "$as_me: failed program was:" >&5 |
8979 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
8980 |
|
|
8981 |
|
ac_cv_lib_dl_dlopen=no |
8982 |
|
fi |
8983 |
|
rm -f conftest.err conftest.$ac_objext \ |
8984 |
|
conftest$ac_exeext conftest.$ac_ext |
8985 |
|
LIBS=$ac_check_lib_save_LIBS |
8986 |
|
fi |
8987 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
8988 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
8989 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
8990 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
8991 |
|
else |
8992 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
8993 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
8994 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
8995 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
8996 |
|
else |
8997 |
|
ac_check_lib_save_LIBS=$LIBS |
8998 |
|
LIBS="-lsvld $LIBS" |
8999 |
|
cat >conftest.$ac_ext <<_ACEOF |
9000 |
|
/* confdefs.h. */ |
9001 |
|
_ACEOF |
9002 |
|
cat confdefs.h >>conftest.$ac_ext |
9003 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9004 |
|
/* end confdefs.h. */ |
9005 |
|
|
9006 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
9007 |
|
#ifdef __cplusplus |
9008 |
|
extern "C" |
9009 |
|
#endif |
9010 |
|
/* We use char because int might match the return type of a gcc2 |
9011 |
|
builtin and then its argument prototype would still apply. */ |
9012 |
|
char dlopen (); |
9013 |
|
int |
9014 |
|
main () |
9015 |
|
{ |
9016 |
|
dlopen (); |
9017 |
|
; |
9018 |
|
return 0; |
9019 |
|
} |
9020 |
|
_ACEOF |
9021 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
9022 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9023 |
|
(eval $ac_link) 2>conftest.er1 |
9024 |
|
ac_status=$? |
9025 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9026 |
|
rm -f conftest.er1 |
9027 |
|
cat conftest.err >&5 |
9028 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9029 |
|
(exit $ac_status); } && |
9030 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
9031 |
|
|| test ! -s conftest.err' |
9032 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9033 |
|
(eval $ac_try) 2>&5 |
9034 |
|
ac_status=$? |
9035 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9036 |
|
(exit $ac_status); }; } && |
9037 |
|
{ ac_try='test -s conftest$ac_exeext' |
9038 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9039 |
|
(eval $ac_try) 2>&5 |
9040 |
|
ac_status=$? |
9041 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9042 |
|
(exit $ac_status); }; }; then |
9043 |
|
ac_cv_lib_svld_dlopen=yes |
9044 |
|
else |
9045 |
|
echo "$as_me: failed program was:" >&5 |
9046 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9047 |
|
|
9048 |
|
ac_cv_lib_svld_dlopen=no |
9049 |
|
fi |
9050 |
|
rm -f conftest.err conftest.$ac_objext \ |
9051 |
|
conftest$ac_exeext conftest.$ac_ext |
9052 |
|
LIBS=$ac_check_lib_save_LIBS |
9053 |
|
fi |
9054 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9055 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
9056 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
9057 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9058 |
|
else |
9059 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9060 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
9061 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9062 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9063 |
|
else |
9064 |
|
ac_check_lib_save_LIBS=$LIBS |
9065 |
|
LIBS="-ldld $LIBS" |
9066 |
|
cat >conftest.$ac_ext <<_ACEOF |
9067 |
|
/* confdefs.h. */ |
9068 |
|
_ACEOF |
9069 |
|
cat confdefs.h >>conftest.$ac_ext |
9070 |
|
cat >>conftest.$ac_ext <<_ACEOF |
9071 |
|
/* end confdefs.h. */ |
9072 |
|
|
9073 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
9074 |
|
#ifdef __cplusplus |
9075 |
|
extern "C" |
9076 |
|
#endif |
9077 |
|
/* We use char because int might match the return type of a gcc2 |
9078 |
|
builtin and then its argument prototype would still apply. */ |
9079 |
|
char dld_link (); |
9080 |
|
int |
9081 |
|
main () |
9082 |
|
{ |
9083 |
|
dld_link (); |
9084 |
|
; |
9085 |
|
return 0; |
9086 |
|
} |
9087 |
|
_ACEOF |
9088 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
9089 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9090 |
|
(eval $ac_link) 2>conftest.er1 |
9091 |
|
ac_status=$? |
9092 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
9093 |
|
rm -f conftest.er1 |
9094 |
|
cat conftest.err >&5 |
9095 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9096 |
|
(exit $ac_status); } && |
9097 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
9098 |
|
|| test ! -s conftest.err' |
9099 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9100 |
|
(eval $ac_try) 2>&5 |
9101 |
|
ac_status=$? |
9102 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9103 |
|
(exit $ac_status); }; } && |
9104 |
|
{ ac_try='test -s conftest$ac_exeext' |
9105 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9106 |
|
(eval $ac_try) 2>&5 |
9107 |
|
ac_status=$? |
9108 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9109 |
|
(exit $ac_status); }; }; then |
9110 |
|
ac_cv_lib_dld_dld_link=yes |
9111 |
|
else |
9112 |
|
echo "$as_me: failed program was:" >&5 |
9113 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
9114 |
|
|
9115 |
|
ac_cv_lib_dld_dld_link=no |
9116 |
|
fi |
9117 |
|
rm -f conftest.err conftest.$ac_objext \ |
9118 |
|
conftest$ac_exeext conftest.$ac_ext |
9119 |
|
LIBS=$ac_check_lib_save_LIBS |
9120 |
|
fi |
9121 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9122 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
9123 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
9124 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9125 |
|
fi |
9126 |
|
|
9127 |
|
|
9128 |
|
fi |
9129 |
|
|
9130 |
|
|
9131 |
|
fi |
9132 |
|
|
9133 |
|
|
9134 |
|
fi |
9135 |
|
|
9136 |
|
|
9137 |
|
fi |
9138 |
|
|
9139 |
|
|
9140 |
|
fi |
9141 |
|
|
9142 |
|
;; |
9143 |
|
esac |
9144 |
|
|
9145 |
|
if test "x$lt_cv_dlopen" != xno; then |
9146 |
|
enable_dlopen=yes |
9147 |
|
else |
9148 |
|
enable_dlopen=no |
9149 |
|
fi |
9150 |
|
|
9151 |
|
case $lt_cv_dlopen in |
9152 |
|
dlopen) |
9153 |
|
save_CPPFLAGS="$CPPFLAGS" |
9154 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9155 |
|
|
9156 |
|
save_LDFLAGS="$LDFLAGS" |
9157 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9158 |
|
|
9159 |
|
save_LIBS="$LIBS" |
9160 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
9161 |
|
|
9162 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9163 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
9164 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
9165 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9166 |
|
else |
9167 |
|
if test "$cross_compiling" = yes; then : |
9168 |
|
lt_cv_dlopen_self=cross |
9169 |
|
else |
9170 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9171 |
|
lt_status=$lt_dlunknown |
9172 |
|
cat > conftest.$ac_ext <<EOF |
9173 |
|
#line 9173 "configure" |
9174 |
|
#include "confdefs.h" |
9175 |
|
|
9176 |
|
#if HAVE_DLFCN_H |
9177 |
|
#include <dlfcn.h> |
9178 |
|
#endif |
9179 |
|
|
9180 |
|
#include <stdio.h> |
9181 |
|
|
9182 |
|
#ifdef RTLD_GLOBAL |
9183 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
9184 |
|
#else |
9185 |
|
# ifdef DL_GLOBAL |
9186 |
|
# define LT_DLGLOBAL DL_GLOBAL |
9187 |
|
# else |
9188 |
|
# define LT_DLGLOBAL 0 |
9189 |
|
# endif |
9190 |
|
#endif |
9191 |
|
|
9192 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9193 |
|
find out it does not work in some platform. */ |
9194 |
|
#ifndef LT_DLLAZY_OR_NOW |
9195 |
|
# ifdef RTLD_LAZY |
9196 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
9197 |
|
# else |
9198 |
|
# ifdef DL_LAZY |
9199 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
9200 |
|
# else |
9201 |
|
# ifdef RTLD_NOW |
9202 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
9203 |
|
# else |
9204 |
|
# ifdef DL_NOW |
9205 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
9206 |
|
# else |
9207 |
|
# define LT_DLLAZY_OR_NOW 0 |
9208 |
|
# endif |
9209 |
|
# endif |
9210 |
|
# endif |
9211 |
|
# endif |
9212 |
|
#endif |
9213 |
|
|
9214 |
|
#ifdef __cplusplus |
9215 |
|
extern "C" void exit (int); |
9216 |
|
#endif |
9217 |
|
|
9218 |
|
void fnord() { int i=42;} |
9219 |
|
int main () |
9220 |
|
{ |
9221 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9222 |
|
int status = $lt_dlunknown; |
9223 |
|
|
9224 |
|
if (self) |
9225 |
|
{ |
9226 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9227 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9228 |
|
/* dlclose (self); */ |
9229 |
|
} |
9230 |
|
|
9231 |
|
exit (status); |
9232 |
|
} |
9233 |
|
EOF |
9234 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9235 |
|
(eval $ac_link) 2>&5 |
9236 |
|
ac_status=$? |
9237 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9238 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9239 |
|
(./conftest; exit; ) 2>/dev/null |
9240 |
|
lt_status=$? |
9241 |
|
case x$lt_status in |
9242 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9243 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9244 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
9245 |
|
esac |
9246 |
|
else : |
9247 |
|
# compilation failed |
9248 |
|
lt_cv_dlopen_self=no |
9249 |
|
fi |
9250 |
|
fi |
9251 |
|
rm -fr conftest* |
9252 |
|
|
9253 |
|
|
9254 |
|
fi |
9255 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9256 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9257 |
|
|
9258 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
9259 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
9260 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9261 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9262 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
9263 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
9264 |
|
else |
9265 |
|
if test "$cross_compiling" = yes; then : |
9266 |
|
lt_cv_dlopen_self_static=cross |
9267 |
|
else |
9268 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9269 |
|
lt_status=$lt_dlunknown |
9270 |
|
cat > conftest.$ac_ext <<EOF |
9271 |
|
#line 9271 "configure" |
9272 |
|
#include "confdefs.h" |
9273 |
|
|
9274 |
|
#if HAVE_DLFCN_H |
9275 |
|
#include <dlfcn.h> |
9276 |
|
#endif |
9277 |
|
|
9278 |
|
#include <stdio.h> |
9279 |
|
|
9280 |
|
#ifdef RTLD_GLOBAL |
9281 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
9282 |
|
#else |
9283 |
|
# ifdef DL_GLOBAL |
9284 |
|
# define LT_DLGLOBAL DL_GLOBAL |
9285 |
|
# else |
9286 |
|
# define LT_DLGLOBAL 0 |
9287 |
|
# endif |
9288 |
|
#endif |
9289 |
|
|
9290 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9291 |
|
find out it does not work in some platform. */ |
9292 |
|
#ifndef LT_DLLAZY_OR_NOW |
9293 |
|
# ifdef RTLD_LAZY |
9294 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
9295 |
|
# else |
9296 |
|
# ifdef DL_LAZY |
9297 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
9298 |
|
# else |
9299 |
|
# ifdef RTLD_NOW |
9300 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
9301 |
|
# else |
9302 |
|
# ifdef DL_NOW |
9303 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
9304 |
|
# else |
9305 |
|
# define LT_DLLAZY_OR_NOW 0 |
9306 |
|
# endif |
9307 |
|
# endif |
9308 |
|
# endif |
9309 |
|
# endif |
9310 |
|
#endif |
9311 |
|
|
9312 |
|
#ifdef __cplusplus |
9313 |
|
extern "C" void exit (int); |
9314 |
|
#endif |
9315 |
|
|
9316 |
|
void fnord() { int i=42;} |
9317 |
|
int main () |
9318 |
|
{ |
9319 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9320 |
|
int status = $lt_dlunknown; |
9321 |
|
|
9322 |
|
if (self) |
9323 |
|
{ |
9324 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9325 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9326 |
|
/* dlclose (self); */ |
9327 |
|
} |
9328 |
|
|
9329 |
|
exit (status); |
9330 |
|
} |
9331 |
|
EOF |
9332 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9333 |
|
(eval $ac_link) 2>&5 |
9334 |
|
ac_status=$? |
9335 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9336 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9337 |
|
(./conftest; exit; ) 2>/dev/null |
9338 |
|
lt_status=$? |
9339 |
|
case x$lt_status in |
9340 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9341 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9342 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
9343 |
|
esac |
9344 |
|
else : |
9345 |
|
# compilation failed |
9346 |
|
lt_cv_dlopen_self_static=no |
9347 |
|
fi |
9348 |
|
fi |
9349 |
|
rm -fr conftest* |
9350 |
|
|
9351 |
|
|
9352 |
|
fi |
9353 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
9354 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
9355 |
|
fi |
9356 |
|
|
9357 |
|
CPPFLAGS="$save_CPPFLAGS" |
9358 |
|
LDFLAGS="$save_LDFLAGS" |
9359 |
|
LIBS="$save_LIBS" |
9360 |
|
;; |
9361 |
|
esac |
9362 |
|
|
9363 |
|
case $lt_cv_dlopen_self in |
9364 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
9365 |
|
*) enable_dlopen_self=unknown ;; |
9366 |
|
esac |
9367 |
|
|
9368 |
|
case $lt_cv_dlopen_self_static in |
9369 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
9370 |
|
*) enable_dlopen_self_static=unknown ;; |
9371 |
|
esac |
9372 |
|
fi |
9373 |
|
|
9374 |
|
|
9375 |
|
# Report which librarie types wil actually be built |
9376 |
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9377 |
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9378 |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
9379 |
|
echo "${ECHO_T}$can_build_shared" >&6 |
9380 |
|
|
9381 |
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
9382 |
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
9383 |
|
test "$can_build_shared" = "no" && enable_shared=no |
9384 |
|
|
9385 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
9386 |
|
# are all built from PIC. |
9387 |
|
case "$host_os" in |
9388 |
|
aix3*) |
9389 |
|
test "$enable_shared" = yes && enable_static=no |
9390 |
|
if test -n "$RANLIB"; then |
9391 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
9392 |
|
postinstall_cmds='$RANLIB $lib' |
9393 |
|
fi |
9394 |
|
;; |
9395 |
|
|
9396 |
|
aix4* | aix5*) |
9397 |
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
9398 |
|
test "$enable_shared" = yes && enable_static=no |
9399 |
|
fi |
9400 |
|
;; |
9401 |
|
esac |
9402 |
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
9403 |
|
echo "${ECHO_T}$enable_shared" >&6 |
9404 |
|
|
9405 |
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
9406 |
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
9407 |
|
# Make sure either enable_shared or enable_static is yes. |
9408 |
|
test "$enable_shared" = yes || enable_static=yes |
9409 |
|
echo "$as_me:$LINENO: result: $enable_static" >&5 |
9410 |
|
echo "${ECHO_T}$enable_static" >&6 |
9411 |
|
|
9412 |
|
# The else clause should only fire when bootstrapping the |
9413 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
9414 |
|
# with your package, and you will get complaints that there are |
9415 |
|
# no rules to generate ltmain.sh. |
9416 |
|
if test -f "$ltmain"; then |
9417 |
|
# See if we are running on zsh, and set the options which allow our commands through |
9418 |
|
# without removal of \ escapes. |
9419 |
|
if test -n "${ZSH_VERSION+set}" ; then |
9420 |
|
setopt NO_GLOB_SUBST |
9421 |
|
fi |
9422 |
|
# Now quote all the things that may contain metacharacters while being |
9423 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
9424 |
|
# variables and quote the copies for generation of the libtool script. |
9425 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
9426 |
|
SED SHELL STRIP \ |
9427 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9428 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
9429 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
9430 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
9431 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
9432 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
9433 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
9434 |
|
compiler \ |
9435 |
|
CC \ |
9436 |
|
LD \ |
9437 |
|
lt_prog_compiler_wl \ |
9438 |
|
lt_prog_compiler_pic \ |
9439 |
|
lt_prog_compiler_static \ |
9440 |
|
lt_prog_compiler_no_builtin_flag \ |
9441 |
|
export_dynamic_flag_spec \ |
9442 |
|
thread_safe_flag_spec \ |
9443 |
|
whole_archive_flag_spec \ |
9444 |
|
enable_shared_with_static_runtimes \ |
9445 |
|
old_archive_cmds \ |
9446 |
|
old_archive_from_new_cmds \ |
9447 |
|
predep_objects \ |
9448 |
|
postdep_objects \ |
9449 |
|
predeps \ |
9450 |
|
postdeps \ |
9451 |
|
compiler_lib_search_path \ |
9452 |
|
archive_cmds \ |
9453 |
|
archive_expsym_cmds \ |
9454 |
|
postinstall_cmds \ |
9455 |
|
postuninstall_cmds \ |
9456 |
|
old_archive_from_expsyms_cmds \ |
9457 |
|
allow_undefined_flag \ |
9458 |
|
no_undefined_flag \ |
9459 |
|
export_symbols_cmds \ |
9460 |
|
hardcode_libdir_flag_spec \ |
9461 |
|
hardcode_libdir_flag_spec_ld \ |
9462 |
|
hardcode_libdir_separator \ |
9463 |
|
hardcode_automatic \ |
9464 |
|
module_cmds \ |
9465 |
|
module_expsym_cmds \ |
9466 |
|
lt_cv_prog_compiler_c_o \ |
9467 |
|
exclude_expsyms \ |
9468 |
|
include_expsyms; do |
9469 |
|
|
9470 |
|
case $var in |
9471 |
|
old_archive_cmds | \ |
9472 |
|
old_archive_from_new_cmds | \ |
9473 |
|
archive_cmds | \ |
9474 |
|
archive_expsym_cmds | \ |
9475 |
|
module_cmds | \ |
9476 |
|
module_expsym_cmds | \ |
9477 |
|
old_archive_from_expsyms_cmds | \ |
9478 |
|
export_symbols_cmds | \ |
9479 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
9480 |
|
postinstall_cmds | postuninstall_cmds | \ |
9481 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
9482 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
9483 |
|
# Double-quote double-evaled strings. |
9484 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
9485 |
|
;; |
9486 |
|
*) |
9487 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
9488 |
|
;; |
9489 |
|
esac |
9490 |
|
done |
9491 |
|
|
9492 |
|
case $lt_echo in |
9493 |
|
*'\$0 --fallback-echo"') |
9494 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
9495 |
|
;; |
9496 |
|
esac |
9497 |
|
|
9498 |
|
cfgfile="${ofile}T" |
9499 |
|
trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
9500 |
|
$rm -f "$cfgfile" |
9501 |
|
{ echo "$as_me:$LINENO: creating $ofile" >&5 |
9502 |
|
echo "$as_me: creating $ofile" >&6;} |
9503 |
|
|
9504 |
|
cat <<__EOF__ >> "$cfgfile" |
9505 |
|
#! $SHELL |
9506 |
|
|
9507 |
|
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
9508 |
|
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
9509 |
|
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
9510 |
|
# |
9511 |
|
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
9512 |
|
# Free Software Foundation, Inc. |
9513 |
|
# |
9514 |
|
# This file is part of GNU Libtool: |
9515 |
|
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
9516 |
|
# |
9517 |
|
# This program is free software; you can redistribute it and/or modify |
9518 |
|
# it under the terms of the GNU General Public License as published by |
9519 |
|
# the Free Software Foundation; either version 2 of the License, or |
9520 |
|
# (at your option) any later version. |
9521 |
|
# |
9522 |
|
# This program is distributed in the hope that it will be useful, but |
9523 |
|
# WITHOUT ANY WARRANTY; without even the implied warranty of |
9524 |
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
9525 |
|
# General Public License for more details. |
9526 |
|
# |
9527 |
|
# You should have received a copy of the GNU General Public License |
9528 |
|
# along with this program; if not, write to the Free Software |
9529 |
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
9530 |
|
# |
9531 |
|
# As a special exception to the GNU General Public License, if you |
9532 |
|
# distribute this file as part of a program that contains a |
9533 |
|
# configuration script generated by Autoconf, you may include it under |
9534 |
|
# the same distribution terms that you use for the rest of that program. |
9535 |
|
|
9536 |
|
# A sed program that does not truncate output. |
9537 |
|
SED=$lt_SED |
9538 |
|
|
9539 |
|
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
9540 |
|
Xsed="$SED -e 1s/^X//" |
9541 |
|
|
9542 |
|
# The HP-UX ksh and POSIX shell print the target directory to stdout |
9543 |
|
# if CDPATH is set. |
9544 |
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
9545 |
|
|
9546 |
|
# The names of the tagged configurations supported by this script. |
9547 |
|
available_tags= |
9548 |
|
|
9549 |
|
# ### BEGIN LIBTOOL CONFIG |
9550 |
|
|
9551 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
9552 |
|
|
9553 |
|
# Shell to use when invoking shell scripts. |
9554 |
|
SHELL=$lt_SHELL |
9555 |
|
|
9556 |
|
# Whether or not to build shared libraries. |
9557 |
|
build_libtool_libs=$enable_shared |
9558 |
|
|
9559 |
|
# Whether or not to build static libraries. |
9560 |
|
build_old_libs=$enable_static |
9561 |
|
|
9562 |
|
# Whether or not to add -lc for building shared libraries. |
9563 |
|
build_libtool_need_lc=$archive_cmds_need_lc |
9564 |
|
|
9565 |
|
# Whether or not to disallow shared libs when runtime libs are static |
9566 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
9567 |
|
|
9568 |
|
# Whether or not to optimize for fast installation. |
9569 |
|
fast_install=$enable_fast_install |
9570 |
|
|
9571 |
|
# The host system. |
9572 |
|
host_alias=$host_alias |
9573 |
|
host=$host |
9574 |
|
host_os=$host_os |
9575 |
|
|
9576 |
|
# The build system. |
9577 |
|
build_alias=$build_alias |
9578 |
|
build=$build |
9579 |
|
build_os=$build_os |
9580 |
|
|
9581 |
|
# An echo program that does not interpret backslashes. |
9582 |
|
echo=$lt_echo |
9583 |
|
|
9584 |
|
# The archiver. |
9585 |
|
AR=$lt_AR |
9586 |
|
AR_FLAGS=$lt_AR_FLAGS |
9587 |
|
|
9588 |
|
# A C compiler. |
9589 |
|
LTCC=$lt_LTCC |
9590 |
|
|
9591 |
|
# A language-specific compiler. |
9592 |
|
CC=$lt_compiler |
9593 |
|
|
9594 |
|
# Is the compiler the GNU C compiler? |
9595 |
|
with_gcc=$GCC |
9596 |
|
|
9597 |
|
# An ERE matcher. |
9598 |
|
EGREP=$lt_EGREP |
9599 |
|
|
9600 |
|
# The linker used to build libraries. |
9601 |
|
LD=$lt_LD |
9602 |
|
|
9603 |
|
# Whether we need hard or soft links. |
9604 |
|
LN_S=$lt_LN_S |
9605 |
|
|
9606 |
|
# A BSD-compatible nm program. |
9607 |
|
NM=$lt_NM |
9608 |
|
|
9609 |
|
# A symbol stripping program |
9610 |
|
STRIP=$lt_STRIP |
9611 |
|
|
9612 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
9613 |
|
MAGIC_CMD=$MAGIC_CMD |
9614 |
|
|
9615 |
|
# Used on cygwin: DLL creation program. |
9616 |
|
DLLTOOL="$DLLTOOL" |
9617 |
|
|
9618 |
|
# Used on cygwin: object dumper. |
9619 |
|
OBJDUMP="$OBJDUMP" |
9620 |
|
|
9621 |
|
# Used on cygwin: assembler. |
9622 |
|
AS="$AS" |
9623 |
|
|
9624 |
|
# The name of the directory that contains temporary libtool files. |
9625 |
|
objdir=$objdir |
9626 |
|
|
9627 |
|
# How to create reloadable object files. |
9628 |
|
reload_flag=$lt_reload_flag |
9629 |
|
reload_cmds=$lt_reload_cmds |
9630 |
|
|
9631 |
|
# How to pass a linker flag through the compiler. |
9632 |
|
wl=$lt_lt_prog_compiler_wl |
9633 |
|
|
9634 |
|
# Object file suffix (normally "o"). |
9635 |
|
objext="$ac_objext" |
9636 |
|
|
9637 |
|
# Old archive suffix (normally "a"). |
9638 |
|
libext="$libext" |
9639 |
|
|
9640 |
|
# Shared library suffix (normally ".so"). |
9641 |
|
shrext_cmds='$shrext_cmds' |
9642 |
|
|
9643 |
|
# Executable file suffix (normally ""). |
9644 |
|
exeext="$exeext" |
9645 |
|
|
9646 |
|
# Additional compiler flags for building library objects. |
9647 |
|
pic_flag=$lt_lt_prog_compiler_pic |
9648 |
|
pic_mode=$pic_mode |
9649 |
|
|
9650 |
|
# What is the maximum length of a command? |
9651 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
9652 |
|
|
9653 |
|
# Does compiler simultaneously support -c and -o options? |
9654 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
9655 |
|
|
9656 |
|
# Must we lock files when doing compilation? |
9657 |
|
need_locks=$lt_need_locks |
9658 |
|
|
9659 |
|
# Do we need the lib prefix for modules? |
9660 |
|
need_lib_prefix=$need_lib_prefix |
9661 |
|
|
9662 |
|
# Do we need a version for libraries? |
9663 |
|
need_version=$need_version |
9664 |
|
|
9665 |
|
# Whether dlopen is supported. |
9666 |
|
dlopen_support=$enable_dlopen |
9667 |
|
|
9668 |
|
# Whether dlopen of programs is supported. |
9669 |
|
dlopen_self=$enable_dlopen_self |
9670 |
|
|
9671 |
|
# Whether dlopen of statically linked programs is supported. |
9672 |
|
dlopen_self_static=$enable_dlopen_self_static |
9673 |
|
|
9674 |
|
# Compiler flag to prevent dynamic linking. |
9675 |
|
link_static_flag=$lt_lt_prog_compiler_static |
9676 |
|
|
9677 |
|
# Compiler flag to turn off builtin functions. |
9678 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
9679 |
|
|
9680 |
|
# Compiler flag to allow reflexive dlopens. |
9681 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
9682 |
|
|
9683 |
|
# Compiler flag to generate shared objects directly from archives. |
9684 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
9685 |
|
|
9686 |
|
# Compiler flag to generate thread-safe objects. |
9687 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
9688 |
|
|
9689 |
|
# Library versioning type. |
9690 |
|
version_type=$version_type |
9691 |
|
|
9692 |
|
# Format of library name prefix. |
9693 |
|
libname_spec=$lt_libname_spec |
9694 |
|
|
9695 |
|
# List of archive names. First name is the real one, the rest are links. |
9696 |
|
# The last name is the one that the linker finds with -lNAME. |
9697 |
|
library_names_spec=$lt_library_names_spec |
9698 |
|
|
9699 |
|
# The coded name of the library, if different from the real name. |
9700 |
|
soname_spec=$lt_soname_spec |
9701 |
|
|
9702 |
|
# Commands used to build and install an old-style archive. |
9703 |
|
RANLIB=$lt_RANLIB |
9704 |
|
old_archive_cmds=$lt_old_archive_cmds |
9705 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
9706 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
9707 |
|
|
9708 |
|
# Create an old-style archive from a shared archive. |
9709 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
9710 |
|
|
9711 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
9712 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
9713 |
|
|
9714 |
|
# Commands used to build and install a shared archive. |
9715 |
|
archive_cmds=$lt_archive_cmds |
9716 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds |
9717 |
|
postinstall_cmds=$lt_postinstall_cmds |
9718 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
9719 |
|
|
9720 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
9721 |
|
module_cmds=$lt_module_cmds |
9722 |
|
module_expsym_cmds=$lt_module_expsym_cmds |
9723 |
|
|
9724 |
|
# Commands to strip libraries. |
9725 |
|
old_striplib=$lt_old_striplib |
9726 |
|
striplib=$lt_striplib |
9727 |
|
|
9728 |
|
# Dependencies to place before the objects being linked to create a |
9729 |
|
# shared library. |
9730 |
|
predep_objects=$lt_predep_objects |
9731 |
|
|
9732 |
|
# Dependencies to place after the objects being linked to create a |
9733 |
|
# shared library. |
9734 |
|
postdep_objects=$lt_postdep_objects |
9735 |
|
|
9736 |
|
# Dependencies to place before the objects being linked to create a |
9737 |
|
# shared library. |
9738 |
|
predeps=$lt_predeps |
9739 |
|
|
9740 |
|
# Dependencies to place after the objects being linked to create a |
9741 |
|
# shared library. |
9742 |
|
postdeps=$lt_postdeps |
9743 |
|
|
9744 |
|
# The library search path used internally by the compiler when linking |
9745 |
|
# a shared library. |
9746 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path |
9747 |
|
|
9748 |
|
# Method to check whether dependent libraries are shared objects. |
9749 |
|
deplibs_check_method=$lt_deplibs_check_method |
9750 |
|
|
9751 |
|
# Command to use when deplibs_check_method == file_magic. |
9752 |
|
file_magic_cmd=$lt_file_magic_cmd |
9753 |
|
|
9754 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
9755 |
|
allow_undefined_flag=$lt_allow_undefined_flag |
9756 |
|
|
9757 |
|
# Flag that forces no undefined symbols. |
9758 |
|
no_undefined_flag=$lt_no_undefined_flag |
9759 |
|
|
9760 |
|
# Commands used to finish a libtool library installation in a directory. |
9761 |
|
finish_cmds=$lt_finish_cmds |
9762 |
|
|
9763 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
9764 |
|
finish_eval=$lt_finish_eval |
9765 |
|
|
9766 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
9767 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
9768 |
|
|
9769 |
|
# Transform the output of nm in a proper C declaration |
9770 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
9771 |
|
|
9772 |
|
# Transform the output of nm in a C name address pair |
9773 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
9774 |
|
|
9775 |
|
# This is the shared library runtime path variable. |
9776 |
|
runpath_var=$runpath_var |
9777 |
|
|
9778 |
|
# This is the shared library path variable. |
9779 |
|
shlibpath_var=$shlibpath_var |
9780 |
|
|
9781 |
|
# Is shlibpath searched before the hard-coded library search path? |
9782 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
9783 |
|
|
9784 |
|
# How to hardcode a shared library path into an executable. |
9785 |
|
hardcode_action=$hardcode_action |
9786 |
|
|
9787 |
|
# Whether we should hardcode library paths into libraries. |
9788 |
|
hardcode_into_libs=$hardcode_into_libs |
9789 |
|
|
9790 |
|
# Flag to hardcode \$libdir into a binary during linking. |
9791 |
|
# This must work even if \$libdir does not exist. |
9792 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
9793 |
|
|
9794 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
9795 |
|
# a binary during linking. This must work even if \$libdir does |
9796 |
|
# not exist. |
9797 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
9798 |
|
|
9799 |
|
# Whether we need a single -rpath flag with a separated argument. |
9800 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
9801 |
|
|
9802 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
9803 |
|
# resulting binary. |
9804 |
|
hardcode_direct=$hardcode_direct |
9805 |
|
|
9806 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
9807 |
|
# resulting binary. |
9808 |
|
hardcode_minus_L=$hardcode_minus_L |
9809 |
|
|
9810 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
9811 |
|
# the resulting binary. |
9812 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var |
9813 |
|
|
9814 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
9815 |
|
# and all subsequent libraries and executables linked against it. |
9816 |
|
hardcode_automatic=$hardcode_automatic |
9817 |
|
|
9818 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
9819 |
|
# restored at relink time. |
9820 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
9821 |
|
|
9822 |
|
# Whether libtool must link a program against all its dependency libraries. |
9823 |
|
link_all_deplibs=$link_all_deplibs |
9824 |
|
|
9825 |
|
# Compile-time system search path for libraries |
9826 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
9827 |
|
|
9828 |
|
# Run-time system search path for libraries |
9829 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
9830 |
|
|
9831 |
|
# Fix the shell variable \$srcfile for the compiler. |
9832 |
|
fix_srcfile_path="$fix_srcfile_path" |
9833 |
|
|
9834 |
|
# Set to yes if exported symbols are required. |
9835 |
|
always_export_symbols=$always_export_symbols |
9836 |
|
|
9837 |
|
# The commands to list exported symbols. |
9838 |
|
export_symbols_cmds=$lt_export_symbols_cmds |
9839 |
|
|
9840 |
|
# The commands to extract the exported symbol list from a shared archive. |
9841 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
9842 |
|
|
9843 |
|
# Symbols that should not be listed in the preloaded symbols. |
9844 |
|
exclude_expsyms=$lt_exclude_expsyms |
9845 |
|
|
9846 |
|
# Symbols that must always be exported. |
9847 |
|
include_expsyms=$lt_include_expsyms |
9848 |
|
|
9849 |
|
# ### END LIBTOOL CONFIG |
9850 |
|
|
9851 |
|
__EOF__ |
9852 |
|
|
9853 |
|
|
9854 |
|
case $host_os in |
9855 |
|
aix3*) |
9856 |
|
cat <<\EOF >> "$cfgfile" |
9857 |
|
|
9858 |
|
# AIX sometimes has problems with the GCC collect2 program. For some |
9859 |
|
# reason, if we set the COLLECT_NAMES environment variable, the problems |
9860 |
|
# vanish in a puff of smoke. |
9861 |
|
if test "X${COLLECT_NAMES+set}" != Xset; then |
9862 |
|
COLLECT_NAMES= |
9863 |
|
export COLLECT_NAMES |
9864 |
|
fi |
9865 |
|
EOF |
9866 |
|
;; |
9867 |
|
esac |
9868 |
|
|
9869 |
|
# We use sed instead of cat because bash on DJGPP gets confused if |
9870 |
|
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
9871 |
|
# text mode, it properly converts lines to CR/LF. This bash problem |
9872 |
|
# is reportedly fixed, but why not run on old versions too? |
9873 |
|
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
9874 |
|
|
9875 |
|
mv -f "$cfgfile" "$ofile" || \ |
9876 |
|
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
9877 |
|
chmod +x "$ofile" |
9878 |
|
|
9879 |
|
else |
9880 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
9881 |
|
# `config.status --recheck' to rerun these tests and create the |
9882 |
|
# libtool script then. |
9883 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
9884 |
|
if test -f "$ltmain_in"; then |
9885 |
|
test -f Makefile && make "$ltmain" |
9886 |
|
fi |
9887 |
|
fi |
9888 |
|
|
9889 |
|
|
9890 |
|
ac_ext=c |
9891 |
|
ac_cpp='$CPP $CPPFLAGS' |
9892 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9893 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9894 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
9895 |
|
|
9896 |
|
CC="$lt_save_CC" |
9897 |
|
|
9898 |
|
|
9899 |
|
# Check whether --with-tags or --without-tags was given. |
9900 |
|
if test "${with_tags+set}" = set; then |
9901 |
|
withval="$with_tags" |
9902 |
|
tagnames="$withval" |
9903 |
|
fi; |
9904 |
|
|
9905 |
|
if test -f "$ltmain" && test -n "$tagnames"; then |
9906 |
|
if test ! -f "${ofile}"; then |
9907 |
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
9908 |
|
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
9909 |
|
fi |
9910 |
|
|
9911 |
|
if test -z "$LTCC"; then |
9912 |
|
eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
9913 |
|
if test -z "$LTCC"; then |
9914 |
|
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
9915 |
|
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
9916 |
|
else |
9917 |
|
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
9918 |
|
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
9919 |
|
fi |
9920 |
|
fi |
9921 |
|
|
9922 |
|
# Extract list of available tagged configurations in $ofile. |
9923 |
|
# Note that this assumes the entire list is on one line. |
9924 |
|
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
9925 |
|
|
9926 |
|
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
9927 |
|
for tagname in $tagnames; do |
9928 |
|
IFS="$lt_save_ifs" |
9929 |
|
# Check whether tagname contains only valid characters |
9930 |
|
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
9931 |
|
"") ;; |
9932 |
|
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
9933 |
|
echo "$as_me: error: invalid tag name: $tagname" >&2;} |
9934 |
|
{ (exit 1); exit 1; }; } |
9935 |
|
;; |
9936 |
|
esac |
9937 |
|
|
9938 |
|
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
9939 |
|
then |
9940 |
|
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
9941 |
|
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
9942 |
|
{ (exit 1); exit 1; }; } |
9943 |
|
fi |
9944 |
|
|
9945 |
|
# Update the list of available tags. |
9946 |
|
if test -n "$tagname"; then |
9947 |
|
echo appending configuration tag \"$tagname\" to $ofile |
9948 |
|
|
9949 |
|
case $tagname in |
9950 |
|
CXX) |
9951 |
|
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
9952 |
|
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
9953 |
|
(test "X$CXX" != "Xg++"))) ; then |
9954 |
|
ac_ext=cc |
9955 |
|
ac_cpp='$CXXCPP $CPPFLAGS' |
9956 |
|
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
9957 |
|
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
9958 |
|
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9959 |
|
|
9960 |
|
|
9961 |
|
|
9962 |
|
|
9963 |
|
archive_cmds_need_lc_CXX=no |
9964 |
|
allow_undefined_flag_CXX= |
9965 |
|
always_export_symbols_CXX=no |
9966 |
|
archive_expsym_cmds_CXX= |
9967 |
|
export_dynamic_flag_spec_CXX= |
9968 |
|
hardcode_direct_CXX=no |
9969 |
|
hardcode_libdir_flag_spec_CXX= |
9970 |
|
hardcode_libdir_flag_spec_ld_CXX= |
9971 |
|
hardcode_libdir_separator_CXX= |
9972 |
|
hardcode_minus_L_CXX=no |
9973 |
|
hardcode_automatic_CXX=no |
9974 |
|
module_cmds_CXX= |
9975 |
|
module_expsym_cmds_CXX= |
9976 |
|
link_all_deplibs_CXX=unknown |
9977 |
|
old_archive_cmds_CXX=$old_archive_cmds |
9978 |
|
no_undefined_flag_CXX= |
9979 |
|
whole_archive_flag_spec_CXX= |
9980 |
|
enable_shared_with_static_runtimes_CXX=no |
9981 |
|
|
9982 |
|
# Dependencies to place before and after the object being linked: |
9983 |
|
predep_objects_CXX= |
9984 |
|
postdep_objects_CXX= |
9985 |
|
predeps_CXX= |
9986 |
|
postdeps_CXX= |
9987 |
|
compiler_lib_search_path_CXX= |
9988 |
|
|
9989 |
|
# Source file extension for C++ test sources. |
9990 |
|
ac_ext=cc |
9991 |
|
|
9992 |
|
# Object file extension for compiled C++ test sources. |
9993 |
|
objext=o |
9994 |
|
objext_CXX=$objext |
9995 |
|
|
9996 |
|
# Code to be used in simple compile tests |
9997 |
|
lt_simple_compile_test_code="int some_variable = 0;\n" |
9998 |
|
|
9999 |
|
# Code to be used in simple link tests |
10000 |
|
lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
10001 |
|
|
10002 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10003 |
|
|
10004 |
|
# If no C compiler was specified, use CC. |
10005 |
|
LTCC=${LTCC-"$CC"} |
10006 |
|
|
10007 |
|
# Allow CC to be a program name with arguments. |
10008 |
|
compiler=$CC |
10009 |
|
|
10010 |
|
|
10011 |
|
# save warnings/boilerplate of simple test code |
10012 |
|
ac_outfile=conftest.$ac_objext |
10013 |
|
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10014 |
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
10015 |
|
_lt_compiler_boilerplate=`cat conftest.err` |
10016 |
|
$rm conftest* |
10017 |
|
|
10018 |
|
ac_outfile=conftest.$ac_objext |
10019 |
|
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10020 |
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
10021 |
|
_lt_linker_boilerplate=`cat conftest.err` |
10022 |
|
$rm conftest* |
10023 |
|
|
10024 |
|
|
10025 |
|
# Allow CC to be a program name with arguments. |
10026 |
|
lt_save_CC=$CC |
10027 |
|
lt_save_LD=$LD |
10028 |
|
lt_save_GCC=$GCC |
10029 |
|
GCC=$GXX |
10030 |
|
lt_save_with_gnu_ld=$with_gnu_ld |
10031 |
|
lt_save_path_LD=$lt_cv_path_LD |
10032 |
|
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10033 |
|
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10034 |
|
else |
10035 |
|
unset lt_cv_prog_gnu_ld |
10036 |
|
fi |
10037 |
|
if test -n "${lt_cv_path_LDCXX+set}"; then |
10038 |
|
lt_cv_path_LD=$lt_cv_path_LDCXX |
10039 |
|
else |
10040 |
|
unset lt_cv_path_LD |
10041 |
|
fi |
10042 |
|
test -z "${LDCXX+set}" || LD=$LDCXX |
10043 |
|
CC=${CXX-"c++"} |
10044 |
|
compiler=$CC |
10045 |
|
compiler_CXX=$CC |
10046 |
|
for cc_temp in $compiler""; do |
10047 |
|
case $cc_temp in |
10048 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10049 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10050 |
|
\-*) ;; |
10051 |
|
*) break;; |
10052 |
|
esac |
10053 |
|
done |
10054 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10055 |
|
|
10056 |
|
|
10057 |
|
# We don't want -fno-exception wen compiling C++ code, so set the |
10058 |
|
# no_builtin_flag separately |
10059 |
|
if test "$GXX" = yes; then |
10060 |
|
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10061 |
|
else |
10062 |
|
lt_prog_compiler_no_builtin_flag_CXX= |
10063 |
|
fi |
10064 |
|
|
10065 |
|
if test "$GXX" = yes; then |
10066 |
|
# Set up default GNU C++ configuration |
10067 |
|
|
10068 |
|
|
10069 |
|
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
10070 |
|
if test "${with_gnu_ld+set}" = set; then |
10071 |
|
withval="$with_gnu_ld" |
10072 |
|
test "$withval" = no || with_gnu_ld=yes |
10073 |
|
else |
10074 |
|
with_gnu_ld=no |
10075 |
|
fi; |
10076 |
|
ac_prog=ld |
10077 |
|
if test "$GCC" = yes; then |
10078 |
|
# Check if gcc -print-prog-name=ld gives a path. |
10079 |
|
echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10080 |
|
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
10081 |
|
case $host in |
10082 |
|
*-*-mingw*) |
10083 |
|
# gcc leaves a trailing carriage return which upsets mingw |
10084 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10085 |
|
*) |
10086 |
|
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10087 |
|
esac |
10088 |
|
case $ac_prog in |
10089 |
|
# Accept absolute paths. |
10090 |
|
[\\/]* | ?:[\\/]*) |
10091 |
|
re_direlt='/[^/][^/]*/\.\./' |
10092 |
|
# Canonicalize the pathname of ld |
10093 |
|
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10094 |
|
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10095 |
|
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10096 |
|
done |
10097 |
|
test -z "$LD" && LD="$ac_prog" |
10098 |
|
;; |
10099 |
|
"") |
10100 |
|
# If it fails, then pretend we aren't using GCC. |
10101 |
|
ac_prog=ld |
10102 |
|
;; |
10103 |
|
*) |
10104 |
|
# If it is relative, then search for the first ld in PATH. |
10105 |
|
with_gnu_ld=unknown |
10106 |
|
;; |
10107 |
|
esac |
10108 |
|
elif test "$with_gnu_ld" = yes; then |
10109 |
|
echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10110 |
|
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
10111 |
|
else |
10112 |
|
echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10113 |
|
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
10114 |
|
fi |
10115 |
|
if test "${lt_cv_path_LD+set}" = set; then |
10116 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10117 |
|
else |
10118 |
|
if test -z "$LD"; then |
10119 |
|
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10120 |
|
for ac_dir in $PATH; do |
10121 |
|
IFS="$lt_save_ifs" |
10122 |
|
test -z "$ac_dir" && ac_dir=. |
10123 |
|
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10124 |
|
lt_cv_path_LD="$ac_dir/$ac_prog" |
10125 |
|
# Check to see if the program is GNU ld. I'd rather use --version, |
10126 |
|
# but apparently some GNU ld's only accept -v. |
10127 |
|
# Break only if it was the GNU/non-GNU ld that we prefer. |
10128 |
|
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10129 |
|
*GNU* | *'with BFD'*) |
10130 |
|
test "$with_gnu_ld" != no && break |
10131 |
|
;; |
10132 |
|
*) |
10133 |
|
test "$with_gnu_ld" != yes && break |
10134 |
|
;; |
10135 |
|
esac |
10136 |
|
fi |
10137 |
|
done |
10138 |
|
IFS="$lt_save_ifs" |
10139 |
|
else |
10140 |
|
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10141 |
|
fi |
10142 |
|
fi |
10143 |
|
|
10144 |
|
LD="$lt_cv_path_LD" |
10145 |
|
if test -n "$LD"; then |
10146 |
|
echo "$as_me:$LINENO: result: $LD" >&5 |
10147 |
|
echo "${ECHO_T}$LD" >&6 |
10148 |
|
else |
10149 |
|
echo "$as_me:$LINENO: result: no" >&5 |
10150 |
|
echo "${ECHO_T}no" >&6 |
10151 |
|
fi |
10152 |
|
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10153 |
|
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10154 |
|
{ (exit 1); exit 1; }; } |
10155 |
|
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10156 |
|
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
10157 |
|
if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10158 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
10159 |
|
else |
10160 |
|
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
10161 |
|
case `$LD -v 2>&1 </dev/null` in |
10162 |
|
*GNU* | *'with BFD'*) |
10163 |
|
lt_cv_prog_gnu_ld=yes |
10164 |
|
;; |
10165 |
|
*) |
10166 |
|
lt_cv_prog_gnu_ld=no |
10167 |
|
;; |
10168 |
|
esac |
10169 |
|
fi |
10170 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10171 |
|
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
10172 |
|
with_gnu_ld=$lt_cv_prog_gnu_ld |
10173 |
|
|
10174 |
|
|
10175 |
|
|
10176 |
|
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
10177 |
|
# archiving commands below assume that GNU ld is being used. |
10178 |
|
if test "$with_gnu_ld" = yes; then |
10179 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10180 |
|
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' |
10181 |
|
|
10182 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10183 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10184 |
|
|
10185 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
10186 |
|
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10187 |
|
# investigate it a little bit more. (MM) |
10188 |
|
wlarc='${wl}' |
10189 |
|
|
10190 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
10191 |
|
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10192 |
|
grep 'no-whole-archive' > /dev/null; then |
10193 |
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10194 |
|
else |
10195 |
|
whole_archive_flag_spec_CXX= |
10196 |
|
fi |
10197 |
|
else |
10198 |
|
with_gnu_ld=no |
10199 |
|
wlarc= |
10200 |
|
|
10201 |
|
# A generic and very simple default shared library creation |
10202 |
|
# command for GNU C++ for the case where it uses the native |
10203 |
|
# linker, instead of GNU ld. If possible, this setting should |
10204 |
|
# overridden to take advantage of the native linker features on |
10205 |
|
# the platform it is being used on. |
10206 |
|
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10207 |
|
fi |
10208 |
|
|
10209 |
|
# Commands to make compiler produce verbose output that lists |
10210 |
|
# what "hidden" libraries, object files and flags are used when |
10211 |
|
# linking a shared library. |
10212 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10213 |
|
|
10214 |
|
else |
10215 |
|
GXX=no |
10216 |
|
with_gnu_ld=no |
10217 |
|
wlarc= |
10218 |
|
fi |
10219 |
|
|
10220 |
|
# PORTME: fill in a description of your system's C++ link characteristics |
10221 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10222 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
10223 |
|
ld_shlibs_CXX=yes |
10224 |
|
case $host_os in |
10225 |
|
aix3*) |
10226 |
|
# FIXME: insert proper C++ library support |
10227 |
|
ld_shlibs_CXX=no |
10228 |
|
;; |
10229 |
|
aix4* | aix5*) |
10230 |
|
if test "$host_cpu" = ia64; then |
10231 |
|
# On IA64, the linker does run time linking by default, so we don't |
10232 |
|
# have to do anything special. |
10233 |
|
aix_use_runtimelinking=no |
10234 |
|
exp_sym_flag='-Bexport' |
10235 |
|
no_entry_flag="" |
10236 |
|
else |
10237 |
|
aix_use_runtimelinking=no |
10238 |
|
|
10239 |
|
# Test if we are trying to use run time linking or normal |
10240 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10241 |
|
# need to do runtime linking. |
10242 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10243 |
|
for ld_flag in $LDFLAGS; do |
10244 |
|
case $ld_flag in |
10245 |
|
*-brtl*) |
10246 |
|
aix_use_runtimelinking=yes |
10247 |
|
break |
10248 |
|
;; |
10249 |
|
esac |
10250 |
|
done |
10251 |
|
esac |
10252 |
|
|
10253 |
|
exp_sym_flag='-bexport' |
10254 |
|
no_entry_flag='-bnoentry' |
10255 |
|
fi |
10256 |
|
|
10257 |
|
# When large executables or shared objects are built, AIX ld can |
10258 |
|
# have problems creating the table of contents. If linking a library |
10259 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
10260 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10261 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10262 |
|
|
10263 |
|
archive_cmds_CXX='' |
10264 |
|
hardcode_direct_CXX=yes |
10265 |
|
hardcode_libdir_separator_CXX=':' |
10266 |
|
link_all_deplibs_CXX=yes |
10267 |
|
|
10268 |
|
if test "$GXX" = yes; then |
10269 |
|
case $host_os in aix4.[012]|aix4.[012].*) |
10270 |
|
# We only want to do this on AIX 4.2 and lower, the check |
10271 |
|
# below for broken collect2 doesn't work under 4.3+ |
10272 |
|
collect2name=`${CC} -print-prog-name=collect2` |
10273 |
|
if test -f "$collect2name" && \ |
10274 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
10275 |
|
then |
10276 |
|
# We have reworked collect2 |
10277 |
|
hardcode_direct_CXX=yes |
10278 |
|
else |
10279 |
|
# We have old collect2 |
10280 |
|
hardcode_direct_CXX=unsupported |
10281 |
|
# It fails to find uninstalled libraries when the uninstalled |
10282 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
10283 |
|
# to unsupported forces relinking |
10284 |
|
hardcode_minus_L_CXX=yes |
10285 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10286 |
|
hardcode_libdir_separator_CXX= |
10287 |
|
fi |
10288 |
|
esac |
10289 |
|
shared_flag='-shared' |
10290 |
|
if test "$aix_use_runtimelinking" = yes; then |
10291 |
|
shared_flag="$shared_flag "'${wl}-G' |
10292 |
|
fi |
10293 |
|
else |
10294 |
|
# not using gcc |
10295 |
|
if test "$host_cpu" = ia64; then |
10296 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10297 |
|
# chokes on -Wl,-G. The following line is correct: |
10298 |
|
shared_flag='-G' |
10299 |
|
else |
10300 |
|
if test "$aix_use_runtimelinking" = yes; then |
10301 |
|
shared_flag='${wl}-G' |
10302 |
|
else |
10303 |
|
shared_flag='${wl}-bM:SRE' |
10304 |
|
fi |
10305 |
|
fi |
10306 |
|
fi |
10307 |
|
|
10308 |
|
# It seems that -bexpall does not export symbols beginning with |
10309 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
10310 |
|
always_export_symbols_CXX=yes |
10311 |
|
if test "$aix_use_runtimelinking" = yes; then |
10312 |
|
# Warning - without using the other runtime loading flags (-brtl), |
10313 |
|
# -berok will link without error, but may produce a broken library. |
10314 |
|
allow_undefined_flag_CXX='-berok' |
10315 |
|
# Determine the default libpath from the value encoded in an empty executable. |
10316 |
|
cat >conftest.$ac_ext <<_ACEOF |
10317 |
|
/* confdefs.h. */ |
10318 |
|
_ACEOF |
10319 |
|
cat confdefs.h >>conftest.$ac_ext |
10320 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10321 |
|
/* end confdefs.h. */ |
10322 |
|
|
10323 |
|
int |
10324 |
|
main () |
10325 |
|
{ |
10326 |
|
|
10327 |
|
; |
10328 |
|
return 0; |
10329 |
|
} |
10330 |
|
_ACEOF |
10331 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10332 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10333 |
|
(eval $ac_link) 2>conftest.er1 |
10334 |
|
ac_status=$? |
10335 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10336 |
|
rm -f conftest.er1 |
10337 |
|
cat conftest.err >&5 |
10338 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10339 |
|
(exit $ac_status); } && |
10340 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
10341 |
|
|| test ! -s conftest.err' |
10342 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10343 |
|
(eval $ac_try) 2>&5 |
10344 |
|
ac_status=$? |
10345 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10346 |
|
(exit $ac_status); }; } && |
10347 |
|
{ ac_try='test -s conftest$ac_exeext' |
10348 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10349 |
|
(eval $ac_try) 2>&5 |
10350 |
|
ac_status=$? |
10351 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10352 |
|
(exit $ac_status); }; }; then |
10353 |
|
|
10354 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10355 |
|
}'` |
10356 |
|
# Check for a 64-bit object if we didn't find anything. |
10357 |
|
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; } |
10358 |
|
}'`; fi |
10359 |
|
else |
10360 |
|
echo "$as_me: failed program was:" >&5 |
10361 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10362 |
|
|
10363 |
|
fi |
10364 |
|
rm -f conftest.err conftest.$ac_objext \ |
10365 |
|
conftest$ac_exeext conftest.$ac_ext |
10366 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10367 |
|
|
10368 |
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10369 |
|
|
10370 |
|
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" |
10371 |
|
else |
10372 |
|
if test "$host_cpu" = ia64; then |
10373 |
|
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10374 |
|
allow_undefined_flag_CXX="-z nodefs" |
10375 |
|
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" |
10376 |
|
else |
10377 |
|
# Determine the default libpath from the value encoded in an empty executable. |
10378 |
|
cat >conftest.$ac_ext <<_ACEOF |
10379 |
|
/* confdefs.h. */ |
10380 |
|
_ACEOF |
10381 |
|
cat confdefs.h >>conftest.$ac_ext |
10382 |
|
cat >>conftest.$ac_ext <<_ACEOF |
10383 |
|
/* end confdefs.h. */ |
10384 |
|
|
10385 |
|
int |
10386 |
|
main () |
10387 |
|
{ |
10388 |
|
|
10389 |
|
; |
10390 |
|
return 0; |
10391 |
|
} |
10392 |
|
_ACEOF |
10393 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
10394 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10395 |
|
(eval $ac_link) 2>conftest.er1 |
10396 |
|
ac_status=$? |
10397 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
10398 |
|
rm -f conftest.er1 |
10399 |
|
cat conftest.err >&5 |
10400 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10401 |
|
(exit $ac_status); } && |
10402 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
10403 |
|
|| test ! -s conftest.err' |
10404 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10405 |
|
(eval $ac_try) 2>&5 |
10406 |
|
ac_status=$? |
10407 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10408 |
|
(exit $ac_status); }; } && |
10409 |
|
{ ac_try='test -s conftest$ac_exeext' |
10410 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10411 |
|
(eval $ac_try) 2>&5 |
10412 |
|
ac_status=$? |
10413 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10414 |
|
(exit $ac_status); }; }; then |
10415 |
|
|
10416 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
10417 |
|
}'` |
10418 |
|
# Check for a 64-bit object if we didn't find anything. |
10419 |
|
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; } |
10420 |
|
}'`; fi |
10421 |
|
else |
10422 |
|
echo "$as_me: failed program was:" >&5 |
10423 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
10424 |
|
|
10425 |
|
fi |
10426 |
|
rm -f conftest.err conftest.$ac_objext \ |
10427 |
|
conftest$ac_exeext conftest.$ac_ext |
10428 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10429 |
|
|
10430 |
|
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10431 |
|
# Warning - without using the other run time loading flags, |
10432 |
|
# -berok will link without error, but may produce a broken library. |
10433 |
|
no_undefined_flag_CXX=' ${wl}-bernotok' |
10434 |
|
allow_undefined_flag_CXX=' ${wl}-berok' |
10435 |
|
# -bexpall does not export symbols beginning with underscore (_) |
10436 |
|
always_export_symbols_CXX=yes |
10437 |
|
# Exported symbols can be pulled into shared objects from archives |
10438 |
|
whole_archive_flag_spec_CXX=' ' |
10439 |
|
archive_cmds_need_lc_CXX=yes |
10440 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
10441 |
|
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' |
10442 |
|
fi |
10443 |
|
fi |
10444 |
|
;; |
10445 |
|
chorus*) |
10446 |
|
case $cc_basename in |
10447 |
|
*) |
10448 |
|
# FIXME: insert proper C++ library support |
10449 |
|
ld_shlibs_CXX=no |
10450 |
|
;; |
10451 |
|
esac |
10452 |
|
;; |
10453 |
|
|
10454 |
|
|
10455 |
|
cygwin* | mingw* | pw32*) |
10456 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10457 |
|
# as there is no search path for DLLs. |
10458 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10459 |
|
allow_undefined_flag_CXX=unsupported |
10460 |
|
always_export_symbols_CXX=no |
10461 |
|
enable_shared_with_static_runtimes_CXX=yes |
10462 |
|
|
10463 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10464 |
|
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' |
10465 |
|
# If the export-symbols file already is a .def file (1st line |
10466 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
10467 |
|
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
10468 |
|
cp $export_symbols $output_objdir/$soname.def; |
10469 |
|
else |
10470 |
|
echo EXPORTS > $output_objdir/$soname.def; |
10471 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
10472 |
|
fi~ |
10473 |
|
$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' |
10474 |
|
else |
10475 |
|
ld_shlibs_CXX=no |
10476 |
|
fi |
10477 |
|
;; |
10478 |
|
darwin* | rhapsody*) |
10479 |
|
case "$host_os" in |
10480 |
|
rhapsody* | darwin1.[012]) |
10481 |
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
10482 |
|
;; |
10483 |
|
*) # Darwin 1.3 on |
10484 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
10485 |
|
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10486 |
|
else |
10487 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
10488 |
|
10.[012]) |
10489 |
|
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
10490 |
|
;; |
10491 |
|
10.*) |
10492 |
|
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
10493 |
|
;; |
10494 |
|
esac |
10495 |
|
fi |
10496 |
|
;; |
10497 |
|
esac |
10498 |
|
archive_cmds_need_lc_CXX=no |
10499 |
|
hardcode_direct_CXX=no |
10500 |
|
hardcode_automatic_CXX=yes |
10501 |
|
hardcode_shlibpath_var_CXX=unsupported |
10502 |
|
whole_archive_flag_spec_CXX='' |
10503 |
|
link_all_deplibs_CXX=yes |
10504 |
|
|
10505 |
|
if test "$GXX" = yes ; then |
10506 |
|
lt_int_apple_cc_single_mod=no |
10507 |
|
output_verbose_link_cmd='echo' |
10508 |
|
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
10509 |
|
lt_int_apple_cc_single_mod=yes |
10510 |
|
fi |
10511 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10512 |
|
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10513 |
|
else |
10514 |
|
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10515 |
|
fi |
10516 |
|
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10517 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
10518 |
|
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10519 |
|
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}' |
10520 |
|
else |
10521 |
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10522 |
|
fi |
10523 |
|
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}' |
10524 |
|
else |
10525 |
|
case $cc_basename in |
10526 |
|
xlc*) |
10527 |
|
output_verbose_link_cmd='echo' |
10528 |
|
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
10529 |
|
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
10530 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
10531 |
|
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10532 |
|
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}' |
10533 |
|
;; |
10534 |
|
*) |
10535 |
|
ld_shlibs_CXX=no |
10536 |
|
;; |
10537 |
|
esac |
10538 |
|
fi |
10539 |
|
;; |
10540 |
|
|
10541 |
|
dgux*) |
10542 |
|
case $cc_basename in |
10543 |
|
ec++*) |
10544 |
|
# FIXME: insert proper C++ library support |
10545 |
|
ld_shlibs_CXX=no |
10546 |
|
;; |
10547 |
|
ghcx*) |
10548 |
|
# Green Hills C++ Compiler |
10549 |
|
# FIXME: insert proper C++ library support |
10550 |
|
ld_shlibs_CXX=no |
10551 |
|
;; |
10552 |
|
*) |
10553 |
|
# FIXME: insert proper C++ library support |
10554 |
|
ld_shlibs_CXX=no |
10555 |
|
;; |
10556 |
|
esac |
10557 |
|
;; |
10558 |
|
freebsd[12]*) |
10559 |
|
# C++ shared libraries reported to be fairly broken before switch to ELF |
10560 |
|
ld_shlibs_CXX=no |
10561 |
|
;; |
10562 |
|
freebsd-elf*) |
10563 |
|
archive_cmds_need_lc_CXX=no |
10564 |
|
;; |
10565 |
|
freebsd* | kfreebsd*-gnu | dragonfly*) |
10566 |
|
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10567 |
|
# conventions |
10568 |
|
ld_shlibs_CXX=yes |
10569 |
|
;; |
10570 |
|
gnu*) |
10571 |
|
;; |
10572 |
|
hpux9*) |
10573 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10574 |
|
hardcode_libdir_separator_CXX=: |
10575 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
10576 |
|
hardcode_direct_CXX=yes |
10577 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10578 |
|
# but as the default |
10579 |
|
# location of the library. |
10580 |
|
|
10581 |
|
case $cc_basename in |
10582 |
|
CC*) |
10583 |
|
# FIXME: insert proper C++ library support |
10584 |
|
ld_shlibs_CXX=no |
10585 |
|
;; |
10586 |
|
aCC*) |
10587 |
|
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' |
10588 |
|
# Commands to make compiler produce verbose output that lists |
10589 |
|
# what "hidden" libraries, object files and flags are used when |
10590 |
|
# linking a shared library. |
10591 |
|
# |
10592 |
|
# There doesn't appear to be a way to prevent this compiler from |
10593 |
|
# explicitly linking system object files so we need to strip them |
10594 |
|
# from the output so that they don't get included in the library |
10595 |
|
# dependencies. |
10596 |
|
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' |
10597 |
|
;; |
10598 |
|
*) |
10599 |
|
if test "$GXX" = yes; then |
10600 |
|
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' |
10601 |
|
else |
10602 |
|
# FIXME: insert proper C++ library support |
10603 |
|
ld_shlibs_CXX=no |
10604 |
|
fi |
10605 |
|
;; |
10606 |
|
esac |
10607 |
|
;; |
10608 |
|
hpux10*|hpux11*) |
10609 |
|
if test $with_gnu_ld = no; then |
10610 |
|
case "$host_cpu" in |
10611 |
|
hppa*64*) |
10612 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10613 |
|
hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10614 |
|
hardcode_libdir_separator_CXX=: |
10615 |
|
;; |
10616 |
|
ia64*) |
10617 |
|
hardcode_libdir_flag_spec_CXX='-L$libdir' |
10618 |
|
;; |
10619 |
|
*) |
10620 |
|
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10621 |
|
hardcode_libdir_separator_CXX=: |
10622 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
10623 |
|
;; |
10624 |
|
esac |
10625 |
|
fi |
10626 |
|
case "$host_cpu" in |
10627 |
|
hppa*64*) |
10628 |
|
hardcode_direct_CXX=no |
10629 |
|
hardcode_shlibpath_var_CXX=no |
10630 |
|
;; |
10631 |
|
ia64*) |
10632 |
|
hardcode_direct_CXX=no |
10633 |
|
hardcode_shlibpath_var_CXX=no |
10634 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10635 |
|
# but as the default |
10636 |
|
# location of the library. |
10637 |
|
;; |
10638 |
|
*) |
10639 |
|
hardcode_direct_CXX=yes |
10640 |
|
hardcode_minus_L_CXX=yes # Not in the search PATH, |
10641 |
|
# but as the default |
10642 |
|
# location of the library. |
10643 |
|
;; |
10644 |
|
esac |
10645 |
|
|
10646 |
|
case $cc_basename in |
10647 |
|
CC*) |
10648 |
|
# FIXME: insert proper C++ library support |
10649 |
|
ld_shlibs_CXX=no |
10650 |
|
;; |
10651 |
|
aCC*) |
10652 |
|
case "$host_cpu" in |
10653 |
|
hppa*64*|ia64*) |
10654 |
|
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
10655 |
|
;; |
10656 |
|
*) |
10657 |
|
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
10658 |
|
;; |
10659 |
|
esac |
10660 |
|
# Commands to make compiler produce verbose output that lists |
10661 |
|
# what "hidden" libraries, object files and flags are used when |
10662 |
|
# linking a shared library. |
10663 |
|
# |
10664 |
|
# There doesn't appear to be a way to prevent this compiler from |
10665 |
|
# explicitly linking system object files so we need to strip them |
10666 |
|
# from the output so that they don't get included in the library |
10667 |
|
# dependencies. |
10668 |
|
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' |
10669 |
|
;; |
10670 |
|
*) |
10671 |
|
if test "$GXX" = yes; then |
10672 |
|
if test $with_gnu_ld = no; then |
10673 |
|
case "$host_cpu" in |
10674 |
|
ia64*|hppa*64*) |
10675 |
|
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
10676 |
|
;; |
10677 |
|
*) |
10678 |
|
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' |
10679 |
|
;; |
10680 |
|
esac |
10681 |
|
fi |
10682 |
|
else |
10683 |
|
# FIXME: insert proper C++ library support |
10684 |
|
ld_shlibs_CXX=no |
10685 |
|
fi |
10686 |
|
;; |
10687 |
|
esac |
10688 |
|
;; |
10689 |
|
irix5* | irix6*) |
10690 |
|
case $cc_basename in |
10691 |
|
CC*) |
10692 |
|
# SGI C++ |
10693 |
|
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 ${output_objdir}/so_locations -o $lib' |
10694 |
|
|
10695 |
|
# Archives containing C++ object files must be created using |
10696 |
|
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
10697 |
|
# necessary to make sure instantiated templates are included |
10698 |
|
# in the archive. |
10699 |
|
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
10700 |
|
;; |
10701 |
|
*) |
10702 |
|
if test "$GXX" = yes; then |
10703 |
|
if test "$with_gnu_ld" = no; then |
10704 |
|
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}${output_objdir}/so_locations -o $lib' |
10705 |
|
else |
10706 |
|
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' |
10707 |
|
fi |
10708 |
|
fi |
10709 |
|
link_all_deplibs_CXX=yes |
10710 |
|
;; |
10711 |
|
esac |
10712 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10713 |
|
hardcode_libdir_separator_CXX=: |
10714 |
|
;; |
10715 |
|
linux*) |
10716 |
|
case $cc_basename in |
10717 |
|
KCC*) |
10718 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10719 |
|
|
10720 |
|
# KCC will only create a shared library if the output file |
10721 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10722 |
|
# to its proper name (with version) after linking. |
10723 |
|
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' |
10724 |
|
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' |
10725 |
|
# Commands to make compiler produce verbose output that lists |
10726 |
|
# what "hidden" libraries, object files and flags are used when |
10727 |
|
# linking a shared library. |
10728 |
|
# |
10729 |
|
# There doesn't appear to be a way to prevent this compiler from |
10730 |
|
# explicitly linking system object files so we need to strip them |
10731 |
|
# from the output so that they don't get included in the library |
10732 |
|
# dependencies. |
10733 |
|
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' |
10734 |
|
|
10735 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
10736 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10737 |
|
|
10738 |
|
# Archives containing C++ object files must be created using |
10739 |
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10740 |
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10741 |
|
;; |
10742 |
|
icpc*) |
10743 |
|
# Intel C++ |
10744 |
|
with_gnu_ld=yes |
10745 |
|
# version 8.0 and above of icpc choke on multiply defined symbols |
10746 |
|
# if we add $predep_objects and $postdep_objects, however 7.1 and |
10747 |
|
# earlier do not add the objects themselves. |
10748 |
|
case `$CC -V 2>&1` in |
10749 |
|
*"Version 7."*) |
10750 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10751 |
|
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' |
10752 |
|
;; |
10753 |
|
*) # Version 8.0 or newer |
10754 |
|
tmp_idyn= |
10755 |
|
case $host_cpu in |
10756 |
|
ia64*) tmp_idyn=' -i_dynamic';; |
10757 |
|
esac |
10758 |
|
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10759 |
|
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
10760 |
|
;; |
10761 |
|
esac |
10762 |
|
archive_cmds_need_lc_CXX=no |
10763 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10764 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10765 |
|
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
10766 |
|
;; |
10767 |
|
pgCC*) |
10768 |
|
# Portland Group C++ compiler |
10769 |
|
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
10770 |
|
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
10771 |
|
|
10772 |
|
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10773 |
|
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10774 |
|
whole_archive_flag_spec_CXX='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
10775 |
|
;; |
10776 |
|
cxx*) |
10777 |
|
# Compaq C++ |
10778 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10779 |
|
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' |
10780 |
|
|
10781 |
|
runpath_var=LD_RUN_PATH |
10782 |
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10783 |
|
hardcode_libdir_separator_CXX=: |
10784 |
|
|
10785 |
|
# Commands to make compiler produce verbose output that lists |
10786 |
|
# what "hidden" libraries, object files and flags are used when |
10787 |
|
# linking a shared library. |
10788 |
|
# |
10789 |
|
# There doesn't appear to be a way to prevent this compiler from |
10790 |
|
# explicitly linking system object files so we need to strip them |
10791 |
|
# from the output so that they don't get included in the library |
10792 |
|
# dependencies. |
10793 |
|
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' |
10794 |
|
;; |
10795 |
|
esac |
10796 |
|
;; |
10797 |
|
lynxos*) |
10798 |
|
# FIXME: insert proper C++ library support |
10799 |
|
ld_shlibs_CXX=no |
10800 |
|
;; |
10801 |
|
m88k*) |
10802 |
|
# FIXME: insert proper C++ library support |
10803 |
|
ld_shlibs_CXX=no |
10804 |
|
;; |
10805 |
|
mvs*) |
10806 |
|
case $cc_basename in |
10807 |
|
cxx*) |
10808 |
|
# FIXME: insert proper C++ library support |
10809 |
|
ld_shlibs_CXX=no |
10810 |
|
;; |
10811 |
|
*) |
10812 |
|
# FIXME: insert proper C++ library support |
10813 |
|
ld_shlibs_CXX=no |
10814 |
|
;; |
10815 |
|
esac |
10816 |
|
;; |
10817 |
|
netbsd*) |
10818 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
10819 |
|
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
10820 |
|
wlarc= |
10821 |
|
hardcode_libdir_flag_spec_CXX='-R$libdir' |
10822 |
|
hardcode_direct_CXX=yes |
10823 |
|
hardcode_shlibpath_var_CXX=no |
10824 |
|
fi |
10825 |
|
# Workaround some broken pre-1.5 toolchains |
10826 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
10827 |
|
;; |
10828 |
|
openbsd2*) |
10829 |
|
# C++ shared libraries are fairly broken |
10830 |
|
ld_shlibs_CXX=no |
10831 |
|
;; |
10832 |
|
openbsd*) |
10833 |
|
hardcode_direct_CXX=yes |
10834 |
|
hardcode_shlibpath_var_CXX=no |
10835 |
|
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10836 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10837 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
10838 |
|
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
10839 |
|
export_dynamic_flag_spec_CXX='${wl}-E' |
10840 |
|
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10841 |
|
fi |
10842 |
|
output_verbose_link_cmd='echo' |
10843 |
|
;; |
10844 |
|
osf3*) |
10845 |
|
case $cc_basename in |
10846 |
|
KCC*) |
10847 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10848 |
|
|
10849 |
|
# KCC will only create a shared library if the output file |
10850 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10851 |
|
# to its proper name (with version) after linking. |
10852 |
|
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' |
10853 |
|
|
10854 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10855 |
|
hardcode_libdir_separator_CXX=: |
10856 |
|
|
10857 |
|
# Archives containing C++ object files must be created using |
10858 |
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
10859 |
|
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
10860 |
|
|
10861 |
|
;; |
10862 |
|
RCC*) |
10863 |
|
# Rational C++ 2.4.1 |
10864 |
|
# FIXME: insert proper C++ library support |
10865 |
|
ld_shlibs_CXX=no |
10866 |
|
;; |
10867 |
|
cxx*) |
10868 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10869 |
|
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 ${output_objdir}/so_locations -o $lib' |
10870 |
|
|
10871 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10872 |
|
hardcode_libdir_separator_CXX=: |
10873 |
|
|
10874 |
|
# Commands to make compiler produce verbose output that lists |
10875 |
|
# what "hidden" libraries, object files and flags are used when |
10876 |
|
# linking a shared library. |
10877 |
|
# |
10878 |
|
# There doesn't appear to be a way to prevent this compiler from |
10879 |
|
# explicitly linking system object files so we need to strip them |
10880 |
|
# from the output so that they don't get included in the library |
10881 |
|
# dependencies. |
10882 |
|
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' |
10883 |
|
;; |
10884 |
|
*) |
10885 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10886 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10887 |
|
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}${output_objdir}/so_locations -o $lib' |
10888 |
|
|
10889 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10890 |
|
hardcode_libdir_separator_CXX=: |
10891 |
|
|
10892 |
|
# Commands to make compiler produce verbose output that lists |
10893 |
|
# what "hidden" libraries, object files and flags are used when |
10894 |
|
# linking a shared library. |
10895 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10896 |
|
|
10897 |
|
else |
10898 |
|
# FIXME: insert proper C++ library support |
10899 |
|
ld_shlibs_CXX=no |
10900 |
|
fi |
10901 |
|
;; |
10902 |
|
esac |
10903 |
|
;; |
10904 |
|
osf4* | osf5*) |
10905 |
|
case $cc_basename in |
10906 |
|
KCC*) |
10907 |
|
# Kuck and Associates, Inc. (KAI) C++ Compiler |
10908 |
|
|
10909 |
|
# KCC will only create a shared library if the output file |
10910 |
|
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
10911 |
|
# to its proper name (with version) after linking. |
10912 |
|
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' |
10913 |
|
|
10914 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
10915 |
|
hardcode_libdir_separator_CXX=: |
10916 |
|
|
10917 |
|
# Archives containing C++ object files must be created using |
10918 |
|
# the KAI C++ compiler. |
10919 |
|
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
10920 |
|
;; |
10921 |
|
RCC*) |
10922 |
|
# Rational C++ 2.4.1 |
10923 |
|
# FIXME: insert proper C++ library support |
10924 |
|
ld_shlibs_CXX=no |
10925 |
|
;; |
10926 |
|
cxx*) |
10927 |
|
allow_undefined_flag_CXX=' -expect_unresolved \*' |
10928 |
|
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 ${output_objdir}/so_locations -o $lib' |
10929 |
|
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
10930 |
|
echo "-hidden">> $lib.exp~ |
10931 |
|
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
10932 |
|
$rm $lib.exp' |
10933 |
|
|
10934 |
|
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
10935 |
|
hardcode_libdir_separator_CXX=: |
10936 |
|
|
10937 |
|
# Commands to make compiler produce verbose output that lists |
10938 |
|
# what "hidden" libraries, object files and flags are used when |
10939 |
|
# linking a shared library. |
10940 |
|
# |
10941 |
|
# There doesn't appear to be a way to prevent this compiler from |
10942 |
|
# explicitly linking system object files so we need to strip them |
10943 |
|
# from the output so that they don't get included in the library |
10944 |
|
# dependencies. |
10945 |
|
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' |
10946 |
|
;; |
10947 |
|
*) |
10948 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
10949 |
|
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
10950 |
|
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}${output_objdir}/so_locations -o $lib' |
10951 |
|
|
10952 |
|
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
10953 |
|
hardcode_libdir_separator_CXX=: |
10954 |
|
|
10955 |
|
# Commands to make compiler produce verbose output that lists |
10956 |
|
# what "hidden" libraries, object files and flags are used when |
10957 |
|
# linking a shared library. |
10958 |
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10959 |
|
|
10960 |
|
else |
10961 |
|
# FIXME: insert proper C++ library support |
10962 |
|
ld_shlibs_CXX=no |
10963 |
|
fi |
10964 |
|
;; |
10965 |
|
esac |
10966 |
|
;; |
10967 |
|
psos*) |
10968 |
|
# FIXME: insert proper C++ library support |
10969 |
|
ld_shlibs_CXX=no |
10970 |
|
;; |
10971 |
|
sco*) |
10972 |
|
archive_cmds_need_lc_CXX=no |
10973 |
|
case $cc_basename in |
10974 |
|
CC*) |
10975 |
|
# FIXME: insert proper C++ library support |
10976 |
|
ld_shlibs_CXX=no |
10977 |
|
;; |
10978 |
|
*) |
10979 |
|
# FIXME: insert proper C++ library support |
10980 |
|
ld_shlibs_CXX=no |
10981 |
|
;; |
10982 |
|
esac |
10983 |
|
;; |
10984 |
|
sunos4*) |
10985 |
|
case $cc_basename in |
10986 |
|
CC*) |
10987 |
|
# Sun C++ 4.x |
10988 |
|
# FIXME: insert proper C++ library support |
10989 |
|
ld_shlibs_CXX=no |
10990 |
|
;; |
10991 |
|
lcc*) |
10992 |
|
# Lucid |
10993 |
|
# FIXME: insert proper C++ library support |
10994 |
|
ld_shlibs_CXX=no |
10995 |
|
;; |
10996 |
|
*) |
10997 |
|
# FIXME: insert proper C++ library support |
10998 |
|
ld_shlibs_CXX=no |
10999 |
|
;; |
11000 |
|
esac |
11001 |
|
;; |
11002 |
|
solaris*) |
11003 |
|
case $cc_basename in |
11004 |
|
CC*) |
11005 |
|
# Sun C++ 4.2, 5.x and Centerline C++ |
11006 |
|
no_undefined_flag_CXX=' -zdefs' |
11007 |
|
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11008 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11009 |
|
$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' |
11010 |
|
|
11011 |
|
hardcode_libdir_flag_spec_CXX='-R$libdir' |
11012 |
|
hardcode_shlibpath_var_CXX=no |
11013 |
|
case $host_os in |
11014 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
11015 |
|
*) |
11016 |
|
# The C++ compiler is used as linker so we must use $wl |
11017 |
|
# flag to pass the commands to the underlying system |
11018 |
|
# linker. We must also pass each convience library through |
11019 |
|
# to the system linker between allextract/defaultextract. |
11020 |
|
# The C++ compiler will combine linker options so we |
11021 |
|
# cannot just pass the convience library names through |
11022 |
|
# without $wl. |
11023 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
11024 |
|
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
11025 |
|
;; |
11026 |
|
esac |
11027 |
|
link_all_deplibs_CXX=yes |
11028 |
|
|
11029 |
|
# Commands to make compiler produce verbose output that lists |
11030 |
|
# what "hidden" libraries, object files and flags are used when |
11031 |
|
# linking a shared library. |
11032 |
|
# |
11033 |
|
# There doesn't appear to be a way to prevent this compiler from |
11034 |
|
# explicitly linking system object files so we need to strip them |
11035 |
|
# from the output so that they don't get included in the library |
11036 |
|
# dependencies. |
11037 |
|
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' |
11038 |
|
|
11039 |
|
# Archives containing C++ object files must be created using |
11040 |
|
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
11041 |
|
# necessary to make sure instantiated templates are included |
11042 |
|
# in the archive. |
11043 |
|
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11044 |
|
;; |
11045 |
|
gcx*) |
11046 |
|
# Green Hills C++ Compiler |
11047 |
|
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11048 |
|
|
11049 |
|
# The C++ compiler must be used to create the archive. |
11050 |
|
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11051 |
|
;; |
11052 |
|
*) |
11053 |
|
# GNU C++ compiler with Solaris linker |
11054 |
|
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11055 |
|
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11056 |
|
if $CC --version | grep -v '^2\.7' > /dev/null; then |
11057 |
|
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11058 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11059 |
|
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11060 |
|
|
11061 |
|
# Commands to make compiler produce verbose output that lists |
11062 |
|
# what "hidden" libraries, object files and flags are used when |
11063 |
|
# linking a shared library. |
11064 |
|
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11065 |
|
else |
11066 |
|
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
11067 |
|
# platform. |
11068 |
|
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11069 |
|
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11070 |
|
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11071 |
|
|
11072 |
|
# Commands to make compiler produce verbose output that lists |
11073 |
|
# what "hidden" libraries, object files and flags are used when |
11074 |
|
# linking a shared library. |
11075 |
|
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11076 |
|
fi |
11077 |
|
|
11078 |
|
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11079 |
|
fi |
11080 |
|
;; |
11081 |
|
esac |
11082 |
|
;; |
11083 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
11084 |
|
archive_cmds_need_lc_CXX=no |
11085 |
|
;; |
11086 |
|
tandem*) |
11087 |
|
case $cc_basename in |
11088 |
|
NCC*) |
11089 |
|
# NonStop-UX NCC 3.20 |
11090 |
|
# FIXME: insert proper C++ library support |
11091 |
|
ld_shlibs_CXX=no |
11092 |
|
;; |
11093 |
|
*) |
11094 |
|
# FIXME: insert proper C++ library support |
11095 |
|
ld_shlibs_CXX=no |
11096 |
|
;; |
11097 |
|
esac |
11098 |
|
;; |
11099 |
|
vxworks*) |
11100 |
|
# FIXME: insert proper C++ library support |
11101 |
|
ld_shlibs_CXX=no |
11102 |
|
;; |
11103 |
|
*) |
11104 |
|
# FIXME: insert proper C++ library support |
11105 |
|
ld_shlibs_CXX=no |
11106 |
|
;; |
11107 |
|
esac |
11108 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11109 |
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11110 |
|
test "$ld_shlibs_CXX" = no && can_build_shared=no |
11111 |
|
|
11112 |
|
GCC_CXX="$GXX" |
11113 |
|
LD_CXX="$LD" |
11114 |
|
|
11115 |
|
|
11116 |
|
cat > conftest.$ac_ext <<EOF |
11117 |
|
class Foo |
11118 |
|
{ |
11119 |
|
public: |
11120 |
|
Foo (void) { a = 0; } |
11121 |
|
private: |
11122 |
|
int a; |
11123 |
|
}; |
11124 |
|
EOF |
11125 |
|
|
11126 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11127 |
|
(eval $ac_compile) 2>&5 |
11128 |
|
ac_status=$? |
11129 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11130 |
|
(exit $ac_status); }; then |
11131 |
|
# Parse the compiler output and extract the necessary |
11132 |
|
# objects, libraries and library flags. |
11133 |
|
|
11134 |
|
# Sentinel used to keep track of whether or not we are before |
11135 |
|
# the conftest object file. |
11136 |
|
pre_test_object_deps_done=no |
11137 |
|
|
11138 |
|
# The `*' in the case matches for architectures that use `case' in |
11139 |
|
# $output_verbose_cmd can trigger glob expansion during the loop |
11140 |
|
# eval without this substitution. |
11141 |
|
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
11142 |
|
|
11143 |
|
for p in `eval $output_verbose_link_cmd`; do |
11144 |
|
case $p in |
11145 |
|
|
11146 |
|
-L* | -R* | -l*) |
11147 |
|
# Some compilers place space between "-{L,R}" and the path. |
11148 |
|
# Remove the space. |
11149 |
|
if test $p = "-L" \ |
11150 |
|
|| test $p = "-R"; then |
11151 |
|
prev=$p |
11152 |
|
continue |
11153 |
|
else |
11154 |
|
prev= |
11155 |
|
fi |
11156 |
|
|
11157 |
|
if test "$pre_test_object_deps_done" = no; then |
11158 |
|
case $p in |
11159 |
|
-L* | -R*) |
11160 |
|
# Internal compiler library paths should come after those |
11161 |
|
# provided the user. The postdeps already come after the |
11162 |
|
# user supplied libs so there is no need to process them. |
11163 |
|
if test -z "$compiler_lib_search_path_CXX"; then |
11164 |
|
compiler_lib_search_path_CXX="${prev}${p}" |
11165 |
|
else |
11166 |
|
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11167 |
|
fi |
11168 |
|
;; |
11169 |
|
# The "-l" case would never come before the object being |
11170 |
|
# linked, so don't bother handling this case. |
11171 |
|
esac |
11172 |
|
else |
11173 |
|
if test -z "$postdeps_CXX"; then |
11174 |
|
postdeps_CXX="${prev}${p}" |
11175 |
|
else |
11176 |
|
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11177 |
|
fi |
11178 |
|
fi |
11179 |
|
;; |
11180 |
|
|
11181 |
|
*.$objext) |
11182 |
|
# This assumes that the test object file only shows up |
11183 |
|
# once in the compiler output. |
11184 |
|
if test "$p" = "conftest.$objext"; then |
11185 |
|
pre_test_object_deps_done=yes |
11186 |
|
continue |
11187 |
|
fi |
11188 |
|
|
11189 |
|
if test "$pre_test_object_deps_done" = no; then |
11190 |
|
if test -z "$predep_objects_CXX"; then |
11191 |
|
predep_objects_CXX="$p" |
11192 |
|
else |
11193 |
|
predep_objects_CXX="$predep_objects_CXX $p" |
11194 |
|
fi |
11195 |
|
else |
11196 |
|
if test -z "$postdep_objects_CXX"; then |
11197 |
|
postdep_objects_CXX="$p" |
11198 |
|
else |
11199 |
|
postdep_objects_CXX="$postdep_objects_CXX $p" |
11200 |
|
fi |
11201 |
|
fi |
11202 |
|
;; |
11203 |
|
|
11204 |
|
*) ;; # Ignore the rest. |
11205 |
|
|
11206 |
|
esac |
11207 |
|
done |
11208 |
|
|
11209 |
|
# Clean up. |
11210 |
|
rm -f a.out a.exe |
11211 |
|
else |
11212 |
|
echo "libtool.m4: error: problem compiling CXX test program" |
11213 |
|
fi |
11214 |
|
|
11215 |
|
$rm -f confest.$objext |
11216 |
|
|
11217 |
|
case " $postdeps_CXX " in |
11218 |
|
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11219 |
|
esac |
11220 |
|
|
11221 |
|
lt_prog_compiler_wl_CXX= |
11222 |
|
lt_prog_compiler_pic_CXX= |
11223 |
|
lt_prog_compiler_static_CXX= |
11224 |
|
|
11225 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11226 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
11227 |
|
|
11228 |
|
# C++ specific cases for pic, static, wl, etc. |
11229 |
|
if test "$GXX" = yes; then |
11230 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11231 |
|
lt_prog_compiler_static_CXX='-static' |
11232 |
|
|
11233 |
|
case $host_os in |
11234 |
|
aix*) |
11235 |
|
# All AIX code is PIC. |
11236 |
|
if test "$host_cpu" = ia64; then |
11237 |
|
# AIX 5 now supports IA64 processor |
11238 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11239 |
|
fi |
11240 |
|
;; |
11241 |
|
amigaos*) |
11242 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
11243 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
11244 |
|
# like `-m68040'. |
11245 |
|
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
11246 |
|
;; |
11247 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
11248 |
|
# PIC is the default for these OSes. |
11249 |
|
;; |
11250 |
|
mingw* | os2* | pw32*) |
11251 |
|
# This hack is so that the source file can tell whether it is being |
11252 |
|
# built for inclusion in a dll (and should export symbols for example). |
11253 |
|
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
11254 |
|
;; |
11255 |
|
darwin* | rhapsody*) |
11256 |
|
# PIC is the default on this platform |
11257 |
|
# Common symbols not allowed in MH_DYLIB files |
11258 |
|
lt_prog_compiler_pic_CXX='-fno-common' |
11259 |
|
;; |
11260 |
|
*djgpp*) |
11261 |
|
# DJGPP does not support shared libraries at all |
11262 |
|
lt_prog_compiler_pic_CXX= |
11263 |
|
;; |
11264 |
|
sysv4*MP*) |
11265 |
|
if test -d /usr/nec; then |
11266 |
|
lt_prog_compiler_pic_CXX=-Kconform_pic |
11267 |
|
fi |
11268 |
|
;; |
11269 |
|
hpux*) |
11270 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
11271 |
|
# not for PA HP-UX. |
11272 |
|
case "$host_cpu" in |
11273 |
|
hppa*64*|ia64*) |
11274 |
|
;; |
11275 |
|
*) |
11276 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11277 |
|
;; |
11278 |
|
esac |
11279 |
|
;; |
11280 |
|
*) |
11281 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11282 |
|
;; |
11283 |
|
esac |
11284 |
|
else |
11285 |
|
case $host_os in |
11286 |
|
aix4* | aix5*) |
11287 |
|
# All AIX code is PIC. |
11288 |
|
if test "$host_cpu" = ia64; then |
11289 |
|
# AIX 5 now supports IA64 processor |
11290 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11291 |
|
else |
11292 |
|
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
11293 |
|
fi |
11294 |
|
;; |
11295 |
|
chorus*) |
11296 |
|
case $cc_basename in |
11297 |
|
cxch68*) |
11298 |
|
# Green Hills C++ Compiler |
11299 |
|
# _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" |
11300 |
|
;; |
11301 |
|
esac |
11302 |
|
;; |
11303 |
|
darwin*) |
11304 |
|
# PIC is the default on this platform |
11305 |
|
# Common symbols not allowed in MH_DYLIB files |
11306 |
|
case $cc_basename in |
11307 |
|
xlc*) |
11308 |
|
lt_prog_compiler_pic_CXX='-qnocommon' |
11309 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11310 |
|
;; |
11311 |
|
esac |
11312 |
|
;; |
11313 |
|
dgux*) |
11314 |
|
case $cc_basename in |
11315 |
|
ec++*) |
11316 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11317 |
|
;; |
11318 |
|
ghcx*) |
11319 |
|
# Green Hills C++ Compiler |
11320 |
|
lt_prog_compiler_pic_CXX='-pic' |
11321 |
|
;; |
11322 |
|
*) |
11323 |
|
;; |
11324 |
|
esac |
11325 |
|
;; |
11326 |
|
freebsd* | kfreebsd*-gnu | dragonfly*) |
11327 |
|
# FreeBSD uses GNU C++ |
11328 |
|
;; |
11329 |
|
hpux9* | hpux10* | hpux11*) |
11330 |
|
case $cc_basename in |
11331 |
|
CC*) |
11332 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11333 |
|
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
11334 |
|
if test "$host_cpu" != ia64; then |
11335 |
|
lt_prog_compiler_pic_CXX='+Z' |
11336 |
|
fi |
11337 |
|
;; |
11338 |
|
aCC*) |
11339 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11340 |
|
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
11341 |
|
case "$host_cpu" in |
11342 |
|
hppa*64*|ia64*) |
11343 |
|
# +Z the default |
11344 |
|
;; |
11345 |
|
*) |
11346 |
|
lt_prog_compiler_pic_CXX='+Z' |
11347 |
|
;; |
11348 |
|
esac |
11349 |
|
;; |
11350 |
|
*) |
11351 |
|
;; |
11352 |
|
esac |
11353 |
|
;; |
11354 |
|
irix5* | irix6* | nonstopux*) |
11355 |
|
case $cc_basename in |
11356 |
|
CC*) |
11357 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11358 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11359 |
|
# CC pic flag -KPIC is the default. |
11360 |
|
;; |
11361 |
|
*) |
11362 |
|
;; |
11363 |
|
esac |
11364 |
|
;; |
11365 |
|
linux*) |
11366 |
|
case $cc_basename in |
11367 |
|
KCC*) |
11368 |
|
# KAI C++ Compiler |
11369 |
|
lt_prog_compiler_wl_CXX='--backend -Wl,' |
11370 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11371 |
|
;; |
11372 |
|
icpc* | ecpc*) |
11373 |
|
# Intel C++ |
11374 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11375 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11376 |
|
lt_prog_compiler_static_CXX='-static' |
11377 |
|
;; |
11378 |
|
pgCC*) |
11379 |
|
# Portland Group C++ compiler. |
11380 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11381 |
|
lt_prog_compiler_pic_CXX='-fpic' |
11382 |
|
lt_prog_compiler_static_CXX='-static' |
11383 |
|
;; |
11384 |
|
cxx*) |
11385 |
|
# Compaq C++ |
11386 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
11387 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
11388 |
|
lt_prog_compiler_pic_CXX= |
11389 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11390 |
|
;; |
11391 |
|
*) |
11392 |
|
;; |
11393 |
|
esac |
11394 |
|
;; |
11395 |
|
lynxos*) |
11396 |
|
;; |
11397 |
|
m88k*) |
11398 |
|
;; |
11399 |
|
mvs*) |
11400 |
|
case $cc_basename in |
11401 |
|
cxx*) |
11402 |
|
lt_prog_compiler_pic_CXX='-W c,exportall' |
11403 |
|
;; |
11404 |
|
*) |
11405 |
|
;; |
11406 |
|
esac |
11407 |
|
;; |
11408 |
|
netbsd*) |
11409 |
|
;; |
11410 |
|
osf3* | osf4* | osf5*) |
11411 |
|
case $cc_basename in |
11412 |
|
KCC*) |
11413 |
|
lt_prog_compiler_wl_CXX='--backend -Wl,' |
11414 |
|
;; |
11415 |
|
RCC*) |
11416 |
|
# Rational C++ 2.4.1 |
11417 |
|
lt_prog_compiler_pic_CXX='-pic' |
11418 |
|
;; |
11419 |
|
cxx*) |
11420 |
|
# Digital/Compaq C++ |
11421 |
|
lt_prog_compiler_wl_CXX='-Wl,' |
11422 |
|
# Make sure the PIC flag is empty. It appears that all Alpha |
11423 |
|
# Linux and Compaq Tru64 Unix objects are PIC. |
11424 |
|
lt_prog_compiler_pic_CXX= |
11425 |
|
lt_prog_compiler_static_CXX='-non_shared' |
11426 |
|
;; |
11427 |
|
*) |
11428 |
|
;; |
11429 |
|
esac |
11430 |
|
;; |
11431 |
|
psos*) |
11432 |
|
;; |
11433 |
|
sco*) |
11434 |
|
case $cc_basename in |
11435 |
|
CC*) |
11436 |
|
lt_prog_compiler_pic_CXX='-fPIC' |
11437 |
|
;; |
11438 |
|
*) |
11439 |
|
;; |
11440 |
|
esac |
11441 |
|
;; |
11442 |
|
solaris*) |
11443 |
|
case $cc_basename in |
11444 |
|
CC*) |
11445 |
|
# Sun C++ 4.2, 5.x and Centerline C++ |
11446 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11447 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11448 |
|
lt_prog_compiler_wl_CXX='-Qoption ld ' |
11449 |
|
;; |
11450 |
|
gcx*) |
11451 |
|
# Green Hills C++ Compiler |
11452 |
|
lt_prog_compiler_pic_CXX='-PIC' |
11453 |
|
;; |
11454 |
|
*) |
11455 |
|
;; |
11456 |
|
esac |
11457 |
|
;; |
11458 |
|
sunos4*) |
11459 |
|
case $cc_basename in |
11460 |
|
CC*) |
11461 |
|
# Sun C++ 4.x |
11462 |
|
lt_prog_compiler_pic_CXX='-pic' |
11463 |
|
lt_prog_compiler_static_CXX='-Bstatic' |
11464 |
|
;; |
11465 |
|
lcc*) |
11466 |
|
# Lucid |
11467 |
|
lt_prog_compiler_pic_CXX='-pic' |
11468 |
|
;; |
11469 |
|
*) |
11470 |
|
;; |
11471 |
|
esac |
11472 |
|
;; |
11473 |
|
tandem*) |
11474 |
|
case $cc_basename in |
11475 |
|
NCC*) |
11476 |
|
# NonStop-UX NCC 3.20 |
11477 |
|
lt_prog_compiler_pic_CXX='-KPIC' |
11478 |
|
;; |
11479 |
|
*) |
11480 |
|
;; |
11481 |
|
esac |
11482 |
|
;; |
11483 |
|
unixware*) |
11484 |
|
;; |
11485 |
|
vxworks*) |
11486 |
|
;; |
11487 |
|
*) |
11488 |
|
lt_prog_compiler_can_build_shared_CXX=no |
11489 |
|
;; |
11490 |
|
esac |
11491 |
|
fi |
11492 |
|
|
11493 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
11494 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
11495 |
|
|
11496 |
|
# |
11497 |
|
# Check to make sure the PIC flag actually works. |
11498 |
|
# |
11499 |
|
if test -n "$lt_prog_compiler_pic_CXX"; then |
11500 |
|
|
11501 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
11502 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
11503 |
|
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
11504 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11505 |
|
else |
11506 |
|
lt_prog_compiler_pic_works_CXX=no |
11507 |
|
ac_outfile=conftest.$ac_objext |
11508 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11509 |
|
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
11510 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
11511 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
11512 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
11513 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
11514 |
|
# The option is referenced via a variable to avoid confusing sed. |
11515 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
11516 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
11517 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11518 |
|
-e 's:$: $lt_compiler_flag:'` |
11519 |
|
(eval echo "\"\$as_me:11519: $lt_compile\"" >&5) |
11520 |
|
(eval "$lt_compile" 2>conftest.err) |
11521 |
|
ac_status=$? |
11522 |
|
cat conftest.err >&5 |
11523 |
|
echo "$as_me:11523: \$? = $ac_status" >&5 |
11524 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
11525 |
|
# The compiler can only warn and ignore the option if not recognized |
11526 |
|
# So say no if there are warnings other than the usual output. |
11527 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
11528 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
11529 |
|
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
11530 |
|
lt_prog_compiler_pic_works_CXX=yes |
11531 |
|
fi |
11532 |
|
fi |
11533 |
|
$rm conftest* |
11534 |
|
|
11535 |
|
fi |
11536 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
11537 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
11538 |
|
|
11539 |
|
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
11540 |
|
case $lt_prog_compiler_pic_CXX in |
11541 |
|
"" | " "*) ;; |
11542 |
|
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
11543 |
|
esac |
11544 |
|
else |
11545 |
|
lt_prog_compiler_pic_CXX= |
11546 |
|
lt_prog_compiler_can_build_shared_CXX=no |
11547 |
|
fi |
11548 |
|
|
11549 |
|
fi |
11550 |
|
case "$host_os" in |
11551 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
11552 |
|
*djgpp*) |
11553 |
|
lt_prog_compiler_pic_CXX= |
11554 |
|
;; |
11555 |
|
*) |
11556 |
|
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
11557 |
|
;; |
11558 |
|
esac |
11559 |
|
|
11560 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11561 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11562 |
|
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
11563 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
11564 |
|
else |
11565 |
|
lt_cv_prog_compiler_c_o_CXX=no |
11566 |
|
$rm -r conftest 2>/dev/null |
11567 |
|
mkdir conftest |
11568 |
|
cd conftest |
11569 |
|
mkdir out |
11570 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11571 |
|
|
11572 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
11573 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
11574 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
11575 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
11576 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
11577 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
11578 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
11579 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11580 |
|
-e 's:$: $lt_compiler_flag:'` |
11581 |
|
(eval echo "\"\$as_me:11581: $lt_compile\"" >&5) |
11582 |
|
(eval "$lt_compile" 2>out/conftest.err) |
11583 |
|
ac_status=$? |
11584 |
|
cat out/conftest.err >&5 |
11585 |
|
echo "$as_me:11585: \$? = $ac_status" >&5 |
11586 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11587 |
|
then |
11588 |
|
# The compiler can only warn and ignore the option if not recognized |
11589 |
|
# So say no if there are warnings |
11590 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
11591 |
|
$SED '/^$/d' out/conftest.err >out/conftest.er2 |
11592 |
|
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11593 |
|
lt_cv_prog_compiler_c_o_CXX=yes |
11594 |
|
fi |
11595 |
|
fi |
11596 |
|
chmod u+w . |
11597 |
|
$rm conftest* |
11598 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
11599 |
|
# template instantiation |
11600 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
11601 |
|
$rm out/* && rmdir out |
11602 |
|
cd .. |
11603 |
|
rmdir conftest |
11604 |
|
$rm conftest* |
11605 |
|
|
11606 |
|
fi |
11607 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
11608 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
11609 |
|
|
11610 |
|
|
11611 |
|
hard_links="nottested" |
11612 |
|
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
11613 |
|
# do not overwrite the value of need_locks provided by the user |
11614 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
11615 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
11616 |
|
hard_links=yes |
11617 |
|
$rm conftest* |
11618 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11619 |
|
touch conftest.a |
11620 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
11621 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
11622 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
11623 |
|
echo "${ECHO_T}$hard_links" >&6 |
11624 |
|
if test "$hard_links" = no; then |
11625 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
11626 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
11627 |
|
need_locks=warn |
11628 |
|
fi |
11629 |
|
else |
11630 |
|
need_locks=no |
11631 |
|
fi |
11632 |
|
|
11633 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11634 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
11635 |
|
|
11636 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11637 |
|
case $host_os in |
11638 |
|
aix4* | aix5*) |
11639 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
11640 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
11641 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
11642 |
|
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' |
11643 |
|
else |
11644 |
|
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' |
11645 |
|
fi |
11646 |
|
;; |
11647 |
|
pw32*) |
11648 |
|
export_symbols_cmds_CXX="$ltdll_cmds" |
11649 |
|
;; |
11650 |
|
cygwin* | mingw*) |
11651 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
11652 |
|
;; |
11653 |
|
*) |
11654 |
|
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
11655 |
|
;; |
11656 |
|
esac |
11657 |
|
|
11658 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11659 |
|
echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11660 |
|
test "$ld_shlibs_CXX" = no && can_build_shared=no |
11661 |
|
|
11662 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11663 |
|
if test "$GCC" = yes; then |
11664 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
11665 |
|
fi |
11666 |
|
|
11667 |
|
# |
11668 |
|
# Do we need to explicitly link libc? |
11669 |
|
# |
11670 |
|
case "x$archive_cmds_need_lc_CXX" in |
11671 |
|
x|xyes) |
11672 |
|
# Assume -lc should be added |
11673 |
|
archive_cmds_need_lc_CXX=yes |
11674 |
|
|
11675 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
11676 |
|
case $archive_cmds_CXX in |
11677 |
|
*'~'*) |
11678 |
|
# FIXME: we may have to deal with multi-command sequences. |
11679 |
|
;; |
11680 |
|
'$CC '*) |
11681 |
|
# Test whether the compiler implicitly links with -lc since on some |
11682 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
11683 |
|
# to ld, don't add -lc before -lgcc. |
11684 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
11685 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
11686 |
|
$rm conftest* |
11687 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
11688 |
|
|
11689 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11690 |
|
(eval $ac_compile) 2>&5 |
11691 |
|
ac_status=$? |
11692 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11693 |
|
(exit $ac_status); } 2>conftest.err; then |
11694 |
|
soname=conftest |
11695 |
|
lib=conftest |
11696 |
|
libobjs=conftest.$ac_objext |
11697 |
|
deplibs= |
11698 |
|
wl=$lt_prog_compiler_wl_CXX |
11699 |
|
compiler_flags=-v |
11700 |
|
linker_flags=-v |
11701 |
|
verstring= |
11702 |
|
output_objdir=. |
11703 |
|
libname=conftest |
11704 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
11705 |
|
allow_undefined_flag_CXX= |
11706 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
11707 |
|
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
11708 |
|
ac_status=$? |
11709 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11710 |
|
(exit $ac_status); } |
11711 |
|
then |
11712 |
|
archive_cmds_need_lc_CXX=no |
11713 |
|
else |
11714 |
|
archive_cmds_need_lc_CXX=yes |
11715 |
|
fi |
11716 |
|
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
11717 |
|
else |
11718 |
|
cat conftest.err 1>&5 |
11719 |
|
fi |
11720 |
|
$rm conftest* |
11721 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
11722 |
|
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
11723 |
|
;; |
11724 |
|
esac |
11725 |
|
fi |
11726 |
|
;; |
11727 |
|
esac |
11728 |
|
|
11729 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
11730 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
11731 |
|
library_names_spec= |
11732 |
|
libname_spec='lib$name' |
11733 |
|
soname_spec= |
11734 |
|
shrext_cmds=".so" |
11735 |
|
postinstall_cmds= |
11736 |
|
postuninstall_cmds= |
11737 |
|
finish_cmds= |
11738 |
|
finish_eval= |
11739 |
|
shlibpath_var= |
11740 |
|
shlibpath_overrides_runpath=unknown |
11741 |
|
version_type=none |
11742 |
|
dynamic_linker="$host_os ld.so" |
11743 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
11744 |
|
if test "$GCC" = yes; then |
11745 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11746 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
11747 |
|
# if the path contains ";" then we assume it to be the separator |
11748 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
11749 |
|
# assumed that no part of a normal pathname contains ";" but that should |
11750 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
11751 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11752 |
|
else |
11753 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11754 |
|
fi |
11755 |
|
else |
11756 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
11757 |
|
fi |
11758 |
|
need_lib_prefix=unknown |
11759 |
|
hardcode_into_libs=no |
11760 |
|
|
11761 |
|
# when you set need_version to no, make sure it does not cause -set_version |
11762 |
|
# flags to be left without arguments |
11763 |
|
need_version=unknown |
11764 |
|
|
11765 |
|
case $host_os in |
11766 |
|
aix3*) |
11767 |
|
version_type=linux |
11768 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
11769 |
|
shlibpath_var=LIBPATH |
11770 |
|
|
11771 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
11772 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11773 |
|
;; |
11774 |
|
|
11775 |
|
aix4* | aix5*) |
11776 |
|
version_type=linux |
11777 |
|
need_lib_prefix=no |
11778 |
|
need_version=no |
11779 |
|
hardcode_into_libs=yes |
11780 |
|
if test "$host_cpu" = ia64; then |
11781 |
|
# AIX 5 supports IA64 |
11782 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
11783 |
|
shlibpath_var=LD_LIBRARY_PATH |
11784 |
|
else |
11785 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
11786 |
|
# for dependence libraries. The import file would start with |
11787 |
|
# the line `#! .'. This would cause the generated library to |
11788 |
|
# depend on `.', always an invalid library. This was fixed in |
11789 |
|
# development snapshots of GCC prior to 3.0. |
11790 |
|
case $host_os in |
11791 |
|
aix4 | aix4.[01] | aix4.[01].*) |
11792 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
11793 |
|
echo ' yes ' |
11794 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
11795 |
|
: |
11796 |
|
else |
11797 |
|
can_build_shared=no |
11798 |
|
fi |
11799 |
|
;; |
11800 |
|
esac |
11801 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
11802 |
|
# soname into executable. Probably we can add versioning support to |
11803 |
|
# collect2, so additional links can be useful in future. |
11804 |
|
if test "$aix_use_runtimelinking" = yes; then |
11805 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
11806 |
|
# instead of lib<name>.a to let people know that these are not |
11807 |
|
# typical AIX shared libraries. |
11808 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11809 |
|
else |
11810 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
11811 |
|
# and later when we are not doing run time linking. |
11812 |
|
library_names_spec='${libname}${release}.a $libname.a' |
11813 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11814 |
|
fi |
11815 |
|
shlibpath_var=LIBPATH |
11816 |
|
fi |
11817 |
|
;; |
11818 |
|
|
11819 |
|
amigaos*) |
11820 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
11821 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
11822 |
|
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' |
11823 |
|
;; |
11824 |
|
|
11825 |
|
beos*) |
11826 |
|
library_names_spec='${libname}${shared_ext}' |
11827 |
|
dynamic_linker="$host_os ld.so" |
11828 |
|
shlibpath_var=LIBRARY_PATH |
11829 |
|
;; |
11830 |
|
|
11831 |
|
bsdi[45]*) |
11832 |
|
version_type=linux |
11833 |
|
need_version=no |
11834 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
11835 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11836 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
11837 |
|
shlibpath_var=LD_LIBRARY_PATH |
11838 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
11839 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
11840 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
11841 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
11842 |
|
# libtool to hard-code these into programs |
11843 |
|
;; |
11844 |
|
|
11845 |
|
cygwin* | mingw* | pw32*) |
11846 |
|
version_type=windows |
11847 |
|
shrext_cmds=".dll" |
11848 |
|
need_version=no |
11849 |
|
need_lib_prefix=no |
11850 |
|
|
11851 |
|
case $GCC,$host_os in |
11852 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
11853 |
|
library_names_spec='$libname.dll.a' |
11854 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
11855 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
11856 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
11857 |
|
dldir=$destdir/`dirname \$dlpath`~ |
11858 |
|
test -d \$dldir || mkdir -p \$dldir~ |
11859 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
11860 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
11861 |
|
dlpath=$dir/\$dldll~ |
11862 |
|
$rm \$dlpath' |
11863 |
|
shlibpath_overrides_runpath=yes |
11864 |
|
|
11865 |
|
case $host_os in |
11866 |
|
cygwin*) |
11867 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
11868 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11869 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
11870 |
|
;; |
11871 |
|
mingw*) |
11872 |
|
# MinGW DLLs use traditional 'lib' prefix |
11873 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11874 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
11875 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
11876 |
|
# It is most probably a Windows format PATH printed by |
11877 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
11878 |
|
# path with ; separators, and with drive letters. We can handle the |
11879 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
11880 |
|
# especially as we might pass files found there to a mingw objdump, |
11881 |
|
# which wouldn't understand a cygwinified path. Ahh. |
11882 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
11883 |
|
else |
11884 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
11885 |
|
fi |
11886 |
|
;; |
11887 |
|
pw32*) |
11888 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
11889 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
11890 |
|
;; |
11891 |
|
esac |
11892 |
|
;; |
11893 |
|
|
11894 |
|
*) |
11895 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
11896 |
|
;; |
11897 |
|
esac |
11898 |
|
dynamic_linker='Win32 ld.exe' |
11899 |
|
# FIXME: first we should search . and the directory the executable is in |
11900 |
|
shlibpath_var=PATH |
11901 |
|
;; |
11902 |
|
|
11903 |
|
darwin* | rhapsody*) |
11904 |
|
dynamic_linker="$host_os dyld" |
11905 |
|
version_type=darwin |
11906 |
|
need_lib_prefix=no |
11907 |
|
need_version=no |
11908 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
11909 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
11910 |
|
shlibpath_overrides_runpath=yes |
11911 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
11912 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
11913 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
11914 |
|
if test "$GCC" = yes; then |
11915 |
|
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"` |
11916 |
|
else |
11917 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
11918 |
|
fi |
11919 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
11920 |
|
;; |
11921 |
|
|
11922 |
|
dgux*) |
11923 |
|
version_type=linux |
11924 |
|
need_lib_prefix=no |
11925 |
|
need_version=no |
11926 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
11927 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11928 |
|
shlibpath_var=LD_LIBRARY_PATH |
11929 |
|
;; |
11930 |
|
|
11931 |
|
freebsd1*) |
11932 |
|
dynamic_linker=no |
11933 |
|
;; |
11934 |
|
|
11935 |
|
kfreebsd*-gnu) |
11936 |
|
version_type=linux |
11937 |
|
need_lib_prefix=no |
11938 |
|
need_version=no |
11939 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
11940 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11941 |
|
shlibpath_var=LD_LIBRARY_PATH |
11942 |
|
shlibpath_overrides_runpath=no |
11943 |
|
hardcode_into_libs=yes |
11944 |
|
dynamic_linker='GNU ld.so' |
11945 |
|
;; |
11946 |
|
|
11947 |
|
freebsd* | dragonfly*) |
11948 |
|
# DragonFly does not have aout. When/if they implement a new |
11949 |
|
# versioning mechanism, adjust this. |
11950 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
11951 |
|
version_type=freebsd-$objformat |
11952 |
|
case $version_type in |
11953 |
|
freebsd-elf*) |
11954 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
11955 |
|
need_version=no |
11956 |
|
need_lib_prefix=no |
11957 |
|
;; |
11958 |
|
freebsd-*) |
11959 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
11960 |
|
need_version=yes |
11961 |
|
;; |
11962 |
|
esac |
11963 |
|
shlibpath_var=LD_LIBRARY_PATH |
11964 |
|
case $host_os in |
11965 |
|
freebsd2*) |
11966 |
|
shlibpath_overrides_runpath=yes |
11967 |
|
;; |
11968 |
|
freebsd3.[01]* | freebsdelf3.[01]*) |
11969 |
|
shlibpath_overrides_runpath=yes |
11970 |
|
hardcode_into_libs=yes |
11971 |
|
;; |
11972 |
|
*) # from 3.2 on |
11973 |
|
shlibpath_overrides_runpath=no |
11974 |
|
hardcode_into_libs=yes |
11975 |
|
;; |
11976 |
|
esac |
11977 |
|
;; |
11978 |
|
|
11979 |
|
gnu*) |
11980 |
|
version_type=linux |
11981 |
|
need_lib_prefix=no |
11982 |
|
need_version=no |
11983 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
11984 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
11985 |
|
shlibpath_var=LD_LIBRARY_PATH |
11986 |
|
hardcode_into_libs=yes |
11987 |
|
;; |
11988 |
|
|
11989 |
|
hpux9* | hpux10* | hpux11*) |
11990 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
11991 |
|
# link against other versions. |
11992 |
|
version_type=sunos |
11993 |
|
need_lib_prefix=no |
11994 |
|
need_version=no |
11995 |
|
case "$host_cpu" in |
11996 |
|
ia64*) |
11997 |
|
shrext_cmds='.so' |
11998 |
|
hardcode_into_libs=yes |
11999 |
|
dynamic_linker="$host_os dld.so" |
12000 |
|
shlibpath_var=LD_LIBRARY_PATH |
12001 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12002 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12003 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12004 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
12005 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12006 |
|
else |
12007 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12008 |
|
fi |
12009 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12010 |
|
;; |
12011 |
|
hppa*64*) |
12012 |
|
shrext_cmds='.sl' |
12013 |
|
hardcode_into_libs=yes |
12014 |
|
dynamic_linker="$host_os dld.sl" |
12015 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12016 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12017 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12018 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12019 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12020 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12021 |
|
;; |
12022 |
|
*) |
12023 |
|
shrext_cmds='.sl' |
12024 |
|
dynamic_linker="$host_os dld.sl" |
12025 |
|
shlibpath_var=SHLIB_PATH |
12026 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
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 |
|
;; |
12030 |
|
esac |
12031 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
12032 |
|
postinstall_cmds='chmod 555 $lib' |
12033 |
|
;; |
12034 |
|
|
12035 |
|
irix5* | irix6* | nonstopux*) |
12036 |
|
case $host_os in |
12037 |
|
nonstopux*) version_type=nonstopux ;; |
12038 |
|
*) |
12039 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
12040 |
|
version_type=linux |
12041 |
|
else |
12042 |
|
version_type=irix |
12043 |
|
fi ;; |
12044 |
|
esac |
12045 |
|
need_lib_prefix=no |
12046 |
|
need_version=no |
12047 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12048 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12049 |
|
case $host_os in |
12050 |
|
irix5* | nonstopux*) |
12051 |
|
libsuff= shlibsuff= |
12052 |
|
;; |
12053 |
|
*) |
12054 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
12055 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12056 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
12057 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12058 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
12059 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12060 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12061 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
12062 |
|
esac |
12063 |
|
;; |
12064 |
|
esac |
12065 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12066 |
|
shlibpath_overrides_runpath=no |
12067 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12068 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12069 |
|
hardcode_into_libs=yes |
12070 |
|
;; |
12071 |
|
|
12072 |
|
# No shared lib support for Linux oldld, aout, or coff. |
12073 |
|
linux*oldld* | linux*aout* | linux*coff*) |
12074 |
|
dynamic_linker=no |
12075 |
|
;; |
12076 |
|
|
12077 |
|
# This must be Linux ELF. |
12078 |
|
linux*) |
12079 |
|
version_type=linux |
12080 |
|
need_lib_prefix=no |
12081 |
|
need_version=no |
12082 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12083 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12084 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12085 |
|
shlibpath_var=LD_LIBRARY_PATH |
12086 |
|
shlibpath_overrides_runpath=no |
12087 |
|
# This implies no fast_install, which is unacceptable. |
12088 |
|
# Some rework will be needed to allow for fast_install |
12089 |
|
# before this can be enabled. |
12090 |
|
hardcode_into_libs=yes |
12091 |
|
|
12092 |
|
# find out which ABI we are using |
12093 |
|
libsuff= |
12094 |
|
case "$host_cpu" in |
12095 |
|
x86_64*|s390x*|powerpc64*) |
12096 |
|
echo '#line 12096 "configure"' > conftest.$ac_ext |
12097 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12098 |
|
(eval $ac_compile) 2>&5 |
12099 |
|
ac_status=$? |
12100 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12101 |
|
(exit $ac_status); }; then |
12102 |
|
case `/usr/bin/file conftest.$ac_objext` in |
12103 |
|
*64-bit*) |
12104 |
|
libsuff=64 |
12105 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12106 |
|
;; |
12107 |
|
esac |
12108 |
|
fi |
12109 |
|
rm -rf conftest* |
12110 |
|
;; |
12111 |
|
esac |
12112 |
|
|
12113 |
|
# Append ld.so.conf contents to the search path |
12114 |
|
if test -f /etc/ld.so.conf; then |
12115 |
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
12116 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12117 |
|
fi |
12118 |
|
|
12119 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
12120 |
|
# powerpc, because MkLinux only supported shared libraries with the |
12121 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
12122 |
|
# most powerpc-linux boxes support dynamic linking these days and |
12123 |
|
# people can always --disable-shared, the test was removed, and we |
12124 |
|
# assume the GNU/Linux dynamic linker is in use. |
12125 |
|
dynamic_linker='GNU/Linux ld.so' |
12126 |
|
;; |
12127 |
|
|
12128 |
|
knetbsd*-gnu) |
12129 |
|
version_type=linux |
12130 |
|
need_lib_prefix=no |
12131 |
|
need_version=no |
12132 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12133 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12134 |
|
shlibpath_var=LD_LIBRARY_PATH |
12135 |
|
shlibpath_overrides_runpath=no |
12136 |
|
hardcode_into_libs=yes |
12137 |
|
dynamic_linker='GNU ld.so' |
12138 |
|
;; |
12139 |
|
|
12140 |
|
netbsd*) |
12141 |
|
version_type=sunos |
12142 |
|
need_lib_prefix=no |
12143 |
|
need_version=no |
12144 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12145 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12146 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12147 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
12148 |
|
else |
12149 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12150 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12151 |
|
dynamic_linker='NetBSD ld.elf_so' |
12152 |
|
fi |
12153 |
|
shlibpath_var=LD_LIBRARY_PATH |
12154 |
|
shlibpath_overrides_runpath=yes |
12155 |
|
hardcode_into_libs=yes |
12156 |
|
;; |
12157 |
|
|
12158 |
|
newsos6) |
12159 |
|
version_type=linux |
12160 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12161 |
|
shlibpath_var=LD_LIBRARY_PATH |
12162 |
|
shlibpath_overrides_runpath=yes |
12163 |
|
;; |
12164 |
|
|
12165 |
|
nto-qnx*) |
12166 |
|
version_type=linux |
12167 |
|
need_lib_prefix=no |
12168 |
|
need_version=no |
12169 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12170 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12171 |
|
shlibpath_var=LD_LIBRARY_PATH |
12172 |
|
shlibpath_overrides_runpath=yes |
12173 |
|
;; |
12174 |
|
|
12175 |
|
openbsd*) |
12176 |
|
version_type=sunos |
12177 |
|
need_lib_prefix=no |
12178 |
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12179 |
|
case $host_os in |
12180 |
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
12181 |
|
*) need_version=no ;; |
12182 |
|
esac |
12183 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12184 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12185 |
|
shlibpath_var=LD_LIBRARY_PATH |
12186 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12187 |
|
case $host_os in |
12188 |
|
openbsd2.[89] | openbsd2.[89].*) |
12189 |
|
shlibpath_overrides_runpath=no |
12190 |
|
;; |
12191 |
|
*) |
12192 |
|
shlibpath_overrides_runpath=yes |
12193 |
|
;; |
12194 |
|
esac |
12195 |
|
else |
12196 |
|
shlibpath_overrides_runpath=yes |
12197 |
|
fi |
12198 |
|
;; |
12199 |
|
|
12200 |
|
os2*) |
12201 |
|
libname_spec='$name' |
12202 |
|
shrext_cmds=".dll" |
12203 |
|
need_lib_prefix=no |
12204 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
12205 |
|
dynamic_linker='OS/2 ld.exe' |
12206 |
|
shlibpath_var=LIBPATH |
12207 |
|
;; |
12208 |
|
|
12209 |
|
osf3* | osf4* | osf5*) |
12210 |
|
version_type=osf |
12211 |
|
need_lib_prefix=no |
12212 |
|
need_version=no |
12213 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12214 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12215 |
|
shlibpath_var=LD_LIBRARY_PATH |
12216 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
12217 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12218 |
|
;; |
12219 |
|
|
12220 |
|
sco3.2v5*) |
12221 |
|
version_type=osf |
12222 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12223 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12224 |
|
shlibpath_var=LD_LIBRARY_PATH |
12225 |
|
;; |
12226 |
|
|
12227 |
|
solaris*) |
12228 |
|
version_type=linux |
12229 |
|
need_lib_prefix=no |
12230 |
|
need_version=no |
12231 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12232 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12233 |
|
shlibpath_var=LD_LIBRARY_PATH |
12234 |
|
shlibpath_overrides_runpath=yes |
12235 |
|
hardcode_into_libs=yes |
12236 |
|
# ldd complains unless libraries are executable |
12237 |
|
postinstall_cmds='chmod +x $lib' |
12238 |
|
;; |
12239 |
|
|
12240 |
|
sunos4*) |
12241 |
|
version_type=sunos |
12242 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12243 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
12244 |
|
shlibpath_var=LD_LIBRARY_PATH |
12245 |
|
shlibpath_overrides_runpath=yes |
12246 |
|
if test "$with_gnu_ld" = yes; then |
12247 |
|
need_lib_prefix=no |
12248 |
|
fi |
12249 |
|
need_version=yes |
12250 |
|
;; |
12251 |
|
|
12252 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
12253 |
|
version_type=linux |
12254 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12255 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12256 |
|
shlibpath_var=LD_LIBRARY_PATH |
12257 |
|
case $host_vendor in |
12258 |
|
sni) |
12259 |
|
shlibpath_overrides_runpath=no |
12260 |
|
need_lib_prefix=no |
12261 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
12262 |
|
runpath_var=LD_RUN_PATH |
12263 |
|
;; |
12264 |
|
siemens) |
12265 |
|
need_lib_prefix=no |
12266 |
|
;; |
12267 |
|
motorola) |
12268 |
|
need_lib_prefix=no |
12269 |
|
need_version=no |
12270 |
|
shlibpath_overrides_runpath=no |
12271 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
12272 |
|
;; |
12273 |
|
esac |
12274 |
|
;; |
12275 |
|
|
12276 |
|
sysv4*MP*) |
12277 |
|
if test -d /usr/nec ;then |
12278 |
|
version_type=linux |
12279 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
12280 |
|
soname_spec='$libname${shared_ext}.$major' |
12281 |
|
shlibpath_var=LD_LIBRARY_PATH |
12282 |
|
fi |
12283 |
|
;; |
12284 |
|
|
12285 |
|
uts4*) |
12286 |
|
version_type=linux |
12287 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12288 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
12289 |
|
shlibpath_var=LD_LIBRARY_PATH |
12290 |
|
;; |
12291 |
|
|
12292 |
|
*) |
12293 |
|
dynamic_linker=no |
12294 |
|
;; |
12295 |
|
esac |
12296 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
12297 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
12298 |
|
test "$dynamic_linker" = no && can_build_shared=no |
12299 |
|
|
12300 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12301 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12302 |
|
hardcode_action_CXX= |
12303 |
|
if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
12304 |
|
test -n "$runpath_var_CXX" || \ |
12305 |
|
test "X$hardcode_automatic_CXX" = "Xyes" ; then |
12306 |
|
|
12307 |
|
# We can hardcode non-existant directories. |
12308 |
|
if test "$hardcode_direct_CXX" != no && |
12309 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
12310 |
|
# have to relink, otherwise we might link with an installed library |
12311 |
|
# when we should be linking with a yet-to-be-installed one |
12312 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
12313 |
|
test "$hardcode_minus_L_CXX" != no; then |
12314 |
|
# Linking always hardcodes the temporary library directory. |
12315 |
|
hardcode_action_CXX=relink |
12316 |
|
else |
12317 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
12318 |
|
hardcode_action_CXX=immediate |
12319 |
|
fi |
12320 |
|
else |
12321 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
12322 |
|
# directories. |
12323 |
|
hardcode_action_CXX=unsupported |
12324 |
|
fi |
12325 |
|
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
12326 |
|
echo "${ECHO_T}$hardcode_action_CXX" >&6 |
12327 |
|
|
12328 |
|
if test "$hardcode_action_CXX" = relink; then |
12329 |
|
# Fast installation is not supported |
12330 |
|
enable_fast_install=no |
12331 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
12332 |
|
test "$enable_shared" = no; then |
12333 |
|
# Fast installation is not necessary |
12334 |
|
enable_fast_install=needless |
12335 |
|
fi |
12336 |
|
|
12337 |
|
striplib= |
12338 |
|
old_striplib= |
12339 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
12340 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
12341 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
12342 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
12343 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
12344 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
12345 |
|
echo "${ECHO_T}yes" >&6 |
12346 |
|
else |
12347 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
12348 |
|
case $host_os in |
12349 |
|
darwin*) |
12350 |
|
if test -n "$STRIP" ; then |
12351 |
|
striplib="$STRIP -x" |
12352 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
12353 |
|
echo "${ECHO_T}yes" >&6 |
12354 |
|
else |
12355 |
|
echo "$as_me:$LINENO: result: no" >&5 |
12356 |
|
echo "${ECHO_T}no" >&6 |
12357 |
|
fi |
12358 |
|
;; |
12359 |
|
*) |
12360 |
|
echo "$as_me:$LINENO: result: no" >&5 |
12361 |
|
echo "${ECHO_T}no" >&6 |
12362 |
|
;; |
12363 |
|
esac |
12364 |
|
fi |
12365 |
|
|
12366 |
|
if test "x$enable_dlopen" != xyes; then |
12367 |
|
enable_dlopen=unknown |
12368 |
|
enable_dlopen_self=unknown |
12369 |
|
enable_dlopen_self_static=unknown |
12370 |
|
else |
12371 |
|
lt_cv_dlopen=no |
12372 |
|
lt_cv_dlopen_libs= |
12373 |
|
|
12374 |
|
case $host_os in |
12375 |
|
beos*) |
12376 |
|
lt_cv_dlopen="load_add_on" |
12377 |
|
lt_cv_dlopen_libs= |
12378 |
|
lt_cv_dlopen_self=yes |
12379 |
|
;; |
12380 |
|
|
12381 |
|
mingw* | pw32*) |
12382 |
|
lt_cv_dlopen="LoadLibrary" |
12383 |
|
lt_cv_dlopen_libs= |
12384 |
|
;; |
12385 |
|
|
12386 |
|
cygwin*) |
12387 |
|
lt_cv_dlopen="dlopen" |
12388 |
|
lt_cv_dlopen_libs= |
12389 |
|
;; |
12390 |
|
|
12391 |
|
darwin*) |
12392 |
|
# if libdl is installed we need to link against it |
12393 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12394 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
12395 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
12396 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12397 |
|
else |
12398 |
|
ac_check_lib_save_LIBS=$LIBS |
12399 |
|
LIBS="-ldl $LIBS" |
12400 |
|
cat >conftest.$ac_ext <<_ACEOF |
12401 |
|
/* confdefs.h. */ |
12402 |
|
_ACEOF |
12403 |
|
cat confdefs.h >>conftest.$ac_ext |
12404 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12405 |
|
/* end confdefs.h. */ |
12406 |
|
|
12407 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12408 |
|
#ifdef __cplusplus |
12409 |
|
extern "C" |
12410 |
|
#endif |
12411 |
|
/* We use char because int might match the return type of a gcc2 |
12412 |
|
builtin and then its argument prototype would still apply. */ |
12413 |
|
char dlopen (); |
12414 |
|
int |
12415 |
|
main () |
12416 |
|
{ |
12417 |
|
dlopen (); |
12418 |
|
; |
12419 |
|
return 0; |
12420 |
|
} |
12421 |
|
_ACEOF |
12422 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12423 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12424 |
|
(eval $ac_link) 2>conftest.er1 |
12425 |
|
ac_status=$? |
12426 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12427 |
|
rm -f conftest.er1 |
12428 |
|
cat conftest.err >&5 |
12429 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12430 |
|
(exit $ac_status); } && |
12431 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12432 |
|
|| test ! -s conftest.err' |
12433 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12434 |
|
(eval $ac_try) 2>&5 |
12435 |
|
ac_status=$? |
12436 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12437 |
|
(exit $ac_status); }; } && |
12438 |
|
{ ac_try='test -s conftest$ac_exeext' |
12439 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12440 |
|
(eval $ac_try) 2>&5 |
12441 |
|
ac_status=$? |
12442 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12443 |
|
(exit $ac_status); }; }; then |
12444 |
|
ac_cv_lib_dl_dlopen=yes |
12445 |
|
else |
12446 |
|
echo "$as_me: failed program was:" >&5 |
12447 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12448 |
|
|
12449 |
|
ac_cv_lib_dl_dlopen=no |
12450 |
|
fi |
12451 |
|
rm -f conftest.err conftest.$ac_objext \ |
12452 |
|
conftest$ac_exeext conftest.$ac_ext |
12453 |
|
LIBS=$ac_check_lib_save_LIBS |
12454 |
|
fi |
12455 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12456 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
12457 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
12458 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12459 |
|
else |
12460 |
|
|
12461 |
|
lt_cv_dlopen="dyld" |
12462 |
|
lt_cv_dlopen_libs= |
12463 |
|
lt_cv_dlopen_self=yes |
12464 |
|
|
12465 |
|
fi |
12466 |
|
|
12467 |
|
;; |
12468 |
|
|
12469 |
|
*) |
12470 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
12471 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
12472 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
12473 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12474 |
|
else |
12475 |
|
cat >conftest.$ac_ext <<_ACEOF |
12476 |
|
/* confdefs.h. */ |
12477 |
|
_ACEOF |
12478 |
|
cat confdefs.h >>conftest.$ac_ext |
12479 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12480 |
|
/* end confdefs.h. */ |
12481 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
12482 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12483 |
|
#define shl_load innocuous_shl_load |
12484 |
|
|
12485 |
|
/* System header to define __stub macros and hopefully few prototypes, |
12486 |
|
which can conflict with char shl_load (); below. |
12487 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12488 |
|
<limits.h> exists even on freestanding compilers. */ |
12489 |
|
|
12490 |
|
#ifdef __STDC__ |
12491 |
|
# include <limits.h> |
12492 |
|
#else |
12493 |
|
# include <assert.h> |
12494 |
|
#endif |
12495 |
|
|
12496 |
|
#undef shl_load |
12497 |
|
|
12498 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12499 |
|
#ifdef __cplusplus |
12500 |
|
extern "C" |
12501 |
|
{ |
12502 |
|
#endif |
12503 |
|
/* We use char because int might match the return type of a gcc2 |
12504 |
|
builtin and then its argument prototype would still apply. */ |
12505 |
|
char shl_load (); |
12506 |
|
/* The GNU C library defines this for functions which it implements |
12507 |
|
to always fail with ENOSYS. Some functions are actually named |
12508 |
|
something starting with __ and the normal name is an alias. */ |
12509 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
12510 |
|
choke me |
12511 |
|
#else |
12512 |
|
char (*f) () = shl_load; |
12513 |
|
#endif |
12514 |
|
#ifdef __cplusplus |
12515 |
|
} |
12516 |
|
#endif |
12517 |
|
|
12518 |
|
int |
12519 |
|
main () |
12520 |
|
{ |
12521 |
|
return f != shl_load; |
12522 |
|
; |
12523 |
|
return 0; |
12524 |
|
} |
12525 |
|
_ACEOF |
12526 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12527 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12528 |
|
(eval $ac_link) 2>conftest.er1 |
12529 |
|
ac_status=$? |
12530 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12531 |
|
rm -f conftest.er1 |
12532 |
|
cat conftest.err >&5 |
12533 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12534 |
|
(exit $ac_status); } && |
12535 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12536 |
|
|| test ! -s conftest.err' |
12537 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12538 |
|
(eval $ac_try) 2>&5 |
12539 |
|
ac_status=$? |
12540 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12541 |
|
(exit $ac_status); }; } && |
12542 |
|
{ ac_try='test -s conftest$ac_exeext' |
12543 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12544 |
|
(eval $ac_try) 2>&5 |
12545 |
|
ac_status=$? |
12546 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12547 |
|
(exit $ac_status); }; }; then |
12548 |
|
ac_cv_func_shl_load=yes |
12549 |
|
else |
12550 |
|
echo "$as_me: failed program was:" >&5 |
12551 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12552 |
|
|
12553 |
|
ac_cv_func_shl_load=no |
12554 |
|
fi |
12555 |
|
rm -f conftest.err conftest.$ac_objext \ |
12556 |
|
conftest$ac_exeext conftest.$ac_ext |
12557 |
|
fi |
12558 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
12559 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
12560 |
|
if test $ac_cv_func_shl_load = yes; then |
12561 |
|
lt_cv_dlopen="shl_load" |
12562 |
|
else |
12563 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
12564 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
12565 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
12566 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12567 |
|
else |
12568 |
|
ac_check_lib_save_LIBS=$LIBS |
12569 |
|
LIBS="-ldld $LIBS" |
12570 |
|
cat >conftest.$ac_ext <<_ACEOF |
12571 |
|
/* confdefs.h. */ |
12572 |
|
_ACEOF |
12573 |
|
cat confdefs.h >>conftest.$ac_ext |
12574 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12575 |
|
/* end confdefs.h. */ |
12576 |
|
|
12577 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12578 |
|
#ifdef __cplusplus |
12579 |
|
extern "C" |
12580 |
|
#endif |
12581 |
|
/* We use char because int might match the return type of a gcc2 |
12582 |
|
builtin and then its argument prototype would still apply. */ |
12583 |
|
char shl_load (); |
12584 |
|
int |
12585 |
|
main () |
12586 |
|
{ |
12587 |
|
shl_load (); |
12588 |
|
; |
12589 |
|
return 0; |
12590 |
|
} |
12591 |
|
_ACEOF |
12592 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12593 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12594 |
|
(eval $ac_link) 2>conftest.er1 |
12595 |
|
ac_status=$? |
12596 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12597 |
|
rm -f conftest.er1 |
12598 |
|
cat conftest.err >&5 |
12599 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12600 |
|
(exit $ac_status); } && |
12601 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12602 |
|
|| test ! -s conftest.err' |
12603 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12604 |
|
(eval $ac_try) 2>&5 |
12605 |
|
ac_status=$? |
12606 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12607 |
|
(exit $ac_status); }; } && |
12608 |
|
{ ac_try='test -s conftest$ac_exeext' |
12609 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12610 |
|
(eval $ac_try) 2>&5 |
12611 |
|
ac_status=$? |
12612 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12613 |
|
(exit $ac_status); }; }; then |
12614 |
|
ac_cv_lib_dld_shl_load=yes |
12615 |
|
else |
12616 |
|
echo "$as_me: failed program was:" >&5 |
12617 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12618 |
|
|
12619 |
|
ac_cv_lib_dld_shl_load=no |
12620 |
|
fi |
12621 |
|
rm -f conftest.err conftest.$ac_objext \ |
12622 |
|
conftest$ac_exeext conftest.$ac_ext |
12623 |
|
LIBS=$ac_check_lib_save_LIBS |
12624 |
|
fi |
12625 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
12626 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
12627 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
12628 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
12629 |
|
else |
12630 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
12631 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
12632 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
12633 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12634 |
|
else |
12635 |
|
cat >conftest.$ac_ext <<_ACEOF |
12636 |
|
/* confdefs.h. */ |
12637 |
|
_ACEOF |
12638 |
|
cat confdefs.h >>conftest.$ac_ext |
12639 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12640 |
|
/* end confdefs.h. */ |
12641 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
12642 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
12643 |
|
#define dlopen innocuous_dlopen |
12644 |
|
|
12645 |
|
/* System header to define __stub macros and hopefully few prototypes, |
12646 |
|
which can conflict with char dlopen (); below. |
12647 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
12648 |
|
<limits.h> exists even on freestanding compilers. */ |
12649 |
|
|
12650 |
|
#ifdef __STDC__ |
12651 |
|
# include <limits.h> |
12652 |
|
#else |
12653 |
|
# include <assert.h> |
12654 |
|
#endif |
12655 |
|
|
12656 |
|
#undef dlopen |
12657 |
|
|
12658 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12659 |
|
#ifdef __cplusplus |
12660 |
|
extern "C" |
12661 |
|
{ |
12662 |
|
#endif |
12663 |
|
/* We use char because int might match the return type of a gcc2 |
12664 |
|
builtin and then its argument prototype would still apply. */ |
12665 |
|
char dlopen (); |
12666 |
|
/* The GNU C library defines this for functions which it implements |
12667 |
|
to always fail with ENOSYS. Some functions are actually named |
12668 |
|
something starting with __ and the normal name is an alias. */ |
12669 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
12670 |
|
choke me |
12671 |
|
#else |
12672 |
|
char (*f) () = dlopen; |
12673 |
|
#endif |
12674 |
|
#ifdef __cplusplus |
12675 |
|
} |
12676 |
|
#endif |
12677 |
|
|
12678 |
|
int |
12679 |
|
main () |
12680 |
|
{ |
12681 |
|
return f != dlopen; |
12682 |
|
; |
12683 |
|
return 0; |
12684 |
|
} |
12685 |
|
_ACEOF |
12686 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12687 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12688 |
|
(eval $ac_link) 2>conftest.er1 |
12689 |
|
ac_status=$? |
12690 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12691 |
|
rm -f conftest.er1 |
12692 |
|
cat conftest.err >&5 |
12693 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12694 |
|
(exit $ac_status); } && |
12695 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12696 |
|
|| test ! -s conftest.err' |
12697 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12698 |
|
(eval $ac_try) 2>&5 |
12699 |
|
ac_status=$? |
12700 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12701 |
|
(exit $ac_status); }; } && |
12702 |
|
{ ac_try='test -s conftest$ac_exeext' |
12703 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12704 |
|
(eval $ac_try) 2>&5 |
12705 |
|
ac_status=$? |
12706 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12707 |
|
(exit $ac_status); }; }; then |
12708 |
|
ac_cv_func_dlopen=yes |
12709 |
|
else |
12710 |
|
echo "$as_me: failed program was:" >&5 |
12711 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12712 |
|
|
12713 |
|
ac_cv_func_dlopen=no |
12714 |
|
fi |
12715 |
|
rm -f conftest.err conftest.$ac_objext \ |
12716 |
|
conftest$ac_exeext conftest.$ac_ext |
12717 |
|
fi |
12718 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
12719 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
12720 |
|
if test $ac_cv_func_dlopen = yes; then |
12721 |
|
lt_cv_dlopen="dlopen" |
12722 |
|
else |
12723 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
12724 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
12725 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
12726 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12727 |
|
else |
12728 |
|
ac_check_lib_save_LIBS=$LIBS |
12729 |
|
LIBS="-ldl $LIBS" |
12730 |
|
cat >conftest.$ac_ext <<_ACEOF |
12731 |
|
/* confdefs.h. */ |
12732 |
|
_ACEOF |
12733 |
|
cat confdefs.h >>conftest.$ac_ext |
12734 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12735 |
|
/* end confdefs.h. */ |
12736 |
|
|
12737 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12738 |
|
#ifdef __cplusplus |
12739 |
|
extern "C" |
12740 |
|
#endif |
12741 |
|
/* We use char because int might match the return type of a gcc2 |
12742 |
|
builtin and then its argument prototype would still apply. */ |
12743 |
|
char dlopen (); |
12744 |
|
int |
12745 |
|
main () |
12746 |
|
{ |
12747 |
|
dlopen (); |
12748 |
|
; |
12749 |
|
return 0; |
12750 |
|
} |
12751 |
|
_ACEOF |
12752 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12753 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12754 |
|
(eval $ac_link) 2>conftest.er1 |
12755 |
|
ac_status=$? |
12756 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12757 |
|
rm -f conftest.er1 |
12758 |
|
cat conftest.err >&5 |
12759 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12760 |
|
(exit $ac_status); } && |
12761 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12762 |
|
|| test ! -s conftest.err' |
12763 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12764 |
|
(eval $ac_try) 2>&5 |
12765 |
|
ac_status=$? |
12766 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12767 |
|
(exit $ac_status); }; } && |
12768 |
|
{ ac_try='test -s conftest$ac_exeext' |
12769 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12770 |
|
(eval $ac_try) 2>&5 |
12771 |
|
ac_status=$? |
12772 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12773 |
|
(exit $ac_status); }; }; then |
12774 |
|
ac_cv_lib_dl_dlopen=yes |
12775 |
|
else |
12776 |
|
echo "$as_me: failed program was:" >&5 |
12777 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12778 |
|
|
12779 |
|
ac_cv_lib_dl_dlopen=no |
12780 |
|
fi |
12781 |
|
rm -f conftest.err conftest.$ac_objext \ |
12782 |
|
conftest$ac_exeext conftest.$ac_ext |
12783 |
|
LIBS=$ac_check_lib_save_LIBS |
12784 |
|
fi |
12785 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
12786 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
12787 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
12788 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
12789 |
|
else |
12790 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
12791 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
12792 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
12793 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12794 |
|
else |
12795 |
|
ac_check_lib_save_LIBS=$LIBS |
12796 |
|
LIBS="-lsvld $LIBS" |
12797 |
|
cat >conftest.$ac_ext <<_ACEOF |
12798 |
|
/* confdefs.h. */ |
12799 |
|
_ACEOF |
12800 |
|
cat confdefs.h >>conftest.$ac_ext |
12801 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12802 |
|
/* end confdefs.h. */ |
12803 |
|
|
12804 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12805 |
|
#ifdef __cplusplus |
12806 |
|
extern "C" |
12807 |
|
#endif |
12808 |
|
/* We use char because int might match the return type of a gcc2 |
12809 |
|
builtin and then its argument prototype would still apply. */ |
12810 |
|
char dlopen (); |
12811 |
|
int |
12812 |
|
main () |
12813 |
|
{ |
12814 |
|
dlopen (); |
12815 |
|
; |
12816 |
|
return 0; |
12817 |
|
} |
12818 |
|
_ACEOF |
12819 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12820 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12821 |
|
(eval $ac_link) 2>conftest.er1 |
12822 |
|
ac_status=$? |
12823 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12824 |
|
rm -f conftest.er1 |
12825 |
|
cat conftest.err >&5 |
12826 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12827 |
|
(exit $ac_status); } && |
12828 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12829 |
|
|| test ! -s conftest.err' |
12830 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12831 |
|
(eval $ac_try) 2>&5 |
12832 |
|
ac_status=$? |
12833 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12834 |
|
(exit $ac_status); }; } && |
12835 |
|
{ ac_try='test -s conftest$ac_exeext' |
12836 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12837 |
|
(eval $ac_try) 2>&5 |
12838 |
|
ac_status=$? |
12839 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12840 |
|
(exit $ac_status); }; }; then |
12841 |
|
ac_cv_lib_svld_dlopen=yes |
12842 |
|
else |
12843 |
|
echo "$as_me: failed program was:" >&5 |
12844 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12845 |
|
|
12846 |
|
ac_cv_lib_svld_dlopen=no |
12847 |
|
fi |
12848 |
|
rm -f conftest.err conftest.$ac_objext \ |
12849 |
|
conftest$ac_exeext conftest.$ac_ext |
12850 |
|
LIBS=$ac_check_lib_save_LIBS |
12851 |
|
fi |
12852 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
12853 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
12854 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
12855 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
12856 |
|
else |
12857 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
12858 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
12859 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
12860 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12861 |
|
else |
12862 |
|
ac_check_lib_save_LIBS=$LIBS |
12863 |
|
LIBS="-ldld $LIBS" |
12864 |
|
cat >conftest.$ac_ext <<_ACEOF |
12865 |
|
/* confdefs.h. */ |
12866 |
|
_ACEOF |
12867 |
|
cat confdefs.h >>conftest.$ac_ext |
12868 |
|
cat >>conftest.$ac_ext <<_ACEOF |
12869 |
|
/* end confdefs.h. */ |
12870 |
|
|
12871 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
12872 |
|
#ifdef __cplusplus |
12873 |
|
extern "C" |
12874 |
|
#endif |
12875 |
|
/* We use char because int might match the return type of a gcc2 |
12876 |
|
builtin and then its argument prototype would still apply. */ |
12877 |
|
char dld_link (); |
12878 |
|
int |
12879 |
|
main () |
12880 |
|
{ |
12881 |
|
dld_link (); |
12882 |
|
; |
12883 |
|
return 0; |
12884 |
|
} |
12885 |
|
_ACEOF |
12886 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
12887 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
12888 |
|
(eval $ac_link) 2>conftest.er1 |
12889 |
|
ac_status=$? |
12890 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
12891 |
|
rm -f conftest.er1 |
12892 |
|
cat conftest.err >&5 |
12893 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12894 |
|
(exit $ac_status); } && |
12895 |
|
{ ac_try='test -z "$ac_cxx_werror_flag" |
12896 |
|
|| test ! -s conftest.err' |
12897 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12898 |
|
(eval $ac_try) 2>&5 |
12899 |
|
ac_status=$? |
12900 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12901 |
|
(exit $ac_status); }; } && |
12902 |
|
{ ac_try='test -s conftest$ac_exeext' |
12903 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12904 |
|
(eval $ac_try) 2>&5 |
12905 |
|
ac_status=$? |
12906 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12907 |
|
(exit $ac_status); }; }; then |
12908 |
|
ac_cv_lib_dld_dld_link=yes |
12909 |
|
else |
12910 |
|
echo "$as_me: failed program was:" >&5 |
12911 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
12912 |
|
|
12913 |
|
ac_cv_lib_dld_dld_link=no |
12914 |
|
fi |
12915 |
|
rm -f conftest.err conftest.$ac_objext \ |
12916 |
|
conftest$ac_exeext conftest.$ac_ext |
12917 |
|
LIBS=$ac_check_lib_save_LIBS |
12918 |
|
fi |
12919 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
12920 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
12921 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
12922 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
12923 |
|
fi |
12924 |
|
|
12925 |
|
|
12926 |
|
fi |
12927 |
|
|
12928 |
|
|
12929 |
|
fi |
12930 |
|
|
12931 |
|
|
12932 |
|
fi |
12933 |
|
|
12934 |
|
|
12935 |
|
fi |
12936 |
|
|
12937 |
|
|
12938 |
|
fi |
12939 |
|
|
12940 |
|
;; |
12941 |
|
esac |
12942 |
|
|
12943 |
|
if test "x$lt_cv_dlopen" != xno; then |
12944 |
|
enable_dlopen=yes |
12945 |
|
else |
12946 |
|
enable_dlopen=no |
12947 |
|
fi |
12948 |
|
|
12949 |
|
case $lt_cv_dlopen in |
12950 |
|
dlopen) |
12951 |
|
save_CPPFLAGS="$CPPFLAGS" |
12952 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
12953 |
|
|
12954 |
|
save_LDFLAGS="$LDFLAGS" |
12955 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
12956 |
|
|
12957 |
|
save_LIBS="$LIBS" |
12958 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
12959 |
|
|
12960 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
12961 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
12962 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
12963 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
12964 |
|
else |
12965 |
|
if test "$cross_compiling" = yes; then : |
12966 |
|
lt_cv_dlopen_self=cross |
12967 |
|
else |
12968 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
12969 |
|
lt_status=$lt_dlunknown |
12970 |
|
cat > conftest.$ac_ext <<EOF |
12971 |
|
#line 12971 "configure" |
12972 |
|
#include "confdefs.h" |
12973 |
|
|
12974 |
|
#if HAVE_DLFCN_H |
12975 |
|
#include <dlfcn.h> |
12976 |
|
#endif |
12977 |
|
|
12978 |
|
#include <stdio.h> |
12979 |
|
|
12980 |
|
#ifdef RTLD_GLOBAL |
12981 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
12982 |
|
#else |
12983 |
|
# ifdef DL_GLOBAL |
12984 |
|
# define LT_DLGLOBAL DL_GLOBAL |
12985 |
|
# else |
12986 |
|
# define LT_DLGLOBAL 0 |
12987 |
|
# endif |
12988 |
|
#endif |
12989 |
|
|
12990 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12991 |
|
find out it does not work in some platform. */ |
12992 |
|
#ifndef LT_DLLAZY_OR_NOW |
12993 |
|
# ifdef RTLD_LAZY |
12994 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
12995 |
|
# else |
12996 |
|
# ifdef DL_LAZY |
12997 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
12998 |
|
# else |
12999 |
|
# ifdef RTLD_NOW |
13000 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
13001 |
|
# else |
13002 |
|
# ifdef DL_NOW |
13003 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
13004 |
|
# else |
13005 |
|
# define LT_DLLAZY_OR_NOW 0 |
13006 |
|
# endif |
13007 |
|
# endif |
13008 |
|
# endif |
13009 |
|
# endif |
13010 |
|
#endif |
13011 |
|
|
13012 |
|
#ifdef __cplusplus |
13013 |
|
extern "C" void exit (int); |
13014 |
|
#endif |
13015 |
|
|
13016 |
|
void fnord() { int i=42;} |
13017 |
|
int main () |
13018 |
|
{ |
13019 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
13020 |
|
int status = $lt_dlunknown; |
13021 |
|
|
13022 |
|
if (self) |
13023 |
|
{ |
13024 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
13025 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
13026 |
|
/* dlclose (self); */ |
13027 |
|
} |
13028 |
|
|
13029 |
|
exit (status); |
13030 |
|
} |
13031 |
|
EOF |
13032 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13033 |
|
(eval $ac_link) 2>&5 |
13034 |
|
ac_status=$? |
13035 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13036 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
13037 |
|
(./conftest; exit; ) 2>/dev/null |
13038 |
|
lt_status=$? |
13039 |
|
case x$lt_status in |
13040 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
13041 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
13042 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
13043 |
|
esac |
13044 |
|
else : |
13045 |
|
# compilation failed |
13046 |
|
lt_cv_dlopen_self=no |
13047 |
|
fi |
13048 |
|
fi |
13049 |
|
rm -fr conftest* |
13050 |
|
|
13051 |
|
|
13052 |
|
fi |
13053 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
13054 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
13055 |
|
|
13056 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
13057 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
13058 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
13059 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
13060 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
13061 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13062 |
|
else |
13063 |
|
if test "$cross_compiling" = yes; then : |
13064 |
|
lt_cv_dlopen_self_static=cross |
13065 |
|
else |
13066 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
13067 |
|
lt_status=$lt_dlunknown |
13068 |
|
cat > conftest.$ac_ext <<EOF |
13069 |
|
#line 13069 "configure" |
13070 |
|
#include "confdefs.h" |
13071 |
|
|
13072 |
|
#if HAVE_DLFCN_H |
13073 |
|
#include <dlfcn.h> |
13074 |
|
#endif |
13075 |
|
|
13076 |
|
#include <stdio.h> |
13077 |
|
|
13078 |
|
#ifdef RTLD_GLOBAL |
13079 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
13080 |
|
#else |
13081 |
|
# ifdef DL_GLOBAL |
13082 |
|
# define LT_DLGLOBAL DL_GLOBAL |
13083 |
|
# else |
13084 |
|
# define LT_DLGLOBAL 0 |
13085 |
|
# endif |
13086 |
|
#endif |
13087 |
|
|
13088 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
13089 |
|
find out it does not work in some platform. */ |
13090 |
|
#ifndef LT_DLLAZY_OR_NOW |
13091 |
|
# ifdef RTLD_LAZY |
13092 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
13093 |
|
# else |
13094 |
|
# ifdef DL_LAZY |
13095 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
13096 |
|
# else |
13097 |
|
# ifdef RTLD_NOW |
13098 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
13099 |
|
# else |
13100 |
|
# ifdef DL_NOW |
13101 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
13102 |
|
# else |
13103 |
|
# define LT_DLLAZY_OR_NOW 0 |
13104 |
|
# endif |
13105 |
|
# endif |
13106 |
|
# endif |
13107 |
|
# endif |
13108 |
|
#endif |
13109 |
|
|
13110 |
|
#ifdef __cplusplus |
13111 |
|
extern "C" void exit (int); |
13112 |
|
#endif |
13113 |
|
|
13114 |
|
void fnord() { int i=42;} |
13115 |
|
int main () |
13116 |
|
{ |
13117 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
13118 |
|
int status = $lt_dlunknown; |
13119 |
|
|
13120 |
|
if (self) |
13121 |
|
{ |
13122 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
13123 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
13124 |
|
/* dlclose (self); */ |
13125 |
|
} |
13126 |
|
|
13127 |
|
exit (status); |
13128 |
|
} |
13129 |
|
EOF |
13130 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
13131 |
|
(eval $ac_link) 2>&5 |
13132 |
|
ac_status=$? |
13133 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13134 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
13135 |
|
(./conftest; exit; ) 2>/dev/null |
13136 |
|
lt_status=$? |
13137 |
|
case x$lt_status in |
13138 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
13139 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
13140 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
13141 |
|
esac |
13142 |
|
else : |
13143 |
|
# compilation failed |
13144 |
|
lt_cv_dlopen_self_static=no |
13145 |
|
fi |
13146 |
|
fi |
13147 |
|
rm -fr conftest* |
13148 |
|
|
13149 |
|
|
13150 |
|
fi |
13151 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
13152 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
13153 |
|
fi |
13154 |
|
|
13155 |
|
CPPFLAGS="$save_CPPFLAGS" |
13156 |
|
LDFLAGS="$save_LDFLAGS" |
13157 |
|
LIBS="$save_LIBS" |
13158 |
|
;; |
13159 |
|
esac |
13160 |
|
|
13161 |
|
case $lt_cv_dlopen_self in |
13162 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
13163 |
|
*) enable_dlopen_self=unknown ;; |
13164 |
|
esac |
13165 |
|
|
13166 |
|
case $lt_cv_dlopen_self_static in |
13167 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
13168 |
|
*) enable_dlopen_self_static=unknown ;; |
13169 |
|
esac |
13170 |
|
fi |
13171 |
|
|
13172 |
|
|
13173 |
|
# The else clause should only fire when bootstrapping the |
13174 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
13175 |
|
# with your package, and you will get complaints that there are |
13176 |
|
# no rules to generate ltmain.sh. |
13177 |
|
if test -f "$ltmain"; then |
13178 |
|
# See if we are running on zsh, and set the options which allow our commands through |
13179 |
|
# without removal of \ escapes. |
13180 |
|
if test -n "${ZSH_VERSION+set}" ; then |
13181 |
|
setopt NO_GLOB_SUBST |
13182 |
|
fi |
13183 |
|
# Now quote all the things that may contain metacharacters while being |
13184 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
13185 |
|
# variables and quote the copies for generation of the libtool script. |
13186 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
13187 |
|
SED SHELL STRIP \ |
13188 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13189 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13190 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
13191 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13192 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
13193 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13194 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
13195 |
|
compiler_CXX \ |
13196 |
|
CC_CXX \ |
13197 |
|
LD_CXX \ |
13198 |
|
lt_prog_compiler_wl_CXX \ |
13199 |
|
lt_prog_compiler_pic_CXX \ |
13200 |
|
lt_prog_compiler_static_CXX \ |
13201 |
|
lt_prog_compiler_no_builtin_flag_CXX \ |
13202 |
|
export_dynamic_flag_spec_CXX \ |
13203 |
|
thread_safe_flag_spec_CXX \ |
13204 |
|
whole_archive_flag_spec_CXX \ |
13205 |
|
enable_shared_with_static_runtimes_CXX \ |
13206 |
|
old_archive_cmds_CXX \ |
13207 |
|
old_archive_from_new_cmds_CXX \ |
13208 |
|
predep_objects_CXX \ |
13209 |
|
postdep_objects_CXX \ |
13210 |
|
predeps_CXX \ |
13211 |
|
postdeps_CXX \ |
13212 |
|
compiler_lib_search_path_CXX \ |
13213 |
|
archive_cmds_CXX \ |
13214 |
|
archive_expsym_cmds_CXX \ |
13215 |
|
postinstall_cmds_CXX \ |
13216 |
|
postuninstall_cmds_CXX \ |
13217 |
|
old_archive_from_expsyms_cmds_CXX \ |
13218 |
|
allow_undefined_flag_CXX \ |
13219 |
|
no_undefined_flag_CXX \ |
13220 |
|
export_symbols_cmds_CXX \ |
13221 |
|
hardcode_libdir_flag_spec_CXX \ |
13222 |
|
hardcode_libdir_flag_spec_ld_CXX \ |
13223 |
|
hardcode_libdir_separator_CXX \ |
13224 |
|
hardcode_automatic_CXX \ |
13225 |
|
module_cmds_CXX \ |
13226 |
|
module_expsym_cmds_CXX \ |
13227 |
|
lt_cv_prog_compiler_c_o_CXX \ |
13228 |
|
exclude_expsyms_CXX \ |
13229 |
|
include_expsyms_CXX; do |
13230 |
|
|
13231 |
|
case $var in |
13232 |
|
old_archive_cmds_CXX | \ |
13233 |
|
old_archive_from_new_cmds_CXX | \ |
13234 |
|
archive_cmds_CXX | \ |
13235 |
|
archive_expsym_cmds_CXX | \ |
13236 |
|
module_cmds_CXX | \ |
13237 |
|
module_expsym_cmds_CXX | \ |
13238 |
|
old_archive_from_expsyms_cmds_CXX | \ |
13239 |
|
export_symbols_cmds_CXX | \ |
13240 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13241 |
|
postinstall_cmds | postuninstall_cmds | \ |
13242 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
13243 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13244 |
|
# Double-quote double-evaled strings. |
13245 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13246 |
|
;; |
13247 |
|
*) |
13248 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13249 |
|
;; |
13250 |
|
esac |
13251 |
|
done |
13252 |
|
|
13253 |
|
case $lt_echo in |
13254 |
|
*'\$0 --fallback-echo"') |
13255 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13256 |
|
;; |
13257 |
|
esac |
13258 |
|
|
13259 |
|
cfgfile="$ofile" |
13260 |
|
|
13261 |
|
cat <<__EOF__ >> "$cfgfile" |
13262 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13263 |
|
|
13264 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13265 |
|
|
13266 |
|
# Shell to use when invoking shell scripts. |
13267 |
|
SHELL=$lt_SHELL |
13268 |
|
|
13269 |
|
# Whether or not to build shared libraries. |
13270 |
|
build_libtool_libs=$enable_shared |
13271 |
|
|
13272 |
|
# Whether or not to build static libraries. |
13273 |
|
build_old_libs=$enable_static |
13274 |
|
|
13275 |
|
# Whether or not to add -lc for building shared libraries. |
13276 |
|
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13277 |
|
|
13278 |
|
# Whether or not to disallow shared libs when runtime libs are static |
13279 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13280 |
|
|
13281 |
|
# Whether or not to optimize for fast installation. |
13282 |
|
fast_install=$enable_fast_install |
13283 |
|
|
13284 |
|
# The host system. |
13285 |
|
host_alias=$host_alias |
13286 |
|
host=$host |
13287 |
|
host_os=$host_os |
13288 |
|
|
13289 |
|
# The build system. |
13290 |
|
build_alias=$build_alias |
13291 |
|
build=$build |
13292 |
|
build_os=$build_os |
13293 |
|
|
13294 |
|
# An echo program that does not interpret backslashes. |
13295 |
|
echo=$lt_echo |
13296 |
|
|
13297 |
|
# The archiver. |
13298 |
|
AR=$lt_AR |
13299 |
|
AR_FLAGS=$lt_AR_FLAGS |
13300 |
|
|
13301 |
|
# A C compiler. |
13302 |
|
LTCC=$lt_LTCC |
13303 |
|
|
13304 |
|
# A language-specific compiler. |
13305 |
|
CC=$lt_compiler_CXX |
13306 |
|
|
13307 |
|
# Is the compiler the GNU C compiler? |
13308 |
|
with_gcc=$GCC_CXX |
13309 |
|
|
13310 |
|
# An ERE matcher. |
13311 |
|
EGREP=$lt_EGREP |
13312 |
|
|
13313 |
|
# The linker used to build libraries. |
13314 |
|
LD=$lt_LD_CXX |
13315 |
|
|
13316 |
|
# Whether we need hard or soft links. |
13317 |
|
LN_S=$lt_LN_S |
13318 |
|
|
13319 |
|
# A BSD-compatible nm program. |
13320 |
|
NM=$lt_NM |
13321 |
|
|
13322 |
|
# A symbol stripping program |
13323 |
|
STRIP=$lt_STRIP |
13324 |
|
|
13325 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
13326 |
|
MAGIC_CMD=$MAGIC_CMD |
13327 |
|
|
13328 |
|
# Used on cygwin: DLL creation program. |
13329 |
|
DLLTOOL="$DLLTOOL" |
13330 |
|
|
13331 |
|
# Used on cygwin: object dumper. |
13332 |
|
OBJDUMP="$OBJDUMP" |
13333 |
|
|
13334 |
|
# Used on cygwin: assembler. |
13335 |
|
AS="$AS" |
13336 |
|
|
13337 |
|
# The name of the directory that contains temporary libtool files. |
13338 |
|
objdir=$objdir |
13339 |
|
|
13340 |
|
# How to create reloadable object files. |
13341 |
|
reload_flag=$lt_reload_flag |
13342 |
|
reload_cmds=$lt_reload_cmds |
13343 |
|
|
13344 |
|
# How to pass a linker flag through the compiler. |
13345 |
|
wl=$lt_lt_prog_compiler_wl_CXX |
13346 |
|
|
13347 |
|
# Object file suffix (normally "o"). |
13348 |
|
objext="$ac_objext" |
13349 |
|
|
13350 |
|
# Old archive suffix (normally "a"). |
13351 |
|
libext="$libext" |
13352 |
|
|
13353 |
|
# Shared library suffix (normally ".so"). |
13354 |
|
shrext_cmds='$shrext_cmds' |
13355 |
|
|
13356 |
|
# Executable file suffix (normally ""). |
13357 |
|
exeext="$exeext" |
13358 |
|
|
13359 |
|
# Additional compiler flags for building library objects. |
13360 |
|
pic_flag=$lt_lt_prog_compiler_pic_CXX |
13361 |
|
pic_mode=$pic_mode |
13362 |
|
|
13363 |
|
# What is the maximum length of a command? |
13364 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
13365 |
|
|
13366 |
|
# Does compiler simultaneously support -c and -o options? |
13367 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13368 |
|
|
13369 |
|
# Must we lock files when doing compilation? |
13370 |
|
need_locks=$lt_need_locks |
13371 |
|
|
13372 |
|
# Do we need the lib prefix for modules? |
13373 |
|
need_lib_prefix=$need_lib_prefix |
13374 |
|
|
13375 |
|
# Do we need a version for libraries? |
13376 |
|
need_version=$need_version |
13377 |
|
|
13378 |
|
# Whether dlopen is supported. |
13379 |
|
dlopen_support=$enable_dlopen |
13380 |
|
|
13381 |
|
# Whether dlopen of programs is supported. |
13382 |
|
dlopen_self=$enable_dlopen_self |
13383 |
|
|
13384 |
|
# Whether dlopen of statically linked programs is supported. |
13385 |
|
dlopen_self_static=$enable_dlopen_self_static |
13386 |
|
|
13387 |
|
# Compiler flag to prevent dynamic linking. |
13388 |
|
link_static_flag=$lt_lt_prog_compiler_static_CXX |
13389 |
|
|
13390 |
|
# Compiler flag to turn off builtin functions. |
13391 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13392 |
|
|
13393 |
|
# Compiler flag to allow reflexive dlopens. |
13394 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13395 |
|
|
13396 |
|
# Compiler flag to generate shared objects directly from archives. |
13397 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13398 |
|
|
13399 |
|
# Compiler flag to generate thread-safe objects. |
13400 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13401 |
|
|
13402 |
|
# Library versioning type. |
13403 |
|
version_type=$version_type |
13404 |
|
|
13405 |
|
# Format of library name prefix. |
13406 |
|
libname_spec=$lt_libname_spec |
13407 |
|
|
13408 |
|
# List of archive names. First name is the real one, the rest are links. |
13409 |
|
# The last name is the one that the linker finds with -lNAME. |
13410 |
|
library_names_spec=$lt_library_names_spec |
13411 |
|
|
13412 |
|
# The coded name of the library, if different from the real name. |
13413 |
|
soname_spec=$lt_soname_spec |
13414 |
|
|
13415 |
|
# Commands used to build and install an old-style archive. |
13416 |
|
RANLIB=$lt_RANLIB |
13417 |
|
old_archive_cmds=$lt_old_archive_cmds_CXX |
13418 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
13419 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13420 |
|
|
13421 |
|
# Create an old-style archive from a shared archive. |
13422 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13423 |
|
|
13424 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
13425 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13426 |
|
|
13427 |
|
# Commands used to build and install a shared archive. |
13428 |
|
archive_cmds=$lt_archive_cmds_CXX |
13429 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13430 |
|
postinstall_cmds=$lt_postinstall_cmds |
13431 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
13432 |
|
|
13433 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
13434 |
|
module_cmds=$lt_module_cmds_CXX |
13435 |
|
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13436 |
|
|
13437 |
|
# Commands to strip libraries. |
13438 |
|
old_striplib=$lt_old_striplib |
13439 |
|
striplib=$lt_striplib |
13440 |
|
|
13441 |
|
# Dependencies to place before the objects being linked to create a |
13442 |
|
# shared library. |
13443 |
|
predep_objects=$lt_predep_objects_CXX |
13444 |
|
|
13445 |
|
# Dependencies to place after the objects being linked to create a |
13446 |
|
# shared library. |
13447 |
|
postdep_objects=$lt_postdep_objects_CXX |
13448 |
|
|
13449 |
|
# Dependencies to place before the objects being linked to create a |
13450 |
|
# shared library. |
13451 |
|
predeps=$lt_predeps_CXX |
13452 |
|
|
13453 |
|
# Dependencies to place after the objects being linked to create a |
13454 |
|
# shared library. |
13455 |
|
postdeps=$lt_postdeps_CXX |
13456 |
|
|
13457 |
|
# The library search path used internally by the compiler when linking |
13458 |
|
# a shared library. |
13459 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
13460 |
|
|
13461 |
|
# Method to check whether dependent libraries are shared objects. |
13462 |
|
deplibs_check_method=$lt_deplibs_check_method |
13463 |
|
|
13464 |
|
# Command to use when deplibs_check_method == file_magic. |
13465 |
|
file_magic_cmd=$lt_file_magic_cmd |
13466 |
|
|
13467 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
13468 |
|
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13469 |
|
|
13470 |
|
# Flag that forces no undefined symbols. |
13471 |
|
no_undefined_flag=$lt_no_undefined_flag_CXX |
13472 |
|
|
13473 |
|
# Commands used to finish a libtool library installation in a directory. |
13474 |
|
finish_cmds=$lt_finish_cmds |
13475 |
|
|
13476 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
13477 |
|
finish_eval=$lt_finish_eval |
13478 |
|
|
13479 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
13480 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13481 |
|
|
13482 |
|
# Transform the output of nm in a proper C declaration |
13483 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13484 |
|
|
13485 |
|
# Transform the output of nm in a C name address pair |
13486 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13487 |
|
|
13488 |
|
# This is the shared library runtime path variable. |
13489 |
|
runpath_var=$runpath_var |
13490 |
|
|
13491 |
|
# This is the shared library path variable. |
13492 |
|
shlibpath_var=$shlibpath_var |
13493 |
|
|
13494 |
|
# Is shlibpath searched before the hard-coded library search path? |
13495 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13496 |
|
|
13497 |
|
# How to hardcode a shared library path into an executable. |
13498 |
|
hardcode_action=$hardcode_action_CXX |
13499 |
|
|
13500 |
|
# Whether we should hardcode library paths into libraries. |
13501 |
|
hardcode_into_libs=$hardcode_into_libs |
13502 |
|
|
13503 |
|
# Flag to hardcode \$libdir into a binary during linking. |
13504 |
|
# This must work even if \$libdir does not exist. |
13505 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13506 |
|
|
13507 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
13508 |
|
# a binary during linking. This must work even if \$libdir does |
13509 |
|
# not exist. |
13510 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13511 |
|
|
13512 |
|
# Whether we need a single -rpath flag with a separated argument. |
13513 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13514 |
|
|
13515 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13516 |
|
# resulting binary. |
13517 |
|
hardcode_direct=$hardcode_direct_CXX |
13518 |
|
|
13519 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13520 |
|
# resulting binary. |
13521 |
|
hardcode_minus_L=$hardcode_minus_L_CXX |
13522 |
|
|
13523 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13524 |
|
# the resulting binary. |
13525 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13526 |
|
|
13527 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
13528 |
|
# and all subsequent libraries and executables linked against it. |
13529 |
|
hardcode_automatic=$hardcode_automatic_CXX |
13530 |
|
|
13531 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
13532 |
|
# restored at relink time. |
13533 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
13534 |
|
|
13535 |
|
# Whether libtool must link a program against all its dependency libraries. |
13536 |
|
link_all_deplibs=$link_all_deplibs_CXX |
13537 |
|
|
13538 |
|
# Compile-time system search path for libraries |
13539 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
13540 |
|
|
13541 |
|
# Run-time system search path for libraries |
13542 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13543 |
|
|
13544 |
|
# Fix the shell variable \$srcfile for the compiler. |
13545 |
|
fix_srcfile_path="$fix_srcfile_path_CXX" |
13546 |
|
|
13547 |
|
# Set to yes if exported symbols are required. |
13548 |
|
always_export_symbols=$always_export_symbols_CXX |
13549 |
|
|
13550 |
|
# The commands to list exported symbols. |
13551 |
|
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13552 |
|
|
13553 |
|
# The commands to extract the exported symbol list from a shared archive. |
13554 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13555 |
|
|
13556 |
|
# Symbols that should not be listed in the preloaded symbols. |
13557 |
|
exclude_expsyms=$lt_exclude_expsyms_CXX |
13558 |
|
|
13559 |
|
# Symbols that must always be exported. |
13560 |
|
include_expsyms=$lt_include_expsyms_CXX |
13561 |
|
|
13562 |
|
# ### END LIBTOOL TAG CONFIG: $tagname |
13563 |
|
|
13564 |
|
__EOF__ |
13565 |
|
|
13566 |
|
|
13567 |
|
else |
13568 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
13569 |
|
# `config.status --recheck' to rerun these tests and create the |
13570 |
|
# libtool script then. |
13571 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13572 |
|
if test -f "$ltmain_in"; then |
13573 |
|
test -f Makefile && make "$ltmain" |
13574 |
|
fi |
13575 |
|
fi |
13576 |
|
|
13577 |
|
|
13578 |
|
ac_ext=c |
13579 |
|
ac_cpp='$CPP $CPPFLAGS' |
13580 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13581 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13582 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13583 |
|
|
13584 |
|
CC=$lt_save_CC |
13585 |
|
LDCXX=$LD |
13586 |
|
LD=$lt_save_LD |
13587 |
|
GCC=$lt_save_GCC |
13588 |
|
with_gnu_ldcxx=$with_gnu_ld |
13589 |
|
with_gnu_ld=$lt_save_with_gnu_ld |
13590 |
|
lt_cv_path_LDCXX=$lt_cv_path_LD |
13591 |
|
lt_cv_path_LD=$lt_save_path_LD |
13592 |
|
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13593 |
|
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13594 |
|
|
13595 |
|
else |
13596 |
|
tagname="" |
13597 |
|
fi |
13598 |
|
;; |
13599 |
|
|
13600 |
|
F77) |
13601 |
|
if test -n "$F77" && test "X$F77" != "Xno"; then |
13602 |
|
|
13603 |
|
ac_ext=f |
13604 |
|
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13605 |
|
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13606 |
|
ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13607 |
|
|
13608 |
|
|
13609 |
|
archive_cmds_need_lc_F77=no |
13610 |
|
allow_undefined_flag_F77= |
13611 |
|
always_export_symbols_F77=no |
13612 |
|
archive_expsym_cmds_F77= |
13613 |
|
export_dynamic_flag_spec_F77= |
13614 |
|
hardcode_direct_F77=no |
13615 |
|
hardcode_libdir_flag_spec_F77= |
13616 |
|
hardcode_libdir_flag_spec_ld_F77= |
13617 |
|
hardcode_libdir_separator_F77= |
13618 |
|
hardcode_minus_L_F77=no |
13619 |
|
hardcode_automatic_F77=no |
13620 |
|
module_cmds_F77= |
13621 |
|
module_expsym_cmds_F77= |
13622 |
|
link_all_deplibs_F77=unknown |
13623 |
|
old_archive_cmds_F77=$old_archive_cmds |
13624 |
|
no_undefined_flag_F77= |
13625 |
|
whole_archive_flag_spec_F77= |
13626 |
|
enable_shared_with_static_runtimes_F77=no |
13627 |
|
|
13628 |
|
# Source file extension for f77 test sources. |
13629 |
|
ac_ext=f |
13630 |
|
|
13631 |
|
# Object file extension for compiled f77 test sources. |
13632 |
|
objext=o |
13633 |
|
objext_F77=$objext |
13634 |
|
|
13635 |
|
# Code to be used in simple compile tests |
13636 |
|
lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13637 |
|
|
13638 |
|
# Code to be used in simple link tests |
13639 |
|
lt_simple_link_test_code=" program t\n end\n" |
13640 |
|
|
13641 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13642 |
|
|
13643 |
|
# If no C compiler was specified, use CC. |
13644 |
|
LTCC=${LTCC-"$CC"} |
13645 |
|
|
13646 |
|
# Allow CC to be a program name with arguments. |
13647 |
|
compiler=$CC |
13648 |
|
|
13649 |
|
|
13650 |
|
# save warnings/boilerplate of simple test code |
13651 |
|
ac_outfile=conftest.$ac_objext |
13652 |
|
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13653 |
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
13654 |
|
_lt_compiler_boilerplate=`cat conftest.err` |
13655 |
|
$rm conftest* |
13656 |
|
|
13657 |
|
ac_outfile=conftest.$ac_objext |
13658 |
|
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13659 |
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
13660 |
|
_lt_linker_boilerplate=`cat conftest.err` |
13661 |
|
$rm conftest* |
13662 |
|
|
13663 |
|
|
13664 |
|
# Allow CC to be a program name with arguments. |
13665 |
|
lt_save_CC="$CC" |
13666 |
|
CC=${F77-"f77"} |
13667 |
|
compiler=$CC |
13668 |
|
compiler_F77=$CC |
13669 |
|
for cc_temp in $compiler""; do |
13670 |
|
case $cc_temp in |
13671 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13672 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13673 |
|
\-*) ;; |
13674 |
|
*) break;; |
13675 |
|
esac |
13676 |
|
done |
13677 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13678 |
|
|
13679 |
|
|
13680 |
|
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13681 |
|
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
13682 |
|
echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13683 |
|
echo "${ECHO_T}$can_build_shared" >&6 |
13684 |
|
|
13685 |
|
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13686 |
|
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
13687 |
|
test "$can_build_shared" = "no" && enable_shared=no |
13688 |
|
|
13689 |
|
# On AIX, shared libraries and static libraries use the same namespace, and |
13690 |
|
# are all built from PIC. |
13691 |
|
case "$host_os" in |
13692 |
|
aix3*) |
13693 |
|
test "$enable_shared" = yes && enable_static=no |
13694 |
|
if test -n "$RANLIB"; then |
13695 |
|
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13696 |
|
postinstall_cmds='$RANLIB $lib' |
13697 |
|
fi |
13698 |
|
;; |
13699 |
|
aix4* | aix5*) |
13700 |
|
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13701 |
|
test "$enable_shared" = yes && enable_static=no |
13702 |
|
fi |
13703 |
|
;; |
13704 |
|
esac |
13705 |
|
echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13706 |
|
echo "${ECHO_T}$enable_shared" >&6 |
13707 |
|
|
13708 |
|
echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13709 |
|
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
13710 |
|
# Make sure either enable_shared or enable_static is yes. |
13711 |
|
test "$enable_shared" = yes || enable_static=yes |
13712 |
|
echo "$as_me:$LINENO: result: $enable_static" >&5 |
13713 |
|
echo "${ECHO_T}$enable_static" >&6 |
13714 |
|
|
13715 |
|
test "$ld_shlibs_F77" = no && can_build_shared=no |
13716 |
|
|
13717 |
|
GCC_F77="$G77" |
13718 |
|
LD_F77="$LD" |
13719 |
|
|
13720 |
|
lt_prog_compiler_wl_F77= |
13721 |
|
lt_prog_compiler_pic_F77= |
13722 |
|
lt_prog_compiler_static_F77= |
13723 |
|
|
13724 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13725 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
13726 |
|
|
13727 |
|
if test "$GCC" = yes; then |
13728 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13729 |
|
lt_prog_compiler_static_F77='-static' |
13730 |
|
|
13731 |
|
case $host_os in |
13732 |
|
aix*) |
13733 |
|
# All AIX code is PIC. |
13734 |
|
if test "$host_cpu" = ia64; then |
13735 |
|
# AIX 5 now supports IA64 processor |
13736 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13737 |
|
fi |
13738 |
|
;; |
13739 |
|
|
13740 |
|
amigaos*) |
13741 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
13742 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
13743 |
|
# like `-m68040'. |
13744 |
|
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13745 |
|
;; |
13746 |
|
|
13747 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13748 |
|
# PIC is the default for these OSes. |
13749 |
|
;; |
13750 |
|
|
13751 |
|
mingw* | pw32* | os2*) |
13752 |
|
# This hack is so that the source file can tell whether it is being |
13753 |
|
# built for inclusion in a dll (and should export symbols for example). |
13754 |
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13755 |
|
;; |
13756 |
|
|
13757 |
|
darwin* | rhapsody*) |
13758 |
|
# PIC is the default on this platform |
13759 |
|
# Common symbols not allowed in MH_DYLIB files |
13760 |
|
lt_prog_compiler_pic_F77='-fno-common' |
13761 |
|
;; |
13762 |
|
|
13763 |
|
msdosdjgpp*) |
13764 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
13765 |
|
# on systems that don't support them. |
13766 |
|
lt_prog_compiler_can_build_shared_F77=no |
13767 |
|
enable_shared=no |
13768 |
|
;; |
13769 |
|
|
13770 |
|
sysv4*MP*) |
13771 |
|
if test -d /usr/nec; then |
13772 |
|
lt_prog_compiler_pic_F77=-Kconform_pic |
13773 |
|
fi |
13774 |
|
;; |
13775 |
|
|
13776 |
|
hpux*) |
13777 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13778 |
|
# not for PA HP-UX. |
13779 |
|
case "$host_cpu" in |
13780 |
|
hppa*64*|ia64*) |
13781 |
|
# +Z the default |
13782 |
|
;; |
13783 |
|
*) |
13784 |
|
lt_prog_compiler_pic_F77='-fPIC' |
13785 |
|
;; |
13786 |
|
esac |
13787 |
|
;; |
13788 |
|
|
13789 |
|
*) |
13790 |
|
lt_prog_compiler_pic_F77='-fPIC' |
13791 |
|
;; |
13792 |
|
esac |
13793 |
|
else |
13794 |
|
# PORTME Check for flag to pass linker flags through the system compiler. |
13795 |
|
case $host_os in |
13796 |
|
aix*) |
13797 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13798 |
|
if test "$host_cpu" = ia64; then |
13799 |
|
# AIX 5 now supports IA64 processor |
13800 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13801 |
|
else |
13802 |
|
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13803 |
|
fi |
13804 |
|
;; |
13805 |
|
darwin*) |
13806 |
|
# PIC is the default on this platform |
13807 |
|
# Common symbols not allowed in MH_DYLIB files |
13808 |
|
case $cc_basename in |
13809 |
|
xlc*) |
13810 |
|
lt_prog_compiler_pic_F77='-qnocommon' |
13811 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13812 |
|
;; |
13813 |
|
esac |
13814 |
|
;; |
13815 |
|
|
13816 |
|
mingw* | pw32* | os2*) |
13817 |
|
# This hack is so that the source file can tell whether it is being |
13818 |
|
# built for inclusion in a dll (and should export symbols for example). |
13819 |
|
lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13820 |
|
;; |
13821 |
|
|
13822 |
|
hpux9* | hpux10* | hpux11*) |
13823 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13824 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13825 |
|
# not for PA HP-UX. |
13826 |
|
case "$host_cpu" in |
13827 |
|
hppa*64*|ia64*) |
13828 |
|
# +Z the default |
13829 |
|
;; |
13830 |
|
*) |
13831 |
|
lt_prog_compiler_pic_F77='+Z' |
13832 |
|
;; |
13833 |
|
esac |
13834 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
13835 |
|
lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13836 |
|
;; |
13837 |
|
|
13838 |
|
irix5* | irix6* | nonstopux*) |
13839 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13840 |
|
# PIC (with -KPIC) is the default. |
13841 |
|
lt_prog_compiler_static_F77='-non_shared' |
13842 |
|
;; |
13843 |
|
|
13844 |
|
newsos6) |
13845 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13846 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13847 |
|
;; |
13848 |
|
|
13849 |
|
linux*) |
13850 |
|
case $cc_basename in |
13851 |
|
icc* | ecc*) |
13852 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13853 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13854 |
|
lt_prog_compiler_static_F77='-static' |
13855 |
|
;; |
13856 |
|
pgcc* | pgf77* | pgf90*) |
13857 |
|
# Portland Group compilers (*not* the Pentium gcc compiler, |
13858 |
|
# which looks to be a dead project) |
13859 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13860 |
|
lt_prog_compiler_pic_F77='-fpic' |
13861 |
|
lt_prog_compiler_static_F77='-static' |
13862 |
|
;; |
13863 |
|
ccc*) |
13864 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13865 |
|
# All Alpha code is PIC. |
13866 |
|
lt_prog_compiler_static_F77='-non_shared' |
13867 |
|
;; |
13868 |
|
esac |
13869 |
|
;; |
13870 |
|
|
13871 |
|
osf3* | osf4* | osf5*) |
13872 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13873 |
|
# All OSF/1 code is PIC. |
13874 |
|
lt_prog_compiler_static_F77='-non_shared' |
13875 |
|
;; |
13876 |
|
|
13877 |
|
sco3.2v5*) |
13878 |
|
lt_prog_compiler_pic_F77='-Kpic' |
13879 |
|
lt_prog_compiler_static_F77='-dn' |
13880 |
|
;; |
13881 |
|
|
13882 |
|
solaris*) |
13883 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13884 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13885 |
|
case $cc_basename in |
13886 |
|
f77* | f90* | f95*) |
13887 |
|
lt_prog_compiler_wl_F77='-Qoption ld ';; |
13888 |
|
*) |
13889 |
|
lt_prog_compiler_wl_F77='-Wl,';; |
13890 |
|
esac |
13891 |
|
;; |
13892 |
|
|
13893 |
|
sunos4*) |
13894 |
|
lt_prog_compiler_wl_F77='-Qoption ld ' |
13895 |
|
lt_prog_compiler_pic_F77='-PIC' |
13896 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13897 |
|
;; |
13898 |
|
|
13899 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13900 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13901 |
|
lt_prog_compiler_pic_F77='-KPIC' |
13902 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13903 |
|
;; |
13904 |
|
|
13905 |
|
sysv4*MP*) |
13906 |
|
if test -d /usr/nec ;then |
13907 |
|
lt_prog_compiler_pic_F77='-Kconform_pic' |
13908 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13909 |
|
fi |
13910 |
|
;; |
13911 |
|
|
13912 |
|
unicos*) |
13913 |
|
lt_prog_compiler_wl_F77='-Wl,' |
13914 |
|
lt_prog_compiler_can_build_shared_F77=no |
13915 |
|
;; |
13916 |
|
|
13917 |
|
uts4*) |
13918 |
|
lt_prog_compiler_pic_F77='-pic' |
13919 |
|
lt_prog_compiler_static_F77='-Bstatic' |
13920 |
|
;; |
13921 |
|
|
13922 |
|
*) |
13923 |
|
lt_prog_compiler_can_build_shared_F77=no |
13924 |
|
;; |
13925 |
|
esac |
13926 |
|
fi |
13927 |
|
|
13928 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13929 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
13930 |
|
|
13931 |
|
# |
13932 |
|
# Check to make sure the PIC flag actually works. |
13933 |
|
# |
13934 |
|
if test -n "$lt_prog_compiler_pic_F77"; then |
13935 |
|
|
13936 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13937 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
13938 |
|
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13939 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13940 |
|
else |
13941 |
|
lt_prog_compiler_pic_works_F77=no |
13942 |
|
ac_outfile=conftest.$ac_objext |
13943 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13944 |
|
lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13945 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
13946 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
13947 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
13948 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
13949 |
|
# The option is referenced via a variable to avoid confusing sed. |
13950 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
13951 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
13952 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13953 |
|
-e 's:$: $lt_compiler_flag:'` |
13954 |
|
(eval echo "\"\$as_me:13954: $lt_compile\"" >&5) |
13955 |
|
(eval "$lt_compile" 2>conftest.err) |
13956 |
|
ac_status=$? |
13957 |
|
cat conftest.err >&5 |
13958 |
|
echo "$as_me:13958: \$? = $ac_status" >&5 |
13959 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
13960 |
|
# The compiler can only warn and ignore the option if not recognized |
13961 |
|
# So say no if there are warnings other than the usual output. |
13962 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
13963 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
13964 |
|
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
13965 |
|
lt_prog_compiler_pic_works_F77=yes |
13966 |
|
fi |
13967 |
|
fi |
13968 |
|
$rm conftest* |
13969 |
|
|
13970 |
|
fi |
13971 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
13972 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
13973 |
|
|
13974 |
|
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
13975 |
|
case $lt_prog_compiler_pic_F77 in |
13976 |
|
"" | " "*) ;; |
13977 |
|
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
13978 |
|
esac |
13979 |
|
else |
13980 |
|
lt_prog_compiler_pic_F77= |
13981 |
|
lt_prog_compiler_can_build_shared_F77=no |
13982 |
|
fi |
13983 |
|
|
13984 |
|
fi |
13985 |
|
case "$host_os" in |
13986 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
13987 |
|
*djgpp*) |
13988 |
|
lt_prog_compiler_pic_F77= |
13989 |
|
;; |
13990 |
|
*) |
13991 |
|
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
13992 |
|
;; |
13993 |
|
esac |
13994 |
|
|
13995 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13996 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
13997 |
|
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
13998 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
13999 |
|
else |
14000 |
|
lt_cv_prog_compiler_c_o_F77=no |
14001 |
|
$rm -r conftest 2>/dev/null |
14002 |
|
mkdir conftest |
14003 |
|
cd conftest |
14004 |
|
mkdir out |
14005 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14006 |
|
|
14007 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
14008 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
14009 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
14010 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
14011 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
14012 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
14013 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
14014 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14015 |
|
-e 's:$: $lt_compiler_flag:'` |
14016 |
|
(eval echo "\"\$as_me:14016: $lt_compile\"" >&5) |
14017 |
|
(eval "$lt_compile" 2>out/conftest.err) |
14018 |
|
ac_status=$? |
14019 |
|
cat out/conftest.err >&5 |
14020 |
|
echo "$as_me:14020: \$? = $ac_status" >&5 |
14021 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14022 |
|
then |
14023 |
|
# The compiler can only warn and ignore the option if not recognized |
14024 |
|
# So say no if there are warnings |
14025 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
14026 |
|
$SED '/^$/d' out/conftest.err >out/conftest.er2 |
14027 |
|
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14028 |
|
lt_cv_prog_compiler_c_o_F77=yes |
14029 |
|
fi |
14030 |
|
fi |
14031 |
|
chmod u+w . |
14032 |
|
$rm conftest* |
14033 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
14034 |
|
# template instantiation |
14035 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14036 |
|
$rm out/* && rmdir out |
14037 |
|
cd .. |
14038 |
|
rmdir conftest |
14039 |
|
$rm conftest* |
14040 |
|
|
14041 |
|
fi |
14042 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14043 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
14044 |
|
|
14045 |
|
|
14046 |
|
hard_links="nottested" |
14047 |
|
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14048 |
|
# do not overwrite the value of need_locks provided by the user |
14049 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14050 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
14051 |
|
hard_links=yes |
14052 |
|
$rm conftest* |
14053 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14054 |
|
touch conftest.a |
14055 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
14056 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14057 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
14058 |
|
echo "${ECHO_T}$hard_links" >&6 |
14059 |
|
if test "$hard_links" = no; then |
14060 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14061 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14062 |
|
need_locks=warn |
14063 |
|
fi |
14064 |
|
else |
14065 |
|
need_locks=no |
14066 |
|
fi |
14067 |
|
|
14068 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14069 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
14070 |
|
|
14071 |
|
runpath_var= |
14072 |
|
allow_undefined_flag_F77= |
14073 |
|
enable_shared_with_static_runtimes_F77=no |
14074 |
|
archive_cmds_F77= |
14075 |
|
archive_expsym_cmds_F77= |
14076 |
|
old_archive_From_new_cmds_F77= |
14077 |
|
old_archive_from_expsyms_cmds_F77= |
14078 |
|
export_dynamic_flag_spec_F77= |
14079 |
|
whole_archive_flag_spec_F77= |
14080 |
|
thread_safe_flag_spec_F77= |
14081 |
|
hardcode_libdir_flag_spec_F77= |
14082 |
|
hardcode_libdir_flag_spec_ld_F77= |
14083 |
|
hardcode_libdir_separator_F77= |
14084 |
|
hardcode_direct_F77=no |
14085 |
|
hardcode_minus_L_F77=no |
14086 |
|
hardcode_shlibpath_var_F77=unsupported |
14087 |
|
link_all_deplibs_F77=unknown |
14088 |
|
hardcode_automatic_F77=no |
14089 |
|
module_cmds_F77= |
14090 |
|
module_expsym_cmds_F77= |
14091 |
|
always_export_symbols_F77=no |
14092 |
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14093 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
14094 |
|
# included in the symbol list |
14095 |
|
include_expsyms_F77= |
14096 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
14097 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
14098 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14099 |
|
# as well as any symbol that contains `d'. |
14100 |
|
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14101 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14102 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
14103 |
|
# the symbol is explicitly referenced. Since portable code cannot |
14104 |
|
# rely on this symbol name, it's probably fine to never include it in |
14105 |
|
# preloaded symbol tables. |
14106 |
|
extract_expsyms_cmds= |
14107 |
|
# Just being paranoid about ensuring that cc_basename is set. |
14108 |
|
for cc_temp in $compiler""; do |
14109 |
|
case $cc_temp in |
14110 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14111 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14112 |
|
\-*) ;; |
14113 |
|
*) break;; |
14114 |
|
esac |
14115 |
|
done |
14116 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14117 |
|
|
14118 |
|
case $host_os in |
14119 |
|
cygwin* | mingw* | pw32*) |
14120 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
14121 |
|
# When not using gcc, we currently assume that we are using |
14122 |
|
# Microsoft Visual C++. |
14123 |
|
if test "$GCC" != yes; then |
14124 |
|
with_gnu_ld=no |
14125 |
|
fi |
14126 |
|
;; |
14127 |
|
openbsd*) |
14128 |
|
with_gnu_ld=no |
14129 |
|
;; |
14130 |
|
esac |
14131 |
|
|
14132 |
|
ld_shlibs_F77=yes |
14133 |
|
if test "$with_gnu_ld" = yes; then |
14134 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
14135 |
|
wlarc='${wl}' |
14136 |
|
|
14137 |
|
# Set some defaults for GNU ld with shared library support. These |
14138 |
|
# are reset later if shared libraries are not supported. Putting them |
14139 |
|
# here allows them to be overridden if necessary. |
14140 |
|
runpath_var=LD_RUN_PATH |
14141 |
|
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14142 |
|
export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14143 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
14144 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14145 |
|
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14146 |
|
else |
14147 |
|
whole_archive_flag_spec_F77= |
14148 |
|
fi |
14149 |
|
supports_anon_versioning=no |
14150 |
|
case `$LD -v 2>/dev/null` in |
14151 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14152 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14153 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14154 |
|
*\ 2.11.*) ;; # other 2.11 versions |
14155 |
|
*) supports_anon_versioning=yes ;; |
14156 |
|
esac |
14157 |
|
|
14158 |
|
# See if GNU ld supports shared libraries. |
14159 |
|
case $host_os in |
14160 |
|
aix3* | aix4* | aix5*) |
14161 |
|
# On AIX/PPC, the GNU linker is very broken |
14162 |
|
if test "$host_cpu" != ia64; then |
14163 |
|
ld_shlibs_F77=no |
14164 |
|
cat <<EOF 1>&2 |
14165 |
|
|
14166 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14167 |
|
*** to be unable to reliably create shared libraries on AIX. |
14168 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
14169 |
|
*** really care for shared libraries, you may want to modify your PATH |
14170 |
|
*** so that a non-GNU linker is found, and then restart. |
14171 |
|
|
14172 |
|
EOF |
14173 |
|
fi |
14174 |
|
;; |
14175 |
|
|
14176 |
|
amigaos*) |
14177 |
|
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)' |
14178 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14179 |
|
hardcode_minus_L_F77=yes |
14180 |
|
|
14181 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14182 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
14183 |
|
# to version 4, is to share data among multiple programs linked |
14184 |
|
# with the same dynamic library. Since this doesn't match the |
14185 |
|
# behavior of shared libraries on other platforms, we can't use |
14186 |
|
# them. |
14187 |
|
ld_shlibs_F77=no |
14188 |
|
;; |
14189 |
|
|
14190 |
|
beos*) |
14191 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14192 |
|
allow_undefined_flag_F77=unsupported |
14193 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14194 |
|
# support --undefined. This deserves some investigation. FIXME |
14195 |
|
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14196 |
|
else |
14197 |
|
ld_shlibs_F77=no |
14198 |
|
fi |
14199 |
|
;; |
14200 |
|
|
14201 |
|
cygwin* | mingw* | pw32*) |
14202 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14203 |
|
# as there is no search path for DLLs. |
14204 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14205 |
|
allow_undefined_flag_F77=unsupported |
14206 |
|
always_export_symbols_F77=no |
14207 |
|
enable_shared_with_static_runtimes_F77=yes |
14208 |
|
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14209 |
|
|
14210 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14211 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
14212 |
|
# If the export-symbols file already is a .def file (1st line |
14213 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
14214 |
|
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14215 |
|
cp $export_symbols $output_objdir/$soname.def; |
14216 |
|
else |
14217 |
|
echo EXPORTS > $output_objdir/$soname.def; |
14218 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
14219 |
|
fi~ |
14220 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
14221 |
|
else |
14222 |
|
ld_shlibs_F77=no |
14223 |
|
fi |
14224 |
|
;; |
14225 |
|
|
14226 |
|
linux*) |
14227 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14228 |
|
tmp_addflag= |
14229 |
|
case $cc_basename,$host_cpu in |
14230 |
|
pgcc*) # Portland Group C compiler |
14231 |
|
whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14232 |
|
tmp_addflag=' $pic_flag' |
14233 |
|
;; |
14234 |
|
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
14235 |
|
whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14236 |
|
tmp_addflag=' $pic_flag -Mnomain' ;; |
14237 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14238 |
|
tmp_addflag=' -i_dynamic' ;; |
14239 |
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14240 |
|
tmp_addflag=' -i_dynamic -nofor_main' ;; |
14241 |
|
ifc* | ifort*) # Intel Fortran compiler |
14242 |
|
tmp_addflag=' -nofor_main' ;; |
14243 |
|
esac |
14244 |
|
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14245 |
|
|
14246 |
|
if test $supports_anon_versioning = yes; then |
14247 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14248 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14249 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
14250 |
|
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14251 |
|
fi |
14252 |
|
else |
14253 |
|
ld_shlibs_F77=no |
14254 |
|
fi |
14255 |
|
;; |
14256 |
|
|
14257 |
|
netbsd*) |
14258 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14259 |
|
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14260 |
|
wlarc= |
14261 |
|
else |
14262 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14263 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14264 |
|
fi |
14265 |
|
;; |
14266 |
|
|
14267 |
|
solaris* | sysv5*) |
14268 |
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14269 |
|
ld_shlibs_F77=no |
14270 |
|
cat <<EOF 1>&2 |
14271 |
|
|
14272 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14273 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
14274 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
14275 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
14276 |
|
*** your PATH or compiler configuration so that the native linker is |
14277 |
|
*** used, and then restart. |
14278 |
|
|
14279 |
|
EOF |
14280 |
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14281 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14282 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14283 |
|
else |
14284 |
|
ld_shlibs_F77=no |
14285 |
|
fi |
14286 |
|
;; |
14287 |
|
|
14288 |
|
sunos4*) |
14289 |
|
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14290 |
|
wlarc= |
14291 |
|
hardcode_direct_F77=yes |
14292 |
|
hardcode_shlibpath_var_F77=no |
14293 |
|
;; |
14294 |
|
|
14295 |
|
*) |
14296 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14297 |
|
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14298 |
|
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14299 |
|
else |
14300 |
|
ld_shlibs_F77=no |
14301 |
|
fi |
14302 |
|
;; |
14303 |
|
esac |
14304 |
|
|
14305 |
|
if test "$ld_shlibs_F77" = no; then |
14306 |
|
runpath_var= |
14307 |
|
hardcode_libdir_flag_spec_F77= |
14308 |
|
export_dynamic_flag_spec_F77= |
14309 |
|
whole_archive_flag_spec_F77= |
14310 |
|
fi |
14311 |
|
else |
14312 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
14313 |
|
case $host_os in |
14314 |
|
aix3*) |
14315 |
|
allow_undefined_flag_F77=unsupported |
14316 |
|
always_export_symbols_F77=yes |
14317 |
|
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' |
14318 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
14319 |
|
# are no directories specified by -L. |
14320 |
|
hardcode_minus_L_F77=yes |
14321 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
14322 |
|
# Neither direct hardcoding nor static linking is supported with a |
14323 |
|
# broken collect2. |
14324 |
|
hardcode_direct_F77=unsupported |
14325 |
|
fi |
14326 |
|
;; |
14327 |
|
|
14328 |
|
aix4* | aix5*) |
14329 |
|
if test "$host_cpu" = ia64; then |
14330 |
|
# On IA64, the linker does run time linking by default, so we don't |
14331 |
|
# have to do anything special. |
14332 |
|
aix_use_runtimelinking=no |
14333 |
|
exp_sym_flag='-Bexport' |
14334 |
|
no_entry_flag="" |
14335 |
|
else |
14336 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
14337 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
14338 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14339 |
|
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' |
14340 |
|
else |
14341 |
|
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' |
14342 |
|
fi |
14343 |
|
aix_use_runtimelinking=no |
14344 |
|
|
14345 |
|
# Test if we are trying to use run time linking or normal |
14346 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14347 |
|
# need to do runtime linking. |
14348 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14349 |
|
for ld_flag in $LDFLAGS; do |
14350 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14351 |
|
aix_use_runtimelinking=yes |
14352 |
|
break |
14353 |
|
fi |
14354 |
|
done |
14355 |
|
esac |
14356 |
|
|
14357 |
|
exp_sym_flag='-bexport' |
14358 |
|
no_entry_flag='-bnoentry' |
14359 |
|
fi |
14360 |
|
|
14361 |
|
# When large executables or shared objects are built, AIX ld can |
14362 |
|
# have problems creating the table of contents. If linking a library |
14363 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
14364 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14365 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14366 |
|
|
14367 |
|
archive_cmds_F77='' |
14368 |
|
hardcode_direct_F77=yes |
14369 |
|
hardcode_libdir_separator_F77=':' |
14370 |
|
link_all_deplibs_F77=yes |
14371 |
|
|
14372 |
|
if test "$GCC" = yes; then |
14373 |
|
case $host_os in aix4.[012]|aix4.[012].*) |
14374 |
|
# We only want to do this on AIX 4.2 and lower, the check |
14375 |
|
# below for broken collect2 doesn't work under 4.3+ |
14376 |
|
collect2name=`${CC} -print-prog-name=collect2` |
14377 |
|
if test -f "$collect2name" && \ |
14378 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
14379 |
|
then |
14380 |
|
# We have reworked collect2 |
14381 |
|
hardcode_direct_F77=yes |
14382 |
|
else |
14383 |
|
# We have old collect2 |
14384 |
|
hardcode_direct_F77=unsupported |
14385 |
|
# It fails to find uninstalled libraries when the uninstalled |
14386 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
14387 |
|
# to unsupported forces relinking |
14388 |
|
hardcode_minus_L_F77=yes |
14389 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14390 |
|
hardcode_libdir_separator_F77= |
14391 |
|
fi |
14392 |
|
esac |
14393 |
|
shared_flag='-shared' |
14394 |
|
if test "$aix_use_runtimelinking" = yes; then |
14395 |
|
shared_flag="$shared_flag "'${wl}-G' |
14396 |
|
fi |
14397 |
|
else |
14398 |
|
# not using gcc |
14399 |
|
if test "$host_cpu" = ia64; then |
14400 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14401 |
|
# chokes on -Wl,-G. The following line is correct: |
14402 |
|
shared_flag='-G' |
14403 |
|
else |
14404 |
|
if test "$aix_use_runtimelinking" = yes; then |
14405 |
|
shared_flag='${wl}-G' |
14406 |
|
else |
14407 |
|
shared_flag='${wl}-bM:SRE' |
14408 |
|
fi |
14409 |
|
fi |
14410 |
|
fi |
14411 |
|
|
14412 |
|
# It seems that -bexpall does not export symbols beginning with |
14413 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
14414 |
|
always_export_symbols_F77=yes |
14415 |
|
if test "$aix_use_runtimelinking" = yes; then |
14416 |
|
# Warning - without using the other runtime loading flags (-brtl), |
14417 |
|
# -berok will link without error, but may produce a broken library. |
14418 |
|
allow_undefined_flag_F77='-berok' |
14419 |
|
# Determine the default libpath from the value encoded in an empty executable. |
14420 |
|
cat >conftest.$ac_ext <<_ACEOF |
14421 |
|
program main |
14422 |
|
|
14423 |
|
end |
14424 |
|
_ACEOF |
14425 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
14426 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14427 |
|
(eval $ac_link) 2>conftest.er1 |
14428 |
|
ac_status=$? |
14429 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
14430 |
|
rm -f conftest.er1 |
14431 |
|
cat conftest.err >&5 |
14432 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14433 |
|
(exit $ac_status); } && |
14434 |
|
{ ac_try='test -z "$ac_f77_werror_flag" |
14435 |
|
|| test ! -s conftest.err' |
14436 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14437 |
|
(eval $ac_try) 2>&5 |
14438 |
|
ac_status=$? |
14439 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14440 |
|
(exit $ac_status); }; } && |
14441 |
|
{ ac_try='test -s conftest$ac_exeext' |
14442 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14443 |
|
(eval $ac_try) 2>&5 |
14444 |
|
ac_status=$? |
14445 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14446 |
|
(exit $ac_status); }; }; then |
14447 |
|
|
14448 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14449 |
|
}'` |
14450 |
|
# Check for a 64-bit object if we didn't find anything. |
14451 |
|
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; } |
14452 |
|
}'`; fi |
14453 |
|
else |
14454 |
|
echo "$as_me: failed program was:" >&5 |
14455 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
14456 |
|
|
14457 |
|
fi |
14458 |
|
rm -f conftest.err conftest.$ac_objext \ |
14459 |
|
conftest$ac_exeext conftest.$ac_ext |
14460 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14461 |
|
|
14462 |
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14463 |
|
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" |
14464 |
|
else |
14465 |
|
if test "$host_cpu" = ia64; then |
14466 |
|
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14467 |
|
allow_undefined_flag_F77="-z nodefs" |
14468 |
|
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" |
14469 |
|
else |
14470 |
|
# Determine the default libpath from the value encoded in an empty executable. |
14471 |
|
cat >conftest.$ac_ext <<_ACEOF |
14472 |
|
program main |
14473 |
|
|
14474 |
|
end |
14475 |
|
_ACEOF |
14476 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
14477 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14478 |
|
(eval $ac_link) 2>conftest.er1 |
14479 |
|
ac_status=$? |
14480 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
14481 |
|
rm -f conftest.er1 |
14482 |
|
cat conftest.err >&5 |
14483 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14484 |
|
(exit $ac_status); } && |
14485 |
|
{ ac_try='test -z "$ac_f77_werror_flag" |
14486 |
|
|| test ! -s conftest.err' |
14487 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14488 |
|
(eval $ac_try) 2>&5 |
14489 |
|
ac_status=$? |
14490 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14491 |
|
(exit $ac_status); }; } && |
14492 |
|
{ ac_try='test -s conftest$ac_exeext' |
14493 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14494 |
|
(eval $ac_try) 2>&5 |
14495 |
|
ac_status=$? |
14496 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14497 |
|
(exit $ac_status); }; }; then |
14498 |
|
|
14499 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14500 |
|
}'` |
14501 |
|
# Check for a 64-bit object if we didn't find anything. |
14502 |
|
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; } |
14503 |
|
}'`; fi |
14504 |
|
else |
14505 |
|
echo "$as_me: failed program was:" >&5 |
14506 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
14507 |
|
|
14508 |
|
fi |
14509 |
|
rm -f conftest.err conftest.$ac_objext \ |
14510 |
|
conftest$ac_exeext conftest.$ac_ext |
14511 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14512 |
|
|
14513 |
|
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14514 |
|
# Warning - without using the other run time loading flags, |
14515 |
|
# -berok will link without error, but may produce a broken library. |
14516 |
|
no_undefined_flag_F77=' ${wl}-bernotok' |
14517 |
|
allow_undefined_flag_F77=' ${wl}-berok' |
14518 |
|
# -bexpall does not export symbols beginning with underscore (_) |
14519 |
|
always_export_symbols_F77=yes |
14520 |
|
# Exported symbols can be pulled into shared objects from archives |
14521 |
|
whole_archive_flag_spec_F77=' ' |
14522 |
|
archive_cmds_need_lc_F77=yes |
14523 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
14524 |
|
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' |
14525 |
|
fi |
14526 |
|
fi |
14527 |
|
;; |
14528 |
|
|
14529 |
|
amigaos*) |
14530 |
|
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)' |
14531 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14532 |
|
hardcode_minus_L_F77=yes |
14533 |
|
# see comment about different semantics on the GNU ld section |
14534 |
|
ld_shlibs_F77=no |
14535 |
|
;; |
14536 |
|
|
14537 |
|
bsdi[45]*) |
14538 |
|
export_dynamic_flag_spec_F77=-rdynamic |
14539 |
|
;; |
14540 |
|
|
14541 |
|
cygwin* | mingw* | pw32*) |
14542 |
|
# When not using gcc, we currently assume that we are using |
14543 |
|
# Microsoft Visual C++. |
14544 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
14545 |
|
# no search path for DLLs. |
14546 |
|
hardcode_libdir_flag_spec_F77=' ' |
14547 |
|
allow_undefined_flag_F77=unsupported |
14548 |
|
# Tell ltmain to make .lib files, not .a files. |
14549 |
|
libext=lib |
14550 |
|
# Tell ltmain to make .dll files, not .so files. |
14551 |
|
shrext_cmds=".dll" |
14552 |
|
# FIXME: Setting linknames here is a bad hack. |
14553 |
|
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14554 |
|
# The linker will automatically build a .lib file if we build a DLL. |
14555 |
|
old_archive_From_new_cmds_F77='true' |
14556 |
|
# FIXME: Should let the user specify the lib program. |
14557 |
|
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14558 |
|
fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14559 |
|
enable_shared_with_static_runtimes_F77=yes |
14560 |
|
;; |
14561 |
|
|
14562 |
|
darwin* | rhapsody*) |
14563 |
|
case "$host_os" in |
14564 |
|
rhapsody* | darwin1.[012]) |
14565 |
|
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14566 |
|
;; |
14567 |
|
*) # Darwin 1.3 on |
14568 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14569 |
|
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14570 |
|
else |
14571 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
14572 |
|
10.[012]) |
14573 |
|
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14574 |
|
;; |
14575 |
|
10.*) |
14576 |
|
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14577 |
|
;; |
14578 |
|
esac |
14579 |
|
fi |
14580 |
|
;; |
14581 |
|
esac |
14582 |
|
archive_cmds_need_lc_F77=no |
14583 |
|
hardcode_direct_F77=no |
14584 |
|
hardcode_automatic_F77=yes |
14585 |
|
hardcode_shlibpath_var_F77=unsupported |
14586 |
|
whole_archive_flag_spec_F77='' |
14587 |
|
link_all_deplibs_F77=yes |
14588 |
|
if test "$GCC" = yes ; then |
14589 |
|
output_verbose_link_cmd='echo' |
14590 |
|
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14591 |
|
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14592 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
14593 |
|
archive_expsym_cmds_F77='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}' |
14594 |
|
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}' |
14595 |
|
else |
14596 |
|
case $cc_basename in |
14597 |
|
xlc*) |
14598 |
|
output_verbose_link_cmd='echo' |
14599 |
|
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14600 |
|
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14601 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
14602 |
|
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14603 |
|
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}' |
14604 |
|
;; |
14605 |
|
*) |
14606 |
|
ld_shlibs_F77=no |
14607 |
|
;; |
14608 |
|
esac |
14609 |
|
fi |
14610 |
|
;; |
14611 |
|
|
14612 |
|
dgux*) |
14613 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14614 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14615 |
|
hardcode_shlibpath_var_F77=no |
14616 |
|
;; |
14617 |
|
|
14618 |
|
freebsd1*) |
14619 |
|
ld_shlibs_F77=no |
14620 |
|
;; |
14621 |
|
|
14622 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14623 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
14624 |
|
# does not break anything, and helps significantly (at the cost of a little |
14625 |
|
# extra space). |
14626 |
|
freebsd2.2*) |
14627 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14628 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14629 |
|
hardcode_direct_F77=yes |
14630 |
|
hardcode_shlibpath_var_F77=no |
14631 |
|
;; |
14632 |
|
|
14633 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14634 |
|
freebsd2*) |
14635 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14636 |
|
hardcode_direct_F77=yes |
14637 |
|
hardcode_minus_L_F77=yes |
14638 |
|
hardcode_shlibpath_var_F77=no |
14639 |
|
;; |
14640 |
|
|
14641 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14642 |
|
freebsd* | kfreebsd*-gnu | dragonfly*) |
14643 |
|
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14644 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14645 |
|
hardcode_direct_F77=yes |
14646 |
|
hardcode_shlibpath_var_F77=no |
14647 |
|
;; |
14648 |
|
|
14649 |
|
hpux9*) |
14650 |
|
if test "$GCC" = yes; then |
14651 |
|
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' |
14652 |
|
else |
14653 |
|
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' |
14654 |
|
fi |
14655 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14656 |
|
hardcode_libdir_separator_F77=: |
14657 |
|
hardcode_direct_F77=yes |
14658 |
|
|
14659 |
|
# hardcode_minus_L: Not really in the search PATH, |
14660 |
|
# but as the default location of the library. |
14661 |
|
hardcode_minus_L_F77=yes |
14662 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14663 |
|
;; |
14664 |
|
|
14665 |
|
hpux10* | hpux11*) |
14666 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14667 |
|
case "$host_cpu" in |
14668 |
|
hppa*64*|ia64*) |
14669 |
|
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14670 |
|
;; |
14671 |
|
*) |
14672 |
|
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14673 |
|
;; |
14674 |
|
esac |
14675 |
|
else |
14676 |
|
case "$host_cpu" in |
14677 |
|
hppa*64*|ia64*) |
14678 |
|
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
14679 |
|
;; |
14680 |
|
*) |
14681 |
|
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14682 |
|
;; |
14683 |
|
esac |
14684 |
|
fi |
14685 |
|
if test "$with_gnu_ld" = no; then |
14686 |
|
case "$host_cpu" in |
14687 |
|
hppa*64*) |
14688 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14689 |
|
hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14690 |
|
hardcode_libdir_separator_F77=: |
14691 |
|
hardcode_direct_F77=no |
14692 |
|
hardcode_shlibpath_var_F77=no |
14693 |
|
;; |
14694 |
|
ia64*) |
14695 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14696 |
|
hardcode_direct_F77=no |
14697 |
|
hardcode_shlibpath_var_F77=no |
14698 |
|
|
14699 |
|
# hardcode_minus_L: Not really in the search PATH, |
14700 |
|
# but as the default location of the library. |
14701 |
|
hardcode_minus_L_F77=yes |
14702 |
|
;; |
14703 |
|
*) |
14704 |
|
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14705 |
|
hardcode_libdir_separator_F77=: |
14706 |
|
hardcode_direct_F77=yes |
14707 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14708 |
|
|
14709 |
|
# hardcode_minus_L: Not really in the search PATH, |
14710 |
|
# but as the default location of the library. |
14711 |
|
hardcode_minus_L_F77=yes |
14712 |
|
;; |
14713 |
|
esac |
14714 |
|
fi |
14715 |
|
;; |
14716 |
|
|
14717 |
|
irix5* | irix6* | nonstopux*) |
14718 |
|
if test "$GCC" = yes; then |
14719 |
|
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' |
14720 |
|
else |
14721 |
|
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' |
14722 |
|
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14723 |
|
fi |
14724 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14725 |
|
hardcode_libdir_separator_F77=: |
14726 |
|
link_all_deplibs_F77=yes |
14727 |
|
;; |
14728 |
|
|
14729 |
|
netbsd*) |
14730 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14731 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14732 |
|
else |
14733 |
|
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14734 |
|
fi |
14735 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14736 |
|
hardcode_direct_F77=yes |
14737 |
|
hardcode_shlibpath_var_F77=no |
14738 |
|
;; |
14739 |
|
|
14740 |
|
newsos6) |
14741 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14742 |
|
hardcode_direct_F77=yes |
14743 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14744 |
|
hardcode_libdir_separator_F77=: |
14745 |
|
hardcode_shlibpath_var_F77=no |
14746 |
|
;; |
14747 |
|
|
14748 |
|
openbsd*) |
14749 |
|
hardcode_direct_F77=yes |
14750 |
|
hardcode_shlibpath_var_F77=no |
14751 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14752 |
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14753 |
|
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14754 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14755 |
|
export_dynamic_flag_spec_F77='${wl}-E' |
14756 |
|
else |
14757 |
|
case $host_os in |
14758 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14759 |
|
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14760 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14761 |
|
;; |
14762 |
|
*) |
14763 |
|
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14764 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14765 |
|
;; |
14766 |
|
esac |
14767 |
|
fi |
14768 |
|
;; |
14769 |
|
|
14770 |
|
os2*) |
14771 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14772 |
|
hardcode_minus_L_F77=yes |
14773 |
|
allow_undefined_flag_F77=unsupported |
14774 |
|
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' |
14775 |
|
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14776 |
|
;; |
14777 |
|
|
14778 |
|
osf3*) |
14779 |
|
if test "$GCC" = yes; then |
14780 |
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14781 |
|
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' |
14782 |
|
else |
14783 |
|
allow_undefined_flag_F77=' -expect_unresolved \*' |
14784 |
|
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' |
14785 |
|
fi |
14786 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14787 |
|
hardcode_libdir_separator_F77=: |
14788 |
|
;; |
14789 |
|
|
14790 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
14791 |
|
if test "$GCC" = yes; then |
14792 |
|
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14793 |
|
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' |
14794 |
|
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14795 |
|
else |
14796 |
|
allow_undefined_flag_F77=' -expect_unresolved \*' |
14797 |
|
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' |
14798 |
|
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~ |
14799 |
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
14800 |
|
|
14801 |
|
# Both c and cxx compiler support -rpath directly |
14802 |
|
hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14803 |
|
fi |
14804 |
|
hardcode_libdir_separator_F77=: |
14805 |
|
;; |
14806 |
|
|
14807 |
|
sco3.2v5*) |
14808 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14809 |
|
hardcode_shlibpath_var_F77=no |
14810 |
|
export_dynamic_flag_spec_F77='${wl}-Bexport' |
14811 |
|
runpath_var=LD_RUN_PATH |
14812 |
|
hardcode_runpath_var=yes |
14813 |
|
;; |
14814 |
|
|
14815 |
|
solaris*) |
14816 |
|
no_undefined_flag_F77=' -z text' |
14817 |
|
if test "$GCC" = yes; then |
14818 |
|
wlarc='${wl}' |
14819 |
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14820 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14821 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14822 |
|
else |
14823 |
|
wlarc='' |
14824 |
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14825 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14826 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14827 |
|
fi |
14828 |
|
hardcode_libdir_flag_spec_F77='-R$libdir' |
14829 |
|
hardcode_shlibpath_var_F77=no |
14830 |
|
case $host_os in |
14831 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
14832 |
|
*) |
14833 |
|
# The compiler driver will combine linker options so we |
14834 |
|
# cannot just pass the convience library names through |
14835 |
|
# without $wl, iff we do not link with $LD. |
14836 |
|
# Luckily, gcc supports the same syntax we need for Sun Studio. |
14837 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
14838 |
|
case $wlarc in |
14839 |
|
'') |
14840 |
|
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14841 |
|
*) |
14842 |
|
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
14843 |
|
esac ;; |
14844 |
|
esac |
14845 |
|
link_all_deplibs_F77=yes |
14846 |
|
;; |
14847 |
|
|
14848 |
|
sunos4*) |
14849 |
|
if test "x$host_vendor" = xsequent; then |
14850 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
14851 |
|
# files that make .init and .fini sections work. |
14852 |
|
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14853 |
|
else |
14854 |
|
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14855 |
|
fi |
14856 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14857 |
|
hardcode_direct_F77=yes |
14858 |
|
hardcode_minus_L_F77=yes |
14859 |
|
hardcode_shlibpath_var_F77=no |
14860 |
|
;; |
14861 |
|
|
14862 |
|
sysv4) |
14863 |
|
case $host_vendor in |
14864 |
|
sni) |
14865 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14866 |
|
hardcode_direct_F77=yes # is this really true??? |
14867 |
|
;; |
14868 |
|
siemens) |
14869 |
|
## LD is ld it makes a PLAMLIB |
14870 |
|
## CC just makes a GrossModule. |
14871 |
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14872 |
|
reload_cmds_F77='$CC -r -o $output$reload_objs' |
14873 |
|
hardcode_direct_F77=no |
14874 |
|
;; |
14875 |
|
motorola) |
14876 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14877 |
|
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
14878 |
|
;; |
14879 |
|
esac |
14880 |
|
runpath_var='LD_RUN_PATH' |
14881 |
|
hardcode_shlibpath_var_F77=no |
14882 |
|
;; |
14883 |
|
|
14884 |
|
sysv4.3*) |
14885 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14886 |
|
hardcode_shlibpath_var_F77=no |
14887 |
|
export_dynamic_flag_spec_F77='-Bexport' |
14888 |
|
;; |
14889 |
|
|
14890 |
|
sysv4*MP*) |
14891 |
|
if test -d /usr/nec; then |
14892 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14893 |
|
hardcode_shlibpath_var_F77=no |
14894 |
|
runpath_var=LD_RUN_PATH |
14895 |
|
hardcode_runpath_var=yes |
14896 |
|
ld_shlibs_F77=yes |
14897 |
|
fi |
14898 |
|
;; |
14899 |
|
|
14900 |
|
sysv4.2uw2*) |
14901 |
|
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14902 |
|
hardcode_direct_F77=yes |
14903 |
|
hardcode_minus_L_F77=no |
14904 |
|
hardcode_shlibpath_var_F77=no |
14905 |
|
hardcode_runpath_var=yes |
14906 |
|
runpath_var=LD_RUN_PATH |
14907 |
|
;; |
14908 |
|
|
14909 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
14910 |
|
no_undefined_flag_F77='${wl}-z ${wl}text' |
14911 |
|
if test "$GCC" = yes; then |
14912 |
|
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14913 |
|
else |
14914 |
|
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14915 |
|
fi |
14916 |
|
runpath_var='LD_RUN_PATH' |
14917 |
|
hardcode_shlibpath_var_F77=no |
14918 |
|
;; |
14919 |
|
|
14920 |
|
sysv5*) |
14921 |
|
no_undefined_flag_F77=' -z text' |
14922 |
|
# $CC -shared without GNU ld will not create a library from C++ |
14923 |
|
# object files and a static libstdc++, better avoid it by now |
14924 |
|
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14925 |
|
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14926 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14927 |
|
hardcode_libdir_flag_spec_F77= |
14928 |
|
hardcode_shlibpath_var_F77=no |
14929 |
|
runpath_var='LD_RUN_PATH' |
14930 |
|
;; |
14931 |
|
|
14932 |
|
uts4*) |
14933 |
|
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14934 |
|
hardcode_libdir_flag_spec_F77='-L$libdir' |
14935 |
|
hardcode_shlibpath_var_F77=no |
14936 |
|
;; |
14937 |
|
|
14938 |
|
*) |
14939 |
|
ld_shlibs_F77=no |
14940 |
|
;; |
14941 |
|
esac |
14942 |
|
fi |
14943 |
|
|
14944 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
14945 |
|
echo "${ECHO_T}$ld_shlibs_F77" >&6 |
14946 |
|
test "$ld_shlibs_F77" = no && can_build_shared=no |
14947 |
|
|
14948 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
14949 |
|
if test "$GCC" = yes; then |
14950 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
14951 |
|
fi |
14952 |
|
|
14953 |
|
# |
14954 |
|
# Do we need to explicitly link libc? |
14955 |
|
# |
14956 |
|
case "x$archive_cmds_need_lc_F77" in |
14957 |
|
x|xyes) |
14958 |
|
# Assume -lc should be added |
14959 |
|
archive_cmds_need_lc_F77=yes |
14960 |
|
|
14961 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
14962 |
|
case $archive_cmds_F77 in |
14963 |
|
*'~'*) |
14964 |
|
# FIXME: we may have to deal with multi-command sequences. |
14965 |
|
;; |
14966 |
|
'$CC '*) |
14967 |
|
# Test whether the compiler implicitly links with -lc since on some |
14968 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
14969 |
|
# to ld, don't add -lc before -lgcc. |
14970 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
14971 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
14972 |
|
$rm conftest* |
14973 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14974 |
|
|
14975 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
14976 |
|
(eval $ac_compile) 2>&5 |
14977 |
|
ac_status=$? |
14978 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14979 |
|
(exit $ac_status); } 2>conftest.err; then |
14980 |
|
soname=conftest |
14981 |
|
lib=conftest |
14982 |
|
libobjs=conftest.$ac_objext |
14983 |
|
deplibs= |
14984 |
|
wl=$lt_prog_compiler_wl_F77 |
14985 |
|
compiler_flags=-v |
14986 |
|
linker_flags=-v |
14987 |
|
verstring= |
14988 |
|
output_objdir=. |
14989 |
|
libname=conftest |
14990 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
14991 |
|
allow_undefined_flag_F77= |
14992 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
14993 |
|
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
14994 |
|
ac_status=$? |
14995 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14996 |
|
(exit $ac_status); } |
14997 |
|
then |
14998 |
|
archive_cmds_need_lc_F77=no |
14999 |
|
else |
15000 |
|
archive_cmds_need_lc_F77=yes |
15001 |
|
fi |
15002 |
|
allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15003 |
|
else |
15004 |
|
cat conftest.err 1>&5 |
15005 |
|
fi |
15006 |
|
$rm conftest* |
15007 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15008 |
|
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
15009 |
|
;; |
15010 |
|
esac |
15011 |
|
fi |
15012 |
|
;; |
15013 |
|
esac |
15014 |
|
|
15015 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15016 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
15017 |
|
library_names_spec= |
15018 |
|
libname_spec='lib$name' |
15019 |
|
soname_spec= |
15020 |
|
shrext_cmds=".so" |
15021 |
|
postinstall_cmds= |
15022 |
|
postuninstall_cmds= |
15023 |
|
finish_cmds= |
15024 |
|
finish_eval= |
15025 |
|
shlibpath_var= |
15026 |
|
shlibpath_overrides_runpath=unknown |
15027 |
|
version_type=none |
15028 |
|
dynamic_linker="$host_os ld.so" |
15029 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15030 |
|
if test "$GCC" = yes; then |
15031 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15032 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15033 |
|
# if the path contains ";" then we assume it to be the separator |
15034 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
15035 |
|
# assumed that no part of a normal pathname contains ";" but that should |
15036 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
15037 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15038 |
|
else |
15039 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15040 |
|
fi |
15041 |
|
else |
15042 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15043 |
|
fi |
15044 |
|
need_lib_prefix=unknown |
15045 |
|
hardcode_into_libs=no |
15046 |
|
|
15047 |
|
# when you set need_version to no, make sure it does not cause -set_version |
15048 |
|
# flags to be left without arguments |
15049 |
|
need_version=unknown |
15050 |
|
|
15051 |
|
case $host_os in |
15052 |
|
aix3*) |
15053 |
|
version_type=linux |
15054 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15055 |
|
shlibpath_var=LIBPATH |
15056 |
|
|
15057 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
15058 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15059 |
|
;; |
15060 |
|
|
15061 |
|
aix4* | aix5*) |
15062 |
|
version_type=linux |
15063 |
|
need_lib_prefix=no |
15064 |
|
need_version=no |
15065 |
|
hardcode_into_libs=yes |
15066 |
|
if test "$host_cpu" = ia64; then |
15067 |
|
# AIX 5 supports IA64 |
15068 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15069 |
|
shlibpath_var=LD_LIBRARY_PATH |
15070 |
|
else |
15071 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
15072 |
|
# for dependence libraries. The import file would start with |
15073 |
|
# the line `#! .'. This would cause the generated library to |
15074 |
|
# depend on `.', always an invalid library. This was fixed in |
15075 |
|
# development snapshots of GCC prior to 3.0. |
15076 |
|
case $host_os in |
15077 |
|
aix4 | aix4.[01] | aix4.[01].*) |
15078 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15079 |
|
echo ' yes ' |
15080 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15081 |
|
: |
15082 |
|
else |
15083 |
|
can_build_shared=no |
15084 |
|
fi |
15085 |
|
;; |
15086 |
|
esac |
15087 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15088 |
|
# soname into executable. Probably we can add versioning support to |
15089 |
|
# collect2, so additional links can be useful in future. |
15090 |
|
if test "$aix_use_runtimelinking" = yes; then |
15091 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15092 |
|
# instead of lib<name>.a to let people know that these are not |
15093 |
|
# typical AIX shared libraries. |
15094 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15095 |
|
else |
15096 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
15097 |
|
# and later when we are not doing run time linking. |
15098 |
|
library_names_spec='${libname}${release}.a $libname.a' |
15099 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15100 |
|
fi |
15101 |
|
shlibpath_var=LIBPATH |
15102 |
|
fi |
15103 |
|
;; |
15104 |
|
|
15105 |
|
amigaos*) |
15106 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
15107 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
15108 |
|
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' |
15109 |
|
;; |
15110 |
|
|
15111 |
|
beos*) |
15112 |
|
library_names_spec='${libname}${shared_ext}' |
15113 |
|
dynamic_linker="$host_os ld.so" |
15114 |
|
shlibpath_var=LIBRARY_PATH |
15115 |
|
;; |
15116 |
|
|
15117 |
|
bsdi[45]*) |
15118 |
|
version_type=linux |
15119 |
|
need_version=no |
15120 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15121 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15122 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15123 |
|
shlibpath_var=LD_LIBRARY_PATH |
15124 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15125 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15126 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
15127 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15128 |
|
# libtool to hard-code these into programs |
15129 |
|
;; |
15130 |
|
|
15131 |
|
cygwin* | mingw* | pw32*) |
15132 |
|
version_type=windows |
15133 |
|
shrext_cmds=".dll" |
15134 |
|
need_version=no |
15135 |
|
need_lib_prefix=no |
15136 |
|
|
15137 |
|
case $GCC,$host_os in |
15138 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
15139 |
|
library_names_spec='$libname.dll.a' |
15140 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
15141 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
15142 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15143 |
|
dldir=$destdir/`dirname \$dlpath`~ |
15144 |
|
test -d \$dldir || mkdir -p \$dldir~ |
15145 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
15146 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15147 |
|
dlpath=$dir/\$dldll~ |
15148 |
|
$rm \$dlpath' |
15149 |
|
shlibpath_overrides_runpath=yes |
15150 |
|
|
15151 |
|
case $host_os in |
15152 |
|
cygwin*) |
15153 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15154 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15155 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15156 |
|
;; |
15157 |
|
mingw*) |
15158 |
|
# MinGW DLLs use traditional 'lib' prefix |
15159 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15160 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15161 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15162 |
|
# It is most probably a Windows format PATH printed by |
15163 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
15164 |
|
# path with ; separators, and with drive letters. We can handle the |
15165 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
15166 |
|
# especially as we might pass files found there to a mingw objdump, |
15167 |
|
# which wouldn't understand a cygwinified path. Ahh. |
15168 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15169 |
|
else |
15170 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15171 |
|
fi |
15172 |
|
;; |
15173 |
|
pw32*) |
15174 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
15175 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15176 |
|
;; |
15177 |
|
esac |
15178 |
|
;; |
15179 |
|
|
15180 |
|
*) |
15181 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15182 |
|
;; |
15183 |
|
esac |
15184 |
|
dynamic_linker='Win32 ld.exe' |
15185 |
|
# FIXME: first we should search . and the directory the executable is in |
15186 |
|
shlibpath_var=PATH |
15187 |
|
;; |
15188 |
|
|
15189 |
|
darwin* | rhapsody*) |
15190 |
|
dynamic_linker="$host_os dyld" |
15191 |
|
version_type=darwin |
15192 |
|
need_lib_prefix=no |
15193 |
|
need_version=no |
15194 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15195 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
15196 |
|
shlibpath_overrides_runpath=yes |
15197 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
15198 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
15199 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15200 |
|
if test "$GCC" = yes; then |
15201 |
|
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"` |
15202 |
|
else |
15203 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15204 |
|
fi |
15205 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15206 |
|
;; |
15207 |
|
|
15208 |
|
dgux*) |
15209 |
|
version_type=linux |
15210 |
|
need_lib_prefix=no |
15211 |
|
need_version=no |
15212 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15213 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15214 |
|
shlibpath_var=LD_LIBRARY_PATH |
15215 |
|
;; |
15216 |
|
|
15217 |
|
freebsd1*) |
15218 |
|
dynamic_linker=no |
15219 |
|
;; |
15220 |
|
|
15221 |
|
kfreebsd*-gnu) |
15222 |
|
version_type=linux |
15223 |
|
need_lib_prefix=no |
15224 |
|
need_version=no |
15225 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15226 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15227 |
|
shlibpath_var=LD_LIBRARY_PATH |
15228 |
|
shlibpath_overrides_runpath=no |
15229 |
|
hardcode_into_libs=yes |
15230 |
|
dynamic_linker='GNU ld.so' |
15231 |
|
;; |
15232 |
|
|
15233 |
|
freebsd* | dragonfly*) |
15234 |
|
# DragonFly does not have aout. When/if they implement a new |
15235 |
|
# versioning mechanism, adjust this. |
15236 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
15237 |
|
version_type=freebsd-$objformat |
15238 |
|
case $version_type in |
15239 |
|
freebsd-elf*) |
15240 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15241 |
|
need_version=no |
15242 |
|
need_lib_prefix=no |
15243 |
|
;; |
15244 |
|
freebsd-*) |
15245 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15246 |
|
need_version=yes |
15247 |
|
;; |
15248 |
|
esac |
15249 |
|
shlibpath_var=LD_LIBRARY_PATH |
15250 |
|
case $host_os in |
15251 |
|
freebsd2*) |
15252 |
|
shlibpath_overrides_runpath=yes |
15253 |
|
;; |
15254 |
|
freebsd3.[01]* | freebsdelf3.[01]*) |
15255 |
|
shlibpath_overrides_runpath=yes |
15256 |
|
hardcode_into_libs=yes |
15257 |
|
;; |
15258 |
|
*) # from 3.2 on |
15259 |
|
shlibpath_overrides_runpath=no |
15260 |
|
hardcode_into_libs=yes |
15261 |
|
;; |
15262 |
|
esac |
15263 |
|
;; |
15264 |
|
|
15265 |
|
gnu*) |
15266 |
|
version_type=linux |
15267 |
|
need_lib_prefix=no |
15268 |
|
need_version=no |
15269 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15270 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15271 |
|
shlibpath_var=LD_LIBRARY_PATH |
15272 |
|
hardcode_into_libs=yes |
15273 |
|
;; |
15274 |
|
|
15275 |
|
hpux9* | hpux10* | hpux11*) |
15276 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
15277 |
|
# link against other versions. |
15278 |
|
version_type=sunos |
15279 |
|
need_lib_prefix=no |
15280 |
|
need_version=no |
15281 |
|
case "$host_cpu" in |
15282 |
|
ia64*) |
15283 |
|
shrext_cmds='.so' |
15284 |
|
hardcode_into_libs=yes |
15285 |
|
dynamic_linker="$host_os dld.so" |
15286 |
|
shlibpath_var=LD_LIBRARY_PATH |
15287 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15288 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15289 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15290 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
15291 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15292 |
|
else |
15293 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15294 |
|
fi |
15295 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15296 |
|
;; |
15297 |
|
hppa*64*) |
15298 |
|
shrext_cmds='.sl' |
15299 |
|
hardcode_into_libs=yes |
15300 |
|
dynamic_linker="$host_os dld.sl" |
15301 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15302 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15303 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15304 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15305 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15306 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15307 |
|
;; |
15308 |
|
*) |
15309 |
|
shrext_cmds='.sl' |
15310 |
|
dynamic_linker="$host_os dld.sl" |
15311 |
|
shlibpath_var=SHLIB_PATH |
15312 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15313 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15314 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15315 |
|
;; |
15316 |
|
esac |
15317 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
15318 |
|
postinstall_cmds='chmod 555 $lib' |
15319 |
|
;; |
15320 |
|
|
15321 |
|
irix5* | irix6* | nonstopux*) |
15322 |
|
case $host_os in |
15323 |
|
nonstopux*) version_type=nonstopux ;; |
15324 |
|
*) |
15325 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
15326 |
|
version_type=linux |
15327 |
|
else |
15328 |
|
version_type=irix |
15329 |
|
fi ;; |
15330 |
|
esac |
15331 |
|
need_lib_prefix=no |
15332 |
|
need_version=no |
15333 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15334 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15335 |
|
case $host_os in |
15336 |
|
irix5* | nonstopux*) |
15337 |
|
libsuff= shlibsuff= |
15338 |
|
;; |
15339 |
|
*) |
15340 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
15341 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15342 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
15343 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15344 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
15345 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15346 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15347 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
15348 |
|
esac |
15349 |
|
;; |
15350 |
|
esac |
15351 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15352 |
|
shlibpath_overrides_runpath=no |
15353 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15354 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15355 |
|
hardcode_into_libs=yes |
15356 |
|
;; |
15357 |
|
|
15358 |
|
# No shared lib support for Linux oldld, aout, or coff. |
15359 |
|
linux*oldld* | linux*aout* | linux*coff*) |
15360 |
|
dynamic_linker=no |
15361 |
|
;; |
15362 |
|
|
15363 |
|
# This must be Linux ELF. |
15364 |
|
linux*) |
15365 |
|
version_type=linux |
15366 |
|
need_lib_prefix=no |
15367 |
|
need_version=no |
15368 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15369 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15370 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15371 |
|
shlibpath_var=LD_LIBRARY_PATH |
15372 |
|
shlibpath_overrides_runpath=no |
15373 |
|
# This implies no fast_install, which is unacceptable. |
15374 |
|
# Some rework will be needed to allow for fast_install |
15375 |
|
# before this can be enabled. |
15376 |
|
hardcode_into_libs=yes |
15377 |
|
|
15378 |
|
# find out which ABI we are using |
15379 |
|
libsuff= |
15380 |
|
case "$host_cpu" in |
15381 |
|
x86_64*|s390x*|powerpc64*) |
15382 |
|
echo '#line 15382 "configure"' > conftest.$ac_ext |
15383 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15384 |
|
(eval $ac_compile) 2>&5 |
15385 |
|
ac_status=$? |
15386 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15387 |
|
(exit $ac_status); }; then |
15388 |
|
case `/usr/bin/file conftest.$ac_objext` in |
15389 |
|
*64-bit*) |
15390 |
|
libsuff=64 |
15391 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15392 |
|
;; |
15393 |
|
esac |
15394 |
|
fi |
15395 |
|
rm -rf conftest* |
15396 |
|
;; |
15397 |
|
esac |
15398 |
|
|
15399 |
|
# Append ld.so.conf contents to the search path |
15400 |
|
if test -f /etc/ld.so.conf; then |
15401 |
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
15402 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15403 |
|
fi |
15404 |
|
|
15405 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
15406 |
|
# powerpc, because MkLinux only supported shared libraries with the |
15407 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
15408 |
|
# most powerpc-linux boxes support dynamic linking these days and |
15409 |
|
# people can always --disable-shared, the test was removed, and we |
15410 |
|
# assume the GNU/Linux dynamic linker is in use. |
15411 |
|
dynamic_linker='GNU/Linux ld.so' |
15412 |
|
;; |
15413 |
|
|
15414 |
|
knetbsd*-gnu) |
15415 |
|
version_type=linux |
15416 |
|
need_lib_prefix=no |
15417 |
|
need_version=no |
15418 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15419 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15420 |
|
shlibpath_var=LD_LIBRARY_PATH |
15421 |
|
shlibpath_overrides_runpath=no |
15422 |
|
hardcode_into_libs=yes |
15423 |
|
dynamic_linker='GNU ld.so' |
15424 |
|
;; |
15425 |
|
|
15426 |
|
netbsd*) |
15427 |
|
version_type=sunos |
15428 |
|
need_lib_prefix=no |
15429 |
|
need_version=no |
15430 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15431 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15432 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15433 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
15434 |
|
else |
15435 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15436 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15437 |
|
dynamic_linker='NetBSD ld.elf_so' |
15438 |
|
fi |
15439 |
|
shlibpath_var=LD_LIBRARY_PATH |
15440 |
|
shlibpath_overrides_runpath=yes |
15441 |
|
hardcode_into_libs=yes |
15442 |
|
;; |
15443 |
|
|
15444 |
|
newsos6) |
15445 |
|
version_type=linux |
15446 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15447 |
|
shlibpath_var=LD_LIBRARY_PATH |
15448 |
|
shlibpath_overrides_runpath=yes |
15449 |
|
;; |
15450 |
|
|
15451 |
|
nto-qnx*) |
15452 |
|
version_type=linux |
15453 |
|
need_lib_prefix=no |
15454 |
|
need_version=no |
15455 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15456 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15457 |
|
shlibpath_var=LD_LIBRARY_PATH |
15458 |
|
shlibpath_overrides_runpath=yes |
15459 |
|
;; |
15460 |
|
|
15461 |
|
openbsd*) |
15462 |
|
version_type=sunos |
15463 |
|
need_lib_prefix=no |
15464 |
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15465 |
|
case $host_os in |
15466 |
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15467 |
|
*) need_version=no ;; |
15468 |
|
esac |
15469 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15470 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15471 |
|
shlibpath_var=LD_LIBRARY_PATH |
15472 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15473 |
|
case $host_os in |
15474 |
|
openbsd2.[89] | openbsd2.[89].*) |
15475 |
|
shlibpath_overrides_runpath=no |
15476 |
|
;; |
15477 |
|
*) |
15478 |
|
shlibpath_overrides_runpath=yes |
15479 |
|
;; |
15480 |
|
esac |
15481 |
|
else |
15482 |
|
shlibpath_overrides_runpath=yes |
15483 |
|
fi |
15484 |
|
;; |
15485 |
|
|
15486 |
|
os2*) |
15487 |
|
libname_spec='$name' |
15488 |
|
shrext_cmds=".dll" |
15489 |
|
need_lib_prefix=no |
15490 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
15491 |
|
dynamic_linker='OS/2 ld.exe' |
15492 |
|
shlibpath_var=LIBPATH |
15493 |
|
;; |
15494 |
|
|
15495 |
|
osf3* | osf4* | osf5*) |
15496 |
|
version_type=osf |
15497 |
|
need_lib_prefix=no |
15498 |
|
need_version=no |
15499 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15500 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15501 |
|
shlibpath_var=LD_LIBRARY_PATH |
15502 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15503 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15504 |
|
;; |
15505 |
|
|
15506 |
|
sco3.2v5*) |
15507 |
|
version_type=osf |
15508 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15509 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15510 |
|
shlibpath_var=LD_LIBRARY_PATH |
15511 |
|
;; |
15512 |
|
|
15513 |
|
solaris*) |
15514 |
|
version_type=linux |
15515 |
|
need_lib_prefix=no |
15516 |
|
need_version=no |
15517 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15518 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15519 |
|
shlibpath_var=LD_LIBRARY_PATH |
15520 |
|
shlibpath_overrides_runpath=yes |
15521 |
|
hardcode_into_libs=yes |
15522 |
|
# ldd complains unless libraries are executable |
15523 |
|
postinstall_cmds='chmod +x $lib' |
15524 |
|
;; |
15525 |
|
|
15526 |
|
sunos4*) |
15527 |
|
version_type=sunos |
15528 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15529 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15530 |
|
shlibpath_var=LD_LIBRARY_PATH |
15531 |
|
shlibpath_overrides_runpath=yes |
15532 |
|
if test "$with_gnu_ld" = yes; then |
15533 |
|
need_lib_prefix=no |
15534 |
|
fi |
15535 |
|
need_version=yes |
15536 |
|
;; |
15537 |
|
|
15538 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
15539 |
|
version_type=linux |
15540 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15541 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15542 |
|
shlibpath_var=LD_LIBRARY_PATH |
15543 |
|
case $host_vendor in |
15544 |
|
sni) |
15545 |
|
shlibpath_overrides_runpath=no |
15546 |
|
need_lib_prefix=no |
15547 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
15548 |
|
runpath_var=LD_RUN_PATH |
15549 |
|
;; |
15550 |
|
siemens) |
15551 |
|
need_lib_prefix=no |
15552 |
|
;; |
15553 |
|
motorola) |
15554 |
|
need_lib_prefix=no |
15555 |
|
need_version=no |
15556 |
|
shlibpath_overrides_runpath=no |
15557 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15558 |
|
;; |
15559 |
|
esac |
15560 |
|
;; |
15561 |
|
|
15562 |
|
sysv4*MP*) |
15563 |
|
if test -d /usr/nec ;then |
15564 |
|
version_type=linux |
15565 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15566 |
|
soname_spec='$libname${shared_ext}.$major' |
15567 |
|
shlibpath_var=LD_LIBRARY_PATH |
15568 |
|
fi |
15569 |
|
;; |
15570 |
|
|
15571 |
|
uts4*) |
15572 |
|
version_type=linux |
15573 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15574 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
15575 |
|
shlibpath_var=LD_LIBRARY_PATH |
15576 |
|
;; |
15577 |
|
|
15578 |
|
*) |
15579 |
|
dynamic_linker=no |
15580 |
|
;; |
15581 |
|
esac |
15582 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15583 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
15584 |
|
test "$dynamic_linker" = no && can_build_shared=no |
15585 |
|
|
15586 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15587 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15588 |
|
hardcode_action_F77= |
15589 |
|
if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15590 |
|
test -n "$runpath_var_F77" || \ |
15591 |
|
test "X$hardcode_automatic_F77" = "Xyes" ; then |
15592 |
|
|
15593 |
|
# We can hardcode non-existant directories. |
15594 |
|
if test "$hardcode_direct_F77" != no && |
15595 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
15596 |
|
# have to relink, otherwise we might link with an installed library |
15597 |
|
# when we should be linking with a yet-to-be-installed one |
15598 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15599 |
|
test "$hardcode_minus_L_F77" != no; then |
15600 |
|
# Linking always hardcodes the temporary library directory. |
15601 |
|
hardcode_action_F77=relink |
15602 |
|
else |
15603 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
15604 |
|
hardcode_action_F77=immediate |
15605 |
|
fi |
15606 |
|
else |
15607 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
15608 |
|
# directories. |
15609 |
|
hardcode_action_F77=unsupported |
15610 |
|
fi |
15611 |
|
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15612 |
|
echo "${ECHO_T}$hardcode_action_F77" >&6 |
15613 |
|
|
15614 |
|
if test "$hardcode_action_F77" = relink; then |
15615 |
|
# Fast installation is not supported |
15616 |
|
enable_fast_install=no |
15617 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
15618 |
|
test "$enable_shared" = no; then |
15619 |
|
# Fast installation is not necessary |
15620 |
|
enable_fast_install=needless |
15621 |
|
fi |
15622 |
|
|
15623 |
|
striplib= |
15624 |
|
old_striplib= |
15625 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
15626 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
15627 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
15628 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
15629 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
15630 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
15631 |
|
echo "${ECHO_T}yes" >&6 |
15632 |
|
else |
15633 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
15634 |
|
case $host_os in |
15635 |
|
darwin*) |
15636 |
|
if test -n "$STRIP" ; then |
15637 |
|
striplib="$STRIP -x" |
15638 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
15639 |
|
echo "${ECHO_T}yes" >&6 |
15640 |
|
else |
15641 |
|
echo "$as_me:$LINENO: result: no" >&5 |
15642 |
|
echo "${ECHO_T}no" >&6 |
15643 |
|
fi |
15644 |
|
;; |
15645 |
|
*) |
15646 |
|
echo "$as_me:$LINENO: result: no" >&5 |
15647 |
|
echo "${ECHO_T}no" >&6 |
15648 |
|
;; |
15649 |
|
esac |
15650 |
|
fi |
15651 |
|
|
15652 |
|
|
15653 |
|
|
15654 |
|
# The else clause should only fire when bootstrapping the |
15655 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
15656 |
|
# with your package, and you will get complaints that there are |
15657 |
|
# no rules to generate ltmain.sh. |
15658 |
|
if test -f "$ltmain"; then |
15659 |
|
# See if we are running on zsh, and set the options which allow our commands through |
15660 |
|
# without removal of \ escapes. |
15661 |
|
if test -n "${ZSH_VERSION+set}" ; then |
15662 |
|
setopt NO_GLOB_SUBST |
15663 |
|
fi |
15664 |
|
# Now quote all the things that may contain metacharacters while being |
15665 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
15666 |
|
# variables and quote the copies for generation of the libtool script. |
15667 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
15668 |
|
SED SHELL STRIP \ |
15669 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15670 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15671 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
15672 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15673 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
15674 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15675 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
15676 |
|
compiler_F77 \ |
15677 |
|
CC_F77 \ |
15678 |
|
LD_F77 \ |
15679 |
|
lt_prog_compiler_wl_F77 \ |
15680 |
|
lt_prog_compiler_pic_F77 \ |
15681 |
|
lt_prog_compiler_static_F77 \ |
15682 |
|
lt_prog_compiler_no_builtin_flag_F77 \ |
15683 |
|
export_dynamic_flag_spec_F77 \ |
15684 |
|
thread_safe_flag_spec_F77 \ |
15685 |
|
whole_archive_flag_spec_F77 \ |
15686 |
|
enable_shared_with_static_runtimes_F77 \ |
15687 |
|
old_archive_cmds_F77 \ |
15688 |
|
old_archive_from_new_cmds_F77 \ |
15689 |
|
predep_objects_F77 \ |
15690 |
|
postdep_objects_F77 \ |
15691 |
|
predeps_F77 \ |
15692 |
|
postdeps_F77 \ |
15693 |
|
compiler_lib_search_path_F77 \ |
15694 |
|
archive_cmds_F77 \ |
15695 |
|
archive_expsym_cmds_F77 \ |
15696 |
|
postinstall_cmds_F77 \ |
15697 |
|
postuninstall_cmds_F77 \ |
15698 |
|
old_archive_from_expsyms_cmds_F77 \ |
15699 |
|
allow_undefined_flag_F77 \ |
15700 |
|
no_undefined_flag_F77 \ |
15701 |
|
export_symbols_cmds_F77 \ |
15702 |
|
hardcode_libdir_flag_spec_F77 \ |
15703 |
|
hardcode_libdir_flag_spec_ld_F77 \ |
15704 |
|
hardcode_libdir_separator_F77 \ |
15705 |
|
hardcode_automatic_F77 \ |
15706 |
|
module_cmds_F77 \ |
15707 |
|
module_expsym_cmds_F77 \ |
15708 |
|
lt_cv_prog_compiler_c_o_F77 \ |
15709 |
|
exclude_expsyms_F77 \ |
15710 |
|
include_expsyms_F77; do |
15711 |
|
|
15712 |
|
case $var in |
15713 |
|
old_archive_cmds_F77 | \ |
15714 |
|
old_archive_from_new_cmds_F77 | \ |
15715 |
|
archive_cmds_F77 | \ |
15716 |
|
archive_expsym_cmds_F77 | \ |
15717 |
|
module_cmds_F77 | \ |
15718 |
|
module_expsym_cmds_F77 | \ |
15719 |
|
old_archive_from_expsyms_cmds_F77 | \ |
15720 |
|
export_symbols_cmds_F77 | \ |
15721 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15722 |
|
postinstall_cmds | postuninstall_cmds | \ |
15723 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
15724 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15725 |
|
# Double-quote double-evaled strings. |
15726 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15727 |
|
;; |
15728 |
|
*) |
15729 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15730 |
|
;; |
15731 |
|
esac |
15732 |
|
done |
15733 |
|
|
15734 |
|
case $lt_echo in |
15735 |
|
*'\$0 --fallback-echo"') |
15736 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15737 |
|
;; |
15738 |
|
esac |
15739 |
|
|
15740 |
|
cfgfile="$ofile" |
15741 |
|
|
15742 |
|
cat <<__EOF__ >> "$cfgfile" |
15743 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15744 |
|
|
15745 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15746 |
|
|
15747 |
|
# Shell to use when invoking shell scripts. |
15748 |
|
SHELL=$lt_SHELL |
15749 |
|
|
15750 |
|
# Whether or not to build shared libraries. |
15751 |
|
build_libtool_libs=$enable_shared |
15752 |
|
|
15753 |
|
# Whether or not to build static libraries. |
15754 |
|
build_old_libs=$enable_static |
15755 |
|
|
15756 |
|
# Whether or not to add -lc for building shared libraries. |
15757 |
|
build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15758 |
|
|
15759 |
|
# Whether or not to disallow shared libs when runtime libs are static |
15760 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15761 |
|
|
15762 |
|
# Whether or not to optimize for fast installation. |
15763 |
|
fast_install=$enable_fast_install |
15764 |
|
|
15765 |
|
# The host system. |
15766 |
|
host_alias=$host_alias |
15767 |
|
host=$host |
15768 |
|
host_os=$host_os |
15769 |
|
|
15770 |
|
# The build system. |
15771 |
|
build_alias=$build_alias |
15772 |
|
build=$build |
15773 |
|
build_os=$build_os |
15774 |
|
|
15775 |
|
# An echo program that does not interpret backslashes. |
15776 |
|
echo=$lt_echo |
15777 |
|
|
15778 |
|
# The archiver. |
15779 |
|
AR=$lt_AR |
15780 |
|
AR_FLAGS=$lt_AR_FLAGS |
15781 |
|
|
15782 |
|
# A C compiler. |
15783 |
|
LTCC=$lt_LTCC |
15784 |
|
|
15785 |
|
# A language-specific compiler. |
15786 |
|
CC=$lt_compiler_F77 |
15787 |
|
|
15788 |
|
# Is the compiler the GNU C compiler? |
15789 |
|
with_gcc=$GCC_F77 |
15790 |
|
|
15791 |
|
# An ERE matcher. |
15792 |
|
EGREP=$lt_EGREP |
15793 |
|
|
15794 |
|
# The linker used to build libraries. |
15795 |
|
LD=$lt_LD_F77 |
15796 |
|
|
15797 |
|
# Whether we need hard or soft links. |
15798 |
|
LN_S=$lt_LN_S |
15799 |
|
|
15800 |
|
# A BSD-compatible nm program. |
15801 |
|
NM=$lt_NM |
15802 |
|
|
15803 |
|
# A symbol stripping program |
15804 |
|
STRIP=$lt_STRIP |
15805 |
|
|
15806 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
15807 |
|
MAGIC_CMD=$MAGIC_CMD |
15808 |
|
|
15809 |
|
# Used on cygwin: DLL creation program. |
15810 |
|
DLLTOOL="$DLLTOOL" |
15811 |
|
|
15812 |
|
# Used on cygwin: object dumper. |
15813 |
|
OBJDUMP="$OBJDUMP" |
15814 |
|
|
15815 |
|
# Used on cygwin: assembler. |
15816 |
|
AS="$AS" |
15817 |
|
|
15818 |
|
# The name of the directory that contains temporary libtool files. |
15819 |
|
objdir=$objdir |
15820 |
|
|
15821 |
|
# How to create reloadable object files. |
15822 |
|
reload_flag=$lt_reload_flag |
15823 |
|
reload_cmds=$lt_reload_cmds |
15824 |
|
|
15825 |
|
# How to pass a linker flag through the compiler. |
15826 |
|
wl=$lt_lt_prog_compiler_wl_F77 |
15827 |
|
|
15828 |
|
# Object file suffix (normally "o"). |
15829 |
|
objext="$ac_objext" |
15830 |
|
|
15831 |
|
# Old archive suffix (normally "a"). |
15832 |
|
libext="$libext" |
15833 |
|
|
15834 |
|
# Shared library suffix (normally ".so"). |
15835 |
|
shrext_cmds='$shrext_cmds' |
15836 |
|
|
15837 |
|
# Executable file suffix (normally ""). |
15838 |
|
exeext="$exeext" |
15839 |
|
|
15840 |
|
# Additional compiler flags for building library objects. |
15841 |
|
pic_flag=$lt_lt_prog_compiler_pic_F77 |
15842 |
|
pic_mode=$pic_mode |
15843 |
|
|
15844 |
|
# What is the maximum length of a command? |
15845 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
15846 |
|
|
15847 |
|
# Does compiler simultaneously support -c and -o options? |
15848 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15849 |
|
|
15850 |
|
# Must we lock files when doing compilation? |
15851 |
|
need_locks=$lt_need_locks |
15852 |
|
|
15853 |
|
# Do we need the lib prefix for modules? |
15854 |
|
need_lib_prefix=$need_lib_prefix |
15855 |
|
|
15856 |
|
# Do we need a version for libraries? |
15857 |
|
need_version=$need_version |
15858 |
|
|
15859 |
|
# Whether dlopen is supported. |
15860 |
|
dlopen_support=$enable_dlopen |
15861 |
|
|
15862 |
|
# Whether dlopen of programs is supported. |
15863 |
|
dlopen_self=$enable_dlopen_self |
15864 |
|
|
15865 |
|
# Whether dlopen of statically linked programs is supported. |
15866 |
|
dlopen_self_static=$enable_dlopen_self_static |
15867 |
|
|
15868 |
|
# Compiler flag to prevent dynamic linking. |
15869 |
|
link_static_flag=$lt_lt_prog_compiler_static_F77 |
15870 |
|
|
15871 |
|
# Compiler flag to turn off builtin functions. |
15872 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
15873 |
|
|
15874 |
|
# Compiler flag to allow reflexive dlopens. |
15875 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
15876 |
|
|
15877 |
|
# Compiler flag to generate shared objects directly from archives. |
15878 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
15879 |
|
|
15880 |
|
# Compiler flag to generate thread-safe objects. |
15881 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
15882 |
|
|
15883 |
|
# Library versioning type. |
15884 |
|
version_type=$version_type |
15885 |
|
|
15886 |
|
# Format of library name prefix. |
15887 |
|
libname_spec=$lt_libname_spec |
15888 |
|
|
15889 |
|
# List of archive names. First name is the real one, the rest are links. |
15890 |
|
# The last name is the one that the linker finds with -lNAME. |
15891 |
|
library_names_spec=$lt_library_names_spec |
15892 |
|
|
15893 |
|
# The coded name of the library, if different from the real name. |
15894 |
|
soname_spec=$lt_soname_spec |
15895 |
|
|
15896 |
|
# Commands used to build and install an old-style archive. |
15897 |
|
RANLIB=$lt_RANLIB |
15898 |
|
old_archive_cmds=$lt_old_archive_cmds_F77 |
15899 |
|
old_postinstall_cmds=$lt_old_postinstall_cmds |
15900 |
|
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
15901 |
|
|
15902 |
|
# Create an old-style archive from a shared archive. |
15903 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
15904 |
|
|
15905 |
|
# Create a temporary old-style archive to link instead of a shared archive. |
15906 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
15907 |
|
|
15908 |
|
# Commands used to build and install a shared archive. |
15909 |
|
archive_cmds=$lt_archive_cmds_F77 |
15910 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
15911 |
|
postinstall_cmds=$lt_postinstall_cmds |
15912 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
15913 |
|
|
15914 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
15915 |
|
module_cmds=$lt_module_cmds_F77 |
15916 |
|
module_expsym_cmds=$lt_module_expsym_cmds_F77 |
15917 |
|
|
15918 |
|
# Commands to strip libraries. |
15919 |
|
old_striplib=$lt_old_striplib |
15920 |
|
striplib=$lt_striplib |
15921 |
|
|
15922 |
|
# Dependencies to place before the objects being linked to create a |
15923 |
|
# shared library. |
15924 |
|
predep_objects=$lt_predep_objects_F77 |
15925 |
|
|
15926 |
|
# Dependencies to place after the objects being linked to create a |
15927 |
|
# shared library. |
15928 |
|
postdep_objects=$lt_postdep_objects_F77 |
15929 |
|
|
15930 |
|
# Dependencies to place before the objects being linked to create a |
15931 |
|
# shared library. |
15932 |
|
predeps=$lt_predeps_F77 |
15933 |
|
|
15934 |
|
# Dependencies to place after the objects being linked to create a |
15935 |
|
# shared library. |
15936 |
|
postdeps=$lt_postdeps_F77 |
15937 |
|
|
15938 |
|
# The library search path used internally by the compiler when linking |
15939 |
|
# a shared library. |
15940 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
15941 |
|
|
15942 |
|
# Method to check whether dependent libraries are shared objects. |
15943 |
|
deplibs_check_method=$lt_deplibs_check_method |
15944 |
|
|
15945 |
|
# Command to use when deplibs_check_method == file_magic. |
15946 |
|
file_magic_cmd=$lt_file_magic_cmd |
15947 |
|
|
15948 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
15949 |
|
allow_undefined_flag=$lt_allow_undefined_flag_F77 |
15950 |
|
|
15951 |
|
# Flag that forces no undefined symbols. |
15952 |
|
no_undefined_flag=$lt_no_undefined_flag_F77 |
15953 |
|
|
15954 |
|
# Commands used to finish a libtool library installation in a directory. |
15955 |
|
finish_cmds=$lt_finish_cmds |
15956 |
|
|
15957 |
|
# Same as above, but a single script fragment to be evaled but not shown. |
15958 |
|
finish_eval=$lt_finish_eval |
15959 |
|
|
15960 |
|
# Take the output of nm and produce a listing of raw symbols and C names. |
15961 |
|
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
15962 |
|
|
15963 |
|
# Transform the output of nm in a proper C declaration |
15964 |
|
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
15965 |
|
|
15966 |
|
# Transform the output of nm in a C name address pair |
15967 |
|
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
15968 |
|
|
15969 |
|
# This is the shared library runtime path variable. |
15970 |
|
runpath_var=$runpath_var |
15971 |
|
|
15972 |
|
# This is the shared library path variable. |
15973 |
|
shlibpath_var=$shlibpath_var |
15974 |
|
|
15975 |
|
# Is shlibpath searched before the hard-coded library search path? |
15976 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
15977 |
|
|
15978 |
|
# How to hardcode a shared library path into an executable. |
15979 |
|
hardcode_action=$hardcode_action_F77 |
15980 |
|
|
15981 |
|
# Whether we should hardcode library paths into libraries. |
15982 |
|
hardcode_into_libs=$hardcode_into_libs |
15983 |
|
|
15984 |
|
# Flag to hardcode \$libdir into a binary during linking. |
15985 |
|
# This must work even if \$libdir does not exist. |
15986 |
|
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
15987 |
|
|
15988 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
15989 |
|
# a binary during linking. This must work even if \$libdir does |
15990 |
|
# not exist. |
15991 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
15992 |
|
|
15993 |
|
# Whether we need a single -rpath flag with a separated argument. |
15994 |
|
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
15995 |
|
|
15996 |
|
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
15997 |
|
# resulting binary. |
15998 |
|
hardcode_direct=$hardcode_direct_F77 |
15999 |
|
|
16000 |
|
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16001 |
|
# resulting binary. |
16002 |
|
hardcode_minus_L=$hardcode_minus_L_F77 |
16003 |
|
|
16004 |
|
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16005 |
|
# the resulting binary. |
16006 |
|
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16007 |
|
|
16008 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
16009 |
|
# and all subsequent libraries and executables linked against it. |
16010 |
|
hardcode_automatic=$hardcode_automatic_F77 |
16011 |
|
|
16012 |
|
# Variables whose values should be saved in libtool wrapper scripts and |
16013 |
|
# restored at relink time. |
16014 |
|
variables_saved_for_relink="$variables_saved_for_relink" |
16015 |
|
|
16016 |
|
# Whether libtool must link a program against all its dependency libraries. |
16017 |
|
link_all_deplibs=$link_all_deplibs_F77 |
16018 |
|
|
16019 |
|
# Compile-time system search path for libraries |
16020 |
|
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
16021 |
|
|
16022 |
|
# Run-time system search path for libraries |
16023 |
|
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16024 |
|
|
16025 |
|
# Fix the shell variable \$srcfile for the compiler. |
16026 |
|
fix_srcfile_path="$fix_srcfile_path_F77" |
16027 |
|
|
16028 |
|
# Set to yes if exported symbols are required. |
16029 |
|
always_export_symbols=$always_export_symbols_F77 |
16030 |
|
|
16031 |
|
# The commands to list exported symbols. |
16032 |
|
export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16033 |
|
|
16034 |
|
# The commands to extract the exported symbol list from a shared archive. |
16035 |
|
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16036 |
|
|
16037 |
|
# Symbols that should not be listed in the preloaded symbols. |
16038 |
|
exclude_expsyms=$lt_exclude_expsyms_F77 |
16039 |
|
|
16040 |
|
# Symbols that must always be exported. |
16041 |
|
include_expsyms=$lt_include_expsyms_F77 |
16042 |
|
|
16043 |
|
# ### END LIBTOOL TAG CONFIG: $tagname |
16044 |
|
|
16045 |
|
__EOF__ |
16046 |
|
|
16047 |
|
|
16048 |
|
else |
16049 |
|
# If there is no Makefile yet, we rely on a make rule to execute |
16050 |
|
# `config.status --recheck' to rerun these tests and create the |
16051 |
|
# libtool script then. |
16052 |
|
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16053 |
|
if test -f "$ltmain_in"; then |
16054 |
|
test -f Makefile && make "$ltmain" |
16055 |
|
fi |
16056 |
|
fi |
16057 |
|
|
16058 |
|
|
16059 |
|
ac_ext=c |
16060 |
|
ac_cpp='$CPP $CPPFLAGS' |
16061 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16062 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16063 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16064 |
|
|
16065 |
|
CC="$lt_save_CC" |
16066 |
|
|
16067 |
|
else |
16068 |
|
tagname="" |
16069 |
|
fi |
16070 |
|
;; |
16071 |
|
|
16072 |
|
GCJ) |
16073 |
|
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16074 |
|
|
16075 |
|
|
16076 |
|
|
16077 |
|
# Source file extension for Java test sources. |
16078 |
|
ac_ext=java |
16079 |
|
|
16080 |
|
# Object file extension for compiled Java test sources. |
16081 |
|
objext=o |
16082 |
|
objext_GCJ=$objext |
16083 |
|
|
16084 |
|
# Code to be used in simple compile tests |
16085 |
|
lt_simple_compile_test_code="class foo {}\n" |
16086 |
|
|
16087 |
|
# Code to be used in simple link tests |
16088 |
|
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16089 |
|
|
16090 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16091 |
|
|
16092 |
|
# If no C compiler was specified, use CC. |
16093 |
|
LTCC=${LTCC-"$CC"} |
16094 |
|
|
16095 |
|
# Allow CC to be a program name with arguments. |
16096 |
|
compiler=$CC |
16097 |
|
|
16098 |
|
|
16099 |
|
# save warnings/boilerplate of simple test code |
16100 |
|
ac_outfile=conftest.$ac_objext |
16101 |
|
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16102 |
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
16103 |
|
_lt_compiler_boilerplate=`cat conftest.err` |
16104 |
|
$rm conftest* |
16105 |
|
|
16106 |
|
ac_outfile=conftest.$ac_objext |
16107 |
|
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16108 |
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
16109 |
|
_lt_linker_boilerplate=`cat conftest.err` |
16110 |
|
$rm conftest* |
16111 |
|
|
16112 |
|
|
16113 |
|
# Allow CC to be a program name with arguments. |
16114 |
|
lt_save_CC="$CC" |
16115 |
|
CC=${GCJ-"gcj"} |
16116 |
|
compiler=$CC |
16117 |
|
compiler_GCJ=$CC |
16118 |
|
for cc_temp in $compiler""; do |
16119 |
|
case $cc_temp in |
16120 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16121 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16122 |
|
\-*) ;; |
16123 |
|
*) break;; |
16124 |
|
esac |
16125 |
|
done |
16126 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16127 |
|
|
16128 |
|
|
16129 |
|
# GCJ did not exist at the time GCC didn't implicitly link libc in. |
16130 |
|
archive_cmds_need_lc_GCJ=no |
16131 |
|
|
16132 |
|
old_archive_cmds_GCJ=$old_archive_cmds |
16133 |
|
|
16134 |
|
|
16135 |
|
lt_prog_compiler_no_builtin_flag_GCJ= |
16136 |
|
|
16137 |
|
if test "$GCC" = yes; then |
16138 |
|
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16139 |
|
|
16140 |
|
|
16141 |
|
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16142 |
|
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
16143 |
|
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16144 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
16145 |
|
else |
16146 |
|
lt_cv_prog_compiler_rtti_exceptions=no |
16147 |
|
ac_outfile=conftest.$ac_objext |
16148 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16149 |
|
lt_compiler_flag="-fno-rtti -fno-exceptions" |
16150 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
16151 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
16152 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
16153 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
16154 |
|
# The option is referenced via a variable to avoid confusing sed. |
16155 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
16156 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16157 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16158 |
|
-e 's:$: $lt_compiler_flag:'` |
16159 |
|
(eval echo "\"\$as_me:16159: $lt_compile\"" >&5) |
16160 |
|
(eval "$lt_compile" 2>conftest.err) |
16161 |
|
ac_status=$? |
16162 |
|
cat conftest.err >&5 |
16163 |
|
echo "$as_me:16163: \$? = $ac_status" >&5 |
16164 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
16165 |
|
# The compiler can only warn and ignore the option if not recognized |
16166 |
|
# So say no if there are warnings other than the usual output. |
16167 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
16168 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
16169 |
|
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
16170 |
|
lt_cv_prog_compiler_rtti_exceptions=yes |
16171 |
|
fi |
16172 |
|
fi |
16173 |
|
$rm conftest* |
16174 |
|
|
16175 |
|
fi |
16176 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16177 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
16178 |
|
|
16179 |
|
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16180 |
|
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16181 |
|
else |
16182 |
|
: |
16183 |
|
fi |
16184 |
|
|
16185 |
|
fi |
16186 |
|
|
16187 |
|
lt_prog_compiler_wl_GCJ= |
16188 |
|
lt_prog_compiler_pic_GCJ= |
16189 |
|
lt_prog_compiler_static_GCJ= |
16190 |
|
|
16191 |
|
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16192 |
|
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
16193 |
|
|
16194 |
|
if test "$GCC" = yes; then |
16195 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16196 |
|
lt_prog_compiler_static_GCJ='-static' |
16197 |
|
|
16198 |
|
case $host_os in |
16199 |
|
aix*) |
16200 |
|
# All AIX code is PIC. |
16201 |
|
if test "$host_cpu" = ia64; then |
16202 |
|
# AIX 5 now supports IA64 processor |
16203 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16204 |
|
fi |
16205 |
|
;; |
16206 |
|
|
16207 |
|
amigaos*) |
16208 |
|
# FIXME: we need at least 68020 code to build shared libraries, but |
16209 |
|
# adding the `-m68020' flag to GCC prevents building anything better, |
16210 |
|
# like `-m68040'. |
16211 |
|
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16212 |
|
;; |
16213 |
|
|
16214 |
|
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16215 |
|
# PIC is the default for these OSes. |
16216 |
|
;; |
16217 |
|
|
16218 |
|
mingw* | pw32* | os2*) |
16219 |
|
# This hack is so that the source file can tell whether it is being |
16220 |
|
# built for inclusion in a dll (and should export symbols for example). |
16221 |
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16222 |
|
;; |
16223 |
|
|
16224 |
|
darwin* | rhapsody*) |
16225 |
|
# PIC is the default on this platform |
16226 |
|
# Common symbols not allowed in MH_DYLIB files |
16227 |
|
lt_prog_compiler_pic_GCJ='-fno-common' |
16228 |
|
;; |
16229 |
|
|
16230 |
|
msdosdjgpp*) |
16231 |
|
# Just because we use GCC doesn't mean we suddenly get shared libraries |
16232 |
|
# on systems that don't support them. |
16233 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
16234 |
|
enable_shared=no |
16235 |
|
;; |
16236 |
|
|
16237 |
|
sysv4*MP*) |
16238 |
|
if test -d /usr/nec; then |
16239 |
|
lt_prog_compiler_pic_GCJ=-Kconform_pic |
16240 |
|
fi |
16241 |
|
;; |
16242 |
|
|
16243 |
|
hpux*) |
16244 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16245 |
|
# not for PA HP-UX. |
16246 |
|
case "$host_cpu" in |
16247 |
|
hppa*64*|ia64*) |
16248 |
|
# +Z the default |
16249 |
|
;; |
16250 |
|
*) |
16251 |
|
lt_prog_compiler_pic_GCJ='-fPIC' |
16252 |
|
;; |
16253 |
|
esac |
16254 |
|
;; |
16255 |
|
|
16256 |
|
*) |
16257 |
|
lt_prog_compiler_pic_GCJ='-fPIC' |
16258 |
|
;; |
16259 |
|
esac |
16260 |
|
else |
16261 |
|
# PORTME Check for flag to pass linker flags through the system compiler. |
16262 |
|
case $host_os in |
16263 |
|
aix*) |
16264 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16265 |
|
if test "$host_cpu" = ia64; then |
16266 |
|
# AIX 5 now supports IA64 processor |
16267 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16268 |
|
else |
16269 |
|
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16270 |
|
fi |
16271 |
|
;; |
16272 |
|
darwin*) |
16273 |
|
# PIC is the default on this platform |
16274 |
|
# Common symbols not allowed in MH_DYLIB files |
16275 |
|
case $cc_basename in |
16276 |
|
xlc*) |
16277 |
|
lt_prog_compiler_pic_GCJ='-qnocommon' |
16278 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16279 |
|
;; |
16280 |
|
esac |
16281 |
|
;; |
16282 |
|
|
16283 |
|
mingw* | pw32* | os2*) |
16284 |
|
# This hack is so that the source file can tell whether it is being |
16285 |
|
# built for inclusion in a dll (and should export symbols for example). |
16286 |
|
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16287 |
|
;; |
16288 |
|
|
16289 |
|
hpux9* | hpux10* | hpux11*) |
16290 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16291 |
|
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16292 |
|
# not for PA HP-UX. |
16293 |
|
case "$host_cpu" in |
16294 |
|
hppa*64*|ia64*) |
16295 |
|
# +Z the default |
16296 |
|
;; |
16297 |
|
*) |
16298 |
|
lt_prog_compiler_pic_GCJ='+Z' |
16299 |
|
;; |
16300 |
|
esac |
16301 |
|
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
16302 |
|
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16303 |
|
;; |
16304 |
|
|
16305 |
|
irix5* | irix6* | nonstopux*) |
16306 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16307 |
|
# PIC (with -KPIC) is the default. |
16308 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
16309 |
|
;; |
16310 |
|
|
16311 |
|
newsos6) |
16312 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
16313 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16314 |
|
;; |
16315 |
|
|
16316 |
|
linux*) |
16317 |
|
case $cc_basename in |
16318 |
|
icc* | ecc*) |
16319 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16320 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
16321 |
|
lt_prog_compiler_static_GCJ='-static' |
16322 |
|
;; |
16323 |
|
pgcc* | pgf77* | pgf90*) |
16324 |
|
# Portland Group compilers (*not* the Pentium gcc compiler, |
16325 |
|
# which looks to be a dead project) |
16326 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16327 |
|
lt_prog_compiler_pic_GCJ='-fpic' |
16328 |
|
lt_prog_compiler_static_GCJ='-static' |
16329 |
|
;; |
16330 |
|
ccc*) |
16331 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16332 |
|
# All Alpha code is PIC. |
16333 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
16334 |
|
;; |
16335 |
|
esac |
16336 |
|
;; |
16337 |
|
|
16338 |
|
osf3* | osf4* | osf5*) |
16339 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16340 |
|
# All OSF/1 code is PIC. |
16341 |
|
lt_prog_compiler_static_GCJ='-non_shared' |
16342 |
|
;; |
16343 |
|
|
16344 |
|
sco3.2v5*) |
16345 |
|
lt_prog_compiler_pic_GCJ='-Kpic' |
16346 |
|
lt_prog_compiler_static_GCJ='-dn' |
16347 |
|
;; |
16348 |
|
|
16349 |
|
solaris*) |
16350 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
16351 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16352 |
|
case $cc_basename in |
16353 |
|
f77* | f90* | f95*) |
16354 |
|
lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16355 |
|
*) |
16356 |
|
lt_prog_compiler_wl_GCJ='-Wl,';; |
16357 |
|
esac |
16358 |
|
;; |
16359 |
|
|
16360 |
|
sunos4*) |
16361 |
|
lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16362 |
|
lt_prog_compiler_pic_GCJ='-PIC' |
16363 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16364 |
|
;; |
16365 |
|
|
16366 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
16367 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16368 |
|
lt_prog_compiler_pic_GCJ='-KPIC' |
16369 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16370 |
|
;; |
16371 |
|
|
16372 |
|
sysv4*MP*) |
16373 |
|
if test -d /usr/nec ;then |
16374 |
|
lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16375 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16376 |
|
fi |
16377 |
|
;; |
16378 |
|
|
16379 |
|
unicos*) |
16380 |
|
lt_prog_compiler_wl_GCJ='-Wl,' |
16381 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
16382 |
|
;; |
16383 |
|
|
16384 |
|
uts4*) |
16385 |
|
lt_prog_compiler_pic_GCJ='-pic' |
16386 |
|
lt_prog_compiler_static_GCJ='-Bstatic' |
16387 |
|
;; |
16388 |
|
|
16389 |
|
*) |
16390 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
16391 |
|
;; |
16392 |
|
esac |
16393 |
|
fi |
16394 |
|
|
16395 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16396 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
16397 |
|
|
16398 |
|
# |
16399 |
|
# Check to make sure the PIC flag actually works. |
16400 |
|
# |
16401 |
|
if test -n "$lt_prog_compiler_pic_GCJ"; then |
16402 |
|
|
16403 |
|
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16404 |
|
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
16405 |
|
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16406 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
16407 |
|
else |
16408 |
|
lt_prog_compiler_pic_works_GCJ=no |
16409 |
|
ac_outfile=conftest.$ac_objext |
16410 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16411 |
|
lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16412 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
16413 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
16414 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
16415 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
16416 |
|
# The option is referenced via a variable to avoid confusing sed. |
16417 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
16418 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16419 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16420 |
|
-e 's:$: $lt_compiler_flag:'` |
16421 |
|
(eval echo "\"\$as_me:16421: $lt_compile\"" >&5) |
16422 |
|
(eval "$lt_compile" 2>conftest.err) |
16423 |
|
ac_status=$? |
16424 |
|
cat conftest.err >&5 |
16425 |
|
echo "$as_me:16425: \$? = $ac_status" >&5 |
16426 |
|
if (exit $ac_status) && test -s "$ac_outfile"; then |
16427 |
|
# The compiler can only warn and ignore the option if not recognized |
16428 |
|
# So say no if there are warnings other than the usual output. |
16429 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
16430 |
|
$SED '/^$/d' conftest.err >conftest.er2 |
16431 |
|
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
16432 |
|
lt_prog_compiler_pic_works_GCJ=yes |
16433 |
|
fi |
16434 |
|
fi |
16435 |
|
$rm conftest* |
16436 |
|
|
16437 |
|
fi |
16438 |
|
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16439 |
|
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
16440 |
|
|
16441 |
|
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16442 |
|
case $lt_prog_compiler_pic_GCJ in |
16443 |
|
"" | " "*) ;; |
16444 |
|
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16445 |
|
esac |
16446 |
|
else |
16447 |
|
lt_prog_compiler_pic_GCJ= |
16448 |
|
lt_prog_compiler_can_build_shared_GCJ=no |
16449 |
|
fi |
16450 |
|
|
16451 |
|
fi |
16452 |
|
case "$host_os" in |
16453 |
|
# For platforms which do not support PIC, -DPIC is meaningless: |
16454 |
|
*djgpp*) |
16455 |
|
lt_prog_compiler_pic_GCJ= |
16456 |
|
;; |
16457 |
|
*) |
16458 |
|
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16459 |
|
;; |
16460 |
|
esac |
16461 |
|
|
16462 |
|
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16463 |
|
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16464 |
|
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16465 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
16466 |
|
else |
16467 |
|
lt_cv_prog_compiler_c_o_GCJ=no |
16468 |
|
$rm -r conftest 2>/dev/null |
16469 |
|
mkdir conftest |
16470 |
|
cd conftest |
16471 |
|
mkdir out |
16472 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16473 |
|
|
16474 |
|
lt_compiler_flag="-o out/conftest2.$ac_objext" |
16475 |
|
# Insert the option either (1) after the last *FLAGS variable, or |
16476 |
|
# (2) before a word containing "conftest.", or (3) at the end. |
16477 |
|
# Note that $ac_compile itself does not contain backslashes and begins |
16478 |
|
# with a dollar sign (not a hyphen), so the echo should work correctly. |
16479 |
|
lt_compile=`echo "$ac_compile" | $SED \ |
16480 |
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
16481 |
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16482 |
|
-e 's:$: $lt_compiler_flag:'` |
16483 |
|
(eval echo "\"\$as_me:16483: $lt_compile\"" >&5) |
16484 |
|
(eval "$lt_compile" 2>out/conftest.err) |
16485 |
|
ac_status=$? |
16486 |
|
cat out/conftest.err >&5 |
16487 |
|
echo "$as_me:16487: \$? = $ac_status" >&5 |
16488 |
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16489 |
|
then |
16490 |
|
# The compiler can only warn and ignore the option if not recognized |
16491 |
|
# So say no if there are warnings |
16492 |
|
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
16493 |
|
$SED '/^$/d' out/conftest.err >out/conftest.er2 |
16494 |
|
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16495 |
|
lt_cv_prog_compiler_c_o_GCJ=yes |
16496 |
|
fi |
16497 |
|
fi |
16498 |
|
chmod u+w . |
16499 |
|
$rm conftest* |
16500 |
|
# SGI C++ compiler will create directory out/ii_files/ for |
16501 |
|
# template instantiation |
16502 |
|
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16503 |
|
$rm out/* && rmdir out |
16504 |
|
cd .. |
16505 |
|
rmdir conftest |
16506 |
|
$rm conftest* |
16507 |
|
|
16508 |
|
fi |
16509 |
|
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16510 |
|
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
16511 |
|
|
16512 |
|
|
16513 |
|
hard_links="nottested" |
16514 |
|
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16515 |
|
# do not overwrite the value of need_locks provided by the user |
16516 |
|
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16517 |
|
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
16518 |
|
hard_links=yes |
16519 |
|
$rm conftest* |
16520 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16521 |
|
touch conftest.a |
16522 |
|
ln conftest.a conftest.b 2>&5 || hard_links=no |
16523 |
|
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16524 |
|
echo "$as_me:$LINENO: result: $hard_links" >&5 |
16525 |
|
echo "${ECHO_T}$hard_links" >&6 |
16526 |
|
if test "$hard_links" = no; then |
16527 |
|
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16528 |
|
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16529 |
|
need_locks=warn |
16530 |
|
fi |
16531 |
|
else |
16532 |
|
need_locks=no |
16533 |
|
fi |
16534 |
|
|
16535 |
|
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16536 |
|
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
16537 |
|
|
16538 |
|
runpath_var= |
16539 |
|
allow_undefined_flag_GCJ= |
16540 |
|
enable_shared_with_static_runtimes_GCJ=no |
16541 |
|
archive_cmds_GCJ= |
16542 |
|
archive_expsym_cmds_GCJ= |
16543 |
|
old_archive_From_new_cmds_GCJ= |
16544 |
|
old_archive_from_expsyms_cmds_GCJ= |
16545 |
|
export_dynamic_flag_spec_GCJ= |
16546 |
|
whole_archive_flag_spec_GCJ= |
16547 |
|
thread_safe_flag_spec_GCJ= |
16548 |
|
hardcode_libdir_flag_spec_GCJ= |
16549 |
|
hardcode_libdir_flag_spec_ld_GCJ= |
16550 |
|
hardcode_libdir_separator_GCJ= |
16551 |
|
hardcode_direct_GCJ=no |
16552 |
|
hardcode_minus_L_GCJ=no |
16553 |
|
hardcode_shlibpath_var_GCJ=unsupported |
16554 |
|
link_all_deplibs_GCJ=unknown |
16555 |
|
hardcode_automatic_GCJ=no |
16556 |
|
module_cmds_GCJ= |
16557 |
|
module_expsym_cmds_GCJ= |
16558 |
|
always_export_symbols_GCJ=no |
16559 |
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16560 |
|
# include_expsyms should be a list of space-separated symbols to be *always* |
16561 |
|
# included in the symbol list |
16562 |
|
include_expsyms_GCJ= |
16563 |
|
# exclude_expsyms can be an extended regexp of symbols to exclude |
16564 |
|
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
16565 |
|
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16566 |
|
# as well as any symbol that contains `d'. |
16567 |
|
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16568 |
|
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16569 |
|
# platforms (ab)use it in PIC code, but their linkers get confused if |
16570 |
|
# the symbol is explicitly referenced. Since portable code cannot |
16571 |
|
# rely on this symbol name, it's probably fine to never include it in |
16572 |
|
# preloaded symbol tables. |
16573 |
|
extract_expsyms_cmds= |
16574 |
|
# Just being paranoid about ensuring that cc_basename is set. |
16575 |
|
for cc_temp in $compiler""; do |
16576 |
|
case $cc_temp in |
16577 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16578 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16579 |
|
\-*) ;; |
16580 |
|
*) break;; |
16581 |
|
esac |
16582 |
|
done |
16583 |
|
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16584 |
|
|
16585 |
|
case $host_os in |
16586 |
|
cygwin* | mingw* | pw32*) |
16587 |
|
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
16588 |
|
# When not using gcc, we currently assume that we are using |
16589 |
|
# Microsoft Visual C++. |
16590 |
|
if test "$GCC" != yes; then |
16591 |
|
with_gnu_ld=no |
16592 |
|
fi |
16593 |
|
;; |
16594 |
|
openbsd*) |
16595 |
|
with_gnu_ld=no |
16596 |
|
;; |
16597 |
|
esac |
16598 |
|
|
16599 |
|
ld_shlibs_GCJ=yes |
16600 |
|
if test "$with_gnu_ld" = yes; then |
16601 |
|
# If archive_cmds runs LD, not CC, wlarc should be empty |
16602 |
|
wlarc='${wl}' |
16603 |
|
|
16604 |
|
# Set some defaults for GNU ld with shared library support. These |
16605 |
|
# are reset later if shared libraries are not supported. Putting them |
16606 |
|
# here allows them to be overridden if necessary. |
16607 |
|
runpath_var=LD_RUN_PATH |
16608 |
|
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16609 |
|
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16610 |
|
# ancient GNU ld didn't support --whole-archive et. al. |
16611 |
|
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16612 |
|
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16613 |
|
else |
16614 |
|
whole_archive_flag_spec_GCJ= |
16615 |
|
fi |
16616 |
|
supports_anon_versioning=no |
16617 |
|
case `$LD -v 2>/dev/null` in |
16618 |
|
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16619 |
|
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16620 |
|
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16621 |
|
*\ 2.11.*) ;; # other 2.11 versions |
16622 |
|
*) supports_anon_versioning=yes ;; |
16623 |
|
esac |
16624 |
|
|
16625 |
|
# See if GNU ld supports shared libraries. |
16626 |
|
case $host_os in |
16627 |
|
aix3* | aix4* | aix5*) |
16628 |
|
# On AIX/PPC, the GNU linker is very broken |
16629 |
|
if test "$host_cpu" != ia64; then |
16630 |
|
ld_shlibs_GCJ=no |
16631 |
|
cat <<EOF 1>&2 |
16632 |
|
|
16633 |
|
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16634 |
|
*** to be unable to reliably create shared libraries on AIX. |
16635 |
|
*** Therefore, libtool is disabling shared libraries support. If you |
16636 |
|
*** really care for shared libraries, you may want to modify your PATH |
16637 |
|
*** so that a non-GNU linker is found, and then restart. |
16638 |
|
|
16639 |
|
EOF |
16640 |
|
fi |
16641 |
|
;; |
16642 |
|
|
16643 |
|
amigaos*) |
16644 |
|
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)' |
16645 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16646 |
|
hardcode_minus_L_GCJ=yes |
16647 |
|
|
16648 |
|
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16649 |
|
# that the semantics of dynamic libraries on AmigaOS, at least up |
16650 |
|
# to version 4, is to share data among multiple programs linked |
16651 |
|
# with the same dynamic library. Since this doesn't match the |
16652 |
|
# behavior of shared libraries on other platforms, we can't use |
16653 |
|
# them. |
16654 |
|
ld_shlibs_GCJ=no |
16655 |
|
;; |
16656 |
|
|
16657 |
|
beos*) |
16658 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16659 |
|
allow_undefined_flag_GCJ=unsupported |
16660 |
|
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16661 |
|
# support --undefined. This deserves some investigation. FIXME |
16662 |
|
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16663 |
|
else |
16664 |
|
ld_shlibs_GCJ=no |
16665 |
|
fi |
16666 |
|
;; |
16667 |
|
|
16668 |
|
cygwin* | mingw* | pw32*) |
16669 |
|
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16670 |
|
# as there is no search path for DLLs. |
16671 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16672 |
|
allow_undefined_flag_GCJ=unsupported |
16673 |
|
always_export_symbols_GCJ=no |
16674 |
|
enable_shared_with_static_runtimes_GCJ=yes |
16675 |
|
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16676 |
|
|
16677 |
|
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16678 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16679 |
|
# If the export-symbols file already is a .def file (1st line |
16680 |
|
# is EXPORTS), use it as is; otherwise, prepend... |
16681 |
|
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16682 |
|
cp $export_symbols $output_objdir/$soname.def; |
16683 |
|
else |
16684 |
|
echo EXPORTS > $output_objdir/$soname.def; |
16685 |
|
cat $export_symbols >> $output_objdir/$soname.def; |
16686 |
|
fi~ |
16687 |
|
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
16688 |
|
else |
16689 |
|
ld_shlibs_GCJ=no |
16690 |
|
fi |
16691 |
|
;; |
16692 |
|
|
16693 |
|
linux*) |
16694 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16695 |
|
tmp_addflag= |
16696 |
|
case $cc_basename,$host_cpu in |
16697 |
|
pgcc*) # Portland Group C compiler |
16698 |
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16699 |
|
tmp_addflag=' $pic_flag' |
16700 |
|
;; |
16701 |
|
pgf77* | pgf90* ) # Portland Group f77 and f90 compilers |
16702 |
|
whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
16703 |
|
tmp_addflag=' $pic_flag -Mnomain' ;; |
16704 |
|
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16705 |
|
tmp_addflag=' -i_dynamic' ;; |
16706 |
|
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16707 |
|
tmp_addflag=' -i_dynamic -nofor_main' ;; |
16708 |
|
ifc* | ifort*) # Intel Fortran compiler |
16709 |
|
tmp_addflag=' -nofor_main' ;; |
16710 |
|
esac |
16711 |
|
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16712 |
|
|
16713 |
|
if test $supports_anon_versioning = yes; then |
16714 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16715 |
|
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16716 |
|
$echo "local: *; };" >> $output_objdir/$libname.ver~ |
16717 |
|
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16718 |
|
fi |
16719 |
|
else |
16720 |
|
ld_shlibs_GCJ=no |
16721 |
|
fi |
16722 |
|
;; |
16723 |
|
|
16724 |
|
netbsd*) |
16725 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16726 |
|
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16727 |
|
wlarc= |
16728 |
|
else |
16729 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16730 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16731 |
|
fi |
16732 |
|
;; |
16733 |
|
|
16734 |
|
solaris* | sysv5*) |
16735 |
|
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16736 |
|
ld_shlibs_GCJ=no |
16737 |
|
cat <<EOF 1>&2 |
16738 |
|
|
16739 |
|
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16740 |
|
*** create shared libraries on Solaris systems. Therefore, libtool |
16741 |
|
*** is disabling shared libraries support. We urge you to upgrade GNU |
16742 |
|
*** binutils to release 2.9.1 or newer. Another option is to modify |
16743 |
|
*** your PATH or compiler configuration so that the native linker is |
16744 |
|
*** used, and then restart. |
16745 |
|
|
16746 |
|
EOF |
16747 |
|
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16748 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16749 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16750 |
|
else |
16751 |
|
ld_shlibs_GCJ=no |
16752 |
|
fi |
16753 |
|
;; |
16754 |
|
|
16755 |
|
sunos4*) |
16756 |
|
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16757 |
|
wlarc= |
16758 |
|
hardcode_direct_GCJ=yes |
16759 |
|
hardcode_shlibpath_var_GCJ=no |
16760 |
|
;; |
16761 |
|
|
16762 |
|
*) |
16763 |
|
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16764 |
|
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16765 |
|
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16766 |
|
else |
16767 |
|
ld_shlibs_GCJ=no |
16768 |
|
fi |
16769 |
|
;; |
16770 |
|
esac |
16771 |
|
|
16772 |
|
if test "$ld_shlibs_GCJ" = no; then |
16773 |
|
runpath_var= |
16774 |
|
hardcode_libdir_flag_spec_GCJ= |
16775 |
|
export_dynamic_flag_spec_GCJ= |
16776 |
|
whole_archive_flag_spec_GCJ= |
16777 |
|
fi |
16778 |
|
else |
16779 |
|
# PORTME fill in a description of your system's linker (not GNU ld) |
16780 |
|
case $host_os in |
16781 |
|
aix3*) |
16782 |
|
allow_undefined_flag_GCJ=unsupported |
16783 |
|
always_export_symbols_GCJ=yes |
16784 |
|
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' |
16785 |
|
# Note: this linker hardcodes the directories in LIBPATH if there |
16786 |
|
# are no directories specified by -L. |
16787 |
|
hardcode_minus_L_GCJ=yes |
16788 |
|
if test "$GCC" = yes && test -z "$link_static_flag"; then |
16789 |
|
# Neither direct hardcoding nor static linking is supported with a |
16790 |
|
# broken collect2. |
16791 |
|
hardcode_direct_GCJ=unsupported |
16792 |
|
fi |
16793 |
|
;; |
16794 |
|
|
16795 |
|
aix4* | aix5*) |
16796 |
|
if test "$host_cpu" = ia64; then |
16797 |
|
# On IA64, the linker does run time linking by default, so we don't |
16798 |
|
# have to do anything special. |
16799 |
|
aix_use_runtimelinking=no |
16800 |
|
exp_sym_flag='-Bexport' |
16801 |
|
no_entry_flag="" |
16802 |
|
else |
16803 |
|
# If we're using GNU nm, then we don't want the "-C" option. |
16804 |
|
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
16805 |
|
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
16806 |
|
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' |
16807 |
|
else |
16808 |
|
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' |
16809 |
|
fi |
16810 |
|
aix_use_runtimelinking=no |
16811 |
|
|
16812 |
|
# Test if we are trying to use run time linking or normal |
16813 |
|
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
16814 |
|
# need to do runtime linking. |
16815 |
|
case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
16816 |
|
for ld_flag in $LDFLAGS; do |
16817 |
|
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
16818 |
|
aix_use_runtimelinking=yes |
16819 |
|
break |
16820 |
|
fi |
16821 |
|
done |
16822 |
|
esac |
16823 |
|
|
16824 |
|
exp_sym_flag='-bexport' |
16825 |
|
no_entry_flag='-bnoentry' |
16826 |
|
fi |
16827 |
|
|
16828 |
|
# When large executables or shared objects are built, AIX ld can |
16829 |
|
# have problems creating the table of contents. If linking a library |
16830 |
|
# or program results in "error TOC overflow" add -mminimal-toc to |
16831 |
|
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
16832 |
|
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
16833 |
|
|
16834 |
|
archive_cmds_GCJ='' |
16835 |
|
hardcode_direct_GCJ=yes |
16836 |
|
hardcode_libdir_separator_GCJ=':' |
16837 |
|
link_all_deplibs_GCJ=yes |
16838 |
|
|
16839 |
|
if test "$GCC" = yes; then |
16840 |
|
case $host_os in aix4.[012]|aix4.[012].*) |
16841 |
|
# We only want to do this on AIX 4.2 and lower, the check |
16842 |
|
# below for broken collect2 doesn't work under 4.3+ |
16843 |
|
collect2name=`${CC} -print-prog-name=collect2` |
16844 |
|
if test -f "$collect2name" && \ |
16845 |
|
strings "$collect2name" | grep resolve_lib_name >/dev/null |
16846 |
|
then |
16847 |
|
# We have reworked collect2 |
16848 |
|
hardcode_direct_GCJ=yes |
16849 |
|
else |
16850 |
|
# We have old collect2 |
16851 |
|
hardcode_direct_GCJ=unsupported |
16852 |
|
# It fails to find uninstalled libraries when the uninstalled |
16853 |
|
# path is not listed in the libpath. Setting hardcode_minus_L |
16854 |
|
# to unsupported forces relinking |
16855 |
|
hardcode_minus_L_GCJ=yes |
16856 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16857 |
|
hardcode_libdir_separator_GCJ= |
16858 |
|
fi |
16859 |
|
esac |
16860 |
|
shared_flag='-shared' |
16861 |
|
if test "$aix_use_runtimelinking" = yes; then |
16862 |
|
shared_flag="$shared_flag "'${wl}-G' |
16863 |
|
fi |
16864 |
|
else |
16865 |
|
# not using gcc |
16866 |
|
if test "$host_cpu" = ia64; then |
16867 |
|
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
16868 |
|
# chokes on -Wl,-G. The following line is correct: |
16869 |
|
shared_flag='-G' |
16870 |
|
else |
16871 |
|
if test "$aix_use_runtimelinking" = yes; then |
16872 |
|
shared_flag='${wl}-G' |
16873 |
|
else |
16874 |
|
shared_flag='${wl}-bM:SRE' |
16875 |
|
fi |
16876 |
|
fi |
16877 |
|
fi |
16878 |
|
|
16879 |
|
# It seems that -bexpall does not export symbols beginning with |
16880 |
|
# underscore (_), so it is better to generate a list of symbols to export. |
16881 |
|
always_export_symbols_GCJ=yes |
16882 |
|
if test "$aix_use_runtimelinking" = yes; then |
16883 |
|
# Warning - without using the other runtime loading flags (-brtl), |
16884 |
|
# -berok will link without error, but may produce a broken library. |
16885 |
|
allow_undefined_flag_GCJ='-berok' |
16886 |
|
# Determine the default libpath from the value encoded in an empty executable. |
16887 |
|
cat >conftest.$ac_ext <<_ACEOF |
16888 |
|
/* confdefs.h. */ |
16889 |
|
_ACEOF |
16890 |
|
cat confdefs.h >>conftest.$ac_ext |
16891 |
|
cat >>conftest.$ac_ext <<_ACEOF |
16892 |
|
/* end confdefs.h. */ |
16893 |
|
|
16894 |
|
int |
16895 |
|
main () |
16896 |
|
{ |
16897 |
|
|
16898 |
|
; |
16899 |
|
return 0; |
16900 |
|
} |
16901 |
|
_ACEOF |
16902 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
16903 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16904 |
|
(eval $ac_link) 2>conftest.er1 |
16905 |
|
ac_status=$? |
16906 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
16907 |
|
rm -f conftest.er1 |
16908 |
|
cat conftest.err >&5 |
16909 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16910 |
|
(exit $ac_status); } && |
16911 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
16912 |
|
|| test ! -s conftest.err' |
16913 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16914 |
|
(eval $ac_try) 2>&5 |
16915 |
|
ac_status=$? |
16916 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16917 |
|
(exit $ac_status); }; } && |
16918 |
|
{ ac_try='test -s conftest$ac_exeext' |
16919 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16920 |
|
(eval $ac_try) 2>&5 |
16921 |
|
ac_status=$? |
16922 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16923 |
|
(exit $ac_status); }; }; then |
16924 |
|
|
16925 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16926 |
|
}'` |
16927 |
|
# Check for a 64-bit object if we didn't find anything. |
16928 |
|
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; } |
16929 |
|
}'`; fi |
16930 |
|
else |
16931 |
|
echo "$as_me: failed program was:" >&5 |
16932 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
16933 |
|
|
16934 |
|
fi |
16935 |
|
rm -f conftest.err conftest.$ac_objext \ |
16936 |
|
conftest$ac_exeext conftest.$ac_ext |
16937 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16938 |
|
|
16939 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
16940 |
|
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" |
16941 |
|
else |
16942 |
|
if test "$host_cpu" = ia64; then |
16943 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
16944 |
|
allow_undefined_flag_GCJ="-z nodefs" |
16945 |
|
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" |
16946 |
|
else |
16947 |
|
# Determine the default libpath from the value encoded in an empty executable. |
16948 |
|
cat >conftest.$ac_ext <<_ACEOF |
16949 |
|
/* confdefs.h. */ |
16950 |
|
_ACEOF |
16951 |
|
cat confdefs.h >>conftest.$ac_ext |
16952 |
|
cat >>conftest.$ac_ext <<_ACEOF |
16953 |
|
/* end confdefs.h. */ |
16954 |
|
|
16955 |
|
int |
16956 |
|
main () |
16957 |
|
{ |
16958 |
|
|
16959 |
|
; |
16960 |
|
return 0; |
16961 |
|
} |
16962 |
|
_ACEOF |
16963 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
16964 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
16965 |
|
(eval $ac_link) 2>conftest.er1 |
16966 |
|
ac_status=$? |
16967 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
16968 |
|
rm -f conftest.er1 |
16969 |
|
cat conftest.err >&5 |
16970 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16971 |
|
(exit $ac_status); } && |
16972 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
16973 |
|
|| test ! -s conftest.err' |
16974 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16975 |
|
(eval $ac_try) 2>&5 |
16976 |
|
ac_status=$? |
16977 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16978 |
|
(exit $ac_status); }; } && |
16979 |
|
{ ac_try='test -s conftest$ac_exeext' |
16980 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16981 |
|
(eval $ac_try) 2>&5 |
16982 |
|
ac_status=$? |
16983 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16984 |
|
(exit $ac_status); }; }; then |
16985 |
|
|
16986 |
|
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
16987 |
|
}'` |
16988 |
|
# Check for a 64-bit object if we didn't find anything. |
16989 |
|
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; } |
16990 |
|
}'`; fi |
16991 |
|
else |
16992 |
|
echo "$as_me: failed program was:" >&5 |
16993 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
16994 |
|
|
16995 |
|
fi |
16996 |
|
rm -f conftest.err conftest.$ac_objext \ |
16997 |
|
conftest$ac_exeext conftest.$ac_ext |
16998 |
|
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16999 |
|
|
17000 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17001 |
|
# Warning - without using the other run time loading flags, |
17002 |
|
# -berok will link without error, but may produce a broken library. |
17003 |
|
no_undefined_flag_GCJ=' ${wl}-bernotok' |
17004 |
|
allow_undefined_flag_GCJ=' ${wl}-berok' |
17005 |
|
# -bexpall does not export symbols beginning with underscore (_) |
17006 |
|
always_export_symbols_GCJ=yes |
17007 |
|
# Exported symbols can be pulled into shared objects from archives |
17008 |
|
whole_archive_flag_spec_GCJ=' ' |
17009 |
|
archive_cmds_need_lc_GCJ=yes |
17010 |
|
# This is similar to how AIX traditionally builds it's shared libraries. |
17011 |
|
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' |
17012 |
|
fi |
17013 |
|
fi |
17014 |
|
;; |
17015 |
|
|
17016 |
|
amigaos*) |
17017 |
|
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)' |
17018 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17019 |
|
hardcode_minus_L_GCJ=yes |
17020 |
|
# see comment about different semantics on the GNU ld section |
17021 |
|
ld_shlibs_GCJ=no |
17022 |
|
;; |
17023 |
|
|
17024 |
|
bsdi[45]*) |
17025 |
|
export_dynamic_flag_spec_GCJ=-rdynamic |
17026 |
|
;; |
17027 |
|
|
17028 |
|
cygwin* | mingw* | pw32*) |
17029 |
|
# When not using gcc, we currently assume that we are using |
17030 |
|
# Microsoft Visual C++. |
17031 |
|
# hardcode_libdir_flag_spec is actually meaningless, as there is |
17032 |
|
# no search path for DLLs. |
17033 |
|
hardcode_libdir_flag_spec_GCJ=' ' |
17034 |
|
allow_undefined_flag_GCJ=unsupported |
17035 |
|
# Tell ltmain to make .lib files, not .a files. |
17036 |
|
libext=lib |
17037 |
|
# Tell ltmain to make .dll files, not .so files. |
17038 |
|
shrext_cmds=".dll" |
17039 |
|
# FIXME: Setting linknames here is a bad hack. |
17040 |
|
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17041 |
|
# The linker will automatically build a .lib file if we build a DLL. |
17042 |
|
old_archive_From_new_cmds_GCJ='true' |
17043 |
|
# FIXME: Should let the user specify the lib program. |
17044 |
|
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17045 |
|
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17046 |
|
enable_shared_with_static_runtimes_GCJ=yes |
17047 |
|
;; |
17048 |
|
|
17049 |
|
darwin* | rhapsody*) |
17050 |
|
case "$host_os" in |
17051 |
|
rhapsody* | darwin1.[012]) |
17052 |
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17053 |
|
;; |
17054 |
|
*) # Darwin 1.3 on |
17055 |
|
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17056 |
|
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17057 |
|
else |
17058 |
|
case ${MACOSX_DEPLOYMENT_TARGET} in |
17059 |
|
10.[012]) |
17060 |
|
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17061 |
|
;; |
17062 |
|
10.*) |
17063 |
|
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17064 |
|
;; |
17065 |
|
esac |
17066 |
|
fi |
17067 |
|
;; |
17068 |
|
esac |
17069 |
|
archive_cmds_need_lc_GCJ=no |
17070 |
|
hardcode_direct_GCJ=no |
17071 |
|
hardcode_automatic_GCJ=yes |
17072 |
|
hardcode_shlibpath_var_GCJ=unsupported |
17073 |
|
whole_archive_flag_spec_GCJ='' |
17074 |
|
link_all_deplibs_GCJ=yes |
17075 |
|
if test "$GCC" = yes ; then |
17076 |
|
output_verbose_link_cmd='echo' |
17077 |
|
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17078 |
|
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17079 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
17080 |
|
archive_expsym_cmds_GCJ='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}' |
17081 |
|
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}' |
17082 |
|
else |
17083 |
|
case $cc_basename in |
17084 |
|
xlc*) |
17085 |
|
output_verbose_link_cmd='echo' |
17086 |
|
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17087 |
|
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17088 |
|
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
17089 |
|
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17090 |
|
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}' |
17091 |
|
;; |
17092 |
|
*) |
17093 |
|
ld_shlibs_GCJ=no |
17094 |
|
;; |
17095 |
|
esac |
17096 |
|
fi |
17097 |
|
;; |
17098 |
|
|
17099 |
|
dgux*) |
17100 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17101 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17102 |
|
hardcode_shlibpath_var_GCJ=no |
17103 |
|
;; |
17104 |
|
|
17105 |
|
freebsd1*) |
17106 |
|
ld_shlibs_GCJ=no |
17107 |
|
;; |
17108 |
|
|
17109 |
|
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17110 |
|
# support. Future versions do this automatically, but an explicit c++rt0.o |
17111 |
|
# does not break anything, and helps significantly (at the cost of a little |
17112 |
|
# extra space). |
17113 |
|
freebsd2.2*) |
17114 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17115 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17116 |
|
hardcode_direct_GCJ=yes |
17117 |
|
hardcode_shlibpath_var_GCJ=no |
17118 |
|
;; |
17119 |
|
|
17120 |
|
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17121 |
|
freebsd2*) |
17122 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17123 |
|
hardcode_direct_GCJ=yes |
17124 |
|
hardcode_minus_L_GCJ=yes |
17125 |
|
hardcode_shlibpath_var_GCJ=no |
17126 |
|
;; |
17127 |
|
|
17128 |
|
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17129 |
|
freebsd* | kfreebsd*-gnu | dragonfly*) |
17130 |
|
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17131 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17132 |
|
hardcode_direct_GCJ=yes |
17133 |
|
hardcode_shlibpath_var_GCJ=no |
17134 |
|
;; |
17135 |
|
|
17136 |
|
hpux9*) |
17137 |
|
if test "$GCC" = yes; then |
17138 |
|
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' |
17139 |
|
else |
17140 |
|
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' |
17141 |
|
fi |
17142 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17143 |
|
hardcode_libdir_separator_GCJ=: |
17144 |
|
hardcode_direct_GCJ=yes |
17145 |
|
|
17146 |
|
# hardcode_minus_L: Not really in the search PATH, |
17147 |
|
# but as the default location of the library. |
17148 |
|
hardcode_minus_L_GCJ=yes |
17149 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
17150 |
|
;; |
17151 |
|
|
17152 |
|
hpux10* | hpux11*) |
17153 |
|
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17154 |
|
case "$host_cpu" in |
17155 |
|
hppa*64*|ia64*) |
17156 |
|
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17157 |
|
;; |
17158 |
|
*) |
17159 |
|
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17160 |
|
;; |
17161 |
|
esac |
17162 |
|
else |
17163 |
|
case "$host_cpu" in |
17164 |
|
hppa*64*|ia64*) |
17165 |
|
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
17166 |
|
;; |
17167 |
|
*) |
17168 |
|
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17169 |
|
;; |
17170 |
|
esac |
17171 |
|
fi |
17172 |
|
if test "$with_gnu_ld" = no; then |
17173 |
|
case "$host_cpu" in |
17174 |
|
hppa*64*) |
17175 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17176 |
|
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17177 |
|
hardcode_libdir_separator_GCJ=: |
17178 |
|
hardcode_direct_GCJ=no |
17179 |
|
hardcode_shlibpath_var_GCJ=no |
17180 |
|
;; |
17181 |
|
ia64*) |
17182 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17183 |
|
hardcode_direct_GCJ=no |
17184 |
|
hardcode_shlibpath_var_GCJ=no |
17185 |
|
|
17186 |
|
# hardcode_minus_L: Not really in the search PATH, |
17187 |
|
# but as the default location of the library. |
17188 |
|
hardcode_minus_L_GCJ=yes |
17189 |
|
;; |
17190 |
|
*) |
17191 |
|
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17192 |
|
hardcode_libdir_separator_GCJ=: |
17193 |
|
hardcode_direct_GCJ=yes |
17194 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
17195 |
|
|
17196 |
|
# hardcode_minus_L: Not really in the search PATH, |
17197 |
|
# but as the default location of the library. |
17198 |
|
hardcode_minus_L_GCJ=yes |
17199 |
|
;; |
17200 |
|
esac |
17201 |
|
fi |
17202 |
|
;; |
17203 |
|
|
17204 |
|
irix5* | irix6* | nonstopux*) |
17205 |
|
if test "$GCC" = yes; then |
17206 |
|
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' |
17207 |
|
else |
17208 |
|
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' |
17209 |
|
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17210 |
|
fi |
17211 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17212 |
|
hardcode_libdir_separator_GCJ=: |
17213 |
|
link_all_deplibs_GCJ=yes |
17214 |
|
;; |
17215 |
|
|
17216 |
|
netbsd*) |
17217 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17218 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17219 |
|
else |
17220 |
|
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17221 |
|
fi |
17222 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17223 |
|
hardcode_direct_GCJ=yes |
17224 |
|
hardcode_shlibpath_var_GCJ=no |
17225 |
|
;; |
17226 |
|
|
17227 |
|
newsos6) |
17228 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17229 |
|
hardcode_direct_GCJ=yes |
17230 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17231 |
|
hardcode_libdir_separator_GCJ=: |
17232 |
|
hardcode_shlibpath_var_GCJ=no |
17233 |
|
;; |
17234 |
|
|
17235 |
|
openbsd*) |
17236 |
|
hardcode_direct_GCJ=yes |
17237 |
|
hardcode_shlibpath_var_GCJ=no |
17238 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17239 |
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17240 |
|
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17241 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17242 |
|
export_dynamic_flag_spec_GCJ='${wl}-E' |
17243 |
|
else |
17244 |
|
case $host_os in |
17245 |
|
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17246 |
|
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17247 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17248 |
|
;; |
17249 |
|
*) |
17250 |
|
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17251 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17252 |
|
;; |
17253 |
|
esac |
17254 |
|
fi |
17255 |
|
;; |
17256 |
|
|
17257 |
|
os2*) |
17258 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17259 |
|
hardcode_minus_L_GCJ=yes |
17260 |
|
allow_undefined_flag_GCJ=unsupported |
17261 |
|
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' |
17262 |
|
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17263 |
|
;; |
17264 |
|
|
17265 |
|
osf3*) |
17266 |
|
if test "$GCC" = yes; then |
17267 |
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17268 |
|
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' |
17269 |
|
else |
17270 |
|
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17271 |
|
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' |
17272 |
|
fi |
17273 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17274 |
|
hardcode_libdir_separator_GCJ=: |
17275 |
|
;; |
17276 |
|
|
17277 |
|
osf4* | osf5*) # as osf3* with the addition of -msym flag |
17278 |
|
if test "$GCC" = yes; then |
17279 |
|
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17280 |
|
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' |
17281 |
|
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17282 |
|
else |
17283 |
|
allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17284 |
|
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' |
17285 |
|
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~ |
17286 |
|
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
17287 |
|
|
17288 |
|
# Both c and cxx compiler support -rpath directly |
17289 |
|
hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17290 |
|
fi |
17291 |
|
hardcode_libdir_separator_GCJ=: |
17292 |
|
;; |
17293 |
|
|
17294 |
|
sco3.2v5*) |
17295 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17296 |
|
hardcode_shlibpath_var_GCJ=no |
17297 |
|
export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17298 |
|
runpath_var=LD_RUN_PATH |
17299 |
|
hardcode_runpath_var=yes |
17300 |
|
;; |
17301 |
|
|
17302 |
|
solaris*) |
17303 |
|
no_undefined_flag_GCJ=' -z text' |
17304 |
|
if test "$GCC" = yes; then |
17305 |
|
wlarc='${wl}' |
17306 |
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17307 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17308 |
|
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17309 |
|
else |
17310 |
|
wlarc='' |
17311 |
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17312 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17313 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17314 |
|
fi |
17315 |
|
hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17316 |
|
hardcode_shlibpath_var_GCJ=no |
17317 |
|
case $host_os in |
17318 |
|
solaris2.[0-5] | solaris2.[0-5].*) ;; |
17319 |
|
*) |
17320 |
|
# The compiler driver will combine linker options so we |
17321 |
|
# cannot just pass the convience library names through |
17322 |
|
# without $wl, iff we do not link with $LD. |
17323 |
|
# Luckily, gcc supports the same syntax we need for Sun Studio. |
17324 |
|
# Supported since Solaris 2.6 (maybe 2.5.1?) |
17325 |
|
case $wlarc in |
17326 |
|
'') |
17327 |
|
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17328 |
|
*) |
17329 |
|
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
17330 |
|
esac ;; |
17331 |
|
esac |
17332 |
|
link_all_deplibs_GCJ=yes |
17333 |
|
;; |
17334 |
|
|
17335 |
|
sunos4*) |
17336 |
|
if test "x$host_vendor" = xsequent; then |
17337 |
|
# Use $CC to link under sequent, because it throws in some extra .o |
17338 |
|
# files that make .init and .fini sections work. |
17339 |
|
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17340 |
|
else |
17341 |
|
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17342 |
|
fi |
17343 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17344 |
|
hardcode_direct_GCJ=yes |
17345 |
|
hardcode_minus_L_GCJ=yes |
17346 |
|
hardcode_shlibpath_var_GCJ=no |
17347 |
|
;; |
17348 |
|
|
17349 |
|
sysv4) |
17350 |
|
case $host_vendor in |
17351 |
|
sni) |
17352 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17353 |
|
hardcode_direct_GCJ=yes # is this really true??? |
17354 |
|
;; |
17355 |
|
siemens) |
17356 |
|
## LD is ld it makes a PLAMLIB |
17357 |
|
## CC just makes a GrossModule. |
17358 |
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17359 |
|
reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17360 |
|
hardcode_direct_GCJ=no |
17361 |
|
;; |
17362 |
|
motorola) |
17363 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17364 |
|
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17365 |
|
;; |
17366 |
|
esac |
17367 |
|
runpath_var='LD_RUN_PATH' |
17368 |
|
hardcode_shlibpath_var_GCJ=no |
17369 |
|
;; |
17370 |
|
|
17371 |
|
sysv4.3*) |
17372 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17373 |
|
hardcode_shlibpath_var_GCJ=no |
17374 |
|
export_dynamic_flag_spec_GCJ='-Bexport' |
17375 |
|
;; |
17376 |
|
|
17377 |
|
sysv4*MP*) |
17378 |
|
if test -d /usr/nec; then |
17379 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17380 |
|
hardcode_shlibpath_var_GCJ=no |
17381 |
|
runpath_var=LD_RUN_PATH |
17382 |
|
hardcode_runpath_var=yes |
17383 |
|
ld_shlibs_GCJ=yes |
17384 |
|
fi |
17385 |
|
;; |
17386 |
|
|
17387 |
|
sysv4.2uw2*) |
17388 |
|
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17389 |
|
hardcode_direct_GCJ=yes |
17390 |
|
hardcode_minus_L_GCJ=no |
17391 |
|
hardcode_shlibpath_var_GCJ=no |
17392 |
|
hardcode_runpath_var=yes |
17393 |
|
runpath_var=LD_RUN_PATH |
17394 |
|
;; |
17395 |
|
|
17396 |
|
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
17397 |
|
no_undefined_flag_GCJ='${wl}-z ${wl}text' |
17398 |
|
if test "$GCC" = yes; then |
17399 |
|
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17400 |
|
else |
17401 |
|
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17402 |
|
fi |
17403 |
|
runpath_var='LD_RUN_PATH' |
17404 |
|
hardcode_shlibpath_var_GCJ=no |
17405 |
|
;; |
17406 |
|
|
17407 |
|
sysv5*) |
17408 |
|
no_undefined_flag_GCJ=' -z text' |
17409 |
|
# $CC -shared without GNU ld will not create a library from C++ |
17410 |
|
# object files and a static libstdc++, better avoid it by now |
17411 |
|
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17412 |
|
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17413 |
|
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17414 |
|
hardcode_libdir_flag_spec_GCJ= |
17415 |
|
hardcode_shlibpath_var_GCJ=no |
17416 |
|
runpath_var='LD_RUN_PATH' |
17417 |
|
;; |
17418 |
|
|
17419 |
|
uts4*) |
17420 |
|
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17421 |
|
hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17422 |
|
hardcode_shlibpath_var_GCJ=no |
17423 |
|
;; |
17424 |
|
|
17425 |
|
*) |
17426 |
|
ld_shlibs_GCJ=no |
17427 |
|
;; |
17428 |
|
esac |
17429 |
|
fi |
17430 |
|
|
17431 |
|
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17432 |
|
echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17433 |
|
test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17434 |
|
|
17435 |
|
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17436 |
|
if test "$GCC" = yes; then |
17437 |
|
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
17438 |
|
fi |
17439 |
|
|
17440 |
|
# |
17441 |
|
# Do we need to explicitly link libc? |
17442 |
|
# |
17443 |
|
case "x$archive_cmds_need_lc_GCJ" in |
17444 |
|
x|xyes) |
17445 |
|
# Assume -lc should be added |
17446 |
|
archive_cmds_need_lc_GCJ=yes |
17447 |
|
|
17448 |
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
17449 |
|
case $archive_cmds_GCJ in |
17450 |
|
*'~'*) |
17451 |
|
# FIXME: we may have to deal with multi-command sequences. |
17452 |
|
;; |
17453 |
|
'$CC '*) |
17454 |
|
# Test whether the compiler implicitly links with -lc since on some |
17455 |
|
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
17456 |
|
# to ld, don't add -lc before -lgcc. |
17457 |
|
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17458 |
|
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
17459 |
|
$rm conftest* |
17460 |
|
printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17461 |
|
|
17462 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17463 |
|
(eval $ac_compile) 2>&5 |
17464 |
|
ac_status=$? |
17465 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17466 |
|
(exit $ac_status); } 2>conftest.err; then |
17467 |
|
soname=conftest |
17468 |
|
lib=conftest |
17469 |
|
libobjs=conftest.$ac_objext |
17470 |
|
deplibs= |
17471 |
|
wl=$lt_prog_compiler_wl_GCJ |
17472 |
|
compiler_flags=-v |
17473 |
|
linker_flags=-v |
17474 |
|
verstring= |
17475 |
|
output_objdir=. |
17476 |
|
libname=conftest |
17477 |
|
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17478 |
|
allow_undefined_flag_GCJ= |
17479 |
|
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17480 |
|
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17481 |
|
ac_status=$? |
17482 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17483 |
|
(exit $ac_status); } |
17484 |
|
then |
17485 |
|
archive_cmds_need_lc_GCJ=no |
17486 |
|
else |
17487 |
|
archive_cmds_need_lc_GCJ=yes |
17488 |
|
fi |
17489 |
|
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17490 |
|
else |
17491 |
|
cat conftest.err 1>&5 |
17492 |
|
fi |
17493 |
|
$rm conftest* |
17494 |
|
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17495 |
|
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
17496 |
|
;; |
17497 |
|
esac |
17498 |
|
fi |
17499 |
|
;; |
17500 |
|
esac |
17501 |
|
|
17502 |
|
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17503 |
|
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
17504 |
|
library_names_spec= |
17505 |
|
libname_spec='lib$name' |
17506 |
|
soname_spec= |
17507 |
|
shrext_cmds=".so" |
17508 |
|
postinstall_cmds= |
17509 |
|
postuninstall_cmds= |
17510 |
|
finish_cmds= |
17511 |
|
finish_eval= |
17512 |
|
shlibpath_var= |
17513 |
|
shlibpath_overrides_runpath=unknown |
17514 |
|
version_type=none |
17515 |
|
dynamic_linker="$host_os ld.so" |
17516 |
|
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17517 |
|
if test "$GCC" = yes; then |
17518 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17519 |
|
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17520 |
|
# if the path contains ";" then we assume it to be the separator |
17521 |
|
# otherwise default to the standard path separator (i.e. ":") - it is |
17522 |
|
# assumed that no part of a normal pathname contains ";" but that should |
17523 |
|
# okay in the real world where ";" in dirpaths is itself problematic. |
17524 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17525 |
|
else |
17526 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17527 |
|
fi |
17528 |
|
else |
17529 |
|
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17530 |
|
fi |
17531 |
|
need_lib_prefix=unknown |
17532 |
|
hardcode_into_libs=no |
17533 |
|
|
17534 |
|
# when you set need_version to no, make sure it does not cause -set_version |
17535 |
|
# flags to be left without arguments |
17536 |
|
need_version=unknown |
17537 |
|
|
17538 |
|
case $host_os in |
17539 |
|
aix3*) |
17540 |
|
version_type=linux |
17541 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17542 |
|
shlibpath_var=LIBPATH |
17543 |
|
|
17544 |
|
# AIX 3 has no versioning support, so we append a major version to the name. |
17545 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17546 |
|
;; |
17547 |
|
|
17548 |
|
aix4* | aix5*) |
17549 |
|
version_type=linux |
17550 |
|
need_lib_prefix=no |
17551 |
|
need_version=no |
17552 |
|
hardcode_into_libs=yes |
17553 |
|
if test "$host_cpu" = ia64; then |
17554 |
|
# AIX 5 supports IA64 |
17555 |
|
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17556 |
|
shlibpath_var=LD_LIBRARY_PATH |
17557 |
|
else |
17558 |
|
# With GCC up to 2.95.x, collect2 would create an import file |
17559 |
|
# for dependence libraries. The import file would start with |
17560 |
|
# the line `#! .'. This would cause the generated library to |
17561 |
|
# depend on `.', always an invalid library. This was fixed in |
17562 |
|
# development snapshots of GCC prior to 3.0. |
17563 |
|
case $host_os in |
17564 |
|
aix4 | aix4.[01] | aix4.[01].*) |
17565 |
|
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17566 |
|
echo ' yes ' |
17567 |
|
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17568 |
|
: |
17569 |
|
else |
17570 |
|
can_build_shared=no |
17571 |
|
fi |
17572 |
|
;; |
17573 |
|
esac |
17574 |
|
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17575 |
|
# soname into executable. Probably we can add versioning support to |
17576 |
|
# collect2, so additional links can be useful in future. |
17577 |
|
if test "$aix_use_runtimelinking" = yes; then |
17578 |
|
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17579 |
|
# instead of lib<name>.a to let people know that these are not |
17580 |
|
# typical AIX shared libraries. |
17581 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17582 |
|
else |
17583 |
|
# We preserve .a as extension for shared libraries through AIX4.2 |
17584 |
|
# and later when we are not doing run time linking. |
17585 |
|
library_names_spec='${libname}${release}.a $libname.a' |
17586 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17587 |
|
fi |
17588 |
|
shlibpath_var=LIBPATH |
17589 |
|
fi |
17590 |
|
;; |
17591 |
|
|
17592 |
|
amigaos*) |
17593 |
|
library_names_spec='$libname.ixlibrary $libname.a' |
17594 |
|
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
17595 |
|
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' |
17596 |
|
;; |
17597 |
|
|
17598 |
|
beos*) |
17599 |
|
library_names_spec='${libname}${shared_ext}' |
17600 |
|
dynamic_linker="$host_os ld.so" |
17601 |
|
shlibpath_var=LIBRARY_PATH |
17602 |
|
;; |
17603 |
|
|
17604 |
|
bsdi[45]*) |
17605 |
|
version_type=linux |
17606 |
|
need_version=no |
17607 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17608 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17609 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17610 |
|
shlibpath_var=LD_LIBRARY_PATH |
17611 |
|
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17612 |
|
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17613 |
|
# the default ld.so.conf also contains /usr/contrib/lib and |
17614 |
|
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17615 |
|
# libtool to hard-code these into programs |
17616 |
|
;; |
17617 |
|
|
17618 |
|
cygwin* | mingw* | pw32*) |
17619 |
|
version_type=windows |
17620 |
|
shrext_cmds=".dll" |
17621 |
|
need_version=no |
17622 |
|
need_lib_prefix=no |
17623 |
|
|
17624 |
|
case $GCC,$host_os in |
17625 |
|
yes,cygwin* | yes,mingw* | yes,pw32*) |
17626 |
|
library_names_spec='$libname.dll.a' |
17627 |
|
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
17628 |
|
postinstall_cmds='base_file=`basename \${file}`~ |
17629 |
|
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17630 |
|
dldir=$destdir/`dirname \$dlpath`~ |
17631 |
|
test -d \$dldir || mkdir -p \$dldir~ |
17632 |
|
$install_prog $dir/$dlname \$dldir/$dlname' |
17633 |
|
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17634 |
|
dlpath=$dir/\$dldll~ |
17635 |
|
$rm \$dlpath' |
17636 |
|
shlibpath_overrides_runpath=yes |
17637 |
|
|
17638 |
|
case $host_os in |
17639 |
|
cygwin*) |
17640 |
|
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17641 |
|
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17642 |
|
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17643 |
|
;; |
17644 |
|
mingw*) |
17645 |
|
# MinGW DLLs use traditional 'lib' prefix |
17646 |
|
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17647 |
|
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17648 |
|
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17649 |
|
# It is most probably a Windows format PATH printed by |
17650 |
|
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
17651 |
|
# path with ; separators, and with drive letters. We can handle the |
17652 |
|
# drive letters (cygwin fileutils understands them), so leave them, |
17653 |
|
# especially as we might pass files found there to a mingw objdump, |
17654 |
|
# which wouldn't understand a cygwinified path. Ahh. |
17655 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17656 |
|
else |
17657 |
|
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17658 |
|
fi |
17659 |
|
;; |
17660 |
|
pw32*) |
17661 |
|
# pw32 DLLs use 'pw' prefix rather than 'lib' |
17662 |
|
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17663 |
|
;; |
17664 |
|
esac |
17665 |
|
;; |
17666 |
|
|
17667 |
|
*) |
17668 |
|
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17669 |
|
;; |
17670 |
|
esac |
17671 |
|
dynamic_linker='Win32 ld.exe' |
17672 |
|
# FIXME: first we should search . and the directory the executable is in |
17673 |
|
shlibpath_var=PATH |
17674 |
|
;; |
17675 |
|
|
17676 |
|
darwin* | rhapsody*) |
17677 |
|
dynamic_linker="$host_os dyld" |
17678 |
|
version_type=darwin |
17679 |
|
need_lib_prefix=no |
17680 |
|
need_version=no |
17681 |
|
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17682 |
|
soname_spec='${libname}${release}${major}$shared_ext' |
17683 |
|
shlibpath_overrides_runpath=yes |
17684 |
|
shlibpath_var=DYLD_LIBRARY_PATH |
17685 |
|
shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
17686 |
|
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17687 |
|
if test "$GCC" = yes; then |
17688 |
|
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"` |
17689 |
|
else |
17690 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17691 |
|
fi |
17692 |
|
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17693 |
|
;; |
17694 |
|
|
17695 |
|
dgux*) |
17696 |
|
version_type=linux |
17697 |
|
need_lib_prefix=no |
17698 |
|
need_version=no |
17699 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17700 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17701 |
|
shlibpath_var=LD_LIBRARY_PATH |
17702 |
|
;; |
17703 |
|
|
17704 |
|
freebsd1*) |
17705 |
|
dynamic_linker=no |
17706 |
|
;; |
17707 |
|
|
17708 |
|
kfreebsd*-gnu) |
17709 |
|
version_type=linux |
17710 |
|
need_lib_prefix=no |
17711 |
|
need_version=no |
17712 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17713 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17714 |
|
shlibpath_var=LD_LIBRARY_PATH |
17715 |
|
shlibpath_overrides_runpath=no |
17716 |
|
hardcode_into_libs=yes |
17717 |
|
dynamic_linker='GNU ld.so' |
17718 |
|
;; |
17719 |
|
|
17720 |
|
freebsd* | dragonfly*) |
17721 |
|
# DragonFly does not have aout. When/if they implement a new |
17722 |
|
# versioning mechanism, adjust this. |
17723 |
|
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
17724 |
|
version_type=freebsd-$objformat |
17725 |
|
case $version_type in |
17726 |
|
freebsd-elf*) |
17727 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17728 |
|
need_version=no |
17729 |
|
need_lib_prefix=no |
17730 |
|
;; |
17731 |
|
freebsd-*) |
17732 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17733 |
|
need_version=yes |
17734 |
|
;; |
17735 |
|
esac |
17736 |
|
shlibpath_var=LD_LIBRARY_PATH |
17737 |
|
case $host_os in |
17738 |
|
freebsd2*) |
17739 |
|
shlibpath_overrides_runpath=yes |
17740 |
|
;; |
17741 |
|
freebsd3.[01]* | freebsdelf3.[01]*) |
17742 |
|
shlibpath_overrides_runpath=yes |
17743 |
|
hardcode_into_libs=yes |
17744 |
|
;; |
17745 |
|
*) # from 3.2 on |
17746 |
|
shlibpath_overrides_runpath=no |
17747 |
|
hardcode_into_libs=yes |
17748 |
|
;; |
17749 |
|
esac |
17750 |
|
;; |
17751 |
|
|
17752 |
|
gnu*) |
17753 |
|
version_type=linux |
17754 |
|
need_lib_prefix=no |
17755 |
|
need_version=no |
17756 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
17757 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17758 |
|
shlibpath_var=LD_LIBRARY_PATH |
17759 |
|
hardcode_into_libs=yes |
17760 |
|
;; |
17761 |
|
|
17762 |
|
hpux9* | hpux10* | hpux11*) |
17763 |
|
# Give a soname corresponding to the major version so that dld.sl refuses to |
17764 |
|
# link against other versions. |
17765 |
|
version_type=sunos |
17766 |
|
need_lib_prefix=no |
17767 |
|
need_version=no |
17768 |
|
case "$host_cpu" in |
17769 |
|
ia64*) |
17770 |
|
shrext_cmds='.so' |
17771 |
|
hardcode_into_libs=yes |
17772 |
|
dynamic_linker="$host_os dld.so" |
17773 |
|
shlibpath_var=LD_LIBRARY_PATH |
17774 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17775 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17776 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17777 |
|
if test "X$HPUX_IA64_MODE" = X32; then |
17778 |
|
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
17779 |
|
else |
17780 |
|
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
17781 |
|
fi |
17782 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17783 |
|
;; |
17784 |
|
hppa*64*) |
17785 |
|
shrext_cmds='.sl' |
17786 |
|
hardcode_into_libs=yes |
17787 |
|
dynamic_linker="$host_os dld.sl" |
17788 |
|
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
17789 |
|
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
17790 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17791 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17792 |
|
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
17793 |
|
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
17794 |
|
;; |
17795 |
|
*) |
17796 |
|
shrext_cmds='.sl' |
17797 |
|
dynamic_linker="$host_os dld.sl" |
17798 |
|
shlibpath_var=SHLIB_PATH |
17799 |
|
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
17800 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17801 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17802 |
|
;; |
17803 |
|
esac |
17804 |
|
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
17805 |
|
postinstall_cmds='chmod 555 $lib' |
17806 |
|
;; |
17807 |
|
|
17808 |
|
irix5* | irix6* | nonstopux*) |
17809 |
|
case $host_os in |
17810 |
|
nonstopux*) version_type=nonstopux ;; |
17811 |
|
*) |
17812 |
|
if test "$lt_cv_prog_gnu_ld" = yes; then |
17813 |
|
version_type=linux |
17814 |
|
else |
17815 |
|
version_type=irix |
17816 |
|
fi ;; |
17817 |
|
esac |
17818 |
|
need_lib_prefix=no |
17819 |
|
need_version=no |
17820 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17821 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
17822 |
|
case $host_os in |
17823 |
|
irix5* | nonstopux*) |
17824 |
|
libsuff= shlibsuff= |
17825 |
|
;; |
17826 |
|
*) |
17827 |
|
case $LD in # libtool.m4 will add one of these switches to LD |
17828 |
|
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
17829 |
|
libsuff= shlibsuff= libmagic=32-bit;; |
17830 |
|
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
17831 |
|
libsuff=32 shlibsuff=N32 libmagic=N32;; |
17832 |
|
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
17833 |
|
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
17834 |
|
*) libsuff= shlibsuff= libmagic=never-match;; |
17835 |
|
esac |
17836 |
|
;; |
17837 |
|
esac |
17838 |
|
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
17839 |
|
shlibpath_overrides_runpath=no |
17840 |
|
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
17841 |
|
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
17842 |
|
hardcode_into_libs=yes |
17843 |
|
;; |
17844 |
|
|
17845 |
|
# No shared lib support for Linux oldld, aout, or coff. |
17846 |
|
linux*oldld* | linux*aout* | linux*coff*) |
17847 |
|
dynamic_linker=no |
17848 |
|
;; |
17849 |
|
|
17850 |
|
# This must be Linux ELF. |
17851 |
|
linux*) |
17852 |
|
version_type=linux |
17853 |
|
need_lib_prefix=no |
17854 |
|
need_version=no |
17855 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17856 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17857 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
17858 |
|
shlibpath_var=LD_LIBRARY_PATH |
17859 |
|
shlibpath_overrides_runpath=no |
17860 |
|
# This implies no fast_install, which is unacceptable. |
17861 |
|
# Some rework will be needed to allow for fast_install |
17862 |
|
# before this can be enabled. |
17863 |
|
hardcode_into_libs=yes |
17864 |
|
|
17865 |
|
# find out which ABI we are using |
17866 |
|
libsuff= |
17867 |
|
case "$host_cpu" in |
17868 |
|
x86_64*|s390x*|powerpc64*) |
17869 |
|
echo '#line 17869 "configure"' > conftest.$ac_ext |
17870 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17871 |
|
(eval $ac_compile) 2>&5 |
17872 |
|
ac_status=$? |
17873 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17874 |
|
(exit $ac_status); }; then |
17875 |
|
case `/usr/bin/file conftest.$ac_objext` in |
17876 |
|
*64-bit*) |
17877 |
|
libsuff=64 |
17878 |
|
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
17879 |
|
;; |
17880 |
|
esac |
17881 |
|
fi |
17882 |
|
rm -rf conftest* |
17883 |
|
;; |
17884 |
|
esac |
17885 |
|
|
17886 |
|
# Append ld.so.conf contents to the search path |
17887 |
|
if test -f /etc/ld.so.conf; then |
17888 |
|
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
17889 |
|
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
17890 |
|
fi |
17891 |
|
|
17892 |
|
# We used to test for /lib/ld.so.1 and disable shared libraries on |
17893 |
|
# powerpc, because MkLinux only supported shared libraries with the |
17894 |
|
# GNU dynamic linker. Since this was broken with cross compilers, |
17895 |
|
# most powerpc-linux boxes support dynamic linking these days and |
17896 |
|
# people can always --disable-shared, the test was removed, and we |
17897 |
|
# assume the GNU/Linux dynamic linker is in use. |
17898 |
|
dynamic_linker='GNU/Linux ld.so' |
17899 |
|
;; |
17900 |
|
|
17901 |
|
knetbsd*-gnu) |
17902 |
|
version_type=linux |
17903 |
|
need_lib_prefix=no |
17904 |
|
need_version=no |
17905 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17906 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17907 |
|
shlibpath_var=LD_LIBRARY_PATH |
17908 |
|
shlibpath_overrides_runpath=no |
17909 |
|
hardcode_into_libs=yes |
17910 |
|
dynamic_linker='GNU ld.so' |
17911 |
|
;; |
17912 |
|
|
17913 |
|
netbsd*) |
17914 |
|
version_type=sunos |
17915 |
|
need_lib_prefix=no |
17916 |
|
need_version=no |
17917 |
|
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17918 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17919 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17920 |
|
dynamic_linker='NetBSD (a.out) ld.so' |
17921 |
|
else |
17922 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17923 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17924 |
|
dynamic_linker='NetBSD ld.elf_so' |
17925 |
|
fi |
17926 |
|
shlibpath_var=LD_LIBRARY_PATH |
17927 |
|
shlibpath_overrides_runpath=yes |
17928 |
|
hardcode_into_libs=yes |
17929 |
|
;; |
17930 |
|
|
17931 |
|
newsos6) |
17932 |
|
version_type=linux |
17933 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17934 |
|
shlibpath_var=LD_LIBRARY_PATH |
17935 |
|
shlibpath_overrides_runpath=yes |
17936 |
|
;; |
17937 |
|
|
17938 |
|
nto-qnx*) |
17939 |
|
version_type=linux |
17940 |
|
need_lib_prefix=no |
17941 |
|
need_version=no |
17942 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17943 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17944 |
|
shlibpath_var=LD_LIBRARY_PATH |
17945 |
|
shlibpath_overrides_runpath=yes |
17946 |
|
;; |
17947 |
|
|
17948 |
|
openbsd*) |
17949 |
|
version_type=sunos |
17950 |
|
need_lib_prefix=no |
17951 |
|
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
17952 |
|
case $host_os in |
17953 |
|
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
17954 |
|
*) need_version=no ;; |
17955 |
|
esac |
17956 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
17957 |
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
17958 |
|
shlibpath_var=LD_LIBRARY_PATH |
17959 |
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17960 |
|
case $host_os in |
17961 |
|
openbsd2.[89] | openbsd2.[89].*) |
17962 |
|
shlibpath_overrides_runpath=no |
17963 |
|
;; |
17964 |
|
*) |
17965 |
|
shlibpath_overrides_runpath=yes |
17966 |
|
;; |
17967 |
|
esac |
17968 |
|
else |
17969 |
|
shlibpath_overrides_runpath=yes |
17970 |
|
fi |
17971 |
|
;; |
17972 |
|
|
17973 |
|
os2*) |
17974 |
|
libname_spec='$name' |
17975 |
|
shrext_cmds=".dll" |
17976 |
|
need_lib_prefix=no |
17977 |
|
library_names_spec='$libname${shared_ext} $libname.a' |
17978 |
|
dynamic_linker='OS/2 ld.exe' |
17979 |
|
shlibpath_var=LIBPATH |
17980 |
|
;; |
17981 |
|
|
17982 |
|
osf3* | osf4* | osf5*) |
17983 |
|
version_type=osf |
17984 |
|
need_lib_prefix=no |
17985 |
|
need_version=no |
17986 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17987 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17988 |
|
shlibpath_var=LD_LIBRARY_PATH |
17989 |
|
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
17990 |
|
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
17991 |
|
;; |
17992 |
|
|
17993 |
|
sco3.2v5*) |
17994 |
|
version_type=osf |
17995 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
17996 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17997 |
|
shlibpath_var=LD_LIBRARY_PATH |
17998 |
|
;; |
17999 |
|
|
18000 |
|
solaris*) |
18001 |
|
version_type=linux |
18002 |
|
need_lib_prefix=no |
18003 |
|
need_version=no |
18004 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18005 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
18006 |
|
shlibpath_var=LD_LIBRARY_PATH |
18007 |
|
shlibpath_overrides_runpath=yes |
18008 |
|
hardcode_into_libs=yes |
18009 |
|
# ldd complains unless libraries are executable |
18010 |
|
postinstall_cmds='chmod +x $lib' |
18011 |
|
;; |
18012 |
|
|
18013 |
|
sunos4*) |
18014 |
|
version_type=sunos |
18015 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18016 |
|
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18017 |
|
shlibpath_var=LD_LIBRARY_PATH |
18018 |
|
shlibpath_overrides_runpath=yes |
18019 |
|
if test "$with_gnu_ld" = yes; then |
18020 |
|
need_lib_prefix=no |
18021 |
|
fi |
18022 |
|
need_version=yes |
18023 |
|
;; |
18024 |
|
|
18025 |
|
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
18026 |
|
version_type=linux |
18027 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18028 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
18029 |
|
shlibpath_var=LD_LIBRARY_PATH |
18030 |
|
case $host_vendor in |
18031 |
|
sni) |
18032 |
|
shlibpath_overrides_runpath=no |
18033 |
|
need_lib_prefix=no |
18034 |
|
export_dynamic_flag_spec='${wl}-Blargedynsym' |
18035 |
|
runpath_var=LD_RUN_PATH |
18036 |
|
;; |
18037 |
|
siemens) |
18038 |
|
need_lib_prefix=no |
18039 |
|
;; |
18040 |
|
motorola) |
18041 |
|
need_lib_prefix=no |
18042 |
|
need_version=no |
18043 |
|
shlibpath_overrides_runpath=no |
18044 |
|
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18045 |
|
;; |
18046 |
|
esac |
18047 |
|
;; |
18048 |
|
|
18049 |
|
sysv4*MP*) |
18050 |
|
if test -d /usr/nec ;then |
18051 |
|
version_type=linux |
18052 |
|
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18053 |
|
soname_spec='$libname${shared_ext}.$major' |
18054 |
|
shlibpath_var=LD_LIBRARY_PATH |
18055 |
|
fi |
18056 |
|
;; |
18057 |
|
|
18058 |
|
uts4*) |
18059 |
|
version_type=linux |
18060 |
|
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18061 |
|
soname_spec='${libname}${release}${shared_ext}$major' |
18062 |
|
shlibpath_var=LD_LIBRARY_PATH |
18063 |
|
;; |
18064 |
|
|
18065 |
|
*) |
18066 |
|
dynamic_linker=no |
18067 |
|
;; |
18068 |
|
esac |
18069 |
|
echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18070 |
|
echo "${ECHO_T}$dynamic_linker" >&6 |
18071 |
|
test "$dynamic_linker" = no && can_build_shared=no |
18072 |
|
|
18073 |
|
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18074 |
|
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
18075 |
|
hardcode_action_GCJ= |
18076 |
|
if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18077 |
|
test -n "$runpath_var_GCJ" || \ |
18078 |
|
test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18079 |
|
|
18080 |
|
# We can hardcode non-existant directories. |
18081 |
|
if test "$hardcode_direct_GCJ" != no && |
18082 |
|
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
18083 |
|
# have to relink, otherwise we might link with an installed library |
18084 |
|
# when we should be linking with a yet-to-be-installed one |
18085 |
|
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18086 |
|
test "$hardcode_minus_L_GCJ" != no; then |
18087 |
|
# Linking always hardcodes the temporary library directory. |
18088 |
|
hardcode_action_GCJ=relink |
18089 |
|
else |
18090 |
|
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
18091 |
|
hardcode_action_GCJ=immediate |
18092 |
|
fi |
18093 |
|
else |
18094 |
|
# We cannot hardcode anything, or else we can only hardcode existing |
18095 |
|
# directories. |
18096 |
|
hardcode_action_GCJ=unsupported |
18097 |
|
fi |
18098 |
|
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18099 |
|
echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
18100 |
|
|
18101 |
|
if test "$hardcode_action_GCJ" = relink; then |
18102 |
|
# Fast installation is not supported |
18103 |
|
enable_fast_install=no |
18104 |
|
elif test "$shlibpath_overrides_runpath" = yes || |
18105 |
|
test "$enable_shared" = no; then |
18106 |
|
# Fast installation is not necessary |
18107 |
|
enable_fast_install=needless |
18108 |
|
fi |
18109 |
|
|
18110 |
|
striplib= |
18111 |
|
old_striplib= |
18112 |
|
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
18113 |
|
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
18114 |
|
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
18115 |
|
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
18116 |
|
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
18117 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
18118 |
|
echo "${ECHO_T}yes" >&6 |
18119 |
|
else |
18120 |
|
# FIXME - insert some real tests, host_os isn't really good enough |
18121 |
|
case $host_os in |
18122 |
|
darwin*) |
18123 |
|
if test -n "$STRIP" ; then |
18124 |
|
striplib="$STRIP -x" |
18125 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
18126 |
|
echo "${ECHO_T}yes" >&6 |
18127 |
|
else |
18128 |
|
echo "$as_me:$LINENO: result: no" >&5 |
18129 |
|
echo "${ECHO_T}no" >&6 |
18130 |
|
fi |
18131 |
|
;; |
18132 |
|
*) |
18133 |
|
echo "$as_me:$LINENO: result: no" >&5 |
18134 |
|
echo "${ECHO_T}no" >&6 |
18135 |
|
;; |
18136 |
|
esac |
18137 |
|
fi |
18138 |
|
|
18139 |
|
if test "x$enable_dlopen" != xyes; then |
18140 |
|
enable_dlopen=unknown |
18141 |
|
enable_dlopen_self=unknown |
18142 |
|
enable_dlopen_self_static=unknown |
18143 |
|
else |
18144 |
|
lt_cv_dlopen=no |
18145 |
|
lt_cv_dlopen_libs= |
18146 |
|
|
18147 |
|
case $host_os in |
18148 |
|
beos*) |
18149 |
|
lt_cv_dlopen="load_add_on" |
18150 |
|
lt_cv_dlopen_libs= |
18151 |
|
lt_cv_dlopen_self=yes |
18152 |
|
;; |
18153 |
|
|
18154 |
|
mingw* | pw32*) |
18155 |
|
lt_cv_dlopen="LoadLibrary" |
18156 |
|
lt_cv_dlopen_libs= |
18157 |
|
;; |
18158 |
|
|
18159 |
|
cygwin*) |
18160 |
|
lt_cv_dlopen="dlopen" |
18161 |
|
lt_cv_dlopen_libs= |
18162 |
|
;; |
18163 |
|
|
18164 |
|
darwin*) |
18165 |
|
# if libdl is installed we need to link against it |
18166 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
18167 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
18168 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
18169 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18170 |
|
else |
18171 |
|
ac_check_lib_save_LIBS=$LIBS |
18172 |
|
LIBS="-ldl $LIBS" |
18173 |
|
cat >conftest.$ac_ext <<_ACEOF |
18174 |
|
/* confdefs.h. */ |
18175 |
|
_ACEOF |
18176 |
|
cat confdefs.h >>conftest.$ac_ext |
18177 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18178 |
|
/* end confdefs.h. */ |
18179 |
|
|
18180 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18181 |
|
#ifdef __cplusplus |
18182 |
|
extern "C" |
18183 |
|
#endif |
18184 |
|
/* We use char because int might match the return type of a gcc2 |
18185 |
|
builtin and then its argument prototype would still apply. */ |
18186 |
|
char dlopen (); |
18187 |
|
int |
18188 |
|
main () |
18189 |
|
{ |
18190 |
|
dlopen (); |
18191 |
|
; |
18192 |
|
return 0; |
18193 |
|
} |
18194 |
|
_ACEOF |
18195 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18196 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18197 |
|
(eval $ac_link) 2>conftest.er1 |
18198 |
|
ac_status=$? |
18199 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18200 |
|
rm -f conftest.er1 |
18201 |
|
cat conftest.err >&5 |
18202 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18203 |
|
(exit $ac_status); } && |
18204 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18205 |
|
|| test ! -s conftest.err' |
18206 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18207 |
|
(eval $ac_try) 2>&5 |
18208 |
|
ac_status=$? |
18209 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18210 |
|
(exit $ac_status); }; } && |
18211 |
|
{ ac_try='test -s conftest$ac_exeext' |
18212 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18213 |
|
(eval $ac_try) 2>&5 |
18214 |
|
ac_status=$? |
18215 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18216 |
|
(exit $ac_status); }; }; then |
18217 |
|
ac_cv_lib_dl_dlopen=yes |
18218 |
|
else |
18219 |
|
echo "$as_me: failed program was:" >&5 |
18220 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18221 |
|
|
18222 |
|
ac_cv_lib_dl_dlopen=no |
18223 |
|
fi |
18224 |
|
rm -f conftest.err conftest.$ac_objext \ |
18225 |
|
conftest$ac_exeext conftest.$ac_ext |
18226 |
|
LIBS=$ac_check_lib_save_LIBS |
18227 |
|
fi |
18228 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18229 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
18230 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
18231 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
18232 |
|
else |
18233 |
|
|
18234 |
|
lt_cv_dlopen="dyld" |
18235 |
|
lt_cv_dlopen_libs= |
18236 |
|
lt_cv_dlopen_self=yes |
18237 |
|
|
18238 |
|
fi |
18239 |
|
|
18240 |
|
;; |
18241 |
|
|
18242 |
|
*) |
18243 |
|
echo "$as_me:$LINENO: checking for shl_load" >&5 |
18244 |
|
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
18245 |
|
if test "${ac_cv_func_shl_load+set}" = set; then |
18246 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18247 |
|
else |
18248 |
|
cat >conftest.$ac_ext <<_ACEOF |
18249 |
|
/* confdefs.h. */ |
18250 |
|
_ACEOF |
18251 |
|
cat confdefs.h >>conftest.$ac_ext |
18252 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18253 |
|
/* end confdefs.h. */ |
18254 |
|
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
18255 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
18256 |
|
#define shl_load innocuous_shl_load |
18257 |
|
|
18258 |
|
/* System header to define __stub macros and hopefully few prototypes, |
18259 |
|
which can conflict with char shl_load (); below. |
18260 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
18261 |
|
<limits.h> exists even on freestanding compilers. */ |
18262 |
|
|
18263 |
|
#ifdef __STDC__ |
18264 |
|
# include <limits.h> |
18265 |
|
#else |
18266 |
|
# include <assert.h> |
18267 |
|
#endif |
18268 |
|
|
18269 |
|
#undef shl_load |
18270 |
|
|
18271 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18272 |
|
#ifdef __cplusplus |
18273 |
|
extern "C" |
18274 |
|
{ |
18275 |
|
#endif |
18276 |
|
/* We use char because int might match the return type of a gcc2 |
18277 |
|
builtin and then its argument prototype would still apply. */ |
18278 |
|
char shl_load (); |
18279 |
|
/* The GNU C library defines this for functions which it implements |
18280 |
|
to always fail with ENOSYS. Some functions are actually named |
18281 |
|
something starting with __ and the normal name is an alias. */ |
18282 |
|
#if defined (__stub_shl_load) || defined (__stub___shl_load) |
18283 |
|
choke me |
18284 |
|
#else |
18285 |
|
char (*f) () = shl_load; |
18286 |
|
#endif |
18287 |
|
#ifdef __cplusplus |
18288 |
|
} |
18289 |
|
#endif |
18290 |
|
|
18291 |
|
int |
18292 |
|
main () |
18293 |
|
{ |
18294 |
|
return f != shl_load; |
18295 |
|
; |
18296 |
|
return 0; |
18297 |
|
} |
18298 |
|
_ACEOF |
18299 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18300 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18301 |
|
(eval $ac_link) 2>conftest.er1 |
18302 |
|
ac_status=$? |
18303 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18304 |
|
rm -f conftest.er1 |
18305 |
|
cat conftest.err >&5 |
18306 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18307 |
|
(exit $ac_status); } && |
18308 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18309 |
|
|| test ! -s conftest.err' |
18310 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18311 |
|
(eval $ac_try) 2>&5 |
18312 |
|
ac_status=$? |
18313 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18314 |
|
(exit $ac_status); }; } && |
18315 |
|
{ ac_try='test -s conftest$ac_exeext' |
18316 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18317 |
|
(eval $ac_try) 2>&5 |
18318 |
|
ac_status=$? |
18319 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18320 |
|
(exit $ac_status); }; }; then |
18321 |
|
ac_cv_func_shl_load=yes |
18322 |
|
else |
18323 |
|
echo "$as_me: failed program was:" >&5 |
18324 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18325 |
|
|
18326 |
|
ac_cv_func_shl_load=no |
18327 |
|
fi |
18328 |
|
rm -f conftest.err conftest.$ac_objext \ |
18329 |
|
conftest$ac_exeext conftest.$ac_ext |
18330 |
|
fi |
18331 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
18332 |
|
echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
18333 |
|
if test $ac_cv_func_shl_load = yes; then |
18334 |
|
lt_cv_dlopen="shl_load" |
18335 |
|
else |
18336 |
|
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
18337 |
|
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
18338 |
|
if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
18339 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18340 |
|
else |
18341 |
|
ac_check_lib_save_LIBS=$LIBS |
18342 |
|
LIBS="-ldld $LIBS" |
18343 |
|
cat >conftest.$ac_ext <<_ACEOF |
18344 |
|
/* confdefs.h. */ |
18345 |
|
_ACEOF |
18346 |
|
cat confdefs.h >>conftest.$ac_ext |
18347 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18348 |
|
/* end confdefs.h. */ |
18349 |
|
|
18350 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18351 |
|
#ifdef __cplusplus |
18352 |
|
extern "C" |
18353 |
|
#endif |
18354 |
|
/* We use char because int might match the return type of a gcc2 |
18355 |
|
builtin and then its argument prototype would still apply. */ |
18356 |
|
char shl_load (); |
18357 |
|
int |
18358 |
|
main () |
18359 |
|
{ |
18360 |
|
shl_load (); |
18361 |
|
; |
18362 |
|
return 0; |
18363 |
|
} |
18364 |
|
_ACEOF |
18365 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18366 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18367 |
|
(eval $ac_link) 2>conftest.er1 |
18368 |
|
ac_status=$? |
18369 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18370 |
|
rm -f conftest.er1 |
18371 |
|
cat conftest.err >&5 |
18372 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18373 |
|
(exit $ac_status); } && |
18374 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18375 |
|
|| test ! -s conftest.err' |
18376 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18377 |
|
(eval $ac_try) 2>&5 |
18378 |
|
ac_status=$? |
18379 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18380 |
|
(exit $ac_status); }; } && |
18381 |
|
{ ac_try='test -s conftest$ac_exeext' |
18382 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18383 |
|
(eval $ac_try) 2>&5 |
18384 |
|
ac_status=$? |
18385 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18386 |
|
(exit $ac_status); }; }; then |
18387 |
|
ac_cv_lib_dld_shl_load=yes |
18388 |
|
else |
18389 |
|
echo "$as_me: failed program was:" >&5 |
18390 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18391 |
|
|
18392 |
|
ac_cv_lib_dld_shl_load=no |
18393 |
|
fi |
18394 |
|
rm -f conftest.err conftest.$ac_objext \ |
18395 |
|
conftest$ac_exeext conftest.$ac_ext |
18396 |
|
LIBS=$ac_check_lib_save_LIBS |
18397 |
|
fi |
18398 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
18399 |
|
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
18400 |
|
if test $ac_cv_lib_dld_shl_load = yes; then |
18401 |
|
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
18402 |
|
else |
18403 |
|
echo "$as_me:$LINENO: checking for dlopen" >&5 |
18404 |
|
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
18405 |
|
if test "${ac_cv_func_dlopen+set}" = set; then |
18406 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18407 |
|
else |
18408 |
|
cat >conftest.$ac_ext <<_ACEOF |
18409 |
|
/* confdefs.h. */ |
18410 |
|
_ACEOF |
18411 |
|
cat confdefs.h >>conftest.$ac_ext |
18412 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18413 |
|
/* end confdefs.h. */ |
18414 |
|
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
18415 |
|
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
18416 |
|
#define dlopen innocuous_dlopen |
18417 |
|
|
18418 |
|
/* System header to define __stub macros and hopefully few prototypes, |
18419 |
|
which can conflict with char dlopen (); below. |
18420 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
18421 |
|
<limits.h> exists even on freestanding compilers. */ |
18422 |
|
|
18423 |
|
#ifdef __STDC__ |
18424 |
|
# include <limits.h> |
18425 |
|
#else |
18426 |
|
# include <assert.h> |
18427 |
|
#endif |
18428 |
|
|
18429 |
|
#undef dlopen |
18430 |
|
|
18431 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18432 |
|
#ifdef __cplusplus |
18433 |
|
extern "C" |
18434 |
|
{ |
18435 |
|
#endif |
18436 |
|
/* We use char because int might match the return type of a gcc2 |
18437 |
|
builtin and then its argument prototype would still apply. */ |
18438 |
|
char dlopen (); |
18439 |
|
/* The GNU C library defines this for functions which it implements |
18440 |
|
to always fail with ENOSYS. Some functions are actually named |
18441 |
|
something starting with __ and the normal name is an alias. */ |
18442 |
|
#if defined (__stub_dlopen) || defined (__stub___dlopen) |
18443 |
|
choke me |
18444 |
|
#else |
18445 |
|
char (*f) () = dlopen; |
18446 |
|
#endif |
18447 |
|
#ifdef __cplusplus |
18448 |
|
} |
18449 |
|
#endif |
18450 |
|
|
18451 |
|
int |
18452 |
|
main () |
18453 |
|
{ |
18454 |
|
return f != dlopen; |
18455 |
|
; |
18456 |
|
return 0; |
18457 |
|
} |
18458 |
|
_ACEOF |
18459 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18460 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18461 |
|
(eval $ac_link) 2>conftest.er1 |
18462 |
|
ac_status=$? |
18463 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18464 |
|
rm -f conftest.er1 |
18465 |
|
cat conftest.err >&5 |
18466 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18467 |
|
(exit $ac_status); } && |
18468 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18469 |
|
|| test ! -s conftest.err' |
18470 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18471 |
|
(eval $ac_try) 2>&5 |
18472 |
|
ac_status=$? |
18473 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18474 |
|
(exit $ac_status); }; } && |
18475 |
|
{ ac_try='test -s conftest$ac_exeext' |
18476 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18477 |
|
(eval $ac_try) 2>&5 |
18478 |
|
ac_status=$? |
18479 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18480 |
|
(exit $ac_status); }; }; then |
18481 |
|
ac_cv_func_dlopen=yes |
18482 |
|
else |
18483 |
|
echo "$as_me: failed program was:" >&5 |
18484 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18485 |
|
|
18486 |
|
ac_cv_func_dlopen=no |
18487 |
|
fi |
18488 |
|
rm -f conftest.err conftest.$ac_objext \ |
18489 |
|
conftest$ac_exeext conftest.$ac_ext |
18490 |
|
fi |
18491 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
18492 |
|
echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
18493 |
|
if test $ac_cv_func_dlopen = yes; then |
18494 |
|
lt_cv_dlopen="dlopen" |
18495 |
|
else |
18496 |
|
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
18497 |
|
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
18498 |
|
if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
18499 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18500 |
|
else |
18501 |
|
ac_check_lib_save_LIBS=$LIBS |
18502 |
|
LIBS="-ldl $LIBS" |
18503 |
|
cat >conftest.$ac_ext <<_ACEOF |
18504 |
|
/* confdefs.h. */ |
18505 |
|
_ACEOF |
18506 |
|
cat confdefs.h >>conftest.$ac_ext |
18507 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18508 |
|
/* end confdefs.h. */ |
18509 |
|
|
18510 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18511 |
|
#ifdef __cplusplus |
18512 |
|
extern "C" |
18513 |
|
#endif |
18514 |
|
/* We use char because int might match the return type of a gcc2 |
18515 |
|
builtin and then its argument prototype would still apply. */ |
18516 |
|
char dlopen (); |
18517 |
|
int |
18518 |
|
main () |
18519 |
|
{ |
18520 |
|
dlopen (); |
18521 |
|
; |
18522 |
|
return 0; |
18523 |
|
} |
18524 |
|
_ACEOF |
18525 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18526 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18527 |
|
(eval $ac_link) 2>conftest.er1 |
18528 |
|
ac_status=$? |
18529 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18530 |
|
rm -f conftest.er1 |
18531 |
|
cat conftest.err >&5 |
18532 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18533 |
|
(exit $ac_status); } && |
18534 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18535 |
|
|| test ! -s conftest.err' |
18536 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18537 |
|
(eval $ac_try) 2>&5 |
18538 |
|
ac_status=$? |
18539 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18540 |
|
(exit $ac_status); }; } && |
18541 |
|
{ ac_try='test -s conftest$ac_exeext' |
18542 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18543 |
|
(eval $ac_try) 2>&5 |
18544 |
|
ac_status=$? |
18545 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18546 |
|
(exit $ac_status); }; }; then |
18547 |
|
ac_cv_lib_dl_dlopen=yes |
18548 |
|
else |
18549 |
|
echo "$as_me: failed program was:" >&5 |
18550 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18551 |
|
|
18552 |
|
ac_cv_lib_dl_dlopen=no |
18553 |
|
fi |
18554 |
|
rm -f conftest.err conftest.$ac_objext \ |
18555 |
|
conftest$ac_exeext conftest.$ac_ext |
18556 |
|
LIBS=$ac_check_lib_save_LIBS |
18557 |
|
fi |
18558 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18559 |
|
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
18560 |
|
if test $ac_cv_lib_dl_dlopen = yes; then |
18561 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
18562 |
|
else |
18563 |
|
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
18564 |
|
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
18565 |
|
if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
18566 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18567 |
|
else |
18568 |
|
ac_check_lib_save_LIBS=$LIBS |
18569 |
|
LIBS="-lsvld $LIBS" |
18570 |
|
cat >conftest.$ac_ext <<_ACEOF |
18571 |
|
/* confdefs.h. */ |
18572 |
|
_ACEOF |
18573 |
|
cat confdefs.h >>conftest.$ac_ext |
18574 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18575 |
|
/* end confdefs.h. */ |
18576 |
|
|
18577 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18578 |
|
#ifdef __cplusplus |
18579 |
|
extern "C" |
18580 |
|
#endif |
18581 |
|
/* We use char because int might match the return type of a gcc2 |
18582 |
|
builtin and then its argument prototype would still apply. */ |
18583 |
|
char dlopen (); |
18584 |
|
int |
18585 |
|
main () |
18586 |
|
{ |
18587 |
|
dlopen (); |
18588 |
|
; |
18589 |
|
return 0; |
18590 |
|
} |
18591 |
|
_ACEOF |
18592 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18593 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18594 |
|
(eval $ac_link) 2>conftest.er1 |
18595 |
|
ac_status=$? |
18596 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18597 |
|
rm -f conftest.er1 |
18598 |
|
cat conftest.err >&5 |
18599 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18600 |
|
(exit $ac_status); } && |
18601 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18602 |
|
|| test ! -s conftest.err' |
18603 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18604 |
|
(eval $ac_try) 2>&5 |
18605 |
|
ac_status=$? |
18606 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18607 |
|
(exit $ac_status); }; } && |
18608 |
|
{ ac_try='test -s conftest$ac_exeext' |
18609 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18610 |
|
(eval $ac_try) 2>&5 |
18611 |
|
ac_status=$? |
18612 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18613 |
|
(exit $ac_status); }; }; then |
18614 |
|
ac_cv_lib_svld_dlopen=yes |
18615 |
|
else |
18616 |
|
echo "$as_me: failed program was:" >&5 |
18617 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18618 |
|
|
18619 |
|
ac_cv_lib_svld_dlopen=no |
18620 |
|
fi |
18621 |
|
rm -f conftest.err conftest.$ac_objext \ |
18622 |
|
conftest$ac_exeext conftest.$ac_ext |
18623 |
|
LIBS=$ac_check_lib_save_LIBS |
18624 |
|
fi |
18625 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
18626 |
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
18627 |
|
if test $ac_cv_lib_svld_dlopen = yes; then |
18628 |
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
18629 |
|
else |
18630 |
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
18631 |
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
18632 |
|
if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
18633 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18634 |
|
else |
18635 |
|
ac_check_lib_save_LIBS=$LIBS |
18636 |
|
LIBS="-ldld $LIBS" |
18637 |
|
cat >conftest.$ac_ext <<_ACEOF |
18638 |
|
/* confdefs.h. */ |
18639 |
|
_ACEOF |
18640 |
|
cat confdefs.h >>conftest.$ac_ext |
18641 |
|
cat >>conftest.$ac_ext <<_ACEOF |
18642 |
|
/* end confdefs.h. */ |
18643 |
|
|
18644 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
18645 |
|
#ifdef __cplusplus |
18646 |
|
extern "C" |
18647 |
|
#endif |
18648 |
|
/* We use char because int might match the return type of a gcc2 |
18649 |
|
builtin and then its argument prototype would still apply. */ |
18650 |
|
char dld_link (); |
18651 |
|
int |
18652 |
|
main () |
18653 |
|
{ |
18654 |
|
dld_link (); |
18655 |
|
; |
18656 |
|
return 0; |
18657 |
|
} |
18658 |
|
_ACEOF |
18659 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
18660 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18661 |
|
(eval $ac_link) 2>conftest.er1 |
18662 |
|
ac_status=$? |
18663 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
18664 |
|
rm -f conftest.er1 |
18665 |
|
cat conftest.err >&5 |
18666 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18667 |
|
(exit $ac_status); } && |
18668 |
|
{ ac_try='test -z "$ac_c_werror_flag" |
18669 |
|
|| test ! -s conftest.err' |
18670 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18671 |
|
(eval $ac_try) 2>&5 |
18672 |
|
ac_status=$? |
18673 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18674 |
|
(exit $ac_status); }; } && |
18675 |
|
{ ac_try='test -s conftest$ac_exeext' |
18676 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18677 |
|
(eval $ac_try) 2>&5 |
18678 |
|
ac_status=$? |
18679 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18680 |
|
(exit $ac_status); }; }; then |
18681 |
|
ac_cv_lib_dld_dld_link=yes |
18682 |
|
else |
18683 |
|
echo "$as_me: failed program was:" >&5 |
18684 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
18685 |
|
|
18686 |
|
ac_cv_lib_dld_dld_link=no |
18687 |
|
fi |
18688 |
|
rm -f conftest.err conftest.$ac_objext \ |
18689 |
|
conftest$ac_exeext conftest.$ac_ext |
18690 |
|
LIBS=$ac_check_lib_save_LIBS |
18691 |
|
fi |
18692 |
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
18693 |
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
18694 |
|
if test $ac_cv_lib_dld_dld_link = yes; then |
18695 |
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
18696 |
|
fi |
18697 |
|
|
18698 |
|
|
18699 |
|
fi |
18700 |
|
|
18701 |
|
|
18702 |
|
fi |
18703 |
|
|
18704 |
|
|
18705 |
|
fi |
18706 |
|
|
18707 |
|
|
18708 |
|
fi |
18709 |
|
|
18710 |
|
|
18711 |
|
fi |
18712 |
|
|
18713 |
|
;; |
18714 |
|
esac |
18715 |
|
|
18716 |
|
if test "x$lt_cv_dlopen" != xno; then |
18717 |
|
enable_dlopen=yes |
18718 |
|
else |
18719 |
|
enable_dlopen=no |
18720 |
|
fi |
18721 |
|
|
18722 |
|
case $lt_cv_dlopen in |
18723 |
|
dlopen) |
18724 |
|
save_CPPFLAGS="$CPPFLAGS" |
18725 |
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
18726 |
|
|
18727 |
|
save_LDFLAGS="$LDFLAGS" |
18728 |
|
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
18729 |
|
|
18730 |
|
save_LIBS="$LIBS" |
18731 |
|
LIBS="$lt_cv_dlopen_libs $LIBS" |
18732 |
|
|
18733 |
|
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
18734 |
|
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
18735 |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
18736 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18737 |
|
else |
18738 |
|
if test "$cross_compiling" = yes; then : |
18739 |
|
lt_cv_dlopen_self=cross |
18740 |
|
else |
18741 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
18742 |
|
lt_status=$lt_dlunknown |
18743 |
|
cat > conftest.$ac_ext <<EOF |
18744 |
|
#line 18744 "configure" |
18745 |
|
#include "confdefs.h" |
18746 |
|
|
18747 |
|
#if HAVE_DLFCN_H |
18748 |
|
#include <dlfcn.h> |
18749 |
|
#endif |
18750 |
|
|
18751 |
|
#include <stdio.h> |
18752 |
|
|
18753 |
|
#ifdef RTLD_GLOBAL |
18754 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
18755 |
|
#else |
18756 |
|
# ifdef DL_GLOBAL |
18757 |
|
# define LT_DLGLOBAL DL_GLOBAL |
18758 |
|
# else |
18759 |
|
# define LT_DLGLOBAL 0 |
18760 |
|
# endif |
18761 |
|
#endif |
18762 |
|
|
18763 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
18764 |
|
find out it does not work in some platform. */ |
18765 |
|
#ifndef LT_DLLAZY_OR_NOW |
18766 |
|
# ifdef RTLD_LAZY |
18767 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
18768 |
|
# else |
18769 |
|
# ifdef DL_LAZY |
18770 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
18771 |
|
# else |
18772 |
|
# ifdef RTLD_NOW |
18773 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
18774 |
|
# else |
18775 |
|
# ifdef DL_NOW |
18776 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
18777 |
|
# else |
18778 |
|
# define LT_DLLAZY_OR_NOW 0 |
18779 |
|
# endif |
18780 |
|
# endif |
18781 |
|
# endif |
18782 |
|
# endif |
18783 |
|
#endif |
18784 |
|
|
18785 |
|
#ifdef __cplusplus |
18786 |
|
extern "C" void exit (int); |
18787 |
|
#endif |
18788 |
|
|
18789 |
|
void fnord() { int i=42;} |
18790 |
|
int main () |
18791 |
|
{ |
18792 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
18793 |
|
int status = $lt_dlunknown; |
18794 |
|
|
18795 |
|
if (self) |
18796 |
|
{ |
18797 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
18798 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
18799 |
|
/* dlclose (self); */ |
18800 |
|
} |
18801 |
|
|
18802 |
|
exit (status); |
18803 |
|
} |
18804 |
|
EOF |
18805 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18806 |
|
(eval $ac_link) 2>&5 |
18807 |
|
ac_status=$? |
18808 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18809 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
18810 |
|
(./conftest; exit; ) 2>/dev/null |
18811 |
|
lt_status=$? |
18812 |
|
case x$lt_status in |
18813 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
18814 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
18815 |
|
x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
18816 |
|
esac |
18817 |
|
else : |
18818 |
|
# compilation failed |
18819 |
|
lt_cv_dlopen_self=no |
18820 |
|
fi |
18821 |
|
fi |
18822 |
|
rm -fr conftest* |
18823 |
|
|
18824 |
|
|
18825 |
|
fi |
18826 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
18827 |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
18828 |
|
|
18829 |
|
if test "x$lt_cv_dlopen_self" = xyes; then |
18830 |
|
LDFLAGS="$LDFLAGS $link_static_flag" |
18831 |
|
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
18832 |
|
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
18833 |
|
if test "${lt_cv_dlopen_self_static+set}" = set; then |
18834 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
18835 |
|
else |
18836 |
|
if test "$cross_compiling" = yes; then : |
18837 |
|
lt_cv_dlopen_self_static=cross |
18838 |
|
else |
18839 |
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
18840 |
|
lt_status=$lt_dlunknown |
18841 |
|
cat > conftest.$ac_ext <<EOF |
18842 |
|
#line 18842 "configure" |
18843 |
|
#include "confdefs.h" |
18844 |
|
|
18845 |
|
#if HAVE_DLFCN_H |
18846 |
|
#include <dlfcn.h> |
18847 |
|
#endif |
18848 |
|
|
18849 |
|
#include <stdio.h> |
18850 |
|
|
18851 |
|
#ifdef RTLD_GLOBAL |
18852 |
|
# define LT_DLGLOBAL RTLD_GLOBAL |
18853 |
|
#else |
18854 |
|
# ifdef DL_GLOBAL |
18855 |
|
# define LT_DLGLOBAL DL_GLOBAL |
18856 |
|
# else |
18857 |
|
# define LT_DLGLOBAL 0 |
18858 |
|
# endif |
18859 |
|
#endif |
18860 |
|
|
18861 |
|
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
18862 |
|
find out it does not work in some platform. */ |
18863 |
|
#ifndef LT_DLLAZY_OR_NOW |
18864 |
|
# ifdef RTLD_LAZY |
18865 |
|
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
18866 |
|
# else |
18867 |
|
# ifdef DL_LAZY |
18868 |
|
# define LT_DLLAZY_OR_NOW DL_LAZY |
18869 |
|
# else |
18870 |
|
# ifdef RTLD_NOW |
18871 |
|
# define LT_DLLAZY_OR_NOW RTLD_NOW |
18872 |
|
# else |
18873 |
|
# ifdef DL_NOW |
18874 |
|
# define LT_DLLAZY_OR_NOW DL_NOW |
18875 |
|
# else |
18876 |
|
# define LT_DLLAZY_OR_NOW 0 |
18877 |
|
# endif |
18878 |
|
# endif |
18879 |
|
# endif |
18880 |
|
# endif |
18881 |
|
#endif |
18882 |
|
|
18883 |
|
#ifdef __cplusplus |
18884 |
|
extern "C" void exit (int); |
18885 |
|
#endif |
18886 |
|
|
18887 |
|
void fnord() { int i=42;} |
18888 |
|
int main () |
18889 |
|
{ |
18890 |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
18891 |
|
int status = $lt_dlunknown; |
18892 |
|
|
18893 |
|
if (self) |
18894 |
|
{ |
18895 |
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
18896 |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
18897 |
|
/* dlclose (self); */ |
18898 |
|
} |
18899 |
|
|
18900 |
|
exit (status); |
18901 |
|
} |
18902 |
|
EOF |
18903 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
18904 |
|
(eval $ac_link) 2>&5 |
18905 |
|
ac_status=$? |
18906 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18907 |
|
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
18908 |
|
(./conftest; exit; ) 2>/dev/null |
18909 |
|
lt_status=$? |
18910 |
|
case x$lt_status in |
18911 |
|
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
18912 |
|
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
18913 |
|
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
18914 |
|
esac |
18915 |
|
else : |
18916 |
|
# compilation failed |
18917 |
|
lt_cv_dlopen_self_static=no |
18918 |
|
fi |
18919 |
|
fi |
18920 |
|
rm -fr conftest* |
18921 |
|
|
18922 |
|
|
18923 |
|
fi |
18924 |
|
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
18925 |
|
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
18926 |
|
fi |
18927 |
|
|
18928 |
|
CPPFLAGS="$save_CPPFLAGS" |
18929 |
|
LDFLAGS="$save_LDFLAGS" |
18930 |
|
LIBS="$save_LIBS" |
18931 |
|
;; |
18932 |
|
esac |
18933 |
|
|
18934 |
|
case $lt_cv_dlopen_self in |
18935 |
|
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
18936 |
|
*) enable_dlopen_self=unknown ;; |
18937 |
|
esac |
18938 |
|
|
18939 |
|
case $lt_cv_dlopen_self_static in |
18940 |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
18941 |
|
*) enable_dlopen_self_static=unknown ;; |
18942 |
|
esac |
18943 |
|
fi |
18944 |
|
|
18945 |
|
|
18946 |
|
# The else clause should only fire when bootstrapping the |
18947 |
|
# libtool distribution, otherwise you forgot to ship ltmain.sh |
18948 |
|
# with your package, and you will get complaints that there are |
18949 |
|
# no rules to generate ltmain.sh. |
18950 |
|
if test -f "$ltmain"; then |
18951 |
|
# See if we are running on zsh, and set the options which allow our commands through |
18952 |
|
# without removal of \ escapes. |
18953 |
|
if test -n "${ZSH_VERSION+set}" ; then |
18954 |
|
setopt NO_GLOB_SUBST |
18955 |
|
fi |
18956 |
|
# Now quote all the things that may contain metacharacters while being |
18957 |
|
# careful not to overquote the AC_SUBSTed values. We take copies of the |
18958 |
|
# variables and quote the copies for generation of the libtool script. |
18959 |
|
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
18960 |
|
SED SHELL STRIP \ |
18961 |
|
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18962 |
|
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18963 |
|
deplibs_check_method reload_flag reload_cmds need_locks \ |
18964 |
|
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18965 |
|
lt_cv_sys_global_symbol_to_c_name_address \ |
18966 |
|
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18967 |
|
old_postinstall_cmds old_postuninstall_cmds \ |
18968 |
|
compiler_GCJ \ |
18969 |
|
CC_GCJ \ |
18970 |
|
LD_GCJ \ |
18971 |
|
lt_prog_compiler_wl_GCJ \ |
18972 |
|
lt_prog_compiler_pic_GCJ \ |
18973 |
|
lt_prog_compiler_static_GCJ \ |
18974 |
|
lt_prog_compiler_no_builtin_flag_GCJ \ |
18975 |
|
export_dynamic_flag_spec_GCJ \ |
18976 |
|
thread_safe_flag_spec_GCJ \ |
18977 |
|
whole_archive_flag_spec_GCJ \ |
18978 |
|
enable_shared_with_static_runtimes_GCJ \ |
18979 |
|
old_archive_cmds_GCJ \ |
18980 |
|
old_archive_from_new_cmds_GCJ \ |
18981 |
|
predep_objects_GCJ \ |
18982 |
|
postdep_objects_GCJ \ |
18983 |
|
predeps_GCJ \ |
18984 |
|
postdeps_GCJ \ |
18985 |
|
compiler_lib_search_path_GCJ \ |
18986 |
|
archive_cmds_GCJ \ |
18987 |
|
archive_expsym_cmds_GCJ \ |
18988 |
|
postinstall_cmds_GCJ \ |
18989 |
|
postuninstall_cmds_GCJ \ |
18990 |
|
old_archive_from_expsyms_cmds_GCJ \ |
18991 |
|
allow_undefined_flag_GCJ \ |
18992 |
|
no_undefined_flag_GCJ \ |
18993 |
|
export_symbols_cmds_GCJ \ |
18994 |
|
hardcode_libdir_flag_spec_GCJ \ |
18995 |
|
hardcode_libdir_flag_spec_ld_GCJ \ |
18996 |
|
hardcode_libdir_separator_GCJ \ |
18997 |
|
hardcode_automatic_GCJ \ |
18998 |
|
module_cmds_GCJ \ |
18999 |
|
module_expsym_cmds_GCJ \ |
19000 |
|
lt_cv_prog_compiler_c_o_GCJ \ |
19001 |
|
exclude_expsyms_GCJ \ |
19002 |
|
include_expsyms_GCJ; do |
19003 |
|
|
19004 |
|
case $var in |
19005 |
|
old_archive_cmds_GCJ | \ |
19006 |
|
old_archive_from_new_cmds_GCJ | \ |
19007 |
|
archive_cmds_GCJ | \ |
19008 |
|
archive_expsym_cmds_GCJ | \ |
19009 |
|
module_cmds_GCJ | \ |
19010 |
|
module_expsym_cmds_GCJ | \ |
19011 |
|
old_archive_from_expsyms_cmds_GCJ | \ |
19012 |
|
export_symbols_cmds_GCJ | \ |
19013 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19014 |
|
postinstall_cmds | postuninstall_cmds | \ |
19015 |
|
old_postinstall_cmds | old_postuninstall_cmds | \ |
19016 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19017 |
|
# Double-quote double-evaled strings. |
19018 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19019 |
|
;; |
19020 |
|
*) |
19021 |
|
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19022 |
|
;; |
19023 |
|
esac |
19024 |
|
done |
19025 |
|
|
19026 |
|
case $lt_echo in |
19027 |
|
*'\$0 --fallback-echo"') |
19028 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19029 |
|
;; |
19030 |
|
esac |
19031 |
|
|
19032 |
|
cfgfile="$ofile" |
19033 |
|
|
19034 |
|
cat <<__EOF__ >> "$cfgfile" |
19035 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19036 |
|
|
19037 |
|
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19038 |
|
|
19039 |
|
# Shell to use when invoking shell scripts. |
19040 |
|
SHELL=$lt_SHELL |
19041 |
|
|
19042 |
|
# Whether or not to build shared libraries. |
19043 |
|
build_libtool_libs=$enable_shared |
19044 |
|
|
19045 |
|
# Whether or not to build static libraries. |
19046 |
|
build_old_libs=$enable_static |
19047 |
|
|
19048 |
|
# Whether or not to add -lc for building shared libraries. |
19049 |
|
build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
19050 |
|
|
19051 |
|
# Whether or not to disallow shared libs when runtime libs are static |
19052 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
19053 |
|
|
19054 |
|
# Whether or not to optimize for fast installation. |
19055 |
|
fast_install=$enable_fast_install |
19056 |
|
|
19057 |
|
# The host system. |
19058 |
|
host_alias=$host_alias |
19059 |
|
host=$host |
19060 |
|
host_os=$host_os |
19061 |
|
|
19062 |
|
# The build system. |
19063 |
|
build_alias=$build_alias |
19064 |
|
build=$build |
19065 |
|
build_os=$build_os |
19066 |
|
|
19067 |
|
# An echo program that does not interpret backslashes. |
19068 |
|
echo=$lt_echo |
19069 |
|
|
19070 |
|
# The archiver. |
19071 |
|
AR=$lt_AR |
19072 |
|
AR_FLAGS=$lt_AR_FLAGS |
19073 |
|
|
19074 |
|
# A C compiler. |
19075 |
|
LTCC=$lt_LTCC |
19076 |
|
|
19077 |
|
# A language-specific compiler. |
19078 |
|
CC=$lt_compiler_GCJ |
19079 |
|
|
19080 |
|
# Is the compiler the GNU C compiler? |
19081 |
|
with_gcc=$GCC_GCJ |
19082 |
|
|
19083 |
|
# An ERE matcher. |
19084 |
|
EGREP=$lt_EGREP |
19085 |
|
|
19086 |
|
# The linker used to build libraries. |
19087 |
|
LD=$lt_LD_GCJ |
19088 |
|
|
19089 |
|
# Whether we need hard or soft links. |
19090 |
|
LN_S=$lt_LN_S |
19091 |
|
|
19092 |
|
# A BSD-compatible nm program. |
19093 |
|
NM=$lt_NM |
19094 |
|
|
19095 |
|
# A symbol stripping program |
19096 |
|
STRIP=$lt_STRIP |
19097 |
|
|
19098 |
|
# Used to examine libraries when file_magic_cmd begins "file" |
19099 |
|
MAGIC_CMD=$MAGIC_CMD |
19100 |
|
|
19101 |
|
# Used on cygwin: DLL creation program. |
19102 |
|
DLLTOOL="$DLLTOOL" |
19103 |
|
|
19104 |
|
# Used on cygwin: object dumper. |
19105 |
|
OBJDUMP="$OBJDUMP" |
19106 |
|
|
19107 |
|
# Used on cygwin: assembler. |
19108 |
|
AS="$AS" |
19109 |
|
|
19110 |
|
# The name of the directory that contains temporary libtool files. |
19111 |
|
objdir=$objdir |
19112 |
|
|
19113 |
|
# How to create reloadable object files. |
19114 |
|
reload_flag=$lt_reload_flag |
19115 |
|
reload_cmds=$lt_reload_cmds |
19116 |
|
|
19117 |
|
# How to pass a linker flag through the compiler. |
19118 |
|
wl=$lt_lt_prog_compiler_wl_GCJ |
19119 |
|
|
19120 |
|
# Object file suffix (normally "o"). |
19121 |
|
objext="$ac_objext" |
19122 |
|
|
19123 |
|
# Old archive suffix (normally "a"). |
19124 |
|
libext="$libext" |
19125 |
|
|
19126 |
|
# Shared library suffix (normally ".so"). |
19127 |
|
shrext_cmds='$shrext_cmds' |
19128 |
|
|
19129 |
|
# Executable file suffix (normally ""). |
19130 |
|
exeext="$exeext" |
19131 |
|
|
19132 |
|
# Additional compiler flags for building library objects. |
19133 |
|
pic_flag=$lt_lt_prog_compiler_pic_GCJ |
19134 |
|
pic_mode=$pic_mode |
19135 |
|
|
19136 |
|
# What is the maximum length of a command? |
19137 |
|
max_cmd_len=$lt_cv_sys_max_cmd_len |
19138 |
|
|
19139 |
|
# Does compiler simultaneously support -c and -o options? |
19140 |
|
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
19141 |
|
|
19142 |
|
# Must we lock files when doing compilation? |
19143 |
|
need_locks=$lt_need_locks |
19144 |
|
|
19145 |
|
# Do we need the lib prefix for modules? |
19146 |
|
need_lib_prefix=$need_lib_prefix |
19147 |
|
|
19148 |
|
# Do we need a version for libraries? |
19149 |
|
need_version=$need_version |
19150 |
|
|
19151 |
|
# Whether dlopen is supported. |
19152 |
|
dlopen_support=$enable_dlopen |
19153 |
|
|
19154 |
|
# Whether dlopen of programs is supported. |
19155 |
|
dlopen_self=$enable_dlopen_self |
19156 |
|
|
19157 |
|
# Whether dlopen of statically linked programs is supported. |
19158 |
|
dlopen_self_static=$enable_dlopen_self_static |
19159 |
|
|
19160 |
|
# Compiler flag to prevent dynamic linking. |
19161 |
|
link_static_flag=$lt_lt_prog_compiler_static_GCJ |
19162 |
|
|
19163 |
|
# Compiler flag to turn off builtin functions. |
19164 |
|
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
19165 |
|
|
19166 |
|
# Compiler flag to allow reflexive dlopens. |
19167 |
|
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
19168 |
|
|
19169 |
|
# Compiler flag to generate shared objects directly from archives. |
19170 |
|
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
19171 |
|
|
19172 |
|
# Compiler flag to generate thread-safe objects. |
19173 |
|
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
19174 |
|
|
19175 |
ac_cv_lib_dl_dlopen=no |
# Library versioning type. |
19176 |
fi |
version_type=$version_type |
|
rm -f conftest.err conftest.$ac_objext \ |
|
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
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. */ |
|
19177 |
|
|
19178 |
/* Override any gcc2 internal prototype to avoid an error. */ |
# Format of library name prefix. |
19179 |
#ifdef __cplusplus |
libname_spec=$lt_libname_spec |
|
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_svld_dlopen=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19180 |
|
|
19181 |
ac_cv_lib_svld_dlopen=no |
# List of archive names. First name is the real one, the rest are links. |
19182 |
fi |
# The last name is the one that the linker finds with -lNAME. |
19183 |
rm -f conftest.err conftest.$ac_objext \ |
library_names_spec=$lt_library_names_spec |
|
conftest$ac_exeext conftest.$ac_ext |
|
|
LIBS=$ac_check_lib_save_LIBS |
|
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
|
if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
else |
|
|
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
|
if test "${ac_cv_lib_dld_dld_link+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. */ |
|
19184 |
|
|
19185 |
/* Override any gcc2 internal prototype to avoid an error. */ |
# The coded name of the library, if different from the real name. |
19186 |
#ifdef __cplusplus |
soname_spec=$lt_soname_spec |
|
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 dld_link (); |
|
|
int |
|
|
main () |
|
|
{ |
|
|
dld_link (); |
|
|
; |
|
|
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_dld_link=yes |
|
|
else |
|
|
echo "$as_me: failed program was:" >&5 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5 |
|
19187 |
|
|
19188 |
ac_cv_lib_dld_dld_link=no |
# Commands used to build and install an old-style archive. |
19189 |
fi |
RANLIB=$lt_RANLIB |
19190 |
rm -f conftest.err conftest.$ac_objext \ |
old_archive_cmds=$lt_old_archive_cmds_GCJ |
19191 |
conftest$ac_exeext conftest.$ac_ext |
old_postinstall_cmds=$lt_old_postinstall_cmds |
19192 |
LIBS=$ac_check_lib_save_LIBS |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
fi |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
|
if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
fi |
|
19193 |
|
|
19194 |
|
# Create an old-style archive from a shared archive. |
19195 |
|
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
19196 |
|
|
19197 |
fi |
# Create a temporary old-style archive to link instead of a shared archive. |
19198 |
|
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
19199 |
|
|
19200 |
|
# Commands used to build and install a shared archive. |
19201 |
|
archive_cmds=$lt_archive_cmds_GCJ |
19202 |
|
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
19203 |
|
postinstall_cmds=$lt_postinstall_cmds |
19204 |
|
postuninstall_cmds=$lt_postuninstall_cmds |
19205 |
|
|
19206 |
fi |
# Commands used to build a loadable module (assumed same as above if empty) |
19207 |
|
module_cmds=$lt_module_cmds_GCJ |
19208 |
|
module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
19209 |
|
|
19210 |
|
# Commands to strip libraries. |
19211 |
|
old_striplib=$lt_old_striplib |
19212 |
|
striplib=$lt_striplib |
19213 |
|
|
19214 |
fi |
# Dependencies to place before the objects being linked to create a |
19215 |
|
# shared library. |
19216 |
|
predep_objects=$lt_predep_objects_GCJ |
19217 |
|
|
19218 |
|
# Dependencies to place after the objects being linked to create a |
19219 |
|
# shared library. |
19220 |
|
postdep_objects=$lt_postdep_objects_GCJ |
19221 |
|
|
19222 |
|
# Dependencies to place before the objects being linked to create a |
19223 |
|
# shared library. |
19224 |
|
predeps=$lt_predeps_GCJ |
19225 |
|
|
19226 |
|
# Dependencies to place after the objects being linked to create a |
19227 |
|
# shared library. |
19228 |
|
postdeps=$lt_postdeps_GCJ |
19229 |
|
|
19230 |
|
# The library search path used internally by the compiler when linking |
19231 |
|
# a shared library. |
19232 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
19233 |
|
|
19234 |
|
# Method to check whether dependent libraries are shared objects. |
19235 |
|
deplibs_check_method=$lt_deplibs_check_method |
19236 |
|
|
19237 |
fi |
# Command to use when deplibs_check_method == file_magic. |
19238 |
|
file_magic_cmd=$lt_file_magic_cmd |
19239 |
|
|
19240 |
|
# Flag that allows shared libraries with undefined symbols to be built. |
19241 |
|
allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
19242 |
|
|
19243 |
fi |
# Flag that forces no undefined symbols. |
19244 |
|
no_undefined_flag=$lt_no_undefined_flag_GCJ |
19245 |
|
|
19246 |
;; |
# Commands used to finish a libtool library installation in a directory. |
19247 |
esac |
finish_cmds=$lt_finish_cmds |
19248 |
|
|
19249 |
if test "x$lt_cv_dlopen" != xno; then |
# Same as above, but a single script fragment to be evaled but not shown. |
19250 |
enable_dlopen=yes |
finish_eval=$lt_finish_eval |
|
else |
|
|
enable_dlopen=no |
|
|
fi |
|
19251 |
|
|
19252 |
case $lt_cv_dlopen in |
# Take the output of nm and produce a listing of raw symbols and C names. |
19253 |
dlopen) |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
save_CPPFLAGS="$CPPFLAGS" |
|
|
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
19254 |
|
|
19255 |
save_LDFLAGS="$LDFLAGS" |
# Transform the output of nm in a proper C declaration |
19256 |
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19257 |
|
|
19258 |
save_LIBS="$LIBS" |
# Transform the output of nm in a C name address pair |
19259 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19260 |
|
|
19261 |
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
# This is the shared library runtime path variable. |
19262 |
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
runpath_var=$runpath_var |
|
if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
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" |
|
19263 |
|
|
19264 |
#if HAVE_DLFCN_H |
# This is the shared library path variable. |
19265 |
#include <dlfcn.h> |
shlibpath_var=$shlibpath_var |
|
#endif |
|
19266 |
|
|
19267 |
#include <stdio.h> |
# Is shlibpath searched before the hard-coded library search path? |
19268 |
|
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19269 |
|
|
19270 |
#ifdef RTLD_GLOBAL |
# How to hardcode a shared library path into an executable. |
19271 |
# define LT_DLGLOBAL RTLD_GLOBAL |
hardcode_action=$hardcode_action_GCJ |
|
#else |
|
|
# ifdef DL_GLOBAL |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
|
|
# else |
|
|
# define LT_DLGLOBAL 0 |
|
|
# endif |
|
|
#endif |
|
19272 |
|
|
19273 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
# Whether we should hardcode library paths into libraries. |
19274 |
find out it does not work in some platform. */ |
hardcode_into_libs=$hardcode_into_libs |
19275 |
#ifndef LT_DLLAZY_OR_NOW |
|
19276 |
# ifdef RTLD_LAZY |
# Flag to hardcode \$libdir into a binary during linking. |
19277 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
# This must work even if \$libdir does not exist. |
19278 |
# else |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
19279 |
# ifdef DL_LAZY |
|
19280 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
# If ld is used when linking, flag to hardcode \$libdir into |
19281 |
# else |
# a binary during linking. This must work even if \$libdir does |
19282 |
# ifdef RTLD_NOW |
# not exist. |
19283 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
19284 |
# else |
|
19285 |
# ifdef DL_NOW |
# Whether we need a single -rpath flag with a separated argument. |
19286 |
# define LT_DLLAZY_OR_NOW DL_NOW |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
19287 |
# else |
|
19288 |
# define LT_DLLAZY_OR_NOW 0 |
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19289 |
# endif |
# resulting binary. |
19290 |
# endif |
hardcode_direct=$hardcode_direct_GCJ |
|
# endif |
|
|
# endif |
|
|
#endif |
|
19291 |
|
|
19292 |
#ifdef __cplusplus |
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19293 |
extern "C" void exit (int); |
# resulting binary. |
19294 |
#endif |
hardcode_minus_L=$hardcode_minus_L_GCJ |
19295 |
|
|
19296 |
void fnord() { int i=42;} |
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19297 |
int main () |
# the resulting binary. |
19298 |
{ |
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
int status = $lt_dlunknown; |
|
19299 |
|
|
19300 |
if (self) |
# Set to yes if building a shared library automatically hardcodes DIR into the library |
19301 |
{ |
# and all subsequent libraries and executables linked against it. |
19302 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
hardcode_automatic=$hardcode_automatic_GCJ |
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
/* dlclose (self); */ |
|
|
} |
|
19303 |
|
|
19304 |
exit (status); |
# Variables whose values should be saved in libtool wrapper scripts and |
19305 |
} |
# restored at relink time. |
19306 |
EOF |
variables_saved_for_relink="$variables_saved_for_relink" |
|
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* |
|
19307 |
|
|
19308 |
|
# Whether libtool must link a program against all its dependency libraries. |
19309 |
|
link_all_deplibs=$link_all_deplibs_GCJ |
19310 |
|
|
19311 |
fi |
# Compile-time system search path for libraries |
19312 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
19313 |
|
|
19314 |
if test "x$lt_cv_dlopen_self" = xyes; then |
# Run-time system search path for libraries |
19315 |
LDFLAGS="$LDFLAGS $link_static_flag" |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
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" |
|
19316 |
|
|
19317 |
#if HAVE_DLFCN_H |
# Fix the shell variable \$srcfile for the compiler. |
19318 |
#include <dlfcn.h> |
fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
#endif |
|
19319 |
|
|
19320 |
#include <stdio.h> |
# Set to yes if exported symbols are required. |
19321 |
|
always_export_symbols=$always_export_symbols_GCJ |
19322 |
|
|
19323 |
#ifdef RTLD_GLOBAL |
# The commands to list exported symbols. |
19324 |
# define LT_DLGLOBAL RTLD_GLOBAL |
export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
#else |
|
|
# ifdef DL_GLOBAL |
|
|
# define LT_DLGLOBAL DL_GLOBAL |
|
|
# else |
|
|
# define LT_DLGLOBAL 0 |
|
|
# endif |
|
|
#endif |
|
19325 |
|
|
19326 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
# The commands to extract the exported symbol list from a shared archive. |
19327 |
find out it does not work in some platform. */ |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
#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 |
|
19328 |
|
|
19329 |
#ifdef __cplusplus |
# Symbols that should not be listed in the preloaded symbols. |
19330 |
extern "C" void exit (int); |
exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
#endif |
|
19331 |
|
|
19332 |
void fnord() { int i=42;} |
# Symbols that must always be exported. |
19333 |
int main () |
include_expsyms=$lt_include_expsyms_GCJ |
|
{ |
|
|
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
int status = $lt_dlunknown; |
|
19334 |
|
|
19335 |
if (self) |
# ### END LIBTOOL TAG CONFIG: $tagname |
|
{ |
|
|
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
/* dlclose (self); */ |
|
|
} |
|
19336 |
|
|
19337 |
exit (status); |
__EOF__ |
19338 |
} |
|
19339 |
EOF |
|
19340 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
else |
19341 |
(eval $ac_link) 2>&5 |
# If there is no Makefile yet, we rely on a make rule to execute |
19342 |
ac_status=$? |
# `config.status --recheck' to rerun these tests and create the |
19343 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
# libtool script then. |
19344 |
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19345 |
(./conftest; exit; ) 2>/dev/null |
if test -f "$ltmain_in"; then |
19346 |
lt_status=$? |
test -f Makefile && make "$ltmain" |
|
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 |
|
19347 |
fi |
fi |
19348 |
fi |
fi |
|
rm -fr conftest* |
|
19349 |
|
|
19350 |
|
|
19351 |
fi |
ac_ext=c |
19352 |
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
ac_cpp='$CPP $CPPFLAGS' |
19353 |
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19354 |
fi |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19355 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19356 |
|
|
19357 |
CPPFLAGS="$save_CPPFLAGS" |
CC="$lt_save_CC" |
|
LDFLAGS="$save_LDFLAGS" |
|
|
LIBS="$save_LIBS" |
|
|
;; |
|
|
esac |
|
19358 |
|
|
19359 |
case $lt_cv_dlopen_self in |
else |
19360 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
tagname="" |
19361 |
*) enable_dlopen_self=unknown ;; |
fi |
19362 |
esac |
;; |
19363 |
|
|
19364 |
case $lt_cv_dlopen_self_static in |
RC) |
|
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
*) enable_dlopen_self_static=unknown ;; |
|
|
esac |
|
|
fi |
|
19365 |
|
|
19366 |
|
|
|
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
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 |
|
19367 |
|
|
19368 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
# Source file extension for RC test sources. |
19369 |
(eval $ac_compile) 2>&5 |
ac_ext=rc |
|
ac_status=$? |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
(exit $ac_status); }; then |
|
|
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 |
|
19370 |
|
|
19371 |
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
# Object file extension for compiled RC test sources. |
19372 |
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
objext=o |
19373 |
;; |
objext_RC=$objext |
19374 |
|
|
19375 |
|
# Code to be used in simple compile tests |
19376 |
|
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
19377 |
|
|
19378 |
|
# Code to be used in simple link tests |
19379 |
|
lt_simple_link_test_code="$lt_simple_compile_test_code" |
19380 |
|
|
19381 |
|
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
19382 |
|
|
19383 |
|
# If no C compiler was specified, use CC. |
19384 |
|
LTCC=${LTCC-"$CC"} |
19385 |
|
|
19386 |
|
# Allow CC to be a program name with arguments. |
19387 |
|
compiler=$CC |
19388 |
|
|
19389 |
|
|
19390 |
|
# save warnings/boilerplate of simple test code |
19391 |
|
ac_outfile=conftest.$ac_objext |
19392 |
|
printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
19393 |
|
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
19394 |
|
_lt_compiler_boilerplate=`cat conftest.err` |
19395 |
|
$rm conftest* |
19396 |
|
|
19397 |
|
ac_outfile=conftest.$ac_objext |
19398 |
|
printf "$lt_simple_link_test_code" >conftest.$ac_ext |
19399 |
|
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
19400 |
|
_lt_linker_boilerplate=`cat conftest.err` |
19401 |
|
$rm conftest* |
19402 |
|
|
19403 |
|
|
19404 |
|
# Allow CC to be a program name with arguments. |
19405 |
|
lt_save_CC="$CC" |
19406 |
|
CC=${RC-"windres"} |
19407 |
|
compiler=$CC |
19408 |
|
compiler_RC=$CC |
19409 |
|
for cc_temp in $compiler""; do |
19410 |
|
case $cc_temp in |
19411 |
|
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19412 |
|
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19413 |
|
\-*) ;; |
19414 |
|
*) break;; |
19415 |
esac |
esac |
19416 |
fi |
done |
19417 |
need_lc=${lt_cv_archive_cmds_need_lc-yes} |
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
19418 |
|
|
19419 |
|
lt_cv_prog_compiler_c_o_RC=yes |
19420 |
|
|
19421 |
# The second clause should only fire when bootstrapping the |
# The else clause should only fire when bootstrapping the |
19422 |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
# libtool distribution, otherwise you forgot to ship ltmain.sh |
19423 |
# with your package, and you will get complaints that there are |
# with your package, and you will get complaints that there are |
19424 |
# no rules to generate ltmain.sh. |
# no rules to generate ltmain.sh. |
19425 |
if test -f "$ltmain"; then |
if test -f "$ltmain"; then |
19426 |
: |
# See if we are running on zsh, and set the options which allow our commands through |
19427 |
else |
# without removal of \ escapes. |
19428 |
# If there is no Makefile yet, we rely on a make rule to execute |
if test -n "${ZSH_VERSION+set}" ; then |
19429 |
# `config.status --recheck' to rerun these tests and create the |
setopt NO_GLOB_SUBST |
19430 |
# 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 |
|
|
|
|
19431 |
# Now quote all the things that may contain metacharacters while being |
# Now quote all the things that may contain metacharacters while being |
19432 |
# 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 |
19433 |
# variables and quote the copies for generation of the libtool script. |
# variables and quote the copies for generation of the libtool script. |
19434 |
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 \ |
19435 |
AR AR_FLAGS CC LD LN_S NM SHELL \ |
SED SHELL STRIP \ |
19436 |
reload_flag reload_cmds wl \ |
libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19437 |
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19438 |
thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
deplibs_check_method reload_flag reload_cmds need_locks \ |
19439 |
library_names_spec soname_spec \ |
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19440 |
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 \ |
|
19441 |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19442 |
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
old_postinstall_cmds old_postuninstall_cmds \ |
19443 |
|
compiler_RC \ |
19444 |
|
CC_RC \ |
19445 |
|
LD_RC \ |
19446 |
|
lt_prog_compiler_wl_RC \ |
19447 |
|
lt_prog_compiler_pic_RC \ |
19448 |
|
lt_prog_compiler_static_RC \ |
19449 |
|
lt_prog_compiler_no_builtin_flag_RC \ |
19450 |
|
export_dynamic_flag_spec_RC \ |
19451 |
|
thread_safe_flag_spec_RC \ |
19452 |
|
whole_archive_flag_spec_RC \ |
19453 |
|
enable_shared_with_static_runtimes_RC \ |
19454 |
|
old_archive_cmds_RC \ |
19455 |
|
old_archive_from_new_cmds_RC \ |
19456 |
|
predep_objects_RC \ |
19457 |
|
postdep_objects_RC \ |
19458 |
|
predeps_RC \ |
19459 |
|
postdeps_RC \ |
19460 |
|
compiler_lib_search_path_RC \ |
19461 |
|
archive_cmds_RC \ |
19462 |
|
archive_expsym_cmds_RC \ |
19463 |
|
postinstall_cmds_RC \ |
19464 |
|
postuninstall_cmds_RC \ |
19465 |
|
old_archive_from_expsyms_cmds_RC \ |
19466 |
|
allow_undefined_flag_RC \ |
19467 |
|
no_undefined_flag_RC \ |
19468 |
|
export_symbols_cmds_RC \ |
19469 |
|
hardcode_libdir_flag_spec_RC \ |
19470 |
|
hardcode_libdir_flag_spec_ld_RC \ |
19471 |
|
hardcode_libdir_separator_RC \ |
19472 |
|
hardcode_automatic_RC \ |
19473 |
|
module_cmds_RC \ |
19474 |
|
module_expsym_cmds_RC \ |
19475 |
|
lt_cv_prog_compiler_c_o_RC \ |
19476 |
|
exclude_expsyms_RC \ |
19477 |
|
include_expsyms_RC; do |
19478 |
|
|
19479 |
case $var in |
case $var in |
19480 |
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
old_archive_cmds_RC | \ |
19481 |
old_postinstall_cmds | old_postuninstall_cmds | \ |
old_archive_from_new_cmds_RC | \ |
19482 |
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
archive_cmds_RC | \ |
19483 |
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
archive_expsym_cmds_RC | \ |
19484 |
|
module_cmds_RC | \ |
19485 |
|
module_expsym_cmds_RC | \ |
19486 |
|
old_archive_from_expsyms_cmds_RC | \ |
19487 |
|
export_symbols_cmds_RC | \ |
19488 |
|
extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19489 |
postinstall_cmds | postuninstall_cmds | \ |
postinstall_cmds | postuninstall_cmds | \ |
19490 |
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
old_postinstall_cmds | old_postuninstall_cmds | \ |
19491 |
|
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19492 |
# Double-quote double-evaled strings. |
# Double-quote double-evaled strings. |
19493 |
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\"\`\\\"" |
19494 |
;; |
;; |
19498 |
esac |
esac |
19499 |
done |
done |
19500 |
|
|
19501 |
cat <<__EOF__ > "${ofile}T" |
case $lt_echo in |
19502 |
#! $SHELL |
*'\$0 --fallback-echo"') |
19503 |
|
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19504 |
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
;; |
19505 |
# 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//" |
|
19506 |
|
|
19507 |
# 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 |
|
19508 |
|
|
19509 |
# ### BEGIN LIBTOOL CONFIG |
cat <<__EOF__ >> "$cfgfile" |
19510 |
|
# ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19511 |
|
|
19512 |
# 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`: |
19513 |
|
|
19521 |
build_old_libs=$enable_static |
build_old_libs=$enable_static |
19522 |
|
|
19523 |
# Whether or not to add -lc for building shared libraries. |
# Whether or not to add -lc for building shared libraries. |
19524 |
build_libtool_need_lc=$need_lc |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
19525 |
|
|
19526 |
|
# Whether or not to disallow shared libs when runtime libs are static |
19527 |
|
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19528 |
|
|
19529 |
# Whether or not to optimize for fast installation. |
# Whether or not to optimize for fast installation. |
19530 |
fast_install=$enable_fast_install |
fast_install=$enable_fast_install |
19532 |
# The host system. |
# The host system. |
19533 |
host_alias=$host_alias |
host_alias=$host_alias |
19534 |
host=$host |
host=$host |
19535 |
|
host_os=$host_os |
19536 |
|
|
19537 |
|
# The build system. |
19538 |
|
build_alias=$build_alias |
19539 |
|
build=$build |
19540 |
|
build_os=$build_os |
19541 |
|
|
19542 |
# An echo program that does not interpret backslashes. |
# An echo program that does not interpret backslashes. |
19543 |
echo=$lt_echo |
echo=$lt_echo |
19546 |
AR=$lt_AR |
AR=$lt_AR |
19547 |
AR_FLAGS=$lt_AR_FLAGS |
AR_FLAGS=$lt_AR_FLAGS |
19548 |
|
|
19549 |
# The default C compiler. |
# A C compiler. |
19550 |
CC=$lt_CC |
LTCC=$lt_LTCC |
19551 |
|
|
19552 |
|
# A language-specific compiler. |
19553 |
|
CC=$lt_compiler_RC |
19554 |
|
|
19555 |
# Is the compiler the GNU C compiler? |
# Is the compiler the GNU C compiler? |
19556 |
with_gcc=$GCC |
with_gcc=$GCC_RC |
19557 |
|
|
19558 |
|
# An ERE matcher. |
19559 |
|
EGREP=$lt_EGREP |
19560 |
|
|
19561 |
# The linker used to build libraries. |
# The linker used to build libraries. |
19562 |
LD=$lt_LD |
LD=$lt_LD_RC |
19563 |
|
|
19564 |
# Whether we need hard or soft links. |
# Whether we need hard or soft links. |
19565 |
LN_S=$lt_LN_S |
LN_S=$lt_LN_S |
19568 |
NM=$lt_NM |
NM=$lt_NM |
19569 |
|
|
19570 |
# A symbol stripping program |
# A symbol stripping program |
19571 |
STRIP=$STRIP |
STRIP=$lt_STRIP |
19572 |
|
|
19573 |
# Used to examine libraries when file_magic_cmd begins "file" |
# Used to examine libraries when file_magic_cmd begins "file" |
19574 |
MAGIC_CMD=$MAGIC_CMD |
MAGIC_CMD=$MAGIC_CMD |
19590 |
reload_cmds=$lt_reload_cmds |
reload_cmds=$lt_reload_cmds |
19591 |
|
|
19592 |
# How to pass a linker flag through the compiler. |
# How to pass a linker flag through the compiler. |
19593 |
wl=$lt_wl |
wl=$lt_lt_prog_compiler_wl_RC |
19594 |
|
|
19595 |
# Object file suffix (normally "o"). |
# Object file suffix (normally "o"). |
19596 |
objext="$ac_objext" |
objext="$ac_objext" |
19598 |
# Old archive suffix (normally "a"). |
# Old archive suffix (normally "a"). |
19599 |
libext="$libext" |
libext="$libext" |
19600 |
|
|
19601 |
|
# Shared library suffix (normally ".so"). |
19602 |
|
shrext_cmds='$shrext_cmds' |
19603 |
|
|
19604 |
# Executable file suffix (normally ""). |
# Executable file suffix (normally ""). |
19605 |
exeext="$exeext" |
exeext="$exeext" |
19606 |
|
|
19607 |
# Additional compiler flags for building library objects. |
# Additional compiler flags for building library objects. |
19608 |
pic_flag=$lt_pic_flag |
pic_flag=$lt_lt_prog_compiler_pic_RC |
19609 |
pic_mode=$pic_mode |
pic_mode=$pic_mode |
19610 |
|
|
19611 |
# Does compiler simultaneously support -c and -o options? |
# What is the maximum length of a command? |
19612 |
compiler_c_o=$lt_compiler_c_o |
max_cmd_len=$lt_cv_sys_max_cmd_len |
19613 |
|
|
19614 |
# Can we write directly to a .lo ? |
# Does compiler simultaneously support -c and -o options? |
19615 |
compiler_o_lo=$lt_compiler_o_lo |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19616 |
|
|
19617 |
# Must we lock files when doing compilation ? |
# Must we lock files when doing compilation? |
19618 |
need_locks=$lt_need_locks |
need_locks=$lt_need_locks |
19619 |
|
|
19620 |
# Do we need the lib prefix for modules? |
# Do we need the lib prefix for modules? |
19633 |
dlopen_self_static=$enable_dlopen_self_static |
dlopen_self_static=$enable_dlopen_self_static |
19634 |
|
|
19635 |
# Compiler flag to prevent dynamic linking. |
# Compiler flag to prevent dynamic linking. |
19636 |
link_static_flag=$lt_link_static_flag |
link_static_flag=$lt_lt_prog_compiler_static_RC |
19637 |
|
|
19638 |
# Compiler flag to turn off builtin functions. |
# Compiler flag to turn off builtin functions. |
19639 |
no_builtin_flag=$lt_no_builtin_flag |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19640 |
|
|
19641 |
# Compiler flag to allow reflexive dlopens. |
# Compiler flag to allow reflexive dlopens. |
19642 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19643 |
|
|
19644 |
# Compiler flag to generate shared objects directly from archives. |
# Compiler flag to generate shared objects directly from archives. |
19645 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19646 |
|
|
19647 |
# Compiler flag to generate thread-safe objects. |
# Compiler flag to generate thread-safe objects. |
19648 |
thread_safe_flag_spec=$lt_thread_safe_flag_spec |
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19649 |
|
|
19650 |
# Library versioning type. |
# Library versioning type. |
19651 |
version_type=$version_type |
version_type=$version_type |
19662 |
|
|
19663 |
# Commands used to build and install an old-style archive. |
# Commands used to build and install an old-style archive. |
19664 |
RANLIB=$lt_RANLIB |
RANLIB=$lt_RANLIB |
19665 |
old_archive_cmds=$lt_old_archive_cmds |
old_archive_cmds=$lt_old_archive_cmds_RC |
19666 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
old_postinstall_cmds=$lt_old_postinstall_cmds |
19667 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19668 |
|
|
19669 |
# Create an old-style archive from a shared archive. |
# Create an old-style archive from a shared archive. |
19670 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19671 |
|
|
19672 |
# 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. |
19673 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19674 |
|
|
19675 |
# Commands used to build and install a shared archive. |
# Commands used to build and install a shared archive. |
19676 |
archive_cmds=$lt_archive_cmds |
archive_cmds=$lt_archive_cmds_RC |
19677 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19678 |
postinstall_cmds=$lt_postinstall_cmds |
postinstall_cmds=$lt_postinstall_cmds |
19679 |
postuninstall_cmds=$lt_postuninstall_cmds |
postuninstall_cmds=$lt_postuninstall_cmds |
19680 |
|
|
19681 |
|
# Commands used to build a loadable module (assumed same as above if empty) |
19682 |
|
module_cmds=$lt_module_cmds_RC |
19683 |
|
module_expsym_cmds=$lt_module_expsym_cmds_RC |
19684 |
|
|
19685 |
# Commands to strip libraries. |
# Commands to strip libraries. |
19686 |
old_striplib=$lt_old_striplib |
old_striplib=$lt_old_striplib |
19687 |
striplib=$lt_striplib |
striplib=$lt_striplib |
19688 |
|
|
19689 |
|
# Dependencies to place before the objects being linked to create a |
19690 |
|
# shared library. |
19691 |
|
predep_objects=$lt_predep_objects_RC |
19692 |
|
|
19693 |
|
# Dependencies to place after the objects being linked to create a |
19694 |
|
# shared library. |
19695 |
|
postdep_objects=$lt_postdep_objects_RC |
19696 |
|
|
19697 |
|
# Dependencies to place before the objects being linked to create a |
19698 |
|
# shared library. |
19699 |
|
predeps=$lt_predeps_RC |
19700 |
|
|
19701 |
|
# Dependencies to place after the objects being linked to create a |
19702 |
|
# shared library. |
19703 |
|
postdeps=$lt_postdeps_RC |
19704 |
|
|
19705 |
|
# The library search path used internally by the compiler when linking |
19706 |
|
# a shared library. |
19707 |
|
compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
19708 |
|
|
19709 |
# Method to check whether dependent libraries are shared objects. |
# Method to check whether dependent libraries are shared objects. |
19710 |
deplibs_check_method=$lt_deplibs_check_method |
deplibs_check_method=$lt_deplibs_check_method |
19711 |
|
|
19713 |
file_magic_cmd=$lt_file_magic_cmd |
file_magic_cmd=$lt_file_magic_cmd |
19714 |
|
|
19715 |
# Flag that allows shared libraries with undefined symbols to be built. |
# Flag that allows shared libraries with undefined symbols to be built. |
19716 |
allow_undefined_flag=$lt_allow_undefined_flag |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
19717 |
|
|
19718 |
# Flag that forces no undefined symbols. |
# Flag that forces no undefined symbols. |
19719 |
no_undefined_flag=$lt_no_undefined_flag |
no_undefined_flag=$lt_no_undefined_flag_RC |
19720 |
|
|
19721 |
# Commands used to finish a libtool library installation in a directory. |
# Commands used to finish a libtool library installation in a directory. |
19722 |
finish_cmds=$lt_finish_cmds |
finish_cmds=$lt_finish_cmds |
19725 |
finish_eval=$lt_finish_eval |
finish_eval=$lt_finish_eval |
19726 |
|
|
19727 |
# 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. |
19728 |
global_symbol_pipe=$lt_global_symbol_pipe |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19729 |
|
|
19730 |
# Transform the output of nm in a proper C declaration |
# Transform the output of nm in a proper C declaration |
19731 |
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19732 |
|
|
19733 |
# Transform the output of nm in a C name address pair |
# Transform the output of nm in a C name address pair |
19734 |
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 |
19735 |
|
|
19736 |
# This is the shared library runtime path variable. |
# This is the shared library runtime path variable. |
19737 |
runpath_var=$runpath_var |
runpath_var=$runpath_var |
19743 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19744 |
|
|
19745 |
# How to hardcode a shared library path into an executable. |
# How to hardcode a shared library path into an executable. |
19746 |
hardcode_action=$hardcode_action |
hardcode_action=$hardcode_action_RC |
19747 |
|
|
19748 |
# Whether we should hardcode library paths into libraries. |
# Whether we should hardcode library paths into libraries. |
19749 |
hardcode_into_libs=$hardcode_into_libs |
hardcode_into_libs=$hardcode_into_libs |
19750 |
|
|
19751 |
# Flag to hardcode \$libdir into a binary during linking. |
# Flag to hardcode \$libdir into a binary during linking. |
19752 |
# This must work even if \$libdir does not exist. |
# This must work even if \$libdir does not exist. |
19753 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19754 |
|
|
19755 |
|
# If ld is used when linking, flag to hardcode \$libdir into |
19756 |
|
# a binary during linking. This must work even if \$libdir does |
19757 |
|
# not exist. |
19758 |
|
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19759 |
|
|
19760 |
# Whether we need a single -rpath flag with a separated argument. |
# Whether we need a single -rpath flag with a separated argument. |
19761 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19762 |
|
|
19763 |
# 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 |
19764 |
# resulting binary. |
# resulting binary. |
19765 |
hardcode_direct=$hardcode_direct |
hardcode_direct=$hardcode_direct_RC |
19766 |
|
|
19767 |
# 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 |
19768 |
# resulting binary. |
# resulting binary. |
19769 |
hardcode_minus_L=$hardcode_minus_L |
hardcode_minus_L=$hardcode_minus_L_RC |
19770 |
|
|
19771 |
# 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 |
19772 |
# the resulting binary. |
# the resulting binary. |
19773 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19774 |
|
|
19775 |
|
# Set to yes if building a shared library automatically hardcodes DIR into the library |
19776 |
|
# and all subsequent libraries and executables linked against it. |
19777 |
|
hardcode_automatic=$hardcode_automatic_RC |
19778 |
|
|
19779 |
# Variables whose values should be saved in libtool wrapper scripts and |
# Variables whose values should be saved in libtool wrapper scripts and |
19780 |
# restored at relink time. |
# restored at relink time. |
19781 |
variables_saved_for_relink="$variables_saved_for_relink" |
variables_saved_for_relink="$variables_saved_for_relink" |
19782 |
|
|
19783 |
# Whether libtool must link a program against all its dependency libraries. |
# Whether libtool must link a program against all its dependency libraries. |
19784 |
link_all_deplibs=$link_all_deplibs |
link_all_deplibs=$link_all_deplibs_RC |
19785 |
|
|
19786 |
# Compile-time system search path for libraries |
# Compile-time system search path for libraries |
19787 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
19790 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19791 |
|
|
19792 |
# Fix the shell variable \$srcfile for the compiler. |
# Fix the shell variable \$srcfile for the compiler. |
19793 |
fix_srcfile_path="$fix_srcfile_path" |
fix_srcfile_path="$fix_srcfile_path_RC" |
19794 |
|
|
19795 |
# Set to yes if exported symbols are required. |
# Set to yes if exported symbols are required. |
19796 |
always_export_symbols=$always_export_symbols |
always_export_symbols=$always_export_symbols_RC |
19797 |
|
|
19798 |
# The commands to list exported symbols. |
# The commands to list exported symbols. |
19799 |
export_symbols_cmds=$lt_export_symbols_cmds |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
19800 |
|
|
19801 |
# The commands to extract the exported symbol list from a shared archive. |
# The commands to extract the exported symbol list from a shared archive. |
19802 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19803 |
|
|
19804 |
# Symbols that should not be listed in the preloaded symbols. |
# Symbols that should not be listed in the preloaded symbols. |
19805 |
exclude_expsyms=$lt_exclude_expsyms |
exclude_expsyms=$lt_exclude_expsyms_RC |
19806 |
|
|
19807 |
# Symbols that must always be exported. |
# Symbols that must always be exported. |
19808 |
include_expsyms=$lt_include_expsyms |
include_expsyms=$lt_include_expsyms_RC |
19809 |
|
|
19810 |
# ### END LIBTOOL CONFIG |
# ### END LIBTOOL TAG CONFIG: $tagname |
19811 |
|
|
19812 |
__EOF__ |
__EOF__ |
19813 |
|
|
|
case $host_os in |
|
|
aix3*) |
|
|
cat <<\EOF >> "${ofile}T" |
|
19814 |
|
|
19815 |
# AIX sometimes has problems with the GCC collect2 program. For some |
else |
19816 |
# 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 |
19817 |
# vanish in a puff of smoke. |
# `config.status --recheck' to rerun these tests and create the |
19818 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
# libtool script then. |
19819 |
COLLECT_NAMES= |
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19820 |
export COLLECT_NAMES |
if test -f "$ltmain_in"; then |
19821 |
|
test -f Makefile && make "$ltmain" |
19822 |
|
fi |
19823 |
fi |
fi |
|
EOF |
|
|
;; |
|
|
esac |
|
19824 |
|
|
|
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 */ |
|
19825 |
|
|
19826 |
EOF |
ac_ext=c |
19827 |
;; |
ac_cpp='$CPP $CPPFLAGS' |
19828 |
esac |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19829 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19830 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19831 |
|
|
19832 |
# 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) |
|
19833 |
|
|
19834 |
mv -f "${ofile}T" "$ofile" || \ |
;; |
19835 |
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
19836 |
chmod +x "$ofile" |
*) |
19837 |
fi |
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19838 |
|
echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19839 |
|
{ (exit 1); exit 1; }; } |
19840 |
|
;; |
19841 |
|
esac |
19842 |
|
|
19843 |
|
# Append the new tag name to the list of available tags. |
19844 |
|
if test -n "$tagname" ; then |
19845 |
|
available_tags="$available_tags $tagname" |
19846 |
|
fi |
19847 |
|
fi |
19848 |
|
done |
19849 |
|
IFS="$lt_save_ifs" |
19850 |
|
|
19851 |
|
# Now substitute the updated list of available tags. |
19852 |
|
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19853 |
|
mv "${ofile}T" "$ofile" |
19854 |
|
chmod +x "$ofile" |
19855 |
|
else |
19856 |
|
rm -f "${ofile}T" |
19857 |
|
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19858 |
|
echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19859 |
|
{ (exit 1); exit 1; }; } |
19860 |
|
fi |
19861 |
|
fi |
19862 |
|
|
19863 |
|
|
19864 |
|
|
19872 |
|
|
19873 |
|
|
19874 |
|
|
19875 |
|
|
19876 |
|
|
19877 |
|
|
19878 |
|
|
19879 |
|
|
19880 |
|
|
19881 |
|
|
19882 |
|
|
19883 |
|
|
19884 |
|
|
19885 |
|
|
19886 |
|
|
19887 |
|
|
19888 |
|
|
19889 |
|
|
19890 |
|
|
19891 |
|
|
19892 |
|
|
19893 |
# Find a good install program. We prefer a C program (faster), |
# Find a good install program. We prefer a C program (faster), |
19894 |
# 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 |
19895 |
# incompatible versions: |
# incompatible versions: |
19970 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
19971 |
|
|
19972 |
|
|
|
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 |
|
|
else |
|
|
if test -n "$RANLIB"; then |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
else |
|
|
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_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 |
|
|
|
|
|
fi |
|
|
fi |
|
|
RANLIB=$ac_cv_prog_RANLIB |
|
|
if test -n "$RANLIB"; then |
|
|
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
echo "${ECHO_T}$RANLIB" >&6 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
fi |
|
|
if test -z "$ac_cv_prog_RANLIB"; then |
|
|
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. |
|
|
else |
|
|
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_exec_ext in '' $ac_executable_extensions; do |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
break 2 |
|
|
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 |
|
|
else |
|
|
echo "$as_me:$LINENO: result: no" >&5 |
|
|
echo "${ECHO_T}no" >&6 |
|
|
fi |
|
|
|
|
|
RANLIB=$ac_ct_RANLIB |
|
|
else |
|
|
RANLIB="$ac_cv_prog_RANLIB" |
|
|
fi |
|
|
|
|
19973 |
|
|
19974 |
|
|
19975 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
20038 |
|
|
20039 |
|
|
20040 |
missing_dir=`cd $ac_aux_dir && pwd` |
missing_dir=`cd $ac_aux_dir && pwd` |
20041 |
echo "$as_me:$LINENO: checking for working aclocal" >&5 |
|
20042 |
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
20043 |
# Run test in a subshell; some versions of sh will print an error if |
|
20044 |
# an executable is not found, even if stderr is redirected. |
|
20045 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
20046 |
if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
|
20047 |
ACLOCAL=aclocal |
|
20048 |
echo "$as_me:$LINENO: result: found" >&5 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
20049 |
echo "${ECHO_T}found" >&6 |
|
20050 |
else |
|
20051 |
ACLOCAL="$missing_dir/missing aclocal" |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
20052 |
echo "$as_me:$LINENO: result: missing" >&5 |
|
20053 |
echo "${ECHO_T}missing" >&6 |
|
20054 |
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 |
|
20055 |
|
|
20056 |
|
|
20057 |
|
|
20064 |
|
|
20065 |
ROOT_LIBRARY="${ROOTSYS}/lib" |
ROOT_LIBRARY="${ROOTSYS}/lib" |
20066 |
|
|
20067 |
ROOT_LDFLAGS="${ROOT_LIBRARY}/libXrdRootd.so ${ROOT_LIBRARY}/libXrdSec.so \ |
ROOT_LDFLAGS=" \ |
20068 |
${ROOT_LIBRARY}/libCint.so ${ROOT_LIBRARY}/libCore.so \ |
${ROOT_LIBRARY}/libCint.so ${ROOT_LIBRARY}/libCore.so \ |
20069 |
${ROOT_LIBRARY}/libMatrix.so ${ROOT_LIBRARY}/libHist.so \ |
${ROOT_LIBRARY}/libTree.so \ |
20070 |
${ROOT_LIBRARY}/libTree.so ${ROOT_LIBRARY}/libGraf.so \ |
-ldl" |
|
${ROOT_LIBRARY}/libGraf3d.so ${ROOT_LIBRARY}/libGpad.so \ |
|
|
${ROOT_LIBRARY}/libGui.so ${ROOT_LIBRARY}/libMinuit.so \ |
|
|
${ROOT_LIBRARY}/libHistPainter.so ${ROOT_LIBRARY}/libTreePlayer.so \ |
|
|
${ROOT_LIBRARY}/libTreeViewer.so ${ROOT_LIBRARY}/libProof.so \ |
|
|
${ROOT_LIBRARY}/libProofGui.so ${ROOT_LIBRARY}/libPhysics.so \ |
|
|
${ROOT_LIBRARY}/libRint.so ${ROOT_LIBRARY}/libHtml.so \ |
|
|
${ROOT_LIBRARY}/libEG.so ${ROOT_LIBRARY}/libGeom.so \ |
|
|
${ROOT_LIBRARY}/libGeomPainter.so ${ROOT_LIBRARY}/libVMC.so \ |
|
|
${ROOT_LIBRARY}/libFumili.so ${ROOT_LIBRARY}/libMLP.so \ |
|
|
${ROOT_LIBRARY}/libGedOld.so ${ROOT_LIBRARY}/libGed.so \ |
|
|
${ROOT_LIBRARY}/libQuadp.so ${ROOT_LIBRARY}/libGuiBld.so \ |
|
|
${ROOT_LIBRARY}/libGX11.so ${ROOT_LIBRARY}/libGX11TTF.so \ |
|
|
${ROOT_LIBRARY}/libX3d.so ${ROOT_LIBRARY}/libSrvAuth.so \ |
|
|
${ROOT_LIBRARY}/libRGL.so ${ROOT_LIBRARY}/libASImage.so \ |
|
|
${ROOT_LIBRARY}/libThread.so ${ROOT_LIBRARY}/libRXML.so \ |
|
|
${ROOT_LIBRARY}/libNetx.so -ldl" |
|
20071 |
|
|
20072 |
|
|
20073 |
ROOT_INCLUDES="-I${ROOTSYS}/include" |
ROOT_INCLUDES="-I${ROOTSYS}/include" |
20103 |
fi; |
fi; |
20104 |
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
20105 |
|
|
20106 |
|
#------------------------------------------------------------ |
20107 |
|
|
20108 |
|
# Check whether --with-log4cxx or --without-log4cxx was given. |
20109 |
|
if test "${with_log4cxx+set}" = set; then |
20110 |
|
withval="$with_log4cxx" |
20111 |
|
LOG4CXX=$with_log4cxx |
20112 |
|
fi; |
20113 |
|
|
20114 |
|
LOG4CXX_LIBRARY="${LOG4CXX}/lib" |
20115 |
|
LOG4CXX_INCLUDES="-I${LOG4CXX}/include" |
20116 |
|
LOG4CXX_LDFLAGS=" ${LOG4CXX_LIBRARY}/liblog4cxx.so " |
20117 |
|
|
20118 |
|
|
20119 |
|
|
20120 |
|
|
20121 |
|
#------------------------------------------------------------ |
20122 |
|
|
20123 |
|
|
20124 |
|
|
20125 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
20126 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
20127 |
if test "${ac_cv_header_stdc+set}" = set; then |
if test "${ac_cv_header_stdc+set}" = set; then |
20290 |
|
|
20291 |
|
|
20292 |
|
|
20293 |
ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile event/physics/neutronDetector/Makefile event/physics/S4/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile" |
ac_config_files="$ac_config_files Makefile Doxyfile event/Makefile event/mcmd/Makefile event/tmtc/Makefile event/log/Makefile event/arrDump/Makefile event/tabDump/Makefile event/varDump/Makefile event/tsbt/Makefile event/tsbb/Makefile event/endrun/Makefile event/physics/Makefile event/physics/tracker/Makefile event/physics/anticounter/Makefile event/physics/calorimeter/Makefile event/physics/neutronDetector/Makefile event/physics/trigger/Makefile event/physics/tof/Makefile event/physics/S4/Makefile techmodel/Makefile techmodel/forroutines/tracker/Makefile techmodel/forroutines/tracker/readraw/Makefile techmodel/forroutines/anticounter/Makefile techmodel/forroutines/calorimeter/Makefile techmodel/forroutines/tof/Makefile techmodel/forroutines/trigger/Makefile techmodel/forroutines/Makefile techmodel/physics/Makefile" |
20294 |
cat >confcache <<\_ACEOF |
cat >confcache <<\_ACEOF |
20295 |
# This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
20296 |
# tests run on this system so they can be shared between configure |
# tests run on this system so they can be shared between configure |
20382 |
LTLIBOBJS=$ac_ltlibobjs |
LTLIBOBJS=$ac_ltlibobjs |
20383 |
|
|
20384 |
|
|
20385 |
|
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20386 |
|
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
20387 |
|
Usually this means the macro was only invoked conditionally." >&5 |
20388 |
|
echo "$as_me: error: conditional \"AMDEP\" was never defined. |
20389 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
20390 |
|
{ (exit 1); exit 1; }; } |
20391 |
|
fi |
20392 |
|
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
20393 |
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
20394 |
|
Usually this means the macro was only invoked conditionally." >&5 |
20395 |
|
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
20396 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
20397 |
|
{ (exit 1); exit 1; }; } |
20398 |
|
fi |
20399 |
|
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
20400 |
|
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
20401 |
|
Usually this means the macro was only invoked conditionally." >&5 |
20402 |
|
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
20403 |
|
Usually this means the macro was only invoked conditionally." >&2;} |
20404 |
|
{ (exit 1); exit 1; }; } |
20405 |
|
fi |
20406 |
|
|
20407 |
: ${CONFIG_STATUS=./config.status} |
: ${CONFIG_STATUS=./config.status} |
20408 |
ac_clean_files_save=$ac_clean_files |
ac_clean_files_save=$ac_clean_files |
20836 |
# INIT-COMMANDS section. |
# INIT-COMMANDS section. |
20837 |
# |
# |
20838 |
|
|
20839 |
|
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20840 |
|
|
20841 |
_ACEOF |
_ACEOF |
20842 |
|
|
20856 |
"event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;; |
"event/arrDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/arrDump/Makefile" ;; |
20857 |
"event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;; |
"event/tabDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tabDump/Makefile" ;; |
20858 |
"event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;; |
"event/varDump/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/varDump/Makefile" ;; |
20859 |
|
"event/tsbt/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tsbt/Makefile" ;; |
20860 |
|
"event/tsbb/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/tsbb/Makefile" ;; |
20861 |
|
"event/endrun/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/endrun/Makefile" ;; |
20862 |
"event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;; |
"event/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/Makefile" ;; |
20863 |
"event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;; |
"event/physics/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tracker/Makefile" ;; |
20864 |
"event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;; |
"event/physics/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/anticounter/Makefile" ;; |
20865 |
"event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;; |
"event/physics/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/calorimeter/Makefile" ;; |
20866 |
"event/physics/neutronDetector/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/neutronDetector/Makefile" ;; |
"event/physics/neutronDetector/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/neutronDetector/Makefile" ;; |
20867 |
|
"event/physics/trigger/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/trigger/Makefile" ;; |
20868 |
|
"event/physics/tof/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/tof/Makefile" ;; |
20869 |
"event/physics/S4/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/S4/Makefile" ;; |
"event/physics/S4/Makefile" ) CONFIG_FILES="$CONFIG_FILES event/physics/S4/Makefile" ;; |
20870 |
"techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;; |
"techmodel/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/Makefile" ;; |
20871 |
"techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;; |
"techmodel/forroutines/tracker/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/Makefile" ;; |
20872 |
"techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;; |
"techmodel/forroutines/tracker/readraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tracker/readraw/Makefile" ;; |
20873 |
"techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;; |
"techmodel/forroutines/anticounter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/anticounter/Makefile" ;; |
20874 |
"techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;; |
"techmodel/forroutines/calorimeter/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/calorimeter/Makefile" ;; |
20875 |
|
"techmodel/forroutines/tof/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/tof/Makefile" ;; |
20876 |
|
"techmodel/forroutines/trigger/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/trigger/Makefile" ;; |
20877 |
"techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;; |
"techmodel/forroutines/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/forroutines/Makefile" ;; |
20878 |
"techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;; |
"techmodel/physics/Makefile" ) CONFIG_FILES="$CONFIG_FILES techmodel/physics/Makefile" ;; |
20879 |
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20880 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20881 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20882 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20966 |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
20967 |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
20968 |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
20969 |
|
s,@CYGPATH_W@,$CYGPATH_W,;t t |
20970 |
s,@PACKAGE@,$PACKAGE,;t t |
s,@PACKAGE@,$PACKAGE,;t t |
20971 |
s,@VERSION@,$VERSION,;t t |
s,@VERSION@,$VERSION,;t t |
20972 |
s,@ACLOCAL@,$ACLOCAL,;t t |
s,@ACLOCAL@,$ACLOCAL,;t t |
20974 |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
s,@AUTOMAKE@,$AUTOMAKE,;t t |
20975 |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
s,@AUTOHEADER@,$AUTOHEADER,;t t |
20976 |
s,@MAKEINFO@,$MAKEINFO,;t t |
s,@MAKEINFO@,$MAKEINFO,;t t |
20977 |
|
s,@AMTAR@,$AMTAR,;t t |
20978 |
|
s,@install_sh@,$install_sh,;t t |
20979 |
|
s,@STRIP@,$STRIP,;t t |
20980 |
|
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
20981 |
|
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
20982 |
|
s,@AWK@,$AWK,;t t |
20983 |
s,@SET_MAKE@,$SET_MAKE,;t t |
s,@SET_MAKE@,$SET_MAKE,;t t |
20984 |
|
s,@am__leading_dot@,$am__leading_dot,;t t |
20985 |
s,@build@,$build,;t t |
s,@build@,$build,;t t |
20986 |
s,@build_cpu@,$build_cpu,;t t |
s,@build_cpu@,$build_cpu,;t t |
20987 |
s,@build_vendor@,$build_vendor,;t t |
s,@build_vendor@,$build_vendor,;t t |
20997 |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
s,@ac_ct_CC@,$ac_ct_CC,;t t |
20998 |
s,@EXEEXT@,$EXEEXT,;t t |
s,@EXEEXT@,$EXEEXT,;t t |
20999 |
s,@OBJEXT@,$OBJEXT,;t t |
s,@OBJEXT@,$OBJEXT,;t t |
21000 |
|
s,@DEPDIR@,$DEPDIR,;t t |
21001 |
|
s,@am__include@,$am__include,;t t |
21002 |
|
s,@am__quote@,$am__quote,;t t |
21003 |
|
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
21004 |
|
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
21005 |
|
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
21006 |
|
s,@CCDEPMODE@,$CCDEPMODE,;t t |
21007 |
|
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
21008 |
|
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
21009 |
s,@F77@,$F77,;t t |
s,@F77@,$F77,;t t |
21010 |
s,@FFLAGS@,$FFLAGS,;t t |
s,@FFLAGS@,$FFLAGS,;t t |
21011 |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
s,@ac_ct_F77@,$ac_ct_F77,;t t |
21013 |
s,@CXX@,$CXX,;t t |
s,@CXX@,$CXX,;t t |
21014 |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
s,@CXXFLAGS@,$CXXFLAGS,;t t |
21015 |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
21016 |
|
s,@CXXDEPMODE@,$CXXDEPMODE,;t t |
21017 |
|
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
21018 |
|
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t |
21019 |
|
s,@EGREP@,$EGREP,;t t |
21020 |
s,@LN_S@,$LN_S,;t t |
s,@LN_S@,$LN_S,;t t |
21021 |
s,@ECHO@,$ECHO,;t t |
s,@ECHO@,$ECHO,;t t |
21022 |
|
s,@AR@,$AR,;t t |
21023 |
|
s,@ac_ct_AR@,$ac_ct_AR,;t t |
21024 |
s,@RANLIB@,$RANLIB,;t t |
s,@RANLIB@,$RANLIB,;t t |
21025 |
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 |
|
21026 |
s,@CPP@,$CPP,;t t |
s,@CPP@,$CPP,;t t |
21027 |
s,@EGREP@,$EGREP,;t t |
s,@CXXCPP@,$CXXCPP,;t t |
21028 |
s,@LIBTOOL@,$LIBTOOL,;t t |
s,@LIBTOOL@,$LIBTOOL,;t t |
21029 |
s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t |
s,@HAS_DOXYFILE@,$HAS_DOXYFILE,;t t |
21030 |
s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t |
s,@ROOT_INCLUDES@,$ROOT_INCLUDES,;t t |
21031 |
s,@ROOT_LDFLAGS@,$ROOT_LDFLAGS,;t t |
s,@ROOT_LDFLAGS@,$ROOT_LDFLAGS,;t t |
21032 |
s,@ROOTCINT@,$ROOTCINT,;t t |
s,@ROOTCINT@,$ROOTCINT,;t t |
21033 |
|
s,@LOG4CXX_INCLUDES@,$LOG4CXX_INCLUDES,;t t |
21034 |
|
s,@LOG4CXX_LDFLAGS@,$LOG4CXX_LDFLAGS,;t t |
21035 |
|
s,@LOG4CXX_LIBRARY@,$LOG4CXX_LIBRARY,;t t |
21036 |
s,@LIBOBJS@,$LIBOBJS,;t t |
s,@LIBOBJS@,$LIBOBJS,;t t |
21037 |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
21038 |
CEOF |
CEOF |
21494 |
cat $tmp/config.h |
cat $tmp/config.h |
21495 |
rm -f $tmp/config.h |
rm -f $tmp/config.h |
21496 |
fi |
fi |
21497 |
|
# Compute $ac_file's index in $config_headers. |
21498 |
|
_am_stamp_count=1 |
21499 |
|
for _am_header in $config_headers :; do |
21500 |
|
case $_am_header in |
21501 |
|
$ac_file | $ac_file:* ) |
21502 |
|
break ;; |
21503 |
|
* ) |
21504 |
|
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
21505 |
|
esac |
21506 |
|
done |
21507 |
|
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
21508 |
|
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21509 |
|
X$ac_file : 'X\(//\)[^/]' \| \ |
21510 |
|
X$ac_file : 'X\(//\)$' \| \ |
21511 |
|
X$ac_file : 'X\(/\)' \| \ |
21512 |
|
. : '\(.\)' 2>/dev/null || |
21513 |
|
echo X$ac_file | |
21514 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21515 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21516 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21517 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21518 |
|
s/.*/./; q'`/stamp-h$_am_stamp_count |
21519 |
done |
done |
21520 |
_ACEOF |
_ACEOF |
21521 |
cat >>$CONFIG_STATUS <<\_ACEOF |
cat >>$CONFIG_STATUS <<\_ACEOF |
21632 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
21633 |
echo "$as_me: executing $ac_dest commands" >&6;} |
echo "$as_me: executing $ac_dest commands" >&6;} |
21634 |
case $ac_dest in |
case $ac_dest in |
21635 |
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; |
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
21636 |
|
# Strip MF so we end up with the name of the file. |
21637 |
|
mf=`echo "$mf" | sed -e 's/:.*$//'` |
21638 |
|
# Check whether this is an Automake generated Makefile or not. |
21639 |
|
# We used to match only the files named `Makefile.in', but |
21640 |
|
# some people rename them; so instead we look at the file content. |
21641 |
|
# Grep'ing the first line is not enough: some people post-process |
21642 |
|
# each Makefile.in and add a new line on top of each file to say so. |
21643 |
|
# So let's grep whole file. |
21644 |
|
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
21645 |
|
dirpart=`(dirname "$mf") 2>/dev/null || |
21646 |
|
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21647 |
|
X"$mf" : 'X\(//\)[^/]' \| \ |
21648 |
|
X"$mf" : 'X\(//\)$' \| \ |
21649 |
|
X"$mf" : 'X\(/\)' \| \ |
21650 |
|
. : '\(.\)' 2>/dev/null || |
21651 |
|
echo X"$mf" | |
21652 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21653 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21654 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21655 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21656 |
|
s/.*/./; q'` |
21657 |
|
else |
21658 |
|
continue |
21659 |
|
fi |
21660 |
|
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
21661 |
|
# Extract the definition of DEP_FILES from the Makefile without |
21662 |
|
# running `make'. |
21663 |
|
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
21664 |
|
test -z "$DEPDIR" && continue |
21665 |
|
# When using ansi2knr, U may be empty or an underscore; expand it |
21666 |
|
U=`sed -n -e '/^U = / s///p' < "$mf"` |
21667 |
|
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
21668 |
|
# We invoke sed twice because it is the simplest approach to |
21669 |
|
# changing $(DEPDIR) to its actual value in the expansion. |
21670 |
|
for file in `sed -n -e ' |
21671 |
|
/^DEP_FILES = .*\\\\$/ { |
21672 |
|
s/^DEP_FILES = // |
21673 |
|
:loop |
21674 |
|
s/\\\\$// |
21675 |
|
p |
21676 |
|
n |
21677 |
|
/\\\\$/ b loop |
21678 |
|
p |
21679 |
|
} |
21680 |
|
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
21681 |
|
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21682 |
|
# Make sure the directory exists. |
21683 |
|
test -f "$dirpart/$file" && continue |
21684 |
|
fdir=`(dirname "$file") 2>/dev/null || |
21685 |
|
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21686 |
|
X"$file" : 'X\(//\)[^/]' \| \ |
21687 |
|
X"$file" : 'X\(//\)$' \| \ |
21688 |
|
X"$file" : 'X\(/\)' \| \ |
21689 |
|
. : '\(.\)' 2>/dev/null || |
21690 |
|
echo X"$file" | |
21691 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21692 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21693 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21694 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21695 |
|
s/.*/./; q'` |
21696 |
|
{ if $as_mkdir_p; then |
21697 |
|
mkdir -p $dirpart/$fdir |
21698 |
|
else |
21699 |
|
as_dir=$dirpart/$fdir |
21700 |
|
as_dirs= |
21701 |
|
while test ! -d "$as_dir"; do |
21702 |
|
as_dirs="$as_dir $as_dirs" |
21703 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
21704 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21705 |
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
21706 |
|
X"$as_dir" : 'X\(//\)$' \| \ |
21707 |
|
X"$as_dir" : 'X\(/\)' \| \ |
21708 |
|
. : '\(.\)' 2>/dev/null || |
21709 |
|
echo X"$as_dir" | |
21710 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
21711 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
21712 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
21713 |
|
/^X\(\/\).*/{ s//\1/; q; } |
21714 |
|
s/.*/./; q'` |
21715 |
|
done |
21716 |
|
test ! -n "$as_dirs" || mkdir $as_dirs |
21717 |
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
21718 |
|
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
21719 |
|
{ (exit 1); exit 1; }; }; } |
21720 |
|
|
21721 |
|
# echo "creating $dirpart/$file" |
21722 |
|
echo '# dummy' > "$dirpart/$file" |
21723 |
|
done |
21724 |
|
done |
21725 |
|
;; |
21726 |
esac |
esac |
21727 |
done |
done |
21728 |
_ACEOF |
_ACEOF |