configure: also search for sockets in libnetwork

This is required for Haiku support.

See bug #7568 for details.
This commit is contained in:
Jessica Hamilton 2015-06-05 14:49:00 +12:00 committed by Jean-Marc Lasgouttes
parent 469a1f48a6
commit e02f0a0bab

View File

@ -213,7 +213,7 @@ save_LIBS="$LIBS"
LIBS=
AC_CHECK_FUNCS(fcntl,
[AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([socket], [socket], [],
AC_SEARCH_LIBS([socket], [socket network], [],
[AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"],
[], [-lnsl])])],
[lyx_client_subdir=false])