From 38421d61ded65ec7384a4661427bac3b1ed2dde4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 7 Feb 2005 16:54:14 +0000 Subject: Use AC_REQUIRE where possible, and _ONCE-suffixed versions of macros. --- m4/fts.m4 | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'm4') diff --git a/m4/fts.m4 b/m4/fts.m4 index 65a872723..a261f713a 100644 --- a/m4/fts.m4 +++ b/m4/fts.m4 @@ -15,24 +15,24 @@ AC_DEFUN([gl_FUNC_FTS], dnl Prerequisites of lib/fts.c. # Checks for header files. - AC_HEADER_DIRENT - AC_HEADER_STDC - AC_CHECK_HEADERS([fcntl.h inttypes.h stddef.h stdint.h - stdlib.h string.h sys/param.h unistd.h]) + AC_REQUIRE([AC_HEADER_DIRENT]) + AC_REQUIRE([AC_HEADER_STDC]) + AC_CHECK_HEADERS_ONCE([fcntl.h inttypes.h stddef.h stdint.h]) + AC_CHECK_HEADERS_ONCE([stdlib.h string.h sys/param.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. - AM_STDBOOL_H - AC_C_CONST - AC_TYPE_SIZE_T + AC_REQUIRE([AM_STDBOOL_H]) + AC_REQUIRE([AC_C_CONST]) + AC_REQUIRE([AC_TYPE_SIZE_T]) + AC_REQUIRE([gt_INTTYPES_PRI]) AC_CHECK_TYPES([ptrdiff_t]) - gt_INTTYPES_PRI # Checks for library functions. - AC_FUNC_CLOSEDIR_VOID - AC_FUNC_LSTAT - AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK - AC_FUNC_MALLOC - AC_FUNC_REALLOC - AC_FUNC_STAT - AC_CHECK_FUNCS([fchdir memmove memset strrchr]) + AC_REQUIRE([AC_FUNC_CLOSEDIR_VOID]) + AC_REQUIRE([AC_FUNC_LSTAT]) + AC_REQUIRE([AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK]) + AC_REQUIRE([AC_FUNC_MALLOC]) + AC_REQUIRE([AC_FUNC_REALLOC]) + AC_REQUIRE([AC_FUNC_STAT]) + AC_CHECK_FUNCS_ONCE([fchdir memmove memset strrchr]) ]) -- cgit v1.2.3-70-g09d2