From d1d813c7f2133957dd8355b2e6a589b54a6ea7c2 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Tue, 4 Jan 2011 07:09:28 +0100 Subject: [PATCH] selection of hash container for mdds must precede header tests --- configure.in | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/configure.in b/configure.in index a7f4663197c5..367a1b288d3f 100755 --- a/configure.in +++ b/configure.in @@ -4830,15 +4830,6 @@ if test -n "$with_system_mdds" -o -n "$with_system_headers" && \ test "$with_system_mdds" != "no"; then AC_MSG_RESULT([external]) SYSTEM_MDDS=YES - AC_LANG_PUSH([C++]) - save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $MDDS_CPPFLAGS" - AC_CHECK_HEADER(mdds/flat_segment_tree.hpp, [], - [AC_MSG_ERROR(mdds/flat_segment_tree.hpp not found. install mdds)], []) - AC_CHECK_HEADER(mdds/mixed_type_matrix.hpp, [], - [AC_MSG_ERROR(mdds/mixed_type_matrix.hpp not found. install mdds >= 0.4.0)], []) - CPPFLAGS="$save_CPPFLAGS" - AC_LANG_POP([C++]) dnl =================================================================== dnl Determine which hash container mdds shall use @@ -4854,6 +4845,16 @@ if test -n "$with_system_mdds" -o -n "$with_system_headers" && \ MDDS_CPPFLAGS="-DMDDS_HASH_CONTAINER_STLPORT" AC_MSG_RESULT([std::hash_map]) fi + + AC_LANG_PUSH([C++]) + save_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $MDDS_CPPFLAGS" + AC_CHECK_HEADER(mdds/flat_segment_tree.hpp, [], + [AC_MSG_ERROR(mdds/flat_segment_tree.hpp not found. install mdds)], []) + AC_CHECK_HEADER(mdds/mixed_type_matrix.hpp, [], + [AC_MSG_ERROR(mdds/mixed_type_matrix.hpp not found. install mdds >= 0.4.0)], []) + CPPFLAGS="$save_CPPFLAGS" + AC_LANG_POP([C++]) else AC_MSG_RESULT([internal]) BUILD_TYPE="$BUILD_TYPE MDDS"