2013-10-18 14:23:22 +00:00
|
|
|
diff -up poppler-0.24.2/configure.ac.mocversiongrep poppler-0.24.2/configure.ac
|
2013-10-18 14:58:53 +00:00
|
|
|
--- poppler-0.24.2/configure.ac.mocversiongrep 2013-10-18 09:51:24.223114884 -0500
|
|
|
|
+++ poppler-0.24.2/configure.ac 2013-10-18 09:54:33.408681067 -0500
|
2014-05-13 11:53:11 +00:00
|
|
|
@@ -646,20 +646,20 @@ if test x$enable_poppler_qt5 = xyes; the
|
2013-10-18 14:23:22 +00:00
|
|
|
AC_CHECK_TOOL(MOCQT5, moc)
|
|
|
|
AC_MSG_CHECKING([for Qt5 moc])
|
|
|
|
mocversion=`$MOCQT5 -v 2>&1`
|
2014-05-13 11:53:11 +00:00
|
|
|
- mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
|
2013-10-18 14:58:53 +00:00
|
|
|
+ mocversiongrep=`echo $mocversion | grep " 5\."`
|
2013-10-18 14:23:22 +00:00
|
|
|
if test x"$mocversiongrep" != x"$mocversion"; then
|
|
|
|
AC_MSG_RESULT([no])
|
|
|
|
# moc was not the qt5 one, try with moc-qt5
|
|
|
|
AC_CHECK_TOOL(MOCQT52, moc-qt5)
|
|
|
|
AC_MSG_CHECKING([for Qt5 moc-qt5])
|
|
|
|
mocversion=`$MOCQT52 -v 2>&1`
|
2014-07-30 15:03:45 +00:00
|
|
|
- mocversiongrep=`echo $mocversion | grep "Qt 5\|moc-qt5 5\|moc 5"`
|
2013-10-18 14:58:53 +00:00
|
|
|
+ mocversiongrep=`echo $mocversion | grep " 5\."`
|
2013-10-18 14:23:22 +00:00
|
|
|
if test x"$mocversiongrep" != x"$mocversion"; then
|
|
|
|
AC_CHECK_TOOL(QTCHOOSER, qtchooser)
|
|
|
|
AC_MSG_CHECKING([for qtchooser])
|
|
|
|
qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
|
|
|
|
mocversion=`$qt5tooldir/moc -v 2>&1`
|
2014-05-13 11:53:11 +00:00
|
|
|
- mocversiongrep=`echo $mocversion | grep "Qt 5\|moc 5"`
|
2013-10-18 14:58:53 +00:00
|
|
|
+ mocversiongrep=`echo $mocversion | grep " 5\."`
|
2013-10-18 14:23:22 +00:00
|
|
|
if test x"$mocversiongrep" != x"$mocversion"; then
|
|
|
|
# no valid moc found
|
|
|
|
enable_poppler_qt5=no;
|