summaryrefslogtreecommitdiff
path: root/net-libs/libasyncns/files/libasyncns-0.8-libnsl-automagic.patch
blob: 53d48e8601c38003bc3df0040110f706924da5ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/configure.ac
+++ b/configure.ac
@@ -76,7 +76,9 @@
 
 AC_SYS_LARGEFILE
 
-AC_CHECK_LIB(nsl, gethostbyname)
+AC_SEARCH_LIBS([gethostbyname], [nsl],
+  [], [AC_MSG_ERROR([gethostbyname not found])]
+)
 AC_CHECK_LIB(socket, connect)
 
 ACF_SEARCH_FUNCTION([res_query], [-lresolv, -lbind],