<commit_before>dnl ======================================================================
dnl SAC_TPORT - perform checks for tport
dnl ======================================================================
AC_DEFUN([SAC_TPORT], [

AC_ARG_WITH(sigcomp,
[  --with-sigcomp=dir      use Sofia SigComp package (not used by default)],,
	with_sigcomp=no)

if test -n "${with_sigcomp}" && test "${with_sigcomp}" != no ; then
	if test "${with_sigcomp}" != yes ; then
		CPPFLAGS="-I${with_sigcomp}/include $CPPFLAGS"
		LIBS="-L${with_sigcomp}/lib -lsigcomp $LIBS"
	else
		LIBS="-lsigcomp $LIBS"
	fi

	AC_CHECK_HEADERS(sigcomp.h,,AC_MSG_ERROR([cannot find Sofia SigComp includes]))

	AC_CHECK_FUNC(sigcomp_library_2_5,
            [AC_DEFINE([HAVE_SIGCOMP], 1, [Define this as 1 if you have Sofia sigcomp >= 2.5])
             AC_DEFINE([HAVE_SOFIA_SIGCOMP], 2.5, [Define this as 1 if you have Sofia sigcomp >= 2.5])], 
             AC_MSG_ERROR(Sofia SigComp API >= 2.5 was not found))
fi

# Check for features used by tport.
AC_SYS_IP_RECVERR
AC_SYS_IPV6_RECVERR

AC_CHECK_HEADERS(netinet/tcp.h)

if test x$with_sctp != xno; then
AC_CHECK_HEADERS(netinet/sctp.h, [
AC_DEFINE(HAVE_SCTP, 1, [Define this a 1 if you have SCTP])
])
fi

AM_CONDITIONAL(HAVE_TLS, test x$HAVE_TLS = x1)
])<commit_msg>Not defining AM_CONDITIONAL HAVE_TLS twice.<commit_after>dnl ======================================================================
dnl SAC_TPORT - perform checks for tport
dnl ======================================================================
AC_DEFUN([SAC_TPORT], [

AC_ARG_WITH(sigcomp,
[  --with-sigcomp=dir      use Sofia SigComp package (not used by default)],,
	with_sigcomp=no)

if test -n "${with_sigcomp}" && test "${with_sigcomp}" != no ; then
	if test "${with_sigcomp}" != yes ; then
		CPPFLAGS="-I${with_sigcomp}/include $CPPFLAGS"
		LIBS="-L${with_sigcomp}/lib -lsigcomp $LIBS"
	else
		LIBS="-lsigcomp $LIBS"
	fi

	AC_CHECK_HEADERS(sigcomp.h,,AC_MSG_ERROR([cannot find Sofia SigComp includes]))

	AC_CHECK_FUNC(sigcomp_library_2_5,
            [AC_DEFINE([HAVE_SIGCOMP], 1, [Define this as 1 if you have Sofia sigcomp >= 2.5])
             AC_DEFINE([HAVE_SOFIA_SIGCOMP], 2.5, [Define this as 1 if you have Sofia sigcomp >= 2.5])], 
             AC_MSG_ERROR(Sofia SigComp API >= 2.5 was not found))
fi

# Check for features used by tport.
AC_SYS_IP_RECVERR
AC_SYS_IPV6_RECVERR

AC_CHECK_HEADERS(netinet/tcp.h)

if test x$with_sctp != xno; then
AC_CHECK_HEADERS(netinet/sctp.h, [
AC_DEFINE(HAVE_SCTP, 1, [Define this a 1 if you have SCTP])
])
fi
])
{'fraction_non_alphanumeric': 0.2211764705882353, 'fraction_numerical': 0.012941176470588235, 'mean_word_length': 4.960280373831775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3986834', 'n_tokens_mistral': 973, 'n_tokens_neox': 896, 'n_words': 220}