From: lilo_booter Date: Wed, 13 Apr 2005 13:23:25 +0000 (+0000) Subject: Disable vorbis when unavailable X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=2207938a20078b8edb97beb508a090d3a8cf1668;p=melted Disable vorbis when unavailable git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@700 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/vorbis/configure b/src/modules/vorbis/configure index 1b2accb..a7a4eb5 100755 --- a/src/modules/vorbis/configure +++ b/src/modules/vorbis/configure @@ -3,9 +3,16 @@ if [ "$help" != "1" ] then -cat << EOF >> ../producers.dat -vorbis libmltvorbis$LIBSUF -EOF + pkg-config vorbisfile 2> /dev/null + disable_vorbis=$? + + if [ "$disable_vorbis" == "0" ] + then + echo "vorbis libmltvorbis$LIBSUF" >> ../producers.dat + else + echo "- ogg vorbis not found - disabling" + touch ../disable-vorbis + fi fi