From 1c4d9141b013f4ab0c35be8b90f15d09c80abd9e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 6 Feb 2013 12:47:05 +0200 Subject: Add support for disabling threads --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 18f6dd1..49da0b5 100644 --- a/configure.ac +++ b/configure.ac @@ -44,7 +44,7 @@ if test x"$external_boost" != xno; then LIBBOOST_REGEX([],[boost_found=no]) LIBBOOST_SYSTEM - if test x"$boost_found" == xno; then + if test x"$boost_found" = xno; then AC_MSG_ERROR([boost regex is not found; consider using CPPFLAGS/LDFLAGS or --with-boost=DIR to specify its location]) fi @@ -55,6 +55,14 @@ fi AM_CONDITIONAL([LIBCUTL_EXTERNAL_BOOST], [test x"$external_boost" != xno]) +# Check for threads. For now only internal Boost uses threads so don't +# configure them if we are using external Boost. +# +if test x"$external_boost" = xno; then + THREADS + AS_IF([test x$threads = xnone], + [AC_DEFINE([LIBCUTL_DISABLE_THREADS], [1], [Disable threads.])]) +fi # Define LIBODB_STATIC_LIB if we are build static library on certain platforms. # -- cgit v1.1