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