Usually Linux distributions offer a meta package C/C++ Development or similar, which will install the required packages.
On a first glimpse this might look like confusing magics, but you can find an introduction in GNU Autoconf, Automake and Libtool aka The Goat Book. Appendix C will show you the Generated File Dependencies.
Another Intro is the Autotools Mythbuster.
For further reading see the respective manuals:
if they are not already installed on your machine.
Our flavour is with autogen.sh bootstrapping.
Changes on the Build System
If you change e.g. configure.ac you should also check, if e.g (FIXME: please complete this list!)
- README.* and Dependencies,
- packaging/gnucash.spec.in (used to build RPM Packages) or
need some adjustments.