*** empty log message ***
[emacs.git] / src / m / ibmps2-aix.h
blobeb843ffe71b31f286545ec1e54b56ae5a78b0559
1 /* machine description file for ibm ps/2 aix386.
2 Copyright (C) 1989, 2002 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, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
22 /* The following line tells the configuration script what sort of
23 operating system this machine is likely to run.
24 USUAL-OPSYS="note"
26 NOTE-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.
30 NOTE-END */
32 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
33 is the most significant byte. */
35 #undef WORDS_BIG_ENDIAN
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. */
40 /* #define NO_ARG_ARRAY */
42 /* Define WORD_MACHINE if addresses and such have
43 * to be corrected before they can be used as byte counts. */
45 /* #define WORD_MACHINE */
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 */
52 #define INTEL386
53 #define aix386
55 #define IBMAIX
57 /* Use type int rather than a union, to represent Lisp_Object */
59 #define NO_UNION_TYPE
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. */
65 #define CRT0_DUMMIES bogus_fp,
67 /* crt0.c should define a symbol `start' and do .globl with a dot. */
69 #define DOT_GLOBAL_START
71 /* USG systems do not actually support the load average,
72 so disable it for them. */
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. */
78 /* #define CANNOT_DUMP */
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.
84 Otherwise Emacs assumes that text space precedes data space,
85 numerically. */
87 /* #define VIRT_ADDR_VARIES */
89 /* Define addresses, macros, change some setup for dump */
91 #define NO_REMAP
92 #undef static
93 /* Since NO_REMAP, problem with statics doesn't exist */
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
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. */
107 #define DATA_SEG_BITS 0x00800000
108 #endif
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
116 #define BSTRING
117 #undef HAVE_TERMIO
118 #define HAVE_TERMIOS
120 /* Send signals to subprocesses by "typing" special chars at them. */
122 #define SIGNALS_VIA_CHARACTERS
125 * Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir
126 * library functions. Almost, but not quite the same as
127 * the 4.2 functions
129 #define SYSV_SYSTEM_DIR
132 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
133 * The 4.2 opendir, etc., library functions.
135 #undef NONSYSTEM_DIR_LIBRARY
137 /* AIX utimes allegedly causes SIGSEGV. */
138 #undef HAVE_UTIMES /* override configuration decision */
140 /* AIX defines FIONREAD, but it does not work. */
141 #define BROKEN_FIONREAD
143 /* Data type of load average, as read out of kmem. */
145 #define LOAD_AVE_TYPE long /* For AIX (sysV) */
147 /* Convert that into an integer that is 100 for a load average of 1.0 */
149 #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0)
151 /* This page was added in June 1990. It may be incorrect for some versions
152 of aix, so delete it if it causes trouble. */
154 /* AIX has sigsetmask() */
155 #undef sigsetmask
157 /* AIX386 has BSD4.3 PTYs */
159 #define HAVE_PTYS
161 /* AIX has IPC. It also has sockets, and either can be used for client/server.
162 I would suggest the client/server code be changed to use HAVE_SOCKETS rather
163 than BSD as the conditional if sockets provide any advantages. */
165 #define HAVE_SYSVIPC
167 /* AIX has sockets */
169 #define HAVE_SOCKETS
170 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */
172 /* Specify the font for X to use. */
174 #define X_DEFAULT_FONT "8x13"
176 /* AIX has a wait.h. */
178 #define HAVE_WAIT_HEADER
180 /* sioctl.h should not be included, says bytheway@cs.utah.edu. */
181 #undef NEED_SIOCTL
182 /* I'm guessing that that means it doesn't want ptem.h either. */
183 #undef NEED_PTEM_H
185 /* aix has `union wait' */
186 #define HAVE_UNION_WAIT
188 /* Here override various assumptions in ymakefile */
190 #ifdef __GNUC__
191 #define alloca(n) __builtin_alloca(n)
192 #if __GNUC__ < 2
193 #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc
194 #endif
195 /* -g fails to work, so it is omitted. */
196 /* tranle says that -fstrength-reduce does not help. */
197 #define C_DEBUG_SWITCH
198 #else
199 #define LIBS_MACHINE -lbsd -lrts
200 #endif
202 #define OBJECTS_MACHINE hftctl.o
203 #define LD_SWITCH_MACHINE -T0x00400000 -K -e start
204 #define LIBS_DEBUG /* no -lg on aix ps/2 */
206 #ifdef USG5_3
207 #define XICCC
208 #undef LD_SWITCH_MACHINE
209 #define LD_SWITCH_MACHINE -T0x0 -K -e start
211 /* Things defined in s-usg5-3.h that need to be overridden. */
212 #undef NOMULTIPLEJOBS
213 #undef BROKEN_TIOCGETC
214 #undef BROKEN_TIOCGWINSZ
215 #undef LIBX10_SYSTEM
216 #undef LIBX11_SYSTEM
217 #undef LIB_X11_LIB
218 #endif
220 /* Shared libraries are supported in a patch release of ps/2 1.2.1.
221 If the system has them, the user can turn them on, and this code
222 will make them work. */
223 #define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */
225 #ifdef USG_SHARED_LIBRARIES
226 #define ORDINARY_LINK
227 #undef LIB_STANDARD
228 #undef LD_SWITCH_MACHINE
229 #if __GNUC__ > 1
230 #define LD_SWITCH_MACHINE -shlib
231 #endif
232 #endif
234 /* arch-tag: 2e7f44df-6a61-4a47-aa53-f7961bfeff11
235 (do not change this comment) */