[sheepdog] [PATCH v2 07/10] configure: support tracer with debug build
MORITA Kazutaka
morita.kazutaka at gmail.com
Fri Aug 9 05:22:01 CEST 2013
From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
Now we can use tracer with debug build. This patch enables it by
default when --enable-debug is specified. Let's see whether it should
be enabled in the release build too.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
configure.ac | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 50f822f..df9f3c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -210,7 +210,7 @@ AC_ARG_WITH([initddir],
AC_ARG_ENABLE([trace],
[ --enable-trace : enable trace],,
- [ enable_trace="no" ],)
+ [ enable_trace="${enable_debug}" ],)
AM_CONDITIONAL(BUILD_TRACE, test x$enable_trace = xyes)
PKG_CHECK_MODULES([fuse],[fuse], HAVE_FUSE="yes", HAVE_FUSE="no")
@@ -282,9 +282,8 @@ if test "x${enable_zookeeper}" = xyes; then
fi
if test "x${enable_trace}" = xyes; then
- if test "x${enable_debug}" = xyes || \
- test "x${enable_coverage}" = xyes; then
- AC_MSG_ERROR(tracer cannot be used with debug options)
+ if test "x${enable_coverage}" = xyes; then
+ AC_MSG_ERROR(tracer cannot be used with coverage options)
fi
if [[[ $host != *x86_64* ]]]; then
AC_MSG_ERROR(tracer can be used on x86_64 architectures)
--
1.7.9.5
More information about the sheepdog
mailing list