]> granicus.if.org Git - apache/blob - support/config.m4
Xforms.
[apache] / 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 htcacheclean_LTFLAGS=""
9 httxt2dbm_LTFLAGS=""
10 fcgistarter_LTFLAGS=""
11 firehose_LTFLAGS=""
12
13 AC_ARG_ENABLE(static-support,APACHE_HELP_STRING(--enable-static-support,Build a statically linked version of the support binaries),[
14 if test "$enableval" = "yes" ; then
15   APR_ADDTO(htpasswd_LTFLAGS, [-static])
16   APR_ADDTO(htdigest_LTFLAGS, [-static])
17   APR_ADDTO(rotatelogs_LTFLAGS, [-static])
18   APR_ADDTO(logresolve_LTFLAGS, [-static])
19   APR_ADDTO(htdbm_LTFLAGS, [-static])
20   APR_ADDTO(ab_LTFLAGS, [-static])
21   APR_ADDTO(checkgid_LTFLAGS, [-static])
22   APR_ADDTO(htcacheclean_LTFLAGS, [-static])
23   APR_ADDTO(httxt2dbm_LTFLAGS, [-static])
24   APR_ADDTO(fcgistarter_LTFLAGS, [-static])
25   APR_ADDTO(firehose_LTFLAGS, [-static])
26 fi
27 ])
28
29 AC_ARG_ENABLE(static-htpasswd,APACHE_HELP_STRING(--enable-static-htpasswd,Build a statically linked version of htpasswd),[
30 if test "$enableval" = "yes" ; then
31   APR_ADDTO(htpasswd_LTFLAGS, [-static])
32 else
33   APR_REMOVEFROM(htpasswd_LTFLAGS, [-static])
34 fi
35 ])
36 APACHE_SUBST(htpasswd_LTFLAGS)
37
38 AC_ARG_ENABLE(static-htdigest,APACHE_HELP_STRING(--enable-static-htdigest,Build a statically linked version of htdigest),[
39 if test "$enableval" = "yes" ; then
40   APR_ADDTO(htdigest_LTFLAGS, [-static])
41 else
42   APR_REMOVEFROM(htdigest_LTFLAGS, [-static])
43 fi
44 ])
45 APACHE_SUBST(htdigest_LTFLAGS)
46
47 AC_ARG_ENABLE(static-rotatelogs,APACHE_HELP_STRING(--enable-static-rotatelogs,Build a statically linked version of rotatelogs),[
48 if test "$enableval" = "yes" ; then
49   APR_ADDTO(rotatelogs_LTFLAGS, [-static])
50 else
51   APR_REMOVEFROM(rotatelogs_LTFLAGS, [-static])
52 fi
53 ])
54 APACHE_SUBST(rotatelogs_LTFLAGS)
55
56 AC_ARG_ENABLE(static-logresolve,APACHE_HELP_STRING(--enable-static-logresolve,Build a statically linked version of logresolve),[
57 if test "$enableval" = "yes" ; then
58   APR_ADDTO(logresolve_LTFLAGS, [-static])
59 else
60   APR_REMOVEFROM(logresolve_LTFLAGS, [-static])
61 fi
62 ])
63 APACHE_SUBST(logresolve_LTFLAGS)
64
65 AC_ARG_ENABLE(static-htdbm,APACHE_HELP_STRING(--enable-static-htdbm,Build a statically linked version of htdbm),[
66 if test "$enableval" = "yes" ; then
67   APR_ADDTO(htdbm_LTFLAGS, [-static])
68 else
69   APR_REMOVEFROM(htdbm_LTFLAGS, [-static])
70 fi
71 ])
72 APACHE_SUBST(htdbm_LTFLAGS)
73
74 AC_ARG_ENABLE(static-ab,APACHE_HELP_STRING(--enable-static-ab,Build a statically linked version of ab),[
75 if test "$enableval" = "yes" ; then
76   APR_ADDTO(ab_LTFLAGS, [-static])
77 else
78   APR_REMOVEFROM(ab_LTFLAGS, [-static])
79 fi
80 ])
81 APACHE_SUBST(ab_LTFLAGS)
82
83 AC_ARG_ENABLE(static-checkgid,APACHE_HELP_STRING(--enable-static-checkgid,Build a statically linked version of checkgid),[
84 if test "$enableval" = "yes" ; then
85   APR_ADDTO(checkgid_LTFLAGS, [-static])
86 else
87   APR_REMOVEFROM(checkgid_LTFLAGS, [-static])
88 fi
89 ])
90 APACHE_SUBST(checkgid_LTFLAGS)
91
92 AC_ARG_ENABLE(static-htcacheclean,APACHE_HELP_STRING(--enable-static-htcacheclean,Build a statically linked version of htcacheclean),[
93 if test "$enableval" = "yes" ; then
94   APR_ADDTO(htcacheclean_LTFLAGS, [-static])
95 else
96   APR_REMOVEFROM(htcacheclean_LTFLAGS, [-static])
97 fi
98 ])
99 APACHE_SUBST(htcacheclean_LTFLAGS)
100
101 AC_ARG_ENABLE(static-httxt2dbm,APACHE_HELP_STRING(--enable-static-httxt2dbm,Build a statically linked version of httxt2dbm),[
102 if test "$enableval" = "yes" ; then
103   APR_ADDTO(httxt2dbm_LTFLAGS, [-static])
104 else
105   APR_REMOVEFROM(httxt2dbm, [-static])
106 fi
107 ])
108 APACHE_SUBST(httxt2dbm_LTFLAGS)
109
110 AC_ARG_ENABLE(static-fcgistarter,APACHE_HELP_STRING(--enable-static-fcgistarter,Build a statically linked version of fcgistarter),[
111 if test "$enableval" = "yes" ; then
112   APR_ADDTO(fcgistarter_LTFLAGS, [-static])
113 else
114   APR_REMOVEFROM(fcgistarter, [-static])
115 fi
116 ])
117 APACHE_SUBST(fcgistarter_LTFLAGS)
118
119 AC_ARG_ENABLE(static-firehose,APACHE_HELP_STRING(--enable-static-firehose,Build a statically linked version of firehose),[
120 if test "$enableval" = "yes" ; then
121   APR_ADDTO(firehose_LTFLAGS, [-static])
122 else
123   APR_REMOVEFROM(firehose, [-static])
124 fi
125 ])
126 APACHE_SUBST(firehose_LTFLAGS)
127
128 # Configure or check which of the non-portable support programs can be enabled.
129
130 NONPORTABLE_SUPPORT=""
131 case $host in
132     *mingw*)
133         ;;
134     *)
135         NONPORTABLE_SUPPORT="checkgid fcgistarter"
136         ;;
137 esac
138 APACHE_SUBST(NONPORTABLE_SUPPORT)
139
140 # Configure the ulimit -n command used by apachectl.
141
142 case $host in
143     *aix*)
144         # this works in any locale, unlike the default command below, which
145         # fails in a non-English locale if the hard limit is unlimited
146         # since the display of the limit will translate "unlimited", but
147         # ulimit only accepts English "unlimited" on input
148         APACHECTL_ULIMIT="ulimit -S -n unlimited"
149         ;;
150     *alpha*-dec-osf*)
151         # Tru64: -H is for setting, not retrieving
152         APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
153         ;;
154     *)
155         if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT >/dev/null 2>&1; then
156             APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`"
157         else
158             APACHECTL_ULIMIT=""
159         fi
160         ;;
161 esac
162 APACHE_SUBST(APACHECTL_ULIMIT)