annotate src/INSTALL @ 7:95054589743a

*** empty log message ***
author axmo
date Wed, 13 Aug 2008 17:54:25 +0900
parents 76efa0be13f1
children e170173ecb68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 INSTALL - Installation of Vim on different machines.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3 This file contains instructions for compiling Vim. If you already have an
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 executable version of Vim, you don't need this.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 Contents:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 1. Generic
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 2. Unix
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 3. RISC OS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 4. OS/2 (with EMX 0.9b)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 5. Atari MiNT
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 See INSTALLami.txt for Amiga
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 See INSTALLmac.txt for Macintosh
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 See INSTALLpc.txt for PC (MS-DOS, Windows 95/98/NT/XP)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 See INSTALLvms.txt for VMS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 See ../runtime/doc/os_390.txt for OS/390 Unix
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 See ../runtime/doc/os_beos.txt for BeBox
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 1. Generic
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 ==========
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 If you compile Vim without specifying anything, you will get the default
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 behaviour as is documented, which should be fine for most people.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 For features that you can't enable/disable in another way, you can edit the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 file "feature.h" to match your preferences.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 2. Unix
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32 =======
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
33
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
34 Summary:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
35 1. make run configure, compile and link
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
36 2. make install installation in /usr/local
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
37
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
38 This will include the GUI and X11 libraries, if you have them. If you want a
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
39 version of Vim that is small and starts up quickly, see the Makefile for how
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
40 to disable the GUI and X11. If you don't have GUI libraries and/or X11, these
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
41 features will be disabled automatically.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
42
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
43 See the start of Makefile for more detailed instructions about how to compile
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
44 Vim.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
45
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
46 If you need extra compiler and/or linker arguments, set $CFLAGS and/or $LIBS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
47 before starting configure. Example:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
48
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
49 env CFLAGS=-I/usr/local/include LIBS=-lm make
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
50
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
51 This is only needed for things that configure doesn't offer a specific argument
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
52 for or figures out by itself. First try running configure without extra
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
53 arguments.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
54
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
55 GNU Autoconf and a few other tools have been used to make Vim work on many
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
56 different Unix systems. The advantage of this is that Vim should compile
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
57 on most sytems without any adjustments. The disadvantage is that when
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
58 adjustments are required, it takes some time to understand what is happening.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
59
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
60 If configure finds all library files and then complains when linking that some
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
61 of them can't be found, your linker doesn't return an error code for missing
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
62 libraries. Vim should be linked fine anyway, mostly you can just ignore these
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
63 errors.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
64
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
65 If you run configure by hand (not using the Makefile), remember that any
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
66 changes in the Makefile have no influence on configure. This may be what you
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
67 want, but maybe not!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
68
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
69 The advantage of running configure separately, is that you can write a script
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
70 to build Vim, without changing the Makefile or feature.h. Example (using sh):
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
71
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
72 CFLAGS=-DCOMPILER_FLAG ./configure --enable-gui=motif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
73
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
74 One thing to watch out for: If the configure script itself changes, running
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
75 "make" will execute it again, but without your arguments. Do "make clean" and
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
76 run configure again.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
77
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
78 If you are compiling Vim for several machines, for each machine:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
79 a. make shadow
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
80 b. mv shadow machine_name
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
81 c. cd machine_name
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
82 d. make; make install
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
83
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
84 [Don't use a path for machine_name, just a directory name, otherwise the links
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
85 that "make shadow" creates won't work.]
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
86
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
87
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
88 Unix: COMPILING WITH/WITHOUT GUI
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
89
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
90 NOTE: This is incomplete, look in Makefile for more info.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
91
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
92 These configure arguments can be used to select which GUI to use:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
93 --enable-gui=gtk or: gtk2, motif, athena or auto
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
94 --disable-gtk-check
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
95 --disable-motif-check
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
96 --disable-athena-check
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
97
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
98 --enable-gui defaults to "auto", so it will automatically look for a GUI (in
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
99 the order of GTK, Motif, then Athena). If one is found, then is uses it and
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
100 does not proceed to check any of the remaining ones. Otherwise, it moves on
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
101 to the next one.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
102
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
103 --enable-{gtk,gtk2,kde,motif,athena}-check all default to "yes", such that if
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
104 --enable-gui is "auto" (which it is by default), GTK, Motif, and Athena will
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
105 be checked for. If you want to *exclude* a certain check, then you use
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
106 --disable-{gtk,gtk2,kde,motif,athena}-check.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
107
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
108 For example, if --enable-gui is set to "auto", but you don't want it look for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
109 Motif, you then also specify --disable-motif-check. This results in only
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
110 checking for GTK and Athena.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
111
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
112 Lastly, if you know which one you want to use, then you can just do
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
113 --enable-gui={gtk,gtk2,kde,motif,athena}. So if you wanted to only use Motif,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
114 then you'd specify --enable-gui=motif. Once you specify what you want, the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
115 --enable-{gtk,gtk2,kde,motif,athena}-check options are ignored.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
116
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
117 On Linux you usually need GUI "-devel" packages. You may already have GTK
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
118 libraries installed, but that doesn't mean you can compile Vim with GTK, you
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
119 also need the header files.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
120
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
121 For compiling with the GTK+ GUI, you need a recent version of glib and gtk+.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
122 Configure checks for at least version 1.1.16. An older version is not selected
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
123 automatically. If you want to use it anyway, run configure with
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
124 "--disable-gtktest".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
125 GTK requires an ANSI C compiler. If you fail to compile Vim with GTK+ (it
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
126 is the preferred choice), try selecting another one in the Makefile.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
127 If you are sure you have GTK installed, but for some reason configure says you
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
128 do not, you may have left-over header files and/or library files from an older
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
129 (and incompatible) version of GTK. if this is the case, please check
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
130 auto/config.log for any error messages that may give you a hint as to what's
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
131 happening.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
132
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
133 There used to be a KDE version of Vim, using Qt libraries, but since it didn't
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
134 work very well and there was no maintainer it was dropped.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
135
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
136
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
137 Unix: COMPILING WITH MULTI-BYTE
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
138
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
139 When you want to compile with the multi-byte features enabled, make sure you
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
140 compile on a machine where the locale settings actually work. otherwise the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
141 configure tests may fail. You need to compile with "big" features:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
142
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
143 ./configure --with-features=big
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
144
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
145 Unix: COMPILING ON LINUX
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
146
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
147 On Linux, when using -g to compile (which is default for gcc), the executable
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
148 will probably be statically linked. If you don't want this, remove the -g
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
149 option from CFLAGS.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
150
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
151 Unix: PUTTING vimrc IN /etc
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
152
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
153 Some Linux distributions prefer to put the global vimrc file in /etc, and the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
154 Vim runtime files in /usr. This can be done with:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
155 ./configure --prefix=/usr
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
156 make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim MAKE="make -e"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
157
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
158 Unix: COMPILING ON NeXT
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
159
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
160 Add the "-posix" argument to the compiler by using one of these commands:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
161 setenv CC 'cc -posix' (csh)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
162 export CC='cc -posix' (sh)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
163 And run configure with "--disable-motif-check".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
164
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
165
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
166 3. RISC OS
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
167 =============
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
168
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
169 Much file renaming is needed before you can compile anything.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
170 You'll need UnixLib to link against, GCC and GNU make.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
171
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
172 I suggest you get the RISC OS binary distribution, which includes the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
173 Templates file and the loader.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
174
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
175 Try here: http://www.ecs.soton.ac.uk/~tal197
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
176
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
177 Do
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
178 :help riscos
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
179
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
180 within the editor for more information, or read the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
181 ../runtime/doc/os_risc.txt help file.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
182
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
183
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
184 4. OS/2
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
185 =======
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
186
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
187 Summary:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
188 ren Makefile Makefile.unix
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
189 ren makefile.os2 Makefile
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
190 make
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
191
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
192 This port of Vim to OS/2 is based on the emx environment together
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
193 with GNU C. The main design goal of emx is to simplify porting Unix
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
194 software to OS/2 and DOS. Because of this, almost all the Unix defines
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
195 etc. already existing in the Vim source code could be reused. Only where
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
196 OS/2 specifics came into play were additional changes necessary. Those
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
197 places can be found by searching for "OS2" and "__EMX__" (I've tried to
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
198 keep emx-specific things separate from generic OS/2 stuff).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
199
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
200 Note: This OS/2 port works well for me and an additional OS/2 user on
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
201 the Vim development team (Karsten Sievert); however, since I
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
202 haven't had any other feedback from other people, that either
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
203 means no (OS/2-specific) bugs exist, or no one has yet created
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
204 a situation in which any bugs are apparent.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
205 Report any problems or other comments to paul@wau.mis.ah.nl
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
206 (email valid up to at least September 1996, after that try
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
207 paul@wurtel.hobby.nl, paul@murphy.nl, or paulS@toecompst.nl).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
208 Textmode/notextmode and binary mode both seem to work well.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
209
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
210 Prerequisites:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
211 - To compile, you need the emx environment (at least rev. 0.9b), GCC,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
212 some make utility (GNU make works fine). These are generally
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
213 available as (ask Archie about them):
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
214 emxrt.zip emx runtime package
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
215 emxdev.zip emx development system (without compiler)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
216 GNU programs compiled for emx, patches and patched sources:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
217 gnudev1.zip GNU development tools compiled for emx (part 1)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
218 gnudev2.zip GNU development tools compiled for emx (part 2)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
219 gnumake.zip GNU make
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
220 - Don't set a TERM environment variable; Vim defaults to os2ansi
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
221 which is available as a builtin termcap entry. Using other values
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
222 may give problems! (OS/2 ANSI emulation is quite limited.) If you
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
223 need to set TERM for other programs, you may consider putting
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
224 set term=os2ansi in the vimrc file.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
225
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
226 Check ../runtime/doc/os_os2.txt for additional info on running Vim.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
227
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
228
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
229 5. Atari MiNT
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
230 =============
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
231
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
232 [NOTE: this is quite old, it might not work anymore]
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
233
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
234 To compile Vim for MiNT you may either copy Make_mint.mak to Makefile or use
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
235 the Unix Makefile adapted for the MiNT configuration.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
236
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
237 Now proceed as described in the Unix section.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
238
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
239 Prerequisites:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
240
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
241 You need a curses or termcap library that supports non-alphanumeric
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
242 termcap names. If you don't have any, link with termlib.o.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
243
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
244 -----------------------------------------------------------------------------
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
245
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
246 The rest of this file is based on the INSTALL file that comes with GNU
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
247 autoconf 2.12. Not everything applies to Vim. Read Makefile too!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
248
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
249
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
250 Basic Installation
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
251 ==================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
252
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
253 These are generic installation instructions.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
254
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
255 The `configure' shell script attempts to guess correct values for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
256 various system-dependent variables used during compilation. It uses
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
257 those values to create a `Makefile' in each directory of the package.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
258 It may also create one or more `.h' files containing system-dependent
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
259 definitions. Finally, it creates a shell script `config.status' that
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
260 you can run in the future to recreate the current configuration, a file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
261 `config.cache' that saves the results of its tests to speed up
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
262 reconfiguring, and a file `config.log' containing compiler output
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
263 (useful mainly for debugging `configure').
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
264
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
265 If you need to do unusual things to compile the package, please try
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
266 to figure out how `configure' could check whether to do them, and mail
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
267 diffs or instructions to the address given in the `README' so they can
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
268 be considered for the next release. If at some point `config.cache'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
269 contains results you don't want to keep, you may remove or edit it.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
270
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
271 The file `configure.in' is used to create `configure' by a program
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
272 called `autoconf'. You only need `configure.in' if you want to change
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
273 it or regenerate `configure' using a newer version of `autoconf'.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
274
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
275 The simplest way to compile this package is:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
276
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
277 1. `cd' to the directory containing the package's source code and type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
278 `./configure' to configure the package for your system. If you're
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
279 using `csh' on an old version of System V, you might need to type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
280 `sh ./configure' instead to prevent `csh' from trying to execute
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
281 `configure' itself.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
282
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
283 Running `configure' takes awhile. While running, it prints some
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
284 messages telling which features it is checking for.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
285
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
286 2. Type `make' to compile the package.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
287
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
288 3. Optionally, type `make check' to run any self-tests that come with
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
289 the package.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
290
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
291 4. Type `make install' to install the programs and any data files and
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
292 documentation.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
293
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
294 5. You can remove the program binaries and object files from the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
295 source code directory by typing `make clean'. To also remove the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
296 files that `configure' created (so you can compile the package for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
297 a different kind of computer), type `make distclean'. There is
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
298 also a `make maintainer-clean' target, but that is intended mainly
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
299 for the package's developers. If you use it, you may have to get
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
300 all sorts of other programs in order to regenerate files that came
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
301 with the distribution.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
302
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
303 Compilers and Options
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
304 =====================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
305
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
306 Some systems require unusual options for compilation or linking that
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
307 the `configure' script does not know about. You can give `configure'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
308 initial values for variables by setting them in the environment. Using
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
309 a Bourne-compatible shell, you can do that on the command line like
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
310 this:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
311 CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
312
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
313 Or on systems that have the `env' program, you can do it like this:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
314 env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
315
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
316 Compiling For Multiple Architectures
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
317 ====================================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
318
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
319 You can compile the package for more than one kind of computer at the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
320 same time, by placing the object files for each architecture in their
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
321 own directory. To do this, you must use a version of `make' that
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
322 supports the `VPATH' variable, such as GNU `make'. `cd' to the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
323 directory where you want the object files and executables to go and run
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
324 the `configure' script. `configure' automatically checks for the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
325 source code in the directory that `configure' is in and in `..'.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
326
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
327 If you have to use a `make' that does not supports the `VPATH'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
328 variable, you have to compile the package for one architecture at a time
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
329 in the source code directory. After you have installed the package for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
330 one architecture, use `make distclean' before reconfiguring for another
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
331 architecture.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
332
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
333 Installation Names
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
334 ==================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
335
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
336 By default, `make install' will install the package's files in
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
337 `/usr/local/bin', `/usr/local/man', etc. You can specify an
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
338 installation prefix other than `/usr/local' by giving `configure' the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
339 option `--prefix=PATH'.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
340
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
341 You can specify separate installation prefixes for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
342 architecture-specific files and architecture-independent files. If you
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
343 give `configure' the option `--exec-prefix=PATH', the package will use
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
344 PATH as the prefix for installing programs and libraries.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
345 Documentation and other data files will still use the regular prefix.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
346
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
347 In addition, if you use an unusual directory layout you can give
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
348 options like `--bindir=PATH' to specify different values for particular
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
349 kinds of files. Run `configure --help' for a list of the directories
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
350 you can set and what kinds of files go in them.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
351
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
352 If the package supports it, you can cause programs to be installed
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
353 with an extra prefix or suffix on their names by giving `configure' the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
354 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
355
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
356 Optional Features
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
357 =================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
358
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
359 Some packages pay attention to `--enable-FEATURE' options to
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
360 `configure', where FEATURE indicates an optional part of the package.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
361 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
362 is something like `gnu-as' or `x' (for the X Window System). The
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
363 `README' should mention any `--enable-' and `--with-' options that the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
364 package recognizes.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
365
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
366 For packages that use the X Window System, `configure' can usually
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
367 find the X include and library files automatically, but if it doesn't,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
368 you can use the `configure' options `--x-includes=DIR' and
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
369 `--x-libraries=DIR' to specify their locations.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
370
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
371 Specifying the System Type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
372 ==========================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
373
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
374 There may be some features `configure' can not figure out
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
375 automatically, but needs to determine by the type of host the package
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
376 will run on. Usually `configure' can figure that out, but if it prints
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
377 a message saying it can not guess the host type, give it the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
378 `--host=TYPE' option. TYPE can either be a short name for the system
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
379 type, such as `sun4', or a canonical name with three fields:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
380 CPU-COMPANY-SYSTEM
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
381
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
382 See the file `config.sub' for the possible values of each field. If
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
383 `config.sub' isn't included in this package, then this package doesn't
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
384 need to know the host type.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
385
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
386 If you are building compiler tools for cross-compiling, you can also
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
387 use the `--target=TYPE' option to select the type of system they will
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
388 produce code for and the `--build=TYPE' option to select the type of
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
389 system on which you are compiling the package.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
390
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
391 Sharing Defaults
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
392 ================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
393
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
394 If you want to set default values for `configure' scripts to share,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
395 you can create a site shell script called `config.site' that gives
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
396 default values for variables like `CC', `cache_file', and `prefix'.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
397 `configure' looks for `PREFIX/share/config.site' if it exists, then
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
398 `PREFIX/etc/config.site' if it exists. Or, you can set the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
399 `CONFIG_SITE' environment variable to the location of the site script.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
400 A warning: not all `configure' scripts look for a site script.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
401
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
402 Operation Controls
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
403 ==================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
404
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
405 `configure' recognizes the following options to control how it
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
406 operates.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
407
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
408 `--cache-file=FILE'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
409 Use and save the results of the tests in FILE instead of
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
410 `./config.cache'. Set FILE to `/dev/null' to disable caching, for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
411 debugging `configure'.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
412
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
413 `--help'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
414 Print a summary of the options to `configure', and exit.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
415
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
416 `--quiet'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
417 `--silent'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
418 `-q'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
419 Do not print messages saying which checks are being made. To
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
420 suppress all normal output, redirect it to `/dev/null' (any error
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
421 messages will still be shown).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
422
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
423 `--srcdir=DIR'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
424 Look for the package's source code in directory DIR. Usually
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
425 `configure' can determine that directory automatically.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
426
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
427 `--version'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
428 Print the version of Autoconf used to generate the `configure'
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
429 script, and exit.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
430
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
431 `configure' also accepts some other, not widely useful, options.