diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-12 08:06:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-12 08:06:27 +0000 |
commit | bbe32e1637805e6e61c17efec07203d09f077d7d (patch) | |
tree | 230dd141abeb5eacf2432dc095e50b39a5600f3a /m4/prereq.m4 | |
parent | 79732f800d71c6bcb71eba6322a5eabfe847279e (diff) | |
download | coreutils-bbe32e1637805e6e61c17efec07203d09f077d7d.tar.xz |
(jm_PREREQ_CANON_HOST): Move code from su/configure.in.
Diffstat (limited to 'm4/prereq.m4')
-rw-r--r-- | m4/prereq.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/m4/prereq.m4 b/m4/prereq.m4 index d6372a57b..664d5ef20 100644 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -13,12 +13,17 @@ AC_DEFUN(jm_PREREQ, 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, |