autoconf
[Top][All Lists]
Advanced

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

Re: Description not expanded in a call to AC_DEFINE


From: Nick Bowler
Subject: Re: Description not expanded in a call to AC_DEFINE
Date: Tue, 31 Aug 2021 13:28:01 -0400

Hi Sébastien,

On 2021-08-31, Sébastien Hinderer <Sebastien.Hinderer@inria.fr> wrote:
[...]
> As the next step, I wanted to add a description as the third argument,
> hoping to find this description in the generated header file as
> documented, but that does not work. I did cleanupu the project to make
> sure the ancient generated header is deleted, then I did run autoconf
> and configure again, but the produced header is exactly as if I didn't
> add a third argument to my macro.
>
> The macro call looks like this:
>
> AC_DEFINE([PKG_VERSION_MAJOR], [PKG__VERSION_MAJOR],
>   [The major number of the current PKG version])

The third argument to AC_DEFINE only has any effect when autoheader
is used to generate config.h.in.

So if you just "run autoconf and configure again" that won't
be sufficient to do anything, you also need to run autoheader
to regenerate config.h.in with the new descriptions.

Cheers,
  Nick



reply via email to

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