mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
5001232704
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>
14 lines
393 B
Plaintext
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
|
|
])
|