build: Check for dependency 'help2man'
Check for dependency 'help2man' and give a error message with hint on how to fix build issue when missing.
Build error before:
% ninja
[86/174] Generating man/bitcoind.1
FAILED: doc/man/bitcoind.1 /Users/dagurval/bitcoin-cash-node/build/doc/man/bitcoind.1
cd /Users/dagurval/bitcoin-cash-node/build/doc/man && ./gen-doc-man.sh bitcoind
./gen-doc-man.sh: line 23: help2man: command not found
ninja: build stopped: subcommand failed.
Build error after:
CMake Error at doc/CMakeLists.txt:36 (message):
Failed to find the program 'help2man' required for building manpages.
Please make sure that it is installed and reachable through the system
PATH. To disable manpages, add cmake build option '-DENABLE_MAN=OFF'.
Edited by Dagur Valberg Johannsson