aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorGlenn Morris2012-06-11 19:17:11 -0400
committerGlenn Morris2012-06-11 19:17:11 -0400
commita9be7d2b190bb334b9b43a86ce7cbf8478f68e9b (patch)
treef7f3d7a43ff549fbc46db58a2629e92bf46e74fd /src/s
parent71cca84d57cd7b90c2cb9040fc703cdbe78e024c (diff)
downloademacs-a9be7d2b190bb334b9b43a86ce7cbf8478f68e9b.tar.gz
emacs-a9be7d2b190bb334b9b43a86ce7cbf8478f68e9b.zip
Move SYSTEM_TYPE from src/s to configure
* configure.in (SYSTEM_TYPE): New AC_DEFINE. * msdos/sed2v2.inp (SYSTEM_TYPE): Set it. * nt/config.nt (SYSTEM_TYPE): Define it. * src/s/aix4-2.h, src/s/bsd-common.h, src/s/cygwin.h, src/s/darwin.h: * src/s/gnu-kfreebsd.h, src/s/gnu-linux.h, src/s/gnu.h, src/s/hpux10-20.h: * src/s/irix6-5.h, src/s/ms-w32.h, src/s/msdos.h, src/s/template.h: * src/s/usg5-4-common.h: Remove SYSTEM_TYPE.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/aix4-2.h4
-rw-r--r--src/s/bsd-common.h4
-rw-r--r--src/s/cygwin.h4
-rw-r--r--src/s/darwin.h4
-rw-r--r--src/s/gnu-kfreebsd.h6
-rw-r--r--src/s/gnu-linux.h4
-rw-r--r--src/s/gnu.h3
-rw-r--r--src/s/hpux10-20.h4
-rw-r--r--src/s/irix6-5.h5
-rw-r--r--src/s/ms-w32.h4
-rw-r--r--src/s/msdos.h4
-rw-r--r--src/s/template.h5
-rw-r--r--src/s/usg5-4-common.h4
13 files changed, 0 insertions, 55 deletions
diff --git a/src/s/aix4-2.h b/src/s/aix4-2.h
index cacfdc7ed63..51ac9748f27 100644
--- a/src/s/aix4-2.h
+++ b/src/s/aix4-2.h
@@ -26,10 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26#define _AIX 26#define _AIX
27#endif 27#endif
28 28
29/* SYSTEM_TYPE should indicate the kind of system you are using.
30 It sets the Lisp variable system-type. */
31#define SYSTEM_TYPE "aix"
32
33/* In AIX, you allocate a pty by opening /dev/ptc to get the master side. 29/* In AIX, you allocate a pty by opening /dev/ptc to get the master side.
34 To get the name of the slave side, you just ttyname() the master side. */ 30 To get the name of the slave side, you just ttyname() the master side. */
35#define PTY_ITERATION int c; for (c = 0; !c ; c++) 31#define PTY_ITERATION int c; for (c = 0; !c ; c++)
diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h
index c2dbdb9a109..ce3d63bb49f 100644
--- a/src/s/bsd-common.h
+++ b/src/s/bsd-common.h
@@ -46,10 +46,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
46 for X functions taking float or double parameters. */ 46 for X functions taking float or double parameters. */
47#define NARROWPROTO 1 47#define NARROWPROTO 1
48 48
49/* SYSTEM_TYPE should indicate the kind of system you are using.
50 It sets the Lisp variable system-type. */
51#define SYSTEM_TYPE "berkeley-unix"
52
53/* Do not use interrupt_input = 1 by default, because in 4.3 49/* Do not use interrupt_input = 1 by default, because in 4.3
54 we can make noninterrupt input work properly. */ 50 we can make noninterrupt input work properly. */
55#undef INTERRUPT_INPUT 51#undef INTERRUPT_INPUT
diff --git a/src/s/cygwin.h b/src/s/cygwin.h
index 9310890351e..9b437341324 100644
--- a/src/s/cygwin.h
+++ b/src/s/cygwin.h
@@ -17,10 +17,6 @@ GNU General Public License for more details.
17You should have received a copy of the GNU General Public License 17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19 19
20/* SYSTEM_TYPE should indicate the kind of system you are using.
21 It sets the Lisp variable system-type. */
22#define SYSTEM_TYPE "cygwin"
23
24/* Emacs can read input using SIGIO and buffering characters itself, 20/* Emacs can read input using SIGIO and buffering characters itself,
25 or using CBREAK mode and making C-g cause SIGINT. 21 or using CBREAK mode and making C-g cause SIGINT.
26 The choice is controlled by the variable interrupt_input. 22 The choice is controlled by the variable interrupt_input.
diff --git a/src/s/darwin.h b/src/s/darwin.h
index 7c8e26f46cc..5033f91813d 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -31,10 +31,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
31#define DARWIN_OS 31#define DARWIN_OS
32 32
33 33
34/* SYSTEM_TYPE should indicate the kind of system you are using.
35 It sets the Lisp variable system-type. */
36#define SYSTEM_TYPE "darwin"
37
38/* Emacs can read input using SIGIO and buffering characters itself, 34/* Emacs can read input using SIGIO and buffering characters itself,
39 or using CBREAK mode and making C-g cause SIGINT. 35 or using CBREAK mode and making C-g cause SIGINT.
40 The choice is controlled by the variable interrupt_input. 36 The choice is controlled by the variable interrupt_input.
diff --git a/src/s/gnu-kfreebsd.h b/src/s/gnu-kfreebsd.h
index a85571915df..f32e6faccd2 100644
--- a/src/s/gnu-kfreebsd.h
+++ b/src/s/gnu-kfreebsd.h
@@ -1,9 +1,3 @@
1#include "gnu-linux.h" 1#include "gnu-linux.h"
2 2
3/* SYSTEM_TYPE should indicate the kind of system you are using.
4 It sets the Lisp variable system-type. */
5#undef SYSTEM_TYPE
6#define SYSTEM_TYPE "gnu/kfreebsd" /* All the best software is free */
7
8#define NO_TERMIO /* use only <termios.h> */ 3#define NO_TERMIO /* use only <termios.h> */
9
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index 409d0205520..20ce65207a1 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -25,10 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25#define USG 25#define USG
26#define GNU_LINUX 26#define GNU_LINUX
27 27
28/* SYSTEM_TYPE should indicate the kind of system you are using.
29 It sets the Lisp variable system-type. */
30#define SYSTEM_TYPE "gnu/linux" /* All the best software is free. */
31
32#ifdef emacs 28#ifdef emacs
33#ifdef HAVE_LINUX_VERSION_H 29#ifdef HAVE_LINUX_VERSION_H
34#include <linux/version.h> 30#include <linux/version.h>
diff --git a/src/s/gnu.h b/src/s/gnu.h
index cd72164a520..089890a12b5 100644
--- a/src/s/gnu.h
+++ b/src/s/gnu.h
@@ -21,9 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21/* Get most of the stuff from bsd-common */ 21/* Get most of the stuff from bsd-common */
22#include "bsd-common.h" 22#include "bsd-common.h"
23 23
24#undef SYSTEM_TYPE
25#define SYSTEM_TYPE "gnu"
26
27#define SIGNALS_VIA_CHARACTERS 24#define SIGNALS_VIA_CHARACTERS
28 25
29/* libc defines data_start. */ 26/* libc defines data_start. */
diff --git a/src/s/hpux10-20.h b/src/s/hpux10-20.h
index f1ae50c533a..36227b6ba7b 100644
--- a/src/s/hpux10-20.h
+++ b/src/s/hpux10-20.h
@@ -26,10 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26#define USG5 26#define USG5
27#define HPUX 27#define HPUX
28 28
29/* SYSTEM_TYPE should indicate the kind of system you are using.
30 It sets the Lisp variable system-type. */
31#define SYSTEM_TYPE "hpux"
32
33/* Letter to use in finding device name of first pty, 29/* Letter to use in finding device name of first pty,
34 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */ 30 if system supports pty's. 'p' means it is /dev/ptym/ptyp0 */
35#define FIRST_PTY_LETTER 'p' 31#define FIRST_PTY_LETTER 'p'
diff --git a/src/s/irix6-5.h b/src/s/irix6-5.h
index e5479c3b8d3..7e5a5505ee2 100644
--- a/src/s/irix6-5.h
+++ b/src/s/irix6-5.h
@@ -26,11 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26 26
27#define SETPGRP_RELEASES_CTTY 27#define SETPGRP_RELEASES_CTTY
28 28
29#ifdef SYSTEM_TYPE
30#undef SYSTEM_TYPE
31#endif
32#define SYSTEM_TYPE "irix"
33
34#ifdef SETUP_SLAVE_PTY 29#ifdef SETUP_SLAVE_PTY
35#undef SETUP_SLAVE_PTY 30#undef SETUP_SLAVE_PTY
36#endif 31#endif
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h
index f88128b27aa..5bf71d5f321 100644
--- a/src/s/ms-w32.h
+++ b/src/s/ms-w32.h
@@ -36,10 +36,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
36 convention must be whatever standard the libraries expect. */ 36 convention must be whatever standard the libraries expect. */
37#define _CALLBACK_ __cdecl 37#define _CALLBACK_ __cdecl
38 38
39/* SYSTEM_TYPE should indicate the kind of system you are using.
40 It sets the Lisp variable system-type. */
41#define SYSTEM_TYPE "windows-nt"
42
43#define NO_MATHERR 1 39#define NO_MATHERR 1
44 40
45/* Letter to use in finding device name of first pty, 41/* Letter to use in finding device name of first pty,
diff --git a/src/s/msdos.h b/src/s/msdos.h
index add2902d5f3..fc1a8c7506a 100644
--- a/src/s/msdos.h
+++ b/src/s/msdos.h
@@ -33,10 +33,6 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
33#define DOS_NT /* MSDOS or WINDOWSNT */ 33#define DOS_NT /* MSDOS or WINDOWSNT */
34#undef BSD_SYSTEM 34#undef BSD_SYSTEM
35 35
36/* SYSTEM_TYPE should indicate the kind of system you are using.
37 It sets the Lisp variable system-type. */
38#define SYSTEM_TYPE "ms-dos"
39
40/* subprocesses should be defined if you want to have code for 36/* subprocesses should be defined if you want to have code for
41 asynchronous subprocesses (as used in M-x compile and M-x shell). 37 asynchronous subprocesses (as used in M-x compile and M-x shell).
42 This is the only system that needs this. */ 38 This is the only system that needs this. */
diff --git a/src/s/template.h b/src/s/template.h
index 527694bd4bb..d8f811dc8aa 100644
--- a/src/s/template.h
+++ b/src/s/template.h
@@ -30,11 +30,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30/* #define BSD4_3 */ 30/* #define BSD4_3 */
31/* #define BSD_SYSTEM */ 31/* #define BSD_SYSTEM */
32 32
33/* SYSTEM_TYPE should indicate the kind of system you are using.
34 It sets the Lisp variable system-type. */
35
36#define SYSTEM_TYPE "berkeley-unix"
37
38/* Emacs can read input using SIGIO and buffering characters itself, 33/* Emacs can read input using SIGIO and buffering characters itself,
39 or using CBREAK mode and making C-g cause SIGINT. 34 or using CBREAK mode and making C-g cause SIGINT.
40 The choice is controlled by the variable interrupt_input. 35 The choice is controlled by the variable interrupt_input.
diff --git a/src/s/usg5-4-common.h b/src/s/usg5-4-common.h
index fabdd66f3bb..d2f3b5d77f5 100644
--- a/src/s/usg5-4-common.h
+++ b/src/s/usg5-4-common.h
@@ -26,10 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
26#define USG5 26#define USG5
27#define USG5_4 27#define USG5_4
28 28
29/* SYSTEM_TYPE should indicate the kind of system you are using.
30 It sets the Lisp variable system-type. */
31#define SYSTEM_TYPE "usg-unix-v"
32
33/* setjmp and longjmp can safely replace _setjmp and _longjmp, 29/* setjmp and longjmp can safely replace _setjmp and _longjmp,
34 but they will run slower. */ 30 but they will run slower. */
35#define _setjmp setjmp 31#define _setjmp setjmp