From fc8ac40bfcd5d36bb1b6ba55adcb69ca901f92ec Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 17 Dec 2008 03:36:37 +0000 Subject: [PATCH] (trunk) autoconf's "debug mode" should base its default value on whether this is a branded release or an unofficial build. --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index c22bf3267..b8b99e05f 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,9 @@ AC_PROG_LIBTOOL if test m4_substr(peer_id_prefix,6,1) = "Z"; then AC_DEFINE(TR_UNSTABLE, 1, [Define to 1 if this is an unstable version of Transmission]) TR_UNSTABLE=yes + enable_debug=yes +else + enable_debug=no fi AM_CONDITIONAL(TR_UNSTABLE, test "x$TR_UNSTABLE" = "xyes") @@ -91,9 +94,7 @@ AC_TRY_LINK([#include ], [va_list ap1, ap2; va_copy(ap1, ap2);], dnl ---------------------------------------------------------------------------- dnl dnl debugging support -AC_ARG_ENABLE([debug], - AS_HELP_STRING([--enable-debug],[build with debugging support]),, - [enable_debug=no]) +AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug],[build with debugging support]),,,) if test "x$enable_debug" = "xyes" ; then CFLAGS+=" -g " CXXFLAGS+=" -g "