Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: userland atomics



On Fri, Dec 12, 2008 at 08:45:32PM -0800, John Nemeth wrote:
>      Supposedly it trys to link that.  It should fail at configure
> time.  The configure.ac snippet is:
> 
> AC_MSG_CHECKING(for compiler atomic operations)
> AC_LINK_IFELSE(
> AC_LANG_PROGRAM([], [int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);]),
> AC_MSG_RESULT(yes)
> AC_DEFINE([HAVE_GCC_ATOMICS], 1, [Define to 1 if your GCC C compiler provides 
> at
> omic operations.]),
> AC_MSG_RESULT(no)
> )

That looks right - what does config.log have to say about it?

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index