[anjuta] build: Disable vala support if libvala is missing



commit 675235f11a67140486757a32960ab0b1ad0487c6
Author: SÃbastien Granjoux <seb sfo free fr>
Date:   Sat Mar 3 11:56:52 2012 +0100

    build: Disable vala support if libvala is missing

 configure.ac |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 223839d..6f9715e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -261,8 +261,8 @@ if test "$user_disabled_vala" = 1; then
         AC_MSG_RESULT(yes)
 	enable_vala="no"
 else
-	AC_MSG_RESULT(no)
-	enable_vala="yes"
+        AC_MSG_RESULT(no)
+	AC_MSG_CHECKING(if libvala is available)
 	PKG_CHECK_EXISTS([ libvala-0.16 ],
 			 [ valaver="-0.16" ],
 			 [ PKG_CHECK_EXISTS([ libvala-0.14 >= $VALA14_REQUIRED ],
@@ -270,8 +270,14 @@ else
 					    [ valaver="" ])
 			 ])
 	if test "x$valaver" != "x"; then
+		AC_MSG_RESULT(yes)
+		enable_vala="yes"
 		LIBVALA="libvala${valaver}"
 		PKG_CHECK_MODULES([VALA], ${LIBVALA})
+	else
+		AC_MSG_RESULT(no)
+		enable_vala="no"
+		VALA_REQUIRED=$VALA14_REQUIRED
 	fi
 	AC_SUBST(LIBVALA)
 fi



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