if test -n "`ls $p/libdb.so* 2>/dev/null`"; then
needusrshlib=yes
fi
- echo "Appending $p to LD_LIBRARY_PATH." >& 4
- case "$LD_LIBRARY_PATH" in
- '') LD_LIBRARY_PATH=$p ;;
- *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
- esac
+ if test -d $p; then
+ echo "Appending $p to LD_LIBRARY_PATH." >& 4
+ case "$LD_LIBRARY_PATH" in
+ '') LD_LIBRARY_PATH=$p ;;
+ *) LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$p ;;
+ esac
+ fi
done
echo "LD_LIBRARY_PATH is now $LD_LIBRARY_PATH." >& 4
# This is evil but I can't think of a nice workaround: