~andrefcruz/libmemcached/failover-fixes

« back to all changes in this revision

Viewing changes to m4/pandora_have_gcc_atomics.m4

  • Committer: Brian Aker
  • Date: 2010-06-13 16:21:08 UTC
  • mfrom: (847.1.9 fix-debian-patches)
  • Revision ID: brian@gaz-20100613162108-hjjzraqfjoag9zo2
Merge Monty (with formatting fixes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
  AC_CACHE_CHECK(
14
14
    [whether the compiler provides atomic builtins],
15
15
    [ac_cv_gcc_atomic_builtins],
16
 
    [AC_RUN_IFELSE(
 
16
    [AC_LINK_IFELSE(
17
17
      [AC_LANG_PROGRAM([],[[
18
18
        int foo= -10; int bar= 10;
19
19
        if (!__sync_fetch_and_add(&foo, bar) || foo)
34
34
              [Define to 1 if compiler provides atomic builtins.])
35
35
  ])
36
36
 
37
 
])
 
 
b'\\ No newline at end of file'
 
37
])