X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=1804a300c96355919f1dfe0ff56626f60e17cc0c;hp=0000000000000000000000000000000000000000;hb=b54aa71f3a024ffd7ecc040b76b2738c05d25cb6;hpb=9d48e750948aaf7b48ef3be16cbb4516f9b57719 diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..1804a30 --- /dev/null +++ b/configure.ac @@ -0,0 +1,41 @@ +# -*- Autoconf -*- +# 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_CONFIG_SRCDIR([config.h.in]) +AC_CONFIG_HEADERS([config.h]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_MAKE_SET + +# Checks for libraries. +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!]) +) + +# Checks for header files. +AC_CHECK_HEADERS([inttypes.h stddef.h stdlib.h string.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_HEADER_STDBOOL +AC_C_INLINE +AC_TYPE_INT8_T +AC_TYPE_SIZE_T +AC_TYPE_UINT16_T +AC_TYPE_UINT32_T +AC_TYPE_UINT8_T + +# Checks for library functions. +AC_FUNC_MALLOC +AC_CHECK_FUNCS([atexit memset sqrt strdup]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT