s3:configure: add check for new CTDB_CONTROL_SCHEDULE_FOR_DELETION
authorMichael Adam <obnox@samba.org>
Thu, 31 Mar 2011 13:39:41 +0000 (15:39 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 31 Mar 2011 16:10:22 +0000 (18:10 +0200)
source3/configure.in

index 0b479dd465a0a95803cf4fbadb4af0282384f275..291bc0642c5d28b233a7dab1cff328972b16ab43 100644 (file)
@@ -5479,6 +5479,25 @@ if test "x$have_cluster_support" = "xyes" ; then
        fi
 fi
 
+if test "x$have_cluster_support" = "xyes" ; then
+       AC_HAVE_DECL(CTDB_CONTROL_SCHEDULE_FOR_DELETION,[
+       #include "confdefs.h"
+       #define NO_CONFIG_H
+       #include "replace.h"
+       #include "system/wait.h"
+       #include "system/network.h"
+       #include <talloc.h>
+       #include <tdb.h>
+       #include <ctdb.h>
+       #include <ctdb_private.h>
+       ])
+       if test x"$ac_cv_have_CTDB_CONTROL_SCHEDULE_FOR_DELETION_decl" != x"yes"
+       then
+               ctdb_broken="support for SCHEDULE_FOR_DELETION control missing"
+               have_cluster_support=no
+       fi
+fi
+
 if test "x$have_cluster_support" = "xyes" ; then
        # In ctdb 1.0.57, ctdb_control_tcp was temporarily renamed
        # to ctdb_tcp_client.