Only pass --disable-dependency-tracking to packages that understand it
Summary:
By blanket passing --disable-dependency-tracking to all depends packages we end up with warnings (i.e in bdb or freetype) like: configure: WARNING: unrecognized options: --disable-dependency-tracking Instead, only pass it to packages that actually understand it. [...] This PR also adds --enable-option-checking as a configure option to all applicable packages.
Backport of core PR16949.
Test Plan: Run the Gitian builds.
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D5660