This is an automated email from the ASF dual-hosted git repository. maskit pushed a commit to branch quic-latest in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/quic-latest by this push: new d4d3fc0 Check QUIC availability with SSL_MODE_QUIC_HACK d4d3fc0 is described below commit d4d3fc02ef5a95f16ecefd2d4107db8cacdb43bb Author: Masakazu Kitajo <mas...@apache.org> AuthorDate: Thu Apr 25 11:55:38 2019 +0800 Check QUIC availability with SSL_MODE_QUIC_HACK --- configure.ac | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 667e02d..0c760e9 100644 --- a/configure.ac +++ b/configure.ac @@ -1200,12 +1200,19 @@ TS_CHECK_CRYPTO_TLS13 # Check for QUIC support enable_quic=no -AS_IF([test "x$enable_tls13" = "xyes"], [ - enable_quic=yes -]) +AC_MSG_CHECKING([whether APIs for QUIC are available]) +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <openssl/ssl.h>]], + [[ + #ifndef SSL_MODE_QUIC_HACK + # error no hack for quic + #endif + ]]) + ], + [AC_MSG_RESULT([yes]); enable_quic=yes], + [AC_MSG_RESULT([no])]) +AM_CONDITIONAL([ENABLE_QUIC], [test "x$enable_quic" = "xyes"]) TS_ARG_ENABLE_VAR([use], [quic]) AC_SUBST(use_quic) -AM_CONDITIONAL([ENABLE_QUIC], [test "x$enable_quic" = "xyes"]) # Check for OCSP TS_CHECK_CRYPTO_OCSP