summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-02-21 07:02:02 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-02-21 07:02:02 +0000
commita35eaccdec4788e8fb9a883b26fc7c4dcfe1d8f8 (patch)
treeb42648c4cb4eb2cb4a1e585ed7870ede0f551600 /auto
parenta883361c47c4fa1abf35fe2497e2bb74d9299e3e (diff)
a prelimiary IPv6 support, HTTP listen
Diffstat (limited to 'auto')
-rw-r--r--auto/options6
-rwxr-xr-xauto/unix15
2 files changed, 21 insertions, 0 deletions
diff --git a/auto/options b/auto/options
index 9e6e1a21..fabd5d0d 100644
--- a/auto/options
+++ b/auto/options
@@ -43,6 +43,8 @@ EVENT_AIO=NO
USE_THREADS=NO
+NGX_IPV6=NO
+
HTTP=YES
NGX_HTTP_LOG_PATH=
@@ -160,6 +162,8 @@ do
#--with-threads=*) USE_THREADS="$value" ;;
#--with-threads) USE_THREADS="pthreads" ;;
+ --with-ipv6) NGX_IPV6=YES ;;
+
--without-http) HTTP=NO ;;
--http-log-path=*) NGX_HTTP_LOG_PATH="$value" ;;
--http-client-body-temp-path=*) NGX_HTTP_CLIENT_TEMP_PATH="$value" ;;
@@ -285,6 +289,8 @@ cat << END
--with-poll_module enable poll module
--without-poll_module disable poll module
+ --with-ipv6 enable ipv6 support
+
--with-http_ssl_module enable ngx_http_ssl_module
--with-http_realip_module enable ngx_http_realip_module
--with-http_addition_module enable ngx_http_addition_module
diff --git a/auto/unix b/auto/unix
index 245d4f7f..7d6e4805 100755
--- a/auto/unix
+++ b/auto/unix
@@ -64,6 +64,21 @@ ngx_param=NGX_TIME_T_LEN; ngx_value=$ngx_max_len; . auto/types/value
# syscalls, libc calls and some features
+if [ $NGX_IPV6 = YES ]; then
+ ngx_feature="AF_INET6"
+ ngx_feature_name="NGX_HAVE_INET6"
+ ngx_feature_run=no
+ ngx_feature_incs="#include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>"
+ ngx_feature_path=
+ ngx_feature_libs=
+ ngx_feature_test="struct sockaddr_in6 sin6;
+ sin6.sin6_family = AF_INET6;"
+ . auto/feature
+fi
+
+
ngx_feature="setproctitle()"
ngx_feature_name="NGX_HAVE_SETPROCTITLE"
ngx_feature_run=no