summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2016-07-12 17:34:43 +0300
committerVladimir Homutov <vl@nginx.com>2016-07-12 17:34:43 +0300
commit4cf0e2848372b7566f49a9cb4b8dcf9dbad43597 (patch)
tree278fcb6ac9f24df8e36c1fa9cef6d5b1f8343176 /auto
parente1308338a9b93222ae17b778a3fa4df21601cfb8 (diff)
downloadnginx-4cf0e2848372b7566f49a9cb4b8dcf9dbad43597.tar.gz
nginx-4cf0e2848372b7566f49a9cb4b8dcf9dbad43597.tar.bz2
Stream: geoip module.
Diffstat (limited to 'auto')
-rw-r--r--auto/modules10
-rw-r--r--auto/options6
2 files changed, 16 insertions, 0 deletions
diff --git a/auto/modules b/auto/modules
index f332b315d..3312de9a5 100644
--- a/auto/modules
+++ b/auto/modules
@@ -1024,6 +1024,16 @@ if [ $STREAM != NO ]; then
. auto/module
fi
+ if [ $STREAM_GEOIP != NO ]; then
+ ngx_module_name=ngx_stream_geoip_module
+ ngx_module_deps=
+ ngx_module_srcs=src/stream/ngx_stream_geoip_module.c
+ ngx_module_libs=GEOIP
+ ngx_module_link=$STREAM_GEOIP
+
+ . auto/module
+ fi
+
if [ $STREAM_MAP = YES ]; then
ngx_module_name=ngx_stream_map_module
ngx_module_deps=
diff --git a/auto/options b/auto/options
index 69d612c99..6544ba69a 100644
--- a/auto/options
+++ b/auto/options
@@ -117,6 +117,7 @@ STREAM=NO
STREAM_SSL=NO
STREAM_LIMIT_CONN=YES
STREAM_ACCESS=YES
+STREAM_GEOIP=NO
STREAM_MAP=YES
STREAM_RETURN=YES
STREAM_UPSTREAM_HASH=YES
@@ -293,6 +294,9 @@ use the \"--with-mail_ssl_module\" option instead"
--with-stream) STREAM=YES ;;
--with-stream=dynamic) STREAM=DYNAMIC ;;
--with-stream_ssl_module) STREAM_SSL=YES ;;
+ --with-stream_geoip_module) STREAM_GEOIP=YES ;;
+ --with-stream_geoip_module=dynamic)
+ STREAM_GEOIP=DYNAMIC ;;
--without-stream_limit_conn_module)
STREAM_LIMIT_CONN=NO ;;
--without-stream_access_module) STREAM_ACCESS=NO ;;
@@ -494,6 +498,8 @@ cat << END
--with-stream enable TCP/UDP proxy module
--with-stream=dynamic enable dynamic TCP/UDP proxy module
--with-stream_ssl_module enable ngx_stream_ssl_module
+ --with-stream_geoip_module enable ngx_stream_geoip_module
+ --with-stream_geoip_module=dynamic enable dynamic ngx_stream_geoip_module
--without-stream_limit_conn_module disable ngx_stream_limit_conn_module
--without-stream_access_module disable ngx_stream_access_module
--without-stream_map_module disable ngx_stream_map_module