- libbz2 uses the Pascal calling convention (WINAPI) for the functions
under Win32
- The standard autoconf AC_CHECK_LIB fails to include "bzlib.h",
therefore missing the function definition
- The compiler thus, generates a "C" signature for the test function
- The linker fails to find the "C" function
- PCRE will fail to configure if asked to do so against libbz2
Solution:
- Replace the AC_CHECK_LIB test with a custom test (see below)