From: Paul Eggert Date: Tue, 26 Sep 2006 20:41:13 +0000 (+0000) Subject: (Generic Declarations): Clarify that AC_CHECK_DECL X-Git-Tag: AUTOCONF-2.60b~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=922d35a7026f5fa511ea8fd51a5778f19675552a;p=thirdparty%2Fautoconf.git (Generic Declarations): Clarify that AC_CHECK_DECL can apply to constants too, and that it checks for macro defns. --- diff --git a/doc/autoconf.texi b/doc/autoconf.texi index b155edff6..45bf8c533 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -5645,14 +5645,15 @@ test macros. @defmac AC_CHECK_DECL (@var{symbol}, @ovar{action-if-found}, @ovar{action-if-not-found}, @dvar{includes, default-includes}) @acindex{CHECK_DECL} -If @var{symbol} (a function or a variable) is not declared in +If @var{symbol} (a function, variable, or constant) is not declared in @var{includes} and a declaration is needed, run the shell commands @var{action-if-not-found}, otherwise @var{action-if-found}. If no @var{includes} are specified, the default includes are used (@pxref{Default Includes}). -This macro actually tests whether it is valid to use @var{symbol} as an -r-value, not if it is really declared, because it is much safer to avoid +This macro actually tests whether @var{symbol} is defined as a macro or +can be used as an r-value, not whether it is really declared, because it +is much safer to avoid introducing extra declarations when they are not needed. @end defmac