From f91af7f00a0738fa73a5eb88ae82248be5accdb0 Mon Sep 17 00:00:00 2001 From: iovar Date: Fri, 27 Apr 2007 03:16:38 +0000 Subject: fixed check for PYQT4 in configure.ac git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@315 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- qt-recordmydesktop/configure.ac | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'qt-recordmydesktop/configure.ac') diff --git a/qt-recordmydesktop/configure.ac b/qt-recordmydesktop/configure.ac index ca0bcb7..90afa58 100644 --- a/qt-recordmydesktop/configure.ac +++ b/qt-recordmydesktop/configure.ac @@ -38,21 +38,21 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext package name AM_GLIB_GNU_GETTEXT dnl check for pyqt -PKG_CHECK_MODULES(PYQT4, QtCore>= $QT4_REQ,,AC_MSG_ERROR(You need libQt4 >=4.2 and the appropriate development headers to proceed)) - +PKG_CHECK_MODULES(QtCore, [QtCore >= $QT4_REQ],,AC_MSG_ERROR(You need libQt4 >=4.2 and the appropriate development headers to proceed)) +PKG_CHECK_MODULES(QtGui, [QtGui >= $QT4_REQ],,AC_MSG_ERROR(You need libQt4 >=4.2 and the appropriate development headers to proceed)) export PYTHONPATH=$PYTHONPATH export PYQT4_VERSION=`python -c 'import PyQt4; from PyQt4 import QtCore; print QtCore.PYQT_VERSION_STR' 2>>/dev/null ` - if test x$PYQT4_VERSION == x; then AC_MSG_ERROR(You need PyQt4>=4.1 installed to procceed); fi - b=$(echo "$PYQT4_VERSION" | awk 'BEGIN{ FS="." } { print $1 "\n" $2 "\n" $3 }') c=($b) -PYQT4_MAJOR=${c[0]} -PYQT4_MINOR=${c[1]} + + +export PYQT4_MAJOR=${c[[0]]} +export PYQT4_MINOR=${c[[1]]} if test $PYQT4_MAJOR != 4; then AC_MSG_ERROR(PyQt4 Major version number not 4!!!); -- cgit v1.2.1