diff options
author | Andrea Corallo <akrl@sdf.org> | 2021-01-08 21:40:45 +0100 |
---|---|---|
committer | Andrea Corallo <akrl@sdf.org> | 2021-01-08 21:40:45 +0100 |
commit | 400f620f24b90540f71673a998c41327237330be (patch) | |
tree | 2e94333ffc6ac99987f74833bafe3191eb83c4ed /configure.ac | |
parent | 213b5d73159cafbdd52b9c0fb0479544cca98a77 (diff) | |
parent | a31bfd594523dc06941ceb89cdbeabcd4a5d19f7 (diff) | |
download | emacs-400f620f24b90540f71673a998c41327237330be.tar.gz |
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 255fec9a8be..1f9fd330a35 100644 --- a/configure.ac +++ b/configure.ac @@ -4499,6 +4499,18 @@ TERMCAP_OBJ=tparam.o if test $TERMINFO = yes; then AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.]) TERMCAP_OBJ=terminfo.o + AC_CACHE_CHECK([whether $LIBS_TERMCAP library defines BC], + [emacs_cv_terminfo_defines_BC], + [OLD_LIBS=$LIBS + LIBS="$LIBS $LIBS_TERMCAP" + AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern char *BC;]], [[return !*BC;]])], + [emacs_cv_terminfo_defines_BC=yes], + [emacs_cv_terminfo_defines_BC=no]) + LIBS=$OLD_LIBS]) + if test "$emacs_cv_terminfo_defines_BC" = yes; then + AC_DEFINE([TERMINFO_DEFINES_BC], 1, [Define to 1 if the + terminfo library defines the variables BC, PC, and UP.]) + fi fi if test "X$LIBS_TERMCAP" = "X-lncurses"; then AC_DEFINE(USE_NCURSES, 1, [Define to 1 if you use ncurses.]) |