configure: autodetect support for quality flags