2004-02-03 05:19:52 +08:00
|
|
|
|
2004-09-30 00:00:49 +08:00
|
|
|
# Copyright (C) Igor Sysoev
|
|
|
|
|
|
|
|
|
2004-02-10 04:47:18 +08:00
|
|
|
if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
|
|
|
|
EVENT_SELECT=YES
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $EVENT_SELECT = YES ]; then
|
2004-11-26 00:17:31 +08:00
|
|
|
have=NGX_HAVE_SELECT . auto/have
|
2004-02-10 04:47:18 +08:00
|
|
|
CORE_SRCS="$CORE_SRCS $SELECT_SRCS"
|
|
|
|
EVENT_MODULES="$EVENT_MODULES $SELECT_MODULE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ $EVENT_POLL = NO -a $EVENT_FOUND = NO ]; then
|
|
|
|
EVENT_POLL=YES
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $EVENT_POLL = YES ]; then
|
2004-11-26 00:17:31 +08:00
|
|
|
have=NGX_HAVE_POLL . auto/have
|
2004-02-10 04:47:18 +08:00
|
|
|
CORE_SRCS="$CORE_SRCS $POLL_SRCS"
|
|
|
|
EVENT_MODULES="$EVENT_MODULES $POLL_MODULE"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2004-11-26 00:17:31 +08:00
|
|
|
if [ $NGX_TEST_BUILD_DEVPOLL = YES ]; then
|
|
|
|
have=NGX_HAVE_DEVPOLL . auto/have
|
|
|
|
have=NGX_TEST_BUILD_DEVPOLL . auto/have
|
2004-02-10 04:47:18 +08:00
|
|
|
EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE"
|
|
|
|
CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-11-26 00:17:31 +08:00
|
|
|
if [ $NGX_TEST_BUILD_EPOLL = YES ]; then
|
|
|
|
have=NGX_HAVE_EPOLL . auto/have
|
|
|
|
have=NGX_TEST_BUILD_EPOLL . auto/have
|
2004-02-10 04:47:18 +08:00
|
|
|
EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE"
|
|
|
|
CORE_SRCS="$CORE_SRCS $EPOLL_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-11-26 00:17:31 +08:00
|
|
|
if [ $NGX_TEST_BUILD_RTSIG = YES ]; then
|
|
|
|
have=NGX_HAVE_RTSIG . auto/have
|
|
|
|
have=NGX_TEST_BUILD_RTSIG . auto/have
|
2004-02-18 01:53:12 +08:00
|
|
|
EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
|
|
|
|
CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
|
2004-02-10 04:47:18 +08:00
|
|
|
fi
|
|
|
|
|
2004-12-03 02:40:46 +08:00
|
|
|
if [ $NGX_TEST_BUILD_SOLARIS_SENDFILEV = YES ]; then
|
|
|
|
have=NGX_TEST_BUILD_SOLARIS_SENDFILEV . auto/have
|
|
|
|
CORE_SRCS="$CORE_SRCS $SOLARIS_SENDFILEV_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-02-10 04:47:18 +08:00
|
|
|
|
2004-07-15 00:01:42 +08:00
|
|
|
# the filter order is important
|
|
|
|
# ngx_http_write_filter
|
|
|
|
# ngx_http_header_filter
|
|
|
|
# ngx_http_chunked_filter
|
|
|
|
# ngx_http_range_header_filter
|
2004-07-15 04:07:58 +08:00
|
|
|
# ngx_http_ssl_filter
|
2004-07-15 00:01:42 +08:00
|
|
|
# ngx_http_gzip_filter
|
|
|
|
# ngx_http_charset_filter
|
|
|
|
# ngx_http_ssi_filter
|
|
|
|
# ngx_http_headers_filter
|
|
|
|
# ngx_http_copy_filter
|
|
|
|
# ngx_http_range_body_filter
|
|
|
|
# ngx_http_not_modified_filter
|
|
|
|
|
2004-07-15 04:07:58 +08:00
|
|
|
HTTP_FILTER_MODULES="$HTTP_WRITE_FILTER_MODULE \
|
|
|
|
$HTTP_HEADER_FILTER_MODULE \
|
|
|
|
$HTTP_CHUNKED_FILTER_MODULE \
|
|
|
|
$HTTP_RANGE_HEADER_FILTER_MODULE"
|
2004-07-15 00:01:42 +08:00
|
|
|
|
2004-02-03 05:19:52 +08:00
|
|
|
if [ $HTTP_GZIP = YES ]; then
|
2004-03-12 05:34:52 +08:00
|
|
|
have=NGX_HTTP_GZIP . auto/have
|
2004-02-03 05:19:52 +08:00
|
|
|
USE_ZLIB=YES
|
|
|
|
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_GZIP_FILTER_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_GZIP_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-07-12 23:30:22 +08:00
|
|
|
if [ $HTTP_CHARSET = YES ]; then
|
|
|
|
have=NGX_HTTP_CHARSET . auto/have
|
|
|
|
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_CHARSET_FILTER_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_CHARSET_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-02-03 05:19:52 +08:00
|
|
|
if [ $HTTP_SSI = YES ]; then
|
2004-03-12 05:34:52 +08:00
|
|
|
have=NGX_HTTP_SSI . auto/have
|
2004-02-03 05:19:52 +08:00
|
|
|
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSI_FILTER_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_SSI_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-08-29 11:55:41 +08:00
|
|
|
if [ $HTTP_USERID = YES ]; then
|
|
|
|
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_USERID_FILTER_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_USERID_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-10-25 23:29:23 +08:00
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_STATIC_MODULE"
|
|
|
|
|
|
|
|
if [ $HTTP_AUTOINDEX = YES ]; then
|
|
|
|
have=NGX_HTTP_AUTOINDEX . auto/have
|
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_AUTOINDEX_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_AUTOINDEX_SRCS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_INDEX_MODULE"
|
2004-06-23 00:43:09 +08:00
|
|
|
|
2004-06-25 00:07:04 +08:00
|
|
|
if [ $HTTP_ACCESS = YES ]; then
|
|
|
|
have=NGX_HTTP_ACCESS . auto/have
|
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_ACCESS_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_ACCESS_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-06-24 15:53:37 +08:00
|
|
|
if [ $HTTP_STATUS = YES ]; then
|
|
|
|
have=NGX_HTTP_STATUS . auto/have
|
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_STATUS_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_STATUS_SRCS"
|
|
|
|
fi
|
|
|
|
|
2005-02-04 03:33:37 +08:00
|
|
|
if [ $HTTP_GEO = YES ]; then
|
|
|
|
have=NGX_HTTP_GEO . auto/have
|
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_GEO_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_GEO_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-06-23 00:43:09 +08:00
|
|
|
if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then
|
|
|
|
have=NGX_HTTP_REWRITE . auto/have
|
|
|
|
USE_PCRE=YES
|
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_REWRITE_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_REWRITE_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-07-17 01:11:43 +08:00
|
|
|
if [ $HTTP_SSL = YES ]; then
|
2004-07-26 02:34:14 +08:00
|
|
|
USE_OPENSSL=YES
|
|
|
|
have=NGX_HTTP_SSL . auto/have
|
2004-07-17 01:11:43 +08:00
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_SSL_MODULE"
|
|
|
|
HTTP_DEPS="$HTTP_DEPS $HTTP_SSL_DEPS"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_SSL_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-02-03 05:19:52 +08:00
|
|
|
if [ $HTTP_PROXY = YES ]; then
|
2004-03-12 05:34:52 +08:00
|
|
|
have=NGX_HTTP_PROXY . auto/have
|
2004-09-30 23:30:54 +08:00
|
|
|
#USE_MD5=YES
|
2004-02-03 05:19:52 +08:00
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_PROXY_MODULE"
|
|
|
|
HTTP_INCS="$HTTP_INCS $HTTP_PROXY_INCS"
|
|
|
|
HTTP_DEPS="$HTTP_DEPS $HTTP_PROXY_DEPS"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_PROXY_SRCS"
|
|
|
|
fi
|
2004-03-05 16:34:24 +08:00
|
|
|
|
nginx-0.1.14-RELEASE import
*) Feature: the autoconfiguration directives:
--http-client-body-temp-path=PATH, --http-proxy-temp-path=PATH, and
--http-fastcgi-temp-path=PATH
*) Change: the directory name for the temporary files with the client
request body is specified by directive client_body_temp_path, by
default it is <prefix>/client_body_temp.
*) Feature: the ngx_http_fastcgi_module and the directives:
fastcgi_pass, fastcgi_root, fastcgi_index, fastcgi_params,
fastcgi_connect_timeout, fastcgi_send_timeout, fastcgi_read_timeout,
fastcgi_send_lowat, fastcgi_header_buffer_size, fastcgi_buffers,
fastcgi_busy_buffers_size, fastcgi_temp_path,
fastcgi_max_temp_file_size, fastcgi_temp_file_write_size,
fastcgi_next_upstream, and fastcgi_x_powered_by.
*) Bugfix: the "[alert] zero size buf" error; the bug had appeared in
0.1.3.
*) Change: the URI must be specified after the host name in the
proxy_pass directive.
*) Change: the %3F symbol in the URI was considered as the argument
string start.
*) Feature: the unix domain sockets support in the
ngx_http_proxy_module.
*) Feature: the ssl_engine and ssl_ciphers directives.
Thanks to Sergey Skvortsov for SSL-accelerator.
2005-01-18 21:03:58 +08:00
|
|
|
if [ $HTTP_FASTCGI = YES ]; then
|
|
|
|
HTTP_MODULES="$HTTP_MODULES $HTTP_FASTCGI_MODULE"
|
|
|
|
HTTP_SRCS="$HTTP_SRCS $HTTP_FASTCGI_SRCS"
|
|
|
|
fi
|
|
|
|
|
2004-11-26 00:17:31 +08:00
|
|
|
# STUB
|
2004-12-21 20:30:30 +08:00
|
|
|
#USE_MD5=YES
|
|
|
|
#HTTP_SRCS="$HTTP_SRCS $HTPP_CACHE_SRCS"
|
2004-11-26 00:17:31 +08:00
|
|
|
#HTTP_SRCS="$HTTP_SRCS $HTPP_FILE_CACHE_SRCS"
|
|
|
|
|
|
|
|
if [ -r $NGX_OBJS/auto ]; then
|
|
|
|
. $NGX_OBJS/auto
|
2004-05-18 23:29:08 +08:00
|
|
|
fi
|
2004-03-05 16:34:24 +08:00
|
|
|
|
2004-09-06 03:54:02 +08:00
|
|
|
modules="$CORE_MODULES $EVENT_MODULES"
|
|
|
|
|
|
|
|
if [ $HTTP = YES ]; then
|
|
|
|
modules="$modules $HTTP_MODULES $HTTP_FILTER_MODULES \
|
|
|
|
$HTTP_HEADERS_FILTER_MODULE \
|
|
|
|
$HTTP_COPY_FILTER_MODULE \
|
|
|
|
$HTTP_RANGE_BODY_FILTER_MODULE \
|
|
|
|
$HTTP_NOT_MODIFIED_FILTER_MODULE"
|
|
|
|
fi
|
2004-03-05 16:34:24 +08:00
|
|
|
|
2004-09-07 23:29:22 +08:00
|
|
|
IMAP_MODULES=$IMAP_MODULE
|
|
|
|
|
|
|
|
if [ $IMAP = YES ]; then
|
|
|
|
modules="$modules $IMAP_MODULES"
|
|
|
|
fi
|
|
|
|
|
2004-03-05 16:34:24 +08:00
|
|
|
|
2004-11-11 22:07:14 +08:00
|
|
|
cat << END > $NGX_MODULES_C
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
$NGX_PRAGMA
|
|
|
|
|
|
|
|
END
|
2004-03-05 16:34:24 +08:00
|
|
|
|
|
|
|
for mod in $modules
|
|
|
|
do
|
|
|
|
echo "extern ngx_module_t $mod;" >> $NGX_MODULES_C
|
|
|
|
done
|
|
|
|
|
|
|
|
echo >> $NGX_MODULES_C
|
|
|
|
echo 'ngx_module_t *ngx_modules[] = {' >> $NGX_MODULES_C
|
|
|
|
|
|
|
|
for mod in $modules
|
|
|
|
do
|
|
|
|
echo " &$mod," >> $NGX_MODULES_C
|
|
|
|
done
|
|
|
|
|
2004-11-11 22:07:14 +08:00
|
|
|
cat << END >> $NGX_MODULES_C
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
|
|
|
END
|