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

* configure.in: Use AC_SEARCH_LIBS when checking for gethostbyname

and libnsl. XXX Fix in head branch.

Rev: configure.in:1.108.2.7
parent f92410e2
...@@ -353,7 +353,11 @@ fi ...@@ -353,7 +353,11 @@ fi
AC_CHECK_LIB(crypt, crypt) AC_CHECK_LIB(crypt, crypt)
AC_CHECK_LIB(xnet, inet_addr) 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) AC_CHECK_LIB(socket, setsockopt)
dnl logwtmp is also in libutil dnl logwtmp is also in libutil
AC_CHECK_LIB(util, openpty) AC_CHECK_LIB(util, openpty)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment