>>>>> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes:
Enrico> I didn't succeed in using AC_CHECK_LIB with a win32 library, Enrico> so in the autoview patch I directly used AC_SUBST to add Enrico> -lshlwapi. I think it can be made to work. Enrico> I think that Joost modeled his patch on that above, so the Enrico> answer is that AC_CHECK_LIB is a nightmare to be avoided. It seems AC_CHECK_LIB(gdi32,main) should work. The funnier version would look like AC_CHECK_LIB(gdi32, [EMAIL PROTECTED]) or something else after the @. Enrico> On the other hand, those win32 libraries are present in any Enrico> cygwin or mingw distribution, so there is no point for Enrico> AC_CHECK_LIB, IMHO. Yes, but I prefer to test by feature instead of by os. the shell API require Internet Explorer 5, for example. I agree it is there in practice, but this might not be the case for all functions we may require. And what if I want to compile against libwine? :) JMarc