2004-08-19 03:33:11 +00:00
|
|
|
dnl $Id$
|
|
|
|
|
2002-10-20 14:25:16 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
dnl May need to run automake && aclocal first
|
2003-08-10 23:25:22 +00:00
|
|
|
|
|
|
|
AC_PREREQ(2.57)
|
2008-03-29 19:34:28 +00:00
|
|
|
dnl NOTE: arg to macro below becomes the "VERSION"
|
2011-03-21 20:30:46 +00:00
|
|
|
AC_INIT(gramps, 3.4.0, [gramps-bugs@lists.sourceforge.net])
|
2006-03-15 23:58:23 +00:00
|
|
|
AC_CONFIG_SRCDIR(configure.in)
|
2008-03-12 08:26:52 +00:00
|
|
|
AM_INIT_AUTOMAKE([1.6.3 foreign])
|
2006-03-05 04:31:24 +00:00
|
|
|
|
2006-03-17 20:41:14 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
2008-01-17 05:34:29 +00:00
|
|
|
RELEASE=0.SVN$(svnversion -n .)
|
2008-01-17 07:07:39 +00:00
|
|
|
dnl RELEASE=0beta
|
2008-01-17 05:33:39 +00:00
|
|
|
dnl RELEASE=0rc1
|
2007-01-30 16:46:16 +00:00
|
|
|
dnl RELEASE=1
|
2002-10-20 14:25:16 +00:00
|
|
|
|
|
|
|
VERSIONSTRING=$VERSION
|
|
|
|
if test x"$RELEASE" != "x"
|
|
|
|
then
|
|
|
|
VERSIONSTRING="$VERSION-$RELEASE"
|
|
|
|
fi
|
|
|
|
|
2006-03-15 23:58:23 +00:00
|
|
|
dnl put the ACLOCAL flags in the Makefile
|
|
|
|
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
|
|
|
|
|
|
|
|
AC_PROG_INTLTOOL
|
|
|
|
|
2005-03-17 17:19:34 +00:00
|
|
|
AM_SHARED_MIME
|
2005-05-11 14:04:47 +00:00
|
|
|
AM_PACKAGER
|
2002-10-20 14:25:16 +00:00
|
|
|
AC_SUBST(RELEASE)
|
|
|
|
AC_SUBST(VERSIONSTRING)
|
|
|
|
|
2006-03-15 23:58:23 +00:00
|
|
|
dnl Add the languages which your application supports here.
|
2011-08-08 07:10:34 +00:00
|
|
|
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"
|
2006-03-15 23:58:23 +00:00
|
|
|
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 14:25:16 +00:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
2010-12-12 10:19:51 +00:00
|
|
|
dnl We first only check for python >= 2.6
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2010-12-12 10:19:51 +00:00
|
|
|
AM_PATH_PYTHON(2.6)
|
2002-10-20 14:25:16 +00:00
|
|
|
AC_PATH_PROG(BINSH, sh)
|
|
|
|
|
2003-04-06 14:44:30 +00:00
|
|
|
pygtk_require="
|
|
|
|
try:
|
2002-11-26 04:06:23 +00:00
|
|
|
import pygtk
|
|
|
|
pygtk.require('2.0')
|
|
|
|
except ImportError:
|
|
|
|
pass
|
2003-08-14 03:53:41 +00:00
|
|
|
|
2006-03-17 19:15:16 +00:00
|
|
|
def out(line):
|
2003-08-14 03:53:41 +00:00
|
|
|
f = open('conftest.out', 'w')
|
2006-03-17 19:15:16 +00:00
|
|
|
f.write(line)
|
2003-08-14 03:53:41 +00:00
|
|
|
f.close()
|
2002-11-26 04:06:23 +00:00
|
|
|
"
|
|
|
|
|
2008-06-08 14:29:07 +00:00
|
|
|
AC_MSG_CHECKING(Python bindings for gtk 2.10 (pygtk2>=2.10.0))
|
2004-08-19 03:33:11 +00:00
|
|
|
cat > conftest.py <<EOF
|
|
|
|
$pygtk_require
|
|
|
|
try:
|
|
|
|
import gobject
|
|
|
|
version = gobject.pygtk_version
|
2007-07-06 04:22:03 +00:00
|
|
|
if version >= (2,10,0):
|
2006-03-17 19:15:16 +00:00
|
|
|
print_version = '.'.join([[str(i) for i in version]])
|
|
|
|
out(print_version)
|
2004-08-19 03:33:11 +00:00
|
|
|
else:
|
2006-03-17 19:15:16 +00:00
|
|
|
out("NO")
|
2004-08-19 03:33:11 +00:00
|
|
|
except ImportError:
|
2006-03-17 19:15:16 +00:00
|
|
|
out("NO")
|
2004-08-19 13:24:17 +00:00
|
|
|
except AttributeError:
|
2006-03-17 19:15:16 +00:00
|
|
|
out("NO")
|
2004-08-19 03:33:11 +00:00
|
|
|
EOF
|
|
|
|
$PYTHON conftest.py
|
|
|
|
has_pygtk=`cat conftest.out`
|
|
|
|
rm -f conftest.out conftest.py
|
2006-03-17 19:15:16 +00:00
|
|
|
if test NO = "$has_pygtk"
|
2004-08-19 03:33:11 +00:00
|
|
|
then
|
|
|
|
AC_MSG_ERROR([
|
|
|
|
|
2008-06-08 14:29:07 +00:00
|
|
|
**** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be found.])
|
2004-08-19 03:33:11 +00:00
|
|
|
fi
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_MSG_RESULT($has_pygtk)
|
2002-10-20 14:25:16 +00:00
|
|
|
|
2006-03-16 19:02:45 +00:00
|
|
|
AC_CONFIG_FILES([
|
|
|
|
po/Makefile.in
|
2006-03-18 00:36:16 +00:00
|
|
|
m4/Makefile
|
2006-03-17 19:15:16 +00:00
|
|
|
Makefile
|
|
|
|
gramps.sh
|
|
|
|
src/const.py
|
2002-10-20 14:25:16 +00:00
|
|
|
src/Makefile
|
2009-06-15 19:02:15 +00:00
|
|
|
src/cli/Makefile
|
2010-05-01 04:12:42 +00:00
|
|
|
src/cli/plug/Makefile
|
2009-06-15 19:02:15 +00:00
|
|
|
src/gen/Makefile
|
|
|
|
src/gen/db/Makefile
|
2010-01-24 20:17:14 +00:00
|
|
|
src/gen/display/Makefile
|
2009-06-15 19:02:15 +00:00
|
|
|
src/gen/lib/Makefile
|
2010-01-24 20:17:14 +00:00
|
|
|
src/gen/mime/Makefile
|
2009-06-15 19:02:15 +00:00
|
|
|
src/gen/plug/Makefile
|
|
|
|
src/gen/plug/docbackend/Makefile
|
|
|
|
src/gen/plug/docgen/Makefile
|
|
|
|
src/gen/plug/menu/Makefile
|
2010-05-01 04:12:42 +00:00
|
|
|
src/gen/plug/report/Makefile
|
2010-01-24 20:17:14 +00:00
|
|
|
src/gen/proxy/Makefile
|
|
|
|
src/gen/utils/Makefile
|
2009-06-15 19:02:15 +00:00
|
|
|
src/gui/Makefile
|
2009-12-16 03:02:08 +00:00
|
|
|
src/gui/editors/Makefile
|
2009-12-16 06:11:06 +00:00
|
|
|
src/gui/editors/displaytabs/Makefile
|
2010-05-01 04:12:42 +00:00
|
|
|
src/gui/plug/Makefile
|
|
|
|
src/gui/plug/report/Makefile
|
2009-12-16 03:02:08 +00:00
|
|
|
src/gui/selectors/Makefile
|
2009-06-15 19:02:15 +00:00
|
|
|
src/gui/views/Makefile
|
2009-06-28 21:15:10 +00:00
|
|
|
src/gui/views/treemodels/Makefile
|
2010-01-24 20:17:14 +00:00
|
|
|
src/gui/widgets/Makefile
|
2006-03-02 20:44:39 +00:00
|
|
|
src/GrampsLogger/Makefile
|
2006-05-26 00:10:59 +00:00
|
|
|
src/Merge/Makefile
|
2002-10-20 14:25:16 +00:00
|
|
|
src/docgen/Makefile
|
2006-05-03 01:05:46 +00:00
|
|
|
src/Filters/Makefile
|
|
|
|
src/Filters/Rules/Makefile
|
2006-05-03 06:40:02 +00:00
|
|
|
src/Filters/Rules/Person/Makefile
|
|
|
|
src/Filters/Rules/Family/Makefile
|
|
|
|
src/Filters/Rules/Event/Makefile
|
|
|
|
src/Filters/Rules/Source/Makefile
|
|
|
|
src/Filters/Rules/Place/Makefile
|
2006-08-22 16:54:40 +00:00
|
|
|
src/Filters/Rules/MediaObject/Makefile
|
2006-05-03 06:40:02 +00:00
|
|
|
src/Filters/Rules/Repository/Makefile
|
2007-02-24 19:16:50 +00:00
|
|
|
src/Filters/Rules/Note/Makefile
|
2006-08-05 04:53:21 +00:00
|
|
|
src/Filters/SideBar/Makefile
|
2007-05-21 04:07:00 +00:00
|
|
|
src/Simple/Makefile
|
2007-02-03 22:41:00 +00:00
|
|
|
src/GrampsLocale/Makefile
|
2002-10-20 14:25:16 +00:00
|
|
|
src/plugins/Makefile
|
2009-01-19 20:26:41 +00:00
|
|
|
src/plugins/docgen/Makefile
|
|
|
|
src/plugins/drawreport/Makefile
|
|
|
|
src/plugins/export/Makefile
|
|
|
|
src/plugins/gramplet/Makefile
|
|
|
|
src/plugins/graph/Makefile
|
|
|
|
src/plugins/import/Makefile
|
2009-01-30 19:19:22 +00:00
|
|
|
src/plugins/lib/Makefile
|
2011-04-25 13:32:10 +00:00
|
|
|
src/plugins/lib/maps/Makefile
|
2009-02-02 21:55:22 +00:00
|
|
|
src/plugins/mapservices/Makefile
|
2009-01-19 20:26:41 +00:00
|
|
|
src/plugins/quickview/Makefile
|
|
|
|
src/plugins/rel/Makefile
|
2010-04-04 18:16:03 +00:00
|
|
|
src/plugins/sidebar/Makefile
|
2009-01-19 20:26:41 +00:00
|
|
|
src/plugins/textreport/Makefile
|
|
|
|
src/plugins/tool/Makefile
|
2009-11-09 20:34:05 +00:00
|
|
|
src/plugins/view/Makefile
|
2009-01-19 20:26:41 +00:00
|
|
|
src/plugins/webreport/Makefile
|
2010-08-12 05:26:45 +00:00
|
|
|
src/plugins/webstuff/Makefile
|
2011-02-26 10:59:48 +00:00
|
|
|
src/plugins/webstuff/css/Makefile
|
|
|
|
src/plugins/webstuff/images/Makefile
|
2006-03-08 01:09:17 +00:00
|
|
|
src/DateHandler/Makefile
|
2002-10-20 14:25:16 +00:00
|
|
|
src/data/Makefile
|
2006-03-04 23:25:22 +00:00
|
|
|
src/glade/Makefile
|
2006-03-03 23:48:11 +00:00
|
|
|
src/images/Makefile
|
2007-02-20 20:05:16 +00:00
|
|
|
src/images/scalable/Makefile
|
|
|
|
src/images/16x16/Makefile
|
|
|
|
src/images/22x22/Makefile
|
|
|
|
src/images/48x48/Makefile
|
2006-03-21 18:56:27 +00:00
|
|
|
data/Makefile
|
|
|
|
data/man/Makefile
|
2011-01-13 18:32:42 +00:00
|
|
|
data/man/cs/Makefile
|
2006-03-21 18:56:27 +00:00
|
|
|
data/man/fr/Makefile
|
2008-01-16 14:26:33 +00:00
|
|
|
data/man/nl/Makefile
|
2008-03-09 22:06:55 +00:00
|
|
|
data/man/pl/Makefile
|
2008-01-16 15:09:21 +00:00
|
|
|
data/man/sv/Makefile
|
2003-03-31 03:51:01 +00:00
|
|
|
example/Makefile
|
|
|
|
example/gramps/Makefile
|
2006-03-15 23:58:23 +00:00
|
|
|
])
|
|
|
|
|
2006-03-17 19:15:16 +00:00
|
|
|
AC_OUTPUT
|