1 # Checking for pkg-config. If found, check for QtCore and query pkg-config
2 # for its exec-prefix variable.
5 # Sets the QT_QMAKE variable to the path of Qt5 qmake if found.
6 # --------------------------------------
8 [PKG_CHECK_EXISTS([Qt5Core >= 5.9.0],
9 [PKG_CHECK_VAR(QT_QMAKE,
14 AS_IF([test -f "$QT_QMAKE/qmake"],
15 [QT_QMAKE="$QT_QMAKE/qmake"],
16 [AS_IF([test -f "$QT_QMAKE/qmake-qt5"],
17 [QT_QMAKE="$QT_QMAKE/qmake-qt5"],
21 AC_MSG_CHECKING([for Qt5 qmake >= 5.9.0])
22 AS_IF([test "x$QT_QMAKE" != "x"],
23 [AC_MSG_RESULT([$QT_QMAKE])],
24 [AC_MSG_RESULT([not found])]
29 # Sets the HAVE_QTDBUS variable to true or false.
30 # --------------------------------------
31 AC_DEFUN([FIND_QTDBUS],
32 [AC_MSG_CHECKING([for Qt5DBus >= 5.9.0])
33 PKG_CHECK_EXISTS([Qt5DBus >= 5.9.0],
34 [AC_MSG_RESULT([found])
36 [AC_MSG_RESULT([not found])
40 # DETECT_CPP14_PROGRAM()
41 # Detects if at least C++14 mode is enabled.
42 # --------------------------------------
43 AC_DEFUN([DETECT_CPP14_PROGRAM],
46 #error "This is not a C++ compiler"
47 #elif __cplusplus < 201402L
48 #error "This is not a C++14 compiler"