aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2013-07-23 09:08:57 +0100
committerPaul Eggert2013-07-23 09:08:57 +0100
commita29c3e6db03a411f1a09baff72f87650f9a8798f (patch)
treeb6b6df5f0cea38390c4a4da43fd701fb110c2ae0
parentf274311c2cad468abbe4bdbb25362e2fe6ccb5c2 (diff)
downloademacs-a29c3e6db03a411f1a09baff72f87650f9a8798f.tar.gz
emacs-a29c3e6db03a411f1a09baff72f87650f9a8798f.zip
Port to GNU/Linux systems with tinfo but not ncurses.
* configure.ac (USE_NCURSES): New symbol. * src/dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX, to decide whether ncurses is being used. Without this change, GCC complains about tgetent not being declared, on a system that has tinfo installed but ncurses not installed.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac3
-rw-r--r--src/ChangeLog6
-rw-r--r--src/dispnew.c2
4 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ec76b4257e4..5c465bf2ff9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12013-07-23 Paul Eggert <eggert@cs.ucla.edu>
2
3 Port to Ubuntu 12.04 with tinfo but not ncurses.
4 * configure.ac (USE_NCURSES): New symbol.
5
12013-07-20 Paul Eggert <eggert@cs.ucla.edu> 62013-07-20 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Fix array bounds violation when pty allocation fails. 8 Fix array bounds violation when pty allocation fails.
diff --git a/configure.ac b/configure.ac
index dfe2181fce8..f48822480e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3406,6 +3406,9 @@ if test $TERMINFO = yes; then
3406 AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.]) 3406 AC_DEFINE(TERMINFO, 1, [Define to 1 if you use terminfo instead of termcap.])
3407 TERMCAP_OBJ=terminfo.o 3407 TERMCAP_OBJ=terminfo.o
3408fi 3408fi
3409if test "X$LIBS_TERMCAP" = "X-lncurses"; then
3410 AC_DEFINE(USE_NCURSES, 1, [Define to 1 if you use ncurses.])
3411fi
3409AC_SUBST(LIBS_TERMCAP) 3412AC_SUBST(LIBS_TERMCAP)
3410AC_SUBST(TERMCAP_OBJ) 3413AC_SUBST(TERMCAP_OBJ)
3411 3414
diff --git a/src/ChangeLog b/src/ChangeLog
index cc8d7f5edee..8a51744ba4b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,11 @@
12013-07-23 Paul Eggert <eggert@cs.ucla.edu> 12013-07-23 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Port to GNU/Linux systems with tinfo but not ncurses.
4 * dispnew.c (init_display): Depend on USE_NCURSES, not GNU_LINUX,
5 to decide whether ncurses is being used. Without this change,
6 GCC complains about tgetent not being declared, on a system
7 that has tinfo installed but ncurses not installed.
8
3 * eval.c (Fprogn): Check that BODY is a proper list. 9 * eval.c (Fprogn): Check that BODY is a proper list.
4 10
5 Tune UNEVALLED functions by using XCAR instead of Fcar, etc. 11 Tune UNEVALLED functions by using XCAR instead of Fcar, etc.
diff --git a/src/dispnew.c b/src/dispnew.c
index ef75ed6d176..522a0e6a30d 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6041,7 +6041,7 @@ init_display (void)
6041#ifdef HAVE_X11 6041#ifdef HAVE_X11
6042 Vwindow_system_version = make_number (11); 6042 Vwindow_system_version = make_number (11);
6043#endif 6043#endif
6044#ifdef GNU_LINUX 6044#ifdef USE_NCURSES
6045 /* In some versions of ncurses, 6045 /* In some versions of ncurses,
6046 tputs crashes if we have not called tgetent. 6046 tputs crashes if we have not called tgetent.
6047 So call tgetent. */ 6047 So call tgetent. */