Meson: Rework the config.h generation
@xclaesse
Submitted by Xavier Claessens Link to original bug (#791486)
Description
I it annoying to keep that template file in sync and shouldn't be needed. Removing it breaks the build, we should investigate why.