aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-04-30 20:30:11 -0400
committerGlenn Morris2012-04-30 20:30:11 -0400
commit9311dcff1de585f39b16e07fbc5a9fb681a06642 (patch)
treec088999761bf51c27cfbb4c005509654f3a1f7c7
parent6eac8dc9ac4a6478b88a397a876c272b16c0facc (diff)
downloademacs-9311dcff1de585f39b16e07fbc5a9fb681a06642.tar.gz
emacs-9311dcff1de585f39b16e07fbc5a9fb681a06642.zip
Remove HAVE_LIBNCURSES; it is required to be true
Also, it was a confusing name, since it does not necessarily mean that we literally have libncurses; rather that we have tputs etc. * configure.in (HAVE_LIBNCURSES): Remove; it is required to be true. * src/dispnew.c: Remove HAVE_LIBNCURSES test; it is always true on relevant platforms. * nt/config.nt (HAVE_LIBNCURSES): Remove undef; not needed.
-rw-r--r--ChangeLog2
-rw-r--r--configure.in13
-rw-r--r--nt/ChangeLog4
-rw-r--r--nt/config.nt3
-rw-r--r--src/ChangeLog3
-rw-r--r--src/dispnew.c7
6 files changed, 16 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index 090f0de7c12..40bdeece6f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
12012-05-01 Glenn Morris <rgm@gnu.org> 12012-05-01 Glenn Morris <rgm@gnu.org>
2 2
3 * configure.in (HAVE_LIBNCURSES): Remove; it is required to be true.
4
3 * configure.in (LD_SWITCH_X_SITE_RPATH): 5 * configure.in (LD_SWITCH_X_SITE_RPATH):
4 Rename from LD_SWITCH_X_SITE_AUX_RPATH. 6 Rename from LD_SWITCH_X_SITE_AUX_RPATH.
5 7
diff --git a/configure.in b/configure.in
index 47ab49793a4..1322703b3f4 100644
--- a/configure.in
+++ b/configure.in
@@ -2893,12 +2893,6 @@ Please try installing whichever of these libraries is most appropriate
2893for your system, together with its header files. 2893for your system, together with its header files.
2894For example, a libncurses-dev(el) or similar package.]) 2894For example, a libncurses-dev(el) or similar package.])
2895fi 2895fi
2896# Must define this when any termcap library is found.
2897AC_DEFINE(HAVE_LIBNCURSES, 1,
2898 [Define to 1 if you have the `ncurses' library (-lncurses).])
2899## FIXME This was the cpp logic, but I am not sure it is right.
2900## The above test has not necessarily found libncurses.
2901HAVE_LIBNCURSES=yes
2902 2896
2903## Use terminfo instead of termcap? 2897## Use terminfo instead of termcap?
2904## Note only system files NOT using terminfo are: 2898## Note only system files NOT using terminfo are:
@@ -2917,11 +2911,8 @@ case "$opsys" in
2917 ## Mac OS X 10.2. So if configure detects it, set the command-line 2911 ## Mac OS X 10.2. So if configure detects it, set the command-line
2918 ## option to use it. 2912 ## option to use it.
2919 darwin|gnu*) 2913 darwin|gnu*)
2920 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.) 2914 TERMINFO=yes
2921 if test "x$HAVE_LIBNCURSES" = "xyes"; then 2915 LIBS_TERMCAP="-lncurses"
2922 TERMINFO=yes
2923 LIBS_TERMCAP="-lncurses"
2924 fi
2925 ;; 2916 ;;
2926 2917
2927 freebsd) 2918 freebsd)
diff --git a/nt/ChangeLog b/nt/ChangeLog
index c76695a4a99..0374a3df0f5 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,7 @@
12012-05-01 Glenn Morris <rgm@gnu.org>
2
3 * config.nt (HAVE_LIBNCURSES): Remove undef; not needed.
4
12012-04-14 Dani Moncayo <dmoncayo@gmail.com> (tiny change) 52012-04-14 Dani Moncayo <dmoncayo@gmail.com> (tiny change)
2 6
3 * makefile.w32-in: Fix typo (Bug#10261). 7 * makefile.w32-in: Fix typo (Bug#10261).
diff --git a/nt/config.nt b/nt/config.nt
index 8aadf2c150d..8b819af5cac 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -1,6 +1,6 @@
1/* GNU Emacs site configuration template file. -*- C -*- 1/* GNU Emacs site configuration template file. -*- C -*-
2 2
3Copyright (C) 1988, 1993-1994, 2001-2012 Free Software Foundation, Inc. 3Copyright (C) 1988, 1993-1994, 2001-2012 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -138,7 +138,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
138#undef HAVE_LIBPTHREADS 138#undef HAVE_LIBPTHREADS
139#undef HAVE_LIBRESOLV 139#undef HAVE_LIBRESOLV
140#undef HAVE_LIBXMU 140#undef HAVE_LIBXMU
141#undef HAVE_LIBNCURSES
142#undef HAVE_LIBINTL 141#undef HAVE_LIBINTL
143 142
144/* movemail Kerberos support */ 143/* movemail Kerberos support */
diff --git a/src/ChangeLog b/src/ChangeLog
index f1e175a968d..c02d919a2e2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12012-05-01 Glenn Morris <rgm@gnu.org> 12012-05-01 Glenn Morris <rgm@gnu.org>
2 2
3 * dispnew.c: Remove HAVE_LIBNCURSES test;
4 it is always true on relevant platforms.
5
3 * Makefile.in (LD_SWITCH_X_SITE_RPATH): 6 * Makefile.in (LD_SWITCH_X_SITE_RPATH):
4 Rename from LD_SWITCH_X_SITE_AUX_RPATH. 7 Rename from LD_SWITCH_X_SITE_AUX_RPATH.
5 8
diff --git a/src/dispnew.c b/src/dispnew.c
index b313852efe2..a50877a6a90 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -1,5 +1,6 @@
1/* Updating of data structures for redisplay. 1/* Updating of data structures for redisplay.
2 Copyright (C) 1985-1988, 1993-1995, 1997-2012 Free Software Foundation, Inc. 2
3Copyright (C) 1985-1988, 1993-1995, 1997-2012 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -87,7 +88,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
87#endif 88#endif
88#endif /* not __GNU_LIBRARY__ */ 89#endif /* not __GNU_LIBRARY__ */
89 90
90#if defined (HAVE_TERM_H) && defined (GNU_LINUX) && defined (HAVE_LIBNCURSES) 91#if defined (HAVE_TERM_H) && defined (GNU_LINUX)
91#include <term.h> /* for tgetent */ 92#include <term.h> /* for tgetent */
92#endif 93#endif
93 94
@@ -6303,7 +6304,7 @@ init_display (void)
6303#ifdef HAVE_X11 6304#ifdef HAVE_X11
6304 Vwindow_system_version = make_number (11); 6305 Vwindow_system_version = make_number (11);
6305#endif 6306#endif
6306#if defined (GNU_LINUX) && defined (HAVE_LIBNCURSES) 6307#ifdef GNU_LINUX
6307 /* In some versions of ncurses, 6308 /* In some versions of ncurses,
6308 tputs crashes if we have not called tgetent. 6309 tputs crashes if we have not called tgetent.
6309 So call tgetent. */ 6310 So call tgetent. */