1comment "samba4 needs a uClibc or glibc toolchain w/ wchar, dynamic library, NPTL"
2	depends on BR2_TOOLCHAIN_HAS_SYNC_4
3	depends on !BR2_USE_WCHAR || BR2_TOOLCHAIN_USES_MUSL \
4		|| BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
5	depends on BR2_USE_MMU
6
7config BR2_PACKAGE_SAMBA4
8	bool "samba4"
9	depends on BR2_USE_MMU # fork()
10	depends on BR2_USE_WCHAR # python
11	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # python -> libffi
12	depends on !BR2_STATIC_LIBS # cmocka, python, gnutls
13	depends on !BR2_nios2 # binary too large, relocations don't fit
14	depends on BR2_TOOLCHAIN_HAS_SYNC_4
15	depends on !BR2_TOOLCHAIN_USES_MUSL
16	select BR2_PACKAGE_CMOCKA
17	select BR2_PACKAGE_E2FSPROGS
18	select BR2_PACKAGE_GNUTLS
19	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
20	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
21	select BR2_PACKAGE_POPT
22	select BR2_PACKAGE_ZLIB
23	help
24	  Provides secure, stable and fast file and print services
25	  for all clients using the SMB/CIFS protocol, such as all
26	  versions of DOS, Windows, OS/2, Linux and many others.
27
28	  http://www.samba.org/
29
30if BR2_PACKAGE_SAMBA4
31
32config BR2_PACKAGE_SAMBA4_AD_DC
33	bool "AD DC"
34	depends on BR2_PACKAGE_PYTHON3
35	select BR2_PACKAGE_JANSSON
36	select BR2_PACKAGE_PYTHON_DNSPYTHON
37	select BR2_PACKAGE_PYTHON_MARKDOWN
38	select BR2_PACKAGE_SAMBA4_ADS
39	help
40	  Enable Active Directory Domain Controller functionality.
41
42comment "AD DC depends on python3"
43	depends on !BR2_PACKAGE_PYTHON3
44
45config BR2_PACKAGE_SAMBA4_ADS
46	bool "ADS"
47	select BR2_PACKAGE_OPENLDAP
48	help
49	  Enable Active Directory member Server functionality.
50
51config BR2_PACKAGE_SAMBA4_SMBTORTURE
52	bool "smbtorture"
53	help
54	  Install the smbtorture test suite.
55	  It's normally used for validation and stress testing.
56	  Approximately +5 MB of stripped uncompressed target space.
57
58endif
59