Commit 9b973fd7 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

Add code to set HAVE_INET_SOCKETS.

parent 776b7d5a
......@@ -961,6 +961,17 @@ AC_RETSIGTYPE
dnl checks for functions
AC_ALLOCA
AC_HAVE_FUNCS(gettimeofday gethostname dup2 rename closedir)
ok_so_far=true
AC_FUNC_CHECK(socket,, ok_so_far=)
if test -n "$ok_so_far"; then
AC_HEADER_CHECK(netinet/in.h,, ok_so_far=)
fi
if test -n "$ok_so_far"; then
AC_HEADER_CHECK(arpa/inet.h,, ok_so_far=)
fi
if test -n "$ok_so_far"; then
AC_DEFINE(HAVE_INET_SOCKETS)
fi
dnl checks for structure members
AC_STRUCT_TM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment