comparison INSTALL @ 3050:67b6f3514ffc

[xemacs-hg @ 2005-11-07 08:49:12 by stephent] Various small patches (also commit configure): Minor improvements to INSTALL <877jbk3nkk.fsf@tleepslib.sk.tsukuba.ac.jp> Add description of changed options to INSTALL <873bm83ncd.fsf@tleepslib.sk.tsukuba.ac.jp> Check for libpq (PostgreSQL) linking against SSL and crypto <87y8402820.fsf@tleepslib.sk.tsukuba.ac.jp> Include module INLINE_HEADERs in inline.c unconditionally <87u0eo27rn.fsf@tleepslib.sk.tsukuba.ac.jp> Fix use of AC_INIT <87pspc27oh.fsf@tleepslib.sk.tsukuba.ac.jp> Minor ChangeLog repairs <87ll0027jq.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Mon, 07 Nov 2005 08:49:25 +0000
parents 31e656a27dae
children 15139dbf89f4
comparison
equal deleted inserted replaced
3049:184482827eb5 3050:67b6f3514ffc
13 of this document, or of portions of it, 13 of this document, or of portions of it,
14 under the above conditions, provided also that they 14 under the above conditions, provided also that they
15 carry prominent notices stating who last changed them, 15 carry prominent notices stating who last changed them,
16 and that any new or changed statements about the activities 16 and that any new or changed statements about the activities
17 of the Free Software Foundation are approved by the Foundation. 17 of the Free Software Foundation are approved by the Foundation.
18
19 Last modified by Stephen J. Turnbull <stephen@xemacs.org> 2003-02-12
20 18
21 BUILDING AND INSTALLATION FOR UNIX AND CYGWIN 19 BUILDING AND INSTALLATION FOR UNIX AND CYGWIN
22 20
23 (for Microsoft Windows, see nt/README also.) 21 (for Microsoft Windows, see nt/README also.)
24 22
143 `--enable-FEATURE' to use a feature or `--without-FEATURE' or 141 `--enable-FEATURE' to use a feature or `--without-FEATURE' or
144 `--disable-FEATURE' to not use a feature. Unlike the `configure' 142 `--disable-FEATURE' to not use a feature. Unlike the `configure'
145 program used in other applications, either `--with-FEATURE' or 143 program used in other applications, either `--with-FEATURE' or
146 `--enable-FEATURE' can be used to use the same feature. 144 `--enable-FEATURE' can be used to use the same feature.
147 145
146 If you haven't built XEmacs 21.5 recently, the change from the
147 configure script based on Autoconf 2.13 can be a shock. Appendix:
148 Correspondence to Old Configure Options (at the end of this document)
149 contains a list of old options and their new equivalents.
150
148 Controlling the Host Type 151 Controlling the Host Type
149 ------------------------- 152 -------------------------
150 153
151 Almost always, you should let `configure' (actually the shell script 154 Almost always, you should let `configure' (actually the shell script
152 `config.guess') guess your host type, by omitting the 155 `config.guess') guess your host type, by omitting the
203 CFLAGS is consulted. If that is also undefined, CFLAGS defaults to "-g 206 CFLAGS is consulted. If that is also undefined, CFLAGS defaults to "-g
204 -O" for gcc and "-g" for all other compilers. 207 -O" for gcc and "-g" for all other compilers.
205 208
206 The `--with-cflags-warning=FLAGS' option specifies the warnings to be 209 The `--with-cflags-warning=FLAGS' option specifies the warnings to be
207 generated. There is normally no reason to use this flag, as XEmacs 210 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 211 turns on as many warnings as possible, and is still intended to build
209 with no, or at most a few warnings. 212 with no warnings. If you get any undocumented warnings, please report
213 them as bugs---they very often are, or at least indicate possible
214 bitrot.
210 215
211 The `--with-cflags-optimization=FLAGS' option specifies the 216 The `--with-cflags-optimization=FLAGS' option specifies the
212 optimizations to be used. There is normally no reason to use this flag, 217 optimizations to be used. There is normally no reason to use this
213 as XEmacs will already set the maximum safe 218 flag, as XEmacs will already set the maximum safe optimization flags
214 optimization flags appropriate for the compiler being invoked. 219 appropriate for the compiler being invoked.
215 220
216 The `--with-cflags-debugging=FLAGS' option specifies debugging 221 The `--with-cflags-debugging=FLAGS' option specifies debugging
217 information to be generated. There is normally no reason to use this 222 information to be generated. You should avoid using this flag, as it
218 flag, as XEmacs will include debugging information whenever possible 223 makes most severe or fatal bugs hard-to-impossible to diagnose and
219 (i.e. unless optimization is turned on and the compiler does not permit 224 fix. Debugging information does not slow down XEmacs at runtime, and
220 debugging and optimization simultaneously). 225 it doesn't make the binary very much bigger.
221 226
222 The `--with-dynamic' option specifies that configure should try to link 227 The `--with-dynamic' option specifies that configure should try to
223 emacs dynamically rather than statically. 228 link XEmacs dynamically rather than statically. `--with-static'
229 specifies the reverse. XEmacs's configure script detects whether
230 dynamic linking can be done on all platforms we know of; these options
231 are normally unnecessary.
232
233 The `--with-modules' option specifies that XEmacs be built with
234 support for runtime loadable modules. NOTE TO OEMS: XEmacs can be
235 distributed configured to support several options based on external
236 APIs (currently LDAP, PostgreSQL, and Canna) as loadable modules. You
237 can distribute an XEmacs binary package with these options enabled
238 without depending on the external package. XEmacs will fail
239 gracefully at runtime, issuing an error message indicating that the
240 required support was not found on the system.
224 241
225 You can build XEmacs for several different machine types from a single 242 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 243 source directory. To do this, you must use a version of `make' that
227 supports the `VPATH' variable, such as GNU `make'. Create separate 244 supports the `VPATH' variable, such as GNU `make'. Create separate
228 build directories for the different configuration types, and in each 245 build directories for the different configuration types, and in each
273 system has X Window System support, and arrange to use it if present. 290 system has X Window System support, and arrange to use it if present.
274 291
275 The `--without-xmu' option can be used if your vendor doesn't ship 292 The `--without-xmu' option can be used if your vendor doesn't ship
276 the Xmu library. 293 the Xmu library.
277 294
278 The `--enable-menubars=TYPE' option allows you to specify which X 295 The `--with-menubars=TYPE' option allows you to specify which X
279 toolkit you wish to use for the menubar. The valid options are 296 toolkit you wish to use for the menubar. The valid options are
280 `lucid', `motif' and `no'. The default is `lucid' which is a 297 `lucid', `motif' and `no'. The default is `lucid' which is a
281 Motif-lookalike menubar. We highly recommend its usage over the real 298 Motif-lookalike menubar. We highly recommend its usage over the real
282 Motif menubar. (In fact, the Motif menubar is currently broken.) If 299 Motif menubar. (In fact, the Motif menubar is currently broken.) If
283 `no' is specified then support for menubars will not be compiled in. 300 `no' is specified then support for menubars will not be compiled in.
284 301
285 The `--enable-scrollbars=TYPE' option allows you to specify which X 302 The `--with-scrollbars=TYPE' option allows you to specify which X
286 toolkit you wish to use for the scrollbars. The valid options are 303 toolkit you wish to use for the scrollbars. The valid options are
287 `lucid', `motif', `athena', `athena3d', and `no'. The default is 304 `lucid', `motif', `athena', `athena3d', and `no'. The default is
288 `lucid' which is a Motif-lookalike scrollbar. If `no' is specified then 305 `lucid' which is a Motif-lookalike scrollbar. If `no' is specified then
289 support for scrollbars will not be compiled in. 306 support for scrollbars will not be compiled in.
290 307
291 The `--enable-dialogs=TYPE' option allows you to specify which X toolkit 308 The `--with-dialogs=TYPE' option allows you to specify which X toolkit
292 you wish to use for the dialog boxes. The valid options are `athena', 309 you wish to use for the dialog boxes. The valid options are `athena',
293 `athena3d', `motif, and `no. The `lucid' option is accepted and will 310 `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 311 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 312 found the default is `motif'. Otherwise, the default is `athena'. If
296 `no' is specified then support for dialog boxes will not be compiled in. 313 `no' is specified then support for dialog boxes will not be compiled in.
297 314
298 The `--enable-toolbars' option allows you to enable or disable toolbar 315 The `--with-toolbars' option allows you to enable or disable toolbar
299 support. The default is `yes' if support for a windowing system is 316 support. The default is `yes' if support for a windowing system is
300 included. 317 included.
301 318
302 The `--with-xpm' option specifies that XEmacs should support X11 319 The `--with-xpm' option specifies that XEmacs should support X11
303 Pixmaps. `configure' will attempt to detect if you have the Xpm 320 Pixmaps. `configure' will attempt to detect if you have the Xpm
305 322
306 The `--with-xface' option specifies that XEmacs should support 323 The `--with-xface' option specifies that XEmacs should support
307 X-Faces. `configure' will attempt to detect if you have the compface 324 X-Faces. `configure' will attempt to detect if you have the compface
308 library and define `--with-xface' for you. 325 library and define `--with-xface' for you.
309 326
310 The `--enable-database' option specifies that XEmacs should be built 327 The `--with-database' option specifies that XEmacs should be built
311 with simple database support. The valid options are `no' or a 328 with simple database support. The valid options are `no' or a
312 comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'. 329 comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'.
313 `configure' will attempt to detect the necessary libraries and header 330 `configure' will attempt to detect the necessary libraries and header
314 files and define `--enable-database' for you. 331 files and define `--with-database' for you.
315 332
316 The `--with-postgresql' option specifies that XEmacs should be built 333 The `--with-postgresql' option specifies that XEmacs should be built
317 with PostgreSQL support, linking with libpq. `configure' will attempt 334 with PostgreSQL support, linking with libpq. `configure' will attempt
318 to detect whether PostgreSQL support is available, and automatically 335 to detect whether PostgreSQL support is available, and automatically
319 define `--with-postgresql' for you. 336 define `--with-postgresql' for you. NOTE TO OEMS: If modules are
337 supported and enabled, the libpq API support will be build as a
338 module.
320 339
321 The `--with-ldap' option specifies that XEmacs should be build with 340 The `--with-ldap' option specifies that XEmacs should be build with
322 LDAP support, using the OpenLDAP libraries. `configure' will attempt 341 LDAP support, using the OpenLDAP libraries. `configure' will attempt
323 to detect whether LDAP support is available, and automatically define 342 to detect whether LDAP support is available, and automatically define
324 `--with-ldap' for you. 343 `--with-ldap' for you. NOTE TO OEMS: If modules are supported and
344 enabled, the OpenLDAP API support will be build as a module.
325 345
326 The `--with-socks' option specifies that XEmacs should be built with 346 The `--with-socks' option specifies that XEmacs should be built with
327 SOCKS support. This requires the libsocks library. 347 SOCKS support. This requires the libsocks library.
328 348
329 The `--enable-external-widget' option specifies that XEmacs should be 349 The `--with-external-widget' option specifies that XEmacs should be
330 built with support for being used as a widget by other X11 applications. 350 built with support for being used as a widget by other X11 applications.
331 This functionality should be considered beta. 351 This functionality should be considered beta.
332 352
333 The `--enable-sound=TYPE' option specifies that XEmacs should be built 353 The `--with-sound=TYPE' option specifies that XEmacs should be built
334 with sound support. Native (`--enable-sound=native') sound support is 354 with sound support. Native (`--with-sound=native') sound support is
335 currently available only on Sun SparcStations, SGI's, HP9000s, and 355 currently available only on Sun SparcStations, SGI's, HP9000s, and
336 systems (such as Linux) with soundcard.h. Network Audio Support (NAS) 356 systems (such as Linux) with soundcard.h. Network Audio Support (NAS)
337 (`--enable-sound=nas') is an extension to X that you may or may not have 357 (`--with-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 358 for your system. For NAS, you will probably need to provide the paths
339 to the nas include and library directories to configure. If 359 to the nas include and library directories to configure. If
340 `--enable-sound' is not specified, `configure' will attempt to determine 360 `--with-sound' is not specified, `configure' will attempt to determine
341 if your configuration supports native sound and define --enable-sound 361 if your configuration supports native sound and define --with-sound
342 for you. If your native sound library is not in a standard location you 362 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, 363 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 364 `/dev/audio' is required for SunAudio files and `/dev/dsp' is required
345 for raw data and WAVE format files. 365 for raw data and WAVE format files.
346 366
366 support can be explicitly disabled via the `--with-offix=no' option. 386 support can be explicitly disabled via the `--with-offix=no' option.
367 387
368 Internationalization Options 388 Internationalization Options
369 ---------------------------- 389 ----------------------------
370 390
371 The `--enable-mule' option enables MUlti-Lingual Emacs (Mule) support, 391 The `--with-mule' option enables MUlti-Lingual Emacs (Mule) support,
372 needed to support non-Latin-1 (including Asian) languages. Mule 392 needed to support non-Latin-1 (including Asian) languages. Mule
373 support is required for Asian language and Unicode (multibyte and wide 393 support is required for Asian language and Unicode (multibyte and wide
374 character) support. With the advent of the Euro and European 394 character) support. With the advent of the Euro and European
375 Community expansion, Mule support is also recommended for Western 395 Community expansion, Mule support is also recommended for Western
376 Europeans. Enabling Mule support requires the mule-base package 396 Europeans. Enabling Mule support requires the mule-base package
407 considered more stable than version 3.5b2; the stability of 3.7p3 is 427 considered more stable than version 3.5b2; the stability of 3.7p3 is
408 still unknown. If Canna is already installed, configure will autodetect 428 still unknown. If Canna is already installed, configure will autodetect
409 it, so you never need to explicitly use this option unless your Canna 429 it, so you never need to explicitly use this option unless your Canna
410 libraries are somewhere strange. Canna run time support is currently 430 libraries are somewhere strange. Canna run time support is currently
411 bundled with the `mule-base' package so there is nothing additional to 431 bundled with the `mule-base' package so there is nothing additional to
412 install in order to use it. 432 install in order to use it. NOTE TO OEMS: If modules are supported
433 and enabled, the libcanna API support will be build as a module.
413 434
414 The `--with-wnn' and `--with-wnn6' options are for compiling with the Wnn 435 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, 436 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, 437 the Free version of WNN. `--with-wnn6' is for compiling against WNN6,
417 the commercial version of WNN available from OMRON Corporation. This is 438 the commercial version of WNN available from OMRON Corporation. This is
786 without downloading some additional packages. 807 without downloading some additional packages.
787 808
788 See the file PROBLEMS in this directory for a list of various problems 809 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 810 sometimes encountered, and what to do about them. PROBLEMS is also
790 the place where platform-specific build notes can be found. 811 the place where platform-specific build notes can be found.
812
813 APPENDIX: CORRESPONDENCE TO OLD CONFIGURE OPTIONS
814 =================================================
815
816 Here is a full translation of command line arguments. Note that any
817 option starting with "--with" may also be specified with "--enable".
818 This list may not be up-to-date.
819
820 Old | New
821 ------------------------------------------
822 General options:
823 ----------------
824
825 --help Unchanged
826 --usage Removed
827 --verbose Unchanged
828 --extra-verbose Removed
829
830 Compilation options:
831 --------------------
832
833 --compiler --with-compiler
834 --xemacs-compiler --with-xemacs-compiler
835 --with-gcc Unchanged
836 --cflags --with-cflags
837 --cflags-warning --with-cflags-warning
838 --debug --with-debug
839 New --with-cflags-debug
840 New --with-optimization
841 New --with-cflags-optimization
842 --cpp --with-cpp
843 --cppflags --with-cppflags
844 --libs --with-libs
845 --ldflags --with-ldflags
846 --site-includes --with-site-includes
847 --site-libraries --with-site-libraries
848 --site-prefixes --with-site-prefixes
849 --site-runtime-libraries --with-site-runtime-libraries
850 --dynamic --with-dynamic
851 --srcdir Unchanged
852
853 Installation options:
854 ---------------------
855
856 --prefix Unchanged
857 --with-prefix Unchanged
858 --with-netinstall Unchanged
859 --bindir Unchanged
860 --datadir Unchanged
861 --statedir Unchanged
862 --libdir Unchanged
863 --infodir Unchanged
864 --mandir Unchanged
865 --lispdir --with-lispdir
866 --sitelispdir Removed
867 --etcdir --with-etcdir
868 --lockdir Removed
869 --archlibdir --with-archlibdir
870 --docdir --with-docdir
871 --moduledir --with-moduledir
872
873 Run-time path-searching options:
874 --------------------------------
875
876 --with-site-lisp Unchanged
877 --with-site-modules Unchanged
878 --package-prefix --with-package-prefix
879 --package-path --with-package-path
880 --infopath --with-infopath
881
882 Window-system options:
883 ----------------------
884
885 --with-gtk Unchanged
886 --with-gnome Unchanged
887 --with-x11 Unchanged
888 --x-includes Unchanged
889 --x-libraries Unchanged
890 --with-msw Unchanged
891 --with-toolbars Unchanged
892 --with-wmcommand Unchanged
893 --with-athena Unchanged
894 --with-menubars Unchanged
895 --with-scrollbars Unchanged
896 --with-dialogs Unchanged
897 --with-widgets Unchanged
898 --with-dragndrop Unchanged
899 --with-cde Unchanged
900 --with-offix Unchanged
901 --with-xmu Unchanged
902 --external-widget --with-external-widget
903
904 TTY (character terminal) options:
905 ---------------------------------
906
907 --with-tty Unchanged
908 --with-ncurses Unchanged
909 --with-gpm Unchanged
910
911 Image options:
912 --------------
913
914 --with-xpm Unchanged
915 --with-png Unchanged
916 --with-jpeg Unchanged
917 --with-tiff Unchanged
918 --with-xface Unchanged
919 --with-gif Unchanged
920
921 Sound options:
922 --------------
923
924 --with-sound Unchanged
925 --native-sound-lib=LIB --with-native-sound-lib
926
927 Internationalization options:
928 -----------------------------
929
930 --with-mule Unchanged
931 --with-xim Unchanged
932 --with-canna Unchanged
933 --with-wnn Unchanged
934 --with-wnn6 Unchanged
935 --with-xfs Unchanged
936
937 File-related options:
938 ---------------------
939
940 --with-default-eol-detection Unchanged
941 --with-clash-detection Unchanged
942
943 Database options:
944 -----------------
945
946 --with-database Unchanged
947 --with-ldap Unchanged
948 --with-postgresql Unchanged
949
950 Mail options:
951 -------------
952
953 --mail-locking=TYPE --with-mail-locking
954 --with-pop Unchanged
955 --with-kerberos Unchanged
956 --with-hesiod Unchanged
957
958 Networking options:
959 -------------------
960
961 --with-tooltalk Unchanged
962 --with-socks Unchanged
963 --with-dnet Unchanged
964 --with-ipv6-cname Unchanged
965
966 Memory allocation options:
967 --------------------------
968
969 --rel-alloc --with-rel-alloc
970 --with-dlmalloc Unchanged
971 --with-system-malloc Unchanged
972 --with-debug-malloc Unchanged
973
974 Emacs Lisp options:
975 -------------------
976
977 --use-number-lib --with-bignum
978
979 Debugging options:
980 ------------------
981
982 --debug --with-debug
983 --error-checking --with-error-checking
984 --memory-usage-stats --with-memory-usage-stats
985 --quick-build --with-quick-build
986 --use-union-type --with-union-type
987 --with-quantify Unchanged
988 --with-purify Unchanged
989
990 Developer options:
991 ------------------
992
993 --with-workshop Unchanged
994 --pdump --with-pdump
995 --use-kkcc --with-kkcc
996 --with-modules Unchanged
997
998 The output files produced by this new configure should be almost
999 identical to those produced by the old. This can be tested with the
1000 provided regression test script. This script runs the two versions of
1001 configure with the supplied list of command line arguments and reports
1002 any differences. Please add your favorite configuration command lines
1003 to the list before running the test. The script is run as:
1004
1005 $ tests/autoconf/regressiontest.pl /absolute/path/to/2.13/configure \
1006 /absolute/path/to/2.59/configure >diffs.txt
1007
1008 The only differences should be:
1009 - those related to changes in the command line arguments
1010 - the change of SYS_SIGLIST_DECLARED to HAVE_DECL_SYS_SIGLIST (because the old
1011 form has been removed), and
1012 - The removal of trailing comments in src/config.h.
1013