From b7b3aca7040a0c734a555efd8775249a29b5ac5d Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Thu, 30 Apr 2020 15:47:43 +0300 Subject: Configure: unbreak with old OpenSSL, --with-http_v3_module added. --- auto/lib/openssl/conf | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) (limited to 'auto/lib') diff --git a/auto/lib/openssl/conf b/auto/lib/openssl/conf index 4f4390e11..faebd8fa4 100644 --- a/auto/lib/openssl/conf +++ b/auto/lib/openssl/conf @@ -141,11 +141,29 @@ END fi -ngx_feature="OpenSSL QUIC support" -ngx_feature_name="NGX_OPENSSL_QUIC" -ngx_feature_run=no -ngx_feature_incs="#include " -ngx_feature_path= -ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL" -ngx_feature_test="SSL_CTX_set_quic_method(NULL, NULL)" -. auto/feature + +if [ $USE_OPENSSL_QUIC = YES ]; then + + ngx_feature="OpenSSL QUIC support" + ngx_feature_name="NGX_OPENSSL_QUIC" + ngx_feature_run=no + ngx_feature_incs="#include " + ngx_feature_path= + ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL" + ngx_feature_test="SSL_CTX_set_quic_method(NULL, NULL)" + . auto/feature + + if [ $ngx_found = no ]; then + +cat << END + +$0: error: certain modules require OpenSSL QUIC support. +You can either do not enable the modules, or install the OpenSSL library +into the system, or build the OpenSSL library statically from the source +with nginx by using --with-openssl= option. + +END + exit 1 + fi + +fi -- cgit