svn commit: samba r12688 - in branches/tmp/jpeach-cluster/source: .

jpeach at samba.org jpeach at samba.org
Tue Jan 3 06:21:37 GMT 2006


Author: jpeach
Date: 2006-01-03 06:21:36 +0000 (Tue, 03 Jan 2006)
New Revision: 12688

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12688

Log:
Check for CXFS-specific APIs.

Modified:
   branches/tmp/jpeach-cluster/source/configure.in


Changeset:
Modified: branches/tmp/jpeach-cluster/source/configure.in
===================================================================
--- branches/tmp/jpeach-cluster/source/configure.in	2006-01-03 04:25:12 UTC (rev 12687)
+++ branches/tmp/jpeach-cluster/source/configure.in	2006-01-03 06:21:36 UTC (rev 12688)
@@ -700,6 +700,27 @@
 AC_CHECK_HEADERS(sys/syslog.h syslog.h execinfo.h)
 AC_CHECK_HEADERS(langinfo.h locale.h)
 
+AC_CHECK_HEADERS(sys/syssgi.h ksys/platform_syssgi.h)
+
+samba_cv_with_cxfs=yes
+AC_CHECK_DECLS([SGI_IS_OS_CELLULAR, SGI_CELL_PID_TO_CELLID,
+	SGI_GET_CXFS_SERVER_NAME, SGI_GET_CXFS_CLIENT_NAMES,
+	SGI_CMS_GET_CLUSTER_NAME, SGI_CELL_TO_INADDR],
+	[], [samba_cv_with_cxfs=no],
+[
+#if defined(HAVE_SYS_SYSSGI_H)
+#include <sys/syssgi.h>
+#endif
+
+#if defined(HAVE_KSYS_PLATFORM_SYSSGI_H)
+#include <ksys/platform_syssgi.h>
+#endif
+])
+
+if test x"$samba_cv_with_cxfs" = x"yes" ; then
+    AC_DEFINE(HAVE_CXFS, 1, [Whether CXFS cluster APIs are available])
+fi
+
 # Look for Darwin headers
 old_CPPFLAGS="$CPPFLAGS"
 CPPFLAGS="-Iinclude $CPPFLAGS"
@@ -734,6 +755,18 @@
 # For experimental utmp support (lastlog on some BSD-like systems)
 AC_CHECK_HEADERS(utmp.h utmpx.h lastlog.h)
  
+# For cluster locking support
+AC_CHECK_HEADERS(sys/uuid.h)
+AC_CHECK_FUNCS(syssgi)
+AC_CHECK_TYPES(cell_t, [], [], [
+#include <sys/types.h>
+])
+
+AC_CHECK_TYPES(uuid_t, [], [], [
+#include <sys/types.h>
+#include <sys/uuid.h>
+])
+
 AC_CHECK_SIZEOF(int,cross)
 AC_CHECK_SIZEOF(long,cross)
 AC_CHECK_SIZEOF(short,cross)



More information about the samba-cvs mailing list