autogen.sh 692 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/bin/sh

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
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 14 15 16 17 18
    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

19 20
# Automake requires that ChangeLog exist.
touch ChangeLog
21
mkdir -p m4
22

23
rm -f .version
24 25 26
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?

27
if test -z "$NOCONFIGURE"; then
28
    $srcdir/configure "$@"
29
fi