AC_DEFUN(GST_INET_SOCKETS, [

AC_CHECK_LIB(socket, listen)
AC_CHECK_LIB(nsl, gethostbyname)

ok_so_far=yes
AC_CHECK_FUNC(socket, , ok_so_far=no)
AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no)
AC_CHECK_HEADER(arpa/inet.h, , ok_so_far=no)
test $ok_so_far = yes && \
AC_DEFINE(HAVE_INET_SOCKETS, 1, [Define if your system's sockets provide access to the Internet.])


])dnl
