From: Paul Eggert Date: Wed, 11 Sep 2002 19:03:59 +0000 (+0000) Subject: (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but X-Git-Tag: AUTOCONF-2.54~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a223ff645df06f8ec5145cf85cb0f3a09fa46d2c;p=thirdparty%2Fautoconf.git (Defining Symbols): Explain that AC_DEFINE(var) defaults to 1, but AC_DEFINE(var,,description) does not; and the AC_DEFINE(var) case is obsolescent. --- diff --git a/doc/autoconf.texi b/doc/autoconf.texi index daf861679..eefc1994c 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -6087,8 +6087,7 @@ output. @defmac AC_DEFINE (@var{variable}, @ovar{value}, @ovar{description}) @acindex DEFINE -Define C preprocessor variable @var{variable}. If @var{value} is given, -set @var{variable} to that value (verbatim), otherwise set it to 1. +Define the C preprocessor variable @var{variable} to @var{value} (verbatim). @var{value} should not contain literal newlines, and if you are not using @code{AC_CONFIG_HEADERS} it should not contain any @samp{#} characters, as @command{make} tends to eat them. To use a shell variable @@ -6103,6 +6102,12 @@ The following example defines the C preprocessor variable @example AC_DEFINE(EQUATION, "$a > $b") @end example + +If neither @var{value} nor @var{description} are given, then +@var{value} defaults to 1 instead of to the empty string. This is for +backwards compatiblity with older versions of Autoconf, but this usage +is obsolescent and may be withdrawn in future versions of Autoconf. + @end defmac @defmac AC_DEFINE_UNQUOTED (@var{variable}, @ovar{value}, @ovar{description})