Mercurial > dovecot > original-hg > dovecot-1.2
annotate configure.in @ 224:e8863d6088fe HEAD
mremap() check
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 15 Sep 2002 09:31:25 +0300 |
parents | e5465a0c6964 |
children | bf1e284fece2 |
rev | line source |
---|---|
0 | 1 AC_INIT(src) |
2 | |
3 AM_CONFIG_HEADER(config.h) | |
96 | 4 AM_INIT_AUTOMAKE(dovecot, 0.97) |
0 | 5 |
6 AM_MAINTAINER_MODE | |
7 | |
8 AC_ISC_POSIX | |
9 AC_PROG_CC | |
10 AC_PROG_CPP | |
11 AC_STDC_HEADERS | |
12 AC_C_INLINE | |
13 AC_ARG_PROGRAM | |
14 AM_PROG_LIBTOOL | |
15 | |
224 | 16 AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h) |
17 AC_CHECK_HEADERS(sys/sendfile.h linux/mman.h) | |
0 | 18 |
19 # check posix headers | |
20 AC_CHECK_HEADERS(sys/time.h) | |
21 | |
22 AC_ARG_ENABLE(ipv6, | |
23 [ --enable-ipv6 Enable IPv6 support], | |
24 if test x$enableval = xno; then | |
25 want_ipv6=no | |
26 else | |
27 want_ipv6=yes | |
28 fi, | |
29 want_ipv6=no) | |
30 | |
31 AC_ARG_ENABLE(passwd, | |
32 [ --disable-passwd Disable /etc/passwd support], | |
33 if test x$enableval = xno; then | |
34 want_passwd=no | |
35 else | |
36 want_passwd=yes | |
37 fi, | |
38 want_passwd=yes) | |
39 | |
40 AC_ARG_ENABLE(passwd-file, | |
41 [ --disable-passwd-file Disable passwd-like file support], | |
42 if test x$enableval = xno; then | |
43 want_passwd_file=no | |
44 else | |
45 want_passwd_file=yes | |
46 fi, | |
47 want_passwd_file=yes) | |
48 | |
49 AC_ARG_ENABLE(shadow, | |
50 [ --disable-shadow Disable shadow password support], | |
51 if test x$enableval = xno; then | |
52 want_shadow=no | |
53 else | |
54 want_shadow=yes | |
55 fi, | |
56 want_shadow=yes) | |
57 | |
58 AC_ARG_ENABLE(pam, | |
59 [ --disable-pam Disable PAM support], | |
60 if test x$enableval = xno; then | |
61 want_pam=no | |
62 else | |
63 want_pam=yes | |
64 fi, | |
65 want_pam=yes) | |
66 | |
67 dnl ** | |
68 dnl ** just some generic stuff... | |
69 dnl ** | |
70 | |
71 AC_CHECK_FUNC(socket, [], [ | |
72 AC_CHECK_LIB(socket, socket, [ | |
73 LIBS="$LIBS -lsocket" | |
74 ]) | |
75 ]) | |
76 | |
77 AC_CHECK_FUNC(inet_addr, [], [ | |
78 AC_CHECK_LIB(nsl, inet_addr, [ | |
79 LIBS="$LIBS -lnsl" | |
80 ]) | |
81 ]) | |
82 | |
83 dnl * after -lsocket and -lnsl tests, inet_aton() may be in them | |
84 AC_CHECK_FUNCS(fcntl flock inet_aton sigaction getpagesize madvise setreuid) | |
85 AC_CHECK_FUNCS(strcasecmp stricmp vsnprintf memmove vsyslog) | |
86 | |
87 dnl * poll/select? | |
88 | |
89 AC_CHECK_FUNC(poll, [ | |
90 have_poll=yes | |
91 ], [ | |
92 have_poll=no | |
93 ]) | |
94 AM_CONDITIONAL(IOLOOP_POLL, test "$have_poll" = "yes") | |
95 | |
96 dnl * gcc specific options | |
97 if test "x$ac_cv_prog_gcc" = "xyes"; then | |
65
168e0bd616b6
added -Wcast-qual to list of "remember to test with" cflags :)
Timo Sirainen <tss@iki.fi>
parents:
60
diff
changeset
|
98 # -Wchar-subscripts -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations |
5
1b34ec11fff8
Message data is parsed in blocks (no longer entirely mmap()ed). Several
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
99 CFLAGS="$CFLAGS -Wall -W" |
0 | 100 fi |
101 | |
102 dnl * OS specific options | |
103 case "$host_os" in | |
104 hpux*) | |
105 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" | |
106 ;; | |
107 *) | |
108 ;; | |
109 esac | |
110 | |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
111 dnl * off_t checks, try to make it 64bit |
55
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
112 preferred_off_t_bits=64 |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
113 AC_DEFINE_UNQUOTED(_FILE_OFFSET_BITS, $preferred_off_t_bits) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
114 |
55
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
115 AC_CHECK_SIZEOF(int) |
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
116 AC_CHECK_SIZEOF(long) |
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
117 AC_CHECK_SIZEOF(long long) |
185 | 118 |
119 dnl * older autoconfs don't include sys/types.h, so do it manually | |
120 AC_MSG_CHECKING([size of ssize_t]) | |
121 AC_TRY_RUN([ | |
122 #include <stdio.h> | |
123 #include <sys/types.h> | |
124 int main() { | |
125 FILE *f=fopen("conftestval", "w"); | |
126 if (!f) exit(1); | |
127 fprintf(f, "%d\n", sizeof(ssize_t)); | |
128 exit(0); | |
129 } | |
130 ], [ | |
131 sizeof_ssize_t=`cat conftestval` | |
132 rm -f conftestval | |
133 ], [ | |
134 sizeof_ssize_t=0 | |
135 AC_ERROR([Unsupported ssize_t size]) | |
136 ]) | |
186
041fb6098877
result of ssize_t check wasn't reported
Timo Sirainen <tss@iki.fi>
parents:
185
diff
changeset
|
137 AC_MSG_RESULT($sizeof_ssize_t) |
55
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
138 |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
139 AC_MSG_CHECKING([size of off_t]) |
185 | 140 AC_TRY_RUN([ |
141 #include <stdio.h> | |
142 #include <sys/types.h> | |
143 int main() { | |
144 FILE *f=fopen("conftestval", "w"); | |
145 if (!f) exit(1); | |
146 fprintf(f, "%d\n", sizeof(off_t)); | |
147 exit(0); | |
148 } | |
149 ], [ | |
150 sizeof_off_t=`cat conftestval` | |
151 rm -f conftestval | |
152 ], [ | |
153 sizeof_off_t=0 | |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
154 AC_ERROR([Unsupported off_t size]) |
185 | 155 ]) |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
156 AC_MSG_RESULT($sizeof_off_t) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
157 |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
158 if test x$sizeof_off_t = x$ac_cv_sizeof_long; then |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
159 # try to use unsigned long always first |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
160 AC_DEFINE_UNQUOTED(OFF_T_MAX, LONG_MAX) |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
161 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "lu") |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
162 AC_DEFINE(UOFF_T_LONG) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
163 elif test x$sizeof_off_t = x$ac_cv_sizeof_int; then |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
164 # next try int |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
165 AC_DEFINE_UNQUOTED(OFF_T_MAX, INT_MAX) |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
166 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "u") |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
167 AC_DEFINE(UOFF_T_INT) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
168 elif test x$sizeof_off_t = x$ac_cv_sizeof_long_long; then |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
169 # and finally long long |
56 | 170 AC_DEFINE_UNQUOTED(OFF_T_MAX, LLONG_MAX) |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
171 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "llu") |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
172 AC_DEFINE(UOFF_T_LONG_LONG) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
173 else |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
174 AC_ERROR([Couldn't find integer type for off_t]) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
175 fi |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
176 |
185 | 177 if test x$sizeof_ssize_t = x$ac_cv_sizeof_int; then |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
178 AC_DEFINE_UNQUOTED(SSIZE_T_MAX, INT_MAX) |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
179 AC_DEFINE_UNQUOTED(PRIuSIZE_T, "u") |
191
e5465a0c6964
ssize_t should be checked against long before long long.
Timo Sirainen <tss@iki.fi>
parents:
186
diff
changeset
|
180 elif test x$sizeof_ssize_t = x$ac_cv_sizeof_long; then |
e5465a0c6964
ssize_t should be checked against long before long long.
Timo Sirainen <tss@iki.fi>
parents:
186
diff
changeset
|
181 AC_DEFINE_UNQUOTED(SSIZE_T_MAX, LONG_MAX) |
e5465a0c6964
ssize_t should be checked against long before long long.
Timo Sirainen <tss@iki.fi>
parents:
186
diff
changeset
|
182 AC_DEFINE_UNQUOTED(PRIuSIZE_T, "lu") |
185 | 183 elif test x$sizeof_ssize_t = x$ac_cv_sizeof_long_long; then |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
184 AC_DEFINE_UNQUOTED(SSIZE_T_MAX, LLONG_MAX) |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
185 AC_DEFINE_UNQUOTED(PRIuSIZE_T, "llu") |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
186 else |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
187 AC_ERROR([Couldn't find integer type for ssize_t]) |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
188 fi |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
189 |
179
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
190 if test x$ac_cv_sizeof_long_long != x0; then |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
191 AC_DEFINE(LARGEST_T_LONG_LONG) |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
192 else |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
193 AC_DEFINE(LARGEST_T_LONG) |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
194 fi |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
195 |
60
4ecb78d94182
Use 8 byte memory alignment by default. Also fixed index headers a bit to be
Timo Sirainen <tss@iki.fi>
parents:
56
diff
changeset
|
196 dnl * memory alignment, needed with non-x86 systems and should speed up |
4ecb78d94182
Use 8 byte memory alignment by default. Also fixed index headers a bit to be
Timo Sirainen <tss@iki.fi>
parents:
56
diff
changeset
|
197 dnl * x86 systems too. Use 8 with everyone to make sure 64bit lookups |
4ecb78d94182
Use 8 byte memory alignment by default. Also fixed index headers a bit to be
Timo Sirainen <tss@iki.fi>
parents:
56
diff
changeset
|
198 dnl * work. Currently it should also be safe to set to 4 if off_t == 32bit. |
4ecb78d94182
Use 8 byte memory alignment by default. Also fixed index headers a bit to be
Timo Sirainen <tss@iki.fi>
parents:
56
diff
changeset
|
199 dnl * With x86 it could be 1 as well if you want to save a bit space/memory. |
4ecb78d94182
Use 8 byte memory alignment by default. Also fixed index headers a bit to be
Timo Sirainen <tss@iki.fi>
parents:
56
diff
changeset
|
200 AC_DEFINE(MEM_ALIGN_SIZE, 8) |
0 | 201 |
202 dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would | |
203 dnl * accept header files where to find the typedef.. | |
204 AC_MSG_CHECKING([for socklen_t]) | |
205 AC_CACHE_VAL(i_cv_type_socklen_t, | |
206 [AC_TRY_COMPILE([ | |
207 #include <sys/types.h> | |
208 #include <sys/socket.h>], | |
209 [socklen_t t;], | |
210 i_cv_type_socklen_t=yes, | |
211 i_cv_type_socklen_t=no, | |
212 )]) | |
213 if test $i_cv_type_socklen_t = no; then | |
214 AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.) | |
215 fi | |
216 AC_MSG_RESULT($i_cv_type_socklen_t) | |
217 | |
218 dnl * do we have tm_gmtoff | |
219 AC_MSG_CHECKING([for tm_gmtoff]) | |
220 AC_CACHE_VAL(i_cv_field_tm_gmtoff, | |
221 [AC_TRY_COMPILE([ | |
222 #include <time.h>], | |
223 [struct tm *tm; return tm->tm_gmtoff;], | |
224 i_cv_field_tm_gmtoff=yes, | |
225 i_cv_field_tm_gmtoff=no, | |
226 )]) | |
227 if test $i_cv_field_tm_gmtoff = yes; then | |
228 AC_DEFINE(HAVE_TM_GMTOFF) | |
229 fi | |
230 AC_MSG_RESULT($i_cv_field_tm_gmtoff) | |
231 | |
224 | 232 dnl * linux compatible mremap() |
233 AC_MSG_CHECKING([linux compatible mremap()]) | |
234 AC_TRY_RUN([ | |
235 #include <unistd.h> | |
236 #define __USE_GNU | |
237 #include <sys/mman.h> | |
238 int main() { mremap(0, 0, 0, MREMAP_MAYMOVE); } | |
239 ], [ | |
240 AC_DEFINE(HAVE_LINUX_MREMAP) | |
241 AC_MSG_RESULT(yes) | |
242 ], [ | |
243 AC_MSG_RESULT(no) | |
244 ]) | |
245 | |
0 | 246 dnl ** |
247 dnl ** SSL (gnutls) | |
248 dnl ** | |
249 | |
250 AC_CHECK_LIB(gnutls, gnutls_global_init, [ | |
251 AC_DEFINE(HAVE_SSL) | |
252 SSL_LIBS="-lgnutls -lgcrypt" | |
253 AC_SUBST(SSL_LIBS) | |
254 have_ssl=yes | |
255 ], [ | |
256 have_ssl=no | |
257 ], -lgcrypt) | |
258 | |
259 dnl ** | |
260 dnl ** shadow/pam support | |
261 dnl ** | |
262 | |
263 need_crypt=no | |
264 auths="" | |
265 | |
266 if test $want_passwd = yes; then | |
267 need_crypt=yes | |
268 AC_DEFINE(USERINFO_PASSWD) | |
269 auths="$auths passwd" | |
270 fi | |
271 | |
272 if test $want_passwd_file = yes; then | |
273 need_crypt=yes | |
274 AC_DEFINE(USERINFO_PASSWD_FILE) | |
275 auths="$auths passwd-file" | |
276 fi | |
277 | |
278 if test $want_shadow = yes; then | |
279 AC_CHECK_FUNC(getspnam, [ | |
280 need_crypt=yes | |
281 AC_DEFINE(USERINFO_SHADOW) | |
282 auths="$auths shadow" | |
283 ]) | |
284 fi | |
285 | |
286 if test $want_pam = yes; then | |
287 AC_CHECK_LIB(pam, pam_start, [ | |
288 AC_CHECK_HEADER(security/pam_appl.h, [ | |
289 USERINFO_LIBS="$USERINFO_LIBS -lpam" | |
290 AC_DEFINE(USERINFO_PAM) | |
291 auths="$auths pam" | |
292 ]) | |
293 ]) | |
294 fi | |
295 | |
296 if test $need_crypt = yes; then | |
297 AC_CHECK_LIB(crypt, crypt, [ | |
298 USERINFO_LIBS="$USERINFO_LIBS -lcrypt" | |
299 ], [ | |
300 AC_CHECK_FUNC(crypt,, [ | |
301 AC_ERROR([crypt() wasn't found]) | |
302 ]) | |
303 ]) | |
304 fi | |
305 | |
306 AC_SUBST(USERINFO_LIBS) | |
307 | |
308 dnl ** | |
309 dnl ** Index file compatibility flags | |
310 dnl ** | |
311 | |
312 dnl * currently just checking for endianess | |
313 | |
314 AC_C_BIGENDIAN | |
315 | |
316 if test $ac_cv_c_bigendian = yes; then | |
317 flags=0 | |
318 | |
319 else | |
320 flags=1 | |
321 fi | |
322 | |
323 AC_DEFINE_UNQUOTED(MAIL_INDEX_COMPAT_FLAGS, $flags) | |
324 | |
325 dnl ** | |
326 dnl ** IPv6 support | |
327 dnl ** | |
328 | |
329 if test "x$want_ipv6" = "xyes"; then | |
330 AC_MSG_CHECKING([for IPv6]) | |
331 AC_CACHE_VAL(i_cv_type_in6_addr, | |
332 [AC_TRY_COMPILE([ | |
333 #include <sys/types.h> | |
334 #include <sys/socket.h> | |
335 #include <netinet/in.h> | |
336 #include <netdb.h> | |
337 #include <arpa/inet.h>], | |
338 [struct in6_addr i;], | |
339 i_cv_type_in6_addr=yes, | |
340 i_cv_type_in6_addr=no, | |
341 )]) | |
342 if test $i_cv_type_in6_addr = yes; then | |
343 AC_DEFINE(HAVE_IPV6) | |
344 fi | |
345 AC_MSG_RESULT($i_cv_type_in6_addr) | |
346 fi | |
347 | |
348 dnl ** | |
349 dnl ** capabilities | |
350 dnl ** | |
351 | |
352 capability="IMAP4rev1" | |
353 if test "$have_ssl" = "yes"; then | |
354 capability="$capability STARTTLS" | |
355 fi | |
356 AC_DEFINE_UNQUOTED(CAPABILITY_STRING, "$capability") | |
357 | |
358 dnl ** | |
359 dnl ** register the storage classes | |
360 dnl ** | |
361 | |
362 STORAGE="maildir mbox" | |
363 file="src/lib-storage/mail-storage-register.c" | |
364 | |
365 echo "/* this file is generated by configure */" > $file | |
366 echo '#include "lib.h"' >> $file | |
367 echo '#include "mail-storage.h"' >> $file | |
368 for storage in $STORAGE; do | |
369 echo "extern MailStorage ${storage}_storage;" >> $file | |
370 done | |
371 echo "void mail_storage_register_all(void) {" >> $file | |
372 for storage in $STORAGE; do | |
373 echo "mail_storage_class_register(&${storage}_storage);" >> $file | |
374 done | |
375 echo "}" >> $file | |
376 | |
377 AC_OUTPUT( | |
378 Makefile | |
379 doc/Makefile | |
380 src/Makefile | |
381 src/lib/Makefile | |
382 src/lib-imap/Makefile | |
383 src/lib-index/Makefile | |
384 src/lib-index/maildir/Makefile | |
385 src/lib-index/mbox/Makefile | |
386 src/lib-mail/Makefile | |
387 src/lib-storage/Makefile | |
388 src/lib-storage/index/Makefile | |
389 src/lib-storage/index/maildir/Makefile | |
390 src/lib-storage/index/mbox/Makefile | |
391 src/lib-storage/subscription-file/Makefile | |
392 src/auth/Makefile | |
393 src/imap/Makefile | |
394 src/login/Makefile | |
395 src/master/Makefile | |
396 stamp.h) | |
397 | |
398 echo | |
399 echo "Install prefix ............. : $prefix" | |
400 echo "Building with auth modules . :$auths" | |
401 echo "Building with SSL support .. : $have_ssl" | |
402 echo "Building with IPv6 support . : $want_ipv6" |