view modules/tls-tests @ 7772:3e05c216c7d7

* modules/settime (Include): Require timespec.h. * modules/nanosleep (Include): Likewise. 2007-01-01 Bruno Haible <bruno@clisp.org> SCALAR(0x82833d4) Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 02 Jan 2007 23:50:44 +0000
parents 2d9c9ba7cf8d
children d31f3019f697
line wrap: on
line source

Files:
tests/test-tls.c

Depends-on:

configure.ac:
dnl Checks for special libraries for the tests/test-tls 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-tls$(EXEEXT)
check_PROGRAMS += test-tls
test_tls_LDADD = @LIBMULTITHREAD@ @LIBSCHED@ $(LDADD)