Change AC_COMPILE_IFELSE into AC_LINK_IFELSE for the __sync_{add, sub}_and_fetch() test

With the Android NDK, __sync_{add,sub}_and_fetch() compile fine for uint64_t,
but the corresponding libgcc function aren't there.
This commit is contained in:
Mike Hommey 2012-03-27 15:03:07 +02:00 committed by Jason Evans
parent 1a0e777024
commit 2cfe6d67ef

View File

@ -898,7 +898,7 @@ dnl __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n macros being undefined.
AC_DEFUN([JE_SYNC_COMPARE_AND_SWAP_CHECK],[ AC_DEFUN([JE_SYNC_COMPARE_AND_SWAP_CHECK],[
AC_CACHE_CHECK([whether to force $1-bit __sync_{add,sub}_and_fetch()], AC_CACHE_CHECK([whether to force $1-bit __sync_{add,sub}_and_fetch()],
[je_cv_sync_compare_and_swap_$2], [je_cv_sync_compare_and_swap_$2],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ [AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <stdint.h> #include <stdint.h>
], ],
[ [