Searches $PATH and queries qmake for Qt include files, libraries and Qt binary utilities. The macro only supports Qt5 or later.
The following shell variable is set to either "yes" or "no":
Additionally, the following variables are exported:
QT_CXXFLAGS QT_LIBS QT_MOC QT_UIC QT_RCC QT_LRELEASE QT_LUPDATE QT_DIR
which respectively contain an "-I" flag pointing to the Qt include directory, link flags necessary to link with Qt and X, the full path to the meta object compiler and the user interface compiler both, and finally the variable QTDIR as Qt likes to see it defined.
Example lines for Makefile.in:
CXXFLAGS = @QT_CXXFLAGS@ MOC = @QT_MOC@
After the variables have been set, a trial compile and link is performed to check the correct functioning of the meta object compiler. This test may fail when the different detected elements stem from different releases of the Qt framework. In that case, an error message is emitted and configure stops.
No common variables such as $LIBS or $CFLAGS are polluted.
Download the latest version of ax_have_qt.m4 or browse the macro’s revision history.
Copyright © 2008 Bastiaan Veelo Bastiaan@Veelo.net
Copyright © 2014 Alex Henrie email@example.com
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.