diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/xsl/config.w32 | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'ext/xsl/config.w32')
-rw-r--r-- | ext/xsl/config.w32 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/ext/xsl/config.w32 b/ext/xsl/config.w32 new file mode 100644 index 0000000..1b3864d --- /dev/null +++ b/ext/xsl/config.w32 @@ -0,0 +1,49 @@ +// $Id$ +// vim: ft=javascript + +ARG_WITH("xsl", "xsl support", "no"); + +if (PHP_XSL != "no") { + if (PHP_DOM == "yes" && PHP_LIBXML == "yes" + && ADD_EXTENSION_DEP('xsl', 'libxml') + && ADD_EXTENSION_DEP('xsl', 'dom')) { + var ext_xsl_lib_found = false; + var ext_exslt_lib_found = false; + + if (CHECK_LIB("libxslt_a.lib", "xsl", PHP_XSL)) { + ext_xsl_lib_found = true; + ADD_FLAG("CFLAGS_XSL", "/D LIBXSLT_STATIC "); + if (CHECK_LIB("libexslt_a.lib", "xsl", PHP_XSL)) { + ADD_FLAG("CFLAGS_XSL", "/D LIBEXSLT_STATIC "); + ext_exslt_lib_found = true; + } + } else if (CHECK_LIB("libxslt.lib", "xsl", PHP_XSL)) { + ext_xsl_lib_found = true; + if (CHECK_LIB("libexslt.lib", "xsl", PHP_XSL)) { + ext_exslt_lib_found = true; + } + } + + if (ext_xsl_lib_found && CHECK_HEADER_ADD_INCLUDE("libxslt\\xslt.h", "CFLAGS_XSL")) { + if (ext_exslt_lib_found) { + if (CHECK_HEADER_ADD_INCLUDE("libexslt\\exslt.h", "CFLAGS_XSL")) { + AC_DEFINE("HAVE_XSL_EXSLT", 1, ""); + } + } + EXTENSION("xsl", "php_xsl.c xsltprocessor.c", PHP_XSL_SHARED); + AC_DEFINE("HAVE_XSL", 1, "Define if xsl extension is enabled"); + if (! PHP_XSL_SHARED) { + ADD_FLAG("CFLAGS_XSL", "/D DOM_EXPORTS /D LIBXML_STATIC"); + } else { + if (PHP_DEBUG == "yes") { + ADD_FLAG("LDFLAGS_XSL", "/nodefaultlib:msvcrt"); + } + } + + } else { + WARNING("xsl not enabled; libraries and headers not found"); + } + } else { + WARNING("xsl not enabled; DOM extension required"); + } +} |