configure.in revision 06924437019f9871bc4ee49748511130548b7d35
7abe86bacd7821fb83a784398037defc64060a2emanojdnl ## Process this file with autoconf to produce a configure script
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzAC_PREREQ(2.13)
7abe86bacd7821fb83a784398037defc64060a2emanojdnl ## This is the central place where Apache's version should be kept.
cd47196ef7dd7647418fa9b9cb8297cfa614c100rbbdnl AM_INIT_AUTOMAKE(apache, 2.0-dev)
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzVERSION="apache-2.0-dev"
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzAPACHE_VERSION=$VERSION
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzAPACHE_SUBST(APACHE_VERSION)
8d09f97dc349d4658d751199b77564a9b09ccec7niqtest "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantztest "$prefix" = "NONE" && prefix='/usr/local'
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholesdnl Absolute source/build directory
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholesabs_srcdir=`(cd $srcdir && pwd)`
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholesabs_builddir=`pwd`
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzAPACHE_CONFIG_NICE(config.nice)
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzdnl If the source dir is not equal to the build dir,
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzdnl then we are running in VPATH mode.
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzif test "$abs_builddir" != "$abs_srcdir"; then
84572252cfafd33c91d893b34dec34fcbca34371nddnl ## Run configure for packages Apache uses
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholesdnl ## Preload our OS configuration
367d146f245f3b1c9f77c18e6ec591b52e0b344cbnicholesdnl ## Check for programs
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfAC_PROG_CPP
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfAC_PROG_INSTALL
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfdnl AC_PROG_RANLIB
4726a8c69bfb6a4666875b83dc25f6d2738c3dc4rjungdnl AC_PATH_PROG(PERL_PATH, perl)
4726a8c69bfb6a4666875b83dc25f6d2738c3dc4rjungREENTRANCY_FLAGS
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfdnl various OS checks that apparently set required flags
65f6e321663b3fd0f93d8b47b4df05f189de6cf1sfAC_ISC_POSIX
1fc7668ad3646be5c199f967514b7988708b8fb5rpluemdnl ## Check for libraries
480706fbb16436bfdff23c83c8993875ae7ece92minfrindnl ## Check for header files
e684537a0db1085ac01f3743e1630ebe9bfdaf10bnicholesdnl I think these are just used all over the place, so just check for
e684537a0db1085ac01f3743e1630ebe9bfdaf10bnicholesdnl them at the base of the tree. If some are specific to a single
3340850c6856d1652d190f459aba81b4f350f000jerenkrantzdnl directory, they should be moved (Comment #Spoon)
b4a287513d176e4355dd56ea47b27228e0e5d75fjerenkrantzdnl Regarding standard header files: AC_HEADER_STDC doesn't set symbols
322b350d0f1ac750b112ec15481a33efc92d182cjerenkrantzdnl HAVE_STRING_H, HAVE_STDLIB_H, etc., so those are checked for
e9f8410b788ef1e6f1baed6c706ffdf3da395a16jerenkrantzdnl explicitly so that the normal HAVE_xxx_H symbol is defined.
e9f8410b788ef1e6f1baed6c706ffdf3da395a16jerenkrantzAC_HEADER_STDC
7416a4d524cc7456c90a155e06fae5ac6c2d0288trawickAC_CHECK_HEADERS( \
pwd.h \
grp.h \
AC_CHECK_DEFINE(EAGAIN, errno.h)
EXTRA_CFLAGS="$EXTRA_CFLAGS -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/lib/apr/include"
INCLUDES="$INCLUDES -I\$(top_builddir)/include -I\$(top_builddir)/lib/apr/include"
esyscmd(./helpers/config-stubs .)
$SHELL $srcdir/ltconfig --output=shlibtool --disable-static --srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh
dnl All others are created dynamically by rules.mk.
dnl ## Build modules.c
rm -f $srcdir/modules.c
echo "#define SUEXEC_BIN \"$bindir/suexec\"" >> ${path_h}.new
echo "#define SERVER_CONFIG_FILE \"conf/$progname.conf\"" >> ${path_h}.new
cmp ${path_h}.new ${path_h} >/dev/null 2>&1
path_h=./include/ap_config_path.h
AC_OUTPUT($APACHE_OUTPUT_FILES support/apxs)