acinclude.m4 revision df349d5fc2ae7d106b058fe779c7ea4d19ee0588
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandAC_DEFUN(APACHE_CONFIG_NICE,[
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland# Created by configure
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland for arg in [$]0 "[$]@"; do
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland echo "\"[$]arg\" \\" >> $1
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland echo '"[$]@"' >> $1
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah WaterlandAC_DEFUN(APACHE_PASSTHRU,[
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland unset ac_cv_pass_$1
5c51f1241dbbdf2656d0e10011981411ed0c9673Moriah Waterland AC_CACHE_VAL(ac_cv_pass_$1, [ac_cv_pass_$1=$$1])
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
dnl Creates Makefiles and config_vars.mk
echo creating config_vars.mk
eval echo "$i = \$$i" >> config_vars.mk
$SHELL $srcdir/build/fastgen.sh $srcdir $ac_cv_mkdir_p $APACHE_FAST_OUTPUT_FILES
AC_TRY_COMPILE([#include <sys/resource.h>], [rlim_t spoon;], [
[Define to 'int' if <sys/resource.h> doesn't define it for us])
sinclude(lib/apr/threads.m4)
sinclude(lib/apr/hints.m4)
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/shm.h>
test -d $1 || $srcdir/helpers/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="libapachemod_$1.la"
cat >>$modpath_current/modules.mk<<EOF
libname="mod_$1.la"
cat >>$modpath_current/modules.mk<<EOF
enable_$1=`echo $ac_n $enable_$1$ac_c|sed 's/shared,*//'`
pldconf=config.pld
if echo $val | grep apache >/dev/null; then
val="$val/apache"
APACHE_LAYOUT($srcdir/../config.layout, $LAYOUT)