[PATCH 1/5] configure.ac: check for vala tools



Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
---
 configure.ac |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 476cf11..f837547 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,8 +119,24 @@ if test "x$enable_vala" != "xno"; then
         PKG_CHECK_MODULES(VALA, vala-1.0 >= $VALA_REQS, with_vala=yes,
                           with_vala=no)
         if test "x$with_vala" = "xyes"; then
-                VALAC="`pkg-config --variable=prefix vala-1.0`/bin/valac"
-                AC_SUBST([VALAC])
+                AC_PATH_PROG([VALAC], [valac], [])
+                if test "x$VALAC" = "x"; then
+                        AC_MSG_ERROR([No Vala compiler found.])
+                fi
+
+                VAPIDIR=`$PKG_CONFIG --variable=vapidir vala-1.0`
+                AC_SUBST([VAPIDIR])
+
+                AC_PATH_PROG([VALA_GEN_INTROSPECT], [vala-gen-introspect])
+                if test "x$VALA_GEN_INTROSPECT" = "x"; then
+                        AC_MSG_ERROR([Cannot find "vala-gen-introspect" in your PATH])
+                fi
+
+                AC_PATH_PROG([VAPIGEN], [vapigen])
+                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
-- 
1.7.1



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