--- xrootd.orig/configure.ac 2010-12-09 16:24:21.000000000 +0100
+++ xrootd/configure.ac 2010-12-10 19:25:41.443408001 +0100
@@ -920,9 +920,11 @@
# note: needed for solaris (network services library. many systems still have these
# functions still in the libc)
+AC_CHECK_FUNC(gethostbyname,,[
AC_CHECK_LIB([nsl],[gethostbyname],
[AC_SUBST(LIBNSL,[-lnsl])]
)
+])
AC_CHECK_FUNC(sigwaitinfo,[AC_DEFINE(HAVE_SIGWTI)],
[AC_CHECK_LIB([rt],[sigwaitinfo],