From dce7b4baa78f8b0ad3725af4460ac450c58e003e Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Fri, 29 Jun 2007 23:45:48 +0000 Subject: Proper check for Windows API functions in configure. --- configure | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 31216a7..96f9ee0 100755 --- a/configure +++ b/configure @@ -115,14 +115,15 @@ disabled shared && disabled static && { # simple cc test cat > /tmp/test.c << EOF -int function(void) -{ return 0; } +#include +void function(void) +{ LoadLibrary(NULL); } EOF $cc -shared -o /tmp/test.dll /tmp/test.c test "$?" = !0 && { - echo "$cc could not create shared file."; - echo "Make sure your system is working properly."; + echo "$cc could not create shared file with Windows API functions."; + echo "Make sure your MinGW system is working properly."; exit 1; } -- cgit v1.2.3-55-g6feb