diff acinclude.m4 @ 202:7d7d8299610d

2003-6-25 Brian Masney <masneyb@gftp.org> * acinclude.m4 - added AC_TYPE_SOCKLEN_T. Thanks to Nathan Robertson <nathanr@nathanr.net> for pointing this out * configure.in - call AC_TYPE_SOCKLEN_T. Updates to AC_OUTPUT * lib/gftp.h - remove check for HAVE_SOCKLEN_T * Makefile.am - formatting fixes
author masneyb
date Thu, 26 Jun 2003 01:21:53 +0000
parents b83715e9535c
children cf4098008615
line wrap: on
line diff
--- a/acinclude.m4	Thu Jun 26 01:04:12 2003 +0000
+++ b/acinclude.m4	Thu Jun 26 01:21:53 2003 +0000
@@ -113,3 +113,19 @@
 	esac])
    fi
   ])
+
+# serial 1
+
+# This function is derived from
+# http://savannah.gnu.org/cgi-bin/viewcvs/gcc/gcc/libjava/configure.in?rev=1.142.2.7&content-type=text/vnd.viewcvs-markup
+
+AC_DEFUN(AC_TYPE_SOCKLEN_T,
+  [AC_MSG_CHECKING([for socklen_t in sys/socket.h])
+   AC_TRY_COMPILE([#define _POSIX_PII_SOCKET
+   #include <sys/types.h>
+   #include <sys/socket.h>], [socklen_t x = 5;],
+     [AC_MSG_RESULT(yes)],
+     [AC_DEFINE(socklen_t,int)
+      AC_MSG_RESULT(no)])
+  ])
+