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