X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconfigure;h=43b90d9c9265fe5e94dd1c6bc6c4862f88d6e5ab;hb=dc319e10595da94fad5bdff36fc785d6d2637d1b;hp=50219910228688ba8b19e99588db929287c6fdff;hpb=eae86b6ff2d11421e4839ffbe79c4c547d15751a;p=melted diff --git a/src/modules/sdl/configure b/src/modules/sdl/configure index 5021991..43b90d9 100755 --- a/src/modules/sdl/configure +++ b/src/modules/sdl/configure @@ -3,11 +3,21 @@ 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 > config.mak + image=`sdl-config --prefix`/include/SDL/SDL_image.h + if [ -f "$image" ] + then + echo "WITH_SDL_IMAGE=1" >> config.mak + fi + else + echo "- sdl development libs not found: disabling" + touch ../disable-sdl + fi + exit 0 fi