[multilib] Add support to the autoconf build to substitute