diff options
-rw-r--r-- | utils/lv2_inspect.c | 2 | ||||
-rw-r--r-- | utils/lv2_list.c | 2 | ||||
-rw-r--r-- | wscript | 15 |
3 files changed, 7 insertions, 12 deletions
diff --git a/utils/lv2_inspect.c b/utils/lv2_inspect.c index 035ac0c..901cf96 100644 --- a/utils/lv2_inspect.c +++ b/utils/lv2_inspect.c @@ -224,7 +224,7 @@ print_plugin(SLV2Plugin p) void print_version() { - printf("lv2_inspect (slv2) " PACKAGE_VERSION "\n"); + printf("lv2_inspect (slv2) " SLV2_VERSION "\n"); printf("Copyright (C) 2007 Dave Robillard <dave@drobilla.net>\n"); printf("License: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>\n"); printf("This is free software: you are free to change and redistribute it.\n"); diff --git a/utils/lv2_list.c b/utils/lv2_list.c index 1996a91..18aa911 100644 --- a/utils/lv2_list.c +++ b/utils/lv2_list.c @@ -35,7 +35,7 @@ list_plugins(SLV2Plugins list) void print_version() { - printf("lv2_list (slv2) " PACKAGE_VERSION "\n"); + printf("lv2_list (slv2) " SLV2_VERSION "\n"); printf("Copyright (C) 2007 Dave Robillard <dave@drobilla.net>\n"); printf("License: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>\n"); printf("This is free software: you are free to change and redistribute it.\n"); @@ -40,19 +40,14 @@ def set_options(opt): def configure(conf): autowaf.configure(conf) - if not conf.env['CC']: - conf.check_tool('compiler_cc') - if not conf.env['HAVE_LV2CORE']: - conf.check_pkg('lv2core', destvar='LV2CORE', vnum='1', mandatory=True) - if not conf.env['HAVE_REDLAND']: - conf.check_pkg('redland', destvar='REDLAND', vnum='1.0.6', mandatory=True) - if not conf.env['HAVE_JACK']: - conf.check_pkg('jack', destvar='JACK', vnum='0.107.0', mandatory=False) + autowaf.check_tool(conf, 'compiler_cc') + autowaf.check_pkg(conf, 'lv2core', destvar='LV2CORE', vnum='1', mandatory=True) + autowaf.check_pkg(conf, 'redland', destvar='REDLAND', vnum='1.0.6', mandatory=True) + autowaf.check_pkg(conf, 'jack', destvar='JACK', vnum='0.107.0', mandatory=False) conf.env.append_value('CCFLAGS', '-std=c99') - conf.define('PACKAGE_VERSION', VERSION) + conf.define('SLV2_VERSION', SLV2_VERSION) conf.write_config_header('waf-config.h') conf.env.append_value('CCFLAGS', '-DCONFIG_H_PATH=\\\"waf-config.h\\\"') - conf.env.append_value('CCFLAGS', '-DPACKAGE_VERSION=\\\"' + VERSION + '\\\"') autowaf.print_summary(conf) autowaf.display_header('SLV2 Configuration') |