[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH HEAD]: newer autoconf macros in Libtool
From: |
Ralf Wildenhues |
Subject: |
[PATCH HEAD]: newer autoconf macros in Libtool |
Date: |
Tue, 14 Sep 2004 19:37:10 +0200 |
User-agent: |
Mutt/1.4.1i |
This patch removes two more warnings from `autoconf -Wobsolete' when
used on Libtool CVS HEAD. The remaining two (PUSH_LANG) need further
Automake support for Java.
Regards,
Ralf
* 2004-09-14 Ralf Wildenhues <address@hidden>
* m4/libtool.m4 (_LT_ENABLE_LOCK), m4/ltdl.m4 (LT_LIB_DLLOAD):
Replace AC_TRY_LINK with AC_LINK_IFELSE to get rid of `autoconf
-Wobsolete' warnings.
Index: m4/libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v
retrieving revision 1.99
diff -u -r1.99 libtool.m4
--- m4/libtool.m4 5 Sep 2004 17:35:16 -0000 1.99
+++ m4/libtool.m4 8 Sep 2004 15:06:24 -0000
@@ -943,7 +943,7 @@
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: m4/ltdl.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/m4/ltdl.m4,v
retrieving revision 1.19
diff -u -r1.19 ltdl.m4
--- m4/ltdl.m4 5 Sep 2004 21:52:45 -0000 1.19
+++ m4/ltdl.m4 8 Sep 2004 15:06:24 -0000
@@ -385,10 +385,10 @@
[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"
- [PATCH HEAD]: newer autoconf macros in Libtool,
Ralf Wildenhues <=