0
|
1 XEmacs Installation Guide
|
1338
|
2
|
0
|
3 Copyright (c) 1994, 1995, 1996 Board of Trustees, University of Illinois
|
1338
|
4 Copyright (c) 1994-1999, 2003 Free Software Foundation, Inc.
|
412
|
5
|
0
|
6 Permission is granted to anyone to make or distribute verbatim copies
|
|
7 of this document as received, in any medium, provided that the
|
|
8 copyright notice and permission notice are preserved,
|
|
9 and that the distributor grants the recipient permission
|
|
10 for further redistribution as permitted by this notice.
|
|
11
|
|
12 Permission is granted to distribute modified versions
|
|
13 of this document, or of portions of it,
|
|
14 under the above conditions, provided also that they
|
|
15 carry prominent notices stating who last changed them,
|
|
16 and that any new or changed statements about the activities
|
|
17 of the Free Software Foundation are approved by the Foundation.
|
|
18
|
1338
|
19 Last modified by Stephen J. Turnbull <stephen@xemacs.org> 2003-02-12
|
0
|
20
|
442
|
21 BUILDING AND INSTALLATION FOR UNIX AND CYGWIN
|
|
22
|
|
23 (for Microsoft Windows, see nt/README also.)
|
|
24
|
|
25 PREREQUISITES
|
|
26 =============
|
404
|
27
|
442
|
28 Make sure your system has enough swapping space allocated to handle a
|
|
29 program whose pure code is 900k bytes and whose data area is at least
|
1338
|
30 400k and can reach 8Mb or more. Note that a typical XEmacs process
|
|
31 can get much bigger: the instance this sentence was written with is
|
|
32 over 100MB! If the swapping space is insufficient, you will get an
|
442
|
33 error in the command `temacs -batch -l loadup dump', found in
|
|
34 `./src/Makefile.in.in', or possibly when running the final dumped
|
|
35 XEmacs.
|
0
|
36
|
442
|
37 Verify that your users have a high enough stack limit. On some systems
|
1036
|
38 such as OpenBSD and OSF/Tru64 the default is 2MB which is too low. On
|
2648
|
39 MacOS/X (Darwin) before 10.3, it's 512kB. See 'PROBLEMS' for details.
|
424
|
40
|
|
41 Building XEmacs requires about 100 Mb of disk space (including the
|
1338
|
42 XEmacs sources). Once installed, XEmacs occupies between 20 and 100
|
|
43 MB in the file system where it is installed; this includes the
|
|
44 executable files, Lisp libraries, miscellaneous data files, and
|
|
45 on-line documentation. The exact amount depends greatly on the number
|
|
46 of extra Lisp packages that are installed.
|
149
|
47
|
2427
|
48 XEmacs requires an ANSI C compiler, such as GCC. If you wish to build the
|
|
49 documentation yourself, you will need at least version 1.68 of makeinfo (GNU
|
|
50 texinfo-3.11). GNU Texinfo 4.2 is recommended; it is necessary for building
|
|
51 Lisp packages, and we may move to it for the core.
|
149
|
52
|
1338
|
53 A note on terminology: unfortunately the terms "library" and "package"
|
|
54 are heavily overloaded. In the following, "library" refers to an
|
|
55 external body of executable code which may be linked with XEmacs at
|
|
56 build time to provide support for system features, such as images,
|
|
57 audio, stream compression, databases, and input methods. A "Lisp
|
|
58 library" is a file of Lisp code which may be loaded into XEmacs at
|
|
59 run-time to provide editor features. A "package" is a specially
|
|
60 prepared Lisp library or set of Lisp libraries, providing for easy
|
|
61 installation, upgrade, and removal of applications written in Lisp.
|
398
|
62
|
442
|
63 PACKAGE SYSTEM
|
|
64 ==============
|
424
|
65
|
442
|
66 The file README.packages contain information vital to have a fully
|
1338
|
67 working XEmacs. It includes a description of available packages, and
|
|
68 how to bootstrap XEmacs from a minimal or a complete set of packages.
|
|
69 This information was not included in this file only because it is too
|
|
70 large for this terse INSTALL. Please read README.packages now!
|
|
71
|
|
72 ADD-ON LIBRARIES
|
|
73 ================
|
|
74
|
|
75 Decide which libraries you would like to use with XEmacs, but are not
|
1375
|
76 yet available on your system. On some systems, X11, Motif and CDE are
|
3018
|
77 optional additions. On MacOS/X systems prior to 10.2, you may download
|
|
78 X11R6 for Mac OS X from http://www.apple.com/macosx/x11/download/. In
|
|
79 later releases X11 is available as an optional package on the
|
|
80 installation CDs. In either case you need both the runtime libraries
|
|
81 and the SDK (in a sidebar of that page at the time of writing). There
|
|
82 is also a 3rd-party implementation of X11R6 for the Mac at
|
|
83 http://www.xdarwin.org/. On Solaris, the SUNWaudmo package enables
|
|
84 native sound support. There are also a number of free software
|
|
85 applications that XEmacs can use. If these are not yet available on
|
|
86 your system, obtain, build and install those external libraries before
|
|
87 building XEmacs. The libraries XEmacs can use are:
|
1338
|
88
|
|
89 Xaw3d, XPM, JPEG, compface, PNG, zlib, GNU DBM, Berkeley DB, socks,
|
|
90 term, NAS, Canna, Kinput2, SJ3, Wnn, PostgreSQL, LDAP.
|
|
91
|
|
92 You can get (most of) them from the XEmacs FTP archive at
|
|
93 <ftp://ftp.xemacs.org/pub/xemacs/aux>. Information about what
|
|
94 each library does is available in the file
|
|
95 <ftp://ftp.xemacs.org/pub/xemacs/aux/00README.txt>.
|
|
96
|
2648
|
97 Use the `--with-site-includes' and `--with-site-libraries' options when
|
|
98 building XEmacs to allow configure to find the external software
|
|
99 packages. For your convenience these can be set together by using the
|
|
100 `--with-site-prefixes' option. This will set these variables as needed
|
1338
|
101 assuming your libraries are organised as a typical /usr tree.
|
|
102
|
|
103 If you link dynamically with external libraries, usually denoted by
|
2648
|
104 ".so" (Unix), ".dll" (Windows), or ".dylib" (MacOS) file extensions, on
|
|
105 some systems you may also need to add the library directories to the
|
|
106 `--with-site-runtime-libraries' option. It is typically necessary only
|
1338
|
107 if you link with dynamic libraries that are installed in non-standard
|
2648
|
108 directories, or if you expect some of the libraries used to build XEmacs
|
|
109 to be in a different directory at run time than at build time.
|
1338
|
110
|
|
111 NOTE: This option has unusual semantics. ONLY libraries found in the
|
|
112 directories specified in this option will be used at runtime. This
|
|
113 means you must specify ALL directories you want searched at runtime in
|
|
114 this option (perhaps excluding a very small number of standard system
|
|
115 library paths).
|
|
116
|
2648
|
117 Directories specified with `--with-site-libraries' are NOT automatically
|
|
118 added. The rationale is that most users will not need this option, and
|
|
119 this allows the builder to specify exactly the needed directories.
|
|
120 Specifying unnecessary directories leads to obscure problems (typically
|
|
121 startup delays) if those directories are mounted over a network, and the
|
|
122 automounter configuration changes. Not all systems need this option;
|
|
123 it's best to avoid using it if you can.
|
1338
|
124
|
|
125 Dynamic linking has pros and cons. Dynamically linking 3rd party
|
|
126 libraries to XEmacs decreases the size of the binary, and means you
|
|
127 don't need to rebuild XEmacs to take advantage of improvements in the
|
|
128 libraries. On the other hand, XEmacs can fail subtly if the semantics
|
|
129 of a library changes, other users may not be able to use your
|
|
130 "private" copies of the libraries, and you may have to relink XEmacs,
|
|
131 or even omit the feature, if the ABI changes when the libraries are
|
|
132 upgraded.
|
424
|
133
|
442
|
134 CONFIGURATION OPTIONS
|
|
135 =====================
|
269
|
136
|
442
|
137 In the top level directory of the XEmacs distribution, run the
|
|
138 program `configure' as follows:
|
0
|
139
|
149
|
140 ./configure [CONFIGURATION-NAME] [--OPTION[=VALUE]] ...
|
0
|
141
|
3018
|
142 Options are generally of the form `--with-FEATURE' or
|
|
143 `--enable-FEATURE' to use a feature or `--without-FEATURE' or
|
|
144 `--disable-FEATURE' to not use a feature. Unlike the `configure'
|
|
145 program used in other applications, either `--with-FEATURE' or
|
|
146 `--enable-FEATURE' can be used to use the same feature.
|
|
147
|
1338
|
148 Controlling the Host Type
|
|
149 -------------------------
|
|
150
|
243
|
151 Almost always, you should let `configure' (actually the shell script
|
|
152 `config.guess') guess your host type, by omitting the
|
149
|
153 CONFIGURATION-NAME argument. If you like to experiment, specify a
|
|
154 configuration name in the form MACHINE-VENDOR-OPSYS, for example:
|
|
155
|
|
156 sparc-sun-solaris2.6
|
|
157
|
|
158 See config.guess and configure.in for valid values for MACHINE,
|
|
159 VENDOR, and OPSYS. Also check `./etc/MACHINES' for advice on building
|
|
160 on particular machines.
|
0
|
161
|
1338
|
162 Specifying Location of Headers and Libraries
|
|
163 --------------------------------------------
|
|
164
|
2648
|
165 The `--with-site-includes=DIR' and `--with-site-libraries=DIR' options
|
|
166 allow you to specify additional places the compiler should look for
|
|
167 include files and object libraries. You may specify multiple DIR's by
|
1338
|
168 enclosing the list in quotes. All the external libraries you want to
|
|
169 use with XEmacs (e.g. xpm, wnn, ...) described later should have their
|
|
170 include and library directories defined using these options.
|
|
171
|
2648
|
172 The `--with-site-runtime-libraries=DIR' option specifies directories to
|
1338
|
173 search for shared libraries at run time. If you use this option, you
|
|
174 must specify ALL of the directories containing shared libraries at run
|
|
175 time, including system directories. Please read the information about
|
|
176 "ADD-ON LIBRARIES" above very carefully.
|
0
|
177
|
|
178 The `--x-includes=DIR' and `--x-libraries=DIR' options tell the build
|
|
179 process where the compiler should look for the include files and
|
|
180 object libraries used with the X Window System. Normally, `configure'
|
|
181 is able to find them; these options are necessary if you have your X
|
|
182 Window System files installed in unusual places.
|
|
183
|
1338
|
184 Configuring the Build Process
|
|
185 -----------------------------
|
149
|
186
|
2648
|
187 The `--with-gcc=PROGRAM' option specifies that the build process should
|
|
188 compile XEmacs using GCC. The `--with-compiler' option allows you to
|
|
189 specify some other compiler to be used to compile XEmacs. If neither
|
|
190 option is specified, the environment variable CC is used instead.
|
|
191 Otherwise the compiler will then default to 'cc'.
|
201
|
192
|
2648
|
193 The `--with-xemacs-compiler=PROGRAM' option specifies the compiler
|
|
194 control program for the xemacs binary only. Other C code will be
|
|
195 compiled according to the `--with-gcc' and `--with-compiler' options
|
|
196 above. This is useful if you wish to compile XEmacs with a C++
|
|
197 compiler, because the utilities in ./lib-src cannot be compiled as C++.
|
|
198 This option is primarily intended for use by the maintainers.
|
0
|
199
|
2648
|
200 The `--with-cflags=FLAGS' option specifies all of the CFLAGS the build
|
|
201 process should use when compiling XEmacs, except for flags controlling
|
|
202 warning generation. Otherwise the value of the environment variable
|
|
203 CFLAGS is consulted. If that is also undefined, CFLAGS defaults to "-g
|
|
204 -O" for gcc and "-g" for all other compilers.
|
0
|
205
|
2648
|
206 The `--with-cflags-warning=FLAGS' option specifies the warnings to be
|
1338
|
207 generated. There is normally no reason to use this flag, as XEmacs
|
|
208 turns on as many warnings as possible, and is still expected to build
|
|
209 with no, or at most a few warnings.
|
594
|
210
|
2648
|
211 The `--with-cflags-optimization=FLAGS' option specifies the
|
|
212 optimizations to be used. There is normally no reason to use this flag,
|
|
213 as XEmacs will already set the maximum safe
|
|
214 optimization flags appropriate for the compiler being invoked.
|
|
215
|
|
216 The `--with-cflags-debugging=FLAGS' option specifies debugging
|
|
217 information to be generated. There is normally no reason to use this
|
|
218 flag, as XEmacs will include debugging information whenever possible
|
|
219 (i.e. unless optimization is turned on and the compiler does not permit
|
|
220 debugging and optimization simultaneously).
|
|
221
|
|
222 The `--with-dynamic' option specifies that configure should try to link
|
0
|
223 emacs dynamically rather than statically.
|
|
224
|
|
225 You can build XEmacs for several different machine types from a single
|
|
226 source directory. To do this, you must use a version of `make' that
|
442
|
227 supports the `VPATH' variable, such as GNU `make'. Create separate
|
0
|
228 build directories for the different configuration types, and in each
|
|
229 one, run the XEmacs `configure' script. `configure' looks for the
|
1338
|
230 Emacs source code in the directory that `configure' is in. The
|
|
231 `--srcdir' option may not work correctly (traditionally it was
|
|
232 overridden by the directory containing `configure').
|
|
233
|
|
234 Configuring the Installation Layout
|
|
235 -----------------------------------
|
0
|
236
|
|
237 The `--prefix=PREFIXDIR' option specifies where the installation process
|
|
238 should put XEmacs and its data files. This defaults to `/usr/local'.
|
|
239 - XEmacs (and the other utilities users run) go in PREFIXDIR/bin
|
|
240 (unless the `--exec-prefix' option says otherwise).
|
|
241 - The architecture-independent files go in PREFIXDIR/lib/xemacs-VERSION
|
276
|
242 (where VERSION is the version number of XEmacs, like `21.0').
|
0
|
243 - The architecture-dependent files go in
|
243
|
244 PREFIXDIR/lib/xemacs-VERSION/CONFIGURATION-NAME
|
|
245 (where CONFIGURATION-NAME is the host type, like mips-dec-ultrix4.2),
|
0
|
246 unless the `--exec-prefix' option says otherwise.
|
|
247
|
|
248 The `--exec-prefix=EXECDIR' option allows you to specify a separate
|
|
249 portion of the directory tree for installing architecture-specific
|
|
250 files, like executables and utility programs. If specified,
|
|
251 - XEmacs (and the other utilities users run) go in EXECDIR/bin, and
|
|
252 - The architecture-dependent files go in
|
243
|
253 EXECDIR/lib/xemacs-VERSION/CONFIGURATION-NAME.
|
0
|
254 EXECDIR/bin should be a directory that is normally in users' PATHs.
|
|
255
|
442
|
256 If you specify --prefix (or any of the other installation directory
|
|
257 options), they will get compiled into the xemacs executable so it will
|
1338
|
258 be able to find its various associated files. However, XEmacs has
|
442
|
259 quite elaborate logic to find out the locations of these directories
|
|
260 dynamically. Sometimes, it is desirable *not* to compile these
|
|
261 directories into the executable so you can move the XEmacs
|
|
262 installation around (as whole) at will. This is true for binary kits,
|
|
263 for instance. Therefore, you can specify --without-prefix on the
|
|
264 configure command line to prevent the installation prefix to become
|
|
265 part of the generated executable; everything else will continue to
|
|
266 work as usual.
|
0
|
267
|
1338
|
268 Configuring Feature Support
|
|
269 ---------------------------
|
|
270
|
|
271 If you don't want X Window System support, specify `--without-x'. If
|
|
272 you omit this option, `configure' will try to autodetect whether your
|
|
273 system has X Window System support, and arrange to use it if present.
|
|
274
|
|
275 The `--without-xmu' option can be used if your vendor doesn't ship
|
|
276 the Xmu library.
|
|
277
|
2648
|
278 The `--enable-menubars=TYPE' option allows you to specify which X
|
0
|
279 toolkit you wish to use for the menubar. The valid options are
|
149
|
280 `lucid', `motif' and `no'. The default is `lucid' which is a
|
0
|
281 Motif-lookalike menubar. We highly recommend its usage over the real
|
|
282 Motif menubar. (In fact, the Motif menubar is currently broken.) If
|
149
|
283 `no' is specified then support for menubars will not be compiled in.
|
0
|
284
|
2648
|
285 The `--enable-scrollbars=TYPE' option allows you to specify which X
|
0
|
286 toolkit you wish to use for the scrollbars. The valid options are
|
149
|
287 `lucid', `motif', `athena', `athena3d', and `no'. The default is
|
2648
|
288 `lucid' which is a Motif-lookalike scrollbar. If `no' is specified then
|
|
289 support for scrollbars will not be compiled in.
|
0
|
290
|
2648
|
291 The `--enable-dialogs=TYPE' option allows you to specify which X toolkit
|
219
|
292 you wish to use for the dialog boxes. The valid options are `athena',
|
243
|
293 `athena3d', `motif, and `no. The `lucid' option is accepted and will
|
|
294 result in the `athena' toolkit being used. If the Motif toolkit can be
|
|
295 found the default is `motif'. Otherwise, the default is `athena'. If
|
2648
|
296 `no' is specified then support for dialog boxes will not be compiled in.
|
0
|
297
|
2648
|
298 The `--enable-toolbars' option allows you to enable or disable toolbar
|
1338
|
299 support. The default is `yes' if support for a windowing system is
|
|
300 included.
|
0
|
301
|
149
|
302 The `--with-xpm' option specifies that XEmacs should support X11
|
0
|
303 Pixmaps. `configure' will attempt to detect if you have the Xpm
|
|
304 libraries and define `--with-xpm' for you.
|
|
305
|
|
306 The `--with-xface' option specifies that XEmacs should support
|
|
307 X-Faces. `configure' will attempt to detect if you have the compface
|
|
308 library and define `--with-xface' for you.
|
|
309
|
2648
|
310 The `--enable-database' option specifies that XEmacs should be built
|
1338
|
311 with simple database support. The valid options are `no' or a
|
0
|
312 comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'.
|
|
313 `configure' will attempt to detect the necessary libraries and header
|
2648
|
314 files and define `--enable-database' for you.
|
0
|
315
|
1338
|
316 The `--with-postgresql' option specifies that XEmacs should be built
|
|
317 with PostgreSQL support, linking with libpq. `configure' will attempt
|
|
318 to detect whether PostgreSQL support is available, and automatically
|
|
319 define `--with-postgresql' for you.
|
|
320
|
|
321 The `--with-ldap' option specifies that XEmacs should be build with
|
|
322 LDAP support, using the OpenLDAP libraries. `configure' will attempt
|
|
323 to detect whether LDAP support is available, and automatically define
|
|
324 `--with-ldap' for you.
|
|
325
|
0
|
326 The `--with-socks' option specifies that XEmacs should be built with
|
149
|
327 SOCKS support. This requires the libsocks library.
|
0
|
328
|
2648
|
329 The `--enable-external-widget' option specifies that XEmacs should be
|
|
330 built with support for being used as a widget by other X11 applications.
|
1338
|
331 This functionality should be considered beta.
|
|
332
|
2648
|
333 The `--enable-sound=TYPE' option specifies that XEmacs should be built
|
|
334 with sound support. Native (`--enable-sound=native') sound support is
|
1338
|
335 currently available only on Sun SparcStations, SGI's, HP9000s, and
|
|
336 systems (such as Linux) with soundcard.h. Network Audio Support (NAS)
|
2648
|
337 (`--enable-sound=nas') is an extension to X that you may or may not have
|
|
338 for your system. For NAS, you will probably need to provide the paths
|
|
339 to the nas include and library directories to configure. If
|
|
340 `--enable-sound' is not specified, `configure' will attempt to determine
|
|
341 if your configuration supports native sound and define --enable-sound
|
|
342 for you. If your native sound library is not in a standard location you
|
|
343 can specify it with the `--with-native-sound-lib=LIB' flag. For Linux,
|
|
344 `/dev/audio' is required for SunAudio files and `/dev/dsp' is required
|
|
345 for raw data and WAVE format files.
|
1338
|
346
|
0
|
347 The `--with-tooltalk' option specifies that XEmacs should be built
|
|
348 with ToolTalk support for interconnecting with other applications.
|
243
|
349 ToolTalk is not yet supported on all architectures. If you use this
|
|
350 option, you should have the tooltalk package (see etc/PACKAGES)
|
|
351 installed prior to building XEmacs.
|
0
|
352
|
|
353 The `--with-sparcworks' option specifies that XEmacs should be built
|
149
|
354 with support for Sun Sparcworks 3.0.1 and up (including Sun WorkShop).
|
|
355 This functionality is only of use on SunOS 4.1.x and Solaris 2.x
|
272
|
356 systems. If you use this option, you should have the Sun package (see
|
243
|
357 etc/PACKAGES) installed prior to building XEmacs.
|
0
|
358
|
149
|
359 The `--with-cde' option allows you to enable or disable CDE drag and
|
0
|
360 drop support. `configure' will attempt to detect this option and
|
|
361 define `--with-cde' for you.
|
|
362
|
272
|
363 The `--with-offix' option allows you to enable or disable OffiX drag
|
|
364 and drop support. This requires no external library support, so if
|
|
365 X11 support is available, then this option defaults to `yes'. OffiX
|
274
|
366 support can be explicitly disabled via the `--with-offix=no' option.
|
2
|
367
|
1338
|
368 Internationalization Options
|
|
369 ----------------------------
|
0
|
370
|
2648
|
371 The `--enable-mule' option enables MUlti-Lingual Emacs (Mule) support,
|
1338
|
372 needed to support non-Latin-1 (including Asian) languages. Mule
|
|
373 support is required for Asian language and Unicode (multibyte and wide
|
|
374 character) support. With the advent of the Euro and European
|
|
375 Community expansion, Mule support is also recommended for Western
|
|
376 Europeans. Enabling Mule support requires the mule-base package
|
|
377 installed prior to building XEmacs. The `--with-xim', --with-xfs',
|
|
378 `--with-canna', `--with-wnn' and `--with-wnn6' options require
|
|
379 Mule support.
|
149
|
380
|
|
381 The `--with-xim' option enables use of the X11 XIM mechanism to allow
|
|
382 an input method to input text into XEmacs. The input method is shared
|
|
383 among all the X applications sharing an X display and using the same
|
151
|
384 language. The XIM support comes in two flavors: `motif' and `xlib'.
|
|
385 The Motif support (the XmIm* functions) is preferred when available.
|
243
|
386 The xlib XIM support works reasonably well so long as the X11 libraries
|
|
387 are recent enough. It has been fairly well tested on Linux with glibc
|
|
388 2.0.5 and 2.0.6 and Kinput2 as an XIM server. In this configuration
|
|
389 X11 must be recompiled with X_LOCALE defined because glibc is lacking
|
|
390 localization for Japanese. The XIM support defaults to `no' except
|
|
391 when Motif is detected where it is stable with OSF libraries. The XIM
|
|
392 support in Lesstif (a Free Motif replacement) does not work as of
|
|
393 v0.82. If you enable this option, you will probably wish to install
|
|
394 the `locale' package which contains localized Splash screens and
|
|
395 Menubars.
|
|
396
|
272
|
397 The `--with-xfs' option enables use of a multilingual Menubar. At the
|
243
|
398 present time, only Japanese and French locales are supported. In
|
272
|
399 order to use a multilingual Menubar you must have the `locale' package
|
243
|
400 installed. The `locale' package does not have to be installed when
|
|
401 building XEmacs.
|
149
|
402
|
|
403 The `--with-canna' option enables the use of the Canna Japanese input
|
243
|
404 method. This is stable code and fairly well tested. In order to use
|
2283
|
405 it, you will have to have the Canna server installed and running. Canna
|
|
406 versions 3.2pl2, 3.5b2, and 3.7p3 are known to work. Version 3.2pl2 is
|
|
407 considered more stable than version 3.5b2; the stability of 3.7p3 is
|
|
408 still unknown. If Canna is already installed, configure will autodetect
|
|
409 it, so you never need to explicitly use this option unless your Canna
|
|
410 libraries are somewhere strange. Canna run time support is currently
|
|
411 bundled with the `mule-base' package so there is nothing additional to
|
|
412 install in order to use it.
|
0
|
413
|
243
|
414 The `--with-wnn' and `--with-wnn6' options are for compiling with the Wnn
|
|
415 multi-language input method. `--with-wnn' is for compiling with Wnn-4.2,
|
|
416 the Free version of WNN. `--with-wnn6' is for compiling against WNN6,
|
|
417 the commercial version of WNN available from OMRON Corporation. This is
|
|
418 stable code and fairly well tested. In order to build with this
|
|
419 option, you will need to have the `egg-its' lisp package already
|
|
420 installed.
|
|
421
|
|
422 Please note that it is safe to build with as many of the options
|
|
423 `--with-xim', `--with-canna' and `--with-wnn' as your system
|
|
424 supports.
|
104
|
425
|
1338
|
426 Options for Developers and Special Requirements
|
|
427 -----------------------------------------------
|
|
428
|
2648
|
429 The `--with-rel-alloc' option can be used to either enable or disable
|
|
430 use of the relocating allocator. Turning on --with-rel-alloc will allow
|
|
431 XEmacs to return unused memory to the operating system, thereby reducing
|
|
432 its memory footprint. However, it may make XEmacs runs more slowly,
|
1338
|
433 especially if your system's `mmap' implementation is missing or
|
2648
|
434 inefficient. Generally, it's best to go with the default configuration
|
|
435 for your system. You can tweak this based on how you use XEmacs, and
|
|
436 the memory and cpu resources available on your system.
|
1338
|
437
|
|
438 The `--with-system-malloc' option can be used to either enable or
|
|
439 disable use of the system malloc. Generally, it's best to go with the
|
|
440 default configuration for your system. Note that on many systems
|
|
441 using the system malloc disables the use of the relocating allocator.
|
|
442
|
|
443 The `--with-debug-malloc' option can be used to link a special
|
|
444 debugging version of malloc. Debug Malloc is not included with XEmacs
|
|
445 and is intended for use only by the developers. It may be obtained
|
|
446 from <URL:http://www.letters.com/dmalloc/>.
|
|
447
|
2648
|
448 The `--enable-debug' and `--enable-error-checking' options are primarily
|
|
449 useful to the developers. `--enable-debug' incorporates code for
|
|
450 performing various tests, but does not impose a speed penalty.
|
|
451 `--enable-error-checking' adds additional tests to many of the commonly
|
|
452 used macros, and imposes a speed penalty. Using either or both of these
|
|
453 options can make bug reports more useful to the developers.
|
1338
|
454
|
2648
|
455 The `--verbose' option is useful only to the developers. It displays
|
|
456 additional information, useful for debugging `configure'.
|
1338
|
457
|
442
|
458 MAIL LOCKING
|
|
459 ============
|
|
460
|
845
|
461 For most platforms, configure or the src/s file have the preferred
|
|
462 method for locking mail spool files preconfigured. Otherwise you must
|
|
463 find out for youself. Do not choose a locking protocol "on the
|
|
464 objective merits." XEmacs must use the same method as other mail
|
1338
|
465 utilities on your system, or you WILL lose mail.
|
845
|
466
|
|
467 Presently, XEmacs supports lockf, flock, and dot locking. Specify the
|
2648
|
468 locking method via the --with-mail-locking=METHOD option to configure.
|
|
469 Valid values for METHOD are --with-mail-locking are `lockf', `flock',
|
|
470 and `dot'.
|
442
|
471
|
|
472 RUNNING CONFIGURE
|
|
473 =================
|
|
474
|
149
|
475 `configure' doesn't do any compilation or installation itself. It
|
|
476 just creates the files that influence those things: `./src/config.h',
|
1338
|
477 and all the Makefiles in the build tree.
|
104
|
478
|
0
|
479 When it is done, `configure' prints a description of what it did and
|
|
480 creates a shell script `config.status' which, when run, recreates the
|
|
481 same configuration. If `configure' exits with an error after
|
1338
|
482 disturbing the status quo, it removes `config.status'. If `configure'
|
|
483 doesn't work as expected, the file `config.log' contains details of
|
|
484 the tests run and their results.
|
0
|
485
|
442
|
486 AUXILIARY PATHS
|
|
487 ===============
|
|
488
|
|
489 Look at `./lisp/paths.el'; if some of those values are not right for
|
|
490 your system, set up the file `./lisp/site-init.el' with XEmacs Lisp
|
|
491 code to override them; it is not a good idea to edit paths.el itself.
|
|
492 YOU MUST USE THE LISP FUNCTION `setq' TO ASSIGN VALUES, rather than
|
|
493 `defvar', as used by `./lisp/paths.el'. For example,
|
0
|
494
|
|
495 (setq news-inews-program "/usr/bin/inews")
|
|
496
|
|
497 is how you would override the default value of the variable
|
|
498 news-inews-program (which is "/usr/local/inews").
|
|
499
|
|
500 Before you override a variable this way, *look at the value* that the
|
|
501 variable gets by default! Make sure you know what kind of value the
|
|
502 variable should have. If you don't pay attention to what you are
|
|
503 doing, you'll make a mistake.
|
|
504
|
392
|
505 Things may malfunction if the variable `directory-abbrev-alist' is not
|
|
506 set up to translate "temporary" automounter mount points into the
|
|
507 canonical form. XEmacs tries to detect how your automounter is
|
|
508 configured. If you have an unusual automounter configuration that
|
|
509 XEmacs cannot detect, you may need to change the value of
|
|
510 `directory-abbrev-alist'.
|
371
|
511
|
442
|
512 SITE-SPECIFIC STARTUP CODE
|
|
513 ==========================
|
|
514
|
|
515 Put into `./lisp/site-init.el' or `./lisp/site-load.el' any Emacs Lisp
|
|
516 code you want XEmacs to load before it is dumped out. Use
|
0
|
517 site-load.el for additional libraries if you arrange for their
|
|
518 documentation strings to be in the lib-src/DOC file (see
|
|
519 src/Makefile.in.in if you wish to figure out how to do that). For all
|
|
520 else, use site-init.el.
|
|
521
|
|
522 Note that, on some systems, the code you place in site-init.el must
|
|
523 not use expand-file-name or any other function which may look
|
|
524 something up in the system's password and user information database.
|
|
525 See `./PROBLEMS' for more details on which systems this affects.
|
|
526
|
|
527 The `site-*.el' files are nonexistent in the distribution. You do not
|
|
528 need to create them if you have nothing to put in them.
|
|
529
|
442
|
530 TERMCAP CONFIGURATION
|
|
531 =====================
|
|
532
|
|
533 Refer to the file `./etc/TERMS' for information on fields you may
|
0
|
534 wish to add to various termcap entries. The files `./etc/termcap.ucb'
|
|
535 and `./etc/termcap.dat' may already contain appropriately-modified
|
|
536 entries.
|
|
537
|
442
|
538 RUNNING MAKE
|
|
539 ============
|
|
540
|
|
541 Run `make' in the top directory of the XEmacs distribution to finish
|
0
|
542 building XEmacs in the standard way. The final executable file is
|
1338
|
543 named `src/xemacs'. You can execute this file in place without
|
0
|
544 copying it, if you wish; then it automatically uses the sibling
|
|
545 directories ../lisp, ../lib-src, ../info.
|
|
546
|
1338
|
547 Or you can install the executable and the other XEmacs into their
|
|
548 permanent locations, with `make install'. By default, XEmacs's files
|
0
|
549 are installed in the following directories:
|
|
550
|
|
551 `/usr/local/bin' holds the executable programs users normally run -
|
388
|
552 `xemacs', `etags', `ctags', `b2m', `emacsclient', `ellcc',
|
0
|
553 `gnuclient', `gnudoit', `gnuattach', and `rcs-checkin'.
|
|
554
|
|
555 `/usr/local/lib/xemacs-VERSION/lisp' holds the Emacs Lisp libraries;
|
|
556 `VERSION' stands for the number of the XEmacs version
|
|
557 you are installing, like `18.59' or `19.14'. Since
|
|
558 the lisp libraries change from one version of XEmacs to
|
|
559 another, including the version number in the path
|
|
560 allows you to have several versions of XEmacs installed
|
|
561 at the same time; this means that you don't have to
|
|
562 make XEmacs unavailable while installing a new version.
|
|
563
|
|
564 XEmacs searches for its lisp files in these
|
|
565 directories, and then in
|
|
566 `/usr/local/lib/xemacs/site-lisp/*'.
|
|
567
|
|
568 `/usr/local/lib/xemacs-VERSION/etc' holds the XEmacs tutorial, the
|
|
569 `yow' database, and other architecture-independent
|
|
570 files XEmacs might need while running. VERSION is as
|
|
571 specified for `.../lisp'.
|
|
572
|
|
573 `/usr/local/lib/xemacs/lock' contains files indicating who is
|
|
574 editing what, so XEmacs can detect editing clashes
|
|
575 between users.
|
|
576
|
|
577 `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME' contains executable
|
|
578 programs used by XEmacs that users are not expected to
|
|
579 run themselves, and the DOC file. `VERSION' is the
|
|
580 number of the XEmacs version you are installing, and
|
243
|
581 `CONFIGURATION-NAME' is the host type of your system.
|
|
582 Since these files are specific to the version of
|
|
583 XEmacs, operating system, and architecture in use,
|
|
584 including the configuration name in the path allows
|
|
585 you to have several versions of XEmacs for any mix of
|
|
586 machines and operating systems installed at the same
|
|
587 time; this is useful for sites at which different
|
|
588 kinds of machines share the file system XEmacs is
|
|
589 installed on.
|
0
|
590
|
388
|
591 `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME/modules' holds the Emacs
|
|
592 dynamically loadable modules. These are special programs
|
|
593 typically written in C that can be loaded in much the same
|
|
594 way that Lisp packages are. Not all systems support
|
|
595 dynamic modules, so do not be alarmed if this directory
|
|
596 does not exist or is empty.
|
|
597
|
|
598 XEmacs searches for modules in this directory, or any
|
|
599 sub-directory of it, and then in
|
|
600 `/usr/local/lib/xemacs/site-modules/*'.
|
|
601
|
0
|
602 `/usr/local/lib/xemacs-VERSION/info' holds the on-line documentation
|
|
603 for XEmacs, known as "info files".
|
|
604
|
|
605 `/usr/local/man/man1' holds the man pages for the programs installed
|
|
606 in `/usr/local/bin'.
|
|
607
|
|
608 If these directories are not what you want, you can specify where to
|
|
609 install XEmacs's libraries and data files or where XEmacs should search
|
|
610 for its lisp files by giving values for `make' variables as part of
|
442
|
611 the command.
|
0
|
612
|
|
613 You can change where the build process installs XEmacs and its data
|
|
614 files by specifying values for `make' variables as part of the `make'
|
|
615 command line. For example, if you type
|
|
616
|
|
617 make install bindir=/usr/local/gnubin
|
|
618
|
|
619 the `bindir=/usr/local/gnubin' argument indicates that the XEmacs
|
|
620 executable files should go in `/usr/local/gnubin', not
|
|
621 `/usr/local/bin'.
|
|
622
|
|
623 Here is a complete list of the variables you may want to set.
|
|
624
|
|
625 `bindir' indicates where to put executable programs that users can
|
|
626 run. This defaults to /usr/local/bin.
|
|
627
|
|
628 `datadir' indicates where to put the architecture-independent
|
|
629 read-only data files that XEmacs refers to while it runs; it
|
|
630 defaults to /usr/local/lib. We create the following
|
|
631 subdirectories under `datadir':
|
|
632 - `xemacs-VERSION/lisp', containing the XEmacs lisp libraries, and
|
|
633
|
|
634 - `xemacs-VERSION/etc', containing the XEmacs tutorial and the
|
|
635 `yow' database.
|
|
636 `VERSION' is the number of the XEmacs version you are installing,
|
|
637 like `18.59' or `19.14'. Since these files vary from one version
|
|
638 of XEmacs to another, including the version number in the path
|
|
639 allows you to have several versions of XEmacs installed at the
|
|
640 same time; this means that you don't have to make XEmacs
|
|
641 unavailable while installing a new version.
|
|
642
|
|
643 `statedir' indicates where to put architecture-independent data files
|
|
644 that XEmacs modifies while it runs; it defaults to
|
|
645 /usr/local/lib as well. We create the following
|
|
646 subdirectories under `statedir':
|
|
647 - `xemacs/lock', containing files indicating who is editing
|
|
648 what, so XEmacs can detect editing clashes between
|
|
649 users.
|
|
650
|
|
651 `libdir' indicates where to put architecture-specific data files that
|
|
652 XEmacs refers to as it runs; it too defaults to `/usr/local/lib'.
|
|
653 We create the following subdirectories under `libdir':
|
|
654 - `xemacs-VERSION/CONFIGURATION-NAME', containing executable
|
|
655 programs used by XEmacs that users are not expected to run
|
1338
|
656 themselves, and the DOC file.
|
0
|
657 `VERSION' is the number of the XEmacs version you are installing,
|
243
|
658 and `CONFIGURATION-NAME' is the host type of your system.
|
|
659 Since these files are specific to the version of XEmacs,
|
|
660 operating system, and architecture in use, including the
|
|
661 configuration name in the path allows you to have several
|
|
662 versions of XEmacs for any mix of machines and operating
|
|
663 systems installed at the same time; this is useful for sites
|
|
664 at which different kinds of machines share the file system
|
|
665 XEmacs is installed on.
|
0
|
666
|
|
667 `infodir' indicates where to put the info files distributed with
|
|
668 XEmacs; it defaults to `/usr/local/lib/xemacs-VERSION/info'.
|
|
669
|
|
670 `mandir' indicates where to put the man pages for XEmacs and its
|
|
671 utilities (like `etags'); it defaults to
|
|
672 `/usr/local/man/man1'.
|
|
673
|
|
674 `prefix' doesn't give a path for any specific part of XEmacs; instead,
|
|
675 its value is used to determine the defaults for all the
|
|
676 architecture-independent path variables - `datadir',
|
|
677 `statedir', `infodir', and `mandir'. Its default value is
|
|
678 `/usr/local'; the other variables add on `lib' or `man' to it
|
|
679 by default.
|
|
680
|
|
681 For example, suppose your site generally places GNU software
|
|
682 under `/usr/users/software/gnusoft' instead of `/usr/local'.
|
|
683 By including
|
|
684 `prefix=/usr/users/software/gnusoft'
|
|
685 in the arguments to `make', you can instruct the build process
|
|
686 to place all of the XEmacs data files in the appropriate
|
|
687 directories under that path.
|
|
688
|
|
689 `exec_prefix' serves the same purpose as `prefix', but instead
|
|
690 determines the default values for the architecture-dependent
|
|
691 path variables - `bindir' and `libdir'.
|
|
692
|
|
693 The above variables serve analogous purposes in the makefiles for all
|
|
694 GNU software; here are some variables specific to XEmacs.
|
|
695
|
|
696 `lispdir' indicates where XEmacs installs and expects its lisp
|
|
697 libraries. Its default value, based on `datadir' (see above),
|
|
698 is `/usr/local/lib/xemacs-VERSION/lisp' (where `VERSION' is as
|
|
699 described above).
|
|
700
|
|
701 `sitelispdir' indicates where XEmacs should search for lisp libraries
|
|
702 specific to your site. XEmacs checks them in order before
|
|
703 checking `lispdir'. Its default value, based on `datadir'
|
|
704 (see above), is `/usr/local/lib/xemacs/site-lisp'.
|
|
705
|
|
706 `etcdir' indicates where XEmacs should install and expect the rest of
|
|
707 its architecture-independent data, like the tutorial and yow
|
|
708 database. Its default value, based on `datadir'
|
|
709 (see above), is `/usr/local/lib/xemacs-VERSION/etc' (where
|
|
710 `VERSION' is as described above).
|
|
711
|
|
712 `lockdir' indicates the directory where XEmacs keeps track of its
|
|
713 locking information. Its default value, based on `statedir'
|
|
714 (see above), is `/usr/local/lib/xemacs/lock'.
|
|
715
|
|
716 `archlibdir' indicates where XEmacs installs and expects the
|
|
717 executable files and other architecture-dependent data it uses
|
|
718 while running. Its default value, based on `libdir' (see
|
|
719 above), is `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME'
|
|
720 (where VERSION and CONFIGURATION-NAME are as described above).
|
|
721
|
420
|
722 `docdir' indicates where to put Lisp documentation strings that XEmacs
|
442
|
723 refers to as it runs. It defaults to the value of `archlibdir'
|
420
|
724 (see above).
|
|
725
|
388
|
726 `moduledir' indicates where XEmacs installs and expects to find
|
|
727 any dynamic modules. Its default value, based on
|
|
728 `archlibdir' (see above) is
|
|
729 `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME/modules'
|
|
730 (where VERSION and CONFIGURATION-NAME are as described above).
|
|
731 By their very nature, dynamic loadable modules are architecture-
|
442
|
732 dependent, and care should be taken not to set this directory
|
|
733 to a system- or architecture-independent directory.
|
388
|
734
|
0
|
735 Remember that you must specify any variable values you need each time
|
|
736 you run `make' in the top directory. If you run `make' once to build
|
|
737 xemacs, test it, and then run `make' again to install the files, you
|
|
738 must provide the same variable settings each time. To make the
|
|
739 settings persist, you can edit them into the `Makefile' in the top
|
|
740 directory, but be aware that running the `configure' program erases
|
|
741 `Makefile' and rebuilds it from `Makefile.in'.
|
|
742
|
|
743 The top-level Makefile stores the variable settings it used in the
|
|
744 Makefiles for the subdirectories, so you don't have to specify them
|
|
745 when running make in the subdirectories.
|
|
746
|
442
|
747 Using GNU Make allows for simultaneous builds with and without the
|
|
748 --srcdir option.
|
0
|
749
|
1283
|
750 STRIPPING BINARIES
|
|
751 ==================
|
|
752
|
|
753 This saves nothing but a small (by modern standards) amount of disk
|
|
754 space; the symbol table is not loaded into memory at execution time.
|
|
755 If you do encounter a crash or other serious bug, the first thing the
|
|
756 developers will do is ask you to build an XEmacs with a full symbol
|
|
757 table, anyway. Don't strip the XEmacs binary.
|
|
758
|
442
|
759 MAIL-LOCKING POST-INSTALLATION
|
|
760 ==============================
|
0
|
761
|
442
|
762 If your system uses dot-locking to interlock access to mailer inbox
|
|
763 files, then you might need to make the movemail program setuid or
|
|
764 setgid to enable it to write the lock files. We believe this is safe.
|
|
765 The setuid/setgid bits need not be set on any other XEmacs-related
|
|
766 executables.
|
0
|
767
|
442
|
768 CLEANING UP
|
|
769 ==========
|
0
|
770
|
442
|
771 You are done with the hard part! You can remove executables and
|
|
772 object files from the build directory by typing `make clean'. To also
|
|
773 remove the files that `configure' created (so you can compile XEmacs
|
|
774 for a different configuration), type `make distclean'.
|
0
|
775
|
442
|
776 READ README.packages
|
|
777 ====================
|
0
|
778
|
442
|
779 Do it!
|
0
|
780
|
|
781 PROBLEMS
|
442
|
782 ========
|
398
|
783
|
1338
|
784 The most common problem is that you forgot to read and follow the
|
|
785 directions in README.packages. You can not have a normal XEmacs
|
424
|
786 without downloading some additional packages.
|
|
787
|
1036
|
788 See the file PROBLEMS in this directory for a list of various problems
|
|
789 sometimes encountered, and what to do about them. PROBLEMS is also
|
|
790 the place where platform-specific build notes can be found.
|