1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
AC_PREREQ(2.59)
AC_INIT(ciwiki, 3.0.4, [inphilly@gmail.com])
AC_CONFIG_SRCDIR([src/util.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE()
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_FORK
AC_FUNC_SELECT_ARGTYPES
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([asprintf inet_ntoa memset mkdir putenv select socket strdup strncasecmp])
if test "x$GCC" = "xyes"; then
GCC_FLAGS="-g -Wall -fno-strict-aliasing"
fi
AC_SUBST(GCC_FLAGS)
AC_OUTPUT([
Makefile
src/Makefile
scripts/Makefile
docs/Makefile
])
|