1 dnl Copyright (C) 2009 Sun Microsystems, Inc.
2 dnl This file is free software; Sun Microsystems, Inc.
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
6 #--------------------------------------------------------------------
7 # Check for a working fdatasync call
8 #--------------------------------------------------------------------
11 AC_DEFUN([PANDORA_WORKING_FDATASYNC],[
12 AC_CACHE_CHECK([working fdatasync],[ac_cv_func_fdatasync],[
14 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
19 [ac_cv_func_fdatasync=yes],
20 [ac_cv_func_fdatasync=no])
23 AS_IF([test "x${ac_cv_func_fdatasync}" = "xyes"],
24 [AC_DEFINE([HAVE_FDATASYNC],[1],[If the system has a working fdatasync])])