Check if linking against -lsocket -lnsl is required

On platform Solaris, network functions are located in the
libraries socket and nsl.
This commit is contained in:
Olaf Bergmann committed 2015-03-13 13:13:03 +01:00
1 parent ffeea0292a
commit 03625bab33
1 file changed
+4
+4
View File
@@ -267,6 +267,10 @@ AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo \
strnlen])
# Check if -lsocket -lnsl is required (specifically Solaris)
AC_SEARCH_LIBS([socket], [socket])
AC_SEARCH_LIBS([inet_ntop], [nsl])
# Check if clock_gettime() requires librt, when available
AC_SEARCH_LIBS([clock_gettime], [rt])