summaryrefslogtreecommitdiff
path: root/modules/lock-tests
blob: 568077176581d81dff488e5faf071d4c36bab843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Files:
tests/test-lock.c

Depends-on:

configure.ac:
dnl Checks for special libraries for the tests/test-lock test.
dnl On some systems, sched_yield is in librt, rather than in libpthread.
LIBSCHED=
if test $gl_threads_api = posix; then
  AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt])
fi
AC_SUBST([LIBSCHED])

Makefile.am:
TESTS += test-lock
noinst_PROGRAMS += test-lock
test_lock_SOURCES = test-lock.c
test_lock_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD)