[3.0] configure: detect Qt6 using QMake
This is similar to how it's done in VLC4 before python scripts were used.
If Qt5 is available Qt6 will not be used.
This allows building VLC 3.0 with Qt6, but it's not fully working. See !6812
Edited by Steve Lhomme