0.5.9.
[platform/upstream/gstreamer-vaapi.git] / autogen.sh
index 4314352..d7213af 100755 (executable)
@@ -20,7 +20,14 @@ if test -z "$GIT"; then
     echo "*** No git found ***"
     exit 1
 else
-    if test ! -f ext/codecparsers/autogen.sh; then
+    submodule_init="no"
+    for ext_module in codecparsers videoutils; do
+        if test ! -f ext/${ext_module}/autogen.sh; then
+            submodule_init="yes"
+        fi
+    done
+    [ -f ext/libvpx/upstream/configure ] || submodule_init="yes"
+    if test "$submodule_init" = "yes"; then
         $GIT submodule init
     fi
     $GIT submodule update