JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
bump version to 0.5.8
[vor.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.63])
5 AC_INIT(VoR, 0.5.7, jason@jasonwoof.com, vor)
6 AC_CONFIG_SRCDIR([config.h.in])
7 AC_CONFIG_HEADERS([config.h])
8
9 # Checks for programs.
10 AC_PROG_CC
11 AC_PROG_INSTALL
12 AC_PROG_MAKE_SET
13
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])
24
25 # Checks for header files.
26 AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h time.h])
27
28 # Checks for typedefs, structures, and compiler characteristics.
29 AC_HEADER_STDBOOL
30 AC_C_INLINE
31 AC_TYPE_INT8_T
32 AC_TYPE_SIZE_T
33 AC_TYPE_UINT16_T
34 AC_TYPE_UINT32_T
35 AC_TYPE_UINT8_T
36
37 # Checks for library functions.
38 AC_FUNC_MALLOC
39 AC_CHECK_FUNCS([atexit memset sqrt strdup nanosleep])
40
41 AC_CONFIG_FILES([Makefile])
42 AC_OUTPUT