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
62
63
64
65
66
67
|
From: Romain Perier <mrpouet@gentoo.org>
Date: Sun, 4 Apr 2010 17:39:50 +0200
Subject: Do not build bindings as automagic supports, they should be optionnal
---
bindings/Makefile.am | 12 +++++++++---
configure.ac | 8 ++++++++
2 files changed, 17 insertions(+), 3 deletions(-)
--- a/bindings/Makefile.am
+++ b/bindings/Makefile.am
@@ -1,3 +1,9 @@
-SUBDIRS = \
- mono \
- python
+SUBDIRS=
+
+if BUILD_MONO
+SUBDIRS += mono
+endif
+
+if BUILD_PYTHON
+SUBDIRS += python
+endif
--- a/configure.ac
+++ b/configure.ac
@@ -55,7 +55,9 @@ AC_SUBST(INDICATOR_LIBS)
###########################
# Check for Mono support
###########################
+AC_ARG_ENABLE([mono], [AC_HELP_STRING([--enable-mono], [Build Mono binding])], enable_mono="$enableval", enable_mono="auto")
+if test "x$enable_mono" != "xno"; then
MONO_REQUIRED_VERSION=1.0
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
@@ -109,7 +111,9 @@ AC_SUBST(GAPI_FIXUP)
PKG_CHECK_MODULES(NUNIT, nunit >= 2.4.7)
AC_SUBST(NUNIT_LIBS)
+fi
+AM_CONDITIONAL([BUILD_MONO], [test "x$enable_mono" != "xno"])
###########################
# Check to see if we're local
###########################
@@ -145,7 +149,9 @@ AC_SUBST(DBUSSERVICEDIR)
###########################
# Python
###########################
+AC_ARG_ENABLE([python], [AC_HELP_STRING([--enable-python], [Build Python binding])], enable_python="$enableval", enable_python="auto")
+if test "x$enable_python" != "xno"; then
PYGTK_REQUIRED=2.14.0
PYGOBJECT_REQUIRED=0.22
@@ -170,7 +176,9 @@ AC_MSG_CHECKING(for pygtk codegen)
PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py"
AC_SUBST(PYGTK_CODEGEN)
AC_MSG_RESULT($PYGTK_CODEGEN)
+fi
+AM_CONDITIONAL([BUILD_PYTHON], [test "x$enable_python" != "xno"])
###########################
# Files
###########################
|