1
dnl -*- Mode: autoconf -*-
2
dnl Process this file with autoconf to produce a configure script.
4
AC_INIT(src/soundconverter.py)
5
AM_INIT_AUTOMAKE(soundconverter, 0.9.1)
7
m4_define(required_python_abi, 2.3)
8
m4_define(required_python_version, 2.3.3)
9
m4_define(required_pygtk_version, 2.0)
11
dnl put the ACLOCAL flags in the makefile
12
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
14
ALL_LINGUAS="fr pl pt_BR"
15
GETTEXT_PACKAGE=soundconverter
16
AC_SUBST(GETTEXT_PACKAGE)
17
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
21
AM_PATH_PYTHON(required_python_version)
23
dnl Check for correctly installed pygtk
24
AC_MSG_CHECKING(for pygtk required_pygtk_version installed for python required_python_abi)
26
import pygtk; pygtk.require('2.0')
28
assert gobject.pygtk_version >= tuple(map(int, 'required_pygtk_version'.split('.')))
30
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC; then
33
AC_MSG_RESULT(not found)
34
AC_MSG_ERROR(required pygtk version not found)
42
data/soundconverter.desktop.in