options 25 KB

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