build: Update to modern m4/ usage

This fixes jhbuild.

https://bugzilla.gnome.org/show_bug.cgi?id=711306