From: lilo_booter Date: Wed, 13 Apr 2005 13:29:13 +0000 (+0000) Subject: Disable sdl when unavailable X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=f12b45a62e34d34dbf2f800431dd0cb9f4c39c80;p=melted Disable sdl when unavailable git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@701 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/sdl/configure b/src/modules/sdl/configure index 5021991..53bafdd 100755 --- a/src/modules/sdl/configure +++ b/src/modules/sdl/configure @@ -3,11 +3,18 @@ if [ "$help" != "1" ] then -cat << EOF >> ../consumers.dat -sdl libmltsdl$LIBSUF -sdl_preview libmltsdl$LIBSUF -sdl_still libmltsdl$LIBSUF -EOF + sdl-config --version > /dev/null 2>&1 + disable_sdl=$? + + if [ "$disable_sdl" == "0" ] + then + echo "sdl libmltsdl$LIBSUF" >> ../consumers.dat + echo "sdl_preview libmltsdl$LIBSUF" >> ../consumers.dat + echo "sdl_still libmltsdl$LIBSUF" >> ../consumers.dat + else + echo "- sdl development libs not found: disabling" + touch ../disable-sdl + fi fi