From 90bd022f8909f92cc5290fdcfc76c626749e1186 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 29 Dec 2019 20:24:11 -0500 Subject: Fix graphviz check --- wscript | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 89800c9..8b94a15 100644 --- a/wscript +++ b/wscript @@ -46,10 +46,12 @@ def configure(conf): conf.find_program('yelp-build', var='YELP_BUILD', mandatory=False) if not Options.options.no_graphviz: - conf.check_pkg('libgvc >= 2.30', + conf.check_pkg('libgvc', uselib_store='AGRAPH', system=True, mandatory=False) + if conf.env.HAVE_AGRAPH: + conf.define('HAVE_AGRAPH', 1) if not Options.options.no_fdgl: conf.define('GANV_FDGL', 1) @@ -69,7 +71,7 @@ def configure(conf): autowaf.display_summary( conf, - {'Static (Graphviz) arrange': bool(conf.env.HAVE_AGRAPH_2_20), + {'Static (Graphviz) arrange': bool(conf.env.HAVE_AGRAPH), 'Interactive force-directed arrange': conf.is_defined('GANV_FDGL'), 'Native language support': bool(conf.env.ENABLE_NLS), 'GObject introspection': bool(conf.env.HAVE_GIR), -- cgit v1.2.1