summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-12-10 08:22:49 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2008-12-10 08:22:49 +0000
commit81b6d5459c4af1ab07e62e2c19f315ea8efa5cd5 (patch)
tree70e63af8536664002bfcc5ae79d07d441324a171 /macros
parentb184524a14155e62e0b0d1dc52280e8ab44dc477 (diff)
downloadneon-81b6d5459c4af1ab07e62e2c19f315ea8efa5cd5.tar.gz
* macros/neon.m4 (LIBNEON_SOURCE_CHECKS): Check for
socket functions in -lnetwork, for Haiku. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1617 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'macros')
-rw-r--r--macros/neon.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4
index 144060f..ec430a5 100644
--- a/macros/neon.m4
+++ b/macros/neon.m4
@@ -635,7 +635,8 @@ char *stpcpy(char *, const char *);
# Unixware 7 can only link gethostbyname with -lnsl -lsocket
# Pick up -lsocket first, then the gethostbyname check will work.
-NE_SEARCH_LIBS(socket, socket inet ws2_32)
+# Haiku requires -lnetwork for socket functions.
+NE_SEARCH_LIBS(socket, socket inet ws2_32 network)
# Enable getaddrinfo support if it, gai_strerror and inet_ntop are
# all available.
@@ -668,7 +669,8 @@ else
# Checks for non-getaddrinfo() based resolver interfaces.
# QNX has gethostbyname in -lsocket. BeOS only has it in -lbind.
# CygWin/Winsock2 has it in -lws2_32, allegedly.
- NE_SEARCH_LIBS(gethostbyname, socket nsl bind ws2_32)
+ # Haiku requires -lnetwork for socket functions.
+ NE_SEARCH_LIBS(gethostbyname, socket nsl bind ws2_32 network)
NE_SEARCH_LIBS(hstrerror, resolv,,[:])
NE_CHECK_FUNCS(hstrerror)
# Older Unixes don't declare h_errno.