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.
You installed CPPUnit in a non-system place that's not searched by default, so oddly enough when running aclocal within the libtorrent build, it didn't know to look there. You can tell aclocal where to look with -I and I'm sure you can find a way to do that with autogen.sh in the middle.