]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_CHECK_LIBM): Search for a real symbol in
authorRobert Boehne <rboehne@gnu.org>
Thu, 6 Feb 2003 04:51:20 +0000 (04:51 +0000)
committerRobert Boehne <rboehne@gnu.org>
Thu, 6 Feb 2003 04:51:20 +0000 (04:51 +0000)
the math library rather than 'main', it causes problems for
C++ compilers with certain Auto* tools.
(AC_LIBLTDL_INSTALLABLE): ditto.

ChangeLog
libtool.m4

index 1d6ce74a93b9f093c134e1b6878cca789f0423bc..4015d99e51319f79c49dd9c11240d204e47b83fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-02-05  Robert Boehne  <rboehne@gnu.org>
+
+       * libtool.m4 (AC_CHECK_LIBM): Search for a real symbol in
+       the math library rather than 'main', it causes problems for
+       C++ compilers with certain Auto* tools.
+       (AC_LIBLTDL_INSTALLABLE): ditto.
+
 2003-02-05  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
 
        * libtool.m4 (_LT_AC_LANG_CXX_CONFIG)
index 632e35fc4f0afd613396162b87aa21fa69cc3f20..5012b3e0efc0f6accf30f0b944041f050e54fe80 100644 (file)
@@ -2246,10 +2246,10 @@ case $host in
   ;;
 *-ncr-sysv4.3*)
   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
-  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
+  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
   ;;
 *)
-  AC_CHECK_LIB(m, main, LIBM="-lm")
+  AC_CHECK_LIB(m, cos, LIBM="-lm")
   ;;
 esac
 ])# AC_CHECK_LIBM
@@ -2294,7 +2294,7 @@ AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
-  AC_CHECK_LIB(ltdl, main,
+  AC_CHECK_LIB(ltdl, lt_dlinit,
   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
   [if test x"$enable_ltdl_install" = xno; then
      AC_MSG_WARN([libltdl not installed, but installation disabled])