xref: /PHP-7.3/ext/ldap/config.w32 (revision 1c850bfc)
1// vim:ft=javascript
2
3ARG_WITH("ldap", "LDAP support", "no");
4
5if (PHP_LDAP != "no") {
6
7	if (CHECK_HEADER_ADD_INCLUDE("ldap.h", "CFLAGS_LDAP", PHP_PHP_BUILD + "\\include\\openldap;" + PHP_PHP_BUILD + "\\openldap\\include;" + PHP_LDAP) &&
8			CHECK_HEADER_ADD_INCLUDE("lber.h", "CFLAGS_LDAP", PHP_PHP_BUILD + "\\include\\openldap;" + PHP_PHP_BUILD + "\\openldap\\include;" + PHP_LDAP) &&
9			SETUP_OPENSSL("ldap", PHP_LDAP) > 0 &&
10			CHECK_LIB("oldap32_a.lib", "ldap", PHP_LDAP) &&
11			CHECK_LIB("olber32_a.lib", "ldap", PHP_LDAP)&&
12			CHECK_LIB("libsasl.lib", "ldap", PHP_LDAP)) {
13		EXTENSION('ldap', 'ldap.c');
14
15		AC_DEFINE('HAVE_LDAP_PARSE_RESULT', 1);
16		AC_DEFINE('HAVE_LDAP_PARSE_REFERENCE', 1);
17		AC_DEFINE('HAVE_LDAP_START_TLS_S', 1);
18		AC_DEFINE('HAVE_LDAP', 1);
19		AC_DEFINE('HAVE_LDAP_SASL', 1);
20		AC_DEFINE('HAVE_LDAP_SASL_SASL_H', 1);
21		AC_DEFINE('LDAP_DEPRECATED', 1);
22		AC_DEFINE('HAVE_LDAP_CONTROL_FIND', 1);
23		AC_DEFINE('HAVE_LDAP_PARSE_EXTENDED_RESULT', 1);
24		AC_DEFINE('HAVE_LDAP_EXTENDED_OPERATION_S', 1);
25		AC_DEFINE('HAVE_LDAP_PASSWD', 1);
26		AC_DEFINE('HAVE_LDAP_WHOAMI_S', 1);
27		AC_DEFINE('HAVE_LDAP_REFRESH_S', 1);
28		AC_DEFINE('HAVE_LDAP_EXTENDED_OPERATION', 1);
29
30	} else {
31		WARNING("ldap not enabled; libraries and headers not found");
32	}
33}
34