diff options
author | David Robillard <d@drobilla.net> | 2011-09-20 19:43:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-09-20 19:43:18 +0000 |
commit | 06b045b28394e7d0219f626fd1a5b21236a8e303 (patch) | |
tree | 722135eac7c3f462bfe82d1e24448d05afea5baf /wscript | |
parent | f15595dd3245f911edc36932de298fc51f2ea02f (diff) | |
download | zix-06b045b28394e7d0219f626fd1a5b21236a8e303.tar.gz zix-06b045b28394e7d0219f626fd1a5b21236a8e303.tar.bz2 zix-06b045b28394e7d0219f626fd1a5b21236a8e303.zip |
Const correctness.
git-svn-id: http://svn.drobilla.net/zix/trunk@36 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -41,24 +41,25 @@ def configure(conf): conf.load('compiler_c') conf.env.append_value('CFLAGS', '-std=c99') - autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', - atleast_version='2.0.0', mandatory=False) - - # Check for dladdr + # Check for mlock conf.check(function_name='mlock', header_name='sys/mman.h', define_name='HAVE_MLOCK', mandatory=False) + conf.env['BUILD_BENCH'] = Options.options.build_bench conf.env['BUILD_TESTS'] = Options.options.build_tests - if conf.is_defined('HAVE_GLIB'): - conf.env['BUILD_BENCH'] = Options.options.build_bench + if Options.options.build_bench: + autowaf.check_pkg(conf, 'glib-2.0', uselib_store='GLIB', + atleast_version='2.0.0', mandatory=False) + if not conf.is_defined('HAVE_GLIB'): + conf.fatal("Glib is required to build benchmarks") autowaf.define(conf, 'ZIX_VERSION', ZIX_VERSION) conf.write_config_header('zix-config.h', remove=False) autowaf.display_msg(conf, "Unit tests", str(conf.env['BUILD_TESTS'])) - autowaf.display_msg(conf, "Benchmarks", str(conf.env['BUILD_BENCHx'])) + autowaf.display_msg(conf, "Benchmarks", str(conf.env['BUILD_BENCH'])) print('') tests = [ |