[wip][patch] use qmake with autoconf for qt5 too
Enrico Forestieri
forenr at lyx.org
Mon Jun 17 21:06:48 UTC 2024
On Mon, Jun 17, 2024 at 10:21:10PM +0200, Enrico Forestieri wrote:
>On Mon, Jun 17, 2024 at 05:07:56PM +0100, José Matos wrote:
>>On Mon, 2024-06-17 at 17:02 +0100, José Matos wrote:
>>>Slightly related to your message:
>>>
>>>When configuring autools with qt6 I get these (seemingly harmless)
>>>warnings.
>
>Yep, these warnings are harmless.
>
>>@Jean-Marc note that these warning, for qt6, happened before your
>>current patch. That is why I wrote this is slightly related to this
>>patch.
>
>That warning was added in Qt6 some time ago, but nothing was changed
>in the locale handling. The web is full with reports about it and I
>don't understand to what it is due. Seemingly, it occurs when calling
>qmake within a script and does not occur when calling it from command
>line.
Anyway, the attached patch avoids the warnings for me.
--
Enrico
-------------- next part --------------
diff --git a/config/qt.m4 b/config/qt.m4
index 14ec4e3f9f..6a455f9134 100644
--- a/config/qt.m4
+++ b/config/qt.m4
@@ -389,6 +389,10 @@ dnl Use first suitable qmake in PATH
qt_major=5
fi
AC_CHECK_PROGS([QT_QMAKE], [qmake-qt$qt_major qmake$qt_major qmake], [], $PATH)
+ case ${host} in
+ *mingw*) ;;
+ *) QT_QMAKE="env LC_ALL=C.UTF-8 $QT_QMAKE" ;;
+ esac
AC_MSG_CHECKING([for Qt$qt_major])
qtver=`$QT_QMAKE -v | grep -o "Qt version ."`
if test "$qtver" = "Qt version $qt_major"; then
More information about the lyx-devel
mailing list