Disable libsamplerate when unavailable
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 14:00:55 +0000 (14:00 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Wed, 13 Apr 2005 14:00:55 +0000 (14:00 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@702 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/resample/configure

index 9d8630a..b15eee8 100755 (executable)
@@ -3,9 +3,16 @@
 if [ "$help" != "1" ]
 then
 
-cat << EOF >> ../filters.dat
-resample               libmltresample$LIBSUF
-EOF
+       pkg-config samplerate 2> /dev/null
+       disable_samplerate=$?
+
+       if [ "$disable_samplerate" == "0" ]
+       then
+               echo "resample          libmltresample$LIBSUF" >> ../filters.dat
+       else
+               echo "- libsamplerate not found: disabling"
+               touch ../disable-resample
+       fi
 
 fi