@@ -286,6 +286,7 @@ check_enabled CXX DISCORD discord 'The C++ compiler is' false
286286check_enabled CXX QT ' Qt companion' ' The C++ compiler is' false
287287
288288if [ " $HAVE_QT " != ' no' ]; then
289+ _have_qt=$HAVE_QT
289290 if [ " $HAVE_CXX17 " = ' yes' ]; then
290291 check_pkgconf QT6CORE Qt6Core 6.2
291292 check_pkgconf QT6GUI Qt6Gui 6.2
@@ -296,22 +297,25 @@ if [ "$HAVE_QT" != 'no' ]; then
296297
297298 # pkg-config is needed to reliably find Qt6 libraries.
298299
299- check_enabled QT6CORE QT Qt ' Qt6Core is' true
300- check_enabled QT6GUI QT Qt ' Qt6GUI is' true
301- check_enabled QT6WIDGETS QT Qt ' Qt6Widgets is' true
302- check_enabled QT6CONCURRENT QT Qt ' Qt6Concurrent is' true
303- check_enabled QT6NETWORK QT Qt ' Qt6Network is' true
304- # check_enabled QT6WEBENGINE QT Qt 'Qt6Webengine is' true
305-
306- if [ " $HAVE_QT " != yes ]; then
307- die : ' Notice: Qt support disabled, required libraries were not found.'
308- else
300+ check_enabled QT6CORE QT Qt ' Qt6Core is' user
301+ check_enabled QT6GUI QT Qt ' Qt6GUI is' user
302+ check_enabled QT6WIDGETS QT Qt ' Qt6Widgets is' user
303+ check_enabled QT6CONCURRENT QT Qt ' Qt6Concurrent is' user
304+ check_enabled QT6NETWORK QT Qt ' Qt6Network is' user
305+ # check_enabled QT6WEBENGINE QT Qt 'Qt6Webengine is' user
306+
307+ if [ " $HAVE_QT6CORE " == ' yes' ] && \
308+ [ " $HAVE_QT6GUI " == ' yes' ] && \
309+ [ " $HAVE_QT6WIDGETS " == ' yes' ] && \
310+ [ " $HAVE_QT6CONCURRENT " == ' yes' ] && \
311+ [ " $HAVE_QT6NETWORK " == ' yes' ]
312+ then
309313 HAVE_QT6=' yes'
310314 add_define MAKEFILE HAVE_QT6 1
311315 fi
312316 fi
313317 if [ " $HAVE_QT6 " != ' yes' ]; then
314- HAVE_QT=' auto '
318+ HAVE_QT=$_have_qt
315319 check_pkgconf QT5CORE Qt5Core 5.2
316320 check_pkgconf QT5GUI Qt5Gui 5.2
317321 check_pkgconf QT5WIDGETS Qt5Widgets 5.2
@@ -327,10 +331,10 @@ if [ "$HAVE_QT" != 'no' ]; then
327331 check_enabled QT5CONCURRENT QT Qt ' Qt5Concurrent is' true
328332 check_enabled QT5NETWORK QT Qt ' Qt5Network is' true
329333 # check_enabled QT5WEBENGINE QT Qt 'Qt5Webengine is' true
334+ fi
330335
331- if [ " $HAVE_QT " != yes ]; then
332- die : ' Notice: Qt support disabled, required libraries were not found.'
333- fi
336+ if [ " $HAVE_QT " != yes ]; then
337+ die : ' Notice: Qt support disabled, required libraries were not found.'
334338 fi
335339
336340 check_pkgconf OPENSSL openssl 1.0.0
0 commit comments