mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
This syncs the installed sapi and extension headers on *nix and Windows systems by installing only what is intended outside of php-src. - ext/gd: without gd_arginfo.h and gd_compat.h - ext/hash: php_hash_joaat.h and php_hash_fnv.h added also on Windows installation; xxhash/xxhash.h added on both installations as it is included in php_hash_xxhash.h; Include path for xxhash.h changed to relative so the php_hash_xxhash.h can be included outside of php-src; Redundant include flags removed - ext/iconv: without iconv_arginfo.h - ext/mysqli: mysqli_mysqlnd.h was missing on Windows - ext/phar: php_phar.h was missing on Windows - ext/sodium: php_libsodium.h was missing on *nix - ext/xml: without xml_arginfo.h - sapi/cli: cli.h was missing on Windows Closes GH-13210 Closes GH-13213
30 lines
968 B
JavaScript
30 lines
968 B
JavaScript
// vim:ft=javascript
|
|
|
|
ARG_WITH("simplexml", "Simple XML support", "yes");
|
|
|
|
if (PHP_SIMPLEXML == "yes") {
|
|
if(PHP_LIBXML == "yes" &&
|
|
ADD_EXTENSION_DEP('simplexml', 'libxml') &&
|
|
CHECK_HEADER_ADD_INCLUDE("libxml/tree.h", "CFLAGS_SIMPLEXML", PHP_PHP_BUILD + "\\include\\libxml2")
|
|
) {
|
|
EXTENSION("simplexml", "simplexml.c");
|
|
AC_DEFINE("HAVE_SIMPLEXML", 1, "Simple XML support");
|
|
if (!PHP_SIMPLEXML_SHARED) {
|
|
ADD_FLAG("CFLAGS_SIMPLEXML", "/D LIBXML_STATIC");
|
|
} else {
|
|
if (!CHECK_LIB("libxml2.lib", "simplexml")) {
|
|
WARNING("simplexml support can't be enabled, libxml is not found")
|
|
}
|
|
}
|
|
|
|
if (!ADD_EXTENSION_DEP('simplexml', 'spl', true)) {
|
|
MESSAGE("\tSPL support in simplexml disabled");
|
|
}
|
|
ADD_FLAG("CFLAGS_SIMPLEXML", "/D PHP_SIMPLEXML_EXPORTS ");
|
|
PHP_INSTALL_HEADERS("ext/simplexml", "php_simplexml.h php_simplexml_exports.h");
|
|
} else {
|
|
PHP_SIMPLEXML = "no";
|
|
WARNING("simplexml not enabled; libraries and headers not found");
|
|
}
|
|
}
|