aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Innes2000-09-03 17:47:54 +0000
committerAndrew Innes2000-09-03 17:47:54 +0000
commit9a6f5b63a3a3bdcb2f2fb14795403b986c618de3 (patch)
tree3c9b1d22986de5f0b6d92aabf074a2556fdeadcc
parentc1174479c2fb060f648125df5bf96c916d1b4ab2 (diff)
downloademacs-9a6f5b63a3a3bdcb2f2fb14795403b986c618de3.tar.gz
emacs-9a6f5b63a3a3bdcb2f2fb14795403b986c618de3.zip
Change to DOS line endings.
-rwxr-xr-xnt/configure.bat692
1 files changed, 346 insertions, 346 deletions
diff --git a/nt/configure.bat b/nt/configure.bat
index 7d644fd840b..4b452810835 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -1,346 +1,346 @@
1@echo off 1@echo off
2rem ---------------------------------------------------------------------- 2rem ----------------------------------------------------------------------
3rem Configuration script for MS Windows 95/98 and NT/2000 3rem Configuration script for MS Windows 95/98 and NT/2000
4rem Copyright (C) 1999, 2000 Free Software Foundation, Inc. 4rem Copyright (C) 1999, 2000 Free Software Foundation, Inc.
5 5
6rem This file is part of GNU Emacs. 6rem This file is part of GNU Emacs.
7 7
8rem GNU Emacs is free software; you can redistribute it and/or modify 8rem GNU Emacs is free software; you can redistribute it and/or modify
9rem it under the terms of the GNU General Public License as published by 9rem it under the terms of the GNU General Public License as published by
10rem the Free Software Foundation; either version 2, or (at your option) 10rem the Free Software Foundation; either version 2, or (at your option)
11rem any later version. 11rem any later version.
12 12
13rem GNU Emacs is distributed in the hope that it will be useful, 13rem GNU Emacs is distributed in the hope that it will be useful,
14rem but WITHOUT ANY WARRANTY; without even the implied warranty of 14rem but WITHOUT ANY WARRANTY; without even the implied warranty of
15rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16rem GNU General Public License for more details. 16rem GNU General Public License for more details.
17 17
18rem You should have received a copy of the GNU General Public License 18rem You should have received a copy of the GNU General Public License
19rem along with GNU Emacs; see the file COPYING. If not, write to the 19rem along with GNU Emacs; see the file COPYING. If not, write to the
20rem Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20rem Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21rem Boston, MA 02111-1307, USA. 21rem Boston, MA 02111-1307, USA.
22rem ---------------------------------------------------------------------- 22rem ----------------------------------------------------------------------
23rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: 23rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS:
24rem 24rem
25rem + MS Windows 95/98 or NT/2000 25rem + MS Windows 95/98 or NT/2000
26rem + either MSVC 2.x or later, or gcc-2.95 or later (with gmake 3.75 26rem + either MSVC 2.x or later, or gcc-2.95 or later (with gmake 3.75
27rem or later) and the Mingw32 and W32 API headers and libraries 27rem or later) and the Mingw32 and W32 API headers and libraries
28rem 28rem
29rem For reference, here is a list of which builds of gmake are known to 29rem For reference, here is a list of which builds of gmake are known to
30rem work or not, and whether they work in the presence and/or absence of 30rem work or not, and whether they work in the presence and/or absence of
31rem sh.exe. 31rem sh.exe.
32rem 32rem
33rem sh exists no sh 33rem sh exists no sh
34rem cygwin b20.1 make (3.75): okay[1] fails[2] 34rem cygwin b20.1 make (3.75): okay[1] fails[2]
35rem MSVC compiled gmake 3.77: okay okay 35rem MSVC compiled gmake 3.77: okay okay
36rem MSVC compiled gmake 3.78.1: okay okay 36rem MSVC compiled gmake 3.78.1: okay okay
37rem MSVC compiled gmake 3.79.1: okay okay 37rem MSVC compiled gmake 3.79.1: okay okay
38rem mingw32/gcc-2.92.2 make (3.77): okay okay 38rem mingw32/gcc-2.92.2 make (3.77): okay okay
39rem cygwin compiled gmake 3.77: okay[1] fails[2] 39rem cygwin compiled gmake 3.77: okay[1] fails[2]
40rem cygwin compiled gmake 3.78.1: okay fails[2] 40rem cygwin compiled gmake 3.78.1: okay fails[2]
41rem cygwin compiled gmake 3.79.1: couldn't build make[3] 41rem cygwin compiled gmake 3.79.1: couldn't build make[3]
42rem 42rem
43rem [1] doesn't cope with makefiles with DOS line endings, so must mount 43rem [1] doesn't cope with makefiles with DOS line endings, so must mount
44rem emacs source with text!=binary. 44rem emacs source with text!=binary.
45rem [2] fails when needs to invoke shell commands; okay invoking gcc etc. 45rem [2] fails when needs to invoke shell commands; okay invoking gcc etc.
46rem [3] requires LC_MESSAGES support to build; maybe 2.95.x update to 46rem [3] requires LC_MESSAGES support to build; maybe 2.95.x update to
47rem cygwin provides this? 47rem cygwin provides this?
48rem 48rem
49 49
50rem ---------------------------------------------------------------------- 50rem ----------------------------------------------------------------------
51rem See if the environment is large enough. We need 43 (?) bytes. 51rem See if the environment is large enough. We need 43 (?) bytes.
52set $foo$=123456789_123456789_123456789_123456789_123 52set $foo$=123456789_123456789_123456789_123456789_123
53if not "%$foo$%" == "123456789_123456789_123456789_123456789_123" goto SmallEnv 53if not "%$foo$%" == "123456789_123456789_123456789_123456789_123" goto SmallEnv
54set $foo$= 54set $foo$=
55 55
56rem ---------------------------------------------------------------------- 56rem ----------------------------------------------------------------------
57rem Make sure we are running in the nt subdir 57rem Make sure we are running in the nt subdir
58if exist configure.bat goto start 58if exist configure.bat goto start
59echo You must run configure from the nt subdirectory. 59echo You must run configure from the nt subdirectory.
60goto end 60goto end
61 61
62:start 62:start
63rem ---------------------------------------------------------------------- 63rem ----------------------------------------------------------------------
64rem Default settings. 64rem Default settings.
65set prefix= 65set prefix=
66set nodebug=N 66set nodebug=N
67set noopt=N 67set noopt=N
68set nocygwin=N 68set nocygwin=N
69set COMPILER= 69set COMPILER=
70set usercflags= 70set usercflags=
71set userldflags= 71set userldflags=
72set sep1= 72set sep1=
73set sep2= 73set sep2=
74 74
75rem ---------------------------------------------------------------------- 75rem ----------------------------------------------------------------------
76rem Handle arguments. 76rem Handle arguments.
77:again 77:again
78if "%1" == "-h" goto usage 78if "%1" == "-h" goto usage
79if "%1" == "--help" goto usage 79if "%1" == "--help" goto usage
80if "%1" == "--prefix" goto setprefix 80if "%1" == "--prefix" goto setprefix
81if "%1" == "--with-gcc" goto withgcc 81if "%1" == "--with-gcc" goto withgcc
82if "%1" == "--with-msvc" goto withmsvc 82if "%1" == "--with-msvc" goto withmsvc
83if "%1" == "--no-debug" goto nodebug 83if "%1" == "--no-debug" goto nodebug
84if "%1" == "--no-opt" goto noopt 84if "%1" == "--no-opt" goto noopt
85if "%1" == "--no-cygwin" goto nocygwin 85if "%1" == "--no-cygwin" goto nocygwin
86if "%1" == "--cflags" goto usercflags 86if "%1" == "--cflags" goto usercflags
87if "%1" == "--ldflags" goto userldflags 87if "%1" == "--ldflags" goto userldflags
88if "%1" == "" goto checkutils 88if "%1" == "" goto checkutils
89:usage 89:usage
90echo Usage: configure [options] 90echo Usage: configure [options]
91echo Options: 91echo Options:
92echo. --prefix PREFIX install Emacs in directory PREFIX 92echo. --prefix PREFIX install Emacs in directory PREFIX
93echo. --with-gcc use GCC to compile Emacs 93echo. --with-gcc use GCC to compile Emacs
94echo. --with-msvc use MSVC to compile Emacs 94echo. --with-msvc use MSVC to compile Emacs
95echo. --no-debug exclude debug info from executables 95echo. --no-debug exclude debug info from executables
96echo. --no-opt disable optimization 96echo. --no-opt disable optimization
97echo. --no-cygwin use -mno-cygwin option with GCC 97echo. --no-cygwin use -mno-cygwin option with GCC
98echo. --cflags FLAG pass FLAG to compiler 98echo. --cflags FLAG pass FLAG to compiler
99echo. --ldflags FLAG pass FLAG to compiler when linking 99echo. --ldflags FLAG pass FLAG to compiler when linking
100goto end 100goto end
101rem ---------------------------------------------------------------------- 101rem ----------------------------------------------------------------------
102:setprefix 102:setprefix
103shift 103shift
104set prefix=%1 104set prefix=%1
105shift 105shift
106goto again 106goto again
107rem ---------------------------------------------------------------------- 107rem ----------------------------------------------------------------------
108:withgcc 108:withgcc
109set COMPILER=gcc 109set COMPILER=gcc
110shift 110shift
111goto again 111goto again
112rem ---------------------------------------------------------------------- 112rem ----------------------------------------------------------------------
113:withmsvc 113:withmsvc
114set COMPILER=cl 114set COMPILER=cl
115shift 115shift
116goto again 116goto again
117rem ---------------------------------------------------------------------- 117rem ----------------------------------------------------------------------
118:nodebug 118:nodebug
119set nodebug=Y 119set nodebug=Y
120shift 120shift
121goto again 121goto again
122rem ---------------------------------------------------------------------- 122rem ----------------------------------------------------------------------
123:noopt 123:noopt
124set noopt=Y 124set noopt=Y
125shift 125shift
126goto again 126goto again
127rem ---------------------------------------------------------------------- 127rem ----------------------------------------------------------------------
128:nocygwin 128:nocygwin
129set nocygwin=Y 129set nocygwin=Y
130shift 130shift
131goto again 131goto again
132rem ---------------------------------------------------------------------- 132rem ----------------------------------------------------------------------
133:usercflags 133:usercflags
134shift 134shift
135set usercflags=%usercflags%%sep1%%1 135set usercflags=%usercflags%%sep1%%1
136set sep1= %nothing% 136set sep1= %nothing%
137shift 137shift
138goto again 138goto again
139rem ---------------------------------------------------------------------- 139rem ----------------------------------------------------------------------
140:userldflags 140:userldflags
141shift 141shift
142set userldflags=%userldflags%%sep2%%1 142set userldflags=%userldflags%%sep2%%1
143set sep2= %nothing% 143set sep2= %nothing%
144shift 144shift
145goto again 145goto again
146 146
147rem ---------------------------------------------------------------------- 147rem ----------------------------------------------------------------------
148rem Check that necessary utilities (cp and rm) are present. 148rem Check that necessary utilities (cp and rm) are present.
149:checkutils 149:checkutils
150echo Checking for 'cp'... 150echo Checking for 'cp'...
151cp configure.bat junk.bat 151cp configure.bat junk.bat
152if not exist junk.bat goto needcp 152if not exist junk.bat goto needcp
153echo Checking for 'rm'... 153echo Checking for 'rm'...
154rm junk.bat 154rm junk.bat
155if exist junk.bat goto needrm 155if exist junk.bat goto needrm
156goto checkcompiler 156goto checkcompiler
157:needcp 157:needcp
158echo You need 'cp' (the Unix file copy program) to build Emacs. 158echo You need 'cp' (the Unix file copy program) to build Emacs.
159goto end 159goto end
160:needrm 160:needrm
161del junk.bat 161del junk.bat
162echo You need 'rm' (the Unix file delete program) to build Emacs. 162echo You need 'rm' (the Unix file delete program) to build Emacs.
163goto end 163goto end
164 164
165rem ---------------------------------------------------------------------- 165rem ----------------------------------------------------------------------
166rem Auto-detect compiler if not specified, and validate GCC if chosen. 166rem Auto-detect compiler if not specified, and validate GCC if chosen.
167:checkcompiler 167:checkcompiler
168if (%COMPILER%)==(cl) goto genmakefiles 168if (%COMPILER%)==(cl) goto genmakefiles
169if (%COMPILER%)==(gcc) goto checkgcc 169if (%COMPILER%)==(gcc) goto checkgcc
170 170
171echo Checking whether 'cl' is available... 171echo Checking whether 'cl' is available...
172echo main(){} >junk.c 172echo main(){} >junk.c
173cl -nologo -c junk.c 173cl -nologo -c junk.c
174if exist junk.obj goto clOK 174if exist junk.obj goto clOK
175 175
176echo Checking whether 'gcc' is available... 176echo Checking whether 'gcc' is available...
177gcc -c junk.c 177gcc -c junk.c
178if not exist junk.o goto nocompiler 178if not exist junk.o goto nocompiler
179del junk.o 179del junk.o
180 180
181:checkgcc 181:checkgcc
182if (%nocygwin%) == (Y) goto checkw32api 182if (%nocygwin%) == (Y) goto checkw32api
183echo Checking whether gcc requires '-mno-cygwin'... 183echo Checking whether gcc requires '-mno-cygwin'...
184echo #include "cygwin/version.h" >junk.c 184echo #include "cygwin/version.h" >junk.c
185echo main(){} >>junk.c 185echo main(){} >>junk.c
186gcc -c junk.c 186gcc -c junk.c
187if not exist junk.o goto checkw32api 187if not exist junk.o goto checkw32api
188gcc -mno-cygwin -c junk.c 188gcc -mno-cygwin -c junk.c
189if exist junk.o set nocygwin=Y 189if exist junk.o set nocygwin=Y
190del junk.o junk.c 190del junk.o junk.c
191 191
192:checkw32api 192:checkw32api
193rem ---------------------------------------------------------------------- 193rem ----------------------------------------------------------------------
194rem Older versions of the Windows API headers either don't have any of 194rem Older versions of the Windows API headers either don't have any of
195rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1 195rem the IMAGE_xxx definitions (the headers that come with Cygwin b20.1
196rem are like this), or have a typo in the definition of 196rem are like this), or have a typo in the definition of
197rem IMAGE_FIRST_SECTION (the headers with gcc/mingw32 2.95 have this 197rem IMAGE_FIRST_SECTION (the headers with gcc/mingw32 2.95 have this
198rem problem). The gcc/mingw32 2.95.2 headers are okay, as are distros 198rem problem). The gcc/mingw32 2.95.2 headers are okay, as are distros
199rem of w32api-xxx.zip from Anders Norlander since 1999-11-18 at least. 199rem of w32api-xxx.zip from Anders Norlander since 1999-11-18 at least.
200rem 200rem
201echo Checking whether W32 API headers are too old... 201echo Checking whether W32 API headers are too old...
202echo #include "windows.h" >junk.c 202echo #include "windows.h" >junk.c
203echo test(PIMAGE_NT_HEADERS pHeader)>>junk.c 203echo test(PIMAGE_NT_HEADERS pHeader)>>junk.c
204echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);}>>junk.c 204echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);}>>junk.c
205gcc -c junk.c 205gcc -c junk.c
206if exist junk.o goto gccOk 206if exist junk.o goto gccOk
207 207
208:nocompiler 208:nocompiler
209echo. 209echo.
210echo Configure failed. 210echo Configure failed.
211echo To configure Emacs for Windows, you need to have either 211echo To configure Emacs for Windows, you need to have either
212echo gcc-2.95 or later with Mingw32 and the W32 API headers, 212echo gcc-2.95 or later with Mingw32 and the W32 API headers,
213echo or MSVC 2.x or later. 213echo or MSVC 2.x or later.
214del junk.c 214del junk.c
215goto end 215goto end
216 216
217:gccOk 217:gccOk
218set COMPILER=gcc 218set COMPILER=gcc
219del junk.c junk.o 219del junk.c junk.o
220echo Using 'gcc' 220echo Using 'gcc'
221goto genmakefiles 221goto genmakefiles
222 222
223:clOk 223:clOk
224set COMPILER=cl 224set COMPILER=cl
225del junk.c junk.obj 225del junk.c junk.obj
226echo Using 'MSVC' 226echo Using 'MSVC'
227goto genmakefiles 227goto genmakefiles
228 228
229rem ---------------------------------------------------------------------- 229rem ----------------------------------------------------------------------
230:genmakefiles 230:genmakefiles
231echo Generating makefiles 231echo Generating makefiles
232if %COMPILER% == gcc set MAKECMD=gmake 232if %COMPILER% == gcc set MAKECMD=gmake
233if %COMPILER% == cl set MAKECMD=nmake 233if %COMPILER% == cl set MAKECMD=nmake
234 234
235rem Pass on chosen settings to makefiles. 235rem Pass on chosen settings to makefiles.
236echo # Start of settings from configure.bat >config.settings 236echo # Start of settings from configure.bat >config.settings
237echo COMPILER=%COMPILER% >>config.settings 237echo COMPILER=%COMPILER% >>config.settings
238if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings 238if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings
239if (%noopt%) == (Y) echo NOOPT=1 >>config.settings 239if (%noopt%) == (Y) echo NOOPT=1 >>config.settings
240if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings 240if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings
241if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix% >>config.settings 241if not "(%prefix%)" == "()" echo INSTALL_DIR=%prefix% >>config.settings
242if not "(%usercflags%)" == "()" echo USER_CFLAGS=%usercflags% >>config.settings 242if not "(%usercflags%)" == "()" echo USER_CFLAGS=%usercflags% >>config.settings
243if not "(%userldflags%)" == "()" echo USER_LDFLAGS=%userldflags% >>config.settings 243if not "(%userldflags%)" == "()" echo USER_LDFLAGS=%userldflags% >>config.settings
244echo # End of settings from configure.bat >>config.settings 244echo # End of settings from configure.bat >>config.settings
245echo. >>config.settings 245echo. >>config.settings
246 246
247copy config.nt ..\src\config.h 247copy config.nt ..\src\config.h
248if not "(%usercflags%)" == "()" echo #define USER_CFLAGS " %usercflags%">>..\src\config.h 248if not "(%usercflags%)" == "()" echo #define USER_CFLAGS " %usercflags%">>..\src\config.h
249if not "(%userldflags%)" == "()" echo #define USER_LDFLAGS " %userldflags%">>..\src\config.h 249if not "(%userldflags%)" == "()" echo #define USER_LDFLAGS " %userldflags%">>..\src\config.h
250copy paths.h ..\src\epaths.h 250copy paths.h ..\src\epaths.h
251 251
252rem gmake doesn't support "cd foo" in commands (except as part of a 252rem gmake doesn't support "cd foo" in commands (except as part of a
253rem compound statement which command.com doesn't support), but nmake 253rem compound statement which command.com doesn't support), but nmake
254rem doesn't support the -C dir command line switch, so generate the 254rem doesn't support the -C dir command line switch, so generate the
255rem necessary makefile fragment for targets that involve changing dir. 255rem necessary makefile fragment for targets that involve changing dir.
256rem 256rem
257if %MAKECMD% == nmake goto gen1 257if %MAKECMD% == nmake goto gen1
258 258
259echo. > make-frag 259echo. > make-frag
260echo all-other-dirs: >> make-frag 260echo all-other-dirs: >> make-frag
261echo. $(MAKE) -C ../lib-src all >> make-frag 261echo. $(MAKE) -C ../lib-src all >> make-frag
262echo. $(MAKE) -C ../src all >> make-frag 262echo. $(MAKE) -C ../src all >> make-frag
263echo. $(MAKE) -C ../lisp all >> make-frag 263echo. $(MAKE) -C ../lisp all >> make-frag
264echo. $(MAKE) -C ../leim all >> make-frag 264echo. $(MAKE) -C ../leim all >> make-frag
265echo. >> make-frag 265echo. >> make-frag
266echo clean-other-dirs: >> make-frag 266echo clean-other-dirs: >> make-frag
267echo. $(MAKE) -C ../lib-src clean >> make-frag 267echo. $(MAKE) -C ../lib-src clean >> make-frag
268echo. $(MAKE) -C ../src clean >> make-frag 268echo. $(MAKE) -C ../src clean >> make-frag
269echo. $(MAKE) -C ../lisp clean >> make-frag 269echo. $(MAKE) -C ../lisp clean >> make-frag
270echo. $(MAKE) -C ../leim clean >> make-frag 270echo. $(MAKE) -C ../leim clean >> make-frag
271echo. >> make-frag 271echo. >> make-frag
272echo install-other-dirs: >> make-frag 272echo install-other-dirs: >> make-frag
273echo. $(MAKE) -C ../lib-src install >> make-frag 273echo. $(MAKE) -C ../lib-src install >> make-frag
274echo. $(MAKE) -C ../src install >> make-frag 274echo. $(MAKE) -C ../src install >> make-frag
275echo. $(MAKE) -C ../lisp install >> make-frag 275echo. $(MAKE) -C ../lisp install >> make-frag
276echo. $(MAKE) -C ../leim install >> make-frag 276echo. $(MAKE) -C ../leim install >> make-frag
277echo. >> make-frag 277echo. >> make-frag
278goto gen2 278goto gen2
279 279
280:gen1 280:gen1
281echo. > make-frag 281echo. > make-frag
282echo all-other-dirs: >> make-frag 282echo all-other-dirs: >> make-frag
283echo. cd ..\lib-src >> make-frag 283echo. cd ..\lib-src >> make-frag
284echo. $(MAKE) all >> make-frag 284echo. $(MAKE) all >> make-frag
285echo. cd ..\src >> make-frag 285echo. cd ..\src >> make-frag
286echo. $(MAKE) all >> make-frag 286echo. $(MAKE) all >> make-frag
287echo. cd ..\lisp >> make-frag 287echo. cd ..\lisp >> make-frag
288echo. $(MAKE) all >> make-frag 288echo. $(MAKE) all >> make-frag
289echo. cd ..\leim >> make-frag 289echo. cd ..\leim >> make-frag
290echo. $(MAKE) all >> make-frag 290echo. $(MAKE) all >> make-frag
291echo. cd ..\nt >> make-frag 291echo. cd ..\nt >> make-frag
292echo. >> make-frag 292echo. >> make-frag
293echo clean-other-dirs: >> make-frag 293echo clean-other-dirs: >> make-frag
294echo. cd ..\lib-src >> make-frag 294echo. cd ..\lib-src >> make-frag
295echo. $(MAKE) clean >> make-frag 295echo. $(MAKE) clean >> make-frag
296echo. cd ..\src >> make-frag 296echo. cd ..\src >> make-frag
297echo. $(MAKE) clean >> make-frag 297echo. $(MAKE) clean >> make-frag
298echo. cd ..\lisp >> make-frag 298echo. cd ..\lisp >> make-frag
299echo. $(MAKE) clean >> make-frag 299echo. $(MAKE) clean >> make-frag
300echo. cd ..\leim >> make-frag 300echo. cd ..\leim >> make-frag
301echo. $(MAKE) clean >> make-frag 301echo. $(MAKE) clean >> make-frag
302echo. cd ..\nt >> make-frag 302echo. cd ..\nt >> make-frag
303echo. >> make-frag 303echo. >> make-frag
304echo install-other-dirs: >> make-frag 304echo install-other-dirs: >> make-frag
305echo. cd ..\lib-src >> make-frag 305echo. cd ..\lib-src >> make-frag
306echo. $(MAKE) install >> make-frag 306echo. $(MAKE) install >> make-frag
307echo. cd ..\src >> make-frag 307echo. cd ..\src >> make-frag
308echo. $(MAKE) install >> make-frag 308echo. $(MAKE) install >> make-frag
309echo. cd ..\lisp >> make-frag 309echo. cd ..\lisp >> make-frag
310echo. $(MAKE) install >> make-frag 310echo. $(MAKE) install >> make-frag
311echo. cd ..\leim >> make-frag 311echo. cd ..\leim >> make-frag
312echo. $(MAKE) install >> make-frag 312echo. $(MAKE) install >> make-frag
313echo. cd ..\nt >> make-frag 313echo. cd ..\nt >> make-frag
314echo. >> make-frag 314echo. >> make-frag
315 315
316:gen2 316:gen2
317copy /b config.settings+%MAKECMD%.defs+make-frag+..\nt\makefile.w32-in ..\nt\makefile 317copy /b config.settings+%MAKECMD%.defs+make-frag+..\nt\makefile.w32-in ..\nt\makefile
318del make-frag 318del make-frag
319copy /b config.settings+%MAKECMD%.defs+..\lib-src\makefile.w32-in ..\lib-src\makefile 319copy /b config.settings+%MAKECMD%.defs+..\lib-src\makefile.w32-in ..\lib-src\makefile
320copy /b config.settings+%MAKECMD%.defs+..\src\makefile.w32-in ..\src\makefile 320copy /b config.settings+%MAKECMD%.defs+..\src\makefile.w32-in ..\src\makefile
321if not exist ..\lisp\Makefile.unix rename ..\lisp\Makefile Makefile.unix 321if not exist ..\lisp\Makefile.unix rename ..\lisp\Makefile Makefile.unix
322if exist ..\lisp\makefile del /f ..\lisp\makefile 322if exist ..\lisp\makefile del /f ..\lisp\makefile
323copy /b config.settings+%MAKECMD%.defs+..\lisp\makefile.w32-in ..\lisp\makefile 323copy /b config.settings+%MAKECMD%.defs+..\lisp\makefile.w32-in ..\lisp\makefile
324rem Use the default (no-op) Makefile.in if the nt version is not present. 324rem Use the default (no-op) Makefile.in if the nt version is not present.
325if exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\makefile.w32-in ..\leim\makefile 325if exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\makefile.w32-in ..\leim\makefile
326if not exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\Makefile.in ..\leim\makefile 326if not exist ..\leim\makefile.w32-in copy /b config.settings+%MAKECMD%.defs+..\leim\Makefile.in ..\leim\makefile
327del config.settings 327del config.settings
328 328
329echo. 329echo.
330echo Emacs successfully configured. 330echo Emacs successfully configured.
331echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install. 331echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install.
332goto end 332goto end
333 333
334:SmallEnv 334:SmallEnv
335echo Your environment size is too small. Please enlarge it and rerun configure. 335echo Your environment size is too small. Please enlarge it and rerun configure.
336echo For example, type "command.com /e:2048" to have 2048 bytes available. 336echo For example, type "command.com /e:2048" to have 2048 bytes available.
337set $foo$= 337set $foo$=
338:end 338:end
339set prefix= 339set prefix=
340set nodebug= 340set nodebug=
341set noopt= 341set noopt=
342set nocygwin= 342set nocygwin=
343set COMPILER= 343set COMPILER=
344set MAKECMD= 344set MAKECMD=
345set usercflags= 345set usercflags=
346set userldflags= 346set userldflags=