configure: Extend check for broken -Wdocumentation