-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfigure.ac
45 lines (34 loc) · 894 Bytes
/
configure.ac
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
AC_PREREQ(2.57)
AC_INIT([compizconfig-python], [0.8.18], [livinglatexkali@gmail.com])
AM_INIT_AUTOMAKE([1.9 foreign dist-xz no-dist-gzip check-news])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_MAINTAINER_MODE
AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CPP
LT_INIT
AC_HEADER_STDC
CCS_REQUIRES="\
libcompizconfig >= 0.6.99 \
glib-2.0 >= 2.6 "
PKG_CHECK_MODULES(CCS,$CCS_REQUIRES)
AC_SUBST(CCS_REQUIRES)
dnl PYTHON SPECIFIC
AM_PATH_PYTHON_DEVEL([2.7],[4.0])
AC_ARG_WITH(cython, [ --with-cython=PATH ],
[with_cython="$withval"],
[with_cython="cython"])
AC_MSG_CHECKING([for $with_cython])
CYTHON="`which "$with_cython" 2> /dev/null`"
AS_IF([test -n "$CYTHON"],
[AC_MSG_RESULT([yes])
AC_SUBST(CYTHON)],
[AC_MSG_RESULT([no])
AC_MSG_ERROR([Couldn't find Cython])])
AC_CONFIG_FILES([
compizconfig-python.pc
Makefile
src/Makefile
])
AC_OUTPUT