I'm trying to build and install the PDF viewer Atril from source in the directory $HOME/.local on a computer running Debian 10. I have issued the commands
cd "$HOME/.local/src"
apt source atril
cd atril-1.20.3
./autogen.sh
./configure --prefix="$HOME/.local"
make
make install
The last command fails with the error message
libtool: install: /usr/bin/install -c .libs/libatril-properties-page.soT /usr/lib/x86_64-linux-gnu/caja/extensions-2.0/libatril-properties-page.so
/usr/bin/install: cannot remove '/usr/lib/x86_64-linux-gnu/caja/extensions-2.0/libatril-properties-page.so': Permission denied
because libtool tries to install a library under /usr/lib. Is there an option I have missed here to make libtool honour the prefix $HOME/.local?