1
1

Ticket #185 (Check for gethostbyname with nsl)

socket.m4: add nsl in search for gethostbyname
Этот коммит содержится в:
Stan. S. Krupoderov 2009-08-03 23:23:12 +04:00
родитель 05b590d225
Коммит b9d2d3fc7f

Просмотреть файл

@ -1,8 +1,8 @@
AC_DEFUN([AC_REQUIRE_SOCKET],
[
AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes])
if test x"$have_socket" = xyes; then
AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet])
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>