AC_ARG_WITH(openssl,
AC_HELP_STRING([--with-openssl=PATH], [where openssl is installed]),
[if test x_$with_openssl != x_/usr; then
- SSLLIBS="-L${with_openssl}/lib"
- SSLFLAGS="-I${with_openssl}/include"
+ SSLLIBS="-L${with_openssl}/lib"
+ SSLFLAGS="-I${with_openssl}/include"
fi])
SSLLIBS="$SSLLIBS -lssl -lcrypto"
else
CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
fi])
LIBS="-lxerces-c $LIBS"
-AC_CHECK_HEADER([xercesc/dom/DOM.hpp],,
- AC_MSG_ERROR([unable to find xerces header files]))
+AC_CHECK_HEADER([xercesc/dom/DOM.hpp],,AC_MSG_ERROR([unable to find xerces header files]))
AC_MSG_CHECKING([Xerces version])
AC_PREPROC_IFELSE(
- [AC_LANG_PROGRAM([#include <xercesc/util/XercesVersion.hpp>],
+ [AC_LANG_PROGRAM([#include <xercesc/util/XercesVersion.hpp>],
[#if _XERCES_VERSION != 20600
int i = 0;
#else
#error cannot use version 2.6.0
#endif])],
- [AC_MSG_RESULT(OK)],
- [AC_MSG_FAILURE([Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use special 2.6.1 tarball provided by Shibboleth Project])])
+ [AC_MSG_RESULT(OK)],
+ [AC_MSG_FAILURE([Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use special 2.6.1 tarball provided by Shibboleth Project])])
AC_TRY_LINK(
[#include <xercesc/util/PlatformUtils.hpp>],
[xercesc::XMLPlatformUtils::Initialize()],
LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
fi])
-LIBS="-lxml-security-c $LIBS"
-AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,AC_MSG_ERROR([unable to find xsec header files]))
-AC_TRY_LINK(
- [#include <xsec/utils/XSECPlatformUtils.hpp>],
- [XSECPlatformUtils::Initialise()],
- [AC_DEFINE(HAVE_LIBXSEC,1,[Define if XML-Sec library was found])],
- [AC_MSG_ERROR([unable to link with XML-Sec])])
+
+if test x_$with_xmlsec != x_no; then
+ if test x_$with_xmlsec != x_/usr; then
+ LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
+ CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
+ fi
+ LIBS="-lxml-security-c $LIBS"
+ AC_CHECK_HEADER([xsec/utils/XSECPlatformUtils.hpp],,AC_MSG_ERROR([unable to find XML-Security header files]))
+ AC_MSG_CHECKING([XML-Security version])
+ AC_PREPROC_IFELSE(
+ [AC_LANG_PROGRAM([#include <xsec/utils/XSECPlatformUtils.hpp>],
+ [#if XSEC_VERSION_MAJOR > 1 || XSEC_VERSION_MEDIUM >2
+int i = 0;
+#else
+#error need version 1.3 or later
+#endif])],
+ [AC_MSG_RESULT(OK)],
+ [AC_MSG_FAILURE([XML-Security version 1.3 or greater is required.])])
+ AC_TRY_LINK(
+ [#include <xsec/utils/XSECPlatformUtils.hpp>],
+ [XSECPlatformUtils::Initialise()],,
+ [AC_MSG_ERROR([unable to link with XML-Sec])])
+else
+ AC_MSG_WARN([xmlsec disabled, building without signature/encryption support])
+ [AC_DEFINE(XMLTOOLING_NO_XMLSEC,1,
+ [Define if you wish to disable XML-Security-dependent features.])]
+fi
+AM_CONDITIONAL(BUILD_XMLSEC,test x_$with_xmlsec != x_no)
# Does the STL in use help or screw us?
AC_TRY_LINK(
CXXTESTFLAGS=""
AC_ARG_WITH(cxxtest,
AC_HELP_STRING([--with-cxxtest=PATH], [where cxxtest is installed]),
- [if test x_$with_xerces != x_/usr; then
+ [if test x_$with_cxxtest != x_/usr; then
CXXTEST="${with_cxxtest}/cxxtestgen.pl"
CXXTESTFLAGS="-I${with_cxxtest}"
fi])
+++ /dev/null
-/*\r
- * Copyright 2001-2006 Internet2\r
- * \r
- * Licensed under the Apache License, Version 2.0 (the "License");\r
- * you may not use this file except in compliance with the License.\r
- * You may obtain a copy of the License at\r
- *\r
- * http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- * Unless required by applicable law or agreed to in writing, software\r
- * distributed under the License is distributed on an "AS IS" BASIS,\r
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- * See the License for the specific language governing permissions and\r
- * limitations under the License.\r
- */\r
-\r
-/**\r
- * @file KeyInfo.h\r
- * \r
- * XMLObject representing XML Digital Signature, version 20020212, KeyInfo element. \r
- */\r
-\r
-#if !defined(__xmltooling_keyinfo_h__) && !defined(XMLTOOLING_NO_XMLSEC)\r
-#define __xmltooling_keyinfo_h__\r
-\r
-#include <xmltooling/XMLObject.h>\r
-#include <xsec/dsig/DSIGKeyInfoList.hpp>\r
-\r
-namespace xmltooling {\r
-\r
- /**\r
- * XMLObject representing XML Digital Signature, version 20020212, KeyInfo element.\r
- */\r
- class XMLTOOL_API KeyInfo : public virtual XMLObject\r
- {\r
- public:\r
- virtual ~KeyInfo() {}\r
-\r
- /** Element local name */\r
- static const XMLCh LOCAL_NAME[];\r
-\r
- /**\r
- * Returns immutable ds:KeyInfo information.\r
- * \r
- * @return the ds:KeyInfo information\r
- */\r
- virtual const DSIGKeyInfoList* getKeyInfo() const=0; \r
-\r
- /**\r
- * Returns mutable ds:KeyInfo information.\r
- * \r
- * @return the ds:KeyInfo information\r
- */\r
- virtual DSIGKeyInfoList* getKeyInfo()=0; \r
- \r
- protected:\r
- KeyInfo() {}\r
- };\r
-\r
-};\r
-\r
-#endif /* __xmltooling_keyinfo_h__ */\r