0
|
1 /* Definition of PURESIZE.
|
|
2 Copyright (C) 1986, 1988, 1992, 1993, 1994 Free Software Foundation, Inc.
|
|
3 Copyright (C) 1995, 1996 Ben Wing.
|
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Synched up with: Not in FSF. */
|
|
23
|
|
24 #ifndef PURESIZE_H
|
|
25 #define PURESIZE_H
|
|
26
|
104
|
27 /* If RAW_PURESIZE is already defined then the user overrode it at
|
0
|
28 configure time. */
|
104
|
29 #ifndef RAW_PURESIZE
|
28
|
30
|
0
|
31 /* Basic amount of purespace to use, in the absence of extra
|
|
32 things configured in. */
|
|
33
|
|
34 #if (LONGBITS == 64)
|
100
|
35 # define BASE_PURESIZE 938000
|
0
|
36 #else
|
98
|
37 # define BASE_PURESIZE 563000
|
0
|
38 #endif
|
|
39
|
|
40 /* If any particular systems need to change the base puresize, they
|
|
41 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
|
|
42 negative as well as positive.
|
|
43
|
|
44 Do NOT define PURESIZE or any other values. This allows the
|
|
45 other values to shift while still keeping things in sync. */
|
|
46
|
|
47 #ifndef SYSTEM_PURESIZE_EXTRA
|
|
48 # define SYSTEM_PURESIZE_EXTRA 0
|
|
49 #endif
|
|
50
|
|
51 /* Extra amount of purespace needed for menubars. */
|
|
52
|
104
|
53 #ifdef HAVE_DIALOGS
|
|
54 # if (LONGBITS == 64)
|
|
55 # define DIALOG_PURESIZE_EXTRA 43000
|
|
56 # else
|
|
57 # define DIALOG_PURESIZE_EXTRA 1800
|
|
58 # endif
|
|
59 #else
|
|
60 # define DIALOG_PURESIZE_EXTRA 0
|
|
61 #endif
|
|
62
|
0
|
63 #ifdef HAVE_MENUBARS
|
|
64 # if (LONGBITS == 64)
|
|
65 # define MENUBAR_PURESIZE_EXTRA 43000
|
|
66 # else
|
104
|
67 # define MENUBAR_PURESIZE_EXTRA 36000
|
0
|
68 # endif
|
|
69 #else
|
|
70 # define MENUBAR_PURESIZE_EXTRA 0
|
|
71 #endif
|
|
72
|
104
|
73 #ifdef HAVE_SCROLLBARS
|
|
74 # if (LONGBITS == 64)
|
|
75 # define SCROLLBAR_PURESIZE_EXTRA 4000
|
|
76 # else
|
|
77 # define SCROLLBAR_PURESIZE_EXTRA 1800
|
|
78 # endif
|
|
79 #else
|
|
80 # define SCROLLBAR_PURESIZE_EXTRA 0
|
|
81 #endif
|
0
|
82
|
104
|
83 #ifdef HAVE_TOOLBARS
|
|
84 # if (LONGBITS == 64)
|
|
85 # define TOOLBAR_PURESIZE_EXTRA 4000
|
|
86 # else
|
|
87 # define TOOLBAR_PURESIZE_EXTRA 8400
|
|
88 # endif
|
|
89 #else
|
|
90 # define TOOLBAR_PURESIZE_EXTRA 0
|
|
91 #endif
|
|
92
|
|
93 /* Extra amount of purespace needed for X11, separate from menubars
|
|
94 and scrollbars. */
|
0
|
95
|
|
96 #ifdef HAVE_X_WINDOWS
|
|
97 # if (LONGBITS == 64)
|
|
98 # define X11_PURESIZE_EXTRA 95000
|
|
99 # else
|
88
|
100 # define X11_PURESIZE_EXTRA 68000
|
0
|
101 # endif
|
|
102 #else
|
28
|
103 # define X11_PURESIZE_EXTRA 0
|
0
|
104 #endif
|
|
105
|
16
|
106 /* Extra amount of purespace needed for Mule. */
|
|
107
|
|
108 #ifdef MULE
|
88
|
109 #ifdef HAVE_CANNA
|
|
110 # define MULE_PURESIZE_CANNA 5000
|
|
111 #else
|
|
112 # define MULE_PURESIZE_CANNA 0
|
|
113 #endif
|
98
|
114 #ifdef HAVE_WNN
|
|
115 # define MULE_PURESIZE_WNN 5000
|
|
116 #else
|
|
117 # define MULE_PURESIZE_WNN 0
|
|
118 #endif
|
16
|
119 # if (LONGBITS == 64)
|
98
|
120 # define MULE_PURESIZE_EXTRA 99000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
|
16
|
121 # else
|
98
|
122 # define MULE_PURESIZE_EXTRA 78000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
|
16
|
123 # endif
|
|
124 #else
|
|
125 # define MULE_PURESIZE_EXTRA 0
|
|
126 #endif
|
|
127
|
0
|
128 /* Extra amount of purespace needed for Tooltalk. */
|
|
129
|
|
130 #ifdef TOOLTALK
|
|
131 # if (LONGBITS == 64)
|
|
132 # define TOOLTALK_PURESIZE_EXTRA 100000
|
|
133 # else
|
104
|
134 # define TOOLTALK_PURESIZE_EXTRA 8300
|
0
|
135 # endif
|
|
136 #else
|
|
137 # define TOOLTALK_PURESIZE_EXTRA 0
|
|
138 #endif
|
|
139
|
|
140 /* Extra amount of purespace needed for Energize builds. */
|
|
141
|
|
142 #ifdef ENERGIZE
|
|
143 # define ENERGIZE_PURESIZE_EXTRA 290000
|
|
144 #else
|
|
145 # define ENERGIZE_PURESIZE_EXTRA 0
|
|
146 #endif
|
|
147
|
|
148 /* Extra amount of purespace needed for Sunpro builds. */
|
|
149
|
|
150 #ifdef SUNPRO
|
100
|
151 #define SUNPRO_PURESIZE_EXTRA 95000
|
0
|
152 #else
|
|
153 # define SUNPRO_PURESIZE_EXTRA 0
|
|
154 #endif
|
|
155
|
104
|
156 #define RAW_PURESIZE ((BASE_PURESIZE) + \
|
|
157 (DIALOG_PURESIZE_EXTRA) + \
|
|
158 (MENUBAR_PURESIZE_EXTRA) + \
|
|
159 (SCROLLBAR_PURESIZE_EXTRA) + \
|
|
160 (TOOLBAR_PURESIZE_EXTRA) + \
|
|
161 (X11_PURESIZE_EXTRA) + \
|
|
162 (SYSTEM_PURESIZE_EXTRA) + \
|
|
163 (MULE_PURESIZE_EXTRA) + \
|
|
164 (TOOLTALK_PURESIZE_EXTRA) + \
|
|
165 (ENERGIZE_PURESIZE_EXTRA) + \
|
|
166 (SUNPRO_PURESIZE_EXTRA))
|
|
167
|
|
168 #endif /* !RAW_PURESIZE */
|
|
169
|
|
170 #include "puresize_adjust.h"
|
|
171 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
|
102
|
172
|
0
|
173
|
|
174 #endif /* PURESIZE_H */
|