OSDN Git Service

vp8 encoder parameter check - do not check for ref frames if no no_ref_X flag is set
[android-x86/hardware-intel-common-vaapi.git] / autogen.sh
index f5164d8..6214204 100755 (executable)
@@ -1,7 +1,23 @@
 #! /bin/sh
 
-autoreconf -v --install
+srcdir=`dirname "$0"`
+test -z "$srcdir" && srcdir=.
+
+ORIGDIR=`pwd`
+cd "$srcdir"
+
+# install pre-commit hook
+SRC_PRE_COMMIT=hooks/pre-commit.hook
+GIT_PRE_COMMIT=.git/hooks/pre-commit
+
+if [ ! \( -x $GIT_PRE_COMMIT -a -L $GIT_PRE_COMMIT \) ]; then
+    rm -f $GIT_PRE_COMMIT
+    ln -s ../../$SRC_PRE_COMMIT $GIT_PRE_COMMIT
+fi
+
+autoreconf -v --install || exit 1
+cd $ORIGDIR || exit $?
 
 if test -z "$NOCONFIGURE"; then
-    ./configure "$@"
+    "$srcdir"/configure "$@"
 fi