config BR2_PACKAGE_LIBSERIAL
	bool "libserial"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # C++14
	depends on BR2_TOOLCHAIN_HAS_THREADS # boost
	depends on BR2_USE_WCHAR # boost
	select BR2_PACKAGE_BOOST
	help
	  Simplified serial port programming in C++ under POSIX
	  operating systems.

	  http://libserial.sourceforge.net/

comment "libserial needs a toolchain w/ C++, gcc >= 5, threads, wchar"
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
		!BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR