[Bug 244957] Apply gettext autotools workarounds conditionally