From 4b703ef698a5242c9cd4d3181b28d8f0acb5e786 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Wed, 22 Mar 2006 13:44:55 -0500 Subject: [svn-r12130] Purpose: Disable debugging feature Description: Disable the "function stack" by default & take out it's dependency on the "enable-debug" configure flag. The function stack code can slow things down quite a bit and shouldn't be enabled for the upcoming alpha testing. Platforms tested: FreeBSD 4.11 (sleipnir) Linux 2.4 (chicago) Mac OSX (amazon) --- configure | 16 +++++----------- configure.in | 16 ++++------------ 2 files changed, 9 insertions(+), 23 deletions(-) diff --git a/configure b/configure index 06cac9e..9436ba9 100755 --- a/configure +++ b/configure @@ -1070,8 +1070,8 @@ Optional Features: specify a comma-separated list of package names without the leading H5 or the word no. The default is most packages. - --enable-funcstack Enable the function stack tracing. Default=no if - debug is disabled. + --enable-funcstack Enable the function stack tracing (for developer + debugging). --enable-trace Enable API tracing capability. Default=no if debug is disabled. --enable-instrument Enable library instrumentation of optimization @@ -47806,16 +47806,9 @@ if test "${enable_funcstack+set}" = set; then FUNCSTACK=$enableval fi; -if test "X-$FUNCSTACK" = X- ; then - if test -z "$DEBUG_PKG" ; then - FUNCSTACK=no - else - FUNCSTACK=yes - fi -fi case "X-$FUNCSTACK" in - X-|X-yes) - FUNCSTACK="yes" + X-yes) + FUNCSTACK=yes echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 @@ -47825,6 +47818,7 @@ _ACEOF ;; *) + FUNCSTACK=no echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 ;; diff --git a/configure.in b/configure.in index f600b51..decdeb2 100644 --- a/configure.in +++ b/configure.in @@ -1822,26 +1822,18 @@ dnl AC_MSG_CHECKING([whether function stack tracking is enabled]) AC_ARG_ENABLE([funcstack], [AC_HELP_STRING([--enable-funcstack], - [Enable the function stack tracing. - Default=no if debug is disabled.])], + [Enable the function stack tracing (for developer debugging).])], [FUNCSTACK=$enableval]) -dnl Default to no if debug is disabled -if test "X-$FUNCSTACK" = X- ; then - if test -z "$DEBUG_PKG" ; then - FUNCSTACK=no - else - FUNCSTACK=yes - fi -fi case "X-$FUNCSTACK" in - X-|X-yes) - FUNCSTACK="yes" + X-yes) + FUNCSTACK=yes AC_MSG_RESULT([yes]) AC_DEFINE([HAVE_FUNCSTACK], [1], [Define if the function stack tracing code is to be compiled in]) ;; *) + FUNCSTACK=no AC_MSG_RESULT([no]) ;; esac -- cgit v0.12