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)
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.
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.
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 */
57 /* Use type int rather than a union, to represent Lisp_Object */
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,
87 /* #define VIRT_ADDR_VARIES */
89 /* Define addresses, macros, change some setup for dump */
93 /* Since NO_REMAP, problem with statics doesn't exist */
96 #define TEXT_START 0x00000000
98 #define TEXT_START 0x00400000
100 #define DATA_START 0x00800000
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
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
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
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() */
157 /* AIX386 has BSD4.3 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. */
167 /* AIX has 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. */
182 /* I'm guessing that that means it doesn't want ptem.h either. */
185 /* aix has `union wait' */
186 #define HAVE_UNION_WAIT
188 /* Here override various assumptions in ymakefile */
191 #define alloca(n) __builtin_alloca(n)
193 #define LIB_STANDARD /usr/local/lib/gcc-gnulib -lbsd -lrts -lc
195 /* -g fails to work, so it is omitted. */
196 /* tranle says that -fstrength-reduce does not help. */
197 #define C_DEBUG_SWITCH
199 #define LIBS_MACHINE -lbsd -lrts
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 */
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
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
228 #undef LD_SWITCH_MACHINE
230 #define LD_SWITCH_MACHINE -shlib
234 /* arch-tag: 2e7f44df-6a61-4a47-aa53-f7961bfeff11
235 (do not change this comment) */