Re: autoconf tests and stdcall name mangling

2013-05-23 Thread Dimitrios Apostolou
On Wed, 22 May 2013, Eric Blake wrote: On 05/22/2013 02:12 PM, Zack Weinberg wrote: On Wed, May 22, 2013 at 1:06 PM, Nick Bowler nbow...@elliptictech.com wrote: The fundamental problem, I think, is that you really need the proper headers included and AC_REPLACE_FUNCS does not seem to allow

Re: autoconf tests and stdcall name mangling

2013-05-23 Thread Dimitrios Apostolou
On Wed, 22 May 2013, Zack Weinberg wrote: On Wed, May 22, 2013 at 1:06 PM, Nick Bowler nbow...@elliptictech.com wrote: The fundamental problem, I think, is that you really need the proper headers included and AC_REPLACE_FUNCS does not seem to allow you to specify the includes. So you probably

Re: autoconf tests and stdcall name mangling

2013-05-22 Thread Nick Bowler
Hello, On 2013-05-22 20:22 +0200, Dimitrios Apostolou wrote: The getaddrinfo-link.c attached file is a simplification of what AC_REPLACE_FUNCS(getaddrinfo) tries to compile and link. It fails to find the symbol because gcc most probably doesn't use proper calling conventions (stdcall).

Re: autoconf tests and stdcall name mangling

2013-05-22 Thread Dimitrios Apostolou
On Wed, 22 May 2013, Dimitrios Apostolou wrote: (Not sure which list is relevant, so I'm cross-posting to both mingw-users and autoconf lists) Not a cross-post after all since mingw-users requires registration. I'd appreciate any help from autoconf people, just make sure you don't CC

Re: autoconf tests and stdcall name mangling

2013-05-22 Thread Zack Weinberg
On Wed, May 22, 2013 at 1:06 PM, Nick Bowler nbow...@elliptictech.com wrote: The fundamental problem, I think, is that you really need the proper headers included and AC_REPLACE_FUNCS does not seem to allow you to specify the includes. So you probably can't use this macro at all. You can use

Re: autoconf tests and stdcall name mangling

2013-05-22 Thread Eric Blake
On 05/22/2013 02:12 PM, Zack Weinberg wrote: On Wed, May 22, 2013 at 1:06 PM, Nick Bowler nbow...@elliptictech.com wrote: The fundamental problem, I think, is that you really need the proper headers included and AC_REPLACE_FUNCS does not seem to allow you to specify the includes. So you