comparison configure.in @ 5069:fd125217f00c

Separated out the minimum functionality that we need from gcc for our spinlock fallback.
author Sam Lantinga <slouken@libsdl.org>
date Fri, 21 Jan 2011 21:42:04 -0800
parents 231dbbc3e31c
children 55ff76cdbbb8
comparison
equal deleted inserted replaced
5068:231dbbc3e31c 5069:fd125217f00c
309 ]) 309 ])
310 AC_MSG_RESULT($have_gcc_atomics) 310 AC_MSG_RESULT($have_gcc_atomics)
311 311
312 if test x$have_gcc_atomics = xyes; then 312 if test x$have_gcc_atomics = xyes; then
313 AC_DEFINE(HAVE_GCC_ATOMICS) 313 AC_DEFINE(HAVE_GCC_ATOMICS)
314 fi
315
316 # See if we have the minimum operation needed for GCC atomics
317 AC_TRY_LINK([
318 ],[
319 int a;
320 __sync_lock_test_and_set(&a, 1);
321 ],[
322 have_gcc_sync_lock_test_and_set=yes
323 ])
324 if test x$have_gcc_sync_lock_test_and_set = xyes; then
325 AC_DEFINE(HAVE_GCC_SYNC_LOCK_TEST_AND_SET)
314 fi 326 fi
315 fi 327 fi
316 328
317 # Standard C sources 329 # Standard C sources
318 SOURCES="$SOURCES $srcdir/src/*.c" 330 SOURCES="$SOURCES $srcdir/src/*.c"