summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfig.h.in6
-rwxr-xr-xconfigure.in8
2 files changed, 14 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index 649eb2c3..92325e5d 100755
--- a/config.h.in
+++ b/config.h.in
@@ -9,6 +9,12 @@
/* Defines if your system has the LIBSDL library */
#undef HAVE_LIBSDL
+/* Define to 1 if you have the `SDL_image' library (-lSDL_image). */
+#undef HAVE_LIBSDL_IMAGE
+
+/* Define to 1 if you have the `SDL_mixer' library (-lSDL_mixer). */
+#undef HAVE_LIBSDL_MIXER
+
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
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])
])