Re: gl_CACHE_VAL_SILENT won't work correctly with upcoming autoconf 2.70

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

 



Hi Bruno,

On 13/03/2020, Bruno Haible <bruno@xxxxxxxxx> wrote:
> The underlying problem in Autoconf is the following: There is a macro
> AC_CACHE_CHECK that does messaging, and a macro AC_CACHE_VAL whose
> main purpose is to make a cache lookup, not messaging, but it
> nevertheless outputs '(cached)' strings occasionally.
>
> Please fix this correctly
[...]
>   - or by introducing a macro that is like AC_CACHE_VAL but produces
>     no spurious output.

Such a macro already exists in Autoconf.  If you do not need the
messaging from AC_CACHE_VAL you can simply use AS_VAR_SET_IF.

For example:

  AS_VAR_SET_IF([my_cv_no_printing], [my_cv_no_printing=hello])

You could also just write a normal shell if statement.

Cheers,
  Nick




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux