Mercurial > emacs
comparison nt/configure.bat @ 36545:aaea0580662b
Use correct options when compiling a test program with Cygwin.
From David Ponce <dponce@voila.fr>.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 05 Mar 2001 15:19:17 +0000 |
parents | 8045cccd8f3c |
children | baaa260e9a27 |
comparison
equal
deleted
inserted
replaced
36544:ea96fad2da67 | 36545:aaea0580662b |
---|---|
200 rem | 200 rem |
201 echo Checking whether W32 API headers are too old... | 201 echo Checking whether W32 API headers are too old... |
202 echo #include "windows.h" >junk.c | 202 echo #include "windows.h" >junk.c |
203 echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c | 203 echo test(PIMAGE_NT_HEADERS pHeader) >>junk.c |
204 echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c | 204 echo {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);} >>junk.c |
205 gcc -c junk.c | 205 if (%nocygwin%) == (Y) goto checkw32api1 |
206 set cf=%usercflags% | |
207 goto checkw32api2 | |
208 :checkw32api1 | |
209 set cf=%usercflags% -mno-cygwin | |
210 :checkw32api2 | |
211 echo on | |
212 gcc %cf% -c junk.c | |
213 echo off | |
214 set cf= | |
206 if exist junk.o goto gccOk | 215 if exist junk.o goto gccOk |
207 | 216 |
208 :nocompiler | 217 :nocompiler |
209 echo. | 218 echo. |
210 echo Configure failed. | 219 echo Configure failed. |