[emerillon] Fix the valac configure check



commit 1277edf3bdab415be20cfd871a3c68ed3ee8821f
Author: Simon Wenner <simon wenner ch>
Date:   Fri May 7 23:33:37 2010 +0200

    Fix the valac configure check

 configure.ac |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index b59c930..f48955d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -157,10 +157,13 @@ AC_ARG_ENABLE(vala,
 
 if test "$enable_vala" = "yes"
 then
-  AM_PROG_VALAC([0.8.0], enable_vala=yes, enable_vala=no)
+  AM_PROG_VALAC([0.8.0])
+  if test x${VALAC} = x""; then
+    exit 0;
+  fi
 fi
 
-AM_CONDITIONAL(ENABLE_VALA, test "x$enable_vala" = "xyes")
+AM_CONDITIONAL(ENABLE_VALA, test x${VALAC} != x"")
 
 ################
 # Output files #



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