Mercurial > emacs
comparison nt/configure.bat @ 91494:1748d84b4fe3
Make gcc the default compiler.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 03 Feb 2008 21:59:43 +0000 |
parents | 110eeb572cb0 |
children | 4cc0cc182327 |
comparison
equal
deleted
inserted
replaced
91493:26c44132a0bf | 91494:1748d84b4fe3 |
---|---|
242 rem Auto-detect compiler if not specified, and validate GCC if chosen. | 242 rem Auto-detect compiler if not specified, and validate GCC if chosen. |
243 :checkcompiler | 243 :checkcompiler |
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 'gcc' is available... | |
248 echo main(){} >junk.c | |
249 gcc -c junk.c | |
250 if exist junk.o goto checkgcc | |
251 del junk.o | |
252 | |
247 echo Checking whether 'cl' is available... | 253 echo Checking whether 'cl' is available... |
248 echo main(){} >junk.c | |
249 cl -nologo -c junk.c | 254 cl -nologo -c junk.c |
250 if exist junk.obj goto clOK | 255 if exist junk.obj goto clOK |
251 | 256 goto nocompiler |
252 echo Checking whether 'gcc' is available... | |
253 gcc -c junk.c | |
254 if not exist junk.o goto nocompiler | |
255 del junk.o | |
256 | 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 |
260 Rem chkapi* into something fancier like checkw32api | 261 Rem chkapi* into something fancier like checkw32api |