More serious side of this: Other parts of the code assume that EMERGENCY_VERSION information is correctly available from fc_config.h, but it's not in case of Meson based builds.
Reply To cazfi
More serious side of this: Other parts of the code assume that EMERGENCY_VERSION information is correctly available from fc_config.h, but it's not in case of Meson based builds.
This is actually avoided by having meson generated fc_config.h to include version_gen.h.
So, maybe all the issues are currently on autotools side (but fixing those might still require touching meson side too, to not break it)
This seems to break installer_cross / autotools build quite badly. Have to investigate. Seems like there's a dormant issue that version_gen.h is not generated the way it should. As this fix makes the build to rely more on version_gen.h, those issues unearth.
Generated version_gen.h might unconditionally redefine EMERGENCY_VERSION. Autotools based builds do it on configure too.