config BR2_PACKAGE_LIBHTTPSERVER
	bool "libhttpserver"
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_HAS_THREADS
	select BR2_PACKAGE_LIBMICROHTTPD
	help
	  libhttpserver is a C++ library for building high performance
	  RESTfuls web servers. libhttpserver is built upon
	  libmicrohttpd to provide a simple API for developers to
	  create HTTP services in C++.

	  https://github.com/etr/libhttpserver

comment "libhttpserver needs a toolchain w/ C++, threads, gcc >= 7"
	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_7
