diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-12 07:58:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-12 07:58:22 +0000 |
commit | 79732f800d71c6bcb71eba6322a5eabfe847279e (patch) | |
tree | 3ae91b0895160ac816820a68e3375c957f007eb9 /m4/prereq.m4 | |
parent | c18612331680fbc08e6bc67f136cca8fb3525c7a (diff) | |
download | coreutils-79732f800d71c6bcb71eba6322a5eabfe847279e.tar.xz |
(jm_PREREQ_CANON_HOST): New macro.
(jm_PREREQ): Use it.
Diffstat (limited to 'm4/prereq.m4')
-rw-r--r-- | m4/prereq.m4 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/m4/prereq.m4 b/m4/prereq.m4 index 22e6a6f5c..d6372a57b 100644 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -1,16 +1,26 @@ -#serial 2 +#serial 3 dnl These are the prerequisite macros for files in the lib/ dnl directories of the fileutils, sh-utils, and textutils packages. AC_DEFUN(jm_PREREQ, [ + jm_PREREQ_CANON_HOST jm_PREREQ_ERROR jm_PREREQ_QUOTEARG jm_PREREQ_REGEX ]) -dnl FIXME: maybe put this in a separate file +AC_DEFUN(jm_PREREQ_CANON_HOST, +[ + 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, [ AC_CHECK_FUNCS(isascii mbrtowc) @@ -20,7 +30,6 @@ AC_DEFUN(jm_PREREQ_QUOTEARG, AM_C_PROTOTYPES ]) -dnl FIXME: maybe put this in a separate file AC_DEFUN(jm_PREREQ_REGEX, [ dnl FIXME: Maybe provide a btowc replacement someday: solaris-2.5.1 lacks it. |