Sync from coreutils.
authorJim Meyering <jim@meyering.net>
Tue, 27 Sep 2005 08:39:44 +0000 (08:39 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 27 Sep 2005 08:39:44 +0000 (08:39 +0000)
(gl_GETADDRINFO): Check for gethostbyname
in the inet and nsl libraries.  Required on Solaris 5.7.

m4/getaddrinfo.m4

index ae200f9a0d3f0aa6bbbe5265eaa16ea0799065b1..60d6718ebb0a4edb95856eb112b02dab647e1669 100644 (file)
@@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_GETADDRINFO],
 [
   AC_SEARCH_LIBS(getaddrinfo, nsl socket)
+  AC_SEARCH_LIBS(gethostbyname, [inet nsl])
   AC_REPLACE_FUNCS(getaddrinfo gai_strerror)
   gl_PREREQ_GETADDRINFO
 ])