From: Paolo Bonzini Date: Mon, 1 Mar 2010 19:04:11 +0000 (-0500) Subject: support compiling on unknown architectures X-Git-Tag: v0.4.2~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=83676f0eeccd1002c0901a8d38034e9023942a1d;p=userspace-rcu.git support compiling on unknown architectures The new defaults mean that, for example, ia64 support comes for free. [edit by Mathieu Desnoyers] defaults -> generic Signed-off-by: Paolo Bonzini Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index 1ce19d0..e33e821 100644 --- a/configure.ac +++ b/configure.ac @@ -54,11 +54,13 @@ case $host_cpu in *) ARCHTYPE="unknown";; esac -if test "$ARCHTYPE" = "unknown"; then - AC_MSG_ERROR([Unable to detect the architecture.]) +if test "$ARCHTYPE" != "unknown"; then + UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h + ARCHSRC=urcu/arch_$ARCHTYPE.h +else + UATOMICSRC=urcu/uatomic_generic.h + ARCHSRC=urcu/arch_generic.h fi -UATOMICSRC=urcu/uatomic_arch_$ARCHTYPE.h -ARCHSRC=urcu/arch_$ARCHTYPE.h if test "x$ARCHTYPE" != xx86 -a "x$ARCHTYPE" != xppc; then APISRC=tests/api_gcc.h else