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:
Richard Frith-Macdonald 2002-04-16 18:39:42 +00:00
parent 35dceb79e2
commit ca0b909b84
6 changed files with 327 additions and 245 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -15,6 +15,7 @@
#include <sys/file.h>
#include <sys/stat.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#ifndef INADDR_NONE

539
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -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.
#--------------------------------------------------------------------