The w32api currently available on MinGW and Cygwin is not complete, and
lacks the needed AD functions for mswin_check_ad_group.
This add to config.test the check for the availability of the needed functions.
#!/bin/sh
-if [ -f /usr/include/w32api/windows.h ]; then
- exit 0
+if [ -f /usr/include/w32api/dsrole.h ]; then
+ if grep -q DsRoleGetPrimaryDomainInformation /usr/include/w32api/dsrole.h; then
+ exit 0
+ fi
fi
-if [ -f /usr/include/windows.h ]; then
- exit 0
+if [ -f /usr/include/dsrole.h ]; then
+ if grep -q DsRoleGetPrimaryDomainInformation /usr/include/dsrole.h; then
+ exit 0
+ fi
fi
exit 1