From 7e4c4721b4fbfa71ce6712ec5b9f3e8e8a105147 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 6 Dec 2000 00:05:15 +0000 Subject: Changed to sourceforge tdb code. This includes spinlocks (so we now have a --with-spinlocks option to configure, this does mean the on-disk tdb format has changed, so 2.2alphaX sites will need to re-create their tdb's. The upside is no more tdb fragmentation and a +5% on netbench. Swings and roundabouts.... Jeremy. (This used to be commit 9dea7b7c257db487f8ced7dad3fce92fba03ea91) --- source3/configure.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index f7f8b95845..b5d4d881e0 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1902,6 +1902,29 @@ else echo "no" fi +AC_ARG_WITH(spinlocks, [ --with-spinlocks use spin locks instead of fcntl locks ]) +if test "x$with_spinlocks" = "xyes"; then + AC_DEFINE(USE_SPINLOCKS) + + case "$host_cpu" in + sparc) + AC_DEFINE(SPARC_SPINLOCKS) + ;; + + i386|i486|i586|i686) + AC_DEFINE(INTEL_SPINLOCKS) + ;; + + mips) + AC_DEFINE(MIPS_SPINLOCKS) + ;; + + powerpc) + AC_DEFINE(POWERPC_SPINLOCKS) + ;; + esac +fi + echo "checking configure summary" AC_TRY_RUN([#include "${srcdir-.}/tests/summary.c"], echo "configure OK";, -- cgit