Hi,

The AM_PATH_LIBGCRYPT macro from m4/libgcrypt.m4 will check the existence of the libgcrypt library and its version. But it doesn't work when cross-compiling with mingw32, as it doesn't look for libgcrypt in the mingw32 environment.

When running configure with the mingw32 host:
$> ./configure --host=i586-mingw32msvc --without-zlib --enable-nocheck
...
checking for libgcrypt-config... /usr/bin/libgcrypt-config
checking for LIBGCRYPT - version >= 1.2.4... yes (1.4.1)
...

I was expecting a crash here, as I don't have libgcrypt in mingw32 environment. (If I try to compile, it won't, of course).


Why don't we use AC_CHECK_LIB() to check for libgcrypt? If we want the >=1.2.4 check we can put in AC_CHECK_LIB a function which is available in 1.2.4 and not in previous versions.

Cheers,
-Aleksander


Reply via email to