OSDN Git Service

intel: Add a getter for the intel_context ctx_id
[android-x86/external-libdrm.git] / autogen.sh
index b1376df..c896097 100755 (executable)
@@ -1,3 +1,14 @@
 #! /bin/sh
-autoreconf -v --install || exit 1
-./configure --enable-maintainer-mode "$@"
+
+srcdir=`dirname "$0"`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd "$srcdir"
+
+autoreconf --force --verbose --install || exit 1
+cd "$ORIGDIR" || exit $?
+
+if test -z "$NOCONFIGURE"; then
+    "$srcdir"/configure "$@"
+fi