diff options
author | Ben Pfaff <blp@nicira.com> | 2013-07-15 14:13:53 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-07-31 08:56:36 -0700 |
commit | 15248032ea9e3e88849310e8f2cef9db618fce1a (patch) | |
tree | 5a2e5edb12f003848dbe122df9a5551c57eb9735 /lib/ovs-atomic.h | |
parent | 97be153858b4cd175cbe7862b8e1624bf22ab98a (diff) | |
download | openvswitch-15248032ea9e3e88849310e8f2cef9db618fce1a.tar.gz |
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 <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/ovs-atomic.h')
-rw-r--r-- | lib/ovs-atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
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" |