summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-11-28 15:29:56 -0800
committerJames Almer <jamrial@gmail.com>2016-12-02 16:25:18 -0300
commit41e891e89ed7254293f1613177e73e9d2699bf0d (patch)
tree9873f95e846cf4e70189891d2b8e06408d4b787d /configure
parent74b5f1086237dc4e16e64768f4f4eacac22db2ee (diff)
Add a compat dummy stdatomic.h used when threading is disabled
Adapted from the code by RĂ©mi Denis-Courmont from VLC This merges libav commit eb34d40354e2474517c9b9bd787e0dadc89c2a81. Signed-off-by: Wan-Teh Chang <wtc@google.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 93df74503b..ee473b995e 100755
--- a/configure
+++ b/configure
@@ -6391,6 +6391,9 @@ if disabled stdatomic_h; then
elif enabled pthreads; then
add_compat atomics/pthread/stdatomic.o
add_cppflags '-I\$(SRC_PATH)/compat/atomics/pthread'
+ else
+ enabled threads && die "Threading is enabled, but no atomics are available"
+ add_cppflags '-I\$(SRC_PATH)/compat/atomics/dummy'
fi
fi