From 470c9cf7ee818acbd0e97473264596910c751bcc Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 4 Dec 2009 11:49:21 +0100 Subject: [PATCH] build: Add a configure check for CTDB_CONTROL_TRANS3_COMMIT. This is the new implementation of ctdb transactions using the global lock feature. It is needed by the current dbwrap_ctdb code. Michael (cherry picked from commit d4c0afa841ecdae1cab955cc73360deae23f5873) (cherry picked from commit ea3c4c96e0fd1f2165282589becb12bfb40700d3) --- source3/configure.in | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/source3/configure.in b/source3/configure.in index a9b9e4789ae..99f2448e376 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -5267,6 +5267,23 @@ else ctdb_broken="transaction support too old" fi +AC_HAVE_DECL(CTDB_CONTROL_TRANS3_COMMIT,[ +#include "confdefs.h" +#define NO_CONFIG_H +#include "replace.h" +#include "system/wait.h" +#include "system/network.h" +#include +#include +#include +#include +]) +if test x"$ac_cv_have_CTDB_CONTROL_TRANS3_COMMIT_decl" = x"yes"; then + ctdb_broken=no +else + ctdb_broken="transaction support too old" +fi + # in ctdb 1.0.57 ctdb_control_tcp was temparary renamed to ctdb_tcp_client AC_CHECK_TYPE(struct ctdb_tcp_client,[ AC_DEFINE([ctdb_control_tcp],[ctdb_tcp_client],[ctdb ipv4 support]) -- 2.11.4.GIT