[wip][patch] use qmake with autoconf for qt5 too

Enrico Forestieri forenr at lyx.org
Sat Jun 15 20:59:06 UTC 2024


On Fri, Jun 14, 2024 at 08:09:00PM +0200, Jean-Marc Lasgouttes wrote:
> 
>This seems to work, although for some reason it does not add x11extras 
>here.

Actually, x11extras is detected but you forgot about HAVE_QT5_X11_EXTRAS.

Applying the attached patch on top of yours does the trick.

-- 
Enrico
-------------- next part --------------
Index: ./config/qt.m4
===================================================================
--- ./config/qt.m4.old	2024-06-15 22:02:20.167253884 +0200
+++ ./config/qt.m4	2024-06-15 22:39:52.334177611 +0200
@@ -459,6 +459,11 @@
 		    if test -n "$QT_MISSING"; then
 			    AC_MSG_ERROR([Qt$qt_major module(s) $QT_MISSING not found.])
 		    fi
+		    QT5_X11_EXTRAS=`cd $lyx_test_qt_dir; make -s -f $lyx_test_qt_mak DEFINES | grep QT_X11EXTRAS_LIB`
+		    if test -n "$QT5_X11_EXTRAS"; then
+			AC_DEFINE(HAVE_QT5_X11_EXTRAS, 1,
+				[Define if you have the Qt5X11Extras module])
+		    fi
 		    AC_MSG_RESULT($QTLIB_VERSION)
 		    AC_SUBST(QT_INCLUDES)
 		    AC_SUBST(QT_LDFLAGS)


More information about the lyx-devel mailing list