From e19060d89f219fda16d3bd86e2b3db472f884c98 Mon Sep 17 00:00:00 2001 From: Alessandro Ghedini Date: Mon, 30 Dec 2013 16:30:30 +0100 Subject: 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 --- wscript | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 0e23e57560..7a6ee4fb02 100644 --- a/wscript +++ b/wscript @@ -98,6 +98,13 @@ main_dependencies = [ 'func': check_pthreads, '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', -- cgit v1.2.3