Attempt to handle xmlsec versions where xsecsize_t doesn't exist.
authorScott Cantor <cantor.2@osu.edu>
Fri, 6 Mar 2009 22:00:06 +0000 (22:00 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 6 Mar 2009 22:00:06 +0000 (22:00 +0000)
config_win32.h
configure.ac
xmltooling/base.h
xmltooling/config_pub.h.in
xmltooling/config_pub_win32.h

index 2a24c04..d2c25c1 100644 (file)
@@ -74,6 +74,9 @@
 # define XMLTOOLING_XERCESC_INPUTSTREAM_HAS_CONTENTTYPE 1
 #endif
 
+/* Define to 1 if you have the `xsecsize_t' type. */
+#define HAVE_XSECSIZE_T 1
+
 /* Name of package */
 #define PACKAGE "xmltooling"
 
index 7c7d1a1..ec8ed09 100644 (file)
@@ -288,6 +288,8 @@ int i = 0;
             [#include <xsec/utils/XSECPlatformUtils.hpp>],
             [XSECPlatformUtils::Initialise()],,
             [AC_MSG_ERROR([unable to link with XML-Security])])
+    AC_MSG_CHECKING([xsecsize_t])
+    AC_CHECK_TYPE([xsecsize_t],[AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
 
        # restore master libs
        LIBS="$save_LIBS"
index 30db50d..2956172 100644 (file)
@@ -39,7 +39,7 @@
 # define XMLTOOLING_NO_XMLSEC 1\r
 #endif\r
 \r
-#ifdef XMLTOOLING_NO_XMLSEC\r
+#if defined(XMLTOOLING_NO_XMLSEC) || !defined(HAVE_XSECSIZE_T)\r
 # ifdef XMLTOOLING_XERCESC_64BITSAFE\r
 #   include <xercesc/util/XercesDefs.hpp>\r
     typedef XMLSize_t xsecsize_t;\r
index b14839a..736d7ec 100644 (file)
@@ -26,3 +26,6 @@
 
 /* Define to 1 if Xerces has a 64-bit-safe API. */
 #undef XMLTOOLING_XERCESC_64BITSAFE
+
+/* Define to 1 if you have the `xsecsize_t' type. */
+#undef HAVE_XSECSIZE_T
index 6c00991..2652bb9 100644 (file)
@@ -28,3 +28,6 @@
 # define XMLTOOLING_XERCESC_BOOLSETIDATTRIBUTE  1
 # define XMLTOOLING_XERCESC_64BITSAFE           1
 #endif
+
+/* Define to 1 if you have the `xsecsize_t' type. */
+#define HAVE_XSECSIZE_T 1