2007-07-08 Alex Roitman <shura@gramps-project.org>

* configure.in: Add check for python-cairo>=1.2.6.



svn: r8710
This commit is contained in:
Alex Roitman 2007-07-09 03:55:44 +00:00
parent 0fa16f7bd2
commit b836a61cff
2 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2007-07-08 Alex Roitman <shura@gramps-project.org>
* configure.in: Add check for python-cairo>=1.2.6.
2007-07-08 Don Allingham <don@gramps-project.org> 2007-07-08 Don Allingham <don@gramps-project.org>
* src/DbManager.py: Add support for Thunar, which stores the DND * src/DbManager.py: Add support for Thunar, which stores the DND
information in a different area (and probably a more correct area) than information in a different area (and probably a more correct area) than

View File

@ -97,6 +97,33 @@ then
fi fi
AC_MSG_RESULT($has_pygtk) AC_MSG_RESULT($has_pygtk)
AC_MSG_CHECKING(Python bindings for cairo (python-cairo>=1.2.6))
cat > conftest.py <<EOF
$pygtk_require
try:
import cairo
version = cairo.version_info
if version >= (1,2,6):
print_version = '.'.join([[str(i) for i in version]])
out(print_version)
else:
out("NO")
except ImportError:
out("NO")
except AttributeError:
out("NO")
EOF
$PYTHON conftest.py
has_cairo=`cat conftest.out`
rm -f conftest.out conftest.py
if test NO = "$has_cairo"
then
AC_MSG_ERROR([
**** The python bindings for cairo (python-cairo>=1.2.6) could not be found.])
fi
AC_MSG_RESULT($has_cairo)
AC_MSG_CHECKING(Python bindings for gnome) AC_MSG_CHECKING(Python bindings for gnome)
cat > conftest.py <<EOF cat > conftest.py <<EOF
$pygtk_require $pygtk_require