Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

build: Fix autogen.sh to allow out-of-tree builds

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
  • Loading branch information...
commit 1b200d900155722ec696bbd711a38ee0e04c4895 1 parent 85d355f
@mattst88 mattst88 authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 autogen.sh
View
10 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 "$@"
Please sign in to comment.
Something went wrong with that request. Please try again.