mc/m4.include/vfs/socket.m4
Kian-Meng Ang 5001232704 Fix various typos in the source code (closes MidnightCommander/mc#177).
Found via `codespell -S
po,doc,./misc/syntax,./src/vfs/extfs/helpers/README.it -L
parm,rouge,sav,ect,vie,te,dum,clen,wee,dynamc,childs,ths,fo,nin,unx,nd,iif,iterm,ser,makrs,wil`

Co-authored-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Kian-Meng Ang <kianmeng@cpan.org>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2023-01-28 21:38:05 +03:00

14 lines
393 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([Couldn't find socket functions])
fi
])