diff options
author | Jürg Billeter <j@bitron.ch> | 2009-07-13 14:27:06 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2009-07-13 14:28:10 +0200 |
commit | c27a20ba47b9a2226272b5e6846170c9c453e8ca (patch) | |
tree | 622aed8ff94c59e7096a9fd22bba199344c8d64f /autogen.sh | |
parent | 9a9181b115373077f58215c2edc0f91dd5960acd (diff) | |
download | vala-c27a20ba47b9a2226272b5e6846170c9c453e8ca.tar.gz |
Check for valac >= 0.7.0 in autogen.sh
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh index 7708a0ce1..7ea434bde 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,6 +6,16 @@ test -z "$srcdir" && srcdir=. ORIGDIR=`pwd` cd $srcdir +test -z "$VALAC" && VALAC=valac +if ! $VALAC --version | sed -e 's/^.*\([0-9]\+\.[0-9]\+\)\.[0-9]\+.*$/\1/' | grep -vq '^0\.[0-6]$' +then + echo "**Error**: You must have valac >= 0.7.0 installed" + echo " to build vala. Download the appropriate package" + echo " from your distribution or get the source tarball at" + echo " http://download.gnome.org/sources/vala/" + exit 1 +fi + # Automake requires that ChangeLog exist. touch ChangeLog mkdir -p m4 |