[gegl] build: Also check for PyGObject before running Python/GI tests



commit 81010e2cb8d1920785432daaf6c7b0ab51da30b8
Author: Jon Nordby <jononor gmail com>
Date:   Mon Sep 5 20:56:05 2011 +0200

    build: Also check for PyGObject before running Python/GI tests

 configure.ac             |    7 +++++++
 tests/python/Makefile.am |    4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 8d999b0..1fec804 100644
--- a/configure.ac
+++ b/configure.ac
@@ -402,6 +402,13 @@ AC_PATH_PROGS(PERL,perl5 perl perl5.005 perl5.004,perl)
 GOBJECT_INTROSPECTION_CHECK([0.6.7])
 
 ########################
+# Check PyGObject
+########################
+have_pygobject="no"
+PKG_CHECK_EXISTS(pygobject-2.0 >= 2.26, have_pygobject="yes")
+AM_CONDITIONAL(HAVE_PYGOBJECT, test "$have_pygobject" = "yes")
+
+########################
 # Check Vala
 ########################
 
diff --git a/tests/python/Makefile.am b/tests/python/Makefile.am
index 86e2b2f..8d09d73 100644
--- a/tests/python/Makefile.am
+++ b/tests/python/Makefile.am
@@ -7,11 +7,11 @@ TESTS_ENVIRONMENT = \
 
 if HAVE_PYTHON
 if HAVE_INTROSPECTION
-
+if HAVE_PYGOBJECT
 # List of tests.
 TESTS = \
 	test-gegl.py \
 	test-gegl-node.py
-
+endif # HAVE_PYGOBJECT
 endif # HAVE_INTROSPECTION
 endif # HAVE_PYTHON



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]