nginx/auto/modules

136 lines
3.8 KiB
Plaintext
Raw Normal View History

2004-02-02 15:19:52 -06:00
2004-02-09 14:47:18 -06:00
if [ $EVENT_SELECT = NO -a $EVENT_FOUND = NO ]; then
EVENT_SELECT=YES
fi
if [ $EVENT_SELECT = YES ]; then
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
CORE_SRCS="$CORE_SRCS $POLL_SRCS"
EVENT_MODULES="$EVENT_MODULES $POLL_MODULE"
fi
if [ $TEST_BUILD_DEVPOLL = YES ]; then
2004-02-17 11:53:12 -06:00
have=HAVE_DEVPOLL . auto/have
have=TEST_BUILD_DEVPOLL . auto/have
2004-02-09 14:47:18 -06:00
EVENT_MODULES="$EVENT_MODULES $DEVPOLL_MODULE"
CORE_SRCS="$CORE_SRCS $DEVPOLL_SRCS"
fi
if [ $TEST_BUILD_EPOLL = YES ]; then
2004-02-17 11:53:12 -06:00
have=HAVE_EPOLL . auto/have
have=TEST_BUILD_EPOLL . auto/have
2004-02-09 14:47:18 -06:00
EVENT_MODULES="$EVENT_MODULES $EPOLL_MODULE"
CORE_SRCS="$CORE_SRCS $EPOLL_SRCS"
fi
2004-02-17 11:53:12 -06:00
if [ $TEST_BUILD_RTSIG = YES ]; then
have=HAVE_RTSIG . auto/have
have=TEST_BUILD_RTSIG . auto/have
EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
2004-02-09 14:47:18 -06:00
fi
2004-02-02 15:19:52 -06:00
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES \
$HTTP_CHUNKED_FILTER_MODULE \
2004-06-22 11:43:09 -05:00
$HTTP_RANGE_HEADER_FILTER_MODULE"
2004-02-02 15:19:52 -06:00
if [ $HTTP_GZIP = YES ]; then
2004-03-11 15:34:52 -06:00
have=NGX_HTTP_GZIP . auto/have
2004-02-02 15:19:52 -06: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 10:30:22 -05: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-07-08 10:17:47 -05:00
if [ $HTTP_SSL = YES ]; then
have=NGX_HTTP_SSL . auto/have
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSL_FILTER_MODULE"
2004-07-11 16:03:47 -05:00
HTTP_DEPS="$HTTP_DEPS $HTTP_SSL_DEPS"
2004-07-08 10:17:47 -05:00
HTTP_SRCS="$HTTP_SRCS $HTTP_SSL_SRCS"
# STUB: move to auto/libs/ssl
CORE_LIBS="$CORE_LIBS -lssl -lcrypto"
fi
2004-02-02 15:19:52 -06:00
if [ $HTTP_SSI = YES ]; then
2004-03-11 15:34:52 -06:00
have=NGX_HTTP_SSI . auto/have
2004-02-02 15:19:52 -06:00
HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES $HTTP_SSI_FILTER_MODULE"
HTTP_SRCS="$HTTP_SRCS $HTTP_SSI_SRCS"
fi
2004-06-22 11:43:09 -05:00
HTTP_MODULES="$HTTP_MODULES $HTTP_STATIC_MODULE $HTTP_INDEX_MODULE"
2004-06-24 11:07:04 -05: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 02:53:37 -05: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
2004-06-22 11:43:09 -05: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-02-02 15:19:52 -06:00
if [ $HTTP_PROXY = YES ]; then
2004-03-11 15:34:52 -06:00
have=NGX_HTTP_PROXY . auto/have
2004-02-02 15:19:52 -06:00
USE_MD5=YES
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 02:34:24 -06:00
2004-05-18 10:29:08 -05:00
if [ -r $OBJS/auto ]; then
. $OBJS/auto
fi
2004-03-05 02:34:24 -06:00
2004-04-25 15:13:21 -05:00
modules="$CORE_MODULES $EVENT_MODULES $HTTP_MODULES $HTTP_FILTER_MODULES \
$HTTP_HEADERS_FILTER_MODULE \
2004-05-12 00:37:55 -05:00
$HTTP_COPY_FILTER_MODULE \
$HTTP_RANGE_BODY_FILTER_MODULE \
2004-04-25 15:13:21 -05:00
$HTTP_NOT_MODIFIED_FILTER_MODULE"
2004-03-05 02:34:24 -06:00
echo "#include <ngx_config.h>" > $NGX_MODULES_C
echo "#include <ngx_core.h>" >> $NGX_MODULES_C
echo >> $NGX_MODULES_C
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
echo " NULL" >> $NGX_MODULES_C
echo "};" >> $NGX_MODULES_C