|
From: | Jon Bright |
Subject: | Re: [Monotone-devel] 0.26pre2's configure: problems on cygwin |
Date: | Mon, 20 Mar 2006 22:30:34 +0100 |
User-agent: | Thunderbird 1.5 (Windows/20051201) |
Lapo Luchini wrote:
AC_CACHE_CHECK([if this is Windows], ac_win32, [ - AC_TRY_RUN([ -#ifdef WIN32 -#include <windows.h> -int main(void) -{ - return 0; -} -#else -__wont_compile_ -#endif -], + AC_TRY_COMPILE([#include <windows.h>], + [HANDLE h; DWORD d;], ac_win32=yes, - ac_win32=no, - ac_win32=no)]) + ac_win32=no) +]) if test "$ac_win32" = "yes"; then AM_CONDITIONAL(WIN32_PLATFORM, true) else
I don' really know why the check got changed, but I'm guessing it's the #ifdef wrapping that makes the difference - I imagine cygwin doesn't define WIN32, whereas MinGW does.
-- Jon
[Prev in Thread] | Current Thread | [Next in Thread] |