mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
8e12753bfc
Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
14 lines
392 B
Plaintext
14 lines
392 B
Plaintext
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
|
|
])
|