]> granicus.if.org Git - apache/blob - hints.m4
The big change. This is part 3 of the apr-util symbols rename, please
[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
10   echo "Apache hints file rules for $host already applied"
11
12 else
13
14   DID_APACHE_PRELOAD="yes"; export DID_APACHE_PRELOAD
15
16   echo "Applying Apache hints file rules for $host"
17
18   case "$host" in
19     *-apple-aux3*)
20         APR_SETVAR(APACHE_MPM, [prefork])
21         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
22         ;;
23     *os2_emx*)
24         APR_SETVAR(APACHE_MPM, [spmt_os2])
25         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
26         ;;
27     *-linux-*)
28         case `uname -r` in
29             2.2* ) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
30                    ;;
31             * )
32                    ;;
33         esac
34         ;;
35     *486-*-bsdi*)
36         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
37         ;;
38     *-netbsd*)
39         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
40         ;;
41     *-freebsd*)
42         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
43         ;;
44 dnl    *-apple-rhapsody*)
45 dnl     APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
46 dnl     ;;
47     *-apple-darwin*)
48         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
49         ;;
50     *-dec-osf*)
51         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
52         ;;
53     *-qnx)
54         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
55         ;;
56     *-beos*)
57         APR_SETVAR(APACHE_MPM, [beos])
58         APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1])
59         ;;
60   esac
61   APR_DOEXTRA
62 fi
63 ])