build: Fix gtest out-of-tree build
[mesa.git] / autogen.sh
index 19e5b55fcfa67dfd31ce6a7ec23e6ac0ce23ebb3..b5f6ec4a97a2bfa8b9d881111a7a7d4e7a4a6de7 100755 (executable)
@@ -11,6 +11,10 @@ if test "x$SRCDIR" != "x$ORIGDIR"; then
        exit 1
 fi
 
+MAKEFLAGS=""
+
 autoreconf -v --install || exit 1
 
-"$srcdir"/configure "$@"
+if test -z "$NOCONFIGURE"; then
+    "$srcdir"/configure "$@"
+fi