atomic: check if -latomic is required for std::atomic

* configure.ac,
m4/l_atomic.m4,
python/Makefile.am,
tests/Makefile.am: Here.
This commit is contained in:
Etienne Renault 2020-05-20 13:43:18 +02:00
parent 6e0e6b923d
commit e564dd1263
4 changed files with 50 additions and 7 deletions

View file

@ -79,6 +79,9 @@ AX_CHECK_COMPILE_FLAG([-std=c11], [CFLAGS="$CFLAGS -std=c11"])
gl_INIT
dnl Check if -latomic is required for <std::atomic>
CHECK_ATOMIC
# Use -Werror since using -fvisibility under MinGW is only a warning.
# (The option is ignored anyway since this does not make sense under windows).
AX_CHECK_COMPILE_FLAG([-Werror -fvisibility=hidden],