AC_INIT([sdlex], [0.1.0], [pjm@nac.net]) AC_CONFIG_SRCDIR([src/main.c]) AM_INIT_AUTOMAKE([subdir-objects]) AC_PROG_CC() AM_PROG_CC_C_O() AC_C_INLINE() AC_CHECK_HEADERS([stdlib.h]) AC_CHECK_HEADERS([string.h]) AC_TYPE_SIZE_T() AC_FUNC_MALLOC() AC_CHECK_FUNCS([memset]) AC_CHECK_FUNCS([strdup]) AC_CHECK_FUNCS([strndup]) PKG_PROG_PKG_CONFIG() PKG_CHECK_MODULES([SDL], [sdl]) PKG_CHECK_MODULES([SDL_IMAGE], [SDL_image]) PKG_CHECK_MODULES([ZLIB], [zlib]) PKG_CHECK_MODULES([EXPAT], [expat]) if test "x$GCC" = "xyes"; then GCC_CFLAGS="-Wall -Wextra -Werror -pedantic" fi AC_SUBST(GCC_CFLAGS) AC_CONFIG_FILES([Makefile]) AC_OUTPUT()