targets/vdpau: consolidate lib deps into Automake.inc
[mesa.git] / autogen.sh
index 19e5b55fcfa67dfd31ce6a7ec23e6ac0ce23ebb3..626d21334992a160241c02a78b0cb4dc7d5fceff 100755 (executable)
@@ -3,14 +3,12 @@
 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
+cd "$srcdir"
 
 autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
 
-"$srcdir"/configure "$@"
+if test -z "$NOCONFIGURE"; then
+    "$srcdir"/configure "$@"
+fi