diff options
Diffstat (limited to 'configure.in')
-rwxr-xr-x | configure.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in index ce7a99e0..c28be9bb 100755 --- a/configure.in +++ b/configure.in @@ -71,6 +71,14 @@ AC_DEFUN(FIND_PATH, fi ]) +# Check for SDL_image and SDL_mixer library +AC_CHECK_LIB(SDL_image, IMG_LoadPNG_RW, , +AC_MSG_ERROR([ *** Unable to find SDL_image library with PNG support +(http://www.libsdl.org/projects/SDL_image/)])) +AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, , +AC_MSG_ERROR([ *** Unable to find SDL_mixer library +(http://www.libsdl.org/projects/SDL_mixer/)])) + FIND_PATH(sdl-config, LIBSDL_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [ AC_MSG_ERROR([Could not find libsdl anywhere, check http://www.sdl.org]) ]) |