xref: /OK3568_Linux_fs/buildroot/package/php/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_PHP
2	bool "php"
3	# PHP uses -export-dynamic, which breaks with elf2flt with a
4	# message like "ld.real: section .junk LMA [...,...] overlaps
5	# section .text LMA [...,...]"
6	depends on !BR2_BINFMT_FLAT
7	depends on BR2_USE_WCHAR
8	select BR2_PACKAGE_PHP_SAPI_CGI if \
9	       !BR2_PACKAGE_PHP_SAPI_APACHE && \
10	       !BR2_PACKAGE_PHP_SAPI_CLI && \
11	       !BR2_PACKAGE_PHP_SAPI_FPM &&  \
12	       BR2_USE_MMU
13	select BR2_PACKAGE_PHP_SAPI_CLI if !BR2_USE_MMU
14	select BR2_PACKAGE_PCRE2
15	help
16	  PHP  is a widely-used general-purpose scripting
17	  language that is especially suited for Web development
18	  and can be embedded into HTML.
19
20	  http://www.php.net
21
22if BR2_PACKAGE_PHP
23
24config BR2_PACKAGE_PHP_SAPI_APACHE
25	bool "Apache interface"
26	depends on BR2_PACKAGE_APACHE
27	help
28	  Apache module
29
30config BR2_PACKAGE_PHP_SAPI_CGI
31	bool "CGI interface"
32	# CGI uses fork()
33	depends on BR2_USE_MMU
34	help
35	  Common Gateway Interface
36
37config BR2_PACKAGE_PHP_SAPI_CLI
38	bool "CLI interface"
39	help
40	  Command Line Interface
41
42config BR2_PACKAGE_PHP_SAPI_FPM
43	bool "FPM interface"
44	depends on BR2_USE_MMU
45	# "Sparc v8 and predecessors are not and will not be supported"
46	depends on !BR2_sparc
47	help
48	  PHP-FPM (FastCGI Process Manager)
49
50source "package/php/Config.ext"
51
52endif
53
54comment "php needs a toolchain w/ wchar"
55	depends on !BR2_BINFMT_FLAT
56	depends on !BR2_USE_WCHAR
57