Model the pcre checks for the autotools build system to be similar as that used in the cmake build system.