This is the mail archive of the
cluster-cvs@sourceware.org
mailing list for the cluster.
cluster: master - build: add --enable-bindings option
- From: "Fabio M. Di Nitto" <fabbione at fedoraproject dot org>
- To: cluster-cvs-relay at redhat dot com
- Date: Fri, 29 May 2009 06:20:01 +0000 (UTC)
- Subject: cluster: master - build: add --enable-bindings option
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=bdc46fb8f59adcf9897ba9c1380a7ac2d593447e
Commit: bdc46fb8f59adcf9897ba9c1380a7ac2d593447e
Parent: f48b53aea96c82de7d2d2b2913ed7b47870a41fb
Author: Fabio M. Di Nitto <fdinitto@redhat.com>
AuthorDate: Fri May 29 08:19:20 2009 +0200
Committer: Fabio M. Di Nitto <fdinitto@redhat.com>
CommitterDate: Fri May 29 08:19:20 2009 +0200
build: add --enable-bindings option
this allow users to decide if they want to build bindings
and default is to no.
Also do some whitespace cleanup
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
Makefile.am | 6 +++++-
configure.ac | 18 ++++++++++++++----
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index d8f8c73..aa33bca 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,7 +11,11 @@ noinst_HEADERS = make/copyright.cf
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = common config cman group doc bindings
+SUBDIRS = common config cman group doc
+
+if BUILD_BINDINGS
+SUBDIRS += bindings
+endif
install-exec-local:
$(INSTALL) -d $(DESTDIR)/$(LOGDIR)
diff --git a/configure.ac b/configure.ac
index 46b625c..8900b1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -128,25 +128,33 @@ AC_ARG_WITH([lcrso-dir],
[ LCRSODIR="$libexecdir/lcrso" ])
AC_ARG_WITH([default-config-dir],
- [ --default-config-dir=DIR cluster config directory. ],
+ [ --default-config-dir=DIR
+ cluster config directory. ],
[ DEFAULT_CONFIG_DIR="$withval" ],
[ DEFAULT_CONFIG_DIR="$sysconfdir/cluster" ])
AC_ARG_WITH([default-config-file],
- [ --default-config-file=FILE cluster config file. ],
+ [ --default-config-file=FILE
+ cluster config file. ],
[ DEFAULT_CONFIG_FILE="$withval" ],
[ DEFAULT_CONFIG_FILE="cluster.conf" ])
AC_ARG_WITH([syslogfacility],
- [ --syslogfacility=FACILITY cluster default syslog facility. ],
+ [ --syslogfacility=FACILITY
+ cluster default syslog facility. ],
[ SYSLOGFACILITY="$withval" ],
[ SYSLOGFACILITY="LOG_LOCAL4" ])
AC_ARG_WITH([sysloglevel],
- [ --sysloglevel=LEVEL cluster default syslog level. ],
+ [ --sysloglevel=LEVEL
+ cluster default syslog level. ],
[ SYSLOGLEVEL="$withval" ],
[ SYSLOGLEVEL="LOG_INFO" ])
+AC_ARG_ENABLE([bindings],
+ [ --enable-bindings enable bindings build. ],
+ [ default="no" ])
+
## random vars
NOTIFYDDIR=${DEFAULT_CONFIG_DIR}/cman-notify.d
@@ -192,6 +200,8 @@ AC_DEFINE_UNQUOTED([SYSLOGFACILITY], $(eval echo ${SYSLOGFACILITY}),
AC_DEFINE_UNQUOTED([SYSLOGLEVEL], $(eval echo ${SYSLOGLEVEL}),
[Default syslog level])
+AM_CONDITIONAL(BUILD_BINDINGS, test "x${enable_bindings}" = xyes)
+
## *FLAGS handling
ENV_CFLAGS="$CFLAGS"