dnl This can't use AC_REQUIRE; I'm not quite sure why.
cu_PREREQ_STAT_PROG
- # for dd.c and shred.c
- #
- # Use fdatasync only if declared. On MacOS X 10.7, fdatasync exists but
- # is not declared, and is ineffective.
- LIB_FDATASYNC=
- AC_SUBST([LIB_FDATASYNC])
- AC_CHECK_DECLS_ONCE([fdatasync])
- if test $ac_cv_have_decl_fdatasync = yes; then
- coreutils_saved_libs=$LIBS
- AC_SEARCH_LIBS([fdatasync], [rt posix4],
- [test "$ac_cv_search_fdatasync" = "none required" ||
- LIB_FDATASYNC=$ac_cv_search_fdatasync])
- AC_CHECK_FUNCS([fdatasync])
- LIBS=$coreutils_saved_libs
- fi
-
# Check whether libcap is usable -- for ls --color support
LIB_CAP=
AC_ARG_ENABLE([libcap],
and would interfere with our use of that name, below. */
#undef O_NOCACHE
-#if ! HAVE_FDATASYNC
-# define fdatasync(fd) (errno = ENOSYS, -1)
-#endif
-
#define output_char(c) \
do \
{ \