diff options
author | David Robillard <d@drobilla.net> | 2019-12-29 20:24:11 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-29 20:24:11 -0500 |
commit | 90bd022f8909f92cc5290fdcfc76c626749e1186 (patch) | |
tree | 0327daf48179f5ab4db6b3e9898a0cb0580943a7 /wscript | |
parent | 8b3520bf53bc85d82f3bc2024c8c333a620582a3 (diff) | |
download | ganv-90bd022f8909f92cc5290fdcfc76c626749e1186.tar.gz ganv-90bd022f8909f92cc5290fdcfc76c626749e1186.tar.bz2 ganv-90bd022f8909f92cc5290fdcfc76c626749e1186.zip |
Fix graphviz check
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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), |