config BR2_PACKAGE_SYSREPO
	bool "sysrepo"
	depends on BR2_USE_MMU
	depends on !BR2_STATIC_LIBS
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
	select BR2_PACKAGE_LIBYANG
	select BR2_PACKAGE_PCRE
	select BR2_PACKAGE_PCRE_UCP
	help
	  Sysrepo is an YANG-based configuration and operational state
	  data store for Unix/Linux applications.

	  https://github.com/sysrepo

if BR2_PACKAGE_SYSREPO

config BR2_PACKAGE_SYSREPO_EXAMPLES
	bool "enable examples"
	help
	  Enable sysrepo examples.

endif

comment "sysrepo needs a toolchain w/ C++, NPTL, dynamic library, gcc >= 4.8"
	depends on BR2_USE_MMU
	depends on BR2_STATIC_LIBS || !BR2_INSTALL_LIBSTDCPP \
		|| !BR2_TOOLCHAIN_HAS_THREADS_NPTL
