Update FSF's address in the preamble.
[bpt/emacs.git] / src / m / ibmps2-aix.h
CommitLineData
20c428fd
JB
1/* machine description file for ibm ps/2 aix386.
2 Copyright (C) 1989 Free Software Foundation, Inc.
3
4This file is part of GNU Emacs.
5
6GNU Emacs is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
17385adc 8the Free Software Foundation; either version 2, or (at your option)
20c428fd
JB
9any later version.
10
11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to
3b7ad313
EN
18the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19Boston, MA 02111-1307, USA. */
20c428fd
JB
20
21
22/* The following line tells the configuration script what sort of
23 operating system this machine is likely to run.
24 USUAL-OPSYS="note"
25
26NOTE-START
27 Use -opsystem=usg5-3 on AIX 1.2.
28 -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not
29 work with certain new X window managers, and may be suboptimal.
30NOTE-END */
31
74d3f806
KH
32/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
33 is the most significant byte. */
34
35#undef WORDS_BIG_ENDIAN
36
20c428fd
JB
37/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
38 * group of arguments and treat it as an array of the arguments. */
39
40/* #define NO_ARG_ARRAY */
41
42/* Define WORD_MACHINE if addresses and such have
43 * to be corrected before they can be used as byte counts. */
44
45/* #define WORD_MACHINE */
46
20c428fd
JB
47/* Now define a symbol for the cpu type, if your compiler
48 does not define it automatically:
49 Ones defined so far include vax, m68000, ns16000, pyramid,
50 orion, tahoe, APOLLO and many others */
51
52#define INTEL386
53#define aix386
20c428fd
JB
54
55#define IBMAIX
56
57/* Use type int rather than a union, to represent Lisp_Object */
58
59#define NO_UNION_TYPE
60
61/* crt0.c, if it is used, should use the i386-bsd style of entry.
62 with no extra dummy args. On USG and XENIX,
63 NO_REMAP says this isn't used. */
64
65#define CRT0_DUMMIES bogus_fp,
66
67/* crt0.c should define a symbol `start' and do .globl with a dot. */
68
69#define DOT_GLOBAL_START
70
71/* USG systems do not actually support the load average,
72so disable it for them. */
73
74/* Define CANNOT_DUMP on machines where unexec does not work.
75 Then the function dump-emacs will not be defined
76 and temacs will do (load "loadup") automatically unless told otherwise. */
77
78/* #define CANNOT_DUMP */
79
80/* Define VIRT_ADDR_VARIES if the virtual addresses of
81 pure and impure space as loaded can vary, and even their
82 relative order cannot be relied on.
83
84 Otherwise Emacs assumes that text space precedes data space,
85 numerically. */
86
87/* #define VIRT_ADDR_VARIES */
88
89/* Define addresses, macros, change some setup for dump */
90
91#define NO_REMAP
92#undef static
93 /* Since NO_REMAP, problem with statics doesn't exist */
94
95#ifdef USG5_3
96#define TEXT_START 0x00000000
97#else
98#define TEXT_START 0x00400000
99#define TEXT_END 0
100#define DATA_START 0x00800000
101#define DATA_END 0
102
103/* The data segment in this machine always starts at address 0x00800000.
104 An address of data cannot be stored correctly in a Lisp object;
105 we always lose the high bits. We must tell XPNTR to add them back. */
106
107#define DATA_SEG_BITS 0x00800000
108#endif
109
110#if 0 /* I refuse to promulgate a recommendation that would make
111 users unable to debug - RMS. */
112/* delete the following line to foil optimization, enable debugging */
113#define C_DEBUG_SWITCH -O
114#endif
115
116#define BSTRING
20c428fd 117#define HAVE_VFORK
6da3d9e5
RS
118#undef HAVE_TERMIO
119#define HAVE_TERMIOS
120
121/* Send signals to subprocesses by "typing" special chars at them. */
122
123#define SIGNALS_VIA_CHARACTERS
20c428fd
JB
124
125/*
126 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir
127 * library functions. Almost, but not quite the same as
128 * the 4.2 functions
129 */
130#define SYSV_SYSTEM_DIR
131
132/*
133 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
134 * The 4.2 opendir, etc., library functions.
135 */
136#undef NONSYSTEM_DIR_LIBRARY
137
5df58331
KH
138/* AIX utimes allegedly causes SIGSEGV. */
139#undef HAVE_UTIMES /* override configuration decision */
20c428fd
JB
140
141/* AIX defines FIONREAD, but it does not work. */
142#define BROKEN_FIONREAD
143
144/* Data type of load average, as read out of kmem. */
145
146#define LOAD_AVE_TYPE long /* For AIX (sysV) */
147
148/* Convert that into an integer that is 100 for a load average of 1.0 */
149
150#define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0)
151\f
152/* This page was added in June 1990. It may be incorrect for some versions
153 of aix, so delete it if it causes trouble. */
154
155/* AIX has sigsetmask() */
156#undef sigsetmask
157
158/* AIX386 has BSD4.3 PTYs */
159
160#define HAVE_PTYS
161
162/* AIX has IPC. It also has sockets, and either can be used for client/server.
163 I would suggest the client/server code be changed to use HAVE_SOCKETS rather
164 than BSD as the conditional if sockets provide any advantages. */
165
166#define HAVE_SYSVIPC
167
168/* AIX has sockets */
169
170#define HAVE_SOCKETS
171/* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */
172
173/* Specify the font for X to use. */
174
175#define X_DEFAULT_FONT "8x13"
176
177/* AIX has a wait.h. */
178
179#define HAVE_WAIT_HEADER
180\f
181/* sioctl.h should not be included, says bytheway@cs.utah.edu. */
182#undef NEED_SIOCTL
183/* I'm guessing that that means it doesn't want ptem.h either. */
184#undef NEED_PTEM_H
185
186/* aix has `union wait' */
187#define HAVE_UNION_WAIT
188
189/* Here override various assumptions in ymakefile */
190
191/* Define C_ALLOCA if this machine does not support a true alloca
192 and the one written in C should be used instead.
193 Define HAVE_ALLOCA to say that the system provides a properly
194 working alloca function and it should be used.
195 Define neither one if an assembler-language alloca
196 in the file alloca.s should be used. */
197
198#ifdef __GNUC__
199#define HAVE_ALLOCA
200#define alloca(n) __builtin_alloca(n)
c395cc7b 201#if __GNUC__ < 2
20c428fd 202#define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc
c395cc7b 203#endif
20c428fd
JB
204/* -g fails to work, so it is omitted. */
205/* tranle says that -fstrength-reduce does not help. */
6da3d9e5 206#define C_DEBUG_SWITCH
20c428fd
JB
207#else
208#define C_ALLOCA
209#define STACK_DIRECTION -1 /* tell alloca.c which way it grows */
210#define LIBS_MACHINE -lbsd -lrts
211#endif
212
213#define OBJECTS_MACHINE hftctl.o
214#define LD_SWITCH_MACHINE -T0x00400000 -K -e start
6da3d9e5 215#define LIBS_DEBUG /* no -lg on aix ps/2 */
20c428fd
JB
216
217#ifdef USG5_3
218#define XICCC
219#define HAVE_GETWD
20c428fd
JB
220#undef LD_SWITCH_MACHINE
221#define LD_SWITCH_MACHINE -T0x0 -K -e start
222
223/* Things defined in s-usg5-3.h that need to be overridden. */
224#undef NOMULTIPLEJOBS
225#undef BROKEN_TIOCGETC
6da3d9e5 226#undef BROKEN_TIOCGWINSZ
20c428fd
JB
227#undef LIBX10_SYSTEM
228#undef LIBX11_SYSTEM
6da3d9e5 229#undef LIB_X11_LIB
20c428fd 230#endif
ebdf5546
RS
231
232/* Shared libraries are supported in a patch release of ps/2 1.2.1.
233 If the system has them, the user can turn them on, and this code
234 will make them work. */
235#define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */
236
237#ifdef USG_SHARED_LIBRARIES
238#define ORDINARY_LINK
239#undef LIB_STANDARD
240#undef LD_SWITCH_MACHINE
241#if __GNUC__ > 1
242#define LD_SWITCH_MACHINE -shlib
243#endif
244#endif