dnl $Id$ dnl Process this file with autoconf to produce a configure script. dnl May need to run automake && aclocal first AC_PREREQ(2.57) AC_INIT(gramps, 2.0.0, gramps-bugs@lists.sourceforge.net) AC_CONFIG_SRCDIR(src/gramps.py) AM_INIT_AUTOMAKE(1.6.3) dnl RELEASE=0.CVS$(head -c 10 ${srcdir}/ChangeLog | tr -d '-') RELEASE=1 VERSIONSTRING=$VERSION if test x"$RELEASE" != "x" then VERSIONSTRING="$VERSION-$RELEASE" fi AM_GCONF2_REPLACEMENT AM_SHARED_MIME AM_PACKAGER AC_SUBST(RELEASE) AC_SUBST(VERSIONSTRING) 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 fi" AC_SUBST(LANGUAGES) DISTLANGS= POFILES= MOFILES= for lang in $LANGUAGES; do POFILES="$POFILES $lang.po" MOFILES="$MOFILES $lang.mo" done AC_SUBST(POFILES) AC_SUBST(MOFILES) dnl Checks for programs. dnl We first only check for python >= 2.3 AM_PATH_PYTHON(2.3) AC_PATH_PROG(BINSH, sh) pygtk_require=" try: import pygtk pygtk.require('2.0') except ImportError: pass def out(str): f = open('conftest.out', 'w') f.write(str) f.close() " 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") except AttributeError: 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 < conftest.py < conftest.py < conftest.py < conftest.py <