From 9c0a998fd4606d90fcb0d861fd6a270828d85f55 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 10 Sep 2013 16:08:09 +0200 Subject: [PATCH 2/7] configure: add AC_ARG_ENABLE(debug) https://bugs.freedesktop.org/show_bug.cgi?id=69216 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index cc96472..bd19383 100644 --- a/configure.ac +++ b/configure.ac @@ -89,6 +89,10 @@ TP_COMPILER_WARNINGS([ERROR_CFLAGS], [test "x$enable_fatal_warnings" = xyes], unused-parameter]) AC_SUBST([ERROR_CFLAGS]) +AC_ARG_ENABLE(debug, + AC_HELP_STRING([--disable-debug],[compile without debug code]), + enable_debug=$enableval, enable_debug=yes ) + AS_IF([test x$enable_debug = xyes], [AC_DEFINE(ENABLE_DEBUG, [], [Enable debug code])]) -- 1.8.3.1