xref: /PHP-5.6/ext/tidy/config.w32 (revision c1ddd7be)
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", 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		EXTENSION("tidy", "tidy.c");
14		AC_DEFINE('HAVE_TIDY', 1, 'Have TIDY library');
15		if (!PHP_TIDY_SHARED) {
16			ADD_DEF_FILE("ext\\tidy\\php_tidy.def");
17		}
18	} else {
19		WARNING("tidy not enabled; libraries and headers not found");
20	}
21}
22
23