diff auto/modules @ 8372:0e6528551f26 quic

Configure: unbreak with old OpenSSL, --with-http_v3_module added.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 30 Apr 2020 15:47:43 +0300
parents 268f4389130d
children 0d2b2664b41c
line wrap: on
line diff
--- a/auto/modules
+++ b/auto/modules
@@ -404,9 +404,13 @@ if [ $HTTP = YES ]; then
     ngx_module_type=HTTP
 
     if [ $HTTP_V3 = YES ]; then
+        USE_OPENSSL=YES
+        USE_OPENSSL_QUIC=YES
         have=NGX_HTTP_V3 . auto/have
         have=NGX_HTTP_HEADERS . auto/have
 
+        HTTP_SSL=YES
+
         # XXX for Huffman
         HTTP_V2=YES
 
@@ -1265,19 +1269,24 @@ if [ $USE_OPENSSL = YES ]; then
     ngx_module_type=CORE
     ngx_module_name=ngx_openssl_module
     ngx_module_incs=
-    ngx_module_deps="src/event/ngx_event_openssl.h \
-                     src/event/ngx_event_quic.h \
-                     src/event/ngx_event_quic_transport.h \
-                     src/event/ngx_event_quic_protection.h"
-    ngx_module_srcs="src/event/ngx_event_openssl.c \
-                     src/event/ngx_event_openssl_stapling.c \
-                     src/event/ngx_event_quic.c \
-                     src/event/ngx_event_quic_transport.c \
-                     src/event/ngx_event_quic_protection.c"
+    ngx_module_deps=src/event/ngx_event_openssl.h
+    ngx_module_srcs="src/event/ngx_event_openssl.c
+                     src/event/ngx_event_openssl_stapling.c"
     ngx_module_libs=
     ngx_module_link=YES
     ngx_module_order=
 
+    if [ $USE_OPENSSL_QUIC = YES ]; then
+        ngx_module_deps="$ngx_module_deps \
+                         src/event/ngx_event_quic.h \
+                         src/event/ngx_event_quic_transport.h \
+                         src/event/ngx_event_quic_protection.h"
+        ngx_module_srcs="$ngx_module_srcs \
+                         src/event/ngx_event_quic.c \
+                         src/event/ngx_event_quic_transport.c \
+                         src/event/ngx_event_quic_protection.c"
+    fi
+
     . auto/module
 fi