From 24ead2ee7fc7509afe4bfcc15b1c1b06177cf1f3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 13 May 2014 18:32:56 +0200 Subject: [PATCH] configure.ac: warn if TLS is not available --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 6ef50f4..469df07 100644 --- a/configure.ac +++ b/configure.ac @@ -92,3 +92,8 @@ AM_CONDITIONAL([HAVE_VFORK],[test "x$ac_cv_func_vfork_works" = xyes]) AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile]) AC_OUTPUT + +if test x"$ac_cv_tls" != x"none"; then + AC_MSG_WARN([thread-local storage not supported by compiler, \ +possible race condition in threaded programs]) +fi -- 2.45.2