Removing unused m4 files

There are a ton of autoconf macros that we imported from PECOS
m4/common/, but we don't actually need most of them.

I don't think there are any removals of macros we actually use here (and "make check" with optional stuff enabled still passes for me) but this is a sweeping enough change that I'd be happy if people wanted to look at it before merging.