Mercurial > emacs
comparison config.bat @ 108595:a9dc4c72f652
Fix DOS build; don't override convert-standard-filename.
config.bat: Remove support for DJGPP v1.x.
src/Makefile.in: Fix MSDOS-related comments.
msdos/sed3v2.inp (INSTALLABLES): Edit out extra ${EXEEXT} after "emacsclient".
(emacsserver, timer, wakeup): Remove edit-out commands.
msdos/sed1v2.inp (MSDOS_OBJ): Add w16select.o.
(TERMCAP_OBJ): Add termcap.o.
lisp/files.el (convert-standard-filename): Call
w32-convert-standard-filename and dos-convert-standard-filename on
the corresponding systems.
lisp/w32-fns.el (w32-convert-standard-filename): Rename from
convert-standard-filename. Doc fix.
lisp/dos-fns.el (dos-convert-standard-filename): Doc fix.
(convert-standard-filename): Don't defalias.
(register-name-alist, make-register, register-value)
(set-register-value, intdos): Obsolete aliases for the
corresponding dos-* functions and variables.
(dos-intdos): Add a doc string.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 15 May 2010 11:38:48 +0300 |
parents | 5daf8821df70 |
children | fcdc7bb97c9e |
comparison
equal
deleted
inserted
replaced
108591:7e6170a6733d | 108595:a9dc4c72f652 |
---|---|
21 | 21 |
22 rem ---------------------------------------------------------------------- | 22 rem ---------------------------------------------------------------------- |
23 rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: | 23 rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: |
24 rem | 24 rem |
25 rem + msdos version 3 or better. | 25 rem + msdos version 3 or better. |
26 rem + DJGPP version 1.12maint1 or later (version 2.03 or later recommended). | 26 rem + DJGPP version 2.0 or later (version 2.03 or later recommended). |
27 rem + make utility that allows breaking of the 128 chars limit on | 27 rem + make utility that allows breaking of the 128 chars limit on |
28 rem command lines. ndmake (as of version 4.5) won't work due to a | 28 rem command lines. ndmake (as of version 4.5) won't work due to a |
29 rem line length limit. The make that comes with DJGPP does work (and is | 29 rem line length limit. The make that comes with DJGPP does work (and is |
30 rem recommended). | 30 rem recommended). |
31 rem + rm, mv, and cp (from GNU file utilities). | 31 rem + rm, mv, and cp (from GNU file utilities). |
123 If ErrorLevel 10 Goto go32Ok | 123 If ErrorLevel 10 Goto go32Ok |
124 rm -f junk.c junk junk.exe | 124 rm -f junk.c junk junk.exe |
125 Echo To compile 'Emacs' under MS-DOS you MUST have DJGPP installed! | 125 Echo To compile 'Emacs' under MS-DOS you MUST have DJGPP installed! |
126 Goto End | 126 Goto End |
127 :go32Ok | 127 :go32Ok |
128 set djgpp_ver=1 | 128 set djgpp_ver=2 |
129 If ErrorLevel 20 set djgpp_ver=2 | 129 If Not ErrorLevel 20 Echo To build 'Emacs' you need DJGPP v2.0 or later! |
130 If Not ErrorLevel 20 Goto End | |
130 rm -f junk.c junk junk.exe | 131 rm -f junk.c junk junk.exe |
131 rem The v1.x build does not need djecho | |
132 if "%DJGPP_VER%" == "1" Goto djechoOk | |
133 rem DJECHO is used by the top-level Makefile in the v2.x build | 132 rem DJECHO is used by the top-level Makefile in the v2.x build |
134 Echo Checking whether 'djecho' is available... | 133 Echo Checking whether 'djecho' is available... |
135 redir -o Nul -eo djecho -o junk.$$$ foo | 134 redir -o Nul -eo djecho -o junk.$$$ foo |
136 If Exist junk.$$$ Goto djechoOk | 135 If Exist junk.$$$ Goto djechoOk |
137 Echo To build 'Emacs' you need the 'djecho.exe' program! | 136 Echo To build 'Emacs' you need the 'djecho.exe' program! |
157 rm -f config.h2 config.tmp | 156 rm -f config.h2 config.tmp |
158 sed -e '' config.in > config.tmp | 157 sed -e '' config.in > config.tmp |
159 if "%X11%" == "" goto src4 | 158 if "%X11%" == "" goto src4 |
160 sed -f ../msdos/sed2x.inp <config.in >config.tmp | 159 sed -f ../msdos/sed2x.inp <config.in >config.tmp |
161 :src4 | 160 :src4 |
162 if "%DJGPP_VER%" == "2" Goto src41 | |
163 sed -f ../msdos/sed2.inp <config.tmp >config.h2 | |
164 goto src42 | |
165 :src41 | |
166 sed -f ../msdos/sed2v2.inp <config.tmp >config.h2 | 161 sed -f ../msdos/sed2v2.inp <config.tmp >config.h2 |
167 :src42 | |
168 Rem See if DECL_ALIGN can be supported with this GCC | 162 Rem See if DECL_ALIGN can be supported with this GCC |
169 rm -f junk.c junk.o junk junk.exe | 163 rm -f junk.c junk.o junk junk.exe |
170 echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c | 164 echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c |
171 rem Two percent signs because it is a special character for COMMAND.COM/CMD | 165 rem Two percent signs because it is a special character for COMMAND.COM/CMD |
172 rem Filter thru Sed because "&" is special for CMD.EXE | 166 rem Filter thru Sed because "&" is special for CMD.EXE |
196 if exist dir.h ren dir.h vmsdir.h | 190 if exist dir.h ren dir.h vmsdir.h |
197 | 191 |
198 rem Create "makefile" from "makefile.in". | 192 rem Create "makefile" from "makefile.in". |
199 rm -f Makefile junk.c | 193 rm -f Makefile junk.c |
200 sed -e "1,/== start of cpp stuff ==/s@^##*[ ].*$@@" <Makefile.in >junk.c | 194 sed -e "1,/== start of cpp stuff ==/s@^##*[ ].*$@@" <Makefile.in >junk.c |
201 If "%DJGPP_VER%" == "1" Goto mfV1 | |
202 gcc -E -traditional junk.c | sed -f ../msdos/sed1v2.inp >Makefile | 195 gcc -E -traditional junk.c | sed -f ../msdos/sed1v2.inp >Makefile |
203 goto mfDone | |
204 :mfV1 | |
205 gcc -E -traditional junk.c | sed -f ../msdos/sed1.inp >Makefile | |
206 :mfDone | |
207 rm -f junk.c | 196 rm -f junk.c |
208 | 197 |
209 if "%X11%" == "" goto src5 | 198 if "%X11%" == "" goto src5 |
210 mv Makefile makefile.tmp | 199 mv Makefile makefile.tmp |
211 sed -f ../msdos/sed1x.inp <makefile.tmp >Makefile | 200 sed -f ../msdos/sed1x.inp <makefile.tmp >Makefile |
219 :src6 | 208 :src6 |
220 cd .. | 209 cd .. |
221 rem ---------------------------------------------------------------------- | 210 rem ---------------------------------------------------------------------- |
222 Echo Configuring the library source directory... | 211 Echo Configuring the library source directory... |
223 cd lib-src | 212 cd lib-src |
224 If "%DJGPP_VER%" == "2" goto libsrc-v2 | |
225 sed -f ../msdos/sed3.inp <Makefile.in >Makefile | |
226 Goto libsrc2 | |
227 :libsrc-v2 | |
228 sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile | 213 sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile |
229 :libsrc2 | |
230 if "%X11%" == "" goto libsrc2a | 214 if "%X11%" == "" goto libsrc2a |
231 mv Makefile makefile.tmp | 215 mv Makefile makefile.tmp |
232 sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile | 216 sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile |
233 rm -f makefile.tmp | 217 rm -f makefile.tmp |
234 :libsrc2a | 218 :libsrc2a |
270 rem ---------------------------------------------------------------------- | 254 rem ---------------------------------------------------------------------- |
271 :maindir | 255 :maindir |
272 Echo Configuring the main directory... | 256 Echo Configuring the main directory... |
273 If Exist .dir-locals.el update .dir-locals.el _dir-locals.el | 257 If Exist .dir-locals.el update .dir-locals.el _dir-locals.el |
274 If Exist src\.dbxinit update src/.dbxinit src/_dbxinit | 258 If Exist src\.dbxinit update src/.dbxinit src/_dbxinit |
275 If "%DJGPP_VER%" == "1" goto mainv1 | |
276 Echo Looking for the GDB init file... | 259 Echo Looking for the GDB init file... |
277 If Exist src\.gdbinit update src/.gdbinit src/_gdbinit | 260 If Exist src\.gdbinit update src/.gdbinit src/_gdbinit |
278 If Exist src\_gdbinit goto gdbinitOk | 261 If Exist src\_gdbinit goto gdbinitOk |
279 Echo ERROR: | 262 Echo ERROR: |
280 Echo I cannot find the GDB init file. It was called ".gdbinit" in | 263 Echo I cannot find the GDB init file. It was called ".gdbinit" in |
285 Echo Then run CONFIG.BAT again with the same arguments you did now. | 268 Echo Then run CONFIG.BAT again with the same arguments you did now. |
286 goto End | 269 goto End |
287 :gdbinitOk | 270 :gdbinitOk |
288 Echo Looking for the GDB init file...found | 271 Echo Looking for the GDB init file...found |
289 copy msdos\mainmake.v2 Makefile >nul | 272 copy msdos\mainmake.v2 Makefile >nul |
290 :mainv1 | |
291 If "%DJGPP_VER%" == "1" copy msdos\mainmake Makefile >nul | |
292 rem ---------------------------------------------------------------------- | 273 rem ---------------------------------------------------------------------- |
293 goto End | 274 goto End |
294 :SmallEnv | 275 :SmallEnv |
295 echo Your environment size is too small. Please enlarge it and run me again. | 276 echo Your environment size is too small. Please enlarge it and run me again. |
296 echo For example, type "command.com /e:2048" to have 2048 bytes available. | 277 echo For example, type "command.com /e:2048" to have 2048 bytes available. |