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