function install_abcl_from_sources(){
# Assume ccl is available.
cd "${PREFIX}"/src/
local tarball;tarball="$(basename "${url}")"
local dir;dir="$(basename "${tarball}" .tar.gz)"
local jdkhome;jdkhome="$(java_home)"
local logbase;logbase="$(pwd)/${dir}"
export JAVA_HOME="${jdkhome}"
if [[ ! -e "${tarball}" ]] ; then
download "${url}"
fi
unarchive "${tarball}" "${dir}"
cd "${dir}"
case "$(uname)" in
(Darwin)
sed -e 's^"/usr/"^"'"${jdkhome}/"'"^' \
<customizations.lisp.in >customizations.lisp
;;
(*)
sed -e 's^"/home/peter/sun/jdk1.5.0_16/"^"'"${jdkhome}/"'"^' \
-e 's/fastjar/jar/' \
<customizations.lisp.in >customizations.lisp
;;
esac
chmod 755 ./build-from-lisp.bash
printi 'Building abcl from lisp with ccl'
./build-from-lisp.bash ccl > "${logbase}".build-from-lisp.log 2>&1 \
&& ( printi 'Installing abcl' ; install -m 755 abcl "${PREFIX}"/bin/ > "${logbase}".make-install.log 2>&1 ) \
|| printe 'Compiling abcl failed; check the logs.'
}