For me, installing check wasn't enough. check-devel was required (Fedora 19)