diff options
| author | Ben Gamari <ben@well-typed.com> | 2019-11-21 15:29:51 -0500 |
|---|---|---|
| committer | Ben Gamari <ben@well-typed.com> | 2019-11-23 09:51:40 -0500 |
| commit | 2c66f364a761b7d0cfe766953aeb5d1f5921950d (patch) | |
| tree | 9f10b3ee85cb069d179338f5bb6b49fa40807323 | |
| parent | d4d10501c6ec995711d626eead58b84bf413d0b3 (diff) | |
| download | haskell-wip/T17505.tar.gz | |
configure: Fix HAVE_C11_ATOMICS macrowip/T17505
Previously we were using AC_DEFINE instead of
AC_DEFINE_UNQUOTED, resulted in the variable not being
interpolated.
Fixes #17505.
| -rw-r--r-- | configure.ac | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
