comparison auto/options @ 4:4b2dafa26fe2 NGINX_0_1_2

nginx 0.1.2 *) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; bug appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; bug appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
author Igor Sysoev <http://sysoev.ru>
date Thu, 21 Oct 2004 00:00:00 +0400
parents f0b350454894
children 80ba094c6b3e
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
1 1
2 # Copyright (C) Igor Sysoev 2 # Copyright (C) Igor Sysoev
3
3 4
4 help=no 5 help=no
5 6
6 PREFIX= 7 PREFIX=
7 SBIN_PATH= 8 SBIN_PATH=
8 CONF_PATH= 9 CONF_PATH=
9 HTTP_LOG_PATH=
10 ERROR_LOG_PATH= 10 ERROR_LOG_PATH=
11 PID_PATH= 11 PID_PATH=
12 12 NGX_USER=
13 CC=gcc 13 NGX_GROUP=
14 HTTP_LOG_PATH=
15
16 CC=${CC:-gcc}
14 CPP= 17 CPP=
15 OBJS=objs 18 NGX_OBJS=objs
16 19
17 DEBUG=NO 20 DEBUG=NO
18 CC_OPT= 21 NGX_CC_OPT=
22 NGX_LD_OPT=
19 CPU=NO 23 CPU=NO
20 24
21 TEST_BUILD_DEVPOLL=NO 25 TEST_BUILD_DEVPOLL=NO
22 TEST_BUILD_EPOLL=NO 26 TEST_BUILD_EPOLL=NO
23 TEST_BUILD_RTSIG=NO 27 TEST_BUILD_RTSIG=NO
75 --prefix=*) PREFIX="$value" ;; 79 --prefix=*) PREFIX="$value" ;;
76 --sbin-path=*) SBIN_PATH="$value" ;; 80 --sbin-path=*) SBIN_PATH="$value" ;;
77 --conf-path=*) CONF_PATH="$value" ;; 81 --conf-path=*) CONF_PATH="$value" ;;
78 --error-log-path=*) ERROR_LOG_PATH="$value" ;; 82 --error-log-path=*) ERROR_LOG_PATH="$value" ;;
79 --pid-path=*) PID_PATH="$value" ;; 83 --pid-path=*) PID_PATH="$value" ;;
84 --user=*) NGX_USER="$value" ;;
85 --group=*) NGX_GROUP="$value" ;;
80 86
81 --crossbuild=*) PLATFORM="$value" ;; 87 --crossbuild=*) PLATFORM="$value" ;;
82 88
83 --builddir=*) OBJS="$value" ;; 89 --builddir=*) NGX_OBJS="$value" ;;
84 90
85 --with-rtsig_module) EVENT_RTSIG=YES ;; 91 --with-rtsig_module) EVENT_RTSIG=YES ;;
86 --with-select_module) EVENT_SELECT=YES ;; 92 --with-select_module) EVENT_SELECT=YES ;;
87 --without-select_module) EVENT_SELECT=NONE ;; 93 --without-select_module) EVENT_SELECT=NONE ;;
88 --with-poll_module) EVENT_POLL=YES ;; 94 --with-poll_module) EVENT_POLL=YES ;;
107 113
108 --with-imap) IMAP=YES ;; 114 --with-imap) IMAP=YES ;;
109 115
110 --with-cc=*) CC="$value" ;; 116 --with-cc=*) CC="$value" ;;
111 --with-cpp=*) CPP="$value" ;; 117 --with-cpp=*) CPP="$value" ;;
112 --with-cc-opt=*) CC_OPT="$value" ;; 118 --with-cc-opt=*) NGX_CC_OPT="$value" ;;
119 --with-ld-opt=*) NGX_LD_OPT="$value" ;;
113 --with-cpu-opt=*) CPU="$value" ;; 120 --with-cpu-opt=*) CPU="$value" ;;
114 --with-debug) DEBUG=YES ;; 121 --with-debug) DEBUG=YES ;;
115 122
116 --without-pcre) USE_PCRE=DISABLED ;; 123 --without-pcre) USE_PCRE=DISABLED ;;
117 --with-pcre=*) PCRE="$value" ;; 124 --with-pcre=*) PCRE="$value" ;;
138 esac 145 esac
139 done 146 done
140 147
141 148
142 if [ $help = yes ]; then 149 if [ $help = yes ]; then
143 echo 150
144 echo " --help this message" 151 cat << END
145 echo 152
146 153 --help this message
147 echo " --without-select_module disable select_module" 154
148 echo " --without-poll_module disable poll_module" 155 --user=USER set non-privilege user
149 156 for the worker processes
150 echo " --without-http_rewrite_module disable http_rewrite_module" 157 --group=GROUP set non-privilege group
151 echo " --without-http_gzip_module disable http_gzip_module" 158 for the worker processes
152 echo " --without-http_proxy_module disable http_proxy_module" 159
153 160 --with-select_module enable select module
154 echo " --with-cc=NAME name of or path to C compiler" 161 --without-select_module disable select module
155 echo 162 --with-poll_module enable poll module
156 163 --without-poll_module disable poll module
157 echo " --with-pcre=DIR path to PCRE library" 164
158 echo " --with-md5=DIR path to md5 library" 165 --without-http_charset_module disable ngx_http_charset_module
159 echo " --with-zlib=DIR path to zlib library" 166 --without-http_rewrite_module disable ngx_http_rewrite_module
160 echo 167 --without-http_gzip_module disable ngx_http_gzip_module
168 --without-http_proxy_module disable ngx_http_proxy_module
169
170 --with-cc-opt=OPTIONS additional options for compiler
171 --with-ld-opt=OPTIONS additional options for linker
172
173 --with-pcre=DIR path to PCRE library
174 --with-md5=DIR path to md5 library
175 --with-zlib=DIR path to zlib library
176 --with-openssl=DIR path to OpenSSL library
177
178 END
161 179
162 exit 1 180 exit 1
163 fi 181 fi
164 182
165 183
179 EVENT_POLL=NO 197 EVENT_POLL=NO
180 echo "$0: warning: --with-poll_module option is ignored for win32" 198 echo "$0: warning: --with-poll_module option is ignored for win32"
181 fi 199 fi
182 200
183 201
184 if [ ".$PREFIX" = "." ]; then 202 if test -z "$PREFIX"; then
185 PREFIX=/usr/local/nginx 203 PREFIX=/usr/local/nginx
204 fi
205
206
207 if test -z "$NGX_GROUP"; then
208 NGX_GROUP=NGX_USER
209 fi
210
211
212 if test -z "$NGX_USER"; then
213 NGX_USER=nobody
214 NGX_GROUP=nobody
186 fi 215 fi
187 216
188 217
189 case ".$SBIN_PATH" in 218 case ".$SBIN_PATH" in
190 ./*) 219 ./*)