From 031730b88698899173bc766e8e2553359fa9460e Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 12 Mar 2017 15:39:17 +0100 Subject: [PATCH] wscript: check for pthread.h --- wscript | 5 +++++ 1 file changed, 5 insertions(+) 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') -- 2.11.0