diff options
author | Jim Meyering <jim@meyering.net> | 2005-02-07 16:45:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-02-07 16:45:27 +0000 |
commit | fbd6608072f09b9499b2829f418af82c67e1ae97 (patch) | |
tree | 5b0b094e06e2faf0fd05fad99526c6484cee6f84 /m4 | |
parent | 59b1c8cfd0c523cc467b8b55649efd2ea4399a64 (diff) | |
download | coreutils-fbd6608072f09b9499b2829f418af82c67e1ae97.tar.xz |
(gl_FUNC_FTS): New file and macro.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/fts.m4 | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/m4/fts.m4 b/m4/fts.m4 new file mode 100644 index 000000000..65a872723 --- /dev/null +++ b/m4/fts.m4 @@ -0,0 +1,38 @@ +# closeout.m4 serial 1 +dnl Copyright (C) 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([gl_FUNC_FTS], +[ + AC_LIBSOURCES([fts.c, fts_.h]) + + dnl Use this version of fts unconditionally, since the GNU libc and + dnl NetBSD versions have bugs and/or unnecessary limitations. + AC_LIBOBJ([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]) + + # Checks for typedefs, structures, and compiler characteristics. + AM_STDBOOL_H + AC_C_CONST + AC_TYPE_SIZE_T + 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]) +]) |