~drizzle-trunk/drizzle/development

1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
1
dnl  Copyright (C) 2009 Sun Microsystems, Inc.
2
dnl This file is free software; Sun Microsystems, Inc.
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
3
dnl gives unlimited permission to copy and/or distribute it,
4
dnl with or without modifications, as long as this notice is preserved.
5
6
#--------------------------------------------------------------------
7
# Check for a working fdatasync call
8
#--------------------------------------------------------------------
9
10
11
AC_DEFUN([PANDORA_WORKING_FDATASYNC],[
12
  AC_CACHE_CHECK([working fdatasync],[ac_cv_func_fdatasync],[
13
    AC_LANG_PUSH(C++)
1273.12.2 by Monty Taylor
pandora-build v0.103 - fix macros for cross-compiling. Fix stack direction check.
14
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1192.3.28 by Monty Taylor
pandora-build v0.72 - Moved remaining hard-coded tests into pandora-build
15
#include <unistd.h>
16
      ]],[[
17
fdatasync(4);
18
      ]])],
19
    [ac_cv_func_fdatasync=yes],
20
    [ac_cv_func_fdatasync=no])
21
    AC_LANG_POP()
22
  ])
23
  AS_IF([test "x${ac_cv_func_fdatasync}" = "xyes"],
24
    [AC_DEFINE([HAVE_FDATASYNC],[1],[If the system has a working fdatasync])])
1273.12.2 by Monty Taylor
pandora-build v0.103 - fix macros for cross-compiling. Fix stack direction check.
25
])