+if test "x$ARCHTYPE" = "xarm" ; then
+AC_MSG_CHECKING([checking for dmb instruction])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+]], [[
+asm volatile("dmb":::"memory");
+]])],[
+ AC_MSG_RESULT([yes])
+ AC_DEFINE([CONFIG_RCU_ARM_HAVE_DMB], [1])
+
+],[
+ AC_MSG_RESULT([no])
+
+])
+fi
+
+UATOMICSRC=urcu/uatomic/$ARCHTYPE.h
+ARCHSRC=urcu/arch/$ARCHTYPE.h
+if test "$ARCHTYPE" == "armv7l"; then
+ CFLAGS="-mcpu=cortex-a9 -mtune=cortex-a9 -O"