1
2# Copyright (C) Igor Sysoev
3# Copyright (C) Nginx, Inc.
4
5
6help=no
7
8NGX_PREFIX=
9NGX_SBIN_PATH=
10NGX_MODULES_PATH=
11NGX_CONF_PREFIX=
12NGX_CONF_PATH=
13NGX_ERROR_LOG_PATH=
14NGX_PID_PATH=
15NGX_LOCK_PATH=
16NGX_USER=
17NGX_GROUP=
18NGX_BUILD=
19
20CC=${CC:-cc}
21CPP=
22NGX_OBJS=objs
23
24NGX_DEBUG=NO
25NGX_CC_OPT=
26NGX_LD_OPT=
27CPU=NO
28
29NGX_RPATH=NO
30
31NGX_TEST_BUILD_DEVPOLL=NO
32NGX_TEST_BUILD_EVENTPORT=NO
33NGX_TEST_BUILD_EPOLL=NO
34NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO
35
36NGX_PLATFORM=
37NGX_WINE=
38
39EVENT_FOUND=NO
40
41EVENT_SELECT=NO
42EVENT_POLL=NO
43
44USE_THREADS=NO
45
46NGX_FILE_AIO=NO
47
48HTTP=YES
49
50NGX_HTTP_LOG_PATH=
51NGX_HTTP_CLIENT_TEMP_PATH=
52NGX_HTTP_PROXY_TEMP_PATH=
53NGX_HTTP_FASTCGI_TEMP_PATH=
54NGX_HTTP_UWSGI_TEMP_PATH=
55NGX_HTTP_SCGI_TEMP_PATH=
56
57HTTP_CACHE=YES
58HTTP_CHARSET=YES
59HTTP_GZIP=YES
60HTTP_SSL=NO
61HTTP_V2=NO
62HTTP_SSI=YES
63HTTP_REALIP=NO
64HTTP_XSLT=NO
65HTTP_IMAGE_FILTER=NO
66HTTP_SUB=NO
67HTTP_ADDITION=NO
68HTTP_DAV=NO
69HTTP_ACCESS=YES
70HTTP_AUTH_BASIC=YES
71HTTP_AUTH_REQUEST=NO
72HTTP_MIRROR=YES
73HTTP_USERID=YES
74HTTP_SLICE=NO
75HTTP_AUTOINDEX=YES
76HTTP_RANDOM_INDEX=NO
77HTTP_STATUS=NO
78HTTP_GEO=YES
79HTTP_GEOIP=NO
80HTTP_MAP=YES
81HTTP_SPLIT_CLIENTS=YES
82HTTP_REFERER=YES
83HTTP_REWRITE=YES
84HTTP_PROXY=YES
85HTTP_FASTCGI=YES
86HTTP_UWSGI=YES
87HTTP_SCGI=YES
88HTTP_GRPC=YES
89HTTP_PERL=NO
90HTTP_MEMCACHED=YES
91HTTP_LIMIT_CONN=YES
92HTTP_LIMIT_REQ=YES
93HTTP_EMPTY_GIF=YES
94HTTP_BROWSER=YES
95HTTP_SECURE_LINK=NO
96HTTP_DEGRADATION=NO
97HTTP_FLV=NO
98HTTP_MP4=NO
99HTTP_GUNZIP=NO
100HTTP_GZIP_STATIC=NO
101HTTP_UPSTREAM_HASH=YES
102HTTP_UPSTREAM_IP_HASH=YES
103HTTP_UPSTREAM_LEAST_CONN=YES
104HTTP_UPSTREAM_RANDOM=YES
105HTTP_UPSTREAM_KEEPALIVE=YES
106HTTP_UPSTREAM_ZONE=YES
107
108# STUB
109HTTP_STUB_STATUS=NO
110
111MAIL=NO
112MAIL_SSL=NO
113MAIL_POP3=YES
114MAIL_IMAP=YES
115MAIL_SMTP=YES
116
117STREAM=NO
118STREAM_SSL=NO
119STREAM_REALIP=NO
120STREAM_LIMIT_CONN=YES
121STREAM_ACCESS=YES
122STREAM_GEO=YES
123STREAM_GEOIP=NO
124STREAM_MAP=YES
125STREAM_SPLIT_CLIENTS=YES
126STREAM_RETURN=YES
127STREAM_SET=YES
128STREAM_UPSTREAM_HASH=YES
129STREAM_UPSTREAM_LEAST_CONN=YES
130STREAM_UPSTREAM_RANDOM=YES
131STREAM_UPSTREAM_ZONE=YES
132STREAM_SSL_PREREAD=NO
133
134DYNAMIC_MODULES=
135DYNAMIC_MODULES_SRCS=
136
137NGX_ADDONS=
138NGX_ADDON_SRCS=
139NGX_ADDON_DEPS=
140DYNAMIC_ADDONS=
141
142NGX_COMPAT=NO
143
144USE_PCRE=NO
145PCRE=NONE
146PCRE_OPT=
147PCRE_CONF_OPT=
148PCRE_JIT=NO
149
150USE_OPENSSL=NO
151OPENSSL=NONE
152
153USE_ZLIB=NO
154ZLIB=NONE
155ZLIB_OPT=
156ZLIB_ASM=NO
157
158USE_PERL=NO
159NGX_PERL=perl
160
161USE_LIBXSLT=NO
162USE_LIBGD=NO
163USE_GEOIP=NO
164
165NGX_GOOGLE_PERFTOOLS=NO
166NGX_CPP_TEST=NO
167
168NGX_LIBATOMIC=NO
169
170NGX_CPU_CACHE_LINE=
171
172NGX_POST_CONF_MSG=
173
174opt=
175
176for option
177do
178    opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
179
180    case "$option" in
181        -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
182           *) value="" ;;
183    esac
184
185    case "$option" in
186        --help)                          help=yes                   ;;
187
188        --prefix=)                       NGX_PREFIX="!"             ;;
189        --prefix=*)                      NGX_PREFIX="$value"        ;;
190        --sbin-path=*)                   NGX_SBIN_PATH="$value"     ;;
191        --modules-path=*)                NGX_MODULES_PATH="$value"  ;;
192        --conf-path=*)                   NGX_CONF_PATH="$value"     ;;
193        --error-log-path=*)              NGX_ERROR_LOG_PATH="$value";;
194        --pid-path=*)                    NGX_PID_PATH="$value"      ;;
195        --lock-path=*)                   NGX_LOCK_PATH="$value"     ;;
196        --user=*)                        NGX_USER="$value"          ;;
197        --group=*)                       NGX_GROUP="$value"         ;;
198
199        --crossbuild=*)                  NGX_PLATFORM="$value"      ;;
200
201        --build=*)                       NGX_BUILD="$value"         ;;
202        --builddir=*)                    NGX_OBJS="$value"          ;;
203
204        --with-select_module)            EVENT_SELECT=YES           ;;
205        --without-select_module)         EVENT_SELECT=NONE          ;;
206        --with-poll_module)              EVENT_POLL=YES             ;;
207        --without-poll_module)           EVENT_POLL=NONE            ;;
208
209        --with-threads)                  USE_THREADS=YES            ;;
210
211        --with-file-aio)                 NGX_FILE_AIO=YES           ;;
212
213        --with-ipv6)
214            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
215$0: warning: the \"--with-ipv6\" option is deprecated"
216        ;;
217
218        --without-http)                  HTTP=NO                    ;;
219        --without-http-cache)            HTTP_CACHE=NO              ;;
220
221        --http-log-path=*)               NGX_HTTP_LOG_PATH="$value" ;;
222        --http-client-body-temp-path=*)  NGX_HTTP_CLIENT_TEMP_PATH="$value" ;;
223        --http-proxy-temp-path=*)        NGX_HTTP_PROXY_TEMP_PATH="$value" ;;
224        --http-fastcgi-temp-path=*)      NGX_HTTP_FASTCGI_TEMP_PATH="$value" ;;
225        --http-uwsgi-temp-path=*)        NGX_HTTP_UWSGI_TEMP_PATH="$value" ;;
226        --http-scgi-temp-path=*)         NGX_HTTP_SCGI_TEMP_PATH="$value" ;;
227
228        --with-http_ssl_module)          HTTP_SSL=YES               ;;
229        --with-http_v2_module)           HTTP_V2=YES                ;;
230        --with-http_realip_module)       HTTP_REALIP=YES            ;;
231        --with-http_addition_module)     HTTP_ADDITION=YES          ;;
232        --with-http_xslt_module)         HTTP_XSLT=YES              ;;
233        --with-http_xslt_module=dynamic) HTTP_XSLT=DYNAMIC          ;;
234        --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES      ;;
235        --with-http_image_filter_module=dynamic)
236                                         HTTP_IMAGE_FILTER=DYNAMIC  ;;
237        --with-http_geoip_module)        HTTP_GEOIP=YES             ;;
238        --with-http_geoip_module=dynamic)
239                                         HTTP_GEOIP=DYNAMIC         ;;
240        --with-http_sub_module)          HTTP_SUB=YES               ;;
241        --with-http_dav_module)          HTTP_DAV=YES               ;;
242        --with-http_flv_module)          HTTP_FLV=YES               ;;
243        --with-http_mp4_module)          HTTP_MP4=YES               ;;
244        --with-http_gunzip_module)       HTTP_GUNZIP=YES            ;;
245        --with-http_gzip_static_module)  HTTP_GZIP_STATIC=YES       ;;
246        --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES      ;;
247        --with-http_random_index_module) HTTP_RANDOM_INDEX=YES      ;;
248        --with-http_secure_link_module)  HTTP_SECURE_LINK=YES       ;;
249        --with-http_degradation_module)  HTTP_DEGRADATION=YES       ;;
250        --with-http_slice_module)        HTTP_SLICE=YES             ;;
251
252        --without-http_charset_module)   HTTP_CHARSET=NO            ;;
253        --without-http_gzip_module)      HTTP_GZIP=NO               ;;
254        --without-http_ssi_module)       HTTP_SSI=NO                ;;
255        --without-http_userid_module)    HTTP_USERID=NO             ;;
256        --without-http_access_module)    HTTP_ACCESS=NO             ;;
257        --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO        ;;
258        --without-http_mirror_module)    HTTP_MIRROR=NO             ;;
259        --without-http_autoindex_module) HTTP_AUTOINDEX=NO          ;;
260        --without-http_status_module)    HTTP_STATUS=NO             ;;
261        --without-http_geo_module)       HTTP_GEO=NO                ;;
262        --without-http_map_module)       HTTP_MAP=NO                ;;
263        --without-http_split_clients_module) HTTP_SPLIT_CLIENTS=NO  ;;
264        --without-http_referer_module)   HTTP_REFERER=NO            ;;
265        --without-http_rewrite_module)   HTTP_REWRITE=NO            ;;
266        --without-http_proxy_module)     HTTP_PROXY=NO              ;;
267        --without-http_fastcgi_module)   HTTP_FASTCGI=NO            ;;
268        --without-http_uwsgi_module)     HTTP_UWSGI=NO              ;;
269        --without-http_scgi_module)      HTTP_SCGI=NO               ;;
270        --without-http_grpc_module)      HTTP_GRPC=NO               ;;
271        --without-http_memcached_module) HTTP_MEMCACHED=NO          ;;
272        --without-http_limit_conn_module) HTTP_LIMIT_CONN=NO        ;;
273        --without-http_limit_req_module) HTTP_LIMIT_REQ=NO         ;;
274        --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO          ;;
275        --without-http_browser_module)   HTTP_BROWSER=NO            ;;
276        --without-http_upstream_hash_module) HTTP_UPSTREAM_HASH=NO  ;;
277        --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;;
278        --without-http_upstream_least_conn_module)
279                                         HTTP_UPSTREAM_LEAST_CONN=NO ;;
280        --without-http_upstream_random_module)
281                                         HTTP_UPSTREAM_RANDOM=NO    ;;
282        --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;;
283        --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO  ;;
284
285        --with-http_perl_module)         HTTP_PERL=YES              ;;
286        --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC          ;;
287        --with-perl_modules_path=*)      NGX_PERL_MODULES="$value"  ;;
288        --with-perl=*)                   NGX_PERL="$value"          ;;
289
290        # STUB
291        --with-http_stub_status_module)  HTTP_STUB_STATUS=YES       ;;
292
293        --with-mail)                     MAIL=YES                   ;;
294        --with-mail=dynamic)             MAIL=DYNAMIC               ;;
295        --with-mail_ssl_module)          MAIL_SSL=YES               ;;
296        # STUB
297        --with-imap)
298            MAIL=YES
299            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
300$0: warning: the \"--with-imap\" option is deprecated, \
301use the \"--with-mail\" option instead"
302        ;;
303        --with-imap_ssl_module)
304            MAIL_SSL=YES
305            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
306$0: warning: the \"--with-imap_ssl_module\" option is deprecated, \
307use the \"--with-mail_ssl_module\" option instead"
308        ;;
309        --without-mail_pop3_module)      MAIL_POP3=NO               ;;
310        --without-mail_imap_module)      MAIL_IMAP=NO               ;;
311        --without-mail_smtp_module)      MAIL_SMTP=NO               ;;
312
313        --with-stream)                   STREAM=YES                 ;;
314        --with-stream=dynamic)           STREAM=DYNAMIC             ;;
315        --with-stream_ssl_module)        STREAM_SSL=YES             ;;
316        --with-stream_realip_module)     STREAM_REALIP=YES          ;;
317        --with-stream_geoip_module)      STREAM_GEOIP=YES           ;;
318        --with-stream_geoip_module=dynamic)
319                                         STREAM_GEOIP=DYNAMIC       ;;
320        --with-stream_ssl_preread_module)
321                                         STREAM_SSL_PREREAD=YES     ;;
322        --without-stream_limit_conn_module)
323                                         STREAM_LIMIT_CONN=NO       ;;
324        --without-stream_access_module)  STREAM_ACCESS=NO           ;;
325        --without-stream_geo_module)     STREAM_GEO=NO              ;;
326        --without-stream_map_module)     STREAM_MAP=NO              ;;
327        --without-stream_split_clients_module)
328                                         STREAM_SPLIT_CLIENTS=NO    ;;
329        --without-stream_return_module)  STREAM_RETURN=NO           ;;
330        --without-stream_set_module)     STREAM_SET=NO              ;;
331        --without-stream_upstream_hash_module)
332                                         STREAM_UPSTREAM_HASH=NO    ;;
333        --without-stream_upstream_least_conn_module)
334                                         STREAM_UPSTREAM_LEAST_CONN=NO ;;
335        --without-stream_upstream_random_module)
336                                         STREAM_UPSTREAM_RANDOM=NO  ;;
337        --without-stream_upstream_zone_module)
338                                         STREAM_UPSTREAM_ZONE=NO    ;;
339
340        --with-google_perftools_module)  NGX_GOOGLE_PERFTOOLS=YES   ;;
341        --with-cpp_test_module)          NGX_CPP_TEST=YES           ;;
342
343        --add-module=*)                  NGX_ADDONS="$NGX_ADDONS $value" ;;
344        --add-dynamic-module=*)          DYNAMIC_ADDONS="$DYNAMIC_ADDONS $value" ;;
345
346        --with-compat)                   NGX_COMPAT=YES             ;;
347
348        --with-cc=*)                     CC="$value"                ;;
349        --with-cpp=*)                    CPP="$value"               ;;
350        --with-cc-opt=*)                 NGX_CC_OPT="$value"        ;;
351        --with-ld-opt=*)                 NGX_LD_OPT="$value"        ;;
352        --with-cpu-opt=*)                CPU="$value"               ;;
353        --with-debug)                    NGX_DEBUG=YES              ;;
354
355        --without-pcre)                  USE_PCRE=DISABLED          ;;
356        --with-pcre)                     USE_PCRE=YES               ;;
357        --with-pcre=*)                   PCRE="$value"              ;;
358        --with-pcre-opt=*)               PCRE_OPT="$value"          ;;
359        --with-pcre-jit)                 PCRE_JIT=YES               ;;
360
361        --with-openssl=*)                OPENSSL="$value"           ;;
362        --with-openssl-opt=*)            OPENSSL_OPT="$value"       ;;
363
364        --with-md5=*)
365            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
366$0: warning: the \"--with-md5\" option is deprecated"
367        ;;
368        --with-md5-opt=*)
369            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
370$0: warning: the \"--with-md5-opt\" option is deprecated"
371        ;;
372        --with-md5-asm)
373            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
374$0: warning: the \"--with-md5-asm\" option is deprecated"
375        ;;
376
377        --with-sha1=*)
378            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
379$0: warning: the \"--with-sha1\" option is deprecated"
380        ;;
381        --with-sha1-opt=*)
382            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
383$0: warning: the \"--with-sha1-opt\" option is deprecated"
384        ;;
385        --with-sha1-asm)
386            NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
387$0: warning: the \"--with-sha1-asm\" option is deprecated"
388        ;;
389
390        --with-zlib=*)                   ZLIB="$value"              ;;
391        --with-zlib-opt=*)               ZLIB_OPT="$value"          ;;
392        --with-zlib-asm=*)               ZLIB_ASM="$value"          ;;
393
394        --with-libatomic)                NGX_LIBATOMIC=YES          ;;
395        --with-libatomic=*)              NGX_LIBATOMIC="$value"     ;;
396
397        --test-build-devpoll)            NGX_TEST_BUILD_DEVPOLL=YES ;;
398        --test-build-eventport)          NGX_TEST_BUILD_EVENTPORT=YES ;;
399        --test-build-epoll)              NGX_TEST_BUILD_EPOLL=YES   ;;
400        --test-build-solaris-sendfilev)  NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
401
402        *)
403            echo "$0: error: invalid option \"$option\""
404            exit 1
405        ;;
406    esac
407done
408
409
410NGX_CONFIGURE="$opt"
411
412
413if [ $help = yes ]; then
414
415cat << END
416
417  --help                             print this message
418
419  --prefix=PATH                      set installation prefix
420  --sbin-path=PATH                   set nginx binary pathname
421  --modules-path=PATH                set modules path
422  --conf-path=PATH                   set nginx.conf pathname
423  --error-log-path=PATH              set error log pathname
424  --pid-path=PATH                    set nginx.pid pathname
425  --lock-path=PATH                   set nginx.lock pathname
426
427  --user=USER                        set non-privileged user for
428                                     worker processes
429  --group=GROUP                      set non-privileged group for
430                                     worker processes
431
432  --build=NAME                       set build name
433  --builddir=DIR                     set build directory
434
435  --with-select_module               enable select module
436  --without-select_module            disable select module
437  --with-poll_module                 enable poll module
438  --without-poll_module              disable poll module
439
440  --with-threads                     enable thread pool support
441
442  --with-file-aio                    enable file AIO support
443
444  --with-http_ssl_module             enable ngx_http_ssl_module
445  --with-http_v2_module              enable ngx_http_v2_module
446  --with-http_realip_module          enable ngx_http_realip_module
447  --with-http_addition_module        enable ngx_http_addition_module
448  --with-http_xslt_module            enable ngx_http_xslt_module
449  --with-http_xslt_module=dynamic    enable dynamic ngx_http_xslt_module
450  --with-http_image_filter_module    enable ngx_http_image_filter_module
451  --with-http_image_filter_module=dynamic
452                                     enable dynamic ngx_http_image_filter_module
453  --with-http_geoip_module           enable ngx_http_geoip_module
454  --with-http_geoip_module=dynamic   enable dynamic ngx_http_geoip_module
455  --with-http_sub_module             enable ngx_http_sub_module
456  --with-http_dav_module             enable ngx_http_dav_module
457  --with-http_flv_module             enable ngx_http_flv_module
458  --with-http_mp4_module             enable ngx_http_mp4_module
459  --with-http_gunzip_module          enable ngx_http_gunzip_module
460  --with-http_gzip_static_module     enable ngx_http_gzip_static_module
461  --with-http_auth_request_module    enable ngx_http_auth_request_module
462  --with-http_random_index_module    enable ngx_http_random_index_module
463  --with-http_secure_link_module     enable ngx_http_secure_link_module
464  --with-http_degradation_module     enable ngx_http_degradation_module
465  --with-http_slice_module           enable ngx_http_slice_module
466  --with-http_stub_status_module     enable ngx_http_stub_status_module
467
468  --without-http_charset_module      disable ngx_http_charset_module
469  --without-http_gzip_module         disable ngx_http_gzip_module
470  --without-http_ssi_module          disable ngx_http_ssi_module
471  --without-http_userid_module       disable ngx_http_userid_module
472  --without-http_access_module       disable ngx_http_access_module
473  --without-http_auth_basic_module   disable ngx_http_auth_basic_module
474  --without-http_mirror_module       disable ngx_http_mirror_module
475  --without-http_autoindex_module    disable ngx_http_autoindex_module
476  --without-http_geo_module          disable ngx_http_geo_module
477  --without-http_map_module          disable ngx_http_map_module
478  --without-http_split_clients_module disable ngx_http_split_clients_module
479  --without-http_referer_module      disable ngx_http_referer_module
480  --without-http_rewrite_module      disable ngx_http_rewrite_module
481  --without-http_proxy_module        disable ngx_http_proxy_module
482  --without-http_fastcgi_module      disable ngx_http_fastcgi_module
483  --without-http_uwsgi_module        disable ngx_http_uwsgi_module
484  --without-http_scgi_module         disable ngx_http_scgi_module
485  --without-http_grpc_module         disable ngx_http_grpc_module
486  --without-http_memcached_module    disable ngx_http_memcached_module
487  --without-http_limit_conn_module   disable ngx_http_limit_conn_module
488  --without-http_limit_req_module    disable ngx_http_limit_req_module
489  --without-http_empty_gif_module    disable ngx_http_empty_gif_module
490  --without-http_browser_module      disable ngx_http_browser_module
491  --without-http_upstream_hash_module
492                                     disable ngx_http_upstream_hash_module
493  --without-http_upstream_ip_hash_module
494                                     disable ngx_http_upstream_ip_hash_module
495  --without-http_upstream_least_conn_module
496                                     disable ngx_http_upstream_least_conn_module
497  --without-http_upstream_random_module
498                                     disable ngx_http_upstream_random_module
499  --without-http_upstream_keepalive_module
500                                     disable ngx_http_upstream_keepalive_module
501  --without-http_upstream_zone_module
502                                     disable ngx_http_upstream_zone_module
503
504  --with-http_perl_module            enable ngx_http_perl_module
505  --with-http_perl_module=dynamic    enable dynamic ngx_http_perl_module
506  --with-perl_modules_path=PATH      set Perl modules path
507  --with-perl=PATH                   set perl binary pathname
508
509  --http-log-path=PATH               set http access log pathname
510  --http-client-body-temp-path=PATH  set path to store
511                                     http client request body temporary files
512  --http-proxy-temp-path=PATH        set path to store
513                                     http proxy temporary files
514  --http-fastcgi-temp-path=PATH      set path to store
515                                     http fastcgi temporary files
516  --http-uwsgi-temp-path=PATH        set path to store
517                                     http uwsgi temporary files
518  --http-scgi-temp-path=PATH         set path to store
519                                     http scgi temporary files
520
521  --without-http                     disable HTTP server
522  --without-http-cache               disable HTTP cache
523
524  --with-mail                        enable POP3/IMAP4/SMTP proxy module
525  --with-mail=dynamic                enable dynamic POP3/IMAP4/SMTP proxy module
526  --with-mail_ssl_module             enable ngx_mail_ssl_module
527  --without-mail_pop3_module         disable ngx_mail_pop3_module
528  --without-mail_imap_module         disable ngx_mail_imap_module
529  --without-mail_smtp_module         disable ngx_mail_smtp_module
530
531  --with-stream                      enable TCP/UDP proxy module
532  --with-stream=dynamic              enable dynamic TCP/UDP proxy module
533  --with-stream_ssl_module           enable ngx_stream_ssl_module
534  --with-stream_realip_module        enable ngx_stream_realip_module
535  --with-stream_geoip_module         enable ngx_stream_geoip_module
536  --with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module
537  --with-stream_ssl_preread_module   enable ngx_stream_ssl_preread_module
538  --without-stream_limit_conn_module disable ngx_stream_limit_conn_module
539  --without-stream_access_module     disable ngx_stream_access_module
540  --without-stream_geo_module        disable ngx_stream_geo_module
541  --without-stream_map_module        disable ngx_stream_map_module
542  --without-stream_split_clients_module
543                                     disable ngx_stream_split_clients_module
544  --without-stream_return_module     disable ngx_stream_return_module
545  --without-stream_set_module        disable ngx_stream_set_module
546  --without-stream_upstream_hash_module
547                                     disable ngx_stream_upstream_hash_module
548  --without-stream_upstream_least_conn_module
549                                     disable ngx_stream_upstream_least_conn_module
550  --without-stream_upstream_random_module
551                                     disable ngx_stream_upstream_random_module
552  --without-stream_upstream_zone_module
553                                     disable ngx_stream_upstream_zone_module
554
555  --with-google_perftools_module     enable ngx_google_perftools_module
556  --with-cpp_test_module             enable ngx_cpp_test_module
557
558  --add-module=PATH                  enable external module
559  --add-dynamic-module=PATH          enable dynamic external module
560
561  --with-compat                      dynamic modules compatibility
562
563  --with-cc=PATH                     set C compiler pathname
564  --with-cpp=PATH                    set C preprocessor pathname
565  --with-cc-opt=OPTIONS              set additional C compiler options
566  --with-ld-opt=OPTIONS              set additional linker options
567  --with-cpu-opt=CPU                 build for the specified CPU, valid values:
568                                     pentium, pentiumpro, pentium3, pentium4,
569                                     athlon, opteron, sparc32, sparc64, ppc64
570
571  --without-pcre                     disable PCRE library usage
572  --with-pcre                        force PCRE library usage
573  --with-pcre=DIR                    set path to PCRE library sources
574  --with-pcre-opt=OPTIONS            set additional build options for PCRE
575  --with-pcre-jit                    build PCRE with JIT compilation support
576
577  --with-zlib=DIR                    set path to zlib library sources
578  --with-zlib-opt=OPTIONS            set additional build options for zlib
579  --with-zlib-asm=CPU                use zlib assembler sources optimized
580                                     for the specified CPU, valid values:
581                                     pentium, pentiumpro
582
583  --with-libatomic                   force libatomic_ops library usage
584  --with-libatomic=DIR               set path to libatomic_ops library sources
585
586  --with-openssl=DIR                 set path to OpenSSL library sources
587  --with-openssl-opt=OPTIONS         set additional build options for OpenSSL
588
589  --with-debug                       enable debug logging
590
591END
592
593    exit 1
594fi
595
596
597if [ ".$NGX_PLATFORM" = ".win32" ]; then
598    NGX_WINE=$WINE
599fi
600
601
602NGX_SBIN_PATH=${NGX_SBIN_PATH:-sbin/nginx}
603NGX_MODULES_PATH=${NGX_MODULES_PATH:-modules}
604NGX_CONF_PATH=${NGX_CONF_PATH:-conf/nginx.conf}
605NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH`
606NGX_PID_PATH=${NGX_PID_PATH:-logs/nginx.pid}
607NGX_LOCK_PATH=${NGX_LOCK_PATH:-logs/nginx.lock}
608
609if [ ".$NGX_ERROR_LOG_PATH" = ".stderr" ]; then
610    NGX_ERROR_LOG_PATH=
611else
612    NGX_ERROR_LOG_PATH=${NGX_ERROR_LOG_PATH:-logs/error.log}
613fi
614
615NGX_HTTP_LOG_PATH=${NGX_HTTP_LOG_PATH:-logs/access.log}
616NGX_HTTP_CLIENT_TEMP_PATH=${NGX_HTTP_CLIENT_TEMP_PATH:-client_body_temp}
617NGX_HTTP_PROXY_TEMP_PATH=${NGX_HTTP_PROXY_TEMP_PATH:-proxy_temp}
618NGX_HTTP_FASTCGI_TEMP_PATH=${NGX_HTTP_FASTCGI_TEMP_PATH:-fastcgi_temp}
619NGX_HTTP_UWSGI_TEMP_PATH=${NGX_HTTP_UWSGI_TEMP_PATH:-uwsgi_temp}
620NGX_HTTP_SCGI_TEMP_PATH=${NGX_HTTP_SCGI_TEMP_PATH:-scgi_temp}
621
622case ".$NGX_PERL_MODULES" in
623    ./*)
624    ;;
625
626    .)
627    ;;
628
629    *)
630        NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES
631    ;;
632esac
633