From 2c66f364a761b7d0cfe766953aeb5d1f5921950d Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 21 Nov 2019 15:29:51 -0500 Subject: configure: Fix HAVE_C11_ATOMICS macro Previously we were using AC_DEFINE instead of AC_DEFINE_UNQUOTED, resulted in the variable not being interpolated. Fixes #17505. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5e6f7d8723..8d5900cc33 100644 --- a/configure.ac +++ b/configure.ac @@ -715,7 +715,9 @@ FP_GCC_SUPPORTS_NO_PIE dnl ** Used to determine how to compile ghc-prim's atomics.c, used by dnl unregisterised, Sparc, and PPC backends. FP_GCC_SUPPORTS__ATOMICS -AC_DEFINE([HAVE_C11_ATOMICS], [$CONF_GCC_SUPPORTS__ATOMICS], [Does GCC support __atomic primitives?]) +if test $CONF_GCC_SUPPORTS__ATOMICS = YES ; then + AC_DEFINE([HAVE_C11_ATOMICS], [1], [Does GCC support __atomic primitives?]) +fi FP_GCC_EXTRA_FLAGS -- cgit v1.2.1