aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Rumney2008-02-03 21:59:56 +0000
committerJason Rumney2008-02-03 21:59:56 +0000
commit680d641f2f34232d3bb9a46d1e50c72efde47fca (patch)
tree1b4214d3f00ef5a4464614dd309e8022d46aabb1
parentffe421835cf906463e3f399397a60e70d9891352 (diff)
downloademacs-680d641f2f34232d3bb9a46d1e50c72efde47fca.tar.gz
emacs-680d641f2f34232d3bb9a46d1e50c72efde47fca.zip
Make gcc the default compiler.
-rw-r--r--nt/ChangeLog4
-rwxr-xr-xnt/configure.bat13
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 @@
12008-02-03 Jason Rumney <jasonr@gnu.org>
2
3 * configure.bat: Make gcc the default compiler.
4
12008-02-02 Eli Zaretskii <eliz@gnu.org> 52008-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.
244if (%COMPILER%)==(cl) goto compilercheckdone 244if (%COMPILER%)==(cl) goto compilercheckdone
245if (%COMPILER%)==(gcc) goto checkgcc 245if (%COMPILER%)==(gcc) goto checkgcc
246 246
247echo Checking whether 'cl' is available...
248echo main(){} >junk.c
249cl -nologo -c junk.c
250if exist junk.obj goto clOK
251
252echo Checking whether 'gcc' is available... 247echo Checking whether 'gcc' is available...
248echo main(){} >junk.c
253gcc -c junk.c 249gcc -c junk.c
254if not exist junk.o goto nocompiler 250if exist junk.o goto checkgcc
255del junk.o 251del junk.o
256 252
253echo Checking whether 'cl' is available...
254cl -nologo -c junk.c
255if exist junk.obj goto clOK
256goto nocompiler
257
257:checkgcc 258:checkgcc
258Rem WARNING -- COMMAND.COM on some systems only looks at the first 259Rem WARNING -- COMMAND.COM on some systems only looks at the first
259Rem 8 characters of a label. So do NOT be tempted to change 260Rem 8 characters of a label. So do NOT be tempted to change