[ostree] build: Also make gjs-based tests conditional on introspection support



commit 2b37abf7b63e797aebf4121a4875decbd8db5c33
Author: Colin Walters <walters verbum org>
Date:   Fri Oct 11 11:50:15 2013 -0400

    build: Also make gjs-based tests conditional on introspection support
    
    Since they use imports.gi.OSTree.

 configure.ac |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 20bc7d9..c0b4310 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,7 +79,7 @@ AM_CONDITIONAL(USE_LIBSOUP, test x$with_soup != xno)
 m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
   GOBJECT_INTROSPECTION_CHECK([1.34.0])
 ])
-AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test x$found_introspection = xyes)
+AM_CONDITIONAL(BUILDOPT_INTROSPECTION, test "x$found_introspection" = xyes)
 
 LIBGPGME_DEPENDENCY="1.1.8"
 
@@ -154,12 +154,14 @@ AS_IF([test "x$with_dracut" = "xyes"], [
 ])
 
 dnl for tests
-AC_PATH_PROG(GJS, [gjs])
-if test -n "$GJS"; then
-  have_gjs=yes
-else
-  have_gjs=no
-fi
+AS_IF([test "x$found_introspection" = xyes], [
+  AC_PATH_PROG(GJS, [gjs])
+  if test -n "$GJS"; then
+    have_gjs=yes
+  else
+    have_gjs=no
+  fi
+], [have_gjs=no])
 AM_CONDITIONAL(BUILDOPT_GJS, test x$have_gjs = xyes)
 
 AC_CONFIG_FILES([


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