From 6f6b1c6af66ef0142cab2f9ebe6a6ab6525f2bee Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 14 Apr 2002 20:55:05 +0000 Subject: fixes for socklen_t detection svn path=/trunk/; revision=16467 --- configure.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 29c8da0212..8514145180 100644 --- a/configure.in +++ b/configure.in @@ -117,7 +117,18 @@ GNOME_X_CHECKS EVO_CHECK_LIB(gnome-libs, gnome, 1.2.9) AC_CHECK_HEADERS(alloca.h) -AC_CHECK_TYPE(socklen_t, unsigned int) +dnl check for socklen_t (in Unix98) +AC_MSG_CHECKING(for socklen_t) +AC_TRY_COMPILE([#include +socklen_t x; +],[],[AC_MSG_RESULT(yes)],[ +AC_TRY_COMPILE([#include +int accept (int, struct sockaddr *, size_t *); +],[],[ +AC_MSG_RESULT(size_t) +AC_DEFINE(socklen_t,size_t)], [ +AC_MSG_RESULT(int) +AC_DEFINE(socklen_t,int)])]) ALL_LINGUAS="az bg ca da de el en_AU en_GB es et eu fi fr ga gl hu it ja ko lt lv nl nn no pl pt pt_BR ro ru sk sl sv tr uk zh_CN zh_TW" AM_GNOME_GETTEXT -- cgit