require cmake check before autotools dist

This doesn't cost much, and I only have to check
"cmake; make dist" on every platform to check everything.