aboutsummaryrefslogtreecommitdiffstats
path: root/core.lv2/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-27 06:06:42 +0000
committerDavid Robillard <d@drobilla.net>2011-03-27 06:06:42 +0000
commitfcd10838f29aba961c8461e1c235f1c7508c373a (patch)
treec681689d2d5762c8bbbc968a369718f2622648f7 /core.lv2/wscript
parent81f7c65c0a300131d2643359aab3943add8b5c77 (diff)
downloadlv2-fcd10838f29aba961c8461e1c235f1c7508c373a.tar.xz
Build lv2config on systems without wordexp.
Diffstat (limited to 'core.lv2/wscript')
-rw-r--r--core.lv2/wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/core.lv2/wscript b/core.lv2/wscript
index 2680664..95a518c 100644
--- a/core.lv2/wscript
+++ b/core.lv2/wscript
@@ -57,8 +57,17 @@ def configure(conf):
autowaf.define(conf, 'LV2CORE_DEFAULT_LV2_PATH', Options.options.default_lv2_path)
+ conf.check(function_name='wordexp',
+ header_name='wordexp.h',
+ define_name='HAVE_WORDEXP',
+ mandatory=False)
+
conf.write_config_header('lv2-config.h', remove=False)
+ autowaf.display_msg(conf, "Path expansion via wordexp",
+ conf.is_defined('HAVE_WORDEXP'))
+ print('')
+
def build(bld):
# Header "library"
obj = bld(export_includes = ['.'],