Hi there,

I am currently working on getting a series of libraries to work under a mingw cross compiler hosted under linux. I have recently been following the changes in trunk related to support for mingw compilation.

However the current method of detecting mingw is limited to the output of "uname -s". In my situation this provides "Linux" which means i get the errors due to the __stdcall not being present.

I have attached a patch which i feel will better solve the problem as it is not reliant on the uname command but rather the host that the configure is invoked for.

Andrew
Index: neon.m4
===================================================================
--- neon.m4     (revision 1091)
+++ neon.m4     (working copy)
@@ -360,8 +360,8 @@
 ne_cv_libsfor_$1="not found"
 for lib in $2; do
     # The w32api libraries link using the stdcall calling convention.
-    case ${lib}-${ne_cv_os_uname} in
-    ws2_32-MINGW*) ne__code="__stdcall $1();" ;;
+    case ${lib}-${host} in
+    ws2_32-*mingw*) ne__code="__stdcall $1();" ;;
     *) ne__code="$1();" ;;
     esac
 
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to