AC_CONFIG_SRCDIR([urcu.h])
AH_TEMPLATE([CONFIG_SMP], [Enable SMP support. With SMP support enabled, uniprocessors are also supported. With SMP support disabled, UP systems work fine, but the behavior of SMP systems is undefined.])
+AH_TEMPLATE([CONFIG_HAVE_FENCE], [Defined when on a system that has memory fence
+instructions.])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_SUBST(ARCHTYPE)
AC_SUBST(SUBARCHTYPE)
+[
+if test "x$ARCHTYPE" = "xx86" -a "x$target_cpu" != "xi386" -a "x$target_cpu" !=
+"xi486" -a "x$target_cpu" != "xi586"; then
+]
+ AC_DEFINE([CONFIG_HAVE_FENCE], [1])
+[
+fi
+]
+
AM_CONDITIONAL([GCC_API], [test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc])
AM_CONDITIONAL([COMPAT_ARCH], [test "x$SUBARCHTYPE" == xx86compat ])
#include <urcu/compiler.h>
#include "config.h"
-/* Assume P4 or newer */
-#define CONFIG_HAVE_FENCE 1
#define CONFIG_HAVE_MEM_COHERENCY
#define CACHE_LINE_SIZE 128