dnl Process this file with autoconf to produce a configure script. dnl May need to run automake && aclocal first AC_INIT(src/gramps.py) AM_INIT_AUTOMAKE(gramps, 0.9.3) RELEASE=0.CVS$(date +%G%m%d) VERSIONSTRING=$VERSION if test x"$RELEASE" != "x" then VERSIONSTRING="$VERSION-$RELEASE" fi AC_SUBST(PACKAGE) AC_SUBST(VERSION) AC_SUBST(RELEASE) AC_SUBST(VERSIONSTRING) AC_PATH_PROG(MSGFMT, msgfmt) AC_SUBST(MSGFMT) LANGUAGES="cs da_DK de es fr it nl pl pt_BR ro ru sv" 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) dnl override automatic python detection with our own place pythondir=\${prefix}/share pyexecdir=\${prefix}/share pkgpythondir=\${prefix}/share/\${PACKAGE} pkgpyexecdir=\${prefix}/share/\${PACKAGE} AC_PATH_PROG(BINSH, sh) AC_PATH_PROG(SWIG, swig) if test "$PYTHON_VERSION" != "2.2" then AC_PATH_PROG(PYTHON22, python2.2) else PYTHON22=$PYTHON fi AC_PATH_PROG(ZIP, zip) AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_CC AC_CHECK_HEADER(libintl.h) AC_CHECK_LIB(c,textdomain,LIBS="", [ AC_CHECK_LIB(intl,textdomain, LIBS="-lintl", AC_MSG_ERROR("Could not find internationalization libraries")) ]) dnl Check for programs AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, "YES", "NO") GNOMEINC=`pkg-config --cflags gnome-vfs-module-2.0` GNOMELIB=`pkg-config --libs gnome-vfs-module-2.0` pygtk_require=" try: import pygtk pygtk.require('2.0') except ImportError: pass " 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 <