8 htcacheclean_LTFLAGS=""
10 fcgistarter_LTFLAGS=""
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])
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])
33 APR_REMOVEFROM(htpasswd_LTFLAGS, [-static])
36 APACHE_SUBST(htpasswd_LTFLAGS)
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])
42 APR_REMOVEFROM(htdigest_LTFLAGS, [-static])
45 APACHE_SUBST(htdigest_LTFLAGS)
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])
51 APR_REMOVEFROM(rotatelogs_LTFLAGS, [-static])
54 APACHE_SUBST(rotatelogs_LTFLAGS)
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])
60 APR_REMOVEFROM(logresolve_LTFLAGS, [-static])
63 APACHE_SUBST(logresolve_LTFLAGS)
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])
69 APR_REMOVEFROM(htdbm_LTFLAGS, [-static])
72 APACHE_SUBST(htdbm_LTFLAGS)
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])
78 APR_REMOVEFROM(ab_LTFLAGS, [-static])
81 APACHE_SUBST(ab_LTFLAGS)
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])
87 APR_REMOVEFROM(checkgid_LTFLAGS, [-static])
90 APACHE_SUBST(checkgid_LTFLAGS)
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])
96 APR_REMOVEFROM(htcacheclean_LTFLAGS, [-static])
99 APACHE_SUBST(htcacheclean_LTFLAGS)
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])
105 APR_REMOVEFROM(httxt2dbm, [-static])
108 APACHE_SUBST(httxt2dbm_LTFLAGS)
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])
114 APR_REMOVEFROM(fcgistarter, [-static])
117 APACHE_SUBST(fcgistarter_LTFLAGS)
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])
123 APR_REMOVEFROM(firehose, [-static])
126 APACHE_SUBST(firehose_LTFLAGS)
128 # Configure or check which of the non-portable support programs can be enabled.
130 NONPORTABLE_SUPPORT=""
135 NONPORTABLE_SUPPORT="checkgid fcgistarter"
138 APACHE_SUBST(NONPORTABLE_SUPPORT)
140 # Configure the ulimit -n command used by apachectl.
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"
151 # Tru64: -H is for setting, not retrieving
152 APACHECTL_ULIMIT="ulimit -S -n \`ulimit -h -n\`"
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\`"
162 APACHE_SUBST(APACHECTL_ULIMIT)