diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-05-18 20:28:54 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-05-18 20:28:54 +0000 |
| commit | 090849dc6f995c6ccdbd947093789165a347e460 (patch) | |
| tree | 4c25a4a1c9afb3dda64308b45675e29165b7bd2e /auto/options | |
| parent | ab517d58277429bba16d0641e00aebea061db1ce (diff) | |
| download | nginx-090849dc6f995c6ccdbd947093789165a347e460.tar.gz nginx-090849dc6f995c6ccdbd947093789165a347e460.tar.bz2 | |
nginx-0.0.3-2004-05-19-00:28:54 import
Diffstat (limited to 'auto/options')
| -rw-r--r-- | auto/options | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/auto/options b/auto/options index 178dfd275..8ef6dddbb 100644 --- a/auto/options +++ b/auto/options @@ -1,6 +1,13 @@ help=no +PREFIX= +SBIN_PATH= +CONF_PATH= +HTTP_LOG_PATH= +ERROR_LOG_PATH= +PID_PATH= + CC=gcc CPP= OBJS=objs @@ -52,6 +59,13 @@ do case "$option" in --help) help=yes ;; + --prefix=*) PREFIX="$value" ;; + --sbin-path=*) SBIN_PATH="$value" ;; + --conf-path=*) CONF_PATH="$value" ;; + --http-log-path=*) HTTP_LOG_PATH="$value" ;; + --error-log-path=*) ERROR_LOG_PATH="$value" ;; + --pid-path=*) PID_PATH="$value" ;; + --crossbuild=*) PLATFORM="$value" ;; --builddir=*) OBJS="$value" ;; @@ -129,3 +143,28 @@ if [ ".$PLATFORM" = ".win32" -a $EVENT_POLL = YES ]; then EVENT_POLL=NO echo "$0: warning: --with-poll_module option is ignored for win32" fi + + +if [ ".$PREFIX" = "." ]; then + PREFIX=/usr/local/nginx +fi + +if [ ".$SBIN_PATH" = "." ]; then + SBIN_PATH=$PREFIX/sbin/nginx +fi + +if [ ".$CONF_PATH" = "." ]; then + CONF_PATH=$PREFIX/conf/nginx.conf +fi + +if [ ".$PID_PATH" = "." ]; then + PID_PATH=$PREFIX/logs/nginx.pid +fi + +if [ ".$ERROR_LOG_PATH" = "." ]; then + ERROR_LOG_PATH=$PREFIX/logs/error.log +fi + +if [ ".$HTTP_LOG_PATH" = "." ]; then + HTTP_LOG_PATH=$PREFIX/logs/access.log +fi |
