1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-01 18:55:52 +00:00
qBittorrent/m4/qbittorrent.m4

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-04-19 19:47:08 +00:00
# Checking for pkg-config. If found, check for QtCore and query pkg-config
# for its exec-prefix variable.
# FIND_QT5()
# Sets the QT_QMAKE variable to the path of Qt5 qmake if found.
# --------------------------------------
AC_DEFUN([FIND_QT5],
2017-01-19 12:31:35 +00:00
[PKG_CHECK_EXISTS([Qt5Core >= 5.5.1],
2014-04-19 19:47:08 +00:00
[PKG_CHECK_VAR(QT_QMAKE,
2017-01-19 12:31:35 +00:00
[Qt5Core >= 5.5.1],
2014-11-26 13:26:12 +00:00
[host_bins])
2014-04-19 19:47:08 +00:00
])
2016-01-20 23:26:55 +00:00
AS_IF([test -f "$QT_QMAKE/qmake"],
[QT_QMAKE="$QT_QMAKE/qmake"],
[AS_IF([test -f "$QT_QMAKE/qmake-qt5"],
[QT_QMAKE="$QT_QMAKE/qmake-qt5"],
[QT_QMAKE=""])
])
2014-11-26 13:28:07 +00:00
2017-01-19 12:31:35 +00:00
AC_MSG_CHECKING([for Qt5 qmake >= 5.5.1])
2014-04-19 19:47:08 +00:00
AS_IF([test "x$QT_QMAKE" != "x"],
[AC_MSG_RESULT([$QT_QMAKE])],
[AC_MSG_RESULT([not found])]
)
])
# FIND_QTDBUS()
# Sets the HAVE_QTDBUS variable to true or false.
# --------------------------------------
AC_DEFUN([FIND_QTDBUS],
2017-01-19 12:31:35 +00:00
[AC_MSG_CHECKING([for Qt5DBus >= 5.5.1])
PKG_CHECK_EXISTS([Qt5DBus >= 5.5.1],
2014-04-19 19:47:08 +00:00
[AC_MSG_RESULT([found])
HAVE_QTDBUS=[true]],
[AC_MSG_RESULT([not found])
HAVE_QTDBUS=[false]])
])