config BR2_PACKAGE_XML_SECURITY_C
	bool "xml-security-c"
	depends on BR2_INSTALL_LIBSTDCPP # xerces
	depends on !BR2_STATIC_LIBS # xerces
	depends on BR2_USE_WCHAR # xerces
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
	depends	on BR2_TOOLCHAIN_HAS_THREADS
	select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
	select BR2_PACKAGE_OPENSSL
	select BR2_PACKAGE_XERCES
	help
	  The xml-security-c library is a C++ implementation of
	  the XML Digital Signature and Encryption specifications.

	  https://santuario.apache.org/cindex.html

comment "xml-security-c needs a toolchain w/ C++, wchar, dynamic library, threads, gcc >= 4.7"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
		BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || \
		!BR2_TOOLCHAIN_HAS_THREADS
