[sheepdog] [PATCH 5/6] configure: exit if --enable-trace is used with debug options

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Jul 12 02:51:39 CEST 2012


Sheepdog tracer assumes that inline functions are inlined, so we
cannot use it with the gcc -O0 option.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 configure.ac |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6cc6e18..8167a1d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -275,6 +275,10 @@ if test "x${enable_accord}" = 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)
+	fi
 	AC_CHECK_LIB([rt], [clock_gettime],,
 		AC_MSG_ERROR(librt not found))
 	AC_DEFINE_UNQUOTED([HAVE_TRACE], 1, [have trace])
-- 
1.7.2.5




More information about the sheepdog mailing list