X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fsdl%2Fconfigure;h=43b90d9c9265fe5e94dd1c6bc6c4862f88d6e5ab;hb=d7716abeda97624b8a334a295b91725756b81221;hp=53bafdd6c34f8f01d6c8acbbfc76f996db078622;hpb=f12b45a62e34d34dbf2f800431dd0cb9f4c39c80;p=melted diff --git a/src/modules/sdl/configure b/src/modules/sdl/configure index 53bafdd..43b90d9 100755 --- a/src/modules/sdl/configure +++ b/src/modules/sdl/configure @@ -6,15 +6,18 @@ then sdl-config --version > /dev/null 2>&1 disable_sdl=$? - if [ "$disable_sdl" == "0" ] + 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 + 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