#!/bin/sh
exit 0 # FreeBSD port: We know we have libslang already installed.
# This little script to alert people who didn't bother to read
# step (0) in the README installation instructions
function verify_slang()
{
return 0;
}
if [ -r include/slang.h ] || [ -r lib/libslang.so ]; then
if [ -r include/slang.h ] && [ -r lib/libslang.so ]; then
echo "You are building SLirc linked with local libslang.so";
echo "Be sure to run it with LD_PRELOAD set as explained in README";
verify_slang lib/libslang.so; exit $?
fi
echo "You don't have both include/slang.h and lib/libslang.so installed";
echo "You should either have both or neither";
echo "See step (0) in ./README";
exit 1;
fi
sl=""
for f in /usr/local/lib/libslang.so /usr/lib/libslang.so /lib/libslang.so; do
if [ -r $f ]; then sl=$f; break; fi
done
if [ $sl = "" ];then
echo "You do not seem to have libslang.so installed."
echo "See step (0) in ./README";
exit 1;
fi
echo "You are building SLirc linked with $sl";
verify_slang $sl; exit $?
exit 0;
syntax highlighted by Code2HTML, v. 0.9.1