Ralf Wildenhues <[EMAIL PROTECTED]> 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
