mirror of
https://github.com/coturn/coturn.git
synced 2025-10-24 20:41:03 +02:00
sctp compilation
This commit is contained in:
parent
6c247bbbae
commit
eee9dae321
13
configure
vendored
13
configure
vendored
@ -1162,10 +1162,13 @@ fi
|
||||
###############################
|
||||
|
||||
if [ -z "${TURN_NO_SCTP}" ] ; then
|
||||
if ! [ -f "/usr/include/linux/sctp.h" ] ; then
|
||||
if ! [ -f "/usr/include/netinet/sctp.h" ] ; then
|
||||
TURN_NO_SCTP="-DTURN_NO_SCTP"
|
||||
fi
|
||||
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
|
||||
TURN_SCTP_INCLUDE=`find /usr/include/ -name sctp.h`
|
||||
if [ -z "${TURN_SCTP_INCLUDE}" ] ; then
|
||||
TURN_NO_SCTP="-DTURN_NO_SCTP"
|
||||
else
|
||||
TURN_SCTP_INCLUDE="-DTURN_SCTP_INCLUDE=${TURN_SCTP_INCLUDE}"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
TURN_NO_SCTP="-DTURN_NO_SCTP"
|
||||
@ -1175,7 +1178,7 @@ fi
|
||||
# So, what we have now:
|
||||
###############################
|
||||
|
||||
OSCFLAGS="${OSCFLAGS} ${TURN_NO_SCTP} ${TURN_NO_THREAD_BARRIERS} ${TURN_NO_DTLS} ${TURN_NO_GCM} ${TURN_NO_TLS} -DINSTALL_PREFIX=${PREFIX} -DTURNDB=${TURNDBDIR}/turndb"
|
||||
OSCFLAGS="${OSCFLAGS} ${TURN_NO_SCTP} ${TURN_SCTP_INCLUDE} ${TURN_NO_THREAD_BARRIERS} ${TURN_NO_DTLS} ${TURN_NO_GCM} ${TURN_NO_TLS} -DINSTALL_PREFIX=${PREFIX} -DTURNDB=${TURNDBDIR}/turndb"
|
||||
|
||||
if ! [ -z "${TURN_ACCEPT_RPATH}" ] ; then
|
||||
if [ -z "${TURN_DISABLE_RPATH}" ] ; then
|
||||
|
||||
@ -50,12 +50,10 @@
|
||||
#include "hiredis_libevent2.h"
|
||||
#endif
|
||||
|
||||
#if !defined(TURN_NO_SCTP)
|
||||
#if defined(__linux__) || defined(__LINUX__) || defined(__linux) || defined(linux__) || defined(LINUX) || defined(__LINUX) || defined(LINUX__)
|
||||
#include <linux/sctp.h>
|
||||
#else
|
||||
#include <netinet/sctp.h>
|
||||
#endif
|
||||
#if !defined(TURN_NO_SCTP) && defined(TURN_SCTP_INCLUDE)
|
||||
#define Q(x) #x
|
||||
#define QUOTE(x) Q(x)
|
||||
#include QUOTE(TURN_SCTP_INCLUDE)
|
||||
#endif
|
||||
|
||||
/* Compilation test:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user