]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 15 Sep 2004 01:39:18 +0000 (01:39 +0000)
committerGary V. Vaughan <gary@gnu.org>
Wed, 15 Sep 2004 01:39:18 +0000 (01:39 +0000)
AC_LINK_IFELSE to get rid of `autoconf -Wobsolete' warning.
* m4/ltdl.m4 (LT_LIB_DLLOAD): Ditto.

ChangeLog
m4/libtool.m4
m4/ltdl.m4

index 200c8d54384ff78a98189e22b082fb229d031f9c..0aa8f0b42392c9de5de894b07419440229b50347 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-09-15  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+       * m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with
+       AC_LINK_IFELSE to get rid of `autoconf -Wobsolete' warning.
+       * m4/ltdl.m4 (LT_LIB_DLLOAD): Ditto.
+
 2004-09-15  Gary V. Vaughan  <gary@gnu.org>
 
        * config/ltmain.in (func_quote_for_eval): Set a return value to
index 217ad9f6b80dc64f293e35193f91ff4bab3eab45..c5820bd46316f43df8453f82f7537eab10c3df66 100644 (file)
@@ -943,7 +943,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   CFLAGS="$CFLAGS -belf"
   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
     [AC_LANG_PUSH(C)
-     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
      AC_LANG_POP])
   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
index 3d50d76a6d3f9e3c536690593ad77d30d6501dc9..d28b12d3f402ed185e8577f7d549c9e7369852e4 100644 (file)
@@ -385,10 +385,10 @@ AC_CHECK_LIB([dl], [dlopen],
                   [Define if you have the libdl library or equivalent.])
        LIBADD_DLOPEN="-ldl" libltdl_cv_lib_dl_dlopen="yes"
        LT_DLLOADERS="$LT_DLLOADERS dlopen.la"],
-    [AC_TRY_LINK([#if HAVE_DLFCN_H
+    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
 #  include <dlfcn.h>
 #endif
-    ], [dlopen(0, 0);],
+    ]], [[dlopen(0, 0);]])],
            [AC_DEFINE([HAVE_LIBDL], [1],
                       [Define if you have the libdl library or equivalent.])
            libltdl_cv_func_dlopen="yes"