]> git.kaiwu.me - nginx.git/commitdiff
Modules compatibility: --with-compat configure option.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:16 +0000 (15:58 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 3 Oct 2016 12:58:16 +0000 (15:58 +0300)
auto/modules
auto/options

index 1d8dc53322f17339926116b5bc48b69a3e9a1a06..89377bf0d0fe050bd7b12ede33ad217320873e71 100644 (file)
@@ -1312,6 +1312,18 @@ fi
 modules="$modules $MISC_MODULES"
 
 
+if [ $NGX_COMPAT = YES ]; then
+    have=NGX_COMPAT . auto/have
+    have=NGX_HTTP_GZIP . auto/have
+    have=NGX_HTTP_DAV . auto/have
+    have=NGX_HTTP_REALIP . auto/have
+    have=NGX_HTTP_X_FORWARDED_FOR . auto/have
+    have=NGX_HTTP_HEADERS . auto/have
+    have=NGX_HTTP_UPSTREAM_ZONE . auto/have
+    have=NGX_STREAM_UPSTREAM_ZONE . auto/have
+fi
+
+
 cat << END                                    > $NGX_MODULES_C
 
 #include <ngx_config.h>
index 0f8babca48b695d333aa9652172a8a9a1fe5da9c..c5b39abe91098432bff9ca8015a1767aa102012b 100644 (file)
@@ -134,6 +134,8 @@ NGX_ADDONS=
 NGX_ADDON_DEPS=
 DYNAMIC_ADDONS=
 
+NGX_COMPAT=NO
+
 USE_PCRE=NO
 PCRE=NONE
 PCRE_OPT=
@@ -325,6 +327,8 @@ use the \"--with-mail_ssl_module\" option instead"
         --add-module=*)                  NGX_ADDONS="$NGX_ADDONS $value" ;;
         --add-dynamic-module=*)          DYNAMIC_ADDONS="$DYNAMIC_ADDONS $value" ;;
 
+        --with-compat)                   NGX_COMPAT=YES             ;;
+
         --with-cc=*)                     CC="$value"                ;;
         --with-cpp=*)                    CPP="$value"               ;;
         --with-cc-opt=*)                 NGX_CC_OPT="$value"        ;;
@@ -532,6 +536,8 @@ cat << END
   --add-module=PATH                  enable external module
   --add-dynamic-module=PATH          enable dynamic external module
 
+  --with-compat                      dynamic modules compatibility
+
   --with-cc=PATH                     set C compiler pathname
   --with-cpp=PATH                    set C preprocessor pathname
   --with-cc-opt=OPTIONS              set additional C compiler options