forked from Mirrors/freeswitch
2ecac238f3
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3774 d0543943-73ff-0310-b7d9-9358b9ac24b2
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
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 to 1 if you have Sofia sigcomp >= 2.5])
|
|
AC_DEFINE([HAVE_SOFIA_SIGCOMP], 1, [Define to 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 netinet/sctp.h)
|
|
|
|
AC_ARG_WITH(sctp,
|
|
[ --enable-sctp use LK-SCTP (not used by default)],,
|
|
enable_sigcomp=no)
|
|
|
|
if test x$enable_sctp = xyes; then
|
|
AC_DEFINE(HAVE_SCTP, 1, [Define to 1 if you have SCTP])
|
|
fi
|
|
])
|