On Thu, 13 Jul 2023 at 14:20, suzuki toshiya wrote: > I would try to let AX_HAVE_QT() macro to find appropriate set: > > https://www.gnu.org/software/autoconf-archive/ax_have_qt.html > > In the case of Debian (and Ubuntu), qtchooser might be the unified > interface to switch 4, 5, and maybe 6 in future. It seems that > AX_HAVE_QT() does not check it, because the last update of AX_HAVE_QT > was 2014 X-p. >
The pkg-config interface should take care of everything easily. Debian and Ubuntu have the relevant qt5 pkg-config files. Other distributions should too.