config BR2_PACKAGE_LIBP11
	bool "libp11"
	depends on !BR2_STATIC_LIBS # dlopen
	depends on BR2_TOOLCHAIN_HAS_THREADS
	select BR2_PACKAGE_LIBOPENSSL_ENGINES
	select BR2_PACKAGE_OPENSSL
	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
	help
	  OpenSSL engine for PKCS#11 modules. Part of the OpenSC
	  project.

	  https://github.com/OpenSC/OpenSC/wiki

comment "libp11 needs a toolchain w/ dynamic library, threads"
	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
