Hmm, suspect this has something to do with it:
$ grep ldap config.log configure:7155: checking ldap.h usability conftest.c:72:18: ldap.h: No such file or directory | #include <ldap.h> configure:7199: checking ldap.h presence conftest.c:38:18: ldap.h: No such file or directory | #include <ldap.h> configure:7270: checking for ldap.h config.status:1086: creating dlls/wldap32/Makefile ac_cv_header_ldap_h=no