~matttbe/ubuntu/precise/alacarte/975299

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-01-19 17:10:20 UTC
  • mto: (2.1.4 squeeze)
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: james.westby@ubuntu.com-20090119171020-btqjh13j7gtey1z5
Tags: upstream-0.11.7
ImportĀ upstreamĀ versionĀ 0.11.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
dnl -*- Mode: autoconf -*-
2
2
dnl Process this file with autoconf to produce a configure script.
3
3
AC_PREREQ(2.53)
4
 
AC_INIT(alacarte, 0.11.6, http://bugzilla.gnome.org/enter_bug.cgi?product=alacarte)
 
4
AC_INIT(alacarte, 0.11.7, http://bugzilla.gnome.org/enter_bug.cgi?product=alacarte)
5
5
AC_CONFIG_SRCDIR(alacarte.in)
6
6
AM_INIT_AUTOMAKE([1.7])
7
7
AM_MAINTAINER_MODE
8
8
 
 
9
m4_define(required_pygobject_version, 2.15.1)
9
10
m4_define(required_pygtk_version, 2.8.0)
10
 
m4_define(required_python_abi, 2.4)
11
11
 
12
12
dnl put the ACLOCAL flags in the makefile
13
13
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
17
17
AC_SUBST(GETTEXT_PACKAGE)
18
18
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
19
19
AM_GLIB_GNU_GETTEXT
20
 
IT_PROG_INTLTOOL([0.35.0])
 
20
IT_PROG_INTLTOOL([0.40.0])
21
21
 
22
22
AM_PATH_PYTHON_VERSION(2.6, 2.6.0, 2.5, 2.5.0, 2.4, 2.4.0)
23
23
 
24
24
PKG_CHECK_MODULES(ALACARTE, libgnome-menu >= 2.15)
25
25
 
 
26
dnl Check for correctly installed pygobject
 
27
AC_MSG_CHECKING(for pygobject required_pygobject_version installed for python required_python_abi)
 
28
prog="
 
29
import gobject
 
30
assert gobject.pygobject_version >= tuple(map(int, 'required_pygobject_version'.split('.')))
 
31
"
 
32
 
 
33
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
 
34
    AC_MSG_RESULT(found)
 
35
else
 
36
    AC_MSG_RESULT(not found)
 
37
    AC_MSG_ERROR(required pygobject version not found)
 
38
fi
 
39
 
26
40
dnl Check for correctly installed pygtk
27
 
AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python required_python_abi)
 
41
AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python ${PYTHON_VERSION})
28
42
prog="
29
43
import pygtk; pygtk.require('2.0')
30
44
import gobject
31
45
assert gobject.pygtk_version >= tuple(map(int, 'required_pygtk_version'.split('.')))
32
46
"
 
47
 
33
48
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
34
49
    AC_MSG_RESULT(found)
35
50
else
38
53
fi
39
54
 
40
55
dnl Check for correctly installed python-glade
41
 
dnl AC_MSG_CHECKING(for pyglade required_pygtk_version installed for python required_python_abi)
 
56
dnl AC_MSG_CHECKING(for pyglade required_pygtk_version installed for python ${PYTHON_VERSION})
42
57
dnl prog="
43
58
dnl import pygtk; pygtk.require('2.0')
44
59
dnl import gtk.glade