acinclude.m4 revision 80e9324586de2fa55e2da4df409e6a85885ea659
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl APACHE_SUBST(VARIABLE)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl Makes VARIABLE available in generated files
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl (do not use @variable@ in Makefiles, but $(variable))
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandAC_DEFUN(APACHE_SUBST,[
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_VAR_SUBST="$APACHE_VAR_SUBST $1"
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl APACHE_FAST_OUTPUT(FILENAME)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl Perform substitutions on FILENAME (Makefiles only)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandAC_DEFUN(APACHE_FAST_OUTPUT,[
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_FAST_OUTPUT_FILES="$APACHE_FAST_OUTPUT_FILES $1"
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl APACHE_MKDIR_P_CHECK
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl checks whether mkdir -p works
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandAC_DEFUN(APACHE_MKDIR_P_CHECK,[
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland AC_CACHE_CHECK(for working mkdir -p, ac_cv_mkdir_p,[
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland test -d conftestdir && rm -rf conftestdir
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland mkdir -p conftestdir/somedir >/dev/null 2>&1
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland ac_cv_mkdir_p=yes
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland ac_cv_mkdir_p=no
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland rm -rf conftestdir
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterlanddnl APACHE_GEN_CONFIG_VARS
60bec29ea42d65ac648c69b0fb189273e286ca57Garrett D'AmoreAC_DEFUN(APACHE_GEN_CONFIG_VARS,[
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(abs_srcdir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(bindir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(sbindir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(cgidir)
60bec29ea42d65ac648c69b0fb189273e286ca57Garrett D'Amore APACHE_SUBST(logfiledir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(exec_prefix)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(datadir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(localstatedir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(libexecdir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(htdocsdir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(includedir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(iconsdir)
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland APACHE_SUBST(sysconfdir)
echo creating config_vars.mk
eval echo "$i = \$$i" >> config_vars.mk
$SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $BSD_MAKEFILE $APACHE_FAST_OUTPUT_FILES
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
[Define to 'int' if <sys/resource.h> doesn't define it for us])
test -d $1 || $srcdir/build/mkdir.sh $modpath_current
echo "static = $modpath_static" >> $modpath_current/modules.mk
echo "shared = $modpath_shared" >> $modpath_current/modules.mk
APACHE_FAST_OUTPUT($modpath_current/Makefile)
objects="mod_$1.lo"
libname="mod_$1.la"
cat >>$modpath_current/modules.mk<<EOF
libname="mod_$1.la"
cat >>$modpath_current/modules.mk<<EOF
dnl basically: yes/no is a hard setting. "most" means follow the "most"
dnl explicit yes/no always overrides.
AC_ARG_ENABLE(translit($1,_,-),optname() substr([ ],len(optname()))$2,,enable_$1=ifelse($5,,maybe-all,$5))
enable_$1=`echo $ac_n $enable_$1$ac_c|sed 's/shared,*//'`
if test ! -f $srcdir/config.layout; then
echo "** Error: Layout file $srcdir/config.layout not found"
pldconf=./config.pld
if echo $val | grep apache >/dev/null; then
val="$val/apache"
# create the Apache layout in config.layout, and it really should just
# use what is specified in config.layout instead of duping it.
APACHE_LAYOUT($srcdir/config.layout, $LAYOUT)
AC_MSG_CHECKING(for SSL/TLS toolkit base)
AC_ARG_WITH(ssl, [ --with-ssl[=DIR] SSL/TLS toolkit (OpenSSL)], [
if test -f "$p/openssl"; then
ap_ssltk_version="`$p/openssl version`"
AC_MSG_ERROR([invalid SSL/TLS toolkit base directory $ap_ssltk_base])
AC_MSG_CHECKING(for SSL/TLS toolkit version)
AC_MSG_CHECKING(for SSL/TLS toolkit includes)
if test -f "$p/openssl/ssl.h"; then
AC_MSG_CHECKING(for SSL/TLS toolkit libraries)
if test "x$ap_ssltk_incdir" != "x/usr/include"; then
if test "x$ap_ssltk_libdir" != "x/usr/lib"; then