extconf: better check for GCC atomic builtins
commit71f80afdbcb45245a01ee2c278ebda692587e92a
authorEric Wong <normalperson@yhbt.net>
Thu, 10 May 2012 21:49:39 +0000 (10 14:49 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 10 May 2012 21:49:39 +0000 (10 14:49 -0700)
tree01eea8885b8886be1c386cbc33e8b344ab88b46c
parent1c18fd9c13f95fef6bcbdc0587d38886fa8e9064
extconf: better check for GCC atomic builtins

Attempting to test for CMPXCHG on x86 should allow this check to
fail on i386 systems.  We also won't need try_run as a result,
enabling cross-compilation.  The configure.in check in Ruby
1.9.3 does something similar and that's far more widely used
than raindrops is.
ext/raindrops/extconf.rb