[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Correct docs on obsolete constructs
From: |
Eric Blake |
Subject: |
[PATCH] Correct docs on obsolete constructs |
Date: |
Tue, 13 Jan 2004 06:26:42 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) |
This threw me in the manual, section 15.4. When I followed it literally to
get rid of the -Wall warning in my configure.ac, the method body was being
silently discarded because the docs pointed me to the wrong replacement
macro. For that matter, is it worth trying to make AC_LANG_SOURCE warn if
it receives a non-empty second argument, since it will discard it?
2004-01-13 Eric Blake <address@hidden>
* doc/autoconf.texi (Obsolete Macros): In AC_TRY_COMPILE and
AC_TRY_LINK, s/AC_LANG_SOURCE/AC_LANG_PROGRAM/.
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.776
diff -u -p -r1.776 autoconf.texi
--- doc/autoconf.texi 4 Nov 2003 21:18:58 -0000 1.776
+++ doc/autoconf.texi 13 Jan 2004 13:19:41 -0000
@@ -13769,7 +13769,7 @@ issue.
@defmac AC_TRY_COMPILE (@var{includes}, @var{function-body},
@ovar{action-if-found}, @ovar{action-if-not-found})
@acindex{TRY_COMPILE}
-Same as @samp{AC_COMPILE_IFELSE([AC_LANG_SOURCE(address@hidden,
+Same as @samp{AC_COMPILE_IFELSE([AC_LANG_PROGRAM(address@hidden,
address@hidden)], address@hidden,
address@hidden)} (@pxref{Running the Compiler}).
@@ -13793,7 +13793,7 @@ This macro double quotes the @var{input}
@defmac AC_TRY_LINK (@var{includes}, @var{function-body},
@ovar{action-if-found}, @ovar{action-if-not-found})
@acindex{TRY_LINK}
-Same as @samp{AC_LINK_IFELSE([AC_LANG_SOURCE(address@hidden,
+Same as @samp{AC_LINK_IFELSE([AC_LANG_PROGRAM(address@hidden,
address@hidden)], address@hidden,
address@hidden)} (@pxref{Running the Compiler}).
--
Someday, I might put a cute statement here.
Eric Blake address@hidden
- [PATCH] Correct docs on obsolete constructs,
Eric Blake <=