[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gl_CACHE_VAL_SILENT won't work correctly with upcoming autoconf 2.70
From: |
Nick Bowler |
Subject: |
Re: gl_CACHE_VAL_SILENT won't work correctly with upcoming autoconf 2.70 |
Date: |
Fri, 13 Mar 2020 18:04:23 -0400 |
Hi Bruno,
On 13/03/2020, Bruno Haible <address@hidden> 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