sac-tport.m4 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. dnl ======================================================================
  2. dnl SAC_TPORT - perform checks for tport
  3. dnl ======================================================================
  4. AC_DEFUN([SAC_TPORT], [
  5. AC_ARG_WITH(sigcomp,
  6. [ --with-sigcomp=dir use Sofia SigComp package [[not used]]],,
  7. with_sigcomp=no)
  8. if test -n "${with_sigcomp}" && test "${with_sigcomp}" != no ; then
  9. if test "${with_sigcomp}" != yes ; then
  10. CPPFLAGS="-I${with_sigcomp}/include $CPPFLAGS"
  11. LIBS="-L${with_sigcomp}/lib -lsigcomp $LIBS"
  12. else
  13. LIBS="-lsigcomp $LIBS"
  14. fi
  15. AC_CHECK_HEADERS(sigcomp.h,,AC_MSG_ERROR([cannot find Sofia SigComp includes]))
  16. AC_CHECK_FUNC(sigcomp_library_2_5,
  17. [AC_DEFINE([HAVE_SIGCOMP], 1, [Define to 1 if you have Sofia sigcomp >= 2.5])
  18. AC_DEFINE([HAVE_SOFIA_SIGCOMP], 1, [Define to 1 if you have Sofia sigcomp >= 2.5])],
  19. AC_MSG_ERROR(Sofia SigComp API >= 2.5 was not found))
  20. fi
  21. # Check for features used by tport.
  22. AC_SYS_IP_RECVERR
  23. AC_SYS_IPV6_RECVERR
  24. AC_CHECK_HEADERS([netinet/tcp.h netinet/sctp.h],[],[],[
  25. #include <sys/types.h>
  26. #include <sys/socket.h>
  27. ])
  28. AC_ARG_ENABLE(sctp,
  29. [ --enable-sctp use SCTP [[disabled]]],,
  30. enable_sigcomp=no)
  31. if test x$enable_sctp = xyes; then
  32. AC_DEFINE(HAVE_SCTP, 1, [Define to 1 if you have SCTP])
  33. fi
  34. ])