From: Will Estes Date: Thu, 3 Jul 2014 02:19:12 +0000 (-0400) Subject: use automake conditional around pthread test X-Git-Tag: v2.6.0~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c64f2fa80772cd681f4c358e651accd7868552c;p=flex use automake conditional around pthread test --- diff --git a/configure.ac b/configure.ac index 4edc904..977ea3a 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,7 @@ AC_DEFINE([HAVE_LIBPTHREAD], 1, [pthread library] ), AC_DEFINE([HAVE_LIBPTHREAD], 0, [pthread library] ) ) AC_CHECK_HEADERS([pthread.h]) +AM_CONDITIONAL([want_pthread], [test x$ac_cv_lib_pthread_pthread_mutex_lock = xyes]) AC_CHECK_LIB(m, log10) diff --git a/tests/Makefile.am b/tests/Makefile.am index ea94ad8..b9935c4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -110,8 +110,10 @@ DIRECT_TESTS = \ I3_TESTS = \ cxx_yywrap.i3 +if want_pthread PTHREAD_TESTS = \ pthread.pthread +endif ONE_TESTS = \ lineno_nr.one \