From: Paul Brossier Date: Sun, 12 Mar 2017 14:39:17 +0000 (+0100) Subject: wscript: check for pthread.h X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=031730b88698899173bc766e8e2553359fa9460e;p=pd-aubio.git wscript: check for pthread.h --- diff --git a/wscript b/wscript index e1afe5f..eaed00d 100644 --- a/wscript +++ b/wscript @@ -45,6 +45,11 @@ def configure(ctx): # check for puredata header ctx.check(header_name='m_pd.h') + ctx.check(header_name='pthread.h', mandatory = False) + needs_pthread = ctx.get_define("HAVE_PTHREAD") is not None + if needs_pthread: + ctx.check_cc(lib="pthread", uselib_store="PTHREAD", mandatory=needs_pthread) + # required dependencies ctx.check_cfg(package = 'aubio', atleast_version = '0.4.0', args = '--cflags --libs')