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
|
70
|
27 /* If PURESIZE is already defined then the user overrode it at
|
0
|
28 configure time. */
|
70
|
29 #ifndef 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
|
|
53 #ifdef HAVE_MENUBARS
|
|
54 # if (LONGBITS == 64)
|
|
55 # define MENUBAR_PURESIZE_EXTRA 43000
|
|
56 # else
|
70
|
57 # define MENUBAR_PURESIZE_EXTRA 35000
|
0
|
58 # endif
|
|
59 #else
|
|
60 # define MENUBAR_PURESIZE_EXTRA 0
|
|
61 #endif
|
|
62
|
70
|
63 /* Scrollbar purespace needed is only about 2K so there's no sense
|
|
64 worrying about it separately. */
|
0
|
65
|
70
|
66 /* Extra amount of purespace needed for X11, separate from menubars. */
|
0
|
67
|
|
68 #ifdef HAVE_X_WINDOWS
|
|
69 # if (LONGBITS == 64)
|
|
70 # define X11_PURESIZE_EXTRA 95000
|
|
71 # else
|
88
|
72 # define X11_PURESIZE_EXTRA 68000
|
0
|
73 # endif
|
|
74 #else
|
28
|
75 # define X11_PURESIZE_EXTRA 0
|
0
|
76 #endif
|
|
77
|
16
|
78 /* Extra amount of purespace needed for Mule. */
|
|
79
|
|
80 #ifdef MULE
|
88
|
81 #ifdef HAVE_CANNA
|
|
82 # define MULE_PURESIZE_CANNA 5000
|
|
83 #else
|
|
84 # define MULE_PURESIZE_CANNA 0
|
|
85 #endif
|
98
|
86 #ifdef HAVE_WNN
|
|
87 # define MULE_PURESIZE_WNN 5000
|
|
88 #else
|
|
89 # define MULE_PURESIZE_WNN 0
|
|
90 #endif
|
16
|
91 # if (LONGBITS == 64)
|
98
|
92 # define MULE_PURESIZE_EXTRA 99000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
|
16
|
93 # else
|
98
|
94 # define MULE_PURESIZE_EXTRA 78000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
|
16
|
95 # endif
|
|
96 #else
|
|
97 # define MULE_PURESIZE_EXTRA 0
|
|
98 #endif
|
|
99
|
0
|
100 /* Extra amount of purespace needed for Tooltalk. */
|
|
101
|
|
102 #ifdef TOOLTALK
|
|
103 # if (LONGBITS == 64)
|
|
104 # define TOOLTALK_PURESIZE_EXTRA 100000
|
|
105 # else
|
70
|
106 # define TOOLTALK_PURESIZE_EXTRA 69000
|
0
|
107 # endif
|
|
108 #else
|
|
109 # define TOOLTALK_PURESIZE_EXTRA 0
|
|
110 #endif
|
|
111
|
|
112 /* Extra amount of purespace needed for Energize builds. */
|
|
113
|
|
114 #ifdef ENERGIZE
|
|
115 # define ENERGIZE_PURESIZE_EXTRA 290000
|
|
116 #else
|
|
117 # define ENERGIZE_PURESIZE_EXTRA 0
|
|
118 #endif
|
|
119
|
|
120 /* Extra amount of purespace needed for Sunpro builds. */
|
|
121
|
|
122 #ifdef SUNPRO
|
100
|
123 #define SUNPRO_PURESIZE_EXTRA 95000
|
0
|
124 #else
|
|
125 # define SUNPRO_PURESIZE_EXTRA 0
|
|
126 #endif
|
|
127
|
70
|
128 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \
|
|
129 (X11_PURESIZE_EXTRA) + \
|
|
130 (SYSTEM_PURESIZE_EXTRA) + (MULE_PURESIZE_EXTRA) + \
|
|
131 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \
|
|
132 (SUNPRO_PURESIZE_EXTRA))
|
0
|
133
|
70
|
134 #endif /* !PURESIZE */
|
0
|
135
|
|
136 #endif /* PURESIZE_H */
|