diff options
author | Dick Porter <dick@acm.org> | 2002-06-12 16:29:57 +0400 |
---|---|---|
committer | Dick Porter <dick@acm.org> | 2002-06-12 16:29:57 +0400 |
commit | 94bdb39d78c9292bb5461c8e9f679d10268c4a86 (patch) | |
tree | 5364e77ec19cd02383fcde5b43c2e5774ebe2bd5 /configure.in | |
parent | 1c20689cf8811e84dbdf248448532c314908dd68 (diff) |
2002-06-10 Jaroslaw Kowalski <jarek@atm.com.pl>
* configure.in: added checks for MSG_NOSIGNAL
2002-06-10 Jaroslaw Kowalski <jarek@atm.com.pl>
* sockets.c, daemon-messages.c: Prevent SIGPIPE from being raised
when writing to a closed socket.
svn path=/trunk/mono/; revision=5251
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 00ce947ada1..a82c6749548 100644 --- a/configure.in +++ b/configure.in @@ -183,6 +183,21 @@ if test x$platform_win32 = xno; then dnl ***************************** AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket") + dnl ******************************* + dnl *** Checks for MSG_NOSIGNAL *** + dnl ******************************* + AC_MSG_CHECKING(for MSG_NOSIGNAL) + AC_TRY_COMPILE([#include <sys/socket.h>], [ + int f = MSG_NOSIGNAL; + ], [ + # Yes, we have it... + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_MSG_NOSIGNAL) + ], [ + # We'll have to use signals + AC_MSG_RESULT(no) + ]) + dnl ***************************** dnl *** Checks for SOL_IP *** dnl ***************************** |