我的configure.in文件有 lt_version =“ 1.1”. 。我正在使用最新版本的AutoConf和libtool。在使用AutoConf或AutoreConf时,我会收到以下错误消息:

configure.ac:41: error: possibly undefined macro: LT_VERSION
  If this token and others are legitimate, please use m4_pattern_allow.
  See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

我能做些什么?

有帮助吗?

解决方案

我在libtool源树(有ltversion和ltobsolete_version)中找不到对lt_version的任何参考Libtool使用的东西。在这种情况下,您应该做两件事。首先,您应该更改名称,因为您正在踩在Libtool的名称空间上,并且似乎LIBTOOL使用了LT_Version(实际上,它看起来像是Libtool提供的M4宏,因此分配给它确实很奇怪)。其次,您应该使用m4_pattern_allow。 (请参阅AutoConf文档。)换句话说,将其放在您的configure.ac中:

m4_pattern_allow([LT_VERSION])

这将抑制警告。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top