(Fcompute_motion): Fix symbol name in previous change.
[emacs.git] / src / m / ibmps2-aix.h
blobda2720056421a2a94a9425d97dbfb9005d680395
1 /* machine description file for ibm ps/2 aix386.
2 Copyright (C) 1989 Free Software Foundation, Inc.
4 This file is part of GNU Emacs.
6 GNU Emacs 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.
11 GNU Emacs 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.
16 You should have received a copy of the GNU General Public License
17 along with GNU Emacs; see the file COPYING. If not, write to
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 /* The following line tells the configuration script what sort of
22 operating system this machine is likely to run.
23 USUAL-OPSYS="note"
25 NOTE-START
26 Use -opsystem=usg5-3 on AIX 1.2.
27 -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not
28 work with certain new X window managers, and may be suboptimal.
29 NOTE-END */
31 /* The following three symbols give information on
32 the size of various data types. */
34 #define SHORTBITS 16 /* Number of bits in a short */
36 #define INTBITS 32 /* Number of bits in an int */
38 #define LONGBITS 32 /* Number of bits in a long */
40 /* i386 is not big-endian: lowest numbered byte is least significant. */
42 /* #undef BIG_ENDIAN */
44 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
45 * group of arguments and treat it as an array of the arguments. */
47 /* #define NO_ARG_ARRAY */
49 /* Define WORD_MACHINE if addresses and such have
50 * to be corrected before they can be used as byte counts. */
52 /* #define WORD_MACHINE */
54 /* Now define a symbol for the cpu type, if your compiler
55 does not define it automatically:
56 Ones defined so far include vax, m68000, ns16000, pyramid,
57 orion, tahoe, APOLLO and many others */
59 #define INTEL386
60 #define aix386
62 #define IBMAIX
64 /* Use type int rather than a union, to represent Lisp_Object */
66 #define NO_UNION_TYPE
68 /* crt0.c, if it is used, should use the i386-bsd style of entry.
69 with no extra dummy args. On USG and XENIX,
70 NO_REMAP says this isn't used. */
72 #define CRT0_DUMMIES bogus_fp,
74 /* crt0.c should define a symbol `start' and do .globl with a dot. */
76 #define DOT_GLOBAL_START
78 /* USG systems do not actually support the load average,
79 so disable it for them. */
81 /* Define CANNOT_DUMP on machines where unexec does not work.
82 Then the function dump-emacs will not be defined
83 and temacs will do (load "loadup") automatically unless told otherwise. */
85 /* #define CANNOT_DUMP */
87 /* Define VIRT_ADDR_VARIES if the virtual addresses of
88 pure and impure space as loaded can vary, and even their
89 relative order cannot be relied on.
91 Otherwise Emacs assumes that text space precedes data space,
92 numerically. */
94 /* #define VIRT_ADDR_VARIES */
96 /* Define addresses, macros, change some setup for dump */
98 #define NO_REMAP
99 #undef static
100 /* Since NO_REMAP, problem with statics doesn't exist */
102 #ifdef USG5_3
103 #define TEXT_START 0x00000000
104 #else
105 #define TEXT_START 0x00400000
106 #define TEXT_END 0
107 #define DATA_START 0x00800000
108 #define DATA_END 0
110 /* The data segment in this machine always starts at address 0x00800000.
111 An address of data cannot be stored correctly in a Lisp object;
112 we always lose the high bits. We must tell XPNTR to add them back. */
114 #define DATA_SEG_BITS 0x00800000
115 #endif
117 #if 0 /* I refuse to promulgate a recommendation that would make
118 users unable to debug - RMS. */
119 /* delete the following line to foil optimization, enable debugging */
120 #define C_DEBUG_SWITCH -O
121 #endif
123 #define BSTRING
124 #define HAVE_SELECT
125 #define HAVE_TIMEVAL
126 #define HAVE_VFORK
127 #undef HAVE_TERMIO
128 #define HAVE_TERMIOS
130 /* Send signals to subprocesses by "typing" special chars at them. */
132 #define SIGNALS_VIA_CHARACTERS
135 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir
136 * library functions. Almost, but not quite the same as
137 * the 4.2 functions
139 #define SYSV_SYSTEM_DIR
142 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
143 * The 4.2 opendir, etc., library functions.
145 #undef NONSYSTEM_DIR_LIBRARY
147 /* But don't use utimes() -- it causes SIGSEGV! Use utime() instead. */
148 #define USE_UTIME
150 /* AIX defines FIONREAD, but it does not work. */
151 #define BROKEN_FIONREAD
153 /* Data type of load average, as read out of kmem. */
155 #define LOAD_AVE_TYPE long /* For AIX (sysV) */
157 /* Convert that into an integer that is 100 for a load average of 1.0 */
159 #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0)
161 /* This page was added in June 1990. It may be incorrect for some versions
162 of aix, so delete it if it causes trouble. */
164 /* AIX has sigsetmask() */
165 #undef sigsetmask
167 /* AIX386 has BSD4.3 PTYs */
169 #define HAVE_PTYS
171 /* AIX has IPC. It also has sockets, and either can be used for client/server.
172 I would suggest the client/server code be changed to use HAVE_SOCKETS rather
173 than BSD as the conditional if sockets provide any advantages. */
175 #define HAVE_SYSVIPC
177 /* AIX has sockets */
179 #define HAVE_SOCKETS
180 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */
182 /* Specify the font for X to use. */
184 #define X_DEFAULT_FONT "8x13"
186 /* AIX has a wait.h. */
188 #define HAVE_WAIT_HEADER
190 /* sioctl.h should not be included, says bytheway@cs.utah.edu. */
191 #undef NEED_SIOCTL
192 /* I'm guessing that that means it doesn't want ptem.h either. */
193 #undef NEED_PTEM_H
195 /* aix has `union wait' */
196 #define HAVE_UNION_WAIT
198 /* Here override various assumptions in ymakefile */
200 /* Define C_ALLOCA if this machine does not support a true alloca
201 and the one written in C should be used instead.
202 Define HAVE_ALLOCA to say that the system provides a properly
203 working alloca function and it should be used.
204 Define neither one if an assembler-language alloca
205 in the file alloca.s should be used. */
207 #ifdef __GNUC__
208 #define HAVE_ALLOCA
209 #define alloca(n) __builtin_alloca(n)
210 #if __GNUC__ < 2
211 #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc
212 #endif
213 /* -g fails to work, so it is omitted. */
214 /* tranle says that -fstrength-reduce does not help. */
215 #define C_DEBUG_SWITCH
216 #else
217 #define C_ALLOCA
218 #define STACK_DIRECTION -1 /* tell alloca.c which way it grows */
219 #define LIBS_MACHINE -lbsd -lrts
220 #endif
222 #define OBJECTS_MACHINE hftctl.o
223 #define LD_SWITCH_MACHINE -T0x00400000 -K -e start
224 #define LIBS_DEBUG /* no -lg on aix ps/2 */
226 #ifdef USG5_3
227 #define XICCC
228 #define HAVE_GETWD
229 #undef LD_SWITCH_MACHINE
230 #define LD_SWITCH_MACHINE -T0x0 -K -e start
232 /* Things defined in s-usg5-3.h that need to be overridden. */
233 #undef NOMULTIPLEJOBS
234 #undef BROKEN_TIOCGETC
235 #undef BROKEN_TIOCGWINSZ
236 #undef LIBX10_SYSTEM
237 #undef LIBX11_SYSTEM
238 #undef LIB_X11_LIB
239 #endif
241 /* Shared libraries are supported in a patch release of ps/2 1.2.1.
242 If the system has them, the user can turn them on, and this code
243 will make them work. */
244 #define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */
246 #ifdef USG_SHARED_LIBRARIES
247 #define ORDINARY_LINK
248 #undef LIB_STANDARD
249 #undef LD_SWITCH_MACHINE
250 #if __GNUC__ > 1
251 #define LD_SWITCH_MACHINE -shlib
252 #endif
253 #endif