--- stunnel-3.22/configure.ac~ Mon Jan 7 14:16:03 2002 +++ stunnel-3.22/configure.ac Mon Jan 7 14:16:03 2002 @@ -139,7 +139,7 @@ dnl Checks for standard libraries. AC_CHECK_LIB(dl, dlopen) -AC_CHECK_LIB(nsl, gethostbyname) +AC_CHECK_FUNC(gethostbyname, [], AC_CHECK_LIB(nsl, gethostbyname)) AC_CHECK_LIB(socket, socket) # OSF hack instead of simple AC_CHECK_LIB here