From: Sebastien GODARD Date: Sat, 20 Jun 2020 16:24:12 +0000 (+0200) Subject: configure: Fix --enable-debuginfo option X-Git-Tag: v12.4.0~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1164a21fcce9eba81490d65f29ece9e8a11c8f03;p=sysstat configure: Fix --enable-debuginfo option Signed-off-by: Sebastien GODARD --- diff --git a/configure b/configure index 681ad1f..a9a2a5d 100755 --- a/configure +++ b/configure @@ -623,7 +623,6 @@ ac_subst_vars='LTLIBOBJS LIBOBJS STRIP DFLAGS -WITH_DEBUG INSTALL_DOC COLLECT_ALL REM_CHOWN @@ -5570,7 +5569,9 @@ $as_echo "$AUX_DOC" >&6; } # Set directory for installing manual pages (see comment in Makefile) -# Check whether --debuginfo options should be allowed +# Check whether debug mode should be activated +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debug mode should be activated" >&5 +$as_echo_n "checking whether debug mode should be activated... " >&6; } # Check whether --enable-debuginfo was given. if test "${enable_debuginfo+set}" = set; then : enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG" @@ -5578,7 +5579,8 @@ else WITH_DEBUG=no fi - +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_DEBUG" >&5 +$as_echo "$WITH_DEBUG" >&6; } # Check whether object files should be stripped diff --git a/configure.in b/configure.in index 6e5a8f5..b75dc17 100644 --- a/configure.in +++ b/configure.in @@ -673,12 +673,13 @@ AC_SUBST(INSTALL_DOC) # Set directory for installing manual pages (see comment in Makefile) AC_SUBST(mandir) -# Check whether --debuginfo options should be allowed +# Check whether debug mode should be activated +AC_MSG_CHECKING(whether debug mode should be activated) AC_ARG_ENABLE(debuginfo, AC_HELP_STRING([--enable-debuginfo], [enable debug output (--debuginfo option)]), WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG" , WITH_DEBUG=no) -AC_SUBST(WITH_DEBUG) +AC_MSG_RESULT($WITH_DEBUG) AC_SUBST(DFLAGS) # Check whether object files should be stripped