From be7cc35781e348f443abbd3910519707aea11904 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Oct 2008 21:33:59 +0000 Subject: Lower glib/glibmm dependency to 2.14. Fix optional parameters all over the palce because waf is retarded and sets failed check variables to ##some#stupid#name#like#this instead of false. Portability fixes (Ingen (except GUI) and all dependencies builds on OSX). git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1681 a436a847-0d15-0410-975c-d299462d15a1 --- tests/table_test.cpp | 12 +++++++++--- wscript | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/tests/table_test.cpp b/tests/table_test.cpp index f0d1883..3fdde92 100644 --- a/tests/table_test.cpp +++ b/tests/table_test.cpp @@ -3,14 +3,18 @@ #include #include #include -#include #include #include #include #include -#define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION 1 -#include +//#define WITH_TR1 1 + +#ifdef WITH_TR1 + #define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION 1 + #include + #include +#endif using namespace Raul; using namespace std; @@ -347,6 +351,7 @@ benchmark(size_t n) cout << "Raul::Table time to lookup " << n << " values: \t" << delta_t << endl; +#ifdef WITH_TR1 /** boost::hash && std::unordered_map **/ tr1::unordered_map > um; @@ -374,5 +379,6 @@ benchmark(size_t n) delta_t = (t2.tv_sec - t1.tv_sec) + (t2.tv_usec - t1.tv_usec) * 0.000001f; cout << "tr1::unordered_map + boost::hash time to lookup " << n << " values: \t" << delta_t << endl; +#endif } diff --git a/wscript b/wscript index dc81baa..cb11573 100644 --- a/wscript +++ b/wscript @@ -31,8 +31,8 @@ def set_options(opt): def configure(conf): autowaf.configure(conf) autowaf.check_tool(conf, 'compiler_cxx') - autowaf.check_pkg(conf, 'glibmm-2.4', destvar='GLIBMM', vnum='2.16.0', mandatory=True) - autowaf.check_pkg(conf, 'gthread-2.0', destvar='GTHREAD', vnum='2.16.0', mandatory=True) + autowaf.check_pkg(conf, 'glibmm-2.4', destvar='GLIBMM', vnum='2.14.0', mandatory=True) + autowaf.check_pkg(conf, 'gthread-2.0', destvar='GTHREAD', vnum='2.14.0', mandatory=True) autowaf.print_summary(conf) def build(bld): -- cgit v1.2.1