aboutsummaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2002-04-15 04:55:05 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-04-15 04:55:05 +0800
commit6f6b1c6af66ef0142cab2f9ebe6a6ab6525f2bee (patch)
tree72f2b2f71963b4d502e9fa7ef21f3a0d1f710603 /configure.in
parent64d2b647c16dde48dea12c08113dbbc325bce565 (diff)
downloadgsoc2013-evolution-6f6b1c6af66ef0142cab2f9ebe6a6ab6525f2bee.tar.gz
gsoc2013-evolution-6f6b1c6af66ef0142cab2f9ebe6a6ab6525f2bee.tar.zst
gsoc2013-evolution-6f6b1c6af66ef0142cab2f9ebe6a6ab6525f2bee.zip
fixes for socklen_t detection
svn path=/trunk/; revision=16467
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in13
1 files changed, 12 insertions, 1 deletions
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 <sys/socket.h>
+socklen_t x;
+],[],[AC_MSG_RESULT(yes)],[
+AC_TRY_COMPILE([#include <sys/socket.h>
+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