summaryrefslogtreecommitdiff
path: root/configure.ac
blob: 63c94c9c55d2b1dcfddecfe44ad7693ed0e8382b (plain)
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
AC_PREREQ(2.57)
AC_INIT([beryl-settings-bindings],esyscmd(. ./VERSION;echo -n $VERSION), [livinglatexkali@gmail.com])

AC_DEFINE_UNQUOTED(VERSION,"$VERSION",[Version])

AM_INIT_AUTOMAKE([1.9 dist-bzip2])
AC_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_LIBTOOL
AC_HEADER_STDC

BERYLSETTINGS_REQUIRES="\
berylsettings >= 0.1.2 \
glib-2.0 >= 2.6 \
x11 \
"

PKG_CHECK_MODULES(BERYLSETTINGS,$BERYLSETTINGS_REQUIRES)

AC_SUBST(BERYLSETTINGS_REQUIRES)

dnl PYTHON SPECIFIC

m4_define(required_python_abi,2.4)

AM_PATH_PYTHON
if test "$PYTHON_VERSION" = "2.4"
then
	AM_PATH_PYTHON_VERSION(2.4,2.4.0)
else
	AM_PATH_PYTHON_VERSION(2.5,2.5.0)
fi

AC_CHECK_PROGS(PYREX, pyrexc)
if test -z "$PYREX"
then
	AC_MSG_ERROR([Couldn't find Pyrex])
fi

AC_CONFIG_FILES([
	beryl-settings-bindings.pc
	Makefile
	python/Makefile
])

AC_OUTPUT