AC_DEFUN([PANDORA_WORKING_FDATASYNC],[
AC_CACHE_CHECK([working fdatasync],[ac_cv_func_fdatasync],[
AC_LANG_PUSH(C++)
- AC_RUN_IFELSE([AC_LANG_PROGRAM([[
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <unistd.h>
]],[[
fdatasync(4);
])
AS_IF([test "x${ac_cv_func_fdatasync}" = "xyes"],
[AC_DEFINE([HAVE_FDATASYNC],[1],[If the system has a working fdatasync])])
-])
\ No newline at end of file
+])