*** empty log message ***
[emacs.git] / src / m / ibmps2-aix.h
blobea895cd4fd8fbe54da965f72d72b3d14e4112550
1 /* machine description file for ibm ps/2 aix386.
2 Copyright (C) 1989, 2002, 2003, 2004, 2005,
3 2006 Free Software Foundation, Inc.
5 This file is part of GNU Emacs.
7 GNU Emacs is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs; see the file COPYING. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA. */
23 /* The following line tells the configuration script what sort of
24 operating system this machine is likely to run.
25 USUAL-OPSYS="note"
27 NOTE-START
28 Use -opsystem=usg5-3 on AIX 1.2.
29 -opsystem=usg5-2-2 should work on either AIX 1.1 or 1.2, but may not
30 work with certain new X window managers, and may be suboptimal.
31 NOTE-END */
33 /* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
34 is the most significant byte. */
36 #undef WORDS_BIG_ENDIAN
38 /* Define NO_ARG_ARRAY if you cannot take the address of the first of a
39 * group of arguments and treat it as an array of the arguments. */
41 /* #define NO_ARG_ARRAY */
43 /* Define WORD_MACHINE if addresses and such have
44 * to be corrected before they can be used as byte counts. */
46 /* #define WORD_MACHINE */
48 /* Now define a symbol for the cpu type, if your compiler
49 does not define it automatically:
50 Ones defined so far include vax, m68000, ns16000, pyramid,
51 orion, tahoe, APOLLO and many others */
53 #define INTEL386
54 #define aix386
56 #define IBMAIX
58 /* Use type int rather than a union, to represent Lisp_Object */
60 #define NO_UNION_TYPE
62 /* crt0.c, if it is used, should use the i386-bsd style of entry.
63 with no extra dummy args. On USG and XENIX,
64 NO_REMAP says this isn't used. */
66 #define CRT0_DUMMIES bogus_fp,
68 /* crt0.c should define a symbol `start' and do .globl with a dot. */
70 #define DOT_GLOBAL_START
72 /* USG systems do not actually support the load average,
73 so disable it for them. */
75 /* Define CANNOT_DUMP on machines where unexec does not work.
76 Then the function dump-emacs will not be defined
77 and temacs will do (load "loadup") automatically unless told otherwise. */
79 /* #define CANNOT_DUMP */
81 /* Define VIRT_ADDR_VARIES if the virtual addresses of
82 pure and impure space as loaded can vary, and even their
83 relative order cannot be relied on.
85 Otherwise Emacs assumes that text space precedes data space,
86 numerically. */
88 /* #define VIRT_ADDR_VARIES */
90 /* Define addresses, macros, change some setup for dump */
92 #define NO_REMAP
93 #undef static
94 /* Since NO_REMAP, problem with statics doesn't exist */
96 #ifdef USG5_3
97 #define TEXT_START 0x00000000
98 #else
99 #define TEXT_START 0x00400000
100 #define TEXT_END 0
101 #define DATA_START 0x00800000
102 #define DATA_END 0
104 /* The data segment in this machine always starts at address 0x00800000.
105 An address of data cannot be stored correctly in a Lisp object;
106 we always lose the high bits. We must tell XPNTR to add them back. */
108 #define DATA_SEG_BITS 0x00800000
109 #endif
111 #if 0 /* I refuse to promulgate a recommendation that would make
112 users unable to debug - RMS. */
113 /* delete the following line to foil optimization, enable debugging */
114 #define C_DEBUG_SWITCH -O
115 #endif
117 #define BSTRING
118 #undef HAVE_TERMIO
119 #define HAVE_TERMIOS
121 /* Send signals to subprocesses by "typing" special chars at them. */
123 #define SIGNALS_VIA_CHARACTERS
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
130 #define SYSV_SYSTEM_DIR
133 * Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
134 * The 4.2 opendir, etc., library functions.
136 #undef NONSYSTEM_DIR_LIBRARY
138 /* AIX utimes allegedly causes SIGSEGV. */
139 #undef HAVE_UTIMES /* override configuration decision */
141 /* AIX defines FIONREAD, but it does not work. */
142 #define BROKEN_FIONREAD
144 /* Data type of load average, as read out of kmem. */
146 #define LOAD_AVE_TYPE long /* For AIX (sysV) */
148 /* Convert that into an integer that is 100 for a load average of 1.0 */
150 #define LOAD_AVE_CVT(x) (int) (((double) (x)/65535.0) * 100.0)
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. */
155 /* AIX has sigsetmask() */
156 #undef sigsetmask
158 /* AIX386 has BSD4.3 PTYs */
160 #define HAVE_PTYS
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. */
166 #define HAVE_SYSVIPC
168 /* AIX has sockets */
170 #define HAVE_SOCKETS
171 /* #define SKTPAIR */ /* SKTPAIR works, but what is advantage over pipes? */
173 /* Specify the font for X to use. */
175 #define X_DEFAULT_FONT "8x13"
177 /* AIX has a wait.h. */
179 #define HAVE_WAIT_HEADER
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
186 /* aix has `union wait' */
187 #define HAVE_UNION_WAIT
189 /* Here override various assumptions in ymakefile */
191 #ifdef __GNUC__
192 #define alloca(n) __builtin_alloca(n)
193 #if __GNUC__ < 2
194 #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc
195 #endif
196 /* -g fails to work, so it is omitted. */
197 /* tranle says that -fstrength-reduce does not help. */
198 #define C_DEBUG_SWITCH
199 #else
200 #define LIBS_MACHINE -lbsd -lrts
201 #endif
203 #define OBJECTS_MACHINE hftctl.o
204 #define LD_SWITCH_MACHINE -T0x00400000 -K -e start
205 #define LIBS_DEBUG /* no -lg on aix ps/2 */
207 #ifdef USG5_3
208 #define XICCC
209 #undef LD_SWITCH_MACHINE
210 #define LD_SWITCH_MACHINE -T0x0 -K -e start
212 /* Things defined in s-usg5-3.h that need to be overridden. */
213 #undef NOMULTIPLEJOBS
214 #undef BROKEN_TIOCGETC
215 #undef BROKEN_TIOCGWINSZ
216 #undef LIBX10_SYSTEM
217 #undef LIBX11_SYSTEM
218 #undef LIB_X11_LIB
219 #endif
221 /* Shared libraries are supported in a patch release of ps/2 1.2.1.
222 If the system has them, the user can turn them on, and this code
223 will make them work. */
224 #define USG_SHARED_LIBRARIES /* Assume that by 19's release everyone has this. */
226 #ifdef USG_SHARED_LIBRARIES
227 #define ORDINARY_LINK
228 #undef LIB_STANDARD
229 #undef LD_SWITCH_MACHINE
230 #if __GNUC__ > 1
231 #define LD_SWITCH_MACHINE -shlib
232 #endif
233 #endif
235 /* arch-tag: 2e7f44df-6a61-4a47-aa53-f7961bfeff11
236 (do not change this comment) */