mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Added test for broken SO_REUSEADDR
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13485 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
35dceb79e2
commit
ca0b909b84
6 changed files with 327 additions and 245 deletions
|
@ -1,5 +1,9 @@
|
|||
2002-04-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* config/config.reuseaddr.c: New test for broken SO_REUSEADDR
|
||||
* configure.in: test for broken SO_REUSEADDR
|
||||
* acconfig.h: Add BROKEN_SO_REUSEADDR
|
||||
* configure: regenerated
|
||||
* Source/NSPortNameServer.m: Improved warnings about launching
|
||||
gdomap.
|
||||
* Source/NSDistributedNotification.m: Improved warnings about
|
||||
|
|
|
@ -64,6 +64,9 @@
|
|||
/* Define if nested functions are broken on this compiler */
|
||||
#undef BROKEN_NESTED_FUNCTIONS
|
||||
|
||||
/* Define if SO_REUSEADDR is broken on this system */
|
||||
#undef BROKEN_SO_REUSEADDR
|
||||
|
||||
/* Define if you have this header */
|
||||
#undef HAVE_GICONV_H
|
||||
|
||||
|
|
|
@ -53,6 +53,9 @@
|
|||
/* Define if nested functions are broken on this compiler */
|
||||
#undef BROKEN_NESTED_FUNCTIONS
|
||||
|
||||
/* Define if SO_REUSEADDR is broken on this system */
|
||||
#undef BROKEN_SO_REUSEADDR
|
||||
|
||||
/* Define if you have this header */
|
||||
#undef HAVE_GICONV_H
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include <sys/file.h>
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifndef INADDR_NONE
|
||||
|
|
22
configure.in
22
configure.in
|
@ -151,6 +151,28 @@ else
|
|||
AC_MSG_RESULT([not found])
|
||||
fi
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Check if system has buggy SO_REUSEADDR
|
||||
#--------------------------------------------------------------------
|
||||
AC_MSG_CHECKING(whether SO_REUSADDR is broken)
|
||||
AC_TRY_RUN([#include "$srcdir/config/config.reuseaddr.c"],
|
||||
reuseaddr_ok=1,
|
||||
reuseaddr_ok=0,
|
||||
reuseaddr_ok=0)
|
||||
if test $reuseaddr_ok = 0; then
|
||||
AC_DEFINE(BROKEN_SO_REUSEADDR)
|
||||
echo
|
||||
echo "The GCC 'nested functions' feature does not seem to be working on"
|
||||
echo "this machine. "
|
||||
echo "Read the bug-report instructions in the GCC texinfo manual"
|
||||
echo "and submit a bug report."
|
||||
echo "The program this configure script used to test nested functions"
|
||||
echo "can be found in the file 'config/config.nested.c'"
|
||||
AC_MSG_RESULT(yes)
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
# Check for thread flags for libobjc.
|
||||
#--------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue