]> code.delx.au - gnu-emacs/blob - src/m/pmax.h
(lgrep, rgrep): Use add-to-history.
[gnu-emacs] / src / m / pmax.h
1 /* Machine description file for DEC MIPS machines. */
2
3 #include "mips.h"
4
5 /* The following line tells the configuration script what sort of
6 operating system this machine is likely to run.
7 USUAL-OPSYS="note"
8
9 NOTE-START
10 The operating system would be either osf1, ultrix, or NetBSD.
11 NOTE-END */
12
13 #ifndef __MIPSEB__
14 #undef WORDS_BIG_ENDIAN
15 #endif
16 #if defined (__NetBSD__)
17 #define BROKEN_NOCOMBRELOC
18 #else
19 #undef LIB_STANDARD
20 #undef START_FILES
21 #endif
22 #undef COFF
23 #undef TERMINFO
24 #define MAIL_USE_FLOCK
25 #define HAVE_UNION_WAIT
26
27
28 #ifdef MACH
29 #define START_FILES pre-crt0.o /usr/lib/crt0.o
30 #else
31 #if !defined (__NetBSD__)
32 /* This line starts being needed with ultrix 4.0. */
33 /* You must delete it for version 3.1. */
34 #define START_FILES pre-crt0.o /usr/lib/cmplrs/cc/crt0.o
35 #endif
36 #endif
37
38 /* Supposedly the following will overcome a kernel bug. */
39 #undef LD_SWITCH_MACHINE
40 #undef DATA_START
41 #define DATA_START 0x10000000
42 #define DATA_SEG_BITS 0x10000000
43
44 #if 0
45 /* I don't see any such conflict in Ultrix 4.2, 4.2a, or 4.3. And
46 the relocating allocator is a real win. -JimB */
47
48 /* In Ultrix 4.1, XvmsAlloc.o in libX11.a seems to insist
49 on defining malloc itself. This should avoid conflicting with it. */
50 #define SYSTEM_MALLOC
51 #endif
52
53 /* Override what mips.h says about this. */
54 #if !defined (__NetBSD__)
55 #undef LINKER
56 #endif
57
58 #ifdef ultrix
59 /* Ultrix 4.2 (perhaps also 4.1) implements O_NONBLOCK
60 but it doesn't work right;
61 and it causes hanging in read_process_output. */
62 #define BROKEN_O_NONBLOCK
63 #endif
64
65 #ifndef __NetBSD__
66 /* mcc@timessqr.gc.cuny.edu says this makes Emacs work with DECnet. */
67 #ifdef HAVE_LIBDNET
68 #define LIBS_MACHINE -ldnet
69 #endif
70
71 /* mcc@timessqr.gc.cuny.edu says it is /vmunix on Ultrix 4.2a. */
72 #undef KERNEL_FILE
73 #define KERNEL_FILE "/vmunix"
74 #endif
75
76 #ifdef ultrix
77 /* Jim Wilson writes:
78 [...] The X11 include files that Dec distributes with Ultrix
79 are bogus.
80
81 When __STDC__ is defined (which is true with gcc), the X11 include files
82 try to define prototypes. The prototypes however use types which haven't
83 been defined yet, and thus we get syntax/parse errors.
84
85 You can not fix this by changing the include files, because the prototypes
86 create circular dependencies, in particular Xutil.h depends on types defined
87 in Xlib.h, and Xlib.h depends on types defined in Xutil.h. So, no matter
88 which order you try to include them in, it will still fail.
89
90 Compiling with -DNeedFunctionPrototypes=0 will solve the problem by
91 directly inhibiting the bad prototypes. This could perhaps just be put in
92 an a Ultrix configuration file.
93
94 Using the MIT X11 distribution instead of the one provided by Dec will
95 also solve the problem, but I doubt you can convince everyone to do this. */
96 /* Addendum: the MIT X11 distribution neglects to define certain symbols
97 when NeedFunctionPrototypes is 0, but still tries to use them when
98 NeedVarargsPrototypes is 1 (which is its default value). So if we're
99 going to disable non-variadic prototypes, we also need to disable
100 variadic prototypes. --kwzh@gnu.ai.mit.edu */
101 #define C_SWITCH_X_MACHINE -DNeedFunctionPrototypes=0 -DNeedVarargsPrototypes=0
102 #endif
103
104 /* Enable a fix in process.c. */
105 #define SET_CHILD_PTY_PGRP
106
107 /* arch-tag: 45d5070e-d2b7-479f-b336-3fd497c36e15
108 (do not change this comment) */