# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.61) AC_INIT([ffe], [0.2.3], [tjsa@iki.fi]) AC_CONFIG_SRCDIR([src/ffe.c]) AC_CONFIG_HEADER([config.h]) AC_CONFIG_AUX_DIR([config]) AC_GNU_SOURCE AM_INIT_AUTOMAKE AC_SUBST([VERSION]) ISODATE=`date +%Y-%m-%d` AC_SUBST([ISODATE]) AC_CANONICAL_HOST AC_DEFINE_UNQUOTED([HOST],["$host"],[Host type.]) # Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_INSTALL # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h unistd.h features.h error.h errno.h getopt.h regex.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE AC_TYPE_SIZE_T AC_SYS_LARGEFILE AC_SYS_LONG_FILE_NAMES AC_CHECK_TYPE([regex_t],[AC_DEFINE(HAVE_REGEX, 1, [Define to 1 if regex functions are available])],,[#if HAVE_REGEX_H #include #endif]) # Checks for library functions. AC_CHECK_FUNCS([strcasecmp strchr strdup strerror strstr getline getopt_long regcomp]) AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile]) AC_OUTPUT