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, 0.9.4, gramps-bugs@lists.sourceforge.net) AC_CONFIG_SRCDIR(src/gramps.py) AM_INIT_AUTOMAKE(1.6.3) RELEASE=1.CVS$(head -c 10 ${srcdir}/ChangeLog | tr -d '-') 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) LANGUAGES="hu zh_CN 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) AC_PATH_PROG(ZIP, zip) AC_PROG_CC 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 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 </dev/null`]) AC_SUBST([PYTHON_CPPFLAGS], ["-I$gramps_cv_python_inc"]) dnl ==================================== dnl = Begin tests for scrollkeeper dnl ==================================== AC_PATH_PROG(SK_CONFIG,scrollkeeper-config,no) if test x$SK_CONFIG = xno; then AC_MSG_ERROR(Couldn't find scrollkeeper-config. Please install the scrollkeeper package: http://scrollkeeper.sourceforge.net) fi dnl ==================================== dnl = End tests for scrollkeeper dnl ==================================== dnl =================================== dnl Set localstatedir to /var/lib -- this is apparently not used dnl by anything besides scrollkeeper in our setup dnl ================================== localstatedir=/var/lib if test ${prefix} = "NONE" ; then GPREFIX="/usr/local" else GPREFIX="${prefix}" fi dnl ====================================================== dnl == end of modern doc tests dnl ====================================================== SCROLLKEEPER_BUILD_REQUIRED=0.3.5 AC_SUBST(SCROLLKEEPER_BUILD_REQUIRED) AC_SUBST(GNOMEHELP) AC_SUBST(GPREFIX) AC_SUBST(GNOMEINC) AC_SUBST(GNOMELIB) AC_CONFIG_FILES([ Makefile src/Makefile src/const.py src/docgen/Makefile src/filters/Makefile src/plugins/Makefile src/calendars/Makefile src/data/Makefile src/data/templates/Makefile src/po/Makefile doc/Makefile doc/gramps-manual/Makefile doc/gramps-manual/C/Makefile example/Makefile example/gramps/Makefile gramps.spec gramps.sh]) AC_OUTPUT