[grilo] build: drop libvala requirement



commit 6f96c5f2a3cf0195c6c2357d5a0dbd2ce2971dde
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Tue Feb 18 14:07:31 2014 +0000

    build: drop libvala requirement
    
    Only valac, vapigen and vala-gen-introspect are required.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724430

 configure.ac |   21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4e35739..c398d9c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -259,21 +259,6 @@ AC_ARG_ENABLE([vala],
         [enable_vala=autodetect have_vala=yes])
 AC_MSG_RESULT([$enable_vala])
 if test "x$enable_vala" != "xno"; then
-       valapkg=""
-       m4_foreach([VERSION], [[0.12], [0.14], [0.16], [0.18], [0.20], [0.22], [0.24]],
-                  [PKG_CHECK_EXISTS([ libvala-VERSION ],
-                           [ valapkg="libvala-VERSION" ])
-                  ])
-
-       if test "x$valapkg" != "x"; then
-               PKG_CHECK_MODULES([VALA], [ ${valapkg} ],
-                                 [ with_vala="yes" ],
-                                 [ with_vala="no" ])
-       else
-               with_vala="no"
-       fi
-
-        if test "x$with_vala" = "xyes"; then
                 AC_PATH_PROG([VALAC], [valac])
                 if test "x$VALAC" = "x"; then
                         AC_MSG_ERROR([No Vala compiler found.])
@@ -288,12 +273,8 @@ if test "x$enable_vala" != "xno"; then
                 if test "x$VAPIGEN" = "x"; then
                         AC_MSG_ERROR([Cannot fine "vapigen" in your PATH])
                 fi
-
-        elif test "x$enable_vala" = "xyes"; then
-                AC_MSG_ERROR([Vala plugin support explicitly requested, but not found])
-        fi
 fi
-AM_CONDITIONAL(HAVE_VALA, test "x$with_vala" = "xyes")
+AM_CONDITIONAL(HAVE_VALA, test "x$enable_vala" != "xno")
 
 # ----------------------------------------------------------
 # GTK-DOC


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