From babee5fe38026e5b6210fa381aace3a19a89785f Mon Sep 17 00:00:00 2001 From: iovar Date: Fri, 27 Apr 2007 02:45:30 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r312, which included commits to RCS files with non-trunk default branches. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@313 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- qt-recordmydesktop/configure.ac | 72 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 qt-recordmydesktop/configure.ac (limited to 'qt-recordmydesktop/configure.ac') diff --git a/qt-recordmydesktop/configure.ac b/qt-recordmydesktop/configure.ac new file mode 100644 index 0000000..ca0bcb7 --- /dev/null +++ b/qt-recordmydesktop/configure.ac @@ -0,0 +1,72 @@ +AC_PREREQ(2.59) +AC_INIT(src/qt-recordMyDesktop) + +AM_INIT_AUTOMAKE(qt-recordmydesktop, 0.1) + +AS_AC_EXPAND(LIBDIR, $libdir) +AC_MSG_NOTICE(Storing library files in $LIBDIR) +AC_SUBST(PYQT4_REQ, 4.1) +AC_SUBST(QT4_REQ, 4.2) + +#The following test is needed for the expansion bellow +if test "x$prefix" == "xNONE"; then + export prefix="/usr/local/" +else + echo "prefix set to $prefix" +fi + +AS_AC_EXPAND(PREFIX,$prefix) + +AS_AC_EXPAND(DATADIR, "$datadir") +AC_MSG_NOTICE(Storing data files in $DATADIR) + +AS_AC_EXPAND(SYSCONFDIR, $sysconfdir) +AC_MSG_NOTICE(Storing configuration files in $SYSCONFDIR) + +AS_AC_EXPAND(LOCALSTATEDIR, $localstatedir) +AC_MSG_NOTICE(Using localstatedir $LOCALSTATEDIR) + +dnl check for python +AM_PATH_PYTHON(2.3) + +AS_AC_EXPAND(PYTHONDIR, $pythondir) +AC_MSG_NOTICE(Using pythondir $PYTHONDIR) + +GETTEXT_PACKAGE=qt-recordMyDesktop +AC_SUBST(GETTEXT_PACKAGE) +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)) + + +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]} + +if test $PYQT4_MAJOR != 4; then + AC_MSG_ERROR(PyQt4 Major version number not 4!!!); +fi + +if test $PYQT4_MINOR -lt 1; then + AC_MSG_ERROR(You need PyQt4>=4.1 installed to procceed + (earlier version found installed)); +fi + + +AC_CONFIG_FILES([Makefile + src/Makefile + src/rmdConfig.py + po/Makefile.in + m4/Makefile]) +AC_OUTPUT -- cgit v1.2.1