aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorJuanma Barranquero2010-09-22 03:30:05 +0200
committerJuanma Barranquero2010-09-22 03:30:05 +0200
commitee705a5c54c4054bcd1608e5cd5be193e679d0db (patch)
tree25e6156d5f2bf26806f460608824ed358d6450e3 /nt
parent592bdb9afe10a8c66f139d2529e42cab8144dcb7 (diff)
downloademacs-ee705a5c54c4054bcd1608e5cd5be193e679d0db.tar.gz
emacs-ee705a5c54c4054bcd1608e5cd5be193e679d0db.zip
nt/configure.bat: Cosmetic changes.
Diffstat (limited to 'nt')
-rwxr-xr-xnt/configure.bat40
1 files changed, 38 insertions, 2 deletions
diff --git a/nt/configure.bat b/nt/configure.bat
index c7bfad35189..74c7e1af137 100755
--- a/nt/configure.bat
+++ b/nt/configure.bat
@@ -1,6 +1,6 @@
1@echo off 1@echo off
2rem ---------------------------------------------------------------------- 2rem ----------------------------------------------------------------------
3rem Configuration script for MS Windows 95/98/Me and NT/2000/XP 3rem Configuration script for MS Windows operating systems
4rem Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 4rem Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005,
5rem 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 5rem 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
6 6
@@ -22,7 +22,7 @@ rem along with GNU Emacs. If not, see http://www.gnu.org/licenses/.
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/Me or NT/2000/XP 25rem + MS Windows 95, NT or later
26rem + either MSVC 2.x or later, or gcc-2.95 or later (with GNU make 3.75 26rem + either MSVC 2.x or later, or gcc-2.95 or later (with GNU make 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 + Visual Studio 2005 is not supported at this time. 28rem + Visual Studio 2005 is not supported at this time.
@@ -116,6 +116,7 @@ if "%1" == "--without-xpm" goto withoutxpm
116if "%1" == "--with-svg" goto withsvg 116if "%1" == "--with-svg" goto withsvg
117if "%1" == "--distfiles" goto distfiles 117if "%1" == "--distfiles" goto distfiles
118if "%1" == "" goto checkutils 118if "%1" == "" goto checkutils
119
119:usage 120:usage
120echo Usage: configure [options] 121echo Usage: configure [options]
121echo Options: 122echo Options:
@@ -137,61 +138,82 @@ echo. --without-xpm do not use XPM library even if it is installed
137echo. --with-svg use the RSVG library (experimental) 138echo. --with-svg use the RSVG library (experimental)
138echo. --distfiles path to files for make dist, e.g. libXpm.dll 139echo. --distfiles path to files for make dist, e.g. libXpm.dll
139goto end 140goto end
141
140rem ---------------------------------------------------------------------- 142rem ----------------------------------------------------------------------
143
141:setprefix 144:setprefix
142shift 145shift
143set prefix=%1 146set prefix=%1
144shift 147shift
145goto again 148goto again
149
146rem ---------------------------------------------------------------------- 150rem ----------------------------------------------------------------------
151
147:withgcc 152:withgcc
148set COMPILER=gcc 153set COMPILER=gcc
149shift 154shift
150goto again 155goto again
156
151rem ---------------------------------------------------------------------- 157rem ----------------------------------------------------------------------
158
152:withmsvc 159:withmsvc
153set COMPILER=cl 160set COMPILER=cl
154shift 161shift
155goto again 162goto again
163
156rem ---------------------------------------------------------------------- 164rem ----------------------------------------------------------------------
165
157:nodebug 166:nodebug
158set nodebug=Y 167set nodebug=Y
159shift 168shift
160goto again 169goto again
170
161rem ---------------------------------------------------------------------- 171rem ----------------------------------------------------------------------
172
162:noopt 173:noopt
163set noopt=Y 174set noopt=Y
164shift 175shift
165goto again 176goto again
177
166rem ---------------------------------------------------------------------- 178rem ----------------------------------------------------------------------
179
167:enablechecking 180:enablechecking
168set enablechecking=Y 181set enablechecking=Y
169shift 182shift
170goto again 183goto again
184
171rem ---------------------------------------------------------------------- 185rem ----------------------------------------------------------------------
186
172:profile 187:profile
173set profile=Y 188set profile=Y
174shift 189shift
175goto again 190goto again
191
176rem ---------------------------------------------------------------------- 192rem ----------------------------------------------------------------------
193
177:nocygwin 194:nocygwin
178set nocygwin=Y 195set nocygwin=Y
179shift 196shift
180goto again 197goto again
198
181rem ---------------------------------------------------------------------- 199rem ----------------------------------------------------------------------
200
182:usercflags 201:usercflags
183shift 202shift
184set usercflags=%usercflags%%sep1%%1 203set usercflags=%usercflags%%sep1%%1
185set sep1= %nothing% 204set sep1= %nothing%
186shift 205shift
187goto again 206goto again
207
188rem ---------------------------------------------------------------------- 208rem ----------------------------------------------------------------------
209
189:userldflags 210:userldflags
190shift 211shift
191set userldflags=%userldflags%%sep2%%1 212set userldflags=%userldflags%%sep2%%1
192set sep2= %nothing% 213set sep2= %nothing%
193shift 214shift
194goto again 215goto again
216
195rem ---------------------------------------------------------------------- 217rem ----------------------------------------------------------------------
196 218
197:withoutpng 219:withoutpng
@@ -249,6 +271,7 @@ goto again
249 271
250rem ---------------------------------------------------------------------- 272rem ----------------------------------------------------------------------
251rem Check that necessary utilities (cp and rm) are present. 273rem Check that necessary utilities (cp and rm) are present.
274
252:checkutils 275:checkutils
253echo Checking for 'cp'... 276echo Checking for 'cp'...
254cp configure.bat junk.bat 277cp configure.bat junk.bat
@@ -257,9 +280,11 @@ echo Checking for 'rm'...
257rm junk.bat 280rm junk.bat
258if exist junk.bat goto needrm 281if exist junk.bat goto needrm
259goto checkcompiler 282goto checkcompiler
283
260:needcp 284:needcp
261echo You need 'cp' (the Unix file copy program) to build Emacs. 285echo You need 'cp' (the Unix file copy program) to build Emacs.
262goto end 286goto end
287
263:needrm 288:needrm
264del junk.bat 289del junk.bat
265echo You need 'rm' (the Unix file delete program) to build Emacs. 290echo You need 'rm' (the Unix file delete program) to build Emacs.
@@ -267,6 +292,7 @@ goto end
267 292
268rem ---------------------------------------------------------------------- 293rem ----------------------------------------------------------------------
269rem Auto-detect compiler if not specified, and validate GCC if chosen. 294rem Auto-detect compiler if not specified, and validate GCC if chosen.
295
270:checkcompiler 296:checkcompiler
271if (%COMPILER%)==(cl) goto compilercheckdone 297if (%COMPILER%)==(cl) goto compilercheckdone
272if (%COMPILER%)==(gcc) goto checkgcc 298if (%COMPILER%)==(gcc) goto checkgcc
@@ -301,6 +327,7 @@ if exist junk.o set nocygwin=Y
301:chkapi 327:chkapi
302echo The failed program was: >>config.log 328echo The failed program was: >>config.log
303type junk.c >>config.log 329type junk.c >>config.log
330
304:chkapiN 331:chkapiN
305rm -f junk.c junk.o 332rm -f junk.c junk.o
306rem ---------------------------------------------------------------------- 333rem ----------------------------------------------------------------------
@@ -320,8 +347,10 @@ echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c
320if (%nocygwin%) == (Y) goto chkapi1 347if (%nocygwin%) == (Y) goto chkapi1
321set cf=%usercflags% 348set cf=%usercflags%
322goto chkapi2 349goto chkapi2
350
323:chkapi1 351:chkapi1
324set cf=%usercflags% -mno-cygwin 352set cf=%usercflags% -mno-cygwin
353
325:chkapi2 354:chkapi2
326echo on 355echo on
327gcc %cf% -c junk.c 356gcc %cf% -c junk.c
@@ -357,10 +386,12 @@ type junk.c >>config.log
357set mf=-mcpu=i686 386set mf=-mcpu=i686
358rm -f junk.c junk.o 387rm -f junk.c junk.o
359goto gccdebug 388goto gccdebug
389
360:gccMtuneOk 390:gccMtuneOk
361echo GCC supports -mtune=pentium4 >>config.log 391echo GCC supports -mtune=pentium4 >>config.log
362set mf=-mtune=pentium4 392set mf=-mtune=pentium4
363rm -f junk.c junk.o 393rm -f junk.c junk.o
394
364:gccdebug 395:gccdebug
365rem Check for DWARF-2 debug info support, else default to stabs 396rem Check for DWARF-2 debug info support, else default to stabs
366echo main(){} >junk.c 397echo main(){} >junk.c
@@ -372,6 +403,7 @@ type junk.c >>config.log
372set dbginfo=-gstabs+ 403set dbginfo=-gstabs+
373rm -f junk.c junk.o 404rm -f junk.c junk.o
374goto compilercheckdone 405goto compilercheckdone
406
375:gccdwarf 407:gccdwarf
376echo GCC supports DWARF-2 >>config.log 408echo GCC supports DWARF-2 >>config.log
377set dbginfo=-gdwarf-2 -g3 409set dbginfo=-gdwarf-2 -g3
@@ -565,6 +597,7 @@ goto :distfilesDone
565set fileNotFound= 597set fileNotFound=
566 598
567rem ---------------------------------------------------------------------- 599rem ----------------------------------------------------------------------
600
568:genmakefiles 601:genmakefiles
569echo Generating makefiles 602echo Generating makefiles
570if %COMPILER% == gcc set MAKECMD=gmake 603if %COMPILER% == gcc set MAKECMD=gmake
@@ -619,6 +652,7 @@ fc /b config.tmp ..\src\config.h >nul 2>&1
619if errorlevel 1 goto doCopy 652if errorlevel 1 goto doCopy
620fc /b paths.h ..\src\epaths.h >nul 2>&1 653fc /b paths.h ..\src\epaths.h >nul 2>&1
621if errorlevel 0 goto dontCopy 654if errorlevel 0 goto dontCopy
655
622:doCopy 656:doCopy
623copy config.tmp ..\src\config.h 657copy config.tmp ..\src\config.h
624copy paths.h ..\src\epaths.h 658copy paths.h ..\src\epaths.h
@@ -648,6 +682,7 @@ fc /b foo.bar foo.bar >nul 2>&1
648if not errorlevel 2 goto doUpdateSubdirs 682if not errorlevel 2 goto doUpdateSubdirs
649fc /b subdirs.el ..\site-lisp\subdirs.el >nul 2>&1 683fc /b subdirs.el ..\site-lisp\subdirs.el >nul 2>&1
650if not errorlevel 1 goto dontUpdateSubdirs 684if not errorlevel 1 goto dontUpdateSubdirs
685
651:doUpdateSubdirs 686:doUpdateSubdirs
652if exist ..\site-lisp\subdirs.el del ..\site-lisp\subdirs.el 687if exist ..\site-lisp\subdirs.el del ..\site-lisp\subdirs.el
653copy subdirs.el ..\site-lisp\subdirs.el 688copy subdirs.el ..\site-lisp\subdirs.el
@@ -716,6 +751,7 @@ goto end
716echo Your environment size is too small. Please enlarge it and rerun configure. 751echo Your environment size is too small. Please enlarge it and rerun configure.
717echo For example, type "command.com /e:2048" to have 2048 bytes available. 752echo For example, type "command.com /e:2048" to have 2048 bytes available.
718set $foo$= 753set $foo$=
754
719:end 755:end
720set prefix= 756set prefix=
721set nodebug= 757set nodebug=