commit: r1617 - neon/trunk/macros
joe at manyfish.co.uk
joe at manyfish.co.uk
Wed Dec 10 03:22:50 EST 2008
Author: joe
Date: Wed Dec 10 00:22:49 2008
New Revision: 1617
Modified:
neon/trunk/macros/neon.m4
Log:
* macros/neon.m4 (LIBNEON_SOURCE_CHECKS): Check for
socket functions in -lnetwork, for Haiku.
Modified: neon/trunk/macros/neon.m4
==============================================================================
--- neon/trunk/macros/neon.m4 (original)
+++ neon/trunk/macros/neon.m4 Wed Dec 10 00:22:49 2008
@@ -635,7 +635,8 @@
# 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 @@
# 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.
More information about the neon-commits
mailing list