2009-04-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ Fix AM_PROG_VALAC version requirement detection.
+ * m4/vala.m4 (AM_PROG_VALAC): Remove `Vala ' from valac
+ --version string before comparing versions.
+ * tests/vala2.test: Require version 0.7.0 for the test.
+ Fixes failures of vala2.test and vala3.test with older valac.
+
Correctly treat all assignments with bogus trailing comments.
Before this patch, automake would silently fail to diagnose and
to copy into the output those variable assignments which are
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
-# serial 3
+# serial 4
# Check whether the Vala compiler exists in `PATH'. If it is found, the
# variable VALAC is set. Optionally a minimum release number of the
[AC_MSG_WARN([No Vala compiler found. You will not be able to compile .vala source files.])],
[AS_IF([test -n "$1"],
[AC_MSG_CHECKING([$VALAC is at least version $1])
- am__vala_version=`$VALAC --version`
+ am__vala_version=`$VALAC --version | sed 's/Vala *//'`
AS_VERSION_COMPARE([$1], ["$am__vala_version"],
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([yes])],