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, 1.1.0, gramps-bugs@lists.sourceforge.net) AC_CONFIG_SRCDIR(src/gramps.py) AM_INIT_AUTOMAKE(1.6.3) RELEASE=0.CVS$(head -c 10 ${srcdir}/ChangeLog | tr -d '-') dnl RELEASE=1 VERSIONSTRING=$VERSION if test x"$RELEASE" != "x" then VERSIONSTRING="$VERSION-$RELEASE" fi AC_SUBST(RELEASE) AC_SUBST(VERSIONSTRING) AC_PATH_PROG(MSGFMT, msgfmt) AC_PATH_PROG(MSGCONV, msgconv) AC_PATH_PROG(ICONV, iconv) LANGUAGES="hu zh_CN cs da de es fr it nb nl no pl pt_BR ro ru sv eo" 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.2 AM_PATH_PYTHON(2.2) 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() " dnl Check if python bindings for gtk are installed AC_MSG_CHECKING(Python bindings for gtk) cat > conftest.py < conftest.py < conftest.py < conftest.py < conftest.py < conftest.py <