summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2016-12-27 21:54:55 -0300
committerJames Almer <jamrial@gmail.com>2016-12-30 00:01:38 -0300
commit6993bb4eb6c358c390f674a10f8a8ca69d9ee0fe (patch)
tree9f8b51b6acdd83c63ecaf3cd55b08af550d782d2 /configure
parentffc3337e0b84ba83fb78382e89a24bb92733bb0d (diff)
configure: make the check for stdatomic.h stricter
Old ICC verions don't advertise having a full C11 implementation but may nonetheless include a feature-incomplete stdatomic.h header. Fixes ticket #6049 Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index d723b8e2a6..56a0b657a9 100755
--- a/configure
+++ b/configure
@@ -5623,7 +5623,7 @@ check_header asm/types.h
# it seems there are versions of clang in some distros that try to use the
# gcc headers, which explodes for stdatomic
# so we also check that atomics actually work here
-check_builtin stdatomic_h stdatomic.h "atomic_int foo; atomic_store(&foo, 0)"
+check_builtin stdatomic_h stdatomic.h "atomic_int foo, bar = ATOMIC_VAR_INIT(-1); atomic_store(&foo, 0)"
check_lib2 "windows.h shellapi.h" CommandLineToArgvW -lshell32
check_lib2 "windows.h wincrypt.h" CryptGenRandom -ladvapi32