[gnome-games] Make vala support optional and version it



commit c4d25cfa22bfc6a00c5895653bb18b974ab33e0f
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Jan 19 08:03:14 2011 +1100

    Make vala support optional and version it

 configure.in |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/configure.in b/configure.in
index 9beaf40..37d844e 100644
--- a/configure.in
+++ b/configure.in
@@ -109,6 +109,7 @@ AC_SUBST([gamelist])
 # Feature matrix
 
 need_cxx=no
+need_vala=no
 need_rsvg=no
 need_sqlite=no
 need_guile=no
@@ -136,6 +137,10 @@ for game in $gamelist; do
     *) ;;
   esac
   case $game in
+    glchess) need_vala=yes ;;
+    *) ;;
+  esac
+  case $game in
     aisleriot) need_guile=yes ;;
     *) ;;
   esac
@@ -223,10 +228,13 @@ PKG_PROG_PKG_CONFIG([0.15])
 
 AC_PROG_CC
 AC_PROG_CPP
-AM_PROG_VALAC
 AC_PROG_LN_S
 AC_PROG_SED
 
+if test "$need_vala" = "yes"; then
+  AM_PROG_VALAC([0.11.4])
+fi
+
 if test "$need_cxx" = "yes"; then
   AC_PROG_CXX
 



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