configure.in revision f965133b20eaa5a738d4f2d0054d24289cfcfd7a
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl Autoconf configuration for Apache httpd
fd9abdda70912b99b24e3bf1a38f26fde908a74cnddnl
fd9abdda70912b99b24e3bf1a38f26fde908a74cnddnl Use ./buildconf to produce a configure script
fd9abdda70912b99b24e3bf1a38f26fde908a74cnddnl
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_PREREQ(2.13)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_INIT(ABOUT_APACHE)
5a58787efeb02a1c3f06569d019ad81fd2efa06end
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletcAC_CONFIG_HEADER(include/ap_config_auto.h)
5a58787efeb02a1c3f06569d019ad81fd2efa06endAC_CONFIG_AUX_DIR(srclib/apr/build)
5a58787efeb02a1c3f06569d019ad81fd2efa06end
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowendnl #
2e545ce2450a9953665f701bb05350f0d3f26275nddnl # Include our own M4 macros along with those for APR and libtool
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowendnl #
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowensinclude(srclib/apr/build/apr_common.m4)
5a58787efeb02a1c3f06569d019ad81fd2efa06endsinclude(srclib/apr/build/apr_network.m4)
5a58787efeb02a1c3f06569d019ad81fd2efa06endsinclude(srclib/apr/build/apr_threads.m4)
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowensinclude(acinclude.m4)
3f08db06526d6901aa08c110b5bc7dde6bc39905nd
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl Save user-defined environment settings for later restoration
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl
5a58787efeb02a1c3f06569d019ad81fd2efa06endAPR_SAVE_THE_ENVIRONMENT(CPPFLAGS)
ab0204844dcf70616de77d7deef9feb30c634072rbowenAPR_SAVE_THE_ENVIRONMENT(CFLAGS)
3b3b7fc78d1f5bfc2769903375050048ff41ff26ndAPR_SAVE_THE_ENVIRONMENT(CXXFLAGS)
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7ndAPR_SAVE_THE_ENVIRONMENT(LDFLAGS)
e8df3f2d5908b6903c510c8e839a5db27d1e104bgryzorAPR_SAVE_THE_ENVIRONMENT(LIBS)
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0ndAPR_SAVE_THE_ENVIRONMENT(INCLUDES)
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung
3b3b7fc78d1f5bfc2769903375050048ff41ff26nddnl Generate ./config.nice for reproducing runs of configure
3b3b7fc78d1f5bfc2769903375050048ff41ff26nddnl
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPR_CONFIG_NICE(config.nice)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
5a58787efeb02a1c3f06569d019ad81fd2efa06endnl='
5a58787efeb02a1c3f06569d019ad81fd2efa06end'
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl XXX we can't just use AC_PREFIX_DEFAULT because that isn't subbed in
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl by configure until it is too late. Is that how it should be or not?
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl Something seems broken here.
5a58787efeb02a1c3f06569d019ad81fd2efa06endAC_PREFIX_DEFAULT(/usr/local/apache2)
5a58787efeb02a1c3f06569d019ad81fd2efa06endtest "$prefix" = "NONE" && prefix='/usr/local/apache2'
5a58787efeb02a1c3f06569d019ad81fd2efa06endtest "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
5a58787efeb02a1c3f06569d019ad81fd2efa06end
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedoohdnl ## Run configure for packages Apache uses
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl shared library support for these packages doesn't currently
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl work on some platforms
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_CANONICAL_SYSTEM
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenorig_prefix="$prefix"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenecho $ac_n "${nl}Configuring Apache Portable Runtime library ...${nl}"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPR_SUBDIR_CONFIG(srclib/apr, "$apache_apr_flags --prefix=$prefix")
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenecho $ac_n "${nl}Configuring Apache Portable Runtime Utility library...${nl}"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
5a58787efeb02a1c3f06569d019ad81fd2efa06endAPR_SUBDIR_CONFIG(srclib/apr-util, "--with-apr=../apr --prefix=$prefix")
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06endecho $ac_n "${nl}Configuring PCRE regular expression library ...${nl}"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPR_SUBDIR_CONFIG(srclib/pcre, "--prefix=$prefix")
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenecho $ac_n "${nl}Configuring Apache httpd ...${nl}"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenecho $ac_n "obtaining flag settings from the sub-configures...${nl}"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen. ./srclib/apr/APRVARS
4e6fe58e85c14d942c1644747e145b1d901ba342rbowen
4e6fe58e85c14d942c1644747e145b1d901ba342rbowendnl Now that we have APR's EXTRA_flags in our environment, move them over
4e6fe58e85c14d942c1644747e145b1d901ba342rbowendnl to the normal variables to avoid duplications and use them for testing.
a55271a69085520100823b73bd2060fb123bbfb0humbedoohdnl We ignore EXTRA_INCLUDES because our own includes will encompass them.
a55271a69085520100823b73bd2060fb123bbfb0humbedoohdnl
a55271a69085520100823b73bd2060fb123bbfb0humbedoohAPR_ADDTO(CFLAGS, $EXTRA_CFLAGS)
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenAPR_ADDTO(CPPFLAGS, $EXTRA_CPPFLAGS)
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenAPR_ADDTO(LDFLAGS, $EXTRA_LDFLAGS)
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenAPR_ADDTO(LIBS, $EXTRA_LIBS)
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenEXTRA_CFLAGS=
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenEXTRA_CPPFLAGS=
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenEXTRA_LDFLAGS=
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenEXTRA_LIBS=
838d5ac1582d50020a146d747b64d64548fa8c92rbowenEXTRA_INCLUDES=
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl Absolute source/build directory
838d5ac1582d50020a146d747b64d64548fa8c92rbowenabs_srcdir=`(cd $srcdir && pwd)`
4e6fe58e85c14d942c1644747e145b1d901ba342rbowenabs_builddir=`pwd`
4e6fe58e85c14d942c1644747e145b1d901ba342rbowen
4e6fe58e85c14d942c1644747e145b1d901ba342rbowendnl If the source dir is not equal to the build dir,
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl then we are running in VPATH mode.
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06endif test "$abs_builddir" != "$abs_srcdir"; then
838d5ac1582d50020a146d747b64d64548fa8c92rbowen USE_VPATH=1
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_ADDTO(INCLUDES, [-I. -I\$(srcdir) -I\$(top_builddir)/os/\$(OS_DIR) -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_builddir)/server/mpm/\$(MPM_NAME) -I\$(top_srcdir)/server/mpm/\$(MPM_NAME) -I\$(top_builddir)/modules/http -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/proxy -I\$(top_builddir)/include -I\$(top_srcdir)/include -I\$(top_builddir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_builddir)/srclib/apr-util/include -I\$(top_srcdir)/srclib/apr-util/include])
838d5ac1582d50020a146d747b64d64548fa8c92rbowenelse
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_ADDTO(INCLUDES, [-I. -I\$(top_srcdir)/os/\$(OS_DIR) -I\$(top_srcdir)/server/mpm/\$(MPM_NAME) -I\$(top_srcdir)/modules/http -I\$(top_srcdir)/modules/proxy -I\$(top_srcdir)/include -I\$(top_srcdir)/srclib/apr/include -I\$(top_srcdir)/srclib/apr-util/include])
838d5ac1582d50020a146d747b64d64548fa8c92rbowenfi
20f499565e77defe9dab24dd85c02f38a1175855nd
267a7c2766f092ea7e8aa919548c03403fabccfbhumbedoohecho $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}"
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowencase $host in
53934620d9523ce77c2346ef14b5ba22106c5b26slive *os2*)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen # Use a custom made libtool replacement
53934620d9523ce77c2346ef14b5ba22106c5b26slive echo "using aplibtool"
53934620d9523ce77c2346ef14b5ba22106c5b26slive LIBTOOL="$abs_srcdir/srclib/apr/build/aplibtool"
53934620d9523ce77c2346ef14b5ba22106c5b26slive SH_LIBTOOL="$LIBTOOL --shared --export-all"
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen CORE_IMPLIB_FILE="ApacheCoreOS2.la"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen CORE_IMPLIB="$abs_srcdir/server/$CORE_IMPLIB_FILE"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen MK_IMPLIB="emximp"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen other_targets="$other_targets os2core"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen INSTALL_PROG_FLAGS="-e .exe"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen SHLTCFLAGS=""
e9425c93ba098a7844e138a61e1be5f46d2aa2ddnd LTCFLAGS=""
4aa603e6448b99f9371397d439795c91a93637eand ;;
419d55842022e9e257941bfe226549661fb2c6c7humbedooh *)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen if test "x$LTFLAGS" = "x"; then
838d5ac1582d50020a146d747b64d64548fa8c92rbowen LTFLAGS='--silent'
838d5ac1582d50020a146d747b64d64548fa8c92rbowen fi
838d5ac1582d50020a146d747b64d64548fa8c92rbowen LIBTOOL='$(SHELL) $(top_builddir)/srclib/apr/libtool $(LTFLAGS)'
838d5ac1582d50020a146d747b64d64548fa8c92rbowen libtoolversion=`$abs_builddir/srclib/apr/libtool --version`
838d5ac1582d50020a146d747b64d64548fa8c92rbowen case $libtoolversion in
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen *1.4*)
33f5e027b85636ab978d3f8e2c74b07e260f60b4erikabele SH_LIBTOOL='$(LIBTOOL)'
20f499565e77defe9dab24dd85c02f38a1175855nd SHLTCFLAGS="-prefer-pic"
419d55842022e9e257941bfe226549661fb2c6c7humbedooh LTCFLAGS="-prefer-non-pic -static"
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen ;;
33f5e027b85636ab978d3f8e2c74b07e260f60b4erikabele *)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen SH_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool $(LTFLAGS)'
838d5ac1582d50020a146d747b64d64548fa8c92rbowen SHLTCFLAGS=""
838d5ac1582d50020a146d747b64d64548fa8c92rbowen LTCFLAGS=""
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen esac
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen ;;
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenesac
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPACHE_SUBST(SHLTCFLAGS)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAPACHE_SUBST(LTCFLAGS)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAP_SIG_GRACEFUL=USR1
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowencase $host in
33f5e027b85636ab978d3f8e2c74b07e260f60b4erikabele *-apple-aux3*)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_SETVAR(APACHE_MPM, [prefork])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *-beos*)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_SETVAR(APACHE_MPM, [beos])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *os2_emx*)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_SETVAR(APACHE_MPM, [mpmt_os2])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *-linux-*)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen case `uname -r` in
838d5ac1582d50020a146d747b64d64548fa8c92rbowen 2.0* )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AP_SIG_GRACEFUL=WINCH
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen 2.[[2-9]]* )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen * )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf esac
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen ;;
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen *486-*-bsdi* | *-netbsd* | *-freebsd* | *-apple-darwin* | *-dec-osf* | *-qnx)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
5a58787efeb02a1c3f06569d019ad81fd2efa06end *-solaris2*)
5a58787efeb02a1c3f06569d019ad81fd2efa06end dnl This is a hack -- we should be using AC_TRY_RUN instead
5a58787efeb02a1c3f06569d019ad81fd2efa06end ap_platform_runtime_link_flag="-R"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *cygwin*)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen APR_SETVAR(APACHE_MPM, [prefork])
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowen APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen ;;
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenesac
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl Process command line arguments. This is done early in the process so the
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl user can get feedback quickly in case of an error.
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowendnl ### need to move some of the arguments "up here"
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl ## Check for programs
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_PATH_PROG(RM, rm)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAC_PROG_AWK
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_PROG_CC
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_PROG_CPP
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_PROG_INSTALL
5996a8bd615ff844dd85872452570ae6d1bdb064sliveAC_PROG_LN_S
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_CHECK_TOOL(RANLIB, ranlib, true)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowendnl AC_PATH_PROG(PERL_PATH, perl)
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl various OS checks that apparently set required flags
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_AIX
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_ISC_POSIX
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowenAC_MINIX
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl ## Check for libraries
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl ## Check for header files
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl I think these are just used all over the place, so just check for
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl them at the base of the tree. If some are specific to a single
5996a8bd615ff844dd85872452570ae6d1bdb064slivednl directory, they should be moved (Comment #Spoon)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl Regarding standard header files: AC_HEADER_STDC doesn't set symbols
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl HAVE_STRING_H, HAVE_STDLIB_H, etc., so those are checked for
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl explicitly so that the normal HAVE_xxx_H symbol is defined.
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_HEADER_STDC
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAC_CHECK_HEADERS( \
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenstring.h \
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenlimits.h \
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowenunistd.h \
838d5ac1582d50020a146d747b64d64548fa8c92rbowensys/socket.h \
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenpwd.h \
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowengrp.h \
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenstrings.h \
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowensys/processor.h \
838d5ac1582d50020a146d747b64d64548fa8c92rbowensys/sem.h
838d5ac1582d50020a146d747b64d64548fa8c92rbowen)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_HEADER_SYS_WAIT
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl ## Check for typedefs, structures, and compiler characteristics.
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_C_CONST
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenif test "$ac_cv_prog_gcc" = "yes"; then
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen APR_ADDTO(NOTEST_CPPFLAGS,-DAP_HAVE_DESIGNATED_INITIALIZER)
5a58787efeb02a1c3f06569d019ad81fd2efa06endfi
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06enddnl ## Check for library functions
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowendnl See Comment #Spoon
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_CHECK_FUNCS( \
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowengetpwnam \
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowengetgrnam \
dc643bc37eec0af989b9623deaa81fb9499b6c8erboweninitgroups \
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenbindprocessor \
838d5ac1582d50020a146d747b64d64548fa8c92rbowen)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl ## Set up any appropriate OS-specific environment variables for apachectl
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowencase $host in
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *aix*)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen # for 32-bit builds, increase MAXDATA to allow lots of threads
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen if test x$COMPILE_MODE != 64; then
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen OS_SPECIFIC_VARS="set LDR_CNTRL=\"MAXDATA=0x80000000\" ; export LDR_CNTRL ;"
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen fi
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen OS_SPECIFIC_VARS="$OS_SPECIFIC_VARS set AIXTHREAD_SCOPE=S ; export AIXTHREAD_SCOPE"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *os390*)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen OS_SPECIFIC_VARS="export _CEE_RUNOPTS=\"STACK(,,ANY)\" ; export _EDC_ADD_ERRNO2=1"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen OS_SPECIFIC_VARS=""
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenesac
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAC_ARG_WITH(port,APACHE_HELP_STRING(--with-port=PORT,Port on which to listen (default is 80)),
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen [if test "$withval" = "yes"; then AC_MSG_ERROR('option --with-port requires a value (the TCP port number)'); else PORT="$withval"; fi],
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen [PORT=80])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
7058ea0c9aabcc4e3a7cb2baa076645715c452d0sliveAC_ARG_ENABLE(maintainer-mode,APACHE_HELP_STRING(--enable-maintainer-mode,Turn on debugging and compile time warnings),
838d5ac1582d50020a146d747b64d64548fa8c92rbowen[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APR_ADDTO(CPPFLAGS, -DAP_DEBUG)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen])dnl
93a89127fafc9d64767c71d81f667bf5e31c2cfdnd
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPACHE_ENABLE_LAYOUT
838d5ac1582d50020a146d747b64d64548fa8c92rbowenprefix="$orig_prefix"
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_ENABLE_MODULES
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl reading config stubs
838d5ac1582d50020a146d747b64d64548fa8c92rbowenesyscmd(./build/config-stubs .)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_SUBST(progname)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_SUBST(MPM_LIB)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_SUBST(OS)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_SUBST(OS_DIR)
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowenAPACHE_SUBST(BUILTIN_LIBS)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_SUBST(SHLIBPATH_VAR)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_SUBST(OS_SPECIFIC_VARS)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenPRE_SHARED_CMDS='echo ""'
838d5ac1582d50020a146d747b64d64548fa8c92rbowenPOST_SHARED_CMDS='echo ""'
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl apache_need_shared tells us if Apache modules are being built as DSOs
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenif test "$apache_need_shared" = "yes"; then
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen if test -f $ac_aux_dir/ltconfig; then
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen fi
838d5ac1582d50020a146d747b64d64548fa8c92rbowen shared_build="shared-build"
838d5ac1582d50020a146d747b64d64548fa8c92rbowenfi
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl enable_so tells us if *any* modules can be built as DSOs
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenif test "$enable_so" = "yes"; then
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen case $host in
5a58787efeb02a1c3f06569d019ad81fd2efa06end *-ibm-aix*)
5a58787efeb02a1c3f06569d019ad81fd2efa06end HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-uXML_Parse -Wl,-bE:$abs_builddir/server/httpd.exp"
5a58787efeb02a1c3f06569d019ad81fd2efa06end UTIL_LDFLAGS="$UTIL_LDFLAGS -Wl,-uXML_Parse"
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen ;;
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen *beos)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen SH_LDFLAGS='$(top_builddir)/_APP_'
838d5ac1582d50020a146d747b64d64548fa8c92rbowen PRE_SHARED_CMDS='ln -s $(top_builddir)/httpd $(top_builddir)/_APP_'
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen POST_SHARED_CMDS='rm $(top_builddir)/_APP_'
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowen *os390)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen HTTPD_LDFLAGS="$HTTPD_LDFLAGS --main=$abs_srcdir/server/main.o --core-dll=$abs_srcdir/apachecore.dll"
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen SH_LDFLAGS="$SH_LDFLAGS --core-dll=$abs_srcdir/apachecore.dll"
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen esac
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenfi
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_SUBST(PRE_SHARED_CMDS)
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowenAPACHE_SUBST(POST_SHARED_CMDS)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPACHE_SUBST(shared_build)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_ARG_WITH(program-name,
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAPACHE_HELP_STRING(--with-program-name,alternate executable name),[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen progname="$withval" ], [
838d5ac1582d50020a146d747b64d64548fa8c92rbowen progname="httpd"] )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowen# SuExec parameters
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_ARG_WITH(suexec-bin,
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_HELP_STRING(--with-suexec-bin,Path to suexec binary),[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AC_DEFINE_UNQUOTED(SUEXEC_BIN, "$withval", [Path to suexec binary] )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen] )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
5a58787efeb02a1c3f06569d019ad81fd2efa06endAC_ARG_WITH(suexec-caller,
5a58787efeb02a1c3f06569d019ad81fd2efa06endAPACHE_HELP_STRING(--with-suexec-caller,User allowed to call SuExec),[
5a58787efeb02a1c3f06569d019ad81fd2efa06end AC_DEFINE_UNQUOTED(AP_HTTPD_USER, "$withval", [User allowed to call SuExec] ) ] )
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_ARG_WITH(suexec-userdir,
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_HELP_STRING(--with-suexec-userdir,User subdirectory),[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AC_DEFINE_UNQUOTED(AP_USERDIR_SUFFIX, "$withval", [User subdirectory] ) ] )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
160f60077e5a018a1f27f756e76f80d7bbc3f070rbowenAC_ARG_WITH(suexec-docroot,
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_HELP_STRING(--with-suexec-docroot,SuExec root directory),[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AC_DEFINE_UNQUOTED(AP_DOC_ROOT, "$withval", [SuExec root directory] ) ] )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_ARG_WITH(suexec-uidmin,
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPACHE_HELP_STRING(--with-suexec-uidmin,Minimal allowed UID),[
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen AC_DEFINE_UNQUOTED(AP_UID_MIN, $withval, [Minimum allowed UID] ) ] )
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_ARG_WITH(suexec-gidmin,
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAPACHE_HELP_STRING(--with-suexec-gidmin,Minimal allowed GID),[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AC_DEFINE_UNQUOTED(AP_GID_MIN, $withval, [Minimum allowed GID] ) ] )
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_ARG_WITH(suexec-logfile,
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPACHE_HELP_STRING(--with-suexec-logfile,Set the logfile),[
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen AC_DEFINE_UNQUOTED(AP_LOG_EXEC, "$withval", [SuExec log file] ) ] )
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAC_ARG_WITH(suexec-safepath,
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_HELP_STRING(--with-suexec-safepath,Set the safepath),[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AC_DEFINE_UNQUOTED(AP_SAFE_PATH, "$withval", [safe shell path for SuExec] ) ] )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_ARG_WITH(suexec-umask,
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_HELP_STRING(--with-suexec-umask,umask for suexec'd process),[
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AC_DEFINE_UNQUOTED(AP_SUEXEC_UMASK, 0$withval, [umask for suexec'd process] ) ] )
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl AP_LIB_DIRS specifies the additional libs from srclib/ that we need
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl AP_LIBS specifies the actual libraries. note we have some required libs.
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAP_LIBS="$abs_builddir/srclib/pcre/libpcre.la $abs_builddir/srclib/apr-util/libaprutil.la $AP_LIBS"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl APR should go after the other libs, so the right symbols can be picked up
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAP_LIBS="$AP_LIBS $abs_builddir/srclib/apr/libapr.la"
5a58787efeb02a1c3f06569d019ad81fd2efa06endAPACHE_SUBST(AP_LIB_DIRS)
5a58787efeb02a1c3f06569d019ad81fd2efa06endAPACHE_SUBST(AP_LIBS)
5a58787efeb02a1c3f06569d019ad81fd2efa06end
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_DEFINE(AP_USING_AUTOCONF, 1,
838d5ac1582d50020a146d747b64d64548fa8c92rbowen [Using autoconf to configure Apache])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenif test "$SINGLE_LISTEN_UNSERIALIZED_ACCEPT" = "1"; then
838d5ac1582d50020a146d747b64d64548fa8c92rbowen AC_DEFINE(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, 1,
838d5ac1582d50020a146d747b64d64548fa8c92rbowen [This platform doesn't suffer from the thundering herd problem])
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenfi
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_DEFINE_UNQUOTED(AP_SIG_GRACEFUL, SIG$AP_SIG_GRACEFUL, [Signal used to gracefully restart])
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_DEFINE_UNQUOTED(AP_SIG_GRACEFUL_STRING, "SIG$AP_SIG_GRACEFUL", [Signal used to gracefully restart (as a quoted string)])
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_DEFINE_UNQUOTED(AP_SIG_GRACEFUL_SHORT, $AP_SIG_GRACEFUL, [Signal used to gracefully restart (without SIG prefix)])
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAP_SIG_GRACEFUL_SHORT=$AP_SIG_GRACEFUL
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAP_SIG_GRACEFUL=SIG$AP_SIG_GRACEFUL_SHORT
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_SUBST(AP_SIG_GRACEFUL)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAC_SUBST(AP_SIG_GRACEFUL_STRING)
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711sliveAC_SUBST(AP_SIG_GRACEFUL_SHORT)
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711slive
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711slivednl check for endianness
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711sliveif test "$cross_compiling" = "no"; then
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711slive AC_C_BIGENDIAN
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsfelse
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711slive AC_DEFINE(AP_UNKNOWN_BYTE_ORDER,1,
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711slive [byte order is unknown due to cross-compilation])
a3c2c9d7f7f8b1ca10d108398b64ace6fc57c711slivefi
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_FAST_OUTPUT(Makefile modules/Makefile srclib/Makefile)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_FAST_OUTPUT(os/beos/Makefile os/os2/Makefile os/Makefile)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_FAST_OUTPUT(os/unix/Makefile server/Makefile)
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPACHE_FAST_OUTPUT(support/Makefile srclib/pcre/Makefile)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenfor i in $AP_LIB_DIRS; do
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen APACHE_FAST_OUTPUT(srclib/$i/Makefile)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowendone
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenif test -d ./test; then
838d5ac1582d50020a146d747b64d64548fa8c92rbowen APACHE_FAST_OUTPUT(test/Makefile)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenfi
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl get the exported vars from APRUTIL
838d5ac1582d50020a146d747b64d64548fa8c92rbowen. ./srclib/apr-util/export_vars.sh
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAPR_ADDTO(LIBS, $APRUTIL_EXPORT_LIBS)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAP_LIBS="$AP_LIBS $LIBTOOL_LIBS"
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowendnl ## Finalize the variables
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenecho $ac_n "${nl}Restore user-defined environment settings...${nl}"
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAPR_RESTORE_THE_ENVIRONMENT(CPPFLAGS, EXTRA_)
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowenAPR_RESTORE_THE_ENVIRONMENT(CFLAGS, EXTRA_)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPR_RESTORE_THE_ENVIRONMENT(CXXFLAGS, EXTRA_)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPR_RESTORE_THE_ENVIRONMENT(LDFLAGS, EXTRA_)
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPR_RESTORE_THE_ENVIRONMENT(LIBS, EXTRA_)
db110d4edeb95018cff2232d9a9cd7a505739dc5erikabeleAPR_RESTORE_THE_ENVIRONMENT(INCLUDES, EXTRA_)
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenecho $ac_n "${nl}Construct makefiles and header files...${nl}"
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAPACHE_GEN_CONFIG_VARS
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowendnl ## Build modules.c
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenrm -f modules.c
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenecho $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowen
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_DEFINE_UNQUOTED(HTTPD_ROOT, "$prefix",
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen [Root directory of the Apache install area])
dc643bc37eec0af989b9623deaa81fb9499b6c8erbowenAC_DEFINE_UNQUOTED(SERVER_CONFIG_FILE, "conf/$progname.conf",
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen [Location of the config file, relative to the Apache root directory])
838d5ac1582d50020a146d747b64d64548fa8c92rbowenAC_DEFINE_UNQUOTED(APACHE_MPM_DIR, "$MPM_DIR",
838d5ac1582d50020a146d747b64d64548fa8c92rbowen [Location of the source for the current MPM])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
838d5ac1582d50020a146d747b64d64548fa8c92rbowenperlbin=`$ac_aux_dir/PrintPath perl`
db110d4edeb95018cff2232d9a9cd7a505739dc5erikabeleif test "x$perlbin" = "x"; then
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen perlbin="/replace/with/path/to/perl/interpreter"
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coarfi
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowenAC_SUBST(perlbin)
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowendnl If we are running on BSD/OS, we need to use the BSD .include syntax.
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowenBSD_MAKEFILE=no
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowencase $host in
948e3a11e34f0434c50491dc89ede8f1ebadb20bjailletc*bsdi*)
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen # Check whether they've installed GNU make
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen if make --version > /dev/null 2>&1; then
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen true
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen else
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen BSD_MAKEFILE=yes
ef4ce729f5fd58437a4c41d1166b9e9013db6c5frbowen fi
838d5ac1582d50020a146d747b64d64548fa8c92rbowen ;;
838d5ac1582d50020a146d747b64d64548fa8c92rbowenesac
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowenAC_OUTPUT($APACHE_OUTPUT_FILES support/apxs support/apachectl support/dbmmanage support/envvars-std support/log_server_status support/logresolve.pl support/phf_abuse_log.cgi support/split-logfile build/rules.mk,,[
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen APACHE_GEN_MAKEFILES
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen])
838d5ac1582d50020a146d747b64d64548fa8c92rbowen
ef11aba17c2ae6364e2f1329b24d205acf6dc4e4rbowen