JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
1804a300c96355919f1dfe0ff56626f60e17cc0c
[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.4, 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 AC_CHECK_LIB([SDL_image], [IMG_LoadPNG_RW])
16 AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio])
17
18 SDL_VERSION=1.2.0
19 AM_PATH_SDL($SDL_VERSION,
20             :,
21             AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
22 )
23
24 # Checks for header files.
25 AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h])
26
27 # Checks for typedefs, structures, and compiler characteristics.
28 AC_HEADER_STDBOOL
29 AC_C_INLINE
30 AC_TYPE_INT8_T
31 AC_TYPE_SIZE_T
32 AC_TYPE_UINT16_T
33 AC_TYPE_UINT32_T
34 AC_TYPE_UINT8_T
35
36 # Checks for library functions.
37 AC_FUNC_MALLOC
38 AC_CHECK_FUNCS([atexit memset sqrt strdup])
39
40 AC_CONFIG_FILES([Makefile])
41 AC_OUTPUT