[sheepdog] [PATCH 3/5] add a new option --enable-earthquake for enabling earthquake ready sheep and dog
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Thu Dec 25 10:51:23 CET 2014
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
configure.ac | 9 +++++++++
dog/Makefile.am | 4 ++++
sheep/Makefile.am | 4 ++++
3 files changed, 17 insertions(+)
diff --git a/configure.ac b/configure.ac
index 0e77cc2..e3d41d8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -265,6 +265,11 @@ AC_ARG_ENABLE([diskvnodes],
[ enable_diskvnodes="no" ],)
AM_CONDITIONAL(BUILD_DISKVNODES, test x$enable_diskvnodes = xyes)
+AC_ARG_ENABLE([earthquake],
+ [ --enable-earthquake : enable earthquake debugger (default no) ],,
+ [ enable_earthquake="no" ],)
+AM_CONDITIONAL(BUILD_EARTHQUAKE, test x$enable_earthquake = xyes)
+
AC_ARG_ENABLE(systemd, AS_HELP_STRING([--enable-systemd],[enable systemd support]),enable_systemd=$enableval,enable_systemd="no")
dnl systemd detection
@@ -420,6 +425,10 @@ if test "x${enable_diskvnodes}" = xyes; then
AC_DEFINE_UNQUOTED(HAVE_DISKVNODES, 1, [have diskvnodes])
fi
+if test "x${enable_earthquake}" = xyes; then
+ AC_DEFINE_UNQUOTED(HAVE_EARTHQUAKE, 1, [have earthquake])
+fi
+
# extra warnings
EXTRA_WARNINGS=""
diff --git a/dog/Makefile.am b/dog/Makefile.am
index a7ead61..5ff4fc3 100644
--- a/dog/Makefile.am
+++ b/dog/Makefile.am
@@ -43,6 +43,10 @@ noinst_HEADERS = treeview.h dog.h farm/farm.h
EXTRA_DIST =
+if BUILD_EARTHQUAKE
+dog_LDADD += -leq_embed
+endif
+
install-exec-hook:
if [ -z "${DESTDIR}" ];then $(LN_S) -f ${sbindir}/dog ${sbindir}/collie;fi
diff --git a/sheep/Makefile.am b/sheep/Makefile.am
index 406a4ec..68c470b 100644
--- a/sheep/Makefile.am
+++ b/sheep/Makefile.am
@@ -68,6 +68,10 @@ noinst_HEADERS = sheep_priv.h cluster.h http/http.h trace/trace.h
EXTRA_DIST =
+if BUILD_EARTHQUAKE
+sheep_LDADD += -leq_embed
+endif
+
all-local:
@echo Built sheep
--
1.8.3.2
More information about the sheepdog
mailing list