From 920f59a755ce142b068f21b9db07f76f35449f16 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 4 Aug 2009 20:13:43 +0100 Subject: [build] Configure switch to disable atomics Workaround for my arm toolchain which succeeds in linking the configure program, only to complain when linking a program (such as cairo-perf) against libcairo.so. Annoying. --- build/configure.ac.system | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/configure.ac.system b/build/configure.ac.system index c75460d7..46b7f437 100644 --- a/build/configure.ac.system +++ b/build/configure.ac.system @@ -8,8 +8,14 @@ dnl ==================================================================== AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = "xyes") CAIRO_BIGENDIAN -CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES -CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER +AC_ARG_ENABLE(atomic, + [AS_HELP_STRING([--disable-atomic], + [disable use of native atomic operations])], + [use_atomic=$enableval], [use_atomic=yes]) +AS_IF([test "x$use_atomic" = "xyes"], [ + CAIRO_CHECK_NATIVE_ATOMIC_PRIMITIVES + CAIRO_CHECK_ATOMIC_OP_NEEDS_MEMORY_BARRIER +]) AC_CHECK_SIZEOF(void *) AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) -- cgit v1.2.3