如何在autoconf中获取库版本?

How to get library version in autoconf?

我需要知道计算机上安装的库 libraptor2 的版本。

最好在configure脚本中确定。

怎么做?

可以这样做:

RAPTOR_VERSION=`pkg-config --modversion raptor2`