From d59cd027a6a829a5d41a69c1f5503df8aec05e5f Mon Sep 17 00:00:00 2001 From: paulc Date: Wed, 26 Apr 2006 19:49:03 +0000 Subject: [PATCH] Added SCTP and netinet/sctp.h checking git-svn-id: http://voip.null.ro/svn/yate@759 acf43c95-373e-0410-b603-e72c3f656dc1 --- configure.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/configure.in b/configure.in index 0850d249..eeae29f2 100644 --- a/configure.in +++ b/configure.in @@ -137,6 +137,29 @@ if [[ "x$ac_cv_use_fdsize" != "xno" ]]; then fi AC_SUBST(FDSIZE_HACK) +HAVE_SCTP=no +HAVE_SCTP_NETINET=no +AC_LANG_SAVE +AC_LANG_C +AC_MSG_CHECKING([for basic SCTP support]) +AC_TRY_COMPILE([#include +#include +#include ],[int fd = socket(PF_INET,SOCK_SEQPACKET,IPPROTO_SCTP);],[HAVE_SCTP=yes]) +AC_MSG_RESULT([$HAVE_SCTP]) +AC_MSG_CHECKING([for netinet/sctp.h usability]) +AC_TRY_COMPILE([#include +#include +#include +#include ],[int fd = socket(PF_INET,SOCK_SEQPACKET,IPPROTO_SCTP);],[HAVE_SCTP_NETINET=yes]) +AC_MSG_RESULT([$HAVE_SCTP_NETINET]) +if [[ "x$HAVE_SCTP_NETINET" != "xno" ]]; then +# including netinet/sctp.h fixes SCTP support so enable it +HAVE_SCTP=yes +fi +AC_LANG_RESTORE +AC_SUBST(HAVE_SCTP) +AC_SUBST(HAVE_SCTP_NETINET) + # Checks for optional libraries. HAVE_RESOLV=no