mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
use a configure script test for PMTU discovery control instead of just assuming it's available on Linux
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@45027 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -296,6 +296,15 @@ AC_LINK_IFELSE(
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
|
||||
AC_MSG_CHECKING(for IP_MTU_DISCOVER)
|
||||
AC_LINK_IFELSE(
|
||||
AC_LANG_PROGRAM([#include <netinet/in.h>],
|
||||
[int foo = IP_MTU_DISCOVER;]),
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE([HAVE_IP_MTU_DISCOVER], 1, [Define to 1 if your system has PMTU discovery on UDP sockets.]),
|
||||
AC_MSG_RESULT(no)
|
||||
)
|
||||
|
||||
AC_CHECK_HEADER([libkern/OSAtomic.h],
|
||||
[AC_DEFINE_UNQUOTED([HAVE_OSX_ATOMICS], 1, [Define to 1 if OSX atomic operations are supported.])])
|
||||
|
||||
|
Reference in New Issue
Block a user