Hi,
>> > > Which environments did you test this on? It needs to work on mingw as >> > I use debian jessie, but it should work elsewhere. >> > >> > > shipped with ubuntu 12.04 (no inet_pton), mingw as shipped with 14.04 >> > > (inet_pton, *and* the definition its using conflicts with our compat/ >> > > libraries, so a false negative will fail later) and cygwin. >> >> Well, the reason why I pointed out these two is that they are different >> regarding header file brokenness - I'm not sure I remember the details, >> but stuff that broke for me on 12.04 worked for samuli on 14.04. >> > > I don't think AC_FUNC_CHECK can detect intet_pton in any version of > windows API. It just tries to link > Regarding the mingw-specific issue: I forgot to add that those two appear to be the only WINAPI functions tested using AC_CHECK_FUNC in configure.ac. These wont be detected though present in vista+. So, the build tries to use the replacement functions even on vista, which should have been ok except for the declaration mismatch with some mingw headers for vista+ --- such a mismatch is not expected, so is very likely specific to some versions of mingw, I don't know. The failure to detect a function, but then find a mismatch while building is a good example of the limitations of AC_CHECK_FUNC -- one being, headers not included (cannot be included) during the test. Selva