autoconf
[Top][All Lists]
Advanced

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

Re: AC_DEFINE* with 2 args discouraged?


From: Ralf Wildenhues
Subject: Re: AC_DEFINE* with 2 args discouraged?
Date: Mon, 1 Dec 2003 11:36:03 +0100
User-agent: Mutt/1.4.1i

* Guido Draheim wrote on Mon, Dec 01, 2003 at 09:25:39AM CET:
> Ralf Wildenhues wrote:
*snip*
> >Now current CVS autoheader (2.59a) gives me
> >|autoheader: warning: missing template: _LIBFOO_FEATURE_BAZ
> >|autoheader: Use AC_DEFINE([_LIBFOO_FEATURE_BAZ], [], [Description])
> >
> >Is this deprecated usage?  How is my goal best accomplished?
> >Is having duplicate sets of defines in config.h/libfoo_conf.h the
> >solution of choice?  Then I'd suggest the description in
> >info '(autoconf.info)Defining Symbols' to be more precise (where
> >only the usage with one parameter is explicitly discouraged).
> 
> You do know about AX_PREFIX_CONFIG_H, do you?

No, I didn't before.  Looks like a good idea, except for the minor
cosmetic issue of having numerous exposed macros which do not belong
to the library interface.  Thanks for the suggestion, though, this
looks like the easiest and least error-prone solution.

BTW, current CVS autotools will break the example given in
ax_prefix_config_h.m4 unless obsolete AM_CONFIG_HEADER is replaced
with AC_CONFIG_HEADERS.

Still there is the Autoconf documentation issue with AC_DEFINE*,
namely that I would like to know if usage with 2 args is deprecated.

Regards,
Ralf




reply via email to

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