gstreamer: Update from 1.15+ git master
[vala-gnome.git] / autogen.sh
blobd73d92d3d02e53a43a371f5f404b063416a07a24
1 #!/bin/sh
3 srcdir=`dirname $0`
4 test -z "$srcdir" && srcdir=.
6 ORIGDIR=`pwd`
7 cd $srcdir
9 test -z "$VALAC" && VALAC=valac
10 if ! $VALAC --version | sed -e 's/^Vala \([0-9]\+\.[0-9]\+\).*$/\1/' | grep -vq '^0\.\([0-9]\|1[0-1]\)$'
11 then
12 echo "**Error**: You must have valac >= 0.12.0 installed"
13 echo " to build vala. Download the appropriate package"
14 echo " from your distribution or get the source tarball at"
15 echo " http://download.gnome.org/sources/vala/"
16 exit 1
19 # Automake requires that ChangeLog exist.
20 touch ChangeLog
21 mkdir -p m4
23 rm -f .version
24 autoreconf -v --install || exit 1
25 cd $ORIGDIR || exit $?
27 if test -z "$NOCONFIGURE"; then
28 $srcdir/configure "$@"