We're already using Devel::CheckLib, but it only checks for the existence of the library. I don't see a way to make it check the return value of a given function call when compiled against that library.
Have i missed something from the Devel::CheckLib documentation?
| [reply] |
The current stable version (0.06) doesn't support this, but it seems that the current developer version, 0.699_001, supports supplying your own function body to be compiled and/or run. And as you're supposed to bundle Devel::CheckLib with your module anyway, using the developer version is just as good as using the stable version.
| [reply] |
yes, perfect! thanks for pointing out that change in Devel::CheckLib. I think we'll use 0.699; it tests and works fine for me to distinguish the different versions of libgcrypt across different installations.
| [reply] |