annotate INSTALL @ 355:182f72e8cd0d r21-1-7

Import from CVS: tag r21-1-7
author cvs
date Mon, 13 Aug 2007 10:56:21 +0200
parents 4f79e16b1112
children 4711e16a8e49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
355
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
1 #!/bin/sh
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
2 #
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
3 # install - install a program, script, or datafile
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
4 # This comes from X11R5.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
5 #
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
6 # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
7 #
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
8 # This script is compatible with the BSD install script, but was written
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
9 # from scratch.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
10 #
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
11
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
12
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
13 # set DOITPROG to echo to test this script
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
14
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
15 # Don't use :- since 4.3BSD and earlier shells don't like it.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
16 doit="${DOITPROG-}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
17
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
18
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
19 # put in absolute paths if you don't have them in your path; or use env. vars.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
20
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
21 mvprog="${MVPROG-mv}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
22 cpprog="${CPPROG-cp}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
23 chmodprog="${CHMODPROG-chmod}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
24 chownprog="${CHOWNPROG-chown}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
25 chgrpprog="${CHGRPPROG-chgrp}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
26 stripprog="${STRIPPROG-strip}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
27 rmprog="${RMPROG-rm}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
28 mkdirprog="${MKDIRPROG-mkdir}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
29
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
30 tranformbasename=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
31 transform_arg=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
32 instcmd="$mvprog"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
33 chmodcmd="$chmodprog 0755"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
34 chowncmd=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
35 chgrpcmd=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
36 stripcmd=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
37 rmcmd="$rmprog -f"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
38 mvcmd="$mvprog"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
39 src=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
40 dst=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
41 dir_arg=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
42
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
43 while [ x"$1" != x ]; do
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
44 case $1 in
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
45 -c) instcmd="$cpprog"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
46 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
47 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
48
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
49 -d) dir_arg=true
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
50 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
51 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
52
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
53 -m) chmodcmd="$chmodprog $2"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
54 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
55 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
56 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
57
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
58 -o) chowncmd="$chownprog $2"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
59 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
60 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
61 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
62
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
63 -g) chgrpcmd="$chgrpprog $2"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
64 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
65 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
66 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
67
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
68 -s) stripcmd="$stripprog"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
69 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
70 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
71
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
72 -t=*) transformarg=`echo $1 | sed 's/-t=//'`
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
73 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
74 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
75
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
76 -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
77 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
78 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
79
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
80 *) if [ x"$src" = x ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
81 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
82 src=$1
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
83 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
84 # this colon is to work around a 386BSD /bin/sh bug
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
85 :
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
86 dst=$1
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
87 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
88 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
89 continue;;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
90 esac
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
91 done
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
92
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
93 if [ x"$src" = x ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
94 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
95 echo "install: no input file specified"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
96 exit 1
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
97 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
98 true
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
99 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
100
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
101 if [ x"$dir_arg" != x ]; then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
102 dst=$src
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
103 src=""
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
104
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
105 if [ -d $dst ]; then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
106 instcmd=:
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
107 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
108 instcmd=mkdir
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
109 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
110 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
111
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
112 # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
113 # might cause directories to be created, which would be especially bad
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
114 # if $src (and thus $dsttmp) contains '*'.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
115
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
116 if [ -f $src -o -d $src ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
117 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
118 true
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
119 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
120 echo "install: $src does not exist"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
121 exit 1
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
122 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
123
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
124 if [ x"$dst" = x ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
125 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
126 echo "install: no destination specified"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
127 exit 1
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
128 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
129 true
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
130 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
131
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
132 # If destination is a directory, append the input filename; if your system
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
133 # does not like double slashes in filenames, you may need to add some logic
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
134
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
135 if [ -d $dst ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
136 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
137 dst="$dst"/`basename $src`
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
138 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
139 true
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
140 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
141 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
142
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
143 ## this sed command emulates the dirname command
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
144 dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
145
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
146 # Make sure that the destination directory exists.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
147 # this part is taken from Noah Friedman's mkinstalldirs script
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
148
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
149 # Skip lots of stat calls in the usual case.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
150 if [ ! -d "$dstdir" ]; then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
151 defaultIFS='
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
152 '
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
153 IFS="${IFS-${defaultIFS}}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
154
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
155 oIFS="${IFS}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
156 # Some sh's can't handle IFS=/ for some reason.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
157 IFS='%'
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
158 set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
159 IFS="${oIFS}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
160
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
161 pathcomp=''
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
162
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
163 while [ $# -ne 0 ] ; do
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
164 pathcomp="${pathcomp}${1}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
165 shift
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
166
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
167 if [ ! -d "${pathcomp}" ] ;
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
168 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
169 $mkdirprog "${pathcomp}"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
170 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
171 true
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
172 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
173
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
174 pathcomp="${pathcomp}/"
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
175 done
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
176 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
177
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
178 if [ x"$dir_arg" != x ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
179 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
180 $doit $instcmd $dst &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
181
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
182 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
183 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
184 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
185 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
186 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
187
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
188 # If we're going to rename the final executable, determine the name now.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
189
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
190 if [ x"$transformarg" = x ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
191 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
192 dstfile=`basename $dst`
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
193 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
194 dstfile=`basename $dst $transformbasename |
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
195 sed $transformarg`$transformbasename
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
196 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
197
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
198 # don't allow the sed command to completely eliminate the filename
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
199
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
200 if [ x"$dstfile" = x ]
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
201 then
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
202 dstfile=`basename $dst`
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
203 else
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
204 true
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
205 fi
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
206
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
207 # Make a temp file name in the proper directory.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
208
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
209 dsttmp=$dstdir/#inst.$$#
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
210
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
211 # Move or copy the file name to the temp name
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
212
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
213 $doit $instcmd $src $dsttmp &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
214
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
215 trap "rm -f ${dsttmp}" 0 &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
216
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
217 # and set any options; do chmod last to preserve setuid bits
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
218
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
219 # If any of these fail, we abort the whole thing. If we want to
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
220 # ignore errors from any of these, just make sure not to ignore
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
221 # errors from the above "$doit $instcmd $src $dsttmp" command.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
222
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
223 if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
224 if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
225 if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
226 if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
227
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
228 # Now rename the file to the real destination.
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
229
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
230 $doit $rmcmd -f $dstdir/$dstfile &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
231 $doit $mvcmd $dsttmp $dstdir/$dstfile
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
232
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
233 fi &&
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
234
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
235
182f72e8cd0d Import from CVS: tag r21-1-7
cvs
parents: 333
diff changeset
236 exit 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 XEmacs Installation Guide
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 Copyright (c) 1994, 1995, 1996 Board of Trustees, University of Illinois
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 Copyright (c) 1994 Free Software Foundation, Inc.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 50
diff changeset
241 Synched up with: FSF 19.30.
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 50
diff changeset
242
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 Permission is granted to anyone to make or distribute verbatim copies
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 of this document as received, in any medium, provided that the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 copyright notice and permission notice are preserved,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 and that the distributor grants the recipient permission
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 for further redistribution as permitted by this notice.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 Permission is granted to distribute modified versions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 of this document, or of portions of it,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 under the above conditions, provided also that they
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 carry prominent notices stating who last changed them,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 and that any new or changed statements about the activities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 of the Free Software Foundation are approved by the Foundation.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256
253
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 243
diff changeset
257 BUILDING AND INSTALLATION (Unix and Cygwin, see the file nt/README
157b30c96d03 Import from CVS: tag r20-5b25
cvs
parents: 243
diff changeset
258 for instructions on building under Microsoft Windows):
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 1) Make sure your system has enough swapping space allocated to handle
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
261 a program whose pure code is 900k bytes and whose data area is at
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
262 least 400k and can reach 8Mb or more. If the swapping space is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
263 insufficient, you will get an error in the command `temacs -batch
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
264 -l loadup dump', found in `./src/Makefile.in.in', or possibly when
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
265 running the final dumped XEmacs.
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
266
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
267 Building XEmacs requires about 41 Mb of disk space (including the
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
268 XEmacs sources). Once installed, XEmacs occupies about 16 Mb in the
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
269 file system where it is installed; this includes the executable files,
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
270 Lisp libraries, miscellaneous data files, and on-line documentation.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
271 The amount of storage of the Lisp directories may be reduced by
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
272 compressing the .el files. If the building and installation take place
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
273 in different directories, then the installation procedure temporarily
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
274 requires 41+16 Mb. Adjust this value upwards depending upon what
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
275 additional Lisp support is installed.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
276
255
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 253
diff changeset
277 XEmacs requires an ANSI C compiler, such as GCC. If you wish to build
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 253
diff changeset
278 the documentation yourself, you will need at least version 1.68 of
084402c475ba Import from CVS: tag r20-5b26
cvs
parents: 253
diff changeset
279 makeinfo (GNU texinfo-3.11).
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
280
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
281
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
282 2) Decide on what other software packages you would like to use with
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
283 XEmacs, but are not yet available on your system. On some systems,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
284 Motif and CDE are optional additions. On Solaris, the SUNWaudmo
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
285 package enables native sound support. There are also a number of free
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
286 software packages that XEmacs can use. If these are not yet available
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
287 on your system, obtain, build and install those external packages
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
288 before building XEmacs. The packages XEmacs can use are:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
290 Xaw3d, XPM, JPEG, compface, PNG, zlib, GNU DBM, Berkeley DB, socks,
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
291 term, NAS, Canna, Kinput2, SJ3, Wnn.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
292
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
293 You can get (most of) them from the XEmacs ftp site at
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
294 ftp://ftp.xemacs.org/pub/xemacs/aux
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
296 If you want users on other systems to be able to use the XEmacs you
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
297 have built, try to build those packages so that the generated
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
298 libraries are statically linked.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
299
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
300 Use the --site-includes and --site-libraries options when building
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
301 XEmacs to allow configure to find the external software packages.
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
302 If you link with dynamic (``.so'') external package libraries, which
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
303 is not recommended, you will also need to add the library directories
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
304 to the --site-runtime-libraries option.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
305
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
307 3) Decide what Initial Lisp you need with XEmacs. XEmacs is
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
308 distributed separately from most of its runtime environment. This is
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
309 done to make it easier for administrators to tune an installation for
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
310 what the local users need. See the file etc/PACKAGES for an overview
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
311 of what is available and which packages need to be installed prior to
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
312 building XEmacs. At this point you only need a minimum to get started
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
313 at which point you may install what you wish without further changes
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
314 to the XEmacs binary. A sample minimum configuration for a Linux
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
315 system using Mule and Wnn6 from OMRON corporation would be the
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
316 packages `mule-base' and `egg-its'. By default, packages will be
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
317 searched for in the path
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
318
318
afd57c14dfc8 Import from CVS: tag r21-0b57
cvs
parents: 314
diff changeset
319 ~/.xemacs::$prefix/lib/xemacs-${version}/mule-packages:$prefix/lib/xemacs/mule-packages:$prefix/lib/xemacs-${version}/xemacs-packages:$prefix/lib/xemacs/xemacs-packages
269
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
320
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
321 This may be changed by specifying a different value with the
b2472a1930f2 Import from CVS: tag r20-5b33
cvs
parents: 255
diff changeset
322 --package-path configuration option.
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
323
314
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 276
diff changeset
324 IMPORTANT NOTE: In a future version of XEmacs, the user-specific
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 276
diff changeset
325 package hierarchy will move from ~/.xemacs to ~/.xemacs/packages.
341dac730539 Import from CVS: tag r21-0b55
cvs
parents: 276
diff changeset
326
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
327 4) In the top level directory of the XEmacs distribution, run the
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
328 program `configure' as follows:
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
330 ./configure [CONFIGURATION-NAME] [--OPTION[=VALUE]] ...
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
332 Almost always, you should let `configure' (actually the shell script
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
333 `config.guess') guess your host type, by omitting the
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
334 CONFIGURATION-NAME argument. If you like to experiment, specify a
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
335 configuration name in the form MACHINE-VENDOR-OPSYS, for example:
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
336
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
337 sparc-sun-solaris2.6
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
338
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
339 See config.guess and configure.in for valid values for MACHINE,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
340 VENDOR, and OPSYS. Also check `./etc/MACHINES' for advice on building
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
341 on particular machines.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
343 If you don't want X support, specify `--without-x'. If you omit this
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
344 option, `configure' will try to autodetect whether your system has X,
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
345 and arrange to use it if present.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 The `--x-includes=DIR' and `--x-libraries=DIR' options tell the build
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348 process where the compiler should look for the include files and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 object libraries used with the X Window System. Normally, `configure'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 is able to find them; these options are necessary if you have your X
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 Window System files installed in unusual places.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 The `--site-includes=DIR' and `--site-libraries=DIR' options allow you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 to specify additional places the compiler should look for include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 files and object libraries. You may specify multiple DIR's by
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
356 enclosing the list in quotes. All the external packages you want to
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
357 use with XEmacs (e.g. xpm, wnn, ...) described later should have their
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
358 include and library directories defined using these options.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
359
201
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
360 The `--site-runtime-libraries=DIR' option specifies directories to
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
361 search for shared libraries at run time. This may be necessary if you
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
362 link with dynamic libraries that are installed in non-standard
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
363 directories, or if you expect some of the libraries used to build
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
364 XEmacs to be in a different directory at run time than at build time.
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
365 Usually this will add a `-R' to each directory specified and use that
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
366 when linking XEmacs. If you use this option, you must specify ALL of
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
367 the directories containing shared libraries at run time, including
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
368 system directories.
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
369
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
370 Rationale: Some people think that directories in --site-libraries
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
371 should be automatically used to update --site-runtime-libraries.
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
372 Here's a real-life scenario that explains why this is not done: You
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
373 build binaries for your company using static libs in
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
374 /net/toy/hack/lib. XEmacs adds /net/toy/hack/lib to the runpath of
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
375 the executable you've built. Since there are only static libs there,
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
376 the system runtime loader will look in this dir, and ignore it,
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
377 causing only a .01 second delay in starting XEmacs. You leave the
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
378 company for a job at a small Silicon Valley startup. Time passes.
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
379 The next guy who inherits your machine objects to working on a machine
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
380 named `toy', and gets the sysadmin to rename the machine `godzilla'.
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
381 The SA forgets to remove the old entry for `toy' from the hosts file.
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
382 Now the system loader will still try to access /net/toy/, and the
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
383 automounter will hang trying to access /net/toy. XEmacs suddenly
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
384 takes 30 seconds longer to start up, no one can figure out why, and
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
385 everyone at your old company curses your name, thinking that you've
eb5470882647 Import from CVS: tag r20-3b27
cvs
parents: 185
diff changeset
386 put a time bomb into XEmacs. And they're right!
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
387
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
388 The `--with-gcc' option specifies that the build process should
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
389 compile XEmacs using GCC. The `--compiler' option allows you to
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
390 specify some other compiler to be used to compile XEmacs. If neither
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
391 option is specified, the environment variable CC is used instead.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
392 Otherwise the compiler will then default to 'cc'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
393
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
394 The `--cflags' option specifies the CFLAGS the build process should
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
395 use when compiling XEmacs. Otherwise the value of the environment
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
396 variable CFLAGS is consulted. If that is also undefined, CFLAGS
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
397 defaults to "-g -O" for gcc and "-g" for all other compilers.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
398
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
399 The `--with-gnu-make' option specifies that Makefiles should be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
400 written to take advantage of special features of GNU Make. GNU Make
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
401 works fine on Makefiles even without this option. This flag just
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
402 allows for simultaneous in-place and --srcdir building.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
403
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
404 The `--dynamic' option specifies that configure should try to link
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
405 emacs dynamically rather than statically.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
406
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
407 The `--const-is-losing' option is for use if you have trouble
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
408 compiling due to the `const' storage class in C. This is defined by
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
409 default. Most users should have no need to change this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
410
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
411 You can build XEmacs for several different machine types from a single
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
412 source directory. To do this, you must use a version of `make' that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
413 supports the `VPATH' variable, such as GNU `make'. Make separate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
414 build directories for the different configuration types, and in each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
415 one, run the XEmacs `configure' script. `configure' looks for the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
416 Emacs source code in the directory that `configure' is in.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
417
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
418 The `--prefix=PREFIXDIR' option specifies where the installation process
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
419 should put XEmacs and its data files. This defaults to `/usr/local'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
420 - XEmacs (and the other utilities users run) go in PREFIXDIR/bin
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
421 (unless the `--exec-prefix' option says otherwise).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
422 - The architecture-independent files go in PREFIXDIR/lib/xemacs-VERSION
276
6330739388db Import from CVS: tag r21-0b36
cvs
parents: 274
diff changeset
423 (where VERSION is the version number of XEmacs, like `21.0').
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
424 - The architecture-dependent files go in
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
425 PREFIXDIR/lib/xemacs-VERSION/CONFIGURATION-NAME
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
426 (where CONFIGURATION-NAME is the host type, like mips-dec-ultrix4.2),
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
427 unless the `--exec-prefix' option says otherwise.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
428
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
429 The `--exec-prefix=EXECDIR' option allows you to specify a separate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
430 portion of the directory tree for installing architecture-specific
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
431 files, like executables and utility programs. If specified,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
432 - XEmacs (and the other utilities users run) go in EXECDIR/bin, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
433 - The architecture-dependent files go in
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
434 EXECDIR/lib/xemacs-VERSION/CONFIGURATION-NAME.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
435 EXECDIR/bin should be a directory that is normally in users' PATHs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
436
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
437 For example, the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
438
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
439 ./configure mips-dec-ultrix --with-x11=yes
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
440
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
441 configures XEmacs to build for a DECstation running Ultrix, with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
442 support for the X11 window system.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
443
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
444 The `--with-menubars=TYPE' option allows you to specify which X
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
445 toolkit you wish to use for the menubar. The valid options are
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
446 `lucid', `motif' and `no'. The default is `lucid' which is a
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
447 Motif-lookalike menubar. We highly recommend its usage over the real
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
448 Motif menubar. (In fact, the Motif menubar is currently broken.) If
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
449 `no' is specified then support for menubars will not be compiled in.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
450
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
451 The `--with-scrollbars=TYPE' option allows you to specify which X
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
452 toolkit you wish to use for the scrollbars. The valid options are
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
453 `lucid', `motif', `athena', `athena3d', and `no'. The default is
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
454 `lucid' which is a Motif-lookalike scrollbar. If `no' is specified
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
455 then support for scrollbars will not be compiled in.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
456
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
457 The `--with-dialogs=TYPE' option allows you to specify which X toolkit
219
262b8bb4a523 Import from CVS: tag r20-4b8
cvs
parents: 217
diff changeset
458 you wish to use for the dialog boxes. The valid options are `athena',
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
459 `athena3d', `motif, and `no. The `lucid' option is accepted and will
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
460 result in the `athena' toolkit being used. If the Motif toolkit can be
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
461 found the default is `motif'. Otherwise, the default is `athena'. If
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
462 `no' is specified then support for dialog boxes will not be compiled
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
463 in.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
464
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
465 The `--with-toolbars' option allows you to enable or disable toolbar
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
466 support. The default is `yes' as long as support for a windowing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
467 system is included.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
468
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
469 The `--with-xpm' option specifies that XEmacs should support X11
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
470 Pixmaps. `configure' will attempt to detect if you have the Xpm
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
471 libraries and define `--with-xpm' for you.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
472
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
473 The `--with-xface' option specifies that XEmacs should support
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
474 X-Faces. `configure' will attempt to detect if you have the compface
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
475 library and define `--with-xface' for you.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
476
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
477 The `--with-database' option specifies that XEmacs should be built
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
478 with additional database support. The valid options are `no' or a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
479 comma-separated list of one or more of `dbm', `gnudbm' or `berkdb'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
480 `configure' will attempt to detect the necessary libraries and header
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
481 files and define `--with-database' for you.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
482
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
483 The `--with-socks' option specifies that XEmacs should be built with
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
484 SOCKS support. This requires the libsocks library.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
485
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
486 The `--with-tooltalk' option specifies that XEmacs should be built
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
487 with ToolTalk support for interconnecting with other applications.
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
488 ToolTalk is not yet supported on all architectures. If you use this
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
489 option, you should have the tooltalk package (see etc/PACKAGES)
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
490 installed prior to building XEmacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
491
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
492 The `--with-sparcworks' option specifies that XEmacs should be built
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
493 with support for Sun Sparcworks 3.0.1 and up (including Sun WorkShop).
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
494 This functionality is only of use on SunOS 4.1.x and Solaris 2.x
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
495 systems. If you use this option, you should have the Sun package (see
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
496 etc/PACKAGES) installed prior to building XEmacs.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
497
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
498 The `--with-cde' option allows you to enable or disable CDE drag and
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
499 drop support. `configure' will attempt to detect this option and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
500 define `--with-cde' for you.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
501
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
502 The `--with-offix' option allows you to enable or disable OffiX drag
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
503 and drop support. This requires no external library support, so if
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
504 X11 support is available, then this option defaults to `yes'. OffiX
274
ca9a9ec9c1c1 Import from CVS: tag r21-0b35
cvs
parents: 272
diff changeset
505 support can be explicitly disabled via the `--with-offix=no' option.
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
506
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
507 The `--external-widget' option specifies that XEmacs should be built
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
508 with support for being used as a widget by other X11 applications.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
509 This functionality should be considered beta.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
510
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
511 The `--without-xmu' option can be used if your vendor doesn't ship
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
512 the Xmu library.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
513
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
514 The `--puresize' option can be used to change the amount of purespace
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
515 allocated for the dumped XEmacs. As of XEmacs 20.1 usage of this
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
516 parameter is deprecated and will be ignored.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
517
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
518 The `--with-sound=TYPE' option specifies that XEmacs should be built
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
519 with sound support. Native (`--with-sound=native') sound support is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
520 currently available only on Sun SparcStations, SGI's, HP9000s, and
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
521 systems (such as Linux) with soundcard.h. Network Audio Support (NAS)
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
522 (`--with-sound=nas' or `--with-sound=both') is an extension to X that
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
523 you may or may not have for your system. For NAS, you will probably
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
524 need to provide the paths to the nas include and library directories
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
525 to configure. If `--with-sound' is not specified, `configure' will
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
526 attempt to determine if your configuration supports native sound and
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
527 define --with-sound for you. If your native sound library is not in a
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
528 standard location you can specify it with the `--native-sound-lib=LIB'
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
529 flag. For Linux, `/dev/audio' is required for SunAudio files and
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
530 `/dev/dsp' is required for raw data and WAVE format files.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
531
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
532 The `--rel-alloc' option can be used to either enable or disable use
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
533 of the relocating allocator. Turning on --rel-alloc will allow XEmacs
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
534 to return unused memory to the operating system, thereby reducing its
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
535 memory footprint. However, it may make XEmacs runs more slowly,
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
536 especially if your system's `mmap' implemntation is missing or
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
537 inefficient. Generally, it's best to go with the default
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
538 configuration for your system. You can tweak this based on how you
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
539 use XEmacs, and the memory and cpu resources available on your system.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
540
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
541 The `--use-system-malloc' option can be use to either enable or
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
542 disable use of the system malloc. Generally, it's best to go with the
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
543 default configuration for your system. Note that on many systems
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
544 using the system malloc disables the use of the relocating allocator.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
545
177
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 153
diff changeset
546 The `--use-debug-malloc' option can be used to link a special debugging
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 153
diff changeset
547 version of malloc. Debug Malloc is not included with XEmacs, is
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 153
diff changeset
548 intended for use only by the developers and may be obtained from
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 153
diff changeset
549 <URL:http://www.letters.com/dmalloc/>.
6075d714658b Import from CVS: tag r20-3b15
cvs
parents: 153
diff changeset
550
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
551 The `--debug' and `--error-checking' options are intended for use only
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
552 by the developers. `--debug' adds code to be compiled in for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
553 performing various tests. `--error-checking' adds additional tests to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
554 many of the commonly used macros.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
555
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
556 The `--verbose' and `--extra-verbose' options are intended for use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
557 only by the developers. `--verbose' causes the results of all
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
558 configure tests to be displayed. `--extra-verbose' displays
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
559 additional information, useful for debugging. Another help for
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
560 determining configure failures is the file `config.log', which
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
561 contains the results of the compile and link tests used by configure.
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
562
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
563 The `--with-mule' option enables (MUlti-Lingual Emacs) support, needed
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
564 to suport non-Latin-1 (including Asian) languages. The Mule support
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
565 is not yet as stable or efficient as the `Latin1' support. Enabling
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
566 Mule support requires the mule-base package installed prior to
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
567 building XEmacs. The following options require Mule support:
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
568
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
569 The `--with-xim' option enables use of the X11 XIM mechanism to allow
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
570 an input method to input text into XEmacs. The input method is shared
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
571 among all the X applications sharing an X display and using the same
151
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
572 language. The XIM support comes in two flavors: `motif' and `xlib'.
59463afc5666 Import from CVS: tag r20-3b2
cvs
parents: 149
diff changeset
573 The Motif support (the XmIm* functions) is preferred when available.
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
574 The xlib XIM support works reasonably well so long as the X11 libraries
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
575 are recent enough. It has been fairly well tested on Linux with glibc
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
576 2.0.5 and 2.0.6 and Kinput2 as an XIM server. In this configuration
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
577 X11 must be recompiled with X_LOCALE defined because glibc is lacking
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
578 localization for Japanese. The XIM support defaults to `no' except
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
579 when Motif is detected where it is stable with OSF libraries. The XIM
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
580 support in Lesstif (a Free Motif replacement) does not work as of
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
581 v0.82. If you enable this option, you will probably wish to install
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
582 the `locale' package which contains localized Splash screens and
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
583 Menubars.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
584
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
585 The `--with-xfs' option enables use of a multilingual Menubar. At the
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
586 present time, only Japanese and French locales are supported. In
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
587 order to use a multilingual Menubar you must have the `locale' package
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
588 installed. The `locale' package does not have to be installed when
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
589 building XEmacs.
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
590
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
591 The `--with-canna' option enables the use of the Canna Japanese input
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
592 method. This is stable code and fairly well tested. In order to use
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
593 it, you will have to have the Canna server installed and running.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
594 Canna versions 3.2pl2 and 3.5b2 are known to work. Version 3.2pl2 is
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
595 considered most stable than version 3.5b2. If Canna is already
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
596 installed, configure will autodetect it, so you never need to
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
597 explicitly use this option unless your Canna libraries are somewhere
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
598 strange. Canna run time support is currently bundled with the
272
c5d627a313b1 Import from CVS: tag r21-0b34
cvs
parents: 269
diff changeset
599 `mule-base' package so there is nothing additional to install in order
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
600 to use it.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
601
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
602 The `--with-wnn' and `--with-wnn6' options are for compiling with the Wnn
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
603 multi-language input method. `--with-wnn' is for compiling with Wnn-4.2,
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
604 the Free version of WNN. `--with-wnn6' is for compiling against WNN6,
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
605 the commercial version of WNN available from OMRON Corporation. This is
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
606 stable code and fairly well tested. In order to build with this
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
607 option, you will need to have the `egg-its' lisp package already
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
608 installed.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
609
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
610 Please note that it is safe to build with as many of the options
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
611 `--with-xim', `--with-canna' and `--with-wnn' as your system
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
612 supports.
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
613
149
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
614 `configure' doesn't do any compilation or installation itself. It
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
615 just creates the files that influence those things: `./src/config.h',
538048ae2ab8 Import from CVS: tag r20-3b1
cvs
parents: 126
diff changeset
616 and all the Makefile's in the build tree.
104
cf808b4c4290 Import from CVS: tag r20-1b4
cvs
parents: 70
diff changeset
617
126
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
618 The `--with-pop', `--with-hesiod', and `--with-kerberos' options are used
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
619 in conjunction with movemail. As of XEmacs 20.1, movemail is identical
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
620 to the one used in Emacs.
1370575f1259 Import from CVS: tag xemacs-20-1p1
cvs
parents: 120
diff changeset
621
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
622 When it is done, `configure' prints a description of what it did and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
623 creates a shell script `config.status' which, when run, recreates the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
624 same configuration. If `configure' exits with an error after
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
625 disturbing the status quo, it removes `config.status'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
626
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
627 4) Look at `./lisp/paths.el'; if some of those values are not right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
628 for your system, set up the file `./lisp/site-init.el' with XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
629 Lisp code to override them; it is not a good idea to edit paths.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
630 itself. YOU MUST USE THE LISP FUNCTION `setq' TO ASSIGN VALUES,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
631 rather than `defvar', as used by `./lisp/paths.el'. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
632
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
633 (setq news-inews-program "/usr/bin/inews")
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
634
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
635 is how you would override the default value of the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
636 news-inews-program (which is "/usr/local/inews").
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
637
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
638 Before you override a variable this way, *look at the value* that the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
639 variable gets by default! Make sure you know what kind of value the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
640 variable should have. If you don't pay attention to what you are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
641 doing, you'll make a mistake.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
642
333
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents: 318
diff changeset
643 Things may malfunction if the variable `directory-abbrev-alist' is not
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents: 318
diff changeset
644 set up to translate "temporary" automounter mount points into the
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents: 318
diff changeset
645 canonical form. XEmacs tries to detect how your automounter is
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents: 318
diff changeset
646 configured. If you have an unusual automounter configuration that
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents: 318
diff changeset
647 XEmacs cannot detect, you may need to change the value of
4f79e16b1112 Import from CVS: tag r21-0-64
cvs
parents: 318
diff changeset
648 `directory-abbrev-alist'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
649
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
650 5) Put into `./lisp/site-init.el' or `./lisp/site-load.el' any Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
651 Lisp code you want XEmacs to load before it is dumped out. Use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
652 site-load.el for additional libraries if you arrange for their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
653 documentation strings to be in the lib-src/DOC file (see
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
654 src/Makefile.in.in if you wish to figure out how to do that). For all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
655 else, use site-init.el.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
656
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
657 If you set load-path to a different value in site-init.el or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
658 site-load.el, XEmacs will use *precisely* that value when it starts up
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
659 again. If you do this, you are on your own!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
660
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
661 Note that, on some systems, the code you place in site-init.el must
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
662 not use expand-file-name or any other function which may look
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
663 something up in the system's password and user information database.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
664 See `./PROBLEMS' for more details on which systems this affects.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
665
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
666 The `site-*.el' files are nonexistent in the distribution. You do not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
667 need to create them if you have nothing to put in them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
668
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
669 6) Refer to the file `./etc/TERMS' for information on fields you may
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
670 wish to add to various termcap entries. The files `./etc/termcap.ucb'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
671 and `./etc/termcap.dat' may already contain appropriately-modified
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
672 entries.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
673
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
674 7) Run `make' in the top directory of the XEmacs distribution to finish
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
675 building XEmacs in the standard way. The final executable file is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
676 named `src/emacs'. You can execute this file "in place" without
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
677 copying it, if you wish; then it automatically uses the sibling
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
678 directories ../lisp, ../lib-src, ../info.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
679
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
680 Or you can "install" the executable and the other XEmacs into their
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
681 installed locations, with `make install'. By default, XEmacs's files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
682 are installed in the following directories:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
683
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
684 By default, XEmacs installs its files in the following directories:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
685
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
686 `/usr/local/bin' holds the executable programs users normally run -
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
687 `xemacs', `etags', `ctags', `b2m', `emacsclient',
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
688 `gnuclient', `gnudoit', `gnuattach', and `rcs-checkin'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
689
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
690 `/usr/local/lib/xemacs-VERSION/lisp' holds the Emacs Lisp libraries;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
691 `VERSION' stands for the number of the XEmacs version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
692 you are installing, like `18.59' or `19.14'. Since
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
693 the lisp libraries change from one version of XEmacs to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
694 another, including the version number in the path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
695 allows you to have several versions of XEmacs installed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
696 at the same time; this means that you don't have to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
697 make XEmacs unavailable while installing a new version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
698
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
699 XEmacs searches for its lisp files in these
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
700 directories, and then in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
701 `/usr/local/lib/xemacs/site-lisp/*'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
702
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
703 `/usr/local/lib/xemacs-VERSION/etc' holds the XEmacs tutorial, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
704 `yow' database, and other architecture-independent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
705 files XEmacs might need while running. VERSION is as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
706 specified for `.../lisp'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
707
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
708 `/usr/local/lib/xemacs/lock' contains files indicating who is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
709 editing what, so XEmacs can detect editing clashes
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
710 between users.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
711
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
712 `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME' contains executable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
713 programs used by XEmacs that users are not expected to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
714 run themselves, and the DOC file. `VERSION' is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
715 number of the XEmacs version you are installing, and
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
716 `CONFIGURATION-NAME' is the host type of your system.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
717 Since these files are specific to the version of
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
718 XEmacs, operating system, and architecture in use,
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
719 including the configuration name in the path allows
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
720 you to have several versions of XEmacs for any mix of
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
721 machines and operating systems installed at the same
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
722 time; this is useful for sites at which different
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
723 kinds of machines share the file system XEmacs is
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
724 installed on.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
725
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
726 `/usr/local/lib/xemacs-VERSION/info' holds the on-line documentation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
727 for XEmacs, known as "info files".
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
728
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
729 `/usr/local/man/man1' holds the man pages for the programs installed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
730 in `/usr/local/bin'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
731
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
732 If these directories are not what you want, you can specify where to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
733 install XEmacs's libraries and data files or where XEmacs should search
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
734 for its lisp files by giving values for `make' variables as part of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
735 the command. See the section below called `MAKE VARIABLES' for more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
736 information on this.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
737
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
738 8) If your system uses lock files to interlock access to mailer inbox files,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
739 then you might need to make the movemail program setuid or setgid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
740 to enable it to write the lock files. We believe this is safe.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
741 The setuid/setgid bits need not be set on any other XEmacs-related
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
742 executables.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
743
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
744 9) You are done with the hard part! You can remove executables and
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
745 object files from the build directory by typing `make clean'. To also
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
746 remove the files that `configure' created (so you can compile XEmacs
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
747 for a different configuration), type `make distclean'.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
748
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
749 10) You should now go to the XEmacs web page at http://www.xemacs.org/
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
750 and decide what additional Lisp support you wish to have.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
751
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
752 MAKE VARIABLES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
753
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
754 You can change where the build process installs XEmacs and its data
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
755 files by specifying values for `make' variables as part of the `make'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
756 command line. For example, if you type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
757
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
758 make install bindir=/usr/local/gnubin
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
759
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
760 the `bindir=/usr/local/gnubin' argument indicates that the XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
761 executable files should go in `/usr/local/gnubin', not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
762 `/usr/local/bin'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
763
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
764 Here is a complete list of the variables you may want to set.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
765
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
766 `bindir' indicates where to put executable programs that users can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
767 run. This defaults to /usr/local/bin.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
768
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
769 `datadir' indicates where to put the architecture-independent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
770 read-only data files that XEmacs refers to while it runs; it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
771 defaults to /usr/local/lib. We create the following
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
772 subdirectories under `datadir':
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
773 - `xemacs-VERSION/lisp', containing the XEmacs lisp libraries, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
774
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
775 - `xemacs-VERSION/etc', containing the XEmacs tutorial and the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
776 `yow' database.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
777 `VERSION' is the number of the XEmacs version you are installing,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
778 like `18.59' or `19.14'. Since these files vary from one version
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
779 of XEmacs to another, including the version number in the path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
780 allows you to have several versions of XEmacs installed at the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
781 same time; this means that you don't have to make XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
782 unavailable while installing a new version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
783
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
784 `statedir' indicates where to put architecture-independent data files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
785 that XEmacs modifies while it runs; it defaults to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
786 /usr/local/lib as well. We create the following
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
787 subdirectories under `statedir':
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
788 - `xemacs/lock', containing files indicating who is editing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
789 what, so XEmacs can detect editing clashes between
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
790 users.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
791
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
792 `libdir' indicates where to put architecture-specific data files that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
793 XEmacs refers to as it runs; it too defaults to `/usr/local/lib'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
794 We create the following subdirectories under `libdir':
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
795 - `xemacs-VERSION/CONFIGURATION-NAME', containing executable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
796 programs used by XEmacs that users are not expected to run
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
797 themselves and the DOC file.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
798 `VERSION' is the number of the XEmacs version you are installing,
243
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
799 and `CONFIGURATION-NAME' is the host type of your system.
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
800 Since these files are specific to the version of XEmacs,
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
801 operating system, and architecture in use, including the
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
802 configuration name in the path allows you to have several
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
803 versions of XEmacs for any mix of machines and operating
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
804 systems installed at the same time; this is useful for sites
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
805 at which different kinds of machines share the file system
f220cc83d72e Import from CVS: tag r20-5b20
cvs
parents: 227
diff changeset
806 XEmacs is installed on.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
807
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
808 `infodir' indicates where to put the info files distributed with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
809 XEmacs; it defaults to `/usr/local/lib/xemacs-VERSION/info'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
810
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
811 `mandir' indicates where to put the man pages for XEmacs and its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
812 utilities (like `etags'); it defaults to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
813 `/usr/local/man/man1'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
814
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
815 `prefix' doesn't give a path for any specific part of XEmacs; instead,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
816 its value is used to determine the defaults for all the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
817 architecture-independent path variables - `datadir',
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
818 `statedir', `infodir', and `mandir'. Its default value is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
819 `/usr/local'; the other variables add on `lib' or `man' to it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
820 by default.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
821
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
822 For example, suppose your site generally places GNU software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
823 under `/usr/users/software/gnusoft' instead of `/usr/local'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
824 By including
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
825 `prefix=/usr/users/software/gnusoft'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
826 in the arguments to `make', you can instruct the build process
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
827 to place all of the XEmacs data files in the appropriate
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
828 directories under that path.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
829
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
830 `exec_prefix' serves the same purpose as `prefix', but instead
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
831 determines the default values for the architecture-dependent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
832 path variables - `bindir' and `libdir'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
833
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
834 The above variables serve analogous purposes in the makefiles for all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
835 GNU software; here are some variables specific to XEmacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
836
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
837 `lispdir' indicates where XEmacs installs and expects its lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
838 libraries. Its default value, based on `datadir' (see above),
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
839 is `/usr/local/lib/xemacs-VERSION/lisp' (where `VERSION' is as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
840 described above).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
841
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
842 `sitelispdir' indicates where XEmacs should search for lisp libraries
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
843 specific to your site. XEmacs checks them in order before
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
844 checking `lispdir'. Its default value, based on `datadir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
845 (see above), is `/usr/local/lib/xemacs/site-lisp'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
846
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
847 `etcdir' indicates where XEmacs should install and expect the rest of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
848 its architecture-independent data, like the tutorial and yow
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
849 database. Its default value, based on `datadir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
850 (see above), is `/usr/local/lib/xemacs-VERSION/etc' (where
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
851 `VERSION' is as described above).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
852
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
853 `lockdir' indicates the directory where XEmacs keeps track of its
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
854 locking information. Its default value, based on `statedir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
855 (see above), is `/usr/local/lib/xemacs/lock'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
856
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
857 `archlibdir' indicates where XEmacs installs and expects the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
858 executable files and other architecture-dependent data it uses
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
859 while running. Its default value, based on `libdir' (see
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
860 above), is `/usr/local/lib/xemacs-VERSION/CONFIGURATION-NAME'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
861 (where VERSION and CONFIGURATION-NAME are as described above).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
862
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
863 Remember that you must specify any variable values you need each time
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
864 you run `make' in the top directory. If you run `make' once to build
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
865 xemacs, test it, and then run `make' again to install the files, you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
866 must provide the same variable settings each time. To make the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
867 settings persist, you can edit them into the `Makefile' in the top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
868 directory, but be aware that running the `configure' program erases
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
869 `Makefile' and rebuilds it from `Makefile.in'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
870
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
871 The top-level Makefile stores the variable settings it used in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
872 Makefiles for the subdirectories, so you don't have to specify them
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
873 when running make in the subdirectories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
874
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
875
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
876 CONFIGURATION BY HAND
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
877
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
878 Instead of running the `configure' program, you have to perform the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
879 following steps.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
880
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
881 1) Copy `./src/config.h.in' to `./src/config.h'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
882
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
883 2) Consult `./etc/MACHINES' to see what configuration name you should
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
884 use for your system. Look at the code of the `configure' script to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
885 see which operating system and architecture description files from
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
886 `src/s' and `src/m' should be used for that configuration name. Edit
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
887 `src/config.h', and change the two `#include' directives to include
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
888 the appropriate system and architecture description files.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
889
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
890 2) Edit `./src/config.h' to set the right options for your system. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
891 you need to override any of the definitions in the s/*.h and m/*.h
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
892 files for your system and machine, do so by editing config.h, not by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
893 changing the s/*.h and m/*.h files. Occasionally you may need to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
894 redefine parameters used in `./lib-src/movemail.c'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
895
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
896 3) If you're going to use the make utility to build XEmacs, you will
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
897 still need to run `configure' first, giving the appropriate values for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
898 the variables in the sections entitled "Things `configure' Might Edit"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
899 and "Where To Install Things." Note that you may only need to change
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
900 the variables `prefix' and `exec_prefix', since the rest of the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
901 variables have reasonable defaults based on them. For each Makefile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
902 variable of this type, there is a corresponding configure option; for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
903 example, to change the location of the lock directory, you might use
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
904
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
905 ./configure --lockdir=/nfs/xemacslock
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
906
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
907 The `configure' script is built from `configure.in' by the `autoconf'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
908 program. However, since XEmacs has configuration requirements that
185
3d6bfa290dbd Import from CVS: tag r20-3b19
cvs
parents: 179
diff changeset
909 autoconf can't meet, `configure.in' uses a marriage of custom-baked
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
910 configuration code and autoconf macros. New versions of autoconf
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
911 could very well break this arrangement, so it may be wise to avoid
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
912 rebuilding `configure' from `configure.in' when possible.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
913
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
914
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
915 BUILDING XEMACS BY HAND
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
916
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
917 Once XEmacs is configured, running `make' in the top directory performs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
918 the following steps.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
919
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
920 1) Run `make src/paths.h' in the top directory. This produces
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
921 `./src/paths.h' from the template file `./src/paths.h.in', changing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
922 the paths to the values specified in `./Makefile'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
923
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
924 2) Cd to `./lib-src' and run `make'. This creates executables named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
925 `ctags' and `etags' and `wakeup' and `make-docfile' and `digest-doc'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
926 and `test-distrib'. And others.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
927
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
928 3) Cd to `./src' and Run `make'. This refers to files in the `./lisp'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
929 and `./lib-src' subdirectories using names `../lisp' and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
930 `../lib-src'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
931
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
932 This creates a file `./src/xemacs' which is the runnable XEmacs,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
933 assigning it a new build version number by incrementing the build
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
934 version stored in `./lisp/version.el'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
935
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
936 It also creates a file in `./lib-src' whose name is `DOC' followed by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
937 the current XEmacs version. This file contains documentation strings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
938 for all the functions in XEmacs. Each time you run make to make a new
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
939 xemacs, a new DOC file with a new name is made. You must keep the DOC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
940 file for an XEmacs version as long as you keep using that XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
941 version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
942
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
943
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
944 INSTALLATION BY HAND
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
945
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
946 The steps below are done by running `make install' in the main
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
947 directory of the XEmacs distribution.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
948
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
949 1) Copy `./lisp' and its subdirectories, `./etc', and the executables
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
950 in `./lib-src' to their final destinations, as selected in `./src/paths.h'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
951
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
952 Strictly speaking, not all of the executables in `./lib-src' need be copied.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
953 - The programs `cvtmail', `emacsserver', `env', `fakemail', `hexl',
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
954 `movemail', `timer', `vcdiff', `wakeup', and `yow' are used by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
955 XEmacs; they do need to be copied.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
956 - The programs `etags', `ctags', `emacsclient', `b2m', `rcs2log',
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
957 `gnuclient', `gnudoit', and `gnuattach' are intended to be run
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
958 by users; they are handled below.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
959 - The programs `make-docfile' and `test-distrib' were
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
960 used in building XEmacs, and are not needed any more.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
961 - The programs `digest-doc' and `sorted-doc' convert a `DOC' file into
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
962 a file for users to read. There is no important reason to move them.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
963
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
964 2) Copy the files in `./info' to the place specified in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
965 `./lisp/site-init.el' or `./lisp/paths.el'. Note that if the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
966 destination directory already contains a file named `dir', you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
967 probably don't want to replace it with the `dir' file in the XEmacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
968 distribution. Instead, you should make sure that the existing `dir'
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
969 file contains an appropriate menu entry for the XEmacs info.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
970
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
971 3) Create a directory for XEmacs to use for clash detection, named as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
972 indicated by the PATH_LOCK macro in `./src/paths.h'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
973
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
974 4) Copy `./src/xemacs' to `/usr/local/bin', or to some other directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
975 in users' search paths. `./src/xemacs' has an alternate name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
976 `./src/emacs-EMACSVERSION'; you may wish to make a symbolic link named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
977 `/usr/local/bin/xemacs' pointing to that alternate name, as an easy way
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
978 of installing different versions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
979
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
980 You can delete `./src/temacs'.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
981
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
982 5) Copy the programs `b2m', `emacsclient', `ctags', `etags', `rcs2log',
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
983 `gnuclient', `gnudoit', and `gnuattach' from `./lib-src' to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
984 `/usr/local/bin'. These programs are intended for users to run.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
985
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
986 6) Copy the man pages in `./etc' for xemacs, ctags, etags, and gnuserv
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
987 into the appropriate man directories.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
988
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
989 7) The files in the `./src' subdirectory, except for `xemacs', are not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
990 used by XEmacs once it is built. The source would be handy for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
991 debugging.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
992
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
993
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
994 PROBLEMS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
995
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
996 See the file PROBLEMS in this directory for a list of various
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
997 problems sometimes encountered, and what to do about them.
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 50
diff changeset
998
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 50
diff changeset
999
179
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
1000 If all else fails, please see etc/InstallGuide courtesy
9ad43877534d Import from CVS: tag r20-3b16
cvs
parents: 177
diff changeset
1001 of Jonathan Seth Hayward.