2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(VoR, 0.5.5, jason@jasonwoof.com, vor)
6 AC_CONFIG_SRCDIR([config.h.in])
7 AC_CONFIG_HEADERS([config.h])
14 # Checks for libraries.
15 PKG_CHECK_MODULES([SDL], [sdl >= 1.2])
16 PKG_CHECK_MODULES([SDL_IMAGE], [SDL_image >= 1.2],,
17 [SDL_IMAGE_LIBS="-lSDL_image"]) # <-- else
18 PKG_CHECK_MODULES([SDL_MIXER], [SDL_mixer >= 1.2],,
19 [SDL_MIXER_LIBS="-lSDL_mixer"]) # <-- else
20 # Make sure SDL_image was compiled with png support
21 AC_CHECK_LIB([SDL_image], [IMG_LoadPNG_RW])
22 # Make sure SDL_mixer was compiled with ogg vorbis support
23 AC_CHECK_LIB([SDL_mixer], [Mix_InitOgg])
25 # Checks for header files.
26 AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h time.h])
28 # Checks for typedefs, structures, and compiler characteristics.
37 # Checks for library functions.
39 AC_CHECK_FUNCS([atexit memset sqrt strdup nanosleep])
41 AC_CONFIG_FILES([Makefile])