AC_PREREQ([2.57]) AC_INIT(re2c, 0.12.1, re2c-general@lists.sourceforge.net) AM_INIT_AUTOMAKE(re2c, $PACKAGE_VERSION) AC_CONFIG_SRCDIR(actions.cc) AM_CONFIG_HEADER(config.h) AC_SUBST(PACKAGE_VERSION) AC_SUBST(PACKAGE_NAME) AC_SUBST(PACKAGE_TARNAME) AC_SUBST(PACKAGE_RELEASE, ${PACKAGE_RELEASE:-1}) # Checks for programs. AC_PROG_YACC AC_PROG_CXX AC_PROG_CC AC_PROG_INSTALL if test "$GCC" = "yes"; then AC_MSG_CHECKING([Testing GCC version]) GCCVERSION=`$CXX -dumpversion 2>/dev/null` if test -z "$GCCVERSION"; then AC_MSG_ERROR([GCC version 3 or above required]) fi AC_MSG_RESULT([found version $GCCVERSION]) fi # Checks for libraries. # Checks for header files. AC_HEADER_STDC # We only rely on standard C/C++ headers. If we ever have a pressing need # for something non-standard, we should add a check for it here. # AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_C_INLINE AC_TYPE_SIZE_T AC_C_VOLATILE # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_FUNC_MMAP AC_CHECK_FUNCS([memset munmap strdup strndup]) AC_CHECK_SIZEOF([char]) AC_CHECK_SIZEOF([short]) AC_CHECK_SIZEOF([int]) AC_CHECK_SIZEOF([long]) AC_CONFIG_FILES([\ Makefile \ README \ makerpm \ re2c.1 \ re2c.spec \ run_tests.sh \ config_w32.h \ ]) AC_OUTPUT_COMMANDS([chmod +x makerpm run_tests.sh]) AC_OUTPUT