summaryrefslogtreecommitdiff
path: root/m4/prereq.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-01-12 08:06:27 +0000
committerJim Meyering <jim@meyering.net>2000-01-12 08:06:27 +0000
commitbbe32e1637805e6e61c17efec07203d09f077d7d (patch)
tree230dd141abeb5eacf2432dc095e50b39a5600f3a /m4/prereq.m4
parent79732f800d71c6bcb71eba6322a5eabfe847279e (diff)
downloadcoreutils-bbe32e1637805e6e61c17efec07203d09f077d7d.tar.xz
(jm_PREREQ_CANON_HOST): Move code from su/configure.in.
Diffstat (limited to 'm4/prereq.m4')
-rw-r--r--m4/prereq.m411
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,