configure: fix check for atomic operations
configure: fix check for atomic operations

Some compilers have support for atomic operations, but do not
define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4. Instead of checking
for this define, we check for __sync_bool_compare_and_swap and
define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 if the compiler doesn't
define it.

https://bugzilla.gnome.org/show_bug.cgi?id=682818

djdeath/glib,cosimoc/glib,lukasz-skalski/glib,cosimoc/glib,djdeath/glib,mzabaluev/glib,cention-sany/glib,johne53/MB3Glib,djdeath/glib,johne53/MB3Glib,johne53/MB3Glib,cention-sany/glib,cention-sany/glib,tamaskenez/glib,gale320/glib,mzabaluev/glib,Distrotech/glib,krichter722/glib,endlessm/glib,ieei/glib,tchakabam/glib,endlessm/glib,gale320/glib,gale320/glib,tchakabam/glib,lukasz-skalski/glib,endlessm/glib,Distrotech/glib,Distrotech/glib,tamaskenez/glib,gale320/glib,cosimoc/glib,cention-sany/glib,tchakabam/glib,gale320/glib,MathieuDuponchelle/glib,krichter722/glib,Distrotech/glib,MathieuDuponchelle/glib,lukasz-skalski/glib,tchakabam/glib,ieei/glib,johne53/MB3Glib,cosimoc/glib,MathieuDuponchelle/glib,lukasz-skalski/glib,krichter722/glib,lukasz-skalski/glib,djdeath/glib,mzabaluev/glib,ieei/glib,tamaskenez/glib,krichter722/glib,cention-sany/glib,MathieuDuponchelle/glib,cosimoc/glib,ieei/glib,ieei/glib,johne53/MB3Glib,MathieuDuponchelle/glib,endlessm/glib,endlessm/glib,Distrotech/glib,johne53/MB3Glib,mzabaluev/glib,tamaskenez/glib,tamaskenez/glib,krichter722/glib,mzabaluev/glib,djdeath/glib,tchakabam/glib