Fixes #17506. Second attempt after PR: #29457 (closed)
This PR fixes the gen-manpages.py
script to check the build options and exit when there are missing components. It also adds an option to --skip-build-options-check
The PR also addresses the issues raised on PR: #29457:
- #29457 (review) - the default behaviors is fail
- #29457 (comment) - by adding --skip-build-options-check
- #29457#pullrequestreview-2433974717 - The PR uses builddir/src/bitcoin-build-config.h
to check for HAVE_SYSTEM
option and builddir/test/config.ini
for the rest as they are only available there respectively