# Process this file with autoconf to produce a configure script. AC_INIT(tmpreaper, 1.6.6, tmpreaper@packages.debian.org) AM_INIT_AUTOMAKE(tmpreaper, 1.6.6) AC_CONFIG_SRCDIR([tmpreaper.c]) AM_CONFIG_HEADER(config.h) # Checks for programs. AC_PROG_CC AC_PROG_INSTALL # Checks for libraries. # Checks for header files. AC_HEADER_DIRENT AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_CHECK_HEADERS([errno.h limits.h stdlib.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. # AC_C_CONST # Checks for library functions. # AC_FUNC_FORK # AC_PROG_GCC_TRADITIONAL # AC_FUNC_LSTAT # AC_FUNC_MALLOC AC_FUNC_SETVBUF_REVERSED # AC_FUNC_UTIME_NULL # AC_FUNC_VPRINTF # AC_CHECK_FUNCS([getcwd memmove memset rmdir strerror utime]) # AC_TRY_COMPILE([#include ], [int x = GLOB_BRACE], HAVE_GLOB_BRACE=true, HAVE_GLOB_BRACE=false) AC_CHECK_DECL(GLOB_BRACE, HAVE_GLOB_BRACE=true, HAVE_GLOB_BRACE=false, [#include ]) AC_CHECK_FUNC(getopt_long, HAVE_GETOPT_LONG=true, HAVE_GETOPT_LONG=false) AM_CONDITIONAL(HAVE_GETOPT_LONG, $HAVE_GETOPT_LONG) AC_CONFIG_FILES(Makefile) AC_CONFIG_FILES(tmpreaper.8, [if $HAVE_GLOB_BRACE; then cp tmpreaper.8.in tmpreaper.8; else sed 's,^\.\\" ,,' tmpreaper.8.in > tmpreaper.8; fi], HAVE_GLOB_BRACE=$HAVE_GLOB_BRACE) AC_OUTPUT