Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.15.12 ]​[ nginx-1.16.0 ]​

0001 
0002 # Copyright (C) Igor Sysoev
0003 # Copyright (C) Nginx, Inc.
0004 
0005 
0006 help=no
0007 
0008 NGX_PREFIX=
0009 NGX_SBIN_PATH=
0010 NGX_MODULES_PATH=
0011 NGX_CONF_PREFIX=
0012 NGX_CONF_PATH=
0013 NGX_ERROR_LOG_PATH=
0014 NGX_PID_PATH=
0015 NGX_LOCK_PATH=
0016 NGX_USER=
0017 NGX_GROUP=
0018 NGX_BUILD=
0019 
0020 CC=${CC:-cc}
0021 CPP=
0022 NGX_OBJS=objs
0023 
0024 NGX_DEBUG=NO
0025 NGX_CC_OPT=
0026 NGX_LD_OPT=
0027 CPU=NO
0028 
0029 NGX_RPATH=NO
0030 
0031 NGX_TEST_BUILD_DEVPOLL=NO
0032 NGX_TEST_BUILD_EVENTPORT=NO
0033 NGX_TEST_BUILD_EPOLL=NO
0034 NGX_TEST_BUILD_SOLARIS_SENDFILEV=NO
0035 
0036 NGX_PLATFORM=
0037 NGX_WINE=
0038 
0039 EVENT_FOUND=NO
0040 
0041 EVENT_SELECT=NO
0042 EVENT_POLL=NO
0043 
0044 USE_THREADS=NO
0045 
0046 NGX_FILE_AIO=NO
0047 
0048 HTTP=YES
0049 
0050 NGX_HTTP_LOG_PATH=
0051 NGX_HTTP_CLIENT_TEMP_PATH=
0052 NGX_HTTP_PROXY_TEMP_PATH=
0053 NGX_HTTP_FASTCGI_TEMP_PATH=
0054 NGX_HTTP_UWSGI_TEMP_PATH=
0055 NGX_HTTP_SCGI_TEMP_PATH=
0056 
0057 HTTP_CACHE=YES
0058 HTTP_CHARSET=YES
0059 HTTP_GZIP=YES
0060 HTTP_SSL=NO
0061 HTTP_V2=NO
0062 HTTP_SSI=YES
0063 HTTP_POSTPONE=NO
0064 HTTP_REALIP=NO
0065 HTTP_XSLT=NO
0066 HTTP_IMAGE_FILTER=NO
0067 HTTP_SUB=NO
0068 HTTP_ADDITION=NO
0069 HTTP_DAV=NO
0070 HTTP_ACCESS=YES
0071 HTTP_AUTH_BASIC=YES
0072 HTTP_AUTH_REQUEST=NO
0073 HTTP_MIRROR=YES
0074 HTTP_USERID=YES
0075 HTTP_SLICE=NO
0076 HTTP_AUTOINDEX=YES
0077 HTTP_RANDOM_INDEX=NO
0078 HTTP_STATUS=NO
0079 HTTP_GEO=YES
0080 HTTP_GEOIP=NO
0081 HTTP_MAP=YES
0082 HTTP_SPLIT_CLIENTS=YES
0083 HTTP_REFERER=YES
0084 HTTP_REWRITE=YES
0085 HTTP_PROXY=YES
0086 HTTP_FASTCGI=YES
0087 HTTP_UWSGI=YES
0088 HTTP_SCGI=YES
0089 HTTP_GRPC=YES
0090 HTTP_PERL=NO
0091 HTTP_MEMCACHED=YES
0092 HTTP_LIMIT_CONN=YES
0093 HTTP_LIMIT_REQ=YES
0094 HTTP_EMPTY_GIF=YES
0095 HTTP_BROWSER=YES
0096 HTTP_SECURE_LINK=NO
0097 HTTP_DEGRADATION=NO
0098 HTTP_FLV=NO
0099 HTTP_MP4=NO
0100 HTTP_GUNZIP=NO
0101 HTTP_GZIP_STATIC=NO
0102 HTTP_UPSTREAM_HASH=YES
0103 HTTP_UPSTREAM_IP_HASH=YES
0104 HTTP_UPSTREAM_LEAST_CONN=YES
0105 HTTP_UPSTREAM_RANDOM=YES
0106 HTTP_UPSTREAM_KEEPALIVE=YES
0107 HTTP_UPSTREAM_ZONE=YES
0108 
0109 # STUB
0110 HTTP_STUB_STATUS=NO
0111 
0112 MAIL=NO
0113 MAIL_SSL=NO
0114 MAIL_POP3=YES
0115 MAIL_IMAP=YES
0116 MAIL_SMTP=YES
0117 
0118 STREAM=NO
0119 STREAM_SSL=NO
0120 STREAM_REALIP=NO
0121 STREAM_LIMIT_CONN=YES
0122 STREAM_ACCESS=YES
0123 STREAM_GEO=YES
0124 STREAM_GEOIP=NO
0125 STREAM_MAP=YES
0126 STREAM_SPLIT_CLIENTS=YES
0127 STREAM_RETURN=YES
0128 STREAM_UPSTREAM_HASH=YES
0129 STREAM_UPSTREAM_LEAST_CONN=YES
0130 STREAM_UPSTREAM_RANDOM=YES
0131 STREAM_UPSTREAM_ZONE=YES
0132 STREAM_SSL_PREREAD=NO
0133 
0134 DYNAMIC_MODULES=
0135 
0136 NGX_ADDONS=
0137 NGX_ADDON_DEPS=
0138 DYNAMIC_ADDONS=
0139 
0140 NGX_COMPAT=NO
0141 
0142 USE_PCRE=NO
0143 PCRE=NONE
0144 PCRE_OPT=
0145 PCRE_CONF_OPT=
0146 PCRE_JIT=NO
0147 
0148 USE_OPENSSL=NO
0149 OPENSSL=NONE
0150 
0151 USE_ZLIB=NO
0152 ZLIB=NONE
0153 ZLIB_OPT=
0154 ZLIB_ASM=NO
0155 
0156 USE_PERL=NO
0157 NGX_PERL=perl
0158 
0159 USE_LIBXSLT=NO
0160 USE_LIBGD=NO
0161 USE_GEOIP=NO
0162 
0163 NGX_GOOGLE_PERFTOOLS=NO
0164 NGX_CPP_TEST=NO
0165 
0166 NGX_LIBATOMIC=NO
0167 
0168 NGX_CPU_CACHE_LINE=
0169 
0170 NGX_POST_CONF_MSG=
0171 
0172 opt=
0173 
0174 for option
0175 do
0176     opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
0177 
0178     case "$option" in
0179         -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
0180            *) value="" ;;
0181     esac
0182 
0183     case "$option" in
0184         --help)                          help=yes                   ;;
0185 
0186         --prefix=)                       NGX_PREFIX="!"             ;;
0187         --prefix=*)                      NGX_PREFIX="$value"        ;;
0188         --sbin-path=*)                   NGX_SBIN_PATH="$value"     ;;
0189         --modules-path=*)                NGX_MODULES_PATH="$value"  ;;
0190         --conf-path=*)                   NGX_CONF_PATH="$value"     ;;
0191         --error-log-path=*)              NGX_ERROR_LOG_PATH="$value";;
0192         --pid-path=*)                    NGX_PID_PATH="$value"      ;;
0193         --lock-path=*)                   NGX_LOCK_PATH="$value"     ;;
0194         --user=*)                        NGX_USER="$value"          ;;
0195         --group=*)                       NGX_GROUP="$value"         ;;
0196 
0197         --crossbuild=*)                  NGX_PLATFORM="$value"      ;;
0198 
0199         --build=*)                       NGX_BUILD="$value"         ;;
0200         --builddir=*)                    NGX_OBJS="$value"          ;;
0201 
0202         --with-select_module)            EVENT_SELECT=YES           ;;
0203         --without-select_module)         EVENT_SELECT=NONE          ;;
0204         --with-poll_module)              EVENT_POLL=YES             ;;
0205         --without-poll_module)           EVENT_POLL=NONE            ;;
0206 
0207         --with-threads)                  USE_THREADS=YES            ;;
0208 
0209         --with-file-aio)                 NGX_FILE_AIO=YES           ;;
0210 
0211         --with-ipv6)
0212             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0213 $0: warning: the \"--with-ipv6\" option is deprecated"
0214         ;;
0215 
0216         --without-http)                  HTTP=NO                    ;;
0217         --without-http-cache)            HTTP_CACHE=NO              ;;
0218 
0219         --http-log-path=*)               NGX_HTTP_LOG_PATH="$value" ;;
0220         --http-client-body-temp-path=*)  NGX_HTTP_CLIENT_TEMP_PATH="$value" ;;
0221         --http-proxy-temp-path=*)        NGX_HTTP_PROXY_TEMP_PATH="$value" ;;
0222         --http-fastcgi-temp-path=*)      NGX_HTTP_FASTCGI_TEMP_PATH="$value" ;;
0223         --http-uwsgi-temp-path=*)        NGX_HTTP_UWSGI_TEMP_PATH="$value" ;;
0224         --http-scgi-temp-path=*)         NGX_HTTP_SCGI_TEMP_PATH="$value" ;;
0225 
0226         --with-http_ssl_module)          HTTP_SSL=YES               ;;
0227         --with-http_v2_module)           HTTP_V2=YES                ;;
0228         --with-http_realip_module)       HTTP_REALIP=YES            ;;
0229         --with-http_addition_module)     HTTP_ADDITION=YES          ;;
0230         --with-http_xslt_module)         HTTP_XSLT=YES              ;;
0231         --with-http_xslt_module=dynamic) HTTP_XSLT=DYNAMIC          ;;
0232         --with-http_image_filter_module) HTTP_IMAGE_FILTER=YES      ;;
0233         --with-http_image_filter_module=dynamic)
0234                                          HTTP_IMAGE_FILTER=DYNAMIC  ;;
0235         --with-http_geoip_module)        HTTP_GEOIP=YES             ;;
0236         --with-http_geoip_module=dynamic)
0237                                          HTTP_GEOIP=DYNAMIC         ;;
0238         --with-http_sub_module)          HTTP_SUB=YES               ;;
0239         --with-http_dav_module)          HTTP_DAV=YES               ;;
0240         --with-http_flv_module)          HTTP_FLV=YES               ;;
0241         --with-http_mp4_module)          HTTP_MP4=YES               ;;
0242         --with-http_gunzip_module)       HTTP_GUNZIP=YES            ;;
0243         --with-http_gzip_static_module)  HTTP_GZIP_STATIC=YES       ;;
0244         --with-http_auth_request_module) HTTP_AUTH_REQUEST=YES      ;;
0245         --with-http_random_index_module) HTTP_RANDOM_INDEX=YES      ;;
0246         --with-http_secure_link_module)  HTTP_SECURE_LINK=YES       ;;
0247         --with-http_degradation_module)  HTTP_DEGRADATION=YES       ;;
0248         --with-http_slice_module)        HTTP_SLICE=YES             ;;
0249 
0250         --without-http_charset_module)   HTTP_CHARSET=NO            ;;
0251         --without-http_gzip_module)      HTTP_GZIP=NO               ;;
0252         --without-http_ssi_module)       HTTP_SSI=NO                ;;
0253         --without-http_userid_module)    HTTP_USERID=NO             ;;
0254         --without-http_access_module)    HTTP_ACCESS=NO             ;;
0255         --without-http_auth_basic_module) HTTP_AUTH_BASIC=NO        ;;
0256         --without-http_mirror_module)    HTTP_MIRROR=NO             ;;
0257         --without-http_autoindex_module) HTTP_AUTOINDEX=NO          ;;
0258         --without-http_status_module)    HTTP_STATUS=NO             ;;
0259         --without-http_geo_module)       HTTP_GEO=NO                ;;
0260         --without-http_map_module)       HTTP_MAP=NO                ;;
0261         --without-http_split_clients_module) HTTP_SPLIT_CLIENTS=NO  ;;
0262         --without-http_referer_module)   HTTP_REFERER=NO            ;;
0263         --without-http_rewrite_module)   HTTP_REWRITE=NO            ;;
0264         --without-http_proxy_module)     HTTP_PROXY=NO              ;;
0265         --without-http_fastcgi_module)   HTTP_FASTCGI=NO            ;;
0266         --without-http_uwsgi_module)     HTTP_UWSGI=NO              ;;
0267         --without-http_scgi_module)      HTTP_SCGI=NO               ;;
0268         --without-http_grpc_module)      HTTP_GRPC=NO               ;;
0269         --without-http_memcached_module) HTTP_MEMCACHED=NO          ;;
0270         --without-http_limit_conn_module) HTTP_LIMIT_CONN=NO        ;;
0271         --without-http_limit_req_module) HTTP_LIMIT_REQ=NO         ;;
0272         --without-http_empty_gif_module) HTTP_EMPTY_GIF=NO          ;;
0273         --without-http_browser_module)   HTTP_BROWSER=NO            ;;
0274         --without-http_upstream_hash_module) HTTP_UPSTREAM_HASH=NO  ;;
0275         --without-http_upstream_ip_hash_module) HTTP_UPSTREAM_IP_HASH=NO ;;
0276         --without-http_upstream_least_conn_module)
0277                                          HTTP_UPSTREAM_LEAST_CONN=NO ;;
0278         --without-http_upstream_random_module)
0279                                          HTTP_UPSTREAM_RANDOM=NO    ;;
0280         --without-http_upstream_keepalive_module) HTTP_UPSTREAM_KEEPALIVE=NO ;;
0281         --without-http_upstream_zone_module) HTTP_UPSTREAM_ZONE=NO  ;;
0282 
0283         --with-http_perl_module)         HTTP_PERL=YES              ;;
0284         --with-http_perl_module=dynamic) HTTP_PERL=DYNAMIC          ;;
0285         --with-perl_modules_path=*)      NGX_PERL_MODULES="$value"  ;;
0286         --with-perl=*)                   NGX_PERL="$value"          ;;
0287 
0288         # STUB
0289         --with-http_stub_status_module)  HTTP_STUB_STATUS=YES       ;;
0290 
0291         --with-mail)                     MAIL=YES                   ;;
0292         --with-mail=dynamic)             MAIL=DYNAMIC               ;;
0293         --with-mail_ssl_module)          MAIL_SSL=YES               ;;
0294         # STUB
0295         --with-imap)
0296             MAIL=YES
0297             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0298 $0: warning: the \"--with-imap\" option is deprecated, \
0299 use the \"--with-mail\" option instead"
0300         ;;
0301         --with-imap_ssl_module)
0302             MAIL_SSL=YES
0303             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0304 $0: warning: the \"--with-imap_ssl_module\" option is deprecated, \
0305 use the \"--with-mail_ssl_module\" option instead"
0306         ;;
0307         --without-mail_pop3_module)      MAIL_POP3=NO               ;;
0308         --without-mail_imap_module)      MAIL_IMAP=NO               ;;
0309         --without-mail_smtp_module)      MAIL_SMTP=NO               ;;
0310 
0311         --with-stream)                   STREAM=YES                 ;;
0312         --with-stream=dynamic)           STREAM=DYNAMIC             ;;
0313         --with-stream_ssl_module)        STREAM_SSL=YES             ;;
0314         --with-stream_realip_module)     STREAM_REALIP=YES          ;;
0315         --with-stream_geoip_module)      STREAM_GEOIP=YES           ;;
0316         --with-stream_geoip_module=dynamic)
0317                                          STREAM_GEOIP=DYNAMIC       ;;
0318         --with-stream_ssl_preread_module)
0319                                          STREAM_SSL_PREREAD=YES     ;;
0320         --without-stream_limit_conn_module)
0321                                          STREAM_LIMIT_CONN=NO       ;;
0322         --without-stream_access_module)  STREAM_ACCESS=NO           ;;
0323         --without-stream_geo_module)     STREAM_GEO=NO              ;;
0324         --without-stream_map_module)     STREAM_MAP=NO              ;;
0325         --without-stream_split_clients_module)
0326                                          STREAM_SPLIT_CLIENTS=NO    ;;
0327         --without-stream_return_module)  STREAM_RETURN=NO           ;;
0328         --without-stream_upstream_hash_module)
0329                                          STREAM_UPSTREAM_HASH=NO    ;;
0330         --without-stream_upstream_least_conn_module)
0331                                          STREAM_UPSTREAM_LEAST_CONN=NO ;;
0332         --without-stream_upstream_random_module)
0333                                          STREAM_UPSTREAM_RANDOM=NO  ;;
0334         --without-stream_upstream_zone_module)
0335                                          STREAM_UPSTREAM_ZONE=NO    ;;
0336 
0337         --with-google_perftools_module)  NGX_GOOGLE_PERFTOOLS=YES   ;;
0338         --with-cpp_test_module)          NGX_CPP_TEST=YES           ;;
0339 
0340         --add-module=*)                  NGX_ADDONS="$NGX_ADDONS $value" ;;
0341         --add-dynamic-module=*)          DYNAMIC_ADDONS="$DYNAMIC_ADDONS $value" ;;
0342 
0343         --with-compat)                   NGX_COMPAT=YES             ;;
0344 
0345         --with-cc=*)                     CC="$value"                ;;
0346         --with-cpp=*)                    CPP="$value"               ;;
0347         --with-cc-opt=*)                 NGX_CC_OPT="$value"        ;;
0348         --with-ld-opt=*)                 NGX_LD_OPT="$value"        ;;
0349         --with-cpu-opt=*)                CPU="$value"               ;;
0350         --with-debug)                    NGX_DEBUG=YES              ;;
0351 
0352         --without-pcre)                  USE_PCRE=DISABLED          ;;
0353         --with-pcre)                     USE_PCRE=YES               ;;
0354         --with-pcre=*)                   PCRE="$value"              ;;
0355         --with-pcre-opt=*)               PCRE_OPT="$value"          ;;
0356         --with-pcre-jit)                 PCRE_JIT=YES               ;;
0357 
0358         --with-openssl=*)                OPENSSL="$value"           ;;
0359         --with-openssl-opt=*)            OPENSSL_OPT="$value"       ;;
0360 
0361         --with-md5=*)
0362             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0363 $0: warning: the \"--with-md5\" option is deprecated"
0364         ;;
0365         --with-md5-opt=*)
0366             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0367 $0: warning: the \"--with-md5-opt\" option is deprecated"
0368         ;;
0369         --with-md5-asm)
0370             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0371 $0: warning: the \"--with-md5-asm\" option is deprecated"
0372         ;;
0373 
0374         --with-sha1=*)
0375             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0376 $0: warning: the \"--with-sha1\" option is deprecated"
0377         ;;
0378         --with-sha1-opt=*)
0379             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0380 $0: warning: the \"--with-sha1-opt\" option is deprecated"
0381         ;;
0382         --with-sha1-asm)
0383             NGX_POST_CONF_MSG="$NGX_POST_CONF_MSG
0384 $0: warning: the \"--with-sha1-asm\" option is deprecated"
0385         ;;
0386 
0387         --with-zlib=*)                   ZLIB="$value"              ;;
0388         --with-zlib-opt=*)               ZLIB_OPT="$value"          ;;
0389         --with-zlib-asm=*)               ZLIB_ASM="$value"          ;;
0390 
0391         --with-libatomic)                NGX_LIBATOMIC=YES          ;;
0392         --with-libatomic=*)              NGX_LIBATOMIC="$value"     ;;
0393 
0394         --test-build-devpoll)            NGX_TEST_BUILD_DEVPOLL=YES ;;
0395         --test-build-eventport)          NGX_TEST_BUILD_EVENTPORT=YES ;;
0396         --test-build-epoll)              NGX_TEST_BUILD_EPOLL=YES   ;;
0397         --test-build-solaris-sendfilev)  NGX_TEST_BUILD_SOLARIS_SENDFILEV=YES ;;
0398 
0399         *)
0400             echo "$0: error: invalid option \"$option\""
0401             exit 1
0402         ;;
0403     esac
0404 done
0405 
0406 
0407 NGX_CONFIGURE="$opt"
0408 
0409 
0410 if [ $help = yes ]; then
0411 
0412 cat << END
0413 
0414   --help                             print this message
0415 
0416   --prefix=PATH                      set installation prefix
0417   --sbin-path=PATH                   set nginx binary pathname
0418   --modules-path=PATH                set modules path
0419   --conf-path=PATH                   set nginx.conf pathname
0420   --error-log-path=PATH              set error log pathname
0421   --pid-path=PATH                    set nginx.pid pathname
0422   --lock-path=PATH                   set nginx.lock pathname
0423 
0424   --user=USER                        set non-privileged user for
0425                                      worker processes
0426   --group=GROUP                      set non-privileged group for
0427                                      worker processes
0428 
0429   --build=NAME                       set build name
0430   --builddir=DIR                     set build directory
0431 
0432   --with-select_module               enable select module
0433   --without-select_module            disable select module
0434   --with-poll_module                 enable poll module
0435   --without-poll_module              disable poll module
0436 
0437   --with-threads                     enable thread pool support
0438 
0439   --with-file-aio                    enable file AIO support
0440 
0441   --with-http_ssl_module             enable ngx_http_ssl_module
0442   --with-http_v2_module              enable ngx_http_v2_module
0443   --with-http_realip_module          enable ngx_http_realip_module
0444   --with-http_addition_module        enable ngx_http_addition_module
0445   --with-http_xslt_module            enable ngx_http_xslt_module
0446   --with-http_xslt_module=dynamic    enable dynamic ngx_http_xslt_module
0447   --with-http_image_filter_module    enable ngx_http_image_filter_module
0448   --with-http_image_filter_module=dynamic
0449                                      enable dynamic ngx_http_image_filter_module
0450   --with-http_geoip_module           enable ngx_http_geoip_module
0451   --with-http_geoip_module=dynamic   enable dynamic ngx_http_geoip_module
0452   --with-http_sub_module             enable ngx_http_sub_module
0453   --with-http_dav_module             enable ngx_http_dav_module
0454   --with-http_flv_module             enable ngx_http_flv_module
0455   --with-http_mp4_module             enable ngx_http_mp4_module
0456   --with-http_gunzip_module          enable ngx_http_gunzip_module
0457   --with-http_gzip_static_module     enable ngx_http_gzip_static_module
0458   --with-http_auth_request_module    enable ngx_http_auth_request_module
0459   --with-http_random_index_module    enable ngx_http_random_index_module
0460   --with-http_secure_link_module     enable ngx_http_secure_link_module
0461   --with-http_degradation_module     enable ngx_http_degradation_module
0462   --with-http_slice_module           enable ngx_http_slice_module
0463   --with-http_stub_status_module     enable ngx_http_stub_status_module
0464 
0465   --without-http_charset_module      disable ngx_http_charset_module
0466   --without-http_gzip_module         disable ngx_http_gzip_module
0467   --without-http_ssi_module          disable ngx_http_ssi_module
0468   --without-http_userid_module       disable ngx_http_userid_module
0469   --without-http_access_module       disable ngx_http_access_module
0470   --without-http_auth_basic_module   disable ngx_http_auth_basic_module
0471   --without-http_mirror_module       disable ngx_http_mirror_module
0472   --without-http_autoindex_module    disable ngx_http_autoindex_module
0473   --without-http_geo_module          disable ngx_http_geo_module
0474   --without-http_map_module          disable ngx_http_map_module
0475   --without-http_split_clients_module disable ngx_http_split_clients_module
0476   --without-http_referer_module      disable ngx_http_referer_module
0477   --without-http_rewrite_module      disable ngx_http_rewrite_module
0478   --without-http_proxy_module        disable ngx_http_proxy_module
0479   --without-http_fastcgi_module      disable ngx_http_fastcgi_module
0480   --without-http_uwsgi_module        disable ngx_http_uwsgi_module
0481   --without-http_scgi_module         disable ngx_http_scgi_module
0482   --without-http_grpc_module         disable ngx_http_grpc_module
0483   --without-http_memcached_module    disable ngx_http_memcached_module
0484   --without-http_limit_conn_module   disable ngx_http_limit_conn_module
0485   --without-http_limit_req_module    disable ngx_http_limit_req_module
0486   --without-http_empty_gif_module    disable ngx_http_empty_gif_module
0487   --without-http_browser_module      disable ngx_http_browser_module
0488   --without-http_upstream_hash_module
0489                                      disable ngx_http_upstream_hash_module
0490   --without-http_upstream_ip_hash_module
0491                                      disable ngx_http_upstream_ip_hash_module
0492   --without-http_upstream_least_conn_module
0493                                      disable ngx_http_upstream_least_conn_module
0494   --without-http_upstream_random_module
0495                                      disable ngx_http_upstream_random_module
0496   --without-http_upstream_keepalive_module
0497                                      disable ngx_http_upstream_keepalive_module
0498   --without-http_upstream_zone_module
0499                                      disable ngx_http_upstream_zone_module
0500 
0501   --with-http_perl_module            enable ngx_http_perl_module
0502   --with-http_perl_module=dynamic    enable dynamic ngx_http_perl_module
0503   --with-perl_modules_path=PATH      set Perl modules path
0504   --with-perl=PATH                   set perl binary pathname
0505 
0506   --http-log-path=PATH               set http access log pathname
0507   --http-client-body-temp-path=PATH  set path to store
0508                                      http client request body temporary files
0509   --http-proxy-temp-path=PATH        set path to store
0510                                      http proxy temporary files
0511   --http-fastcgi-temp-path=PATH      set path to store
0512                                      http fastcgi temporary files
0513   --http-uwsgi-temp-path=PATH        set path to store
0514                                      http uwsgi temporary files
0515   --http-scgi-temp-path=PATH         set path to store
0516                                      http scgi temporary files
0517 
0518   --without-http                     disable HTTP server
0519   --without-http-cache               disable HTTP cache
0520 
0521   --with-mail                        enable POP3/IMAP4/SMTP proxy module
0522   --with-mail=dynamic                enable dynamic POP3/IMAP4/SMTP proxy module
0523   --with-mail_ssl_module             enable ngx_mail_ssl_module
0524   --without-mail_pop3_module         disable ngx_mail_pop3_module
0525   --without-mail_imap_module         disable ngx_mail_imap_module
0526   --without-mail_smtp_module         disable ngx_mail_smtp_module
0527 
0528   --with-stream                      enable TCP/UDP proxy module
0529   --with-stream=dynamic              enable dynamic TCP/UDP proxy module
0530   --with-stream_ssl_module           enable ngx_stream_ssl_module
0531   --with-stream_realip_module        enable ngx_stream_realip_module
0532   --with-stream_geoip_module         enable ngx_stream_geoip_module
0533   --with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module
0534   --with-stream_ssl_preread_module   enable ngx_stream_ssl_preread_module
0535   --without-stream_limit_conn_module disable ngx_stream_limit_conn_module
0536   --without-stream_access_module     disable ngx_stream_access_module
0537   --without-stream_geo_module        disable ngx_stream_geo_module
0538   --without-stream_map_module        disable ngx_stream_map_module
0539   --without-stream_split_clients_module
0540                                      disable ngx_stream_split_clients_module
0541   --without-stream_return_module     disable ngx_stream_return_module
0542   --without-stream_upstream_hash_module
0543                                      disable ngx_stream_upstream_hash_module
0544   --without-stream_upstream_least_conn_module
0545                                      disable ngx_stream_upstream_least_conn_module
0546   --without-stream_upstream_random_module
0547                                      disable ngx_stream_upstream_random_module
0548   --without-stream_upstream_zone_module
0549                                      disable ngx_stream_upstream_zone_module
0550 
0551   --with-google_perftools_module     enable ngx_google_perftools_module
0552   --with-cpp_test_module             enable ngx_cpp_test_module
0553 
0554   --add-module=PATH                  enable external module
0555   --add-dynamic-module=PATH          enable dynamic external module
0556 
0557   --with-compat                      dynamic modules compatibility
0558 
0559   --with-cc=PATH                     set C compiler pathname
0560   --with-cpp=PATH                    set C preprocessor pathname
0561   --with-cc-opt=OPTIONS              set additional C compiler options
0562   --with-ld-opt=OPTIONS              set additional linker options
0563   --with-cpu-opt=CPU                 build for the specified CPU, valid values:
0564                                      pentium, pentiumpro, pentium3, pentium4,
0565                                      athlon, opteron, sparc32, sparc64, ppc64
0566 
0567   --without-pcre                     disable PCRE library usage
0568   --with-pcre                        force PCRE library usage
0569   --with-pcre=DIR                    set path to PCRE library sources
0570   --with-pcre-opt=OPTIONS            set additional build options for PCRE
0571   --with-pcre-jit                    build PCRE with JIT compilation support
0572 
0573   --with-zlib=DIR                    set path to zlib library sources
0574   --with-zlib-opt=OPTIONS            set additional build options for zlib
0575   --with-zlib-asm=CPU                use zlib assembler sources optimized
0576                                      for the specified CPU, valid values:
0577                                      pentium, pentiumpro
0578 
0579   --with-libatomic                   force libatomic_ops library usage
0580   --with-libatomic=DIR               set path to libatomic_ops library sources
0581 
0582   --with-openssl=DIR                 set path to OpenSSL library sources
0583   --with-openssl-opt=OPTIONS         set additional build options for OpenSSL
0584 
0585   --with-debug                       enable debug logging
0586 
0587 END
0588 
0589     exit 1
0590 fi
0591 
0592 
0593 if [ ".$NGX_PLATFORM" = ".win32" ]; then
0594     NGX_WINE=$WINE
0595 fi
0596 
0597 
0598 NGX_SBIN_PATH=${NGX_SBIN_PATH:-sbin/nginx}
0599 NGX_MODULES_PATH=${NGX_MODULES_PATH:-modules}
0600 NGX_CONF_PATH=${NGX_CONF_PATH:-conf/nginx.conf}
0601 NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH`
0602 NGX_PID_PATH=${NGX_PID_PATH:-logs/nginx.pid}
0603 NGX_LOCK_PATH=${NGX_LOCK_PATH:-logs/nginx.lock}
0604 
0605 if [ ".$NGX_ERROR_LOG_PATH" = ".stderr" ]; then
0606     NGX_ERROR_LOG_PATH=
0607 else
0608     NGX_ERROR_LOG_PATH=${NGX_ERROR_LOG_PATH:-logs/error.log}
0609 fi
0610 
0611 NGX_HTTP_LOG_PATH=${NGX_HTTP_LOG_PATH:-logs/access.log}
0612 NGX_HTTP_CLIENT_TEMP_PATH=${NGX_HTTP_CLIENT_TEMP_PATH:-client_body_temp}
0613 NGX_HTTP_PROXY_TEMP_PATH=${NGX_HTTP_PROXY_TEMP_PATH:-proxy_temp}
0614 NGX_HTTP_FASTCGI_TEMP_PATH=${NGX_HTTP_FASTCGI_TEMP_PATH:-fastcgi_temp}
0615 NGX_HTTP_UWSGI_TEMP_PATH=${NGX_HTTP_UWSGI_TEMP_PATH:-uwsgi_temp}
0616 NGX_HTTP_SCGI_TEMP_PATH=${NGX_HTTP_SCGI_TEMP_PATH:-scgi_temp}
0617 
0618 case ".$NGX_PERL_MODULES" in
0619     ./*)
0620     ;;
0621 
0622     .)
0623     ;;
0624 
0625     *)
0626         NGX_PERL_MODULES=$NGX_PREFIX/$NGX_PERL_MODULES
0627     ;;
0628 esac