config BR2_PACKAGE_RE2
	bool "re2"
	depends on BR2_INSTALL_LIBSTDCPP
	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # needs C++11
	depends on BR2_TOOLCHAIN_HAS_THREADS
	help
	  RE2 is a fast, safe, thread-friendly alternative
	  to backtracking regular expression engines like
	  those used in PCRE, Perl, and Python.
	  It is a C++ library.

	  https://github.com/google/re2

comment "re2 needs a toolchain w/ C++, threads, gcc >= 4.8"
	depends on !BR2_INSTALL_LIBSTDCPP || \
		!BR2_TOOLCHAIN_HAS_THREADS || \
		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
