]> git.sesse.net Git - mlt/commitdiff
Check for libswscale and libavdevice when configuring (SF-196).
authorDan Dennedy <dan@dennedy.org>
Sat, 7 Sep 2013 20:33:36 +0000 (13:33 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 7 Sep 2013 20:33:36 +0000 (13:33 -0700)
src/modules/avformat/configure

index 66061133e190ef7d970e7fc363121de52e1f77b4..531d3af79db2ffd0de9679af560c04d91c1f977c 100755 (executable)
@@ -109,6 +109,11 @@ else
                fi
        elif [ "$shared_ffmpeg" != "" ]
        then
+               if ! $(pkg-config libswscale${avformat_suffix}); then
+                       echo "- libswscale not found: disabling"
+                       touch ../disable-avformat
+                       exit 0
+               fi
                echo "PREFIX=$shared_ffmpeg" >> config.mak
                case $targetos in
                        MINGW32_NT-*)
@@ -124,6 +129,11 @@ else
                echo "LDFLAGS+=$(pkg-config --libs-only-L libswscale${avformat_suffix})" >> config.mak
                if [ "$devices" = "true" ]
                then
+                       if ! $(pkg-config libavdevice${avformat_suffix}); then
+                               echo "- libavdevice not found: disabling"
+                               touch ../disable-avformat
+                               exit 0
+                       fi
                        echo "CFLAGS+=$(pkg-config --cflags libavdevice${avformat_suffix})" >> config.mak
                        echo "LDFLAGS+=$(pkg-config --libs-only-L libavdevice${avformat_suffix})" >> config.mak
                fi