File: configure.ac

package info (click to toggle)
alacarte 0.11.5-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,260 kB
  • ctags: 144
  • sloc: python: 1,405; sh: 821; makefile: 63
file content (61 lines) | stat: -rw-r--r-- 1,684 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
dnl -*- Mode: autoconf -*-
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)
AC_INIT(alacarte, 0.11.5, http://bugzilla.gnome.org/enter_bug.cgi?product=alacarte)
AC_CONFIG_SRCDIR(alacarte.in)
AM_INIT_AUTOMAKE([1.7])
AM_MAINTAINER_MODE

m4_define(required_pygtk_version, 2.8.0)
m4_define(required_python_abi, 2.4)

dnl put the ACLOCAL flags in the makefile
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"


GETTEXT_PACKAGE=alacarte
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])

AM_PATH_PYTHON_VERSION(2.4, 2.4.0, 2.5, 2.5.0)

PKG_CHECK_MODULES(ALACARTE, libgnome-menu >= 2.15)

dnl Check for correctly installed pygtk
AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python required_python_abi)
prog="
import pygtk; pygtk.require('2.0')
import gobject
assert gobject.pygtk_version >= tuple(map(int, 'required_pygtk_version'.split('.')))
"
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
    AC_MSG_RESULT(found)
else
    AC_MSG_RESULT(not found)
    AC_MSG_ERROR(required pygtk version not found)
fi

dnl Check for correctly installed python-glade
dnl AC_MSG_CHECKING(for pyglade required_pygtk_version installed for python required_python_abi)
dnl prog="
dnl import pygtk; pygtk.require('2.0')
dnl import gtk.glade
dnl "
dnl if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
dnl    AC_MSG_RESULT(found)
dnl else
dnl    AC_MSG_RESULT(not found)
dnl    AC_MSG_ERROR(required pyglade version not found)
dnl fi

AC_CONFIG_FILES([
        Makefile
        po/Makefile.in
        Alacarte/Makefile
        alacarte.desktop.in
        ])

AC_OUTPUT