* modules/mtx-tests (Files): Add m4/semaphore.m4.
(configure.ac): Require gl_SEMAPHORE.
(Makefile.am): Link test-mtx with @LIB_SEMAPHORE@.
+2024-06-03 Bruno Haible <bruno@clisp.org>
+
+ mtx tests: Fix a possible link error.
+ * modules/mtx-tests (Files): Add m4/semaphore.m4.
+ (configure.ac): Require gl_SEMAPHORE.
+ (Makefile.am): Link test-mtx with @LIB_SEMAPHORE@.
+
2024-06-03 Bruno Haible <bruno@clisp.org>
pthread-mutex, pthread-rwlock: Fix a compilation error.
tests/test-mtx.c
tests/atomic-int-isoc.h
tests/macros.h
+m4/semaphore.m4
Depends-on:
thrd
configure.ac:
AC_CHECK_HEADERS_ONCE([semaphore.h])
AC_CHECK_DECLS_ONCE([alarm])
+AC_REQUIRE([gl_SEMAPHORE])
Makefile.am:
TESTS += test-mtx
check_PROGRAMS += test-mtx
-test_mtx_LDADD = $(LDADD) @LIBSTDTHREAD@ @LIBTHREAD@
+test_mtx_LDADD = $(LDADD) @LIBSTDTHREAD@ @LIBTHREAD@ @LIB_SEMAPHORE@