Mercurial > hg > xemacs-beta
comparison src/s/aix4-2.h @ 4759:aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
<870180fe0911101613m6b8efa4bpf083fd9013950807@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Wed, 18 Nov 2009 08:49:14 -0700 |
parents | 3ecd8885ac67 |
children | 2aa9cd456ae7 861f2601a38b |
comparison
equal
deleted
inserted
replaced
4758:75975fd0b7fc | 4759:aa5ed11f473b |
---|---|
1 #include "aix4-1.h" | 1 /* Definitions file for XEmacs running on IBM AIX version 4.2 |
2 * Copyright (C) 1985, 1986, 1990 Free Software Foundation, Inc. | |
3 * | |
4 * This file is part of XEmacs. | |
5 * | |
6 * XEmacs is free software; you can redistribute it and/or modify | |
7 * it under the terms of the GNU General Public License as published by | |
8 * the Free Software Foundation; either version 2, or (at your option) | |
9 * any later version. | |
10 * | |
11 * XEmacs is distributed in the hope that it will be useful, | |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 * GNU General Public License for more details. | |
15 * | |
16 * You should have received a copy of the GNU General Public License | |
17 * along with XEmacs; see the file COPYING. If not, write to | |
18 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
19 * Boston, MA 02111-1307, USA. */ | |
2 | 20 |
3 #undef ALIGN_DATA_RELOC | 21 /* Synched up with: FSF 19.31. */ |
4 | 22 |
23 /* | |
24 * Define symbols to identify the version of Unix this is. | |
25 * Define all the symbols that apply correctly. | |
26 */ | |
27 | |
28 #define USG /* System III, System V, etc */ | |
29 #define USG5 | |
30 | |
31 /* Specify IBM AIX version of system */ | |
32 | |
33 #ifndef AIX | |
34 #define AIX | |
35 #define AIX4 | |
36 #define AIX4_1 | |
37 #endif | |
38 | |
39 /* This symbol should be defined on AIX Version 3 ??????? */ | |
40 #ifndef _AIX | |
41 #define _AIX | |
42 #endif | |
43 | |
44 /* SYSTEM_TYPE should indicate the kind of system you are using. | |
45 * It sets the Lisp variable system-type. */ | |
46 | |
47 #define SYSTEM_TYPE "aix" | |
48 | |
49 /* The file containing the kernel's symbol table is called /unix. */ | |
50 | |
51 #define KERNEL_FILE "/unix" | |
52 | |
53 /* The symbol in the kernel where the load average is found | |
54 * is named avenrun. */ | |
55 | |
56 #define LDAV_SYMBOL "avenrun" | |
57 | |
58 /* Special itemss needed to make Emacs run on this system. */ | |
59 | |
60 /* On USG systems the system calls are interruptible by signals | |
61 * that the user program has elected to catch. Thus the system call | |
62 * must be retried in these cases. To handle this without massive | |
63 * changes in the source code, we remap the standard system call names | |
64 * to names for our own functions in sysdep.c that do the system call | |
65 * with retries. */ | |
66 | |
67 #define INTERRUPTIBLE_OPEN | |
68 #define INTERRUPTIBLE_IO | |
69 | |
70 #ifndef __GNUC__ | |
71 #define LINKER "cc" | |
72 #endif | |
73 | |
74 /* Prevent -lg from being used for debugging. Not needed. */ | |
75 | |
76 #define LIBS_DEBUG | |
77 | |
78 /* No need to specify -lc when linking. */ | |
79 | |
80 #define LIB_STANDARD | |
81 | |
82 /* Use terminfo instead of termcap. */ | |
83 | |
84 #define TERMINFO | |
85 | |
86 /* AIX doesn't define this. */ | |
87 #define unix 1 | |
88 | |
89 #ifndef __GNUC__ | |
90 /* Otherwise, XEmacs is just too big ... */ | |
91 #define C_SWITCH_SYSTEM "-mminimal-toc" | |
92 #endif | |
93 | |
94 #define HAVE_ALLOCA | |
95 | |
96 /* FIXME: This was needed for AIX 4.1. Is it for AIX 4.2? */ | |
97 /* The character-composition stuff is broken in X11R5. | |
98 * Even with XIMStatusNothing aliased to XIMStatusNone, | |
99 * tranle@intellicorp.com (Minh Tran-Le) reports that enabling | |
100 * the internationalization code causes the modifier keys C, M and Shift | |
101 * to beep after a mouse click. */ | |
102 #define X11R5_INHIBIT_I18N | |
103 | |
104 /* For AIX, it turns out compiling emacs under AIX 3.2.4 REQUIRES "cc -g" | |
105 * because "cc -O" crashes. Under AIX 3.2.5, "cc -O" is required because | |
106 * "cc -g" crashes. Go figure. --floppy@merlin.mit.edu */ | |
107 #ifndef __GNUC__ | |
108 #undef C_DEBUG_SWITCH | |
109 #undef C_OPTIMIZE_SWITCH | |
110 #define C_DEBUG_SWITCH | |
111 #define C_OPTIMIZE_SWITCH "-O" | |
112 #endif | |
113 | |
114 #define MAIL_USE_LOCKF | |
115 | |
116 /* XEmacs: from dkeller@VNET.IBM.COM */ | |
117 #define BROKEN_SIGIO | |
118 | |
119 #ifndef NOT_C_CODE | |
120 #define _XFUNCS_H_ 1 | |
121 | |
122 /* #### we don't use either any more. some AIX user should delete the include | |
123 * and see if anything breaks. --ben */ | |
124 /* AIX is happier when bzero and strcasecmp are declared */ | |
125 #include "strings.h" | |
126 | |
127 /* Forward declarations for xlc warning suppressions */ | |
128 struct ether_addr; | |
129 struct sockaddr_dl; | |
130 | |
131 #ifdef __xlC__ /* "eXceLlent C compiler" ?! */ | |
132 #if __xlC__ >= 1200 | |
133 /* IBM's C compiler option `-O3' is too aggressive. | |
134 * We recommend instead the combination `-O3 -qstrict', which seems safe. | |
135 * | |
136 * cc -O3 miscompiles at least two functions. From IBM's docs: | |
137 * | |
138 * IBM> -qstrict turns off the following optimizations: | |
139 * | |
140 * IBM> Performing code motion and scheduling on computations such as loads | |
141 * IBM> and floating-point computations that may trigger an exception. | |
142 * | |
143 * Nevertheless, we try to work with these compiler options. */ | |
144 #pragma option_override (bytecount_to_charcount, "opt(strict,yes)") | |
145 #pragma option_override (Fexpand_file_name, "opt(strict,yes)") | |
146 #endif /* recent IBM C compiler */ | |
147 #endif /* IBM's C compiler */ | |
148 | |
149 #endif /* C code */ | |
150 | |
151 /* getaddrinfo is broken in AIX 4.3 as per IY04165. | |
152 * At this time (2/21/2000), there's no PTF available. | |
153 * -- Mike Sperber <mike@xemacs.org> */ | |
154 | |
155 #undef HAVE_GETADDRINFO | |
156 | |
157 #ifdef __GNUC__ | |
158 #undef _NO_PROTO | |
159 #endif | |
160 | |
161 /* For AIX, it turns out compiling emacs under AIX 3.2.4 REQUIRES "cc -g" | |
162 * because "cc -O" crashes. Under AIX 3.2.5, "cc -O" is required because | |
163 * "cc -g" crashes. Go figure. --floppy@merlin.mit.edu. | |
164 * 4.1 seems to need -g again. -- larry@vaquita.mitra.com. */ | |
165 /* David Edelsohn <dje@watson.ibm.com> says that this actually depends | |
166 * on the version of XLC, which can't be predicted from the system version. | |
167 * What a mess! */ | |
168 #ifndef __GNUC__ | |
169 #undef C_DEBUG_SWITCH | |
170 #undef C_OPTIMIZE_SWITCH | |
171 #define C_DEBUG_SWITCH "-g" | |
172 #endif |