diff options
author | Petri Lehtinen <petri@digip.org> | 2014-02-12 08:44:29 +0200 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2014-02-12 08:54:26 +0200 |
commit | 50a811ca076f9466f337b21e160fc79b06b07c4a (patch) | |
tree | a988256c188e01a8bfa3d4ea050fa34edd2d98d4 /configure.ac | |
parent | 42016a35c8907e477be73b0b5d06cc09af231ee4 (diff) | |
download | jansson-50a811ca076f9466f337b21e160fc79b06b07c4a.zip jansson-50a811ca076f9466f337b21e160fc79b06b07c4a.tar.gz jansson-50a811ca076f9466f337b21e160fc79b06b07c4a.tar.bz2 |
Fix feature checks to use correct __ATOMIC flags
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index e871f5f..68d6fd6 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,7 @@ AC_MSG_RESULT([$have_sync_builtins]) AC_MSG_CHECKING([for gcc __atomic builtins]) have_atomic_builtins=no AC_TRY_LINK( - [], [char l; unsigned long v; __atomic_test_and_set(&l, __ATOMIC_RELAXED); __atomic_store_n(&v, 1, __ATOMIC_ACQ_REL); __atomic_load_n(&v, __ATOMIC_ACQUIRE);], + [], [char l; unsigned long v; __atomic_test_and_set(&l, __ATOMIC_RELAXED); __atomic_store_n(&v, 1, __ATOMIC_RELEASE); __atomic_load_n(&v, __ATOMIC_ACQUIRE);], [have_atomic_builtins=yes], ) if test "x$have_atomic_builtins" = "xyes"; then |