Do you have a bit more context for this? From the log, I can't see what the actual issue is. Is it an autoconf check that fails or an actual compilation issue?
If it's a check, which one?If it's actually in the source, the error doesn't make any sense. Compilation is done without -Werror, and the deprecation message is only a warning.