[Mesa-dev] [PATCH] configure.ac: rework -latomic check

2018-05-07 Thread Thomas Petazzoni
t atomic instrinsics, and there is no libatomic. In this case, config.log contains: GCC_ATOMIC_BUILTINS_SUPPORTED_FALSE='' GCC_ATOMIC_BUILTINS_SUPPORTED_TRUE='#' With means that atomic intrinsics are not usable. Signed-off-by: Thomas Petazzoni --- configure.ac | 37

Re: [Mesa-dev] [PATCH] configure.ac: rework -latomic check

2018-05-07 Thread Thomas Petazzoni
Hello, On Mon, 7 May 2018 14:07:05 -0700, Matt Turner wrote: > On Mon, May 7, 2018 at 4:34 AM, Thomas Petazzoni > wrote: > > The configure.ac logic added in commit > > 2ef7f23820a67e958c2252bd81eb0458903ebf33 ("configure: check if > > -latomic is needed for __atomic_

Re: [Mesa-dev] [PATCH] configure.ac: rework -latomic check

2018-05-10 Thread Thomas Petazzoni
PORTED=yes LIBATOMIC_LIBS="-latomic", > + GCC_ATOMIC_BUILTINS_SUPPORTED=no) > + LDFLAGS=$save_LDFLAGS > + > + Those two empty lines don't seem to be very useful. > +fi > +AC_MSG_RESULT($GCC_ATOMIC_BUILTINS_SUPPORTED) > + &g