Added a Xerces version check.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 13 Apr 2004 20:26:08 +0000 (20:26 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 13 Apr 2004 20:26:08 +0000 (20:26 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@984 cb58f699-b61c-0410-a6fe-9272a202ed29

configure.ac

index 7a46547..b157e76 100644 (file)
@@ -121,8 +121,13 @@ LIBS="-lxerces-c $LIBS"
 AC_CHECK_HEADER([xercesc/dom/DOM.hpp],,
                 AC_MSG_ERROR([unable to find xerces header files]))
 AC_TRY_LINK(
-       [#include <xercesc/util/PlatformUtils.hpp>],
-        [xercesc::XMLPlatformUtils::Initialize()],
+       [#include <xercesc/util/PlatformUtils.hpp>
+#include <xercesc/util/XercesVersion.hpp>],
+        [#if _XERCES_VERSION >= 20300
+xercesc::XMLPlatformUtils::Initialize();
+#else
+#error Need Xerces-C version 2.3 or higher
+#endif],
        [AC_DEFINE(HAVE_LIBXERCESC,1,[Define if Xerces-C library was found])],
        [AC_MSG_ERROR([unable to link with Xerces])])