Use config.h to vaapiencode
[profile/ivi/gstreamer-vaapi.git] / autogen.sh
index 920e77e..4314352 100755 (executable)
@@ -15,8 +15,19 @@ cd "$srcdir"
 
 mkdir -p m4
 
+GIT=`which git`
+if test -z "$GIT"; then
+    echo "*** No git found ***"
+    exit 1
+else
+    if test ! -f ext/codecparsers/autogen.sh; then
+        $GIT submodule init
+    fi
+    $GIT submodule update
+fi
+
 GTKDOCIZE=`which gtkdocize`
-if test -z $GTKDOCIZE; then
+if test -z "$GTKDOCIZE"; then
     echo "*** No gtk-doc support ***"
     echo "EXTRA_DIST =" > gtk-doc.make
 else
@@ -24,7 +35,7 @@ else
 fi
 
 AUTORECONF=`which autoreconf`
-if test -z $AUTORECONF; then
+if test -z "$AUTORECONF"; then
     echo "*** No autoreconf found ***"
     exit 1
 else