[PATCH] configure.ac: properly evaluate ac_test_CFLAGS
Since autoconf 2.69 and https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=76754e04fce5f6a770... ac_test_CFLAGS is set to ${CFLAGS+y} instead of ${CFLAGS+set}. Just test that ac_test_CFLAGS is not empty, to support both cases. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 64181d29..b4b3fcfb 100644 --- a/configure.ac +++ b/configure.ac @@ -114,7 +114,7 @@ AC_SEARCH_LIBS([clock_gettime], [rt posix4], AC_CANONICAL_HOST # Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC -if test "$ac_test_CFLAGS" != set ; then +if ! test "$ac_test_CFLAGS" ; then bird_cflags_default=yes fi -- 2.33.0
On Tue, Aug 13, 2024 at 11:40:42AM +0200, Fabrice Fontaine wrote:
Since autoconf 2.69 and https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=76754e04fce5f6a770... ac_test_CFLAGS is set to ${CFLAGS+y} instead of ${CFLAGS+set}.
Just test that ac_test_CFLAGS is not empty, to support both cases.
Thanks, merged: https://gitlab.nic.cz/labs/bird/-/commit/404e82616d950cbf45b16adb11ce3a52e28... -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) "To err is human -- to blame it on a computer is even more so."
participants (2)
-
Fabrice Fontaine -
Ondrej Zajicek