@@ -47,6 +47,17 @@ AC_ARG_WITH(systemd,
4747 AM_CONDITIONAL(INSTALL_SYSTEMD, [ test "$use_systemd" = 1] )
4848 AC_SUBST ( unitdir )
4949
50+ AC_ARG_ENABLE ( session-tags ,
51+ [ AS_HELP_STRING ( [ --enable-session-tags] ,
52+ [ enable TLS session tags support @<:@ Default: no@:>@ ] ) ] ,
53+ [ enable_session_tags=$enableval] ,
54+ [ enable_session_tags=no] )
55+ AM_CONDITIONAL(HAVE_SESSION_TAGS, [ test "x$enable_session_tags" = xyes] )
56+ if test "x$enable_session_tags" = xyes ; then
57+ AC_DEFINE ( [ HAVE_SESSION_TAGS] , [ 1] ,
58+ [ Define to 1 to enable TLS session tags support] )
59+ fi
60+
5061PKG_PROG_PKG_CONFIG([ 0.9.0] )
5162PKG_CHECK_MODULES([ LIBGNUTLS] , [ gnutls >= 3.3.0] )
5263AC_SUBST ( [ LIBGNUTLS_CFLAGS] )
@@ -63,6 +74,11 @@ AC_SUBST([LIBNL3_LIBS])
6374PKG_CHECK_MODULES([ LIBNL_GENL3] , libnl-genl-3.0 >= 3.1)
6475AC_SUBST ( [ LIBNL_GENL3_CFLAGS] )
6576AC_SUBST ( [ LIBNL_GENL3_LIBS] )
77+ if test "x$enable_session_tags" = xyes ; then
78+ PKG_CHECK_MODULES([ LIBYAML] , [ yaml-0.1] )
79+ AC_SUBST ( [ LIBYAML_CFLAGS] )
80+ AC_SUBST ( [ LIBYAML_LIBS] )
81+ fi
6682
6783AC_CHECK_PROG ( DOXYGEN , doxygen , doxygen , false )
6884if test "$DOXYGEN" = false; then
@@ -88,6 +104,12 @@ AC_CHECK_LIB([gnutls], [gnutls_psk_allocate_client_credentials2],
88104AC_CHECK_LIB ( [ gnutls] , [ gnutls_record_get_max_send_size] ,
89105 [ AC_DEFINE ( [ HAVE_GNUTLS_RECORD_GET_MAX_SEND_SIZE] , [ 1] ,
90106 [ Define to 1 if you have the gnutls_record_get_max_send_size function.] ) ] )
107+ AC_CHECK_LIB ( [ glib-2.0] , [ g_pattern_spec_match] ,
108+ [ AC_DEFINE ( [ HAVE_GLIB_G_PATTERN_SPEC_MATCH] , [ 1] ,
109+ [ Define to 1 if you have the g_pattern_spec_match function.] ) ] )
110+ AC_CHECK_LIB ( [ glib-2.0] , [ g_pattern_spec_match_string] ,
111+ [ AC_DEFINE ( [ HAVE_GLIB_G_PATTERN_SPEC_MATCH_STRING] , [ 1] ,
112+ [ Define to 1 if you have the g_pattern_spec_match_string function.] ) ] )
91113
92114AC_MSG_CHECKING ( for ML-DSA support in gnutls )
93115AC_COMPILE_IFELSE (
@@ -120,6 +142,7 @@ AC_CONFIG_FILES([Makefile \
120142 etc/tlshd/Makefile \
121143 man/Makefile \
122144 man/man5/Makefile \
145+ man/man7/Makefile \
123146 man/man8/Makefile \
124147 src/Makefile \
125148 src/tlshd/Makefile \
0 commit comments