Skip to content

Commit

Permalink
build: Fix autogen.sh to allow out-of-tree builds
Browse files Browse the repository at this point in the history
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
  • Loading branch information
mattst88 committed Aug 14, 2012
1 parent 85d355f commit 1b200d9
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions autogen.sh
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit 1b200d9

Please sign in to comment.