aboutsummaryrefslogtreecommitdiff
path: root/m4/curl-confopts.m4
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-11-06 19:43:08 +0000
committerng0 <ng0@n0.is>2019-11-06 19:43:08 +0000
commit03d326c16b69a3db6b369e8a05fd0fdf23a7cf35 (patch)
tree5f21975cd8220ffe2ce2894d6146f23eeb3dcfa9 /m4/curl-confopts.m4
parent3671d2089f040bd0a86d263f9baa43ea5341e4f2 (diff)
parent2e9b725f67d49a9d7a1f053fe52dd4920c9ab1ad (diff)
downloadgnurl-03d326c16b69a3db6b369e8a05fd0fdf23a7cf35.tar.gz
gnurl-03d326c16b69a3db6b369e8a05fd0fdf23a7cf35.tar.bz2
gnurl-03d326c16b69a3db6b369e8a05fd0fdf23a7cf35.zip
Merge tag 'curl-7_67_0'
7.67.0
Diffstat (limited to 'm4/curl-confopts.m4')
-rw-r--r--m4/curl-confopts.m438
1 files changed, 37 insertions, 1 deletions
diff --git a/m4/curl-confopts.m4 b/m4/curl-confopts.m4
index 651334d74..dc826f00b 100644
--- a/m4/curl-confopts.m4
+++ b/m4/curl-confopts.m4
@@ -5,7 +5,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -650,3 +650,39 @@ AC_DEFUN([CURL_CHECK_NTLM_WB], [
NTLM_WB_ENABLED=1
fi
])
+
+dnl CURL_CHECK_OPTION_ESNI
+dnl -----------------------------------------------------
+dnl Verify whether configure has been invoked with option
+dnl --enable-esni or --disable-esni, and set
+dnl shell variable want_esni as appropriate.
+
+AC_DEFUN([CURL_CHECK_OPTION_ESNI], [
+ AC_MSG_CHECKING([whether to enable ESNI support])
+ OPT_ESNI="default"
+ AC_ARG_ENABLE(esni,
+AC_HELP_STRING([--enable-esni],[Enable ESNI support])
+AC_HELP_STRING([--disable-esni],[Disable ESNI support]),
+ OPT_ESNI=$enableval)
+ case "$OPT_ESNI" in
+ no)
+ dnl --disable-esni option used
+ want_esni="no"
+ curl_esni_msg="no (--enable-esni)"
+ AC_MSG_RESULT([no])
+ ;;
+ default)
+ dnl configure option not specified
+ want_esni="no"
+ curl_esni_msg="no (--enable-esni)"
+ AC_MSG_RESULT([no])
+ ;;
+ *)
+ dnl --enable-esni option used
+ want_esni="yes"
+ curl_esni_msg="enabled (--disable-esni)"
+ experimental="esni"
+ AC_MSG_RESULT([yes])
+ ;;
+ esac
+])