diff options
| author | Jason Rumney | 2008-02-03 21:59:56 +0000 |
|---|---|---|
| committer | Jason Rumney | 2008-02-03 21:59:56 +0000 |
| commit | 680d641f2f34232d3bb9a46d1e50c72efde47fca (patch) | |
| tree | 1b4214d3f00ef5a4464614dd309e8022d46aabb1 | |
| parent | ffe421835cf906463e3f399397a60e70d9891352 (diff) | |
| download | emacs-680d641f2f34232d3bb9a46d1e50c72efde47fca.tar.gz emacs-680d641f2f34232d3bb9a46d1e50c72efde47fca.zip | |
Make gcc the default compiler.
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rwxr-xr-x | nt/configure.bat | 13 |
2 files changed, 11 insertions, 6 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 4c5cc219fc9..505994bd1e3 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2008-02-03 Jason Rumney <jasonr@gnu.org> | ||
| 2 | |||
| 3 | * configure.bat: Make gcc the default compiler. | ||
| 4 | |||
| 1 | 2008-02-02 Eli Zaretskii <eliz@gnu.org> | 5 | 2008-02-02 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * makefile.w32-in (unidatagen-SH, unidatagen-clean-SH): Ignore | 7 | * makefile.w32-in (unidatagen-SH, unidatagen-clean-SH): Ignore |
diff --git a/nt/configure.bat b/nt/configure.bat index 24719c67863..ed0fa94724a 100755 --- a/nt/configure.bat +++ b/nt/configure.bat | |||
| @@ -244,16 +244,17 @@ rem Auto-detect compiler if not specified, and validate GCC if chosen. | |||
| 244 | if (%COMPILER%)==(cl) goto compilercheckdone | 244 | if (%COMPILER%)==(cl) goto compilercheckdone |
| 245 | if (%COMPILER%)==(gcc) goto checkgcc | 245 | if (%COMPILER%)==(gcc) goto checkgcc |
| 246 | 246 | ||
| 247 | echo Checking whether 'cl' is available... | ||
| 248 | echo main(){} >junk.c | ||
| 249 | cl -nologo -c junk.c | ||
| 250 | if exist junk.obj goto clOK | ||
| 251 | |||
| 252 | echo Checking whether 'gcc' is available... | 247 | echo Checking whether 'gcc' is available... |
| 248 | echo main(){} >junk.c | ||
| 253 | gcc -c junk.c | 249 | gcc -c junk.c |
| 254 | if not exist junk.o goto nocompiler | 250 | if exist junk.o goto checkgcc |
| 255 | del junk.o | 251 | del junk.o |
| 256 | 252 | ||
| 253 | echo Checking whether 'cl' is available... | ||
| 254 | cl -nologo -c junk.c | ||
| 255 | if exist junk.obj goto clOK | ||
| 256 | goto nocompiler | ||
| 257 | |||
| 257 | :checkgcc | 258 | :checkgcc |
| 258 | Rem WARNING -- COMMAND.COM on some systems only looks at the first | 259 | Rem WARNING -- COMMAND.COM on some systems only looks at the first |
| 259 | Rem 8 characters of a label. So do NOT be tempted to change | 260 | Rem 8 characters of a label. So do NOT be tempted to change |