]> granicus.if.org Git - apache/blob - hints.m4
note that rewrite map expansions work in rewriteconds
[apache] / hints.m4
1 dnl
2 dnl APR_PRELOAD
3 dnl
4 dnl  Preload various ENV/makefile paramsm such as CC, CFLAGS, etc
5 dnl  based on outside knowledge
6 dnl
7 AC_DEFUN(APACHE_PRELOAD, [
8 if test "$DID_APACHE_PRELOAD" != "yes" ; then
9   DID_APACHE_PRELOAD="yes"; export DID_APACHE_PRELOAD
10
11   echo "Applying Apache hints file rules for $host"
12
13   case "$host" in
14     *-apple-aux3*)
15         APR_SETVAR(APACHE_MPM, [prefork])
16         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
17         ;;
18     *os2_emx*)
19         APR_SETVAR(APACHE_MPM, [spmt_os2])
20         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
21         ;;
22     *-linux-*)
23         case `uname -r` in
24             2.2* ) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
25                    ;;
26             * )
27                    ;;
28         esac
29         ;;
30     *486-*-bsdi*)
31         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
32         ;;
33     *-netbsd*)
34         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
35         ;;
36     *-freebsd*)
37         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
38         ;;
39 dnl    *-apple-rhapsody*)
40 dnl     APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
41 dnl     ;;
42     *-apple-darwin*)
43         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
44         ;;
45     *-dec-osf*)
46         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
47         ;;
48     *-qnx)
49         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
50         ;;
51     *-beos*)
52         APR_SETVAR(APACHE_MPM, [beos])
53         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
54         ;;
55   esac
56   APR_DOEXTRA
57 fi
58 ])