【发布时间】:2010-07-15 21:49:11
【问题描述】:
作为开发人员,我是第一次尝试使用 autotools,所以请见谅。
我正在使用Check 单元测试库,它在check.m4 中定义了宏AM_PATH_CHECK,该宏安装在/usr/local/share/aclocal 中。通过编辑/usr/share/aclocal/dirlist 以包含/usr/local/share/aclocal,我设法让aclocal 识别AM_PATH_CHECK。
所以aclocal 运行并干净地返回(没有任何额外的参数)。
但是,当我运行 autoreconf --install 时,我得到了错误
configure.ac:36: error: possibly undefined macro: AM_PATH_CHECK
If this token and others are legitimate, please use m4_pattern_allow
See the Autoconf documentation
autoreconf: /usr/local/bin/autoconf failed with exit status: 1
我做错了什么?如何让autoreconf知道AM_PATH_LOCAL的存在?
【问题讨论】:
标签: macros autotools autoreconf