blob: 456d6e7a52a2b71902060580cf4612b5da2b0bec [file] [log] [blame]
Igor Sysoeva4b16df2004-02-02 21:19:52 +00001
Igor Sysoevff8da912004-09-29 16:00:49 +00002# Copyright (C) Igor Sysoev
3
4
Igor Sysoeve9b2cb12004-02-09 20:47:18 +00005if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
6 EVENT_SELECT=YES
7fi
8
9if [ $EVENT_SELECT = YES ]; then
Igor Sysoevf6906042004-11-25 16:17:31 +000010 have=NGX_HAVE_SELECT . auto/have
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000011 CORE_SRCS="$CORE_SRCS $SELECT_SRCS"
12 EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
13fi
14
15
16if [ $EVENT_POLL = NO -a $EVENT_FOUND = NO ]; then
17 EVENT_POLL=YES
18fi
19
20if [ $EVENT_POLL = YES ]; then
Igor Sysoevf6906042004-11-25 16:17:31 +000021 have=NGX_HAVE_POLL . auto/have
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000022 CORE_SRCS="$CORE_SRCS $POLL_SRCS"
23 EVENT_MODULES="$EVENT_MODULES $POLL_MODULE"
24fi
25
26
Igor Sysoevf6906042004-11-25 16:17:31 +000027if [ $NGX_TEST_BUILD_DEVPOLL = YES ]; then
28 have=NGX_HAVE_DEVPOLL . auto/have
29 have=NGX_TEST_BUILD_DEVPOLL . auto/have
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000030 EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE"
31 CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS"
32fi
33
Igor Sysoev4524fb02006-09-26 12:20:12 +000034
35if [ $NGX_TEST_BUILD_EVENTPORT = YES ]; then
36 have=NGX_HAVE_EVENTPORT . auto/have
37 have=NGX_TEST_BUILD_EVENTPORT . auto/have
38 EVENT_MODULES="$EVENT_MODULES $EVENTPORT_MODULE"
39 CORE_SRCS="$CORE_SRCS $EVENTPORT_SRCS"
40fi
41
Igor Sysoevf6906042004-11-25 16:17:31 +000042if [ $NGX_TEST_BUILD_EPOLL = YES ]; then
43 have=NGX_HAVE_EPOLL . auto/have
44 have=NGX_TEST_BUILD_EPOLL . auto/have
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000045 EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE"
46 CORE_SRCS="$CORE_SRCS $EPOLL_SRCS"
47fi
48
Igor Sysoevf6906042004-11-25 16:17:31 +000049if [ $NGX_TEST_BUILD_RTSIG = YES ]; then
50 have=NGX_HAVE_RTSIG . auto/have
51 have=NGX_TEST_BUILD_RTSIG . auto/have
Igor Sysoev9139cd22004-02-17 17:53:12 +000052 EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
53 CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000054fi
55
Igor Sysoev42b12b32004-12-02 18:40:46 +000056if [ $NGX_TEST_BUILD_SOLARIS_SENDFILEV = YES ]; then
57 have=NGX_TEST_BUILD_SOLARIS_SENDFILEV . auto/have
58 CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
59fi
60
Igor Sysoeve9b2cb12004-02-09 20:47:18 +000061
Igor Sysoev7b190b42005-06-07 15:56:31 +000062if [ $HTTP != YES ]; then
63 have=NGX_CRYPT . auto/nohave
64 CRYPT_LIB=
65fi
66
67
Igor Sysoev899b44e2005-05-12 14:58:06 +000068if [ $HTTP_SSI = YES ]; then
69 HTTP_POSTPONE=YES
70fi
71
Igor Sysoev7f7846d2006-04-26 09:52:47 +000072
73if [ $HTTP_ADDITION = YES ]; then
74 HTTP_POSTPONE=YES
75fi
76
77
Igor Sysoeve5733802005-09-08 14:36:09 +000078# the module order is important
Igor Sysoev1ae389d2008-08-04 14:48:15 +000079# ngx_http_static_module
80# ngx_http_gzip_static_module
81# ngx_http_dav_module
Igor Sysoeve5733802005-09-08 14:36:09 +000082# ngx_http_autoindex_module
83# ngx_http_index_module
Igor Sysoev2e2b81d2008-09-05 15:45:55 +000084# ngx_http_random_index_module
Igor Sysoeve5733802005-09-08 14:36:09 +000085#
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +000086# ngx_http_access_module
87# ngx_http_realip_module
88#
Igor Sysoeve5733802005-09-08 14:36:09 +000089#
Igor Sysoev7823cc32004-07-14 16:01:42 +000090# the filter order is important
91# ngx_http_write_filter
Igor Sysoev7823cc32004-07-14 16:01:42 +000092# ngx_http_header_filter
93# ngx_http_chunked_filter
94# ngx_http_range_header_filter
95# ngx_http_gzip_filter
Igor Sysoev899b44e2005-05-12 14:58:06 +000096# ngx_http_postpone_filter
Igor Sysoev7823cc32004-07-14 16:01:42 +000097# ngx_http_charset_filter
98# ngx_http_ssi_filter
Igor Sysoev1ae389d2008-08-04 14:48:15 +000099# ngx_http_xslt_filter
100# ngx_http_sub_filter
Igor Sysoev6d16e1e2006-04-05 13:40:54 +0000101# ngx_http_addition_filter
Igor Sysoeve5733802005-09-08 14:36:09 +0000102# ngx_http_userid_filter
103# ngx_http_headers_filter
Igor Sysoev7823cc32004-07-14 16:01:42 +0000104# ngx_http_copy_filter
105# ngx_http_range_body_filter
106# ngx_http_not_modified_filter
107
Igor Sysoev4aa88882004-07-14 20:07:58 +0000108HTTP_FILTER_MODULES="$HTTP_WRITE_FILTER_MODULE \
109 $HTTP_HEADER_FILTER_MODULE \
110 $HTTP_CHUNKED_FILTER_MODULE \
111 $HTTP_RANGE_HEADER_FILTER_MODULE"
Igor Sysoev7823cc32004-07-14 16:01:42 +0000112
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000113if [ $HTTP_GZIP = YES ]; then
Igor Sysoeva893eab2004-03-11 21:34:52 +0000114 have=NGX_HTTP_GZIP . auto/have
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000115 USE_ZLIB=YES
116 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_GZIP_FILTER_MODULE"
117 HTTP_SRCS="$HTTP_SRCS $HTTP_GZIP_SRCS"
118fi
119
Igor Sysoev899b44e2005-05-12 14:58:06 +0000120if [ $HTTP_POSTPONE = YES ]; then
121 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_POSTPONE_FILTER_MODULE"
Igor Sysoev6b0de802008-03-12 21:10:48 +0000122 HTTP_SRCS="$HTTP_SRCS $HTTP_POSTPONE_FILTER_SRCS"
Igor Sysoev899b44e2005-05-12 14:58:06 +0000123fi
124
Igor Sysoev5e150a02004-07-12 15:30:22 +0000125if [ $HTTP_CHARSET = YES ]; then
126 have=NGX_HTTP_CHARSET . auto/have
127 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_CHARSET_FILTER_MODULE"
128 HTTP_SRCS="$HTTP_SRCS $HTTP_CHARSET_SRCS"
129fi
130
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000131if [ $HTTP_SSI = YES ]; then
Igor Sysoeva893eab2004-03-11 21:34:52 +0000132 have=NGX_HTTP_SSI . auto/have
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000133 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSI_FILTER_MODULE"
Igor Sysoevdf3254a2006-01-11 15:26:57 +0000134 HTTP_DEPS="$HTTP_DEPS $HTTP_SSI_DEPS"
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000135 HTTP_SRCS="$HTTP_SRCS $HTTP_SSI_SRCS"
136fi
137
Igor Sysoev1ae389d2008-08-04 14:48:15 +0000138if [ $HTTP_XSLT = YES ]; then
139 USE_LIBXSLT=YES
140 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_XSLT_FILTER_MODULE"
141 HTTP_SRCS="$HTTP_SRCS $HTTP_XSLT_SRCS"
142fi
143
Igor Sysoevd9bb8e32007-04-19 17:54:23 +0000144if [ $HTTP_SUB = YES ]; then
145 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SUB_FILTER_MODULE"
146 HTTP_SRCS="$HTTP_SRCS $HTTP_SUB_SRCS"
147fi
148
Igor Sysoev6d16e1e2006-04-05 13:40:54 +0000149if [ $HTTP_ADDITION = YES ]; then
150 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_ADDITION_FILTER_MODULE"
151 HTTP_SRCS="$HTTP_SRCS $HTTP_ADDITION_SRCS"
152fi
153
Igor Sysoeva7c4a2a2004-08-29 03:55:41 +0000154if [ $HTTP_USERID = YES ]; then
155 HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_USERID_FILTER_MODULE"
156 HTTP_SRCS="$HTTP_SRCS $HTTP_USERID_SRCS"
157fi
158
Igor Sysoev723e6cc2004-10-25 15:29:23 +0000159HTTP_MODULES="$HTTP_MODULES $HTTP_STATIC_MODULE"
160
Igor Sysoeve19a5f92007-12-29 08:38:42 +0000161if [ $HTTP_GZIP_STATIC = YES ]; then
162 have=NGX_HTTP_GZIP . auto/have
163 HTTP_MODULES="$HTTP_MODULES $HTTP_GZIP_STATIC_MODULE"
164 HTTP_SRCS="$HTTP_SRCS $HTTP_GZIP_STATIC_SRCS"
165fi
166
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +0000167if [ $HTTP_DAV = YES ]; then
Igor Sysoev7bdb7202006-04-19 15:30:56 +0000168 have=NGX_HTTP_DAV . auto/have
Igor Sysoev8a2b2fb2006-04-14 09:53:38 +0000169 HTTP_MODULES="$HTTP_MODULES $HTTP_DAV_MODULE"
170 HTTP_SRCS="$HTTP_SRCS $HTTP_DAV_SRCS"
171fi
172
Igor Sysoev723e6cc2004-10-25 15:29:23 +0000173if [ $HTTP_AUTOINDEX = YES ]; then
174 have=NGX_HTTP_AUTOINDEX . auto/have
175 HTTP_MODULES="$HTTP_MODULES $HTTP_AUTOINDEX_MODULE"
176 HTTP_SRCS="$HTTP_SRCS $HTTP_AUTOINDEX_SRCS"
177fi
178
179HTTP_MODULES="$HTTP_MODULES $HTTP_INDEX_MODULE"
Igor Sysoev3d5c0fc2004-06-22 16:43:09 +0000180
Igor Sysoev2e2b81d2008-09-05 15:45:55 +0000181if [ $HTTP_RANDOM_INDEX = YES ]; then
182 have=NGX_HTTP_RANDOM_INDEX . auto/have
183 HTTP_MODULES="$HTTP_MODULES $HTTP_RANDOM_INDEX_MODULE"
184 HTTP_SRCS="$HTTP_SRCS $HTTP_RANDOM_INDEX_SRCS"
185fi
186
Igor Sysoev4d656dc2005-03-22 16:02:46 +0000187if [ $HTTP_AUTH_BASIC = YES ]; then
188 have=NGX_HTTP_AUTH_BASIC . auto/have
189 have=NGX_CRYPT . auto/have
190 HTTP_MODULES="$HTTP_MODULES $HTTP_AUTH_BASIC_MODULE"
191 HTTP_SRCS="$HTTP_SRCS $HTTP_AUTH_BASIC_SRCS"
192 CORE_LIBS="$CORE_LIBS $CRYPT_LIB"
193fi
194
Igor Sysoev59f3aa32004-06-24 16:07:04 +0000195if [ $HTTP_ACCESS = YES ]; then
196 have=NGX_HTTP_ACCESS . auto/have
197 HTTP_MODULES="$HTTP_MODULES $HTTP_ACCESS_MODULE"
198 HTTP_SRCS="$HTTP_SRCS $HTTP_ACCESS_SRCS"
199fi
200
Igor Sysoev684f9552007-01-07 18:09:58 +0000201if [ $HTTP_LIMIT_ZONE = YES ]; then
202 HTTP_MODULES="$HTTP_MODULES $HTTP_LIMIT_ZONE_MODULE"
203 HTTP_SRCS="$HTTP_SRCS $HTTP_LIMIT_ZONE_SRCS"
204fi
205
Igor Sysoevabe378e2008-11-10 15:22:33 +0000206if [ $HTTP_LIMIT_REQ = YES ]; then
207 HTTP_MODULES="$HTTP_MODULES $HTTP_LIMIT_REQ_MODULE"
208 HTTP_SRCS="$HTTP_SRCS $HTTP_LIMIT_REQ_SRCS"
209fi
210
Igor Sysoev09c684b2005-11-09 17:25:55 +0000211if [ $HTTP_REALIP = YES ]; then
212 have=NGX_HTTP_REALIP . auto/have
213 HTTP_MODULES="$HTTP_MODULES $HTTP_REALIP_MODULE"
214 HTTP_SRCS="$HTTP_SRCS $HTTP_REALIP_SRCS"
215fi
216
Igor Sysoevc83f6832004-06-24 07:53:37 +0000217if [ $HTTP_STATUS = YES ]; then
218 have=NGX_HTTP_STATUS . auto/have
219 HTTP_MODULES="$HTTP_MODULES $HTTP_STATUS_MODULE"
220 HTTP_SRCS="$HTTP_SRCS $HTTP_STATUS_SRCS"
221fi
222
Igor Sysoev805d9db2005-02-03 19:33:37 +0000223if [ $HTTP_GEO = YES ]; then
224 have=NGX_HTTP_GEO . auto/have
225 HTTP_MODULES="$HTTP_MODULES $HTTP_GEO_MODULE"
226 HTTP_SRCS="$HTTP_SRCS $HTTP_GEO_SRCS"
227fi
228
Igor Sysoev24025022005-12-16 15:07:08 +0000229if [ $HTTP_MAP = YES ]; then
230 have=NGX_HTTP_MAP . auto/have
231 HTTP_MODULES="$HTTP_MODULES $HTTP_MAP_MODULE"
232 HTTP_SRCS="$HTTP_SRCS $HTTP_MAP_SRCS"
233fi
234
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +0000235if [ $HTTP_REFERER = YES ]; then
236 HTTP_MODULES="$HTTP_MODULES $HTTP_REFERER_MODULE"
237 HTTP_SRCS="$HTTP_SRCS $HTTP_REFERER_SRCS"
238fi
239
Igor Sysoev3d5c0fc2004-06-22 16:43:09 +0000240if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then
241 have=NGX_HTTP_REWRITE . auto/have
242 USE_PCRE=YES
243 HTTP_MODULES="$HTTP_MODULES $HTTP_REWRITE_MODULE"
244 HTTP_SRCS="$HTTP_SRCS $HTTP_REWRITE_SRCS"
245fi
246
Igor Sysoevf38e0462004-07-16 17:11:43 +0000247if [ $HTTP_SSL = YES ]; then
Igor Sysoev0599b112004-07-25 18:34:14 +0000248 USE_OPENSSL=YES
249 have=NGX_HTTP_SSL . auto/have
Igor Sysoevf38e0462004-07-16 17:11:43 +0000250 HTTP_MODULES="$HTTP_MODULES $HTTP_SSL_MODULE"
251 HTTP_DEPS="$HTTP_DEPS $HTTP_SSL_DEPS"
252 HTTP_SRCS="$HTTP_SRCS $HTTP_SSL_SRCS"
Igor Sysoevf38e0462004-07-16 17:11:43 +0000253fi
254
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000255if [ $HTTP_PROXY = YES ]; then
Igor Sysoeva893eab2004-03-11 21:34:52 +0000256 have=NGX_HTTP_PROXY . auto/have
Igor Sysoev0bc87e92004-09-30 15:30:54 +0000257 #USE_MD5=YES
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000258 HTTP_MODULES="$HTTP_MODULES $HTTP_PROXY_MODULE"
Igor Sysoeva4b16df2004-02-02 21:19:52 +0000259 HTTP_DEPS="$HTTP_DEPS $HTTP_PROXY_DEPS"
260 HTTP_SRCS="$HTTP_SRCS $HTTP_PROXY_SRCS"
261fi
Igor Sysoevab9d5fd2004-03-05 08:34:24 +0000262
Igor Sysoev02025fd2005-01-18 13:03:58 +0000263if [ $HTTP_FASTCGI = YES ]; then
264 HTTP_MODULES="$HTTP_MODULES $HTTP_FASTCGI_MODULE"
265 HTTP_SRCS="$HTTP_SRCS $HTTP_FASTCGI_SRCS"
266fi
267
Igor Sysoev9bf11aa2006-01-16 14:56:53 +0000268if [ $HTTP_PERL = YES ]; then
269 USE_PERL=YES
270 have=NGX_HTTP_PERL . auto/have
271 HTTP_MODULES="$HTTP_MODULES $HTTP_PERL_MODULE"
272 HTTP_INCS="$HTTP_INCS $HTTP_PERL_INCS"
273 HTTP_DEPS="$HTTP_DEPS $HTTP_PERL_DEPS"
274 HTTP_SRCS="$HTTP_SRCS $HTTP_PERL_SRCS"
275fi
276
Igor Sysoevc31a9bb2005-11-26 10:11:11 +0000277if [ $HTTP_MEMCACHED = YES ]; then
278 HTTP_MODULES="$HTTP_MODULES $HTTP_MEMCACHED_MODULE"
279 HTTP_SRCS="$HTTP_SRCS $HTTP_MEMCACHED_SRCS"
280fi
281
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +0000282if [ $HTTP_EMPTY_GIF = YES ]; then
283 HTTP_MODULES="$HTTP_MODULES $HTTP_EMPTY_GIF_MODULE"
284 HTTP_SRCS="$HTTP_SRCS $HTTP_EMPTY_GIF_SRCS"
285fi
286
Igor Sysoev3383ff62006-09-18 12:25:07 +0000287if [ $HTTP_BROWSER = YES ]; then
288 HTTP_MODULES="$HTTP_MODULES $HTTP_BROWSER_MODULE"
289 HTTP_SRCS="$HTTP_SRCS $HTTP_BROWSER_SRCS"
290fi
291
Igor Sysoeve52991e2008-09-27 13:22:10 +0000292if [ $HTTP_SECURE_LINK = YES ]; then
293 USE_MD5=YES
294 HTTP_MODULES="$HTTP_MODULES $HTTP_SECURE_LINK_MODULE"
295 HTTP_SRCS="$HTTP_SRCS $HTTP_SECURE_LINK_SRCS"
296fi
297
Igor Sysoevb5050062006-10-09 14:17:36 +0000298if [ $HTTP_FLV = YES ]; then
299 HTTP_MODULES="$HTTP_MODULES $HTTP_FLV_MODULE"
300 HTTP_SRCS="$HTTP_SRCS $HTTP_FLV_SRCS"
301fi
302
Igor Sysoev3d2fd182006-12-04 16:46:13 +0000303if [ $HTTP_UPSTREAM_IP_HASH = YES ]; then
304 HTTP_MODULES="$HTTP_MODULES $HTTP_UPSTREAM_IP_HASH_MODULE"
305 HTTP_SRCS="$HTTP_SRCS $HTTP_UPSTREAM_IP_HASH_SRCS"
306fi
307
Igor Sysoevf6906042004-11-25 16:17:31 +0000308# STUB
Igor Sysoevb1dfe472004-12-21 12:30:30 +0000309#USE_MD5=YES
Igor Sysoev6b0de802008-03-12 21:10:48 +0000310#HTTP_SRCS="$HTTP_SRCS $HTTP_CACHE_SRCS"
311#HTTP_SRCS="$HTTP_SRCS $HTTP_FILE_CACHE_SRCS"
Igor Sysoevf6906042004-11-25 16:17:31 +0000312
Igor Sysoevaa828612005-02-09 14:31:07 +0000313if [ $HTTP_STUB_STATUS = YES ]; then
314 have=NGX_STAT_STUB . auto/have
315 HTTP_MODULES="$HTTP_MODULES ngx_http_stub_status_module"
316 HTTP_SRCS="$HTTP_SRCS src/http/modules/ngx_http_stub_status_module.c"
317fi
318
Igor Sysoev1ebfead2005-02-16 13:40:36 +0000319#if [ -r $NGX_OBJS/auto ]; then
320# . $NGX_OBJS/auto
321#fi
322
323
324if test -n "$NGX_ADDONS"; then
325
326 echo configuring additional modules
327
328 for ngx_addon_dir in $NGX_ADDONS
329 do
330 echo "adding module in $ngx_addon_dir"
331
332 if test -f $ngx_addon_dir/config; then
333 . $ngx_addon_dir/config
334
335 echo " + $ngx_addon_name was configured"
336
337 else
338 echo "$0: error: no $ngx_addon_dir/config was found"
339 exit 1
340 fi
341 done
Igor Sysoevab517d52004-05-18 15:29:08 +0000342fi
Igor Sysoevab9d5fd2004-03-05 08:34:24 +0000343
Igor Sysoev1ebfead2005-02-16 13:40:36 +0000344
Igor Sysoev02c8d182007-03-19 13:36:56 +0000345if [ $MAIL_SSL = YES ]; then
Igor Sysoev02c8d182007-03-19 13:36:56 +0000346 have=NGX_MAIL_SSL . auto/have
Igor Sysoeve5733802005-09-08 14:36:09 +0000347 USE_OPENSSL=YES
348fi
349
350
Igor Sysoev980a9242004-09-05 19:54:02 +0000351modules="$CORE_MODULES $EVENT_MODULES"
352
Igor Sysoeve5733802005-09-08 14:36:09 +0000353
354if [ $USE_OPENSSL = YES ]; then
355 modules="$modules $OPENSSL_MODULE"
356 CORE_DEPS="$CORE_DEPS $OPENSSL_DEPS"
357 CORE_SRCS="$CORE_SRCS $OPENSSL_SRCS"
358fi
359
Igor Sysoev980a9242004-09-05 19:54:02 +0000360if [ $HTTP = YES ]; then
361 modules="$modules $HTTP_MODULES $HTTP_FILTER_MODULES \
362 $HTTP_HEADERS_FILTER_MODULE \
Igor Sysoev0e5dc5c2005-11-15 13:30:52 +0000363 $HTTP_AUX_FILTER_MODULES \
Igor Sysoev980a9242004-09-05 19:54:02 +0000364 $HTTP_COPY_FILTER_MODULE \
365 $HTTP_RANGE_BODY_FILTER_MODULE \
366 $HTTP_NOT_MODIFIED_FILTER_MODULE"
Igor Sysoev1ebfead2005-02-16 13:40:36 +0000367
368 NGX_ADDON_DEPS="$NGX_ADDON_DEPS \$(HTTP_DEPS)"
Igor Sysoev980a9242004-09-05 19:54:02 +0000369fi
Igor Sysoevab9d5fd2004-03-05 08:34:24 +0000370
Igor Sysoev1ebfead2005-02-16 13:40:36 +0000371
Igor Sysoev02c8d182007-03-19 13:36:56 +0000372if [ $MAIL = YES ]; then
373 modules="$modules $MAIL_MODULES"
Igor Sysoev7b190b42005-06-07 15:56:31 +0000374
Igor Sysoev02c8d182007-03-19 13:36:56 +0000375 if [ $MAIL_SSL = YES ]; then
376 modules="$modules $MAIL_SSL_MODULE"
Igor Sysoev48714082007-09-15 16:51:16 +0000377 MAIL_DEPS="$MAIL_DEPS $MAIL_SSL_DEPS"
378 MAIL_SRCS="$MAIL_SRCS $MAIL_SSL_SRCS"
379 fi
380
381 if [ $MAIL_POP3 = YES ]; then
382 modules="$modules $MAIL_POP3_MODULE"
383 MAIL_DEPS="$MAIL_DEPS $MAIL_POP3_DEPS"
384 MAIL_SRCS="$MAIL_SRCS $MAIL_POP3_SRCS"
385 fi
386
387 if [ $MAIL_IMAP = YES ]; then
388 modules="$modules $MAIL_IMAP_MODULE"
389 MAIL_DEPS="$MAIL_DEPS $MAIL_IMAP_DEPS"
390 MAIL_SRCS="$MAIL_SRCS $MAIL_IMAP_SRCS"
391 fi
392
393 if [ $MAIL_SMTP = YES ]; then
394 modules="$modules $MAIL_SMTP_MODULE"
395 MAIL_DEPS="$MAIL_DEPS $MAIL_SMTP_DEPS"
396 MAIL_SRCS="$MAIL_SRCS $MAIL_SMTP_SRCS"
Igor Sysoevceb99292005-09-06 16:09:32 +0000397 fi
398
Igor Sysoev02c8d182007-03-19 13:36:56 +0000399 modules="$modules $MAIL_AUTH_HTTP_MODULE"
400 MAIL_SRCS="$MAIL_SRCS $MAIL_AUTH_HTTP_SRCS"
Igor Sysoev7b190b42005-06-07 15:56:31 +0000401
Igor Sysoev02c8d182007-03-19 13:36:56 +0000402 modules="$modules $MAIL_PROXY_MODULE"
403 MAIL_SRCS="$MAIL_SRCS $MAIL_PROXY_SRCS"
Igor Sysoev59cf56c2004-09-07 15:29:22 +0000404fi
405
Igor Sysoevab9d5fd2004-03-05 08:34:24 +0000406
Igor Sysoev85dd8fc2008-03-18 10:36:27 +0000407if [ $NGX_GOOGLE_PERFTOOLS = YES ]; then
408 modules="$modules $NGX_GOOGLE_PERFTOOLS_MODULE"
409 NGX_MISC_SRCS="$NGX_MISC_SRCS $NGX_GOOGLE_PERFTOOLS_SRCS"
410fi
411
412
Igor Sysoev49f06852008-08-13 08:29:27 +0000413if [ $NGX_CPP_TEST = YES ]; then
Igor Sysoeve24b57a2008-08-05 19:32:50 +0000414 NGX_MISC_SRCS="$NGX_MISC_SRCS $NGX_CPP_TEST_SRCS"
415fi
416
417
Igor Sysoev1b735832004-11-11 14:07:14 +0000418cat << END > $NGX_MODULES_C
419
420#include <ngx_config.h>
421#include <ngx_core.h>
422
423$NGX_PRAGMA
424
425END
Igor Sysoevab9d5fd2004-03-05 08:34:24 +0000426
427for mod in $modules
428do
429 echo "extern ngx_module_t $mod;" >> $NGX_MODULES_C
430done
431
432echo >> $NGX_MODULES_C
433echo 'ngx_module_t *ngx_modules[] = {' >> $NGX_MODULES_C
434
435for mod in $modules
436do
437 echo " &$mod," >> $NGX_MODULES_C
438done
439
Igor Sysoev1b735832004-11-11 14:07:14 +0000440cat << END >> $NGX_MODULES_C
441 NULL
442};
443
444END