[anjuta/gnome-2-32] build: bgo#633661 - vala support is automagic
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gnome-2-32] build: bgo#633661 - vala support is automagic
- Date: Fri, 12 Nov 2010 13:55:36 +0000 (UTC)
commit 1a385a4fff3df1b1b7c23f437e44d4423c1b15c3
Author: Pacho Ramos <pacho condmat1 ciencias uniovi es>
Date: Thu Nov 4 10:37:19 2010 +0100
build: bgo#633661 - vala support is automagic
configure.in | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/configure.in b/configure.in
index a722cc9..4bccfcc 100644
--- a/configure.in
+++ b/configure.in
@@ -267,10 +267,23 @@ AM_CONDITIONAL(HAVE_PLUGIN_SOURCEVIEW, [test x$sourceview = xyes])
dnl Check for vala
dnl -------------------------------------------------------------
-PKG_CHECK_MODULES(VALA,
- [vala-0.10 >= $VALA_REQUIRED],
- [enable_vala="yes"],
- [enable_vala="no"])
+AC_ARG_ENABLE(vala,
+ AC_HELP_STRING([--disable-vala],[Disable vala support]),
+ [ if test "$enableval" = "no"; then
+ user_disabled_vala=1
+ fi ],
+ [ user_disabled_vala=0 ])
+
+AC_MSG_CHECKING(if vala support is disabled)
+if test "$user_disabled_vala" = 1; then
+ AC_MSG_RESULT(yes)
+ enable_vala="no"
+else
+ AC_MSG_RESULT(no)
+ enable_vala="yes"
+ PKG_CHECK_MODULES(VALA,
+ [vala-0.10 >= $VALA_REQUIRED])
+fi
if test x$enable_vala = xyes; then
AC_PATH_PROG(VALAC, valac, valac)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]