build: Partial Autotools cleanup

Merged Piotr Drąg requested to merge wip/piotrdrag/autotools-cleanup into master

These were mildly annoying me. Feel free to ignore/close this MR if you feel it’s too early.

doc/ and plugins/ were not touched.

Merge request reports