options 25 KB

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