This PR makes bitcoin_qt.m4
to use pkg-config
for all hosts and removes non-pkg-config paths from it. This is a step towards the idea which was clear stated by Cory Fields:
I believe the consensus is to treat Windows like the others and require pkg-config across the board. We can drop all of the non-pkg-config paths, and simply AC_REQUIRE(PKG_PROG_PKG_CONFIG)
There are two unsolved problems with this PR. If depends is built with DEBUG=1
the configure
script fails to pickup Qt:
- for macOS host (similar to, but not the same as #16391)
- for Windows host (regression)
The fix is on its way submitted in #18298 (as a followup).
Also this PR picks some small improvements from #17820.