JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
bump version to 0.5.8
[vor.git] / configure.ac
index 1804a30..62c8716 100644 (file)
@@ -2,7 +2,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.63])
-AC_INIT(VoR, 0.5.4, jason@jasonwoof.com, vor)
+AC_INIT(VoR, 0.5.8, jason@jasonwoof.com, vor)
 AC_CONFIG_SRCDIR([config.h.in])
 AC_CONFIG_HEADERS([config.h])
 
@@ -12,17 +12,18 @@ AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 
 # Checks for libraries.
+PKG_CHECK_MODULES([SDL], [sdl >= 1.2])
+PKG_CHECK_MODULES([SDL_IMAGE], [SDL_image >= 1.2],,
+       [SDL_IMAGE_LIBS="-lSDL_image"]) # <-- else
+PKG_CHECK_MODULES([SDL_MIXER], [SDL_mixer >= 1.2],,
+       [SDL_MIXER_LIBS="-lSDL_mixer"]) # <-- else
+# Make sure SDL_image was compiled with png support
 AC_CHECK_LIB([SDL_image], [IMG_LoadPNG_RW])
-AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio])
-
-SDL_VERSION=1.2.0
-AM_PATH_SDL($SDL_VERSION,
-            :,
-            AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
-)
+# Make sure SDL_mixer was compiled with ogg vorbis support
+AC_CHECK_LIB([SDL_mixer], [Mix_InitOgg])
 
 # Checks for header files.
-AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h])
+AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h time.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_HEADER_STDBOOL
@@ -35,7 +36,7 @@ AC_TYPE_UINT8_T
 
 # Checks for library functions.
 AC_FUNC_MALLOC
-AC_CHECK_FUNCS([atexit memset sqrt strdup])
+AC_CHECK_FUNCS([atexit memset sqrt strdup nanosleep])
 
 AC_CONFIG_FILES([Makefile])
 AC_OUTPUT