Mercurial > hg > octave-nkf > gnulib-hg
changeset 2115:b0a80320c1bf
(jm_PREREQ_CANON_HOST): Move code from su/configure.in.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 12 Jan 2000 08:06:27 +0000 |
parents | e0a5e0a4f362 |
children | 3452e04c3ee9 |
files | m4/prereq.m4 |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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,