xref: /PHP-7.1/ext/tidy/config.w32 (revision 8a9e0312)
1// $Id$
2// vim:ft=javascript
3
4ARG_WITH("tidy", "TIDY support", "no");
5
6if (PHP_TIDY != "no") {
7	if (CHECK_LIB("libtidy_a.lib;libtidy.lib;tidy_a.lib;tidy.lib", "tidy", PHP_TIDY) &&
8			(
9				CHECK_HEADER_ADD_INCLUDE("tidy.h", "CFLAGS_TIDY") ||
10				CHECK_HEADER_ADD_INCLUDE("tidy/tidy.h", "CFLAGS_TIDY", null, null, true) ||
11				CHECK_HEADER_ADD_INCLUDE("libtidy/tidy.h", "CFLAGS_TIDY", null, null, true)
12			)) {
13
14		if (CHECK_HEADER_ADD_INCLUDE("tidybuffio.h", "CFLAGS_TIDY")) {
15			AC_DEFINE('HAVE_TIDYBUFFIO_H', 1, 'Have tidybuffio.h header file');
16		}
17
18		EXTENSION("tidy", "tidy.c");
19		AC_DEFINE('HAVE_TIDY', 1, 'Have TIDY library');
20		AC_DEFINE('HAVE_TIDYOPTGETDOC', 1, "tidy_get_opt_doc function")
21		ADD_FLAG('CFLAGS_TIDY', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');
22		if (!PHP_TIDY_SHARED) {
23			ADD_DEF_FILE("ext\\tidy\\php_tidy.def");
24		}
25	} else {
26		WARNING("tidy not enabled; libraries and headers not found");
27	}
28}
29