macro `AM_PATH_CPPUNIT' not found in library

Pablo picture Pablo · Dec 16, 2011 · Viewed 16.4k times · Source

I am trying to build libtorrent on shared hosting. So built CPPUnit(1.12.1) with --prefix=$HOME. After that my $HOME/lib and $HOME/include contains CPPUnit libraries and headers.

The I exported LD_ paths

export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
export LD_INCLUDE_PATH=$HOME/include:$LD_INCLUDE_PATH

Then I run libtorrent/autogen.sh --prefix=$HOME and getting the following warning, which prevents me to run configure:

aclocal...
aclocal:configure.ac:20: warning: macro `AM_PATH_CPPUNIT' not found in library

cppunit.m4 file is located in $HOME/share/aclocal. I guess libtorrent can't find that dir for some reason.

Answer

picobello picture picobello · Aug 2, 2012

You need to do an apt-get install libcppunit-dev