2
dnl Copyright (C) 1993-2003 Free Software Foundation, Inc.
3
dnl This file is free software, distributed under the terms of the GNU
4
dnl General Public License. As a special exception to the GNU General
5
dnl Public License, this file may be distributed as part of a program
6
dnl that contains a configuration script generated by Autoconf, under
7
dnl the same distribution terms as the rest of that program.
9
dnl From Bruno Haible, Marcus Daniels, Sam Steingold.
13
AC_DEFUN([CL_SOCKLEN_T],
14
[AC_CACHE_CHECK(for socklen_t in sys/socket.h, cl_cv_type_socklen_t, [
15
AC_EGREP_HEADER(socklen_t, sys/socket.h,
16
cl_cv_type_socklen_t=yes, cl_cv_type_socklen_t=no)
18
if test $cl_cv_type_socklen_t = yes; then
19
AC_DEFINE(SOCKLEN_T, socklen_t, [socklen_t (if defined in <sys/socket.h>) or int otherwise)])
21
AC_DEFINE(SOCKLEN_T, int)