mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-05 17:32:54 +03:00
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:
1 parent
ffeea0292a
commit
03625bab33
1 file changed
+4
@@ -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])
|
||||
|
||||
|
||||
Reference in new issue
Block a user