8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

The check for socklen_t fails on FreeBSD as socklen_t is defined

in sys/socket.h. Write a specific check for this on FreeBSD.
This commit is contained in:
stryqx 2003-06-15 06:03:02 +00:00
parent f435b22b08
commit b2d0c5631e

View File

@ -1,4 +1,4 @@
dnl $Id: configure.in,v 1.137 2003-06-15 05:57:47 stryqx Exp $
dnl $Id: configure.in,v 1.138 2003-06-15 06:03:02 stryqx Exp $
dnl ############################# INITIALISATION ###############################
@ -459,6 +459,17 @@ case "$PLATFORM" in
AC_CHECK_FILES(/proc/self/exe)
;;
FREEBSD)
dnl the AC_CHECK_TYPES for socklen_t doesn't include sys/socket.h
dnl so test for socklen_t with sys/socket.h included
AC_MSG_CHECKING(if sys/socket.h defines socklen_t)
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/socket.h>],
[socklen_t s;],
[AC_DEFINE(HAVE_SOCKLEN_T) AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)])
;;
[SOLARIS|solx86])
AC_ARG_WITH(sfio,
AC_HELP_STRING([--with-sfio=PATH],