在编译某个库时,报如下错误
configure.ac:448: error: possibly undefined macro: AC_ERLANG_SUBST_ERTS_VER
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
那是因为erlang 17版本之后,就没有把宏AC_ERLANG_SUBST_ERTS_VER放入到啥啥啥进去了。
AC_ERLANG_SUBST_ERTS_VER这个宏被列入到gnu的库里。但是系统的autoconf工具的版本又比较低(2.63)。这个宏也没有被列入这个版本里。
解决方案:
升级autoconf到最新版2.69。这其中也升级了automake libtool这两个工具。
其实不学无术的我根本不知道这个宏被定义在哪个工具包里。