diff options
| author | Alan Conway <aconway@apache.org> | 2008-05-06 17:52:03 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-05-06 17:52:03 +0000 |
| commit | 8d8a9162f7ba5a99a7c8b8b57aae860ab3028078 (patch) | |
| tree | aa17b9f56448a5280e13441a7b0473dd5faee283 /cpp/configure.ac | |
| parent | e4a3049c22b36171d204a8f84ddbcbf5accf797f (diff) | |
| download | qpid-python-8d8a9162f7ba5a99a7c8b8b57aae860ab3028078.tar.gz | |
From https://issues.apache.org/jira/browse/QPID-879 contributed by Jonathan Robie.
XML exchange allowing messages to be routed base on XQuery expressions.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@653854 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/configure.ac')
| -rw-r--r-- | cpp/configure.ac | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac index 597891b741..63513eea12 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -139,6 +139,7 @@ AC_CHECK_HEADERS([boost/shared_ptr.hpp uuid/uuid.h],, # Check for optional CPG requirement. LDFLAGS="$LDFLAGS -L/usr/lib/openais -L/usr/lib64/openais" + AC_ARG_WITH([cpg], [AS_HELP_STRING([--with-cpg], [Build with CPG support])], [case "${withval}" in @@ -163,7 +164,6 @@ if test x$with_CPG = xyes; then CPPFLAGS+=" -DCPG" fi - # Setup --with-sasl/--without-sasl as arguments to configure AC_ARG_WITH([sasl], [AS_HELP_STRING([--with-sasl], [Build with SASL authentication support])], @@ -194,6 +194,38 @@ AS_IF([test "x$WANT_SASL" != xno], [The SASL app name for the qpid Broker]) AC_DEFINE([HAVE_SASL], [1], [Enable if libsasl is present])])]) + +# Setup --with-xml/--without-xml as arguments to configure +use_xml=yes +want_xml=check +AC_ARG_WITH([xml], + [AS_HELP_STRING([--with-xml], [Build with XML Exchange])], + [want_xml=$withval]) + +case $want_xml in + yes|no|check) ;; + *) AC_MSG_ERROR([Bad value for --with-xml: $withval]) ;; +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 + AC_CHECK_LIB([xerces-c], [_init], , [use_xml=no]) + AC_CHECK_HEADER([xqilla/xqilla-simple.hpp], , [use_xml=no]) + AC_CHECK_LIB([xqilla], [canonicalCombiningClassTable], , [use_xml=no]) + + # If XQilla is not available, yet specifically requested, die. + test $use_xml:$want_xml = no:yes && + AC_MSG_ERROR([XML Exchange requested, but XQilla or Xerces-C not available]) + + # Else XQilla is available - use it to build + AC_DEFINE([HAVE_XML], [1], [Compile-in XML Exchange support.]) +fi + +AM_CONDITIONAL([HAVE_XML], [test $use_xml = yes]) + # Setup --with-rdma/--without-rdma as arguments to configure AC_ARG_WITH([rdma], [AS_HELP_STRING([--with-rdma], [Build with support for Remote DMA protocols])], |
