gramps/configure.in

178 lines
4.1 KiB
Plaintext
Raw Normal View History

dnl $Id$
2002-10-20 19:55:16 +05:30
dnl Process this file with autoconf to produce a configure script.
dnl May need to run automake && aclocal first
AC_PREREQ(2.57)
dnl NOTE: arg to macro below becomes the "VERSION"
AC_INIT(gramps, 3.5.0, [gramps-bugs@lists.sourceforge.net])
AC_CONFIG_SRCDIR(configure.in)
AM_INIT_AUTOMAKE([1.6.3 foreign])
2006-03-05 10:01:24 +05:30
AC_CONFIG_MACRO_DIR([m4])
RELEASE=0.SVN$(svnversion -n .)
dnl RELEASE=0beta
2008-01-17 11:03:39 +05:30
dnl RELEASE=0rc1
dnl RELEASE=1
2002-10-20 19:55:16 +05:30
VERSIONSTRING=$VERSION
if test x"$RELEASE" != "x"
then
VERSIONSTRING="$VERSION-$RELEASE"
fi
dnl put the ACLOCAL flags in the Makefile
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
AC_PROG_INTLTOOL
AM_SHARED_MIME
AM_PACKAGER
2002-10-20 19:55:16 +05:30
AC_SUBST(RELEASE)
AC_SUBST(VERSIONSTRING)
dnl Add the languages which your application supports here.
ALL_LINGUAS="hu zh_CN cs da de es fr it nb nl nn pl pt_BR pt_PT ru sv fi lt sk bg hr sl ca sq he uk ja vi en_GB"
GETTEXT_PACKAGE=gramps
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the Gettext package name.])
AM_GLIB_GNU_GETTEXT
2002-10-20 19:55:16 +05:30
dnl Checks for programs.
2010-12-12 15:49:51 +05:30
dnl We first only check for python >= 2.6
2002-10-20 19:55:16 +05:30
2010-12-12 15:49:51 +05:30
AM_PATH_PYTHON(2.6)
2002-10-20 19:55:16 +05:30
AC_PATH_PROG(BINSH, sh)
pygtk_require="
try:
import pygtk
pygtk.require('2.0')
except ImportError:
pass
def out(line):
f = open('conftest.out', 'w')
f.write(line)
f.close()
"
AC_MSG_CHECKING(Python bindings for gtk 2.10 (pygtk2>=2.10.0))
cat > conftest.py <<EOF
$pygtk_require
try:
import gobject
version = gobject.pygtk_version
if version >= (2,10,0):
print_version = '.'.join([[str(i) for i in version]])
out(print_version)
else:
out("NO")
except ImportError:
out("NO")
2004-08-19 18:54:17 +05:30
except AttributeError:
out("NO")
EOF
$PYTHON conftest.py
has_pygtk=`cat conftest.out`
rm -f conftest.out conftest.py
if test NO = "$has_pygtk"
then
AC_MSG_ERROR([
**** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be found.])
fi
AC_MSG_RESULT($has_pygtk)
2002-10-20 19:55:16 +05:30
2006-03-17 00:32:45 +05:30
AC_CONFIG_FILES([
po/Makefile.in
2006-03-18 06:06:16 +05:30
m4/Makefile
Makefile
gramps.sh
src/const.py
2002-10-20 19:55:16 +05:30
src/Makefile
src/cli/Makefile
src/cli/plug/Makefile
src/gen/Makefile
src/gen/datehandler/Makefile
src/gen/db/Makefile
src/gen/display/Makefile
src/gen/filters/Makefile
src/gen/filters/rules/Makefile
src/gen/filters/rules/person/Makefile
src/gen/filters/rules/family/Makefile
src/gen/filters/rules/event/Makefile
src/gen/filters/rules/source/Makefile
src/gen/filters/rules/place/Makefile
src/gen/filters/rules/media/Makefile
src/gen/filters/rules/repository/Makefile
src/gen/filters/rules/note/Makefile
src/gen/filters/rules/citation/Makefile
src/gen/lib/Makefile
src/gen/merge/Makefile
src/gen/mime/Makefile
src/gen/plug/Makefile
src/gen/plug/docbackend/Makefile
src/gen/plug/docgen/Makefile
src/gen/plug/menu/Makefile
src/gen/plug/report/Makefile
src/gen/proxy/Makefile
src/gen/utils/Makefile
src/gui/Makefile
src/gui/editors/Makefile
src/gui/editors/displaytabs/Makefile
src/gui/filters/Makefile
src/gui/filters/sidebar/Makefile
src/gui/glade/Makefile
src/gui/merge/Makefile
src/gui/plug/Makefile
src/gui/plug/report/Makefile
src/gui/selectors/Makefile
src/gui/views/Makefile
src/gui/views/treemodels/Makefile
src/gui/widgets/Makefile
src/GrampsLogger/Makefile
2002-10-20 19:55:16 +05:30
src/docgen/Makefile
src/Simple/Makefile
src/GrampsLocale/Makefile
2002-10-20 19:55:16 +05:30
src/plugins/Makefile
2009-01-20 01:56:41 +05:30
src/plugins/docgen/Makefile
src/plugins/drawreport/Makefile
src/plugins/export/Makefile
src/plugins/gramplet/Makefile
src/plugins/graph/Makefile
src/plugins/import/Makefile
src/plugins/lib/Makefile
src/plugins/lib/maps/Makefile
src/plugins/mapservices/Makefile
2009-01-20 01:56:41 +05:30
src/plugins/quickview/Makefile
src/plugins/rel/Makefile
src/plugins/sidebar/Makefile
2009-01-20 01:56:41 +05:30
src/plugins/textreport/Makefile
src/plugins/tool/Makefile
src/plugins/view/Makefile
2009-01-20 01:56:41 +05:30
src/plugins/webreport/Makefile
src/plugins/webstuff/Makefile
src/plugins/webstuff/css/Makefile
src/plugins/webstuff/images/Makefile
src/plugins/webstuff/javascript/Makefile
2002-10-20 19:55:16 +05:30
src/data/Makefile
2006-03-04 05:18:11 +05:30
src/images/Makefile
2007-02-21 01:35:16 +05:30
src/images/16x16/Makefile
src/images/22x22/Makefile
src/images/48x48/Makefile
src/images/scalable/Makefile
data/Makefile
data/man/Makefile
data/man/cs/Makefile
data/man/fr/Makefile
2008-01-16 19:56:33 +05:30
data/man/nl/Makefile
data/man/pl/Makefile
data/man/sv/Makefile
2003-03-31 09:21:01 +05:30
example/Makefile
example/gramps/Makefile
])
AC_OUTPUT