summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-01 19:50:38 -0400
committerDavid Robillard <d@drobilla.net>2016-10-01 19:50:38 -0400
commitc73c877f8bd09e0d5a6663ea5ba32a54465f5376 (patch)
tree185f2da0e58e1c2ab75c4d9db851cf6fc7ca90ee /wscript
parent604015aa65de7d84f177b53e578a8c9852d7893f (diff)
downloadingen-c73c877f8bd09e0d5a6663ea5ba32a54465f5376.tar.gz
ingen-c73c877f8bd09e0d5a6663ea5ba32a54465f5376.tar.bz2
ingen-c73c877f8bd09e0d5a6663ea5ba32a54465f5376.zip
Fix OSX build
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/wscript b/wscript
index 86d4548b..daf859e4 100644
--- a/wscript
+++ b/wscript
@@ -60,6 +60,15 @@ def configure(conf):
conf.check_cxx(header_name='boost/shared_ptr.hpp')
conf.check_cxx(header_name='boost/utility.hpp')
conf.check_cxx(header_name='boost/weak_ptr.hpp')
+ conf.check_cxx(msg='Checking for thread_local keyword',
+ mandatory=False,
+ fragment='thread_local int i = 0; int main() {}',
+ define_name='INGEN_HAVE_THREAD_LOCAL')
+ if not conf.is_defined('INGEN_HAVE_THREAD_LOCAL'):
+ conf.check_cxx(msg='Checking for __thread keyword',
+ mandatory=False,
+ fragment='__thread int i = 0; int main() {}',
+ define_name='INGEN_HAVE_THREAD_BUILTIN')
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2',
atleast_version='1.14.0', mandatory=True)