bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / modules / generators / config5.m4
1 dnl modules enabled in this directory by default
2
3 dnl APACHE_MODULE(name, helptext[, objects[, structname[, default[, config]]]])
4
5 APACHE_MODPATH_INIT(generators)
6
7 APACHE_MODULE(status, process/thread monitoring, , , yes)
8 APACHE_MODULE(autoindex, directory listing, , , yes)
9 APACHE_MODULE(asis, as-is filetypes, , , yes)
10 APACHE_MODULE(info, server information, , , most)
11 APACHE_MODULE(suexec, set uid and gid for spawned processes, , , no, [
12               other_targets=suexec ] )
13
14 APR_ADDTO(LT_LDFLAGS,-export-dynamic)
15
16 if test "$apache_cv_mpm" = "worker" -o "$apache_cv_mpm" = "perchild"; then
17 # if we are using a threaded MPM, we will get better performance with
18 # mod_cgid, so make it the default.
19     APACHE_MODULE(cgid, CGI scripts, , , yes, [
20     case $host in
21       *-solaris2*)
22         case `uname -r` in
23           5.10)
24           dnl Does the system have the appropriate patches?
25           case `uname -p` in
26             i386)
27               patch_id="120665"
28               ;;
29             sparc)
30               patch_id="120664"
31               ;;
32             *)
33               AC_MSG_WARN([Unknown platform])
34               patch_id="120664"
35               ;;
36           esac
37           AC_MSG_CHECKING([for Solaris patch $patch_id])
38           showrev -p | grep "$patch_id" >/dev/null 2>&1
39           if test $? -eq 1; then
40           dnl Solaris 11 (next release) as of snv_19 doesn't have this problem.
41           dnl It may be possible to use /kernel/drv/tl from later releases.
42           AC_MSG_ERROR([Please apply either patch # 120664 (Sparc) or # 120665 (x86).
43 Without these patches, mod_cgid is non-functional on Solaris 10 due to an OS
44 bug with AF_UNIX sockets.
45 If you can not apply these patches, you can do one of the following:
46  - run configure with --disable-cgid
47  - switch to the prefork MPM
48 For more info: <http://issues.apache.org/bugzilla/show_bug.cgi?id=34264>])
49           else
50             AC_MSG_RESULT(yes)
51           fi
52           ;;
53         esac
54         ;;
55     esac
56   ])
57     APACHE_MODULE(cgi, CGI scripts, , , no)
58 else
59 # if we are using a non-threaded MPM, it makes little sense to use
60 # mod_cgid, and it just opens up holes we don't need.  Make mod_cgi the
61 # default
62     APACHE_MODULE(cgi, CGI scripts, , , yes)
63     APACHE_MODULE(cgid, CGI scripts, , , no)
64 fi
65
66 APACHE_MODPATH_FINISH