From b54169282394bb4e839fd1875a10c53ca745d78a Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Tue, 7 Feb 2017 11:29:30 +0100 Subject: [PATCH] Fix configuring for Qt 5.8 They moved the QT_QPA_DEFAULT_PLATFORM_NAME definition to the newly introduced qtgui-config.h header. This fix is also necessary for cmake, but I don't know how to do it. It would be simply a matter of using QtGui/qtgui-config.h instead of QtCore/qconfig.h, if QtGui/qtgui-config.h exists. --- config/qt4.m4 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/qt4.m4 b/config/qt4.m4 index 2f5f775632..1cf557d637 100644 --- a/config/qt4.m4 +++ b/config/qt4.m4 @@ -179,11 +179,14 @@ AC_DEFUN([QT_DO_IT_ALL], ]) save_CPPFLAGS=$CPPFLAGS - AC_MSG_CHECKING([whether Qt uses the X Window system]) CPPFLAGS="$save_CPPFLAGS $QT_CORE_INCLUDES" + AC_CHECK_HEADER(QtGui/qtgui-config.h, + [lyx_qt5_config=QtGui/qtgui-config.h], + [lyx_qt5_config=qconfig.h],[-]) + AC_MSG_CHECKING([whether Qt uses the X Window system]) if test x$USE_QT5 = xyes ; then AC_EGREP_CPP(xcb, - [#include + [#include <$lyx_qt5_config> QT_QPA_DEFAULT_PLATFORM_NAME], [AC_MSG_RESULT(yes) AC_DEFINE(QPA_XCB, 1, [Define if Qt uses the X Window System])], -- 2.39.2