summaryrefslogtreecommitdiffstats
path: root/m4.include/vfs/socket.m4
blob: 3cbfe056cdb9baf447dcd588ebef480f15230d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
AC_DEFUN([AC_REQUIRE_SOCKET],
[
    AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes])
    if test x"$have_socket" = x"yes"; then
      AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet nsl])
      AC_CHECK_MEMBERS([struct linger.l_linger], , , [
#include <sys/types.h>
#include <sys/socket.h>
		       ])
    else
	AC_MSG_ERROR([Couldnt find socket functions])
    fi
])