summaryrefslogtreecommitdiff
path: root/m4/hooks.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/hooks.m4')
-rw-r--r--m4/hooks.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4
index 4d3d22107d..f0efe52cf6 100644
--- a/m4/hooks.m4
+++ b/m4/hooks.m4
@@ -359,6 +359,24 @@ LIBTASN1_MINIMUM=4.9
fi
AM_CONDITIONAL(ENABLE_AFALG, test "$enable_afalg" != "no")
+ # For KTLS
+ AC_MSG_CHECKING([whether to add KTLS support])
+ AC_ARG_ENABLE(ktls,
+ AS_HELP_STRING([--enable-ktls], [enable KTLS support]),
+ enable_ktls=$enableval,enable_ktls=no)
+ AC_MSG_RESULT($enable_ktls)
+
+ if test "$enable_ktls" = "yes"; then
+ AC_CHECK_HEADERS([linux/tls.h], [
+ AC_DEFINE([HAVE_KTLS],[1],[KTLS headers found at compile time])
+ ], [
+ AC_MSG_ERROR([<linux/tls.h> not found])
+ ])
+ AC_DEFINE([ENABLE_KTLS], 1, [Enable KTLS support])
+ fi
+ AM_CONDITIONAL(ENABLE_KTLS, test "$enable_ktls" != "no")
+
+ # For OCSP
AC_MSG_CHECKING([whether to disable OCSP support])
AC_ARG_ENABLE(ocsp,
AS_HELP_STRING([--disable-ocsp],