diff options
| author | Glenn Morris | 2010-05-07 19:05:24 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-07 19:05:24 -0700 |
| commit | 40c178792eb1464abede4fd86d3bb394f49e3131 (patch) | |
| tree | 886356df27d092af16683c8592ca23d2963fd39d /src/s | |
| parent | ba5bf5f0f9d661602397cd690d796940b17173ba (diff) | |
| download | emacs-40c178792eb1464abede4fd86d3bb394f49e3131.tar.gz emacs-40c178792eb1464abede4fd86d3bb394f49e3131.zip | |
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
* configure.in (HAVE_LIBNCURSES): New local variable.
(TERMINFO, LIBS_TERMCAP, TERMCAP_OBJ): New output variables,
replacing cpp in src/s/*.h and src/Makefile.in.
* src/Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
(TERMCAP_OBJ): New, set by configure, replacing termcapobj.
(termcapobj): Replace with TERMCAP_OBJ.
(otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
(LIBES): Use LIBS_TERMCAP as a variable.
* src/s/freebsd.h (osreldate.h): No longer include, since this file
does not use __FreeBSD_version any more.
* srs/s/aix4-2.h (TERMINFO):
* srs/s/cygwin.h (TERMINFO):
* srs/s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/freebsd.h (TERMINFO, LIBS_TERMCAP):
* srs/s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
* srs/s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
* srs/s/irix6-5.h (TERMINFO):
* srs/s/netbsd.h (LIBS_TERMCAP):
* srs/s/openbsd.h (TERMINFO, LIBS_TERMCAP):
* srs/s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
* srs/s/usg5-4.h (TERMINFO):
Move to configure.
* msdos/sed1v2.inp (LIBS_TERMCAP): Edit to empty.
(TERMCAP_OBJ): Edit to tparam.o.
* admin/CPP-DEFINES (LIBS_TERMCAP, TERMINFO): Remove.
Diffstat (limited to 'src/s')
| -rw-r--r-- | src/s/aix4-2.h | 5 | ||||
| -rw-r--r-- | src/s/cygwin.h | 4 | ||||
| -rw-r--r-- | src/s/darwin.h | 10 | ||||
| -rw-r--r-- | src/s/freebsd.h | 8 | ||||
| -rw-r--r-- | src/s/gnu-linux.h | 5 | ||||
| -rw-r--r-- | src/s/gnu.h | 7 | ||||
| -rw-r--r-- | src/s/hpux10-20.h | 9 | ||||
| -rw-r--r-- | src/s/irix6-5.h | 5 | ||||
| -rw-r--r-- | src/s/netbsd.h | 2 | ||||
| -rw-r--r-- | src/s/openbsd.h | 8 | ||||
| -rw-r--r-- | src/s/sol2-6.h | 12 | ||||
| -rw-r--r-- | src/s/usg5-4.h | 9 |
12 files changed, 6 insertions, 78 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h index 70bf299fae1..eb2003d9489 100644 --- a/src/s/aix4-2.h +++ b/src/s/aix4-2.h | |||
| @@ -96,11 +96,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 96 | #define LIBS_SYSTEM -lrts -lIM -liconv | 96 | #define LIBS_SYSTEM -lrts -lIM -liconv |
| 97 | #endif | 97 | #endif |
| 98 | 98 | ||
| 99 | |||
| 100 | /* Use terminfo instead of termcap. */ | ||
| 101 | |||
| 102 | #define TERMINFO | ||
| 103 | |||
| 104 | /* The following definition seems to be needed in AIX version 3.1.6.8. | 99 | /* The following definition seems to be needed in AIX version 3.1.6.8. |
| 105 | It may not have been needed in certain earlier versions. */ | 100 | It may not have been needed in certain earlier versions. */ |
| 106 | #define HAVE_TCATTR | 101 | #define HAVE_TCATTR |
diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 1b451456dd4..296b1970a97 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h | |||
| @@ -106,10 +106,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 106 | #define UNEXEC unexcw.o | 106 | #define UNEXEC unexcw.o |
| 107 | #define LINKER $(CC) | 107 | #define LINKER $(CC) |
| 108 | 108 | ||
| 109 | /* Use terminfo instead of termcap. Fewer environment variables to | ||
| 110 | go wrong, more terminal types. */ | ||
| 111 | #define TERMINFO | ||
| 112 | |||
| 113 | #define HAVE_SOCKETS | 109 | #define HAVE_SOCKETS |
| 114 | 110 | ||
| 115 | /* vfork() interacts badly with setsid(), causing ptys to fail to | 111 | /* vfork() interacts badly with setsid(), causing ptys to fail to |
diff --git a/src/s/darwin.h b/src/s/darwin.h index 0b7c99a4fcf..a3dfe06e83d 100644 --- a/src/s/darwin.h +++ b/src/s/darwin.h | |||
| @@ -179,16 +179,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 179 | #undef HAVE_POSIX_MEMALIGN | 179 | #undef HAVE_POSIX_MEMALIGN |
| 180 | #endif | 180 | #endif |
| 181 | 181 | ||
| 182 | /* The ncurses library has been moved out of the System framework in | ||
| 183 | Mac OS X 10.2. So if ./configure detects it, set the command-line | ||
| 184 | option to use it. */ | ||
| 185 | #ifdef HAVE_LIBNCURSES | ||
| 186 | #define LIBS_TERMCAP -lncurses | ||
| 187 | /* This prevents crashes when running Emacs in Terminal.app under | ||
| 188 | 10.2. */ | ||
| 189 | #define TERMINFO | ||
| 190 | #endif | ||
| 191 | |||
| 192 | /* Link this program just by running cc. */ | 182 | /* Link this program just by running cc. */ |
| 193 | #define ORDINARY_LINK | 183 | #define ORDINARY_LINK |
| 194 | 184 | ||
diff --git a/src/s/freebsd.h b/src/s/freebsd.h index 1e79e1d3581..50fdf65a1bc 100644 --- a/src/s/freebsd.h +++ b/src/s/freebsd.h | |||
| @@ -22,8 +22,6 @@ GNU General Public License for more details. | |||
| 22 | You should have received a copy of the GNU General Public License | 22 | You should have received a copy of the GNU General Public License |
| 23 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | 23 | along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
| 24 | 24 | ||
| 25 | #include <osreldate.h> | ||
| 26 | |||
| 27 | /* Get most of the stuff from bsd-common */ | 25 | /* Get most of the stuff from bsd-common */ |
| 28 | #include "bsd-common.h" | 26 | #include "bsd-common.h" |
| 29 | 27 | ||
| @@ -33,12 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 33 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 31 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 34 | 32 | ||
| 35 | #define LIBS_SYSTEM -lutil | 33 | #define LIBS_SYSTEM -lutil |
| 36 | #if __FreeBSD_version < 400000 | ||
| 37 | #define LIBS_TERMCAP -ltermcap | ||
| 38 | #else | ||
| 39 | #define TERMINFO | ||
| 40 | #define LIBS_TERMCAP -lncurses | ||
| 41 | #endif | ||
| 42 | 34 | ||
| 43 | #undef LIB_GCC | 35 | #undef LIB_GCC |
| 44 | #define LIB_GCC | 36 | #define LIB_GCC |
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h index f3a06990ed3..d010fc72615 100644 --- a/src/s/gnu-linux.h +++ b/src/s/gnu-linux.h | |||
| @@ -180,11 +180,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 180 | #undef LIB_GCC | 180 | #undef LIB_GCC |
| 181 | #define LIB_GCC | 181 | #define LIB_GCC |
| 182 | 182 | ||
| 183 | #ifdef HAVE_LIBNCURSES | ||
| 184 | #define TERMINFO | ||
| 185 | #define LIBS_TERMCAP -lncurses | ||
| 186 | #endif | ||
| 187 | |||
| 188 | #define UNEXEC unexelf.o | 183 | #define UNEXEC unexelf.o |
| 189 | 184 | ||
| 190 | /* This is to work around mysterious gcc failures in some system versions. | 185 | /* This is to work around mysterious gcc failures in some system versions. |
diff --git a/src/s/gnu.h b/src/s/gnu.h index bf68cabe051..9f6fe52a5de 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h | |||
| @@ -28,13 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 28 | 28 | ||
| 29 | #define SIGNALS_VIA_CHARACTERS | 29 | #define SIGNALS_VIA_CHARACTERS |
| 30 | 30 | ||
| 31 | /* Tell Emacs that we are a terminfo based system; disable the use | ||
| 32 | of local termcap. (GNU uses ncurses.) */ | ||
| 33 | #ifdef HAVE_LIBNCURSES | ||
| 34 | #define TERMINFO | ||
| 35 | #define LIBS_TERMCAP -lncurses | ||
| 36 | #endif | ||
| 37 | |||
| 38 | /* Use mmap directly for allocating larger buffers. */ | 31 | /* Use mmap directly for allocating larger buffers. */ |
| 39 | #ifdef DOUG_LEA_MALLOC | 32 | #ifdef DOUG_LEA_MALLOC |
| 40 | #undef REL_ALLOC | 33 | #undef REL_ALLOC |
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h index 50fe0e63aea..8dc2f4d97df 100644 --- a/src/s/hpux10-20.h +++ b/src/s/hpux10-20.h | |||
| @@ -77,9 +77,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 77 | 77 | ||
| 78 | /* Special hacks needed to make Emacs run on this system. */ | 78 | /* Special hacks needed to make Emacs run on this system. */ |
| 79 | 79 | ||
| 80 | /* Use the system provided termcap(3) library */ | ||
| 81 | #define TERMINFO | ||
| 82 | |||
| 83 | /* In hpux, the symbol SIGIO is defined, but the feature | 80 | /* In hpux, the symbol SIGIO is defined, but the feature |
| 84 | doesn't work in the way Emacs needs it to. */ | 81 | doesn't work in the way Emacs needs it to. */ |
| 85 | 82 | ||
| @@ -140,16 +137,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 140 | #define HAVE_XRMSETDATABASE | 137 | #define HAVE_XRMSETDATABASE |
| 141 | #endif | 138 | #endif |
| 142 | 139 | ||
| 143 | /* Make sure we get select from libc rather than from libcurses | ||
| 144 | because libcurses on HPUX 10.10 has a broken version of select. | ||
| 145 | We used to use -lc -lcurses, but this may be cleaner. */ | ||
| 146 | #define LIBS_TERMCAP -ltermcap | ||
| 147 | |||
| 148 | /* 2000-11-21: Temporarily disable Unix 98 large file support found by | 140 | /* 2000-11-21: Temporarily disable Unix 98 large file support found by |
| 149 | configure. It fails on HPUX 11, at least, because it enables | 141 | configure. It fails on HPUX 11, at least, because it enables |
| 150 | header sections which lose when `static' is defined away, as it is | 142 | header sections which lose when `static' is defined away, as it is |
| 151 | on HP-UX. (You get duplicate symbol errors on linking). */ | 143 | on HP-UX. (You get duplicate symbol errors on linking). */ |
| 152 | |||
| 153 | #undef _FILE_OFFSET_BITS | 144 | #undef _FILE_OFFSET_BITS |
| 154 | 145 | ||
| 155 | /* Define NO_REMAP if memory segmentation makes it not work well | 146 | /* Define NO_REMAP if memory segmentation makes it not work well |
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h index 43a98166d91..3614eab5a6c 100644 --- a/src/s/irix6-5.h +++ b/src/s/irix6-5.h | |||
| @@ -40,13 +40,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 40 | /* Make process_send_signal work by "typing" a signal character on the pty. */ | 40 | /* Make process_send_signal work by "typing" a signal character on the pty. */ |
| 41 | #define SIGNALS_VIA_CHARACTERS | 41 | #define SIGNALS_VIA_CHARACTERS |
| 42 | 42 | ||
| 43 | /* Use terminfo instead of termcap. */ | ||
| 44 | |||
| 45 | #define TERMINFO | ||
| 46 | |||
| 47 | /* Letter to use in finding device name of first pty, | 43 | /* Letter to use in finding device name of first pty, |
| 48 | if system supports pty's. 'a' means it is /dev/ptya0 */ | 44 | if system supports pty's. 'a' means it is /dev/ptya0 */ |
| 49 | |||
| 50 | #undef FIRST_PTY_LETTER | 45 | #undef FIRST_PTY_LETTER |
| 51 | #define FIRST_PTY_LETTER 'q' | 46 | #define FIRST_PTY_LETTER 'q' |
| 52 | 47 | ||
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index a92e8ce56ee..fa6d1141c8c 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -26,8 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | 26 | ||
| 27 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 27 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 28 | 28 | ||
| 29 | #define LIBS_TERMCAP -ltermcap | ||
| 30 | |||
| 31 | #undef LIB_GCC | 29 | #undef LIB_GCC |
| 32 | #define LIB_GCC | 30 | #define LIB_GCC |
| 33 | 31 | ||
diff --git a/src/s/openbsd.h b/src/s/openbsd.h index b5566a6d35e..d9d60e3b868 100644 --- a/src/s/openbsd.h +++ b/src/s/openbsd.h | |||
| @@ -1,13 +1,7 @@ | |||
| 1 | /* System file for openbsd. */ | 1 | /* System file for openbsd. */ |
| 2 | 2 | ||
| 3 | /* Mostly the same as NetBSD. */ | 3 | /* The same as NetBSD. Note there are differences in configure. */ |
| 4 | #include "netbsd.h" | 4 | #include "netbsd.h" |
| 5 | 5 | ||
| 6 | /* David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this | ||
| 7 | is necessary. Otherwise Emacs dumps core when run -nw. */ | ||
| 8 | #define TERMINFO | ||
| 9 | #undef LIBS_TERMCAP | ||
| 10 | #define LIBS_TERMCAP -lncurses | ||
| 11 | |||
| 12 | /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 | 6 | /* arch-tag: 7e3f65ca-3f48-4237-933f-2b208b21e8e2 |
| 13 | (do not change this comment) */ | 7 | (do not change this comment) */ |
diff --git a/src/s/sol2-6.h b/src/s/sol2-6.h index c05387d47f4..78d2bfb3b6b 100644 --- a/src/s/sol2-6.h +++ b/src/s/sol2-6.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* Definitions file for GNU Emacs running on Solaris 2.6. | 1 | /* Definitions file for GNU Emacs running on Solaris 2.6. |
| 2 | 2 | ||
| 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, | 3 | Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, |
| 4 | 2008, 2009, 2010 Free Software Foundation, Inc. | 4 | 2008, 2009, 2010 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -38,16 +38,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 38 | 38 | ||
| 39 | /* inoue@ainet.or.jp says Solaris has a bug related to X11R6-style | 39 | /* inoue@ainet.or.jp says Solaris has a bug related to X11R6-style |
| 40 | XIM support. */ | 40 | XIM support. */ |
| 41 | |||
| 42 | #define INHIBIT_X11R6_XIM | 41 | #define INHIBIT_X11R6_XIM |
| 43 | 42 | ||
| 44 | /* Must use the system's termcap, if we use any termcap. | ||
| 45 | It does special things. */ | ||
| 46 | |||
| 47 | #ifndef TERMINFO | ||
| 48 | #define LIBS_TERMCAP -ltermcap | ||
| 49 | #endif | ||
| 50 | |||
| 51 | /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock | 43 | /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock |
| 52 | rather than sighold/sigrelse, which appear to be BSD4.1 specific. | 44 | rather than sighold/sigrelse, which appear to be BSD4.1 specific. |
| 53 | It may also be appropriate for SVR4.x | 45 | It may also be appropriate for SVR4.x |
diff --git a/src/s/usg5-4.h b/src/s/usg5-4.h index 3065156ad70..3926ae08869 100644 --- a/src/s/usg5-4.h +++ b/src/s/usg5-4.h | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Definitions file for GNU Emacs running on AT&T's System V Release 4 | 1 | /* Definitions file for GNU Emacs running on AT&T's System V Release 4 |
| 2 | Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005, | 2 | |
| 3 | 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | 3 | Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
| 4 | 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -75,10 +76,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 75 | #define rindex strrchr | 76 | #define rindex strrchr |
| 76 | #endif /* ! defined (HAVE_RINDEX) */ | 77 | #endif /* ! defined (HAVE_RINDEX) */ |
| 77 | 78 | ||
| 78 | /* Use terminfo instead of termcap. */ | ||
| 79 | |||
| 80 | #define TERMINFO | ||
| 81 | |||
| 82 | 79 | ||
| 83 | /* The docs for system V/386 suggest v.3 has sigpause, | 80 | /* The docs for system V/386 suggest v.3 has sigpause, |
| 84 | so let's give it a try. */ | 81 | so let's give it a try. */ |