~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_fdatasync.m4

  • Committer: Monty Taylor
  • Date: 2010-10-15 17:18:02 UTC
  • mto: (1859.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1860.
  • Revision ID: mordred@inaugust.com-20101015171802-qhk6zyfhrkvprr1n
Added support for registering regular sys_var instances via module::Context.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl  Copyright (C) 2009 Sun Microsystems
 
2
dnl This file is free software; Sun Microsystems
 
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++)
 
14
    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 
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])])
 
25
])