Apache mod for creating entropy.
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.
 
 
 
 

59 lines
1.3 KiB

AC_PREREQ([2.68])
AC_INIT([mod_entropy], [0.1.0], [Georg Hopp <georg@steffers.org])
LT_INIT
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.01 $])
# 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
AC_SUBST(APXS)
AC_CHECK_PROGS(APXS, apxs)
if test -z "$APXS"; then
AC_MSG_ERROR([[apxs missing]])
fi
# apache include dir
AC_SUBST(AP_INCLUDE)
AC_MSG_CHECKING(apache include directory)
AP_INCLUDE=$(${APXS} -q INCLUDEDIR)
AC_MSG_RESULT($AP_INCLUDE)
# apr-1
AC_SUBST(APR1)
AC_CHECK_PROGS(APR1, apr-1-config)
# apr-1 include dir
AC_SUBST(APR_INCLUDE)
AC_MSG_CHECKING(apr-1 include directory)
APR_INCLUDE=$(${APR1} --includedir)
AC_MSG_RESULT($APR_INCLUDE)
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h sys/ioctl.h linux/random.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