# HG changeset patch # User Jim Meyering # Date 947664387 0 # Node ID b0a80320c1bf308eb67d7ee2d81a2ee6f91d81fa # Parent e0a5e0a4f3628d7107934fb8e8e5db4e057eff26 (jm_PREREQ_CANON_HOST): Move code from su/configure.in. diff --git a/m4/prereq.m4 b/m4/prereq.m4 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -13,12 +13,17 @@ AC_DEFUN(jm_PREREQ_CANON_HOST, [ + dnl Add any libraries as early as possible. + dnl In particular, inet_ntoa needs -lnsl at least on Solaris5.5.1, + dnl so we have to add -lnsl to LIBS before checking for that function. + AC_SEARCH_LIBS(gethostbyname, [inet nsl]) + + dnl These come from -lnsl on Solaris5.5.1. + AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa) + AC_CHECK_FUNCS(gethostbyname gethostbyaddr inet_ntoa) AC_CHECK_HEADERS(unistd.h string.h netdb.h sys/socket.h \ netinet/in.h arpa/inet.h) - - AC_HEADER_STDC - AC_FUNC_ALLOCA ]) AC_DEFUN(jm_PREREQ_QUOTEARG,