如何将 autoconf/automake 指向非标准包 [英] How to point autoconf/automake to non-standard packages
问题描述
我正在尝试在 RedHat Linux 机器上构建 ZooKeeper.(ZooKeeper 究竟是什么可能并不重要:-)
I'm trying to build ZooKeeper on a RedHat Linux box. (Exactly what ZooKeeper is is probably not important :-)
当我按照包装说明进行操作时,我得到:
When I follow the package instructions, I get:
$ autoreconf -if
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library
aclocal:configure.ac:33: warning: macro `AM_PATH_CPPUNIT' not found in library
configure.ac:33: error: possibly undefined macro: AM_PATH_CPPUNIT
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
我无法在标准位置安装 CPPPUNIT.(没有root权限,系统组有不偏离"标准配置的政策.)
I can't install CPPPUNIT in the standard place. (Don't have root privileges, system team has a policy of "no deviations" from standard configuration.)
我已经通过注释掉对AM_PATH_CPPUNI
T 在我的 configure.ac 文件中,但我真正想做的是是在我的个人目录中安装 CPPPUNIT 并指向它,但我在弄清楚如何告诉 autoconf/automake 方面没有取得太大进展系统在非标准的地方寻找它.任何人有任何提示怎么做?
I've worked around the problem by commenting out the references to
AM_PATH_CPPUNI
T in my configure.ac file, but what I'd really like to do
is to install CPPPUNIT in my personal directory and point to it, but I'm
not making much progress in figuring out how to tell the autoconf/auotmake
system to look for it in a non-standard place. Anybody have any hints on
how to do that?
推荐答案
您要设置环境变量 ACLOCAL_PATH.
You want to set the environment variable ACLOCAL_PATH.
ACLOCAL_PATH="/home/YOU/path/to/share/aclocal" autoreconf -if
要确定您需要将 ACLOCAL_PATH 指向哪个目录,您必须找到包含定义 AM_PATH_CPPUNIT 的 .m4 文件的目录.
To figure out what directory you need to point ACLOCAL_PATH at, you'll have to find the directory that contains the .m4 file that defines AM_PATH_CPPUNIT.
这篇关于如何将 autoconf/automake 指向非标准包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!