Return to config.w32 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / ldap |
1.1 ! misho 1: // $Id: config.w32 301590 2010-07-26 22:28:38Z pajoye $ ! 2: // vim:ft=javascript ! 3: ! 4: ARG_WITH("ldap", "LDAP support", "no"); ! 5: ! 6: if (PHP_LDAP != "no") { ! 7: ! 8: if (CHECK_HEADER_ADD_INCLUDE("ldap.h", "CFLAGS_LDAP", PHP_PHP_BUILD + "\\include\\openldap;" + PHP_PHP_BUILD + "\\openldap\\include;" + PHP_LDAP) && ! 9: CHECK_HEADER_ADD_INCLUDE("lber.h", "CFLAGS_LDAP", PHP_PHP_BUILD + "\\include\\openldap;" + PHP_PHP_BUILD + "\\openldap\\include;" + PHP_LDAP) ! 10: && ! 11: CHECK_LIB("ssleay32.lib", "ldap", PHP_LDAP) && ! 12: CHECK_LIB("libeay32.lib", "ldap", PHP_LDAP) && ! 13: CHECK_LIB("oldap32_a.lib", "ldap", PHP_LDAP) && ! 14: CHECK_LIB("olber32_a.lib", "ldap", PHP_LDAP) ! 15: ) { ! 16: if (CHECK_LIB("libsasl.lib", "ldap", PHP_LDAP)) { ! 17: AC_DEFINE('HAVE_LDAP_SASL', 1); ! 18: AC_DEFINE('HAVE_LDAP_SASL_SASL_H', 1); ! 19: PHP_LDAP = 1; ! 20: } ! 21: EXTENSION('ldap', 'ldap.c'); ! 22: ! 23: AC_DEFINE('HAVE_LDAP_PARSE_RESULT', 1); ! 24: AC_DEFINE('HAVE_LDAP_PARSE_REFERENCE', 1); ! 25: AC_DEFINE('HAVE_LDAP_START_TLS_S', 1); ! 26: AC_DEFINE('HAVE_LDAP', 1); ! 27: AC_DEFINE('LDAP_DEPRECATED', 1); ! 28: ! 29: } else { ! 30: WARNING("ldap not enabled; libraries and headers not found"); ! 31: } ! 32: } ! 33: