+2022-09-02 Bruno Haible <bruno@clisp.org>
+
+ terminfo: Don't disturb the termcap module.
+ * m4/terminfo.m4 (gl_TERMINFO_BODY): Save and restore the variables
+ determined by the gl_TERMCAP_BODY macro.
+
2022-08-22 Paul Eggert <eggert@cs.ucla.edu>
tempname: don't lose entropy in seed
-# terminfo.m4 serial 4
+# terminfo.m4 serial 5
dnl Copyright (C) 2000-2022 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
AC_REQUIRE([AC_LIB_RPATH])
+ dnl Avoid disturbing the gl_TERMCAP_BODY macro.
+ gl_save_LIBTERMCAP="$LIBTERMCAP"
+ gl_save_LTLIBTERMCAP="$LTLIBTERMCAP"
+ gl_save_INCTERMCAP="$INCTERMCAP"
+
if test "$gl_curses_allowed" != no; then
dnl Search for libncurses and define LIBNCURSES, LTLIBNCURSES and INCNCURSES
LIBS="$gl_save_LIBS"
])
fi
+
+ dnl Avoid disturbing the gl_TERMCAP_BODY macro.
+ LIBTERMCAP="$gl_save_LIBTERMCAP"
+ LTLIBTERMCAP="$gl_save_LTLIBTERMCAP"
+ INCTERMCAP="$gl_save_INCTERMCAP"
])