]> git.sesse.net Git - mlt/blobdiff - src/modules/vid.stab/configure
Fix configure script
[mlt] / src / modules / vid.stab / configure
index 7a852a1da8f830b19748e4dfb077472898c87120..e5018882a8d0a4cba8095bb7a4241f037f75ac01 100755 (executable)
@@ -5,7 +5,17 @@ then
        if ! $(pkg-config vidstab)
        then
                echo "- vid.stab not found: disabling"
-               touch ../disable-vidstab
+               touch ../disable-vid.stab
+               exit 0
+       fi
+       
+       minver="0.98"
+       modver=$(pkg-config --modversion vidstab)
+       pkg-config --exists "vidstab >= $minver"
+       if [ $? -ne 0 ]
+       then
+               echo "- vid.stab $modver found, but $minver or newer is required: disabling"
+               touch ../disable-vid.stab
                exit 0
        fi
 
@@ -20,3 +30,4 @@ then
        esac
        exit 0
 fi
+