1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
1 |
dnl -*- Mode: autoconf -*- |
2 |
dnl Process this file with autoconf to produce a configure script. |
|
3 |
AC_PREREQ(2.53) |
|
1.1.20
by Didier Roche
Import upstream version 0.13.2 |
4 |
AC_INIT(alacarte, 0.13.2, http://bugzilla.gnome.org/enter_bug.cgi?product=alacarte) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
5 |
AC_CONFIG_SRCDIR(alacarte.in) |
1.1.17
by Sebastien Bacher
Import upstream version 0.12.3 |
6 |
AC_CONFIG_HEADERS([config.h]) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
7 |
AM_INIT_AUTOMAKE([1.7]) |
8 |
AM_MAINTAINER_MODE
|
|
9 |
||
1.1.12
by Sebastien Bacher
Import upstream version 0.11.7 |
10 |
m4_define(required_pygobject_version, 2.15.1) |
1.1.14
by Sebastien Bacher
Import upstream version 0.11.9 |
11 |
m4_define(required_pygtk_version, 2.13.0) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
12 |
|
13 |
dnl put the ACLOCAL flags in the makefile |
|
14 |
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
|
15 |
||
16 |
||
17 |
GETTEXT_PACKAGE=alacarte |
|
18 |
AC_SUBST(GETTEXT_PACKAGE) |
|
19 |
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) |
|
20 |
AM_GLIB_GNU_GETTEXT
|
|
1.1.12
by Sebastien Bacher
Import upstream version 0.11.7 |
21 |
IT_PROG_INTLTOOL([0.40.0]) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
22 |
|
1.1.20
by Didier Roche
Import upstream version 0.13.2 |
23 |
AM_PATH_PYTHON_VERSION(2.7, 2.7.0, 2.6, 2.6.0, 2.5, 2.5.0, 2.4, 2.4.0) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
24 |
|
1.1.17
by Sebastien Bacher
Import upstream version 0.12.3 |
25 |
PKG_CHECK_MODULES(ALACARTE, libgnome-menu >= 2.27.92) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
26 |
|
1.1.12
by Sebastien Bacher
Import upstream version 0.11.7 |
27 |
dnl Check for correctly installed pygobject |
28 |
AC_MSG_CHECKING(for pygobject required_pygobject_version installed for python required_python_abi) |
|
29 |
prog=" |
|
1.1.13
by Sebastien Bacher
Import upstream version 0.11.8 |
30 |
import pygtk; pygtk.require('2.0') |
1.1.12
by Sebastien Bacher
Import upstream version 0.11.7 |
31 |
import gobject |
32 |
assert gobject.pygobject_version >= tuple(map(int, 'required_pygobject_version'.split('.'))) |
|
33 |
"
|
|
34 |
||
35 |
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then |
|
36 |
AC_MSG_RESULT(found) |
|
37 |
else
|
|
38 |
AC_MSG_RESULT(not found) |
|
39 |
AC_MSG_ERROR(required pygobject version not found) |
|
40 |
fi
|
|
41 |
||
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
42 |
dnl Check for correctly installed pygtk |
1.1.12
by Sebastien Bacher
Import upstream version 0.11.7 |
43 |
AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python ${PYTHON_VERSION}) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
44 |
prog=" |
45 |
import pygtk; pygtk.require('2.0') |
|
46 |
import gobject |
|
47 |
assert gobject.pygtk_version >= tuple(map(int, 'required_pygtk_version'.split('.'))) |
|
48 |
"
|
|
1.1.12
by Sebastien Bacher
Import upstream version 0.11.7 |
49 |
|
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
50 |
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then |
51 |
AC_MSG_RESULT(found) |
|
52 |
else
|
|
53 |
AC_MSG_RESULT(not found) |
|
54 |
AC_MSG_ERROR(required pygtk version not found) |
|
55 |
fi
|
|
56 |
||
57 |
dnl Check for correctly installed python-glade |
|
1.1.12
by Sebastien Bacher
Import upstream version 0.11.7 |
58 |
dnl AC_MSG_CHECKING(for pyglade required_pygtk_version installed for python ${PYTHON_VERSION}) |
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
59 |
dnl prog=" |
60 |
dnl import pygtk; pygtk.require('2.0') |
|
61 |
dnl import gtk.glade |
|
62 |
dnl " |
|
63 |
dnl if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then |
|
64 |
dnl AC_MSG_RESULT(found) |
|
65 |
dnl else |
|
66 |
dnl AC_MSG_RESULT(not found) |
|
67 |
dnl AC_MSG_ERROR(required pyglade version not found) |
|
68 |
dnl fi |
|
69 |
||
70 |
AC_CONFIG_FILES([ |
|
71 |
Makefile
|
|
72 |
po/Makefile.in |
|
73 |
Alacarte/Makefile |
|
1.1.11
by Andreas Moog
Import upstream version 0.11.6 |
74 |
data/alacarte.desktop.in |
75 |
data/Makefile |
|
76 |
data/icons/Makefile |
|
1.1.1
by Sebastien Bacher
Import upstream version 0.9.2 |
77 |
])
|
78 |
||
79 |
AC_OUTPUT
|
|
80 |