emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/nt/configure.bat,v


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/nt/configure.bat,v
Date: Mon, 11 Feb 2008 21:17:35 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Eli Zaretskii <eliz>    08/02/11 21:17:35

Index: configure.bat
===================================================================
RCS file: /cvsroot/emacs/emacs/nt/configure.bat,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- configure.bat       9 Feb 2008 09:50:49 -0000       1.47
+++ configure.bat       11 Feb 2008 21:17:35 -0000      1.48
@@ -248,7 +248,6 @@
 echo main(){} >junk.c
 gcc -c junk.c
 if exist junk.o goto checkgcc
-del junk.o
 
 echo Checking whether 'cl' is available...
 cl -nologo -c junk.c
@@ -256,11 +255,12 @@
 goto nocompiler
 
 :checkgcc
+if exist junk.o del junk.o
 Rem WARNING -- COMMAND.COM on some systems only looks at the first
 Rem            8 characters of a label.  So do NOT be tempted to change
 Rem            chkapi* into something fancier like checkw32api
 Rem You HAVE been warned!
-if (%nocygwin%) == (Y) goto chkapi
+if (%nocygwin%) == (Y) goto chkapiN
 echo Checking whether gcc requires '-mno-cygwin'...
 echo #include "cygwin/version.h" >junk.c
 echo main(){} >>junk.c
@@ -270,11 +270,12 @@
 echo gcc -mno-cygwin -c junk.c >>config.log
 gcc -mno-cygwin -c junk.c >>config.log 2>&1
 if exist junk.o set nocygwin=Y
-rm -f junk.c junk.o
 
 :chkapi
 echo The failed program was: >>config.log
 type junk.c >>config.log
+:chkapiN
+rm -f junk.c junk.o
 rem ----------------------------------------------------------------------
 rem   Older versions of the Windows API headers either don't have any of
 rem   the IMAGE_xxx definitions (the headers that come with Cygwin b20.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]