[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_DEFINE_UNQUOTED and autoheader

From: Ben Pfaff
Subject: Re: AC_DEFINE_UNQUOTED and autoheader
Date: Sat, 27 May 2006 09:10:09 -0700
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

Ralf Wildenhues <address@hidden> writes:

>>     According to the autoconf manual, AC_DEFINE_UNQUOTED is able
>>     to handle variables as its first argument.  Yet it appears it
>>     cannot.  Perhaps autoheader must extrapolate what possible
>>     values will be defined, and it just fails to do that here.
>>     Regardless, the result is that the value does not get
>>     defined, causing (in this case) an obscure bug.
>> I believe that this is a documentation bug.
> Yes, but not in the way that your change suggests: autoheader cannot do
> its job with an AC_DEFINE_UNQUOTED which gets a non-literal first
> argument.  But the rest of the machinery very well can, and it has
> explicit code in place to cope with non-literal first argument.  We even
> have an example in the manual that does this.
> You simply need to provide a template elsewhere.

Thanks for the analysis and the suggested update to the manual.
"J'avais trouv'e ma religion :
 rien ne me parut plus important qu'un livre.
 La biblioth`eque, j'y voyais un temple."
--Jean-Paul Sartre

reply via email to

[Prev in Thread] Current Thread [Next in Thread]