[libvirt] [PATCHv3 6/6] build: add syntax check for proper flags use