]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed bug in test for Qt4.
authorBart Van Assche <bvanassche@acm.org>
Mon, 7 Jul 2008 18:50:39 +0000 (18:50 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 7 Jul 2008 18:50:39 +0000 (18:50 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8389

configure.in

index 4551c613e7ae84b6fc31d34e93b953be7880bb46..257ff933f3074985abdbdf8233c2ebfdf577d0fe 100644 (file)
@@ -1388,8 +1388,10 @@ AM_CONDITIONAL(BUILD_MPIWRAP_SEC, test x$ac_have_mpi2_sec = xyes)
 
 AC_MSG_CHECKING([for Qt4 core library])
 
-if grep -q -w '^#define HAVE_LIBQTCORE 1$' config.h \
-   && grep -q -w '^#define HAVE_QTCORE_QMUTEX 1$' config.h
+# The test below looks up some symbol definitions in the temporary file generated by the
+# configure script, namely confdefs.h.
+if grep -q -w '^#define HAVE_LIBQTCORE 1$' confdefs.h \
+   && grep -q -w '^#define HAVE_QTCORE_QMUTEX 1$' confdefs.h
 then
   ac_have_qtcore=yes
   AC_MSG_RESULT([yes])