[poppler] configure.ac

Albert Astals Cid aacid at kemper.freedesktop.org
Sun Feb 12 14:17:49 PST 2012


 configure.ac |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 9250449aaa279840d789b3a7cef75d06a0fd88e7
Author: Hib Eris <hib at hiberis.nl>
Date:   Sun Feb 12 23:16:41 2012 +0100

    Improve moc detection when cross compiling

diff --git a/configure.ac b/configure.ac
index 3ab6609..7f19f07 100644
--- a/configure.ac
+++ b/configure.ac
@@ -508,13 +508,15 @@ AC_SUBST(POPPLER_QT4_LIBS)
 AC_SUBST(POPPLER_QT4_TEST_LIBS)
 
 if test x$enable_poppler_qt4 = xyes; then
+  AC_CHECK_TOOL(MOCQT4, moc)
   AC_MSG_CHECKING([for Qt4 moc])
-  MOCQT4=`which moc`
   mocversion=`$MOCQT4 -v 2>&1`
   mocversiongrep=`echo $mocversion | grep "Qt 4"`
   if test x"$mocversiongrep" != x"$mocversion"; then
+    AC_MSG_RESULT([no])
     # moc was not the qt4 one, try with moc-qt4
-    MOCQT4=`which moc-qt4`
+    AC_CHECK_TOOL(MOCQT4, moc-qt4)
+    AC_MSG_CHECKING([for Qt4 moc-qt4])
     mocversion=`$MOCQT4 -v 2>&1`
     mocversiongrep=`echo $mocversion | grep "Qt 4"`
     if test x"$mocversiongrep" != x"$mocversion"; then


More information about the poppler mailing list