Got that first trying to build 12.2.0 on Fedora 39 (beta):
config.status: creating t/wrap/automake-1.15
GEN bin/automake
GEN bin/aclocal
GEN t/ax/shell-no-trail-bslash
GEN t/ax/cc-no-c-o
GEN runtest
GEN doc/aclocal.1
GEN doc/automake.1
GEN lib/Automake/Config.pm
GEN doc/aclocal-1.15.1
help2man: can't get `--help' info from aclocal-1.15
Try `--no-discard-stderr' if option outputs to stderr
make: *** [Makefile:3687: doc/aclocal-1.15.1] Error 2
Now trying to install help2man that was not installed.