The bitcoinconsensus library exports the functions from
src/script/bitcoinconsensus.h:
- bitcoinconsensus_verify_script
- bitcoinconsensus_verify_script_with_amount
- bitcoinconsensus_version
This diff adds a facility to build (if required) and install a shared
library, independently of whether the library already exists as static and/or
shared.
Note that building with BUILD_SHARED_LIBS=ON set will fail and needs a
fix which is outside the scope of this diff (the failure is not related
to this diff).