From 63811d5fedd978f2c3c1b0a4ea7b745955570bbb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 9 Nov 2011 05:09:35 +0000 Subject: Check for lv2core via pkg-config rather than header presence. --- plugins/eg-amp.lv2/wscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/eg-amp.lv2/wscript') diff --git a/plugins/eg-amp.lv2/wscript b/plugins/eg-amp.lv2/wscript index 844fe50..8c44d61 100644 --- a/plugins/eg-amp.lv2/wscript +++ b/plugins/eg-amp.lv2/wscript @@ -22,7 +22,7 @@ def configure(conf): autowaf.configure(conf) autowaf.display_header('Amp Configuration') - autowaf.check_header(conf, 'c', 'lv2/lv2plug.in/ns/lv2core/lv2.h') + autowaf.check_pkg(conf, 'lv2core', uselib_store='LV2CORE') conf.env.append_value('CFLAGS', '-std=c99') @@ -59,5 +59,6 @@ def build(bld): source = 'amp.c', name = 'amp', target = '%s/amp' % bundle, - install_path = '${LV2DIR}/%s' % bundle) + install_path = '${LV2DIR}/%s' % bundle, + uselib = 'LV2CORE') -- cgit v1.2.1