aboutsummaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2019-03-10 19:29:00 +0100
committerFrançois Revol <revol@free.fr>2019-03-10 19:31:40 +0100
commitab94edd1eedee0e12e8ad9df39e706c667299db7 (patch)
treeeddb9b2228d1f9d2aae75cf52156734e6937904d /aclocal.m4
parent70138fd197be64530f434ddc153248ca22233f0c (diff)
aclocal: Check for libnetwork on Haiku
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m417
1 files changed, 13 insertions, 4 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index e0c2437b..b5506a65 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -956,10 +956,19 @@ AC_DEFUN(AC_LBL_LIBRARY_NET, [
LIBS="-lsocket -lnsl $LIBS"
],
[
- #
- # We didn't find it.
- #
- AC_MSG_ERROR([getaddrinfo is required, but wasn't found])
+ AC_CHECK_LIB(network, getaddrinfo,
+ [
+ #
+ # OK, we found it in libnetwork on Haiku.
+ #
+ LIBS="-lnetwork $LIBS"
+ ],
+ [
+ #
+ # We didn't find it.
+ #
+ AC_MSG_ERROR([getaddrinfo is required, but wasn't found])
+ ])
], -lnsl)
#