config BR2_PACKAGE_GNUTLS
	bool "gnutls"
	# https://gitlab.com/gnutls/gnutls/issues/203
	depends on !BR2_STATIC_LIBS
	# gnulib requires a library that implements wctomb().
	# This is noticed only when linking with libgnutls.so.
	depends on BR2_USE_WCHAR
	select BR2_PACKAGE_LIBTASN1
	select BR2_PACKAGE_NETTLE
	select BR2_PACKAGE_PCRE
	help
	  GnuTLS is a secure communications library implementing the SSL
	  and TLS protocols and technologies around them.

	  http://www.gnutls.org

if BR2_PACKAGE_GNUTLS

config BR2_PACKAGE_GNUTLS_OPENSSL
	bool "OpenSSL compatibility library"
	help
	  Install OpenSSL compatibility library.

config BR2_PACKAGE_GNUTLS_TOOLS
	bool "install tools"
	select BR2_PACKAGE_ARGP_STANDALONE \
		if BR2_TOOLCHAIN_USES_UCLIBC || BR2_TOOLCHAIN_USES_MUSL
	help
	  Install GnuTLS command line tools for various cryptographic
	  tasks.

endif

comment "gnutls needs a toolchain w/ wchar, dynamic library"
	depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
