You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.0 KiB
51 lines
2.0 KiB
AC_PREREQ([2.68])
|
|
|
|
AC_INIT([mod_entropy], [0.1.0], [Georg Hopp <georg@steffers.org])
|
|
AM_INIT_AUTOMAKE
|
|
|
|
AC_CONFIG_SRCDIR([mod_entropy.c])
|
|
AC_CONFIG_HEADERS([config.h])
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
#AM_SILENT_RULES([yes])
|
|
AC_COPYRIGHT([Copyright © 2012 Georg Hopp])
|
|
AC_REVISION([$Revision: 0.02 $])
|
|
|
|
# Checks for programs.
|
|
AC_PROG_CC
|
|
AM_PROG_LIBTOOL
|
|
|
|
# Checks for libraries.
|
|
AC_CHECK_LIB([m], [log])
|
|
AC_CHECK_LIB([rt], [clock_gettime])
|
|
AC_CHECK_LIB([aprutil], [apr_palloc])
|
|
|
|
# apache apxs linking
|
|
AC_SUBST(APXS)
|
|
AC_CHECK_PROGS(APXS, apxs)
|
|
|
|
if test -z "$APXS"; then
|
|
AC_MSG_WARN([[apxs missing]])
|
|
fi
|
|
|
|
AC_SUBST(MODULEDIR)
|
|
AC_MSG_CHECKING(apache module directory)
|
|
if test -x "$APXS"; then
|
|
MODULEDIR=`${APXS} -q LIBEXECDIR`
|
|
else
|
|
MODULEDIR=/usr/local/lib
|
|
fi
|
|
AC_MSG_RESULT($MODULEDIR)
|
|
|
|
# Checks for header files.
|
|
AC_CHECK_HEADERS([fcntl.h sys/ioctl.h])
|
|
|
|
# Checks for typedefs, structures, and compiler characteristics.
|
|
AC_TYPE_SIZE_T
|
|
|
|
# Checks for library functions.
|
|
AC_FUNC_MALLOC
|
|
AC_CHECK_FUNCS([clock_gettime memset])
|
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
AC_OUTPUT
|