diff options
author | Matt Turner <mattst88@gmail.com> | 2012-08-01 14:11:31 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2012-08-14 10:54:39 -0700 |
commit | 1b200d900155722ec696bbd711a38ee0e04c4895 (patch) | |
tree | 52f69a5280d32a02c07dc125ec6feff76e747cd4 /autogen.sh | |
parent | 85d355f1220443c9efdf2d759f23512a7c691a3e (diff) | |
download | mesa-1b200d900155722ec696bbd711a38ee0e04c4895.tar.gz mesa-1b200d900155722ec696bbd711a38ee0e04c4895.tar.bz2 mesa-1b200d900155722ec696bbd711a38ee0e04c4895.zip |
build: Fix autogen.sh to allow out-of-tree builds
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/autogen.sh b/autogen.sh index b5f6ec4a97a..626d2133499 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,17 +3,11 @@ srcdir=`dirname "$0"` test -z "$srcdir" && srcdir=. -SRCDIR=`(cd "$srcdir" && pwd)` ORIGDIR=`pwd` - -if test "x$SRCDIR" != "x$ORIGDIR"; then - echo "Mesa cannot be built when srcdir != builddir" 1>&2 - exit 1 -fi - -MAKEFLAGS="" +cd "$srcdir" autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? if test -z "$NOCONFIGURE"; then "$srcdir"/configure "$@" |