Replaces #11222.
Dropped the last commit, and converted e90d91c (now 06abcbf) into a scripted-diff using @theuni's suggestion.
Use '<QtCore/qconfig.h> and '<QtCore/qglobal.h>' for testing QT_VERSION.
This makes the tests work with both Qt4 and Qt5, even if '-fPIC' or '-fPIE'
is not used (the compiler might choke otherwise if QT_REDUCE_RELOCATIONS is
active).
Add double qoutes to string tests where arguments could (theoretically)
contain spaces.
Remove double quotes where not necessary.
-BEGIN VERIFY SCRIPT-
sed -iE -e 's/"x\(yes\|no\|auto\)\?"/x\1/g' -e 's/test \(x\$[^ ]*\)/test "\1"/g' build-aux/m4/bitcoin_qt.m4
-END VERIFY SCRIPT-
326 | ]])], 327 | [bitcoin_cv_static_qt=yes], 328 | [bitcoin_cv_static_qt=no]) 329 | ]) 330 | - if test xbitcoin_cv_static_qt = xyes; then 331 | + if test "x$bitcoin_cv_static_qt" = xyes; then
Nah, this is ok.
utACK 06abcbf9bacf7db8a64a969578b8bfe3322f2949
Thanks for following up here!