From a6cf5b5bd3b0158f523d5b16c01ea6c815eb140e Mon Sep 17 00:00:00 2001 From: cg25 Date: Fri, 21 Aug 2009 17:59:05 +0000 Subject: [PATCH] fixed BOOST_ASIO_HASH_MAP_BUCKETS define to 1021 (instead of 1024) and make it apply to all files during build. --- configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index df23b3fac..fe7f51b7e 100644 --- a/configure.in +++ b/configure.in @@ -62,6 +62,9 @@ AC_SYS_LARGEFILE dnl Check for pthreads. ACX_PTHREAD +dnl Pass some build options to setup.py and .pc file +COMPILETIME_OPTIONS="" + AM_CONDITIONAL([ENABLE_SHIPPED_ASIO], false) dnl Check for boost libraries. @@ -173,7 +176,9 @@ AC_ARG_WITH( ) # this works around a bug in asio in boost-1.39 -COMPILETIME_OPTIONS="-DBOOST_ASIO_HASH_MAP_BUCKETS=1024 " +# see: https://svn.boost.org/trac/boost/ticket/3095 +AC_DEFINE(BOOST_ASIO_HASH_MAP_BUCKETS,1021,) +COMPILETIME_OPTIONS+="-DBOOST_ASIO_HASH_MAP_BUCKETS=1021 " dnl Check the value for the --with-logging switch AC_MSG_CHECKING([what form of logging to use])