summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2013-12-30 16:30:30 +0100
committerwm4 <wm4@nowhere>2014-01-01 20:57:06 +0100
commit773db053aabfddb72134a363ecb31c1dac0b8c75 (patch)
treeec2e0439fcc73ebbb22d6f1d81bc31565b8e8ef1 /wscript
parenta8c09d003f3a9d6e00c03fbfa19e0271fcb05d88 (diff)
downloadmpv-773db053aabfddb72134a363ecb31c1dac0b8c75.tar.bz2
mpv-773db053aabfddb72134a363ecb31c1dac0b8c75.tar.xz
build: check for libatomic and __atomic operations
Add check in old-configure as well. Reformat the check to use a maximum of 80 columns in the wscript. Signed-off-by: Stefano Pigozzi <stefano.pigozzi@gmail.com>
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/wscript b/wscript
index 0e23e57560..7a6ee4fb02 100644
--- a/wscript
+++ b/wscript
@@ -99,6 +99,13 @@ main_dependencies = [
'req': True,
'fmsg': 'Unable to find pthreads support.'
}, {
+ 'name': 'atomic_builtins',
+ 'desc': 'compiler support for __atomic built-ins',
+ 'func': check_libs(['atomic'],
+ check_statement('stdint.h',
+ 'int64_t test = 0;'
+ 'test = __atomic_add_fetch(&test, 1, __ATOMIC_SEQ_CST)'))
+ }, {
'name': 'librt',
'desc': 'linking with -lrt',
'deps': [ 'pthreads' ],