[libvirt] [PATCH 1/2] build: move readline check into its own macro