From: Darren Tucker Date: Tue, 16 Feb 2016 22:48:15 +0000 (+1100) Subject: Look for gethostbyname in libresolv and libnsl. X-Git-Tag: V_7_2_P1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fee909c3cee2472a98b26eb82696297b81e0d38;p=thirdparty%2Fopenssh-portable.git Look for gethostbyname in libresolv and libnsl. Should fix build problem on Solaris 2.6 reported by Tom G. Christensen. --- diff --git a/configure.ac b/configure.ac index 0b399ce2c..b4c0aaab7 100644 --- a/configure.ac +++ b/configure.ac @@ -1314,8 +1314,10 @@ AC_SEARCH_LIBS([openpty], [util bsd]) AC_SEARCH_LIBS([updwtmp], [util bsd]) AC_CHECK_FUNCS([fmt_scaled scan_scaled login logout openpty updwtmp logwtmp]) -# On some platforms, inet_ntop may be found in libresolv or libnsl. +# On some platforms, inet_ntop and gethostbyname may be found in libresolv +# or libnsl. AC_SEARCH_LIBS([inet_ntop], [resolv nsl]) +AC_SEARCH_LIBS([gethostbyname], [resolv nsl]) AC_FUNC_STRFTIME