build,qt: Fail check for Qt if moc wasn't found

* m4/qt5.m4, m4/qt6.m4: Perform build test only if moc was found.
--

If moc wasn't found but the build test (which doesn't require moc)
succeeded, then success was reported.
This commit is contained in:
Ingo Klöcker 2022-10-14 14:02:26 +02:00
parent 55e660ee94
commit 1792db5834
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,8 @@ AC_DEFUN([FIND_QT5],
fi
fi
AC_MSG_RESULT([$mocversion])
fi
if test "$have_qt5_libs" = "yes"; then
dnl Check that a binary can actually be build with this qt.
dnl pkg-config may be set up in a way that it looks also for libraries
dnl of the build system and not only for the host system. In that case

View File

@ -52,6 +52,8 @@ AC_DEFUN([FIND_QT6],
fi
fi
AC_MSG_RESULT([$mocversion])
fi
if test "$have_qt6_libs" = "yes"; then
dnl Check that a binary can actually be build with this qt.
dnl pkg-config may be set up in a way that it looks also for libraries
dnl of the build system and not only for the host system. In that case