From dff88653df69fcb98561260cfba0d5a6f127a8e2 Mon Sep 17 00:00:00 2001 From: Jonathan Robie Date: Fri, 5 Mar 2010 21:52:42 +0000 Subject: Tests for presence of xqilla/ast/XQEffectiveBooleanValue.hpp; if not present, sets a constant to enable legacy API for effective boolean value. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@919632 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpp') diff --git a/cpp/configure.ac b/cpp/configure.ac index 8c8efc1917..fee657e0b0 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -346,6 +346,8 @@ esac test $want_xml = no && use_xml=no + + # If the user doesn't say not to use XML, see if it's available. if test $use_xml != no; then # Then see if XQilla is available @@ -364,6 +366,13 @@ if test $use_xml != no; then # Else XQilla is available - use it to build test $use_xml = yes && AC_DEFINE([HAVE_XML], [1], [Compile-in XML Exchange support.]) + + # Check to see if we need to use legacy calls for effective boolean value + xqilla_has_ebv=yes + AC_CHECK_HEADER([xqilla/ast/XQEffectiveBooleanValue.hpp], , [xqilla_has_ebv=no]) + test $xqilla_has_ebv = no && + AC_DEFINE([XQILLA_2_1_3], [1], [Use the old XQilla 2.1.3 API to get effective boolean value.]) + fi AM_CONDITIONAL([HAVE_XML], [test $use_xml = yes]) -- cgit v1.2.1