From 3de634e5e6fc902017bd9878621eb1eaa847b6af Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Aug 2012 04:17:03 +0000 Subject: Check for mlock and use it if present. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/matriseq@4643 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) 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'): -- cgit v1.2.1