upload http
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / support / config.m4
1 htpasswd_LTFLAGS=""
2 htdigest_LTFLAGS=""
3 rotatelogs_LTFLAGS=""
4 logresolve_LTFLAGS=""
5 htdbm_LTFLAGS=""
6 ab_LTFLAGS=""
7 checkgid_LTFLAGS=""
8
9 AC_ARG_ENABLE(static-support,APACHE_HELP_STRING(--enable-static-support,Build a statically linked version the support binaries),[
10 if test "$enableval" = "yes" ; then
11   APR_ADDTO(htpasswd_LTFLAGS, [-static])
12   APR_ADDTO(htdigest_LTFLAGS, [-static])
13   APR_ADDTO(rotatelogs_LTFLAGS, [-static])
14   APR_ADDTO(logresolve_LTFLAGS, [-static])
15   APR_ADDTO(htdbm_LTFLAGS, [-static])
16   APR_ADDTO(ab_LTFLAGS, [-static])
17   APR_ADDTO(checkgid_LTFLAGS, [-static])
18 fi
19 ])
20
21 AC_ARG_ENABLE(static-htpasswd,APACHE_HELP_STRING(--enable-static-htpasswd,Build a statically linked version of htpasswd),[
22 if test "$enableval" = "yes" ; then
23   APR_ADDTO(htpasswd_LTFLAGS, [-static])
24 else
25   APR_REMOVEFROM(htpasswd_LTFLAGS, [-static])
26 fi
27 ])
28 APACHE_SUBST(htpasswd_LTFLAGS)
29
30 AC_ARG_ENABLE(static-htdigest,APACHE_HELP_STRING(--enable-static-htdigest,Build a statically linked version of htdigest),[
31 if test "$enableval" = "yes" ; then
32   APR_ADDTO(htdigest_LTFLAGS, [-static])
33 else
34   APR_REMOVEFROM(htdigest_LTFLAGS, [-static])
35 fi
36 ])
37 APACHE_SUBST(htdigest_LTFLAGS)
38
39 AC_ARG_ENABLE(static-rotatelogs,APACHE_HELP_STRING(--enable-static-rotatelogs,Build a statically linked version of rotatelogs),[
40 if test "$enableval" = "yes" ; then
41   APR_ADDTO(rotatelogs_LTFLAGS, [-static])
42 else
43   APR_REMOVEFROM(rotatelogs_LTFLAGS, [-static])
44 fi
45 ])
46 APACHE_SUBST(rotatelogs_LTFLAGS)
47
48 AC_ARG_ENABLE(static-logresolve,APACHE_HELP_STRING(--enable-static-logresolve,Build a statically linked version of logresolve),[
49 if test "$enableval" = "yes" ; then
50   APR_ADDTO(logresolve_LTFLAGS, [-static])
51 else
52   APR_REMOVEFROM(logresolve_LTFLAGS, [-static])
53 fi
54 ])
55 APACHE_SUBST(logresolve_LTFLAGS)
56
57 AC_ARG_ENABLE(static-htdbm,APACHE_HELP_STRING(--enable-static-htdbm,Build a statically linked version of htdbm),[
58 if test "$enableval" = "yes" ; then
59   APR_ADDTO(htdbm_LTFLAGS, [-static])
60 else
61   APR_REMOVEFROM(htdbm_LTFLAGS, [-static])
62 fi
63 ])
64 APACHE_SUBST(htdbm_LTFLAGS)
65
66 AC_ARG_ENABLE(static-ab,APACHE_HELP_STRING(--enable-static-ab,Build a statically linked version of ab),[
67 if test "$enableval" = "yes" ; then
68   APR_ADDTO(ab_LTFLAGS, [-static])
69 else
70   APR_REMOVEFROM(ab_LTFLAGS, [-static])
71 fi
72 ])
73 APACHE_SUBST(ab_LTFLAGS)
74
75 AC_ARG_ENABLE(static-checkgid,APACHE_HELP_STRING(--enable-static-checkgid,Build a statically linked version of checkgid),[
76 if test "$enableval" = "yes" ; then
77   APR_ADDTO(checkgid_LTFLAGS, [-static])
78 else
79   APR_REMOVEFROM(checkgid_LTFLAGS, [-static])
80 fi
81 ])
82 APACHE_SUBST(checkgid_LTFLAGS)
83
84 case $host in
85     *aix*)
86         # this works in any locale, unlike the default command below, which
87         # fails in a non-English locale if the hard limit is unlimited
88         # since the display of the limit will translate "unlimited", but
89         # ulimit only accepts English "unlimited" on input
90         APACHECTL_ULIMIT="ulimit -S -n unlimited"
91         ;;
92     *alpha*-dec-osf*)
93         # Tru64: -H is for setting, not retrieving
94         APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
95         ;;
96     *)
97         if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then
98             APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
99         else
100             APACHECTL_ULIMIT=""
101         fi
102         ;;
103 esac
104 APACHE_SUBST(APACHECTL_ULIMIT)