summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/wscript b/wscript
index 23d326f..2b9585a 100644
--- a/wscript
+++ b/wscript
@@ -22,6 +22,12 @@ def configure(conf):
autowaf.check_pkg(conf, 'lv2', atleast_version='1.0.0', uselib_store='LV2')
autowaf.check_pkg(conf, 'naub-0', atleast_version='0.0.0', uselib_store='NAUB')
+ # Check for mlock
+ conf.check(function_name='mlock',
+ header_name='sys/mman.h',
+ define_name='HAVE_MLOCK',
+ mandatory=False)
+
# Set env.pluginlib_PATTERN
pat = conf.env.cshlib_PATTERN
if pat.startswith('lib'):