Trying to build openldap with msys and mingw using distribution from http://nuwen.net/mingw.html The problem is the configure script can not find regex library and provides following output:
checking for regex.h... yes checking for library containing regfree... no configure: error: POSIX regex required.
But the distribution contains precompiled pcre library and regex.h contains regfree function declaration. What is going wrong?