glapi: Move to src/mapi/.
[mesa.git] / autogen.sh
1 #! /bin/sh
2
3 srcdir=`dirname "$0"`
4 test -z "$srcdir" && srcdir=.
5
6 SRCDIR=`(cd "$srcdir" && pwd)`
7 ORIGDIR=`pwd`
8
9 if test "x$SRCDIR" != "x$ORIGDIR"; then
10 echo "Mesa cannot be built when srcdir != builddir" 1>&2
11 exit 1
12 fi
13
14 MAKEFLAGS=""
15
16 autoreconf -v --install || exit 1
17
18 "$srcdir"/configure "$@"