diff options
| author | Eli Zaretskii | 2010-05-15 10:51:52 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2010-05-15 10:51:52 +0300 |
| commit | 78248b76e396d96a7c7c25ae91296e31fee558da (patch) | |
| tree | 0fa1e9115334a4f862ce5d400d6106251d76fbaa /config.bat | |
| parent | dbd3f7231ad821f0423babf0dcee04f4d16c2e5b (diff) | |
| download | emacs-78248b76e396d96a7c7c25ae91296e31fee558da.tar.gz emacs-78248b76e396d96a7c7c25ae91296e31fee558da.zip | |
config.bat: Remove support for DJGPP v1.x.
Diffstat (limited to 'config.bat')
| -rw-r--r-- | config.bat | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/config.bat b/config.bat index 0482d4f15f0..953c5d64b12 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -23,7 +23,7 @@ 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 |
| @@ -125,11 +125,10 @@ 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 |
| @@ -159,12 +158,7 @@ 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 |
| @@ -198,12 +192,7 @@ if exist dir.h ren dir.h vmsdir.h | |||
| 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 |
| @@ -221,12 +210,7 @@ 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 |
| @@ -272,7 +256,6 @@ rem ---------------------------------------------------------------------- | |||
| 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 |
| @@ -287,8 +270,6 @@ 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 |