Commit d70b4d34 authored by Niels Möller's avatar Niels Möller

* Use AC_SEARCH_LIBS when checking for gethostbyname

and libnsl. XXX Fix in head branch.

parent f92410e2
......@@ -353,7 +353,11 @@ fi
AC_CHECK_LIB(crypt, crypt)
AC_CHECK_LIB(xnet, inet_addr)
AC_CHECK_LIB(nsl, gethostbyname)
# Some linux systems seems to have a broken or incompatible libnsl.a
# So link with it only if we can't do without it
AC_SEARCH_LIBS(gethostbyname, nsl)
AC_CHECK_LIB(socket, setsockopt)
dnl logwtmp is also in libutil
AC_CHECK_LIB(util, openpty)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment