dnl Process this file with autoconf to produce a configure script. -*-m4-*- AC_INIT(main.c) AC_CONFIG_HEADER(config.h) # AC_PREREQ(2.13) dnl Minimum Autoconf version required. # AC_CANONICAL_HOST dnl AM_INIT_AUTOMAKE([textutils], [2.0]) # Enable GNU extensions. # Define this here, not in acconfig's @TOP@ section, since definitions # in the latter don't make it into the configure-time tests. # AC_DEFINE([_GNU_SOURCE]) AC_PROG_CC AC_PROG_CPP AC_PROG_GCC_TRADITIONAL AC_PROG_RANLIB AC_AIX AC_MINIX AC_PATH_PROG(AR,ar) AC_PATH_PROG(RM,rm) jm_MACROS jm_LIB_CHECK dnl Checks for header files. AC_CHECK_HEADERS(fcntl.h limits.h memory.h stdlib.h string.h unistd.h) AC_HEADER_STAT AC_HEADER_STDC dnl Checks for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN AC_C_CONST AC_C_INLINE AC_C_LONG_DOUBLE AC_HEADER_DIRENT AC_STRUCT_ST_BLKSIZE dnl This test replaces the obsolescent AC_ISC_POSIX kludge. AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) dnl Checks for library functions. AC_CHECK_FUNCS(isascii mempcpy strchr strerror) AC_FUNC_ALLOCA AC_REPLACE_FUNCS(memcpy memset stpcpy strpbrk strtol strtoul) AC_FUNC_VPRINTF AC_OUTPUT(Makefile)