Partially sync files.el from XEmacs 21.5 for wildcard support.
[sxemacs] / src / m / powerpc.h
1 /* machine description file for Power PC
2    Copyright (C) 1987, 1994 Free Software Foundation, Inc.
3    Copyright (C) 1995 Board of Trustees, University of Illinois
4
5 This file is part of SXEmacs
6
7 SXEmacs 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 3 of the License, or
10 (at your option) any later version.
11
12 SXEmacs 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.
16
17 You should have received a copy of the GNU General Public License
18 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
19
20
21 /* The following line tells the configuration script what sort of
22    operating system this machine is likely to run.
23    USUAL-OPSYS="solaris2-5" */
24
25 #ifdef NOT_C_CODE
26 # define POWERPC
27 #else
28 # ifndef powerpc
29 #  define powerpc
30 # endif
31 #endif
32
33 #ifdef __GNUC__
34 # define C_OPTIMIZE_SWITCH "-O"
35 #else
36 /* XEmacs change */
37 # ifdef USE_LCC
38 #  define C_OPTIMIZE_SWITCH "-O4 -Oi"
39 # else
40      /* This level of optimization is reported to work.  */
41 #  define C_OPTIMIZE_SWITCH "-O2"
42 # endif
43 #endif
44
45 #ifndef __linux__
46 /* Data type of load average, as read out of kmem.  */
47
48 #define LOAD_AVE_TYPE long
49
50 /* Convert that into an integer that is 100 for a load average of 1.0  */
51
52 #define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
53 #else                           /* mklinux */
54
55 /* Define addresses, macros, change some setup for dump */
56
57 #define NO_REMAP
58
59 #ifdef CANNOT_DUMP
60
61 #endif                          /* CANNOT_DUMP */
62
63 #define N_BADMAG(x) BADMAG(x)
64 #define N_TXTOFF(x) A_TEXTPOS(x)
65 #define N_SYMOFF(x) A_SYMPOS(x)
66 /* #define A_TEXT_OFFSET(HDR) sizeof(HDR) */
67 /* #define ADJUST_EXEC_HEADER \
68     unexec_text_start += sizeof(hdr); \
69     unexec_data_start = ohdr.a_dbase
70 */
71 #undef ADDR_CORRECT
72 #define ADDR_CORRECT(x) ((int)(x))
73
74 /* Define C_ALLOCA if this machine does not support a true alloca
75    and the one written in C should be used instead.
76    Define HAVE_ALLOCA to say that the system provides a properly
77    working alloca function and it should be used.
78    Define neither one if an assembler-language alloca
79    in the file alloca.s should be used.  */
80
81 #ifndef HAVE_ALLOCA
82 #define HAVE_ALLOCA
83 #endif
84
85 /* Specify the font for X to use.
86    This used to be Rom14.500; that's nice on the X server shipped with
87    the RS/6000, but it's not available on other servers.  */
88 #define X_DEFAULT_FONT "fixed"
89
90 /* Here override various assumptions in ymakefile */
91
92 /* #undef START_FILES */
93 /* #define HAVE_SYSVIPC */
94 /* #define HAVE_GETWD */
95
96 /* Don't try to include sioctl.h or ptem.h.  */
97 #undef NEED_SIOCTL
98 #undef NEED_PTEM_H
99
100 #define ORDINARY_LINK
101 /*#define LD_SWITCH_MACHINE -T ${srcdir}/src/ppc.ldscript*/
102 #endif