From 15248032ea9e3e88849310e8f2cef9db618fce1a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 15 Jul 2013 14:13:53 -0700 Subject: configure: Add configure-time check for GCC 4.0+ atomic built-ins. We found out earlier that GCC sometimes produces an error only at link time for atomic built-ins that are not supported on a platform. This actually tries the link at configure time and should thus reliably detect whether the atomic built-ins are really supported. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- lib/ovs-atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ovs-atomic.h') diff --git a/lib/ovs-atomic.h b/lib/ovs-atomic.h index a0a34f30f..3fc9dcb8f 100644 --- a/lib/ovs-atomic.h +++ b/lib/ovs-atomic.h @@ -240,7 +240,7 @@ #include "ovs-atomic-c11.h" #elif __GNUC__ >= 4 && __GNUC_MINOR__ >= 7 #include "ovs-atomic-gcc4.7+.h" - #elif __GNUC__ >= 4 + #elif HAVE_GCC4_ATOMICS #include "ovs-atomic-gcc4+.h" #else #include "ovs-atomic-pthreads.h" -- cgit v1.2.1