commit dd2039f373bcf2b15e559b5ed83d725fa8bf23af
Author: Enrico Forestieri <for...@lyx.org>
Date:   Wed Feb 5 11:27:46 2025 +0100

    Amend 9b22c347
    
    Better change the name of the configure option rather than
    clearing the name of the cached variable before the check.
    
    Indeed, this would defeat the reason for caching, even if in
    our case it makes a difference only if persistent caching
    is activated by using the -C or --config-cache option to configure.
    
    However, note that persistent caching is not recommended:
    https://autotools.info/autoconf/caching.html
---
 config/lyxinclude.m4 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/config/lyxinclude.m4 b/config/lyxinclude.m4
index 2224dee0ac..23f8d7587f 100644
--- a/config/lyxinclude.m4
+++ b/config/lyxinclude.m4
@@ -553,10 +553,9 @@ dnl        necessary APIs are available to print 
callstacks.
 AC_DEFUN([LYX_CHECK_CALLSTACK_PRINTING],
 [AC_ARG_ENABLE([callstack-printing],
                [AS_HELP_STRING([--disable-callstack-printing],[do not print a 
callstack when crashing])],
-               lyx_cv_callstack_printing=$enableval, 
lyx_cv_callstack_printing=yes)
+               lyx_callstack_printing=$enableval, lyx_callstack_printing=yes)
 
-if test x"$lyx_cv_callstack_printing" = xyes; then
-  AS_UNSET([lyx_cv_callstack_printing])
+if test x"$lyx_callstack_printing" = xyes; then
   AC_CACHE_CHECK([whether printing callstack is possible],
                 [lyx_cv_callstack_printing],
   [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to