OSDN Git Service

intel-vaapi-driver 1.8.1.pre1
[android-x86/hardware-intel-common-vaapi.git] / autogen.sh
index f5164d8..626d213 100755 (executable)
@@ -1,7 +1,14 @@
 #! /bin/sh
 
-autoreconf -v --install
+srcdir=`dirname "$0"`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd "$srcdir"
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
 
 if test -z "$NOCONFIGURE"; then
-    ./configure "$@"
+    "$srcdir"/configure "$@"
 fi