From 1a44982ab0c64d3bc7793f1ca6186c8df8e30f56 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 19 Aug 2004 03:33:11 +0000 Subject: [PATCH] * configure.in: Check for pygtk instead of pygtk-dev. * src/accent.py: Replace unknown chars with "?". svn: r3434 --- gramps2/ChangeLog | 4 ++++ gramps2/configure.in | 44 +++++++++++++++++++++++++++++++++++++------ gramps2/src/accent.py | 6 +++--- 3 files changed, 45 insertions(+), 9 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 3185a6baa..b0259c623 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2004-08-18 Alex Roitman + * configure.in: Check for pygtk instead of pygtk-dev. + * src/accent.py: Replace unknown chars with "?". + 2004-08-18 Don Allingham * src/accent.py: provide sorting on i18n characters without accents diff --git a/gramps2/configure.in b/gramps2/configure.in index e88f1fbb7..7a552b62a 100644 --- a/gramps2/configure.in +++ b/gramps2/configure.in @@ -1,3 +1,5 @@ +dnl $Id$ + dnl Process this file with autoconf to produce a configure script. dnl May need to run automake && aclocal first @@ -18,9 +20,18 @@ AM_GCONF_SOURCE_2 AC_SUBST(RELEASE) AC_SUBST(VERSIONSTRING) -AC_PATH_PROG(MSGFMT, msgfmt) -AC_PATH_PROG(MSGCONV, msgconv) -AC_PATH_PROG(ICONV, iconv) +AC_PATH_PROG(MSGFMT, msgfmt,no) +if test x$MSGFMT = xno; then + AC_MSG_ERROR(Couldn't find msgfmt program. Please install the GNU gettext package.) +fi +AC_PATH_PROG(MSGCONV, msgconv,no) +if test x$MSGCONV = xno; then + AC_MSG_ERROR(Couldn't find msgconv program. Please install the GNU gettext package.) +fi +AC_PATH_PROG(ICONV, iconv,no) +if test x$ICONV = xno; then + AC_MSG_ERROR(Couldn't find iconv program.) +fi LANGUAGES="hu zh_CN cs da de es fr it nb nl no pl pt_BR ro ru sv eo" AC_SUBST(LANGUAGES) @@ -54,8 +65,29 @@ def out(str): f.close() " -dnl Check if python bindings for gtk are installed -PKG_CHECK_MODULES(PYGTK,pygtk-2.0 >= 2.3.4) +AC_MSG_CHECKING(Python bindings for gtk2.4 (pygtk2>=2.3.4)) +cat > conftest.py <= (2,3,4): + out("YES") + else: + out("No") +except ImportError: + out("No") +EOF +$PYTHON conftest.py +has_pygtk=`cat conftest.out` +rm -f conftest.out conftest.py +if test YES != "$has_pygtk" +then + AC_MSG_ERROR([ + +**** The python bindings for gtk 2.4 (pygtk2>=2.3.4) could not be found.]) +fi +AC_MSG_RESULT(ok) AC_MSG_CHECKING(Python bindings for gnome) cat > conftest.py <