1config BR2_PACKAGE_PCRE2
2	bool "pcre2"
3	help
4	  Perl Compatible Regular Expressions. By default, only the
5	  8-bits libpcre2 is built. To get the 16-bits and/or 32-bits
6	  variants libpcre2-16/libpcre2-32, use the package
7	  sub-options.
8
9	  http://www.pcre.org/
10
11if BR2_PACKAGE_PCRE2
12
13config BR2_PACKAGE_PCRE2_16
14	bool "16-bit pcre2"
15	help
16	  This option builds the 16-bits pcre2 library, i.e
17	  'libpcre2-16'
18
19config BR2_PACKAGE_PCRE2_32
20	bool "32-bit pcre2"
21	help
22	  This option builds the 32-bits pcre2 library, i.e
23	  'libpcre2-32'
24
25config BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
26	bool
27	default y if BR2_aarch64
28	default y if BR2_arm || BR2_armeb
29	default y if BR2_i386 || BR2_x86_64
30	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
31	default y if BR2_powerpc
32
33config BR2_PACKAGE_PCRE2_JIT
34	bool "enable JIT support"
35	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
36	depends on BR2_TOOLCHAIN_HAS_THREADS
37	help
38	  This option enables JIT support
39
40comment "JIT support needs a toolchain w/ threads"
41	depends on BR2_PACKAGE_PCRE2_JIT_ARCH_SUPPORTS
42	depends on !BR2_TOOLCHAIN_HAS_THREADS
43
44endif
45