X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=configure.ac;h=d7e006a63e6330c5312670b07d623cdc54773bf0;hp=1804a300c96355919f1dfe0ff56626f60e17cc0c;hb=HEAD;hpb=b54aa71f3a024ffd7ecc040b76b2738c05d25cb6 diff --git a/configure.ac b/configure.ac index 1804a30..62c8716 100644 --- a/configure.ac +++ b/configure.ac @@ -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