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