summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-01-22 14:24:50 +0000
committerJim Meyering <jim@meyering.net>2000-01-22 14:24:50 +0000
commit8ce9f1983551868a4afde12330978236db24f9d1 (patch)
tree7c3cf1c0673e4553315b211c01a4f2ae4c1694fe
parentf5ff12fcbc8a9ebda262d3e10dff6002be3e2296 (diff)
downloadcoreutils-8ce9f1983551868a4afde12330978236db24f9d1.tar.xz
Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)' code.
Moved tests into their own function (_jm_DECL_HEADERS) in check-decl.m4.
-rw-r--r--m4/decl.m48
1 files changed, 1 insertions, 7 deletions
diff --git a/m4/decl.m4 b/m4/decl.m4
index 69438b706..76fd65f2e 100644
--- a/m4/decl.m4
+++ b/m4/decl.m4
@@ -1,13 +1,7 @@
-#serial 3
+#serial 5
AC_DEFUN(jm_CHECK_DECLARATION,
[
- AC_REQUIRE([AC_HEADER_STDC])dnl
- test -z "$ac_cv_header_memory_h" && AC_CHECK_HEADERS(memory.h)
- test -z "$ac_cv_header_string_h" && AC_CHECK_HEADERS(string.h)
- test -z "$ac_cv_header_strings_h" && AC_CHECK_HEADERS(strings.h)
- test -z "$ac_cv_header_stdlib_h" && AC_CHECK_HEADERS(stdlib.h)
- test -z "$ac_cv_header_unistd_h" && AC_CHECK_HEADERS(unistd.h)
AC_MSG_CHECKING([whether $1 is declared])
AC_CACHE_VAL(jm_cv_func_decl_$1,
[AC_TRY_COMPILE($2,