configure.in
changeset 5071 55ff76cdbbb8
parent 5069 fd125217f00c
child 5093 817064595222
     1.1 --- a/configure.in	Fri Jan 21 21:43:56 2011 -0800
     1.2 +++ b/configure.in	Fri Jan 21 21:45:55 2011 -0800
     1.3 @@ -311,18 +311,18 @@
     1.4  
     1.5      if test x$have_gcc_atomics = xyes; then
     1.6          AC_DEFINE(HAVE_GCC_ATOMICS)
     1.7 -    fi
     1.8 -
     1.9 -    # See if we have the minimum operation needed for GCC atomics
    1.10 -    AC_TRY_LINK([
    1.11 -    ],[
    1.12 -    int a;
    1.13 -    __sync_lock_test_and_set(&a, 1);
    1.14 -    ],[
    1.15 -    have_gcc_sync_lock_test_and_set=yes
    1.16 -    ])
    1.17 -    if test x$have_gcc_sync_lock_test_and_set = xyes; then
    1.18 -        AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
    1.19 +    else
    1.20 +        # See if we have the minimum operation needed for GCC atomics
    1.21 +        AC_TRY_LINK([
    1.22 +        ],[
    1.23 +        int a;
    1.24 +        __sync_lock_test_and_set(&a, 1);
    1.25 +        ],[
    1.26 +        have_gcc_sync_lock_test_and_set=yes
    1.27 +        ])
    1.28 +        if test x$have_gcc_sync_lock_test_and_set = xyes; then
    1.29 +            AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
    1.30 +        fi
    1.31      fi
    1.32  fi
    1.33