codegen: Use get_local_cvalue to unref local variables
[vala-lang.git] / autogen.sh
blob7db4f1411d559cc48a83814eb7e5d67acf95db1f
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/^.*\([0-9]\+\.[0-9]\+\)\.[0-9]\+.*$/\1/' | grep -vq '^0\.[0-9]$'
11 then
12 echo "**Error**: You must have valac >= 0.10.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 --enable-maintainer-mode "$@"