On Mon, Feb 03, 2025 at 10:15:38PM +0000, Enrico Forestieri wrote:

commit 9b22c347f9f864e73961d3549dd57ab5f0d595f1
Author: Enrico Forestieri <for...@lyx.org>
Date:   Mon Feb 3 23:12:41 2025 +0100

   Fix check for callstack printing

   The code was setting the cache variable before the check,
   so that callstack printing was turning out to be always
   possible due to the cached result...

Riki, Ok for stable?

---
config/lyxinclude.m4 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4
index d7063c8ec8..2224dee0ac 100644
--- a/config/lyxinclude.m4
+++ b/config/lyxinclude.m4
@@ -556,6 +556,7 @@ AC_DEFUN([LYX_CHECK_CALLSTACK_PRINTING],
               lyx_cv_callstack_printing=$enableval, 
lyx_cv_callstack_printing=yes)

if test x"$lyx_cv_callstack_printing" = xyes; then
+  AS_UNSET([lyx_cv_callstack_printing])
  AC_CACHE_CHECK([whether printing callstack is possible],
                 [lyx_cv_callstack_printing],
  [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
@@ -567,7 +568,7 @@ if test x"$lyx_cv_callstack_printing" = xyes; then
          backtrace_symbols(array, size);
          int status = 0;
          abi::__cxa_demangle("abcd", 0, 0, &status);
-  ]])],[],[lyx_cv_callstack_printing=no])])
+  ]])],[lyx_cv_callstack_printing=yes],[lyx_cv_callstack_printing=no])])
fi
if test x"$lyx_cv_callstack_printing" = xyes; then
  AC_DEFINE([LYX_CALLSTACK_PRINTING], 1,

--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to