diff options
author | Jim Meyering <jim@meyering.net> | 2002-04-28 23:11:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-04-28 23:11:45 +0000 |
commit | c14da32ec433b45514f564b607694cc0cf8ce456 (patch) | |
tree | b93933867ff7c560cf283ef9b362d8ac8001400f | |
parent | db37e581bc2198e954cba0c21a54b1b74a50107e (diff) | |
download | coreutils-c14da32ec433b45514f564b607694cc0cf8ce456.tar.xz |
Add jm_PREREQ_STRNLEN.
Use AC_FUNC_STRNLEN here instead.
-rw-r--r-- | m4/prereq.m4 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/prereq.m4 b/m4/prereq.m4 index 35c5d7e9c..ccfada474 100644 --- a/m4/prereq.m4 +++ b/m4/prereq.m4 @@ -22,6 +22,7 @@ AC_DEFUN([jm_PREREQ], jm_PREREQ_READUTMP jm_PREREQ_REGEX jm_PREREQ_SIG2STR + jm_PREREQ_STRNLEN jm_PREREQ_TEMPNAME # called by mkstemp jm_PREREQ_XGETCWD jm_PREREQ_XREADLINK @@ -167,6 +168,20 @@ AC_DEFUN([jm_PREREQ_SIG2STR], AC_CHECK_HEADERS(sys/wait.h) ]) +AC_DEFUN([jm_PREREQ_STRNLEN], +[ + AC_FUNC_STRNLEN + AC_HEADER_STDC + AC_CHECK_HEADERS(memory.h) + AC_CHECK_DECLS([memchr]) + + # This is necessary because automake-1.6.1 doens't understand + # that the above use of AC_FUNC_STRNLEN means we may have to use + # lib/strnlen.c. + test $ac_cv_func_strnlen_working = yes \ + && AC_LIBOBJ(strnlen) +]) + AC_DEFUN([jm_PREREQ_TEMPNAME], [ AC_HEADER_STDC |