loadup() { echo "(setf (system:getenv \"DISPLAY\") nil)"; # # when running from source, configure and compile the LOGON system # if [ -n "${source}" ]; then echo "(pushnew :logon *features*)"; echo "(load \"${LOGONROOT}/lingo/lkb/src/general/loadup.lisp\")"; echo "(pushnew :lkb *features*)"; echo "(compile-system \"tsdb\")"; fi } # loadup # # first, work out the current operating system, one of `linux' (x86), `solaris' # (sparc), or `windows' (x86); anything else will require manual installation. # if [ -z "${LOGONOS}" ]; then if [ "$OSTYPE" = "linux" -o "$OSTYPE" = "linux-gnu" ]; then # # apparently, (some) Debian installations come with an older uname(1), # where `-i' is not available :-{. (11-mar-05; oe) # if uname -i > /dev/null 2>&1; then cpu=$(uname -i) if [ "${cpu}" = "unknown" ]; then cpu=$(uname -m); fi else cpu=$(uname -m) fi case "${cpu}" in i?86) LOGONOS="linux.x86.32" ;; x86_64) LOGONOS="linux.x86.64" ;; *) echo "LOGONOS: unknown Linux variant (check \`uname -m'); exit." exit 1; esac elif [ "$OSTYPE" = "solaris" -o "${OSTYPE%%?.?}" = "solaris" ]; then LOGONOS="solaris"; elif [ "$OSTYPE" = "cygwin" ]; then LOGONOS="windows"; fi fi export LOGONOS # # even on systems that have no Motif installed, make sure the LKB can find its # Motif libraries (this is somewhat of a hack, really). also, add the path for # XLE Sicstus libraries, so dynamic loading will work. # if [ "$OSTYPE" = "linux" -o "$OSTYPE" = "linux-gnu" ]; then if [ -z "${LD_LIBRARY_PATH}" ]; then LD_LIBRARY_PATH=${LOGONROOT}/lingo/lkb/lib/${LOGONOS} else LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LOGONROOT}/lingo/lkb/lib/${LOGONOS} fi LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LOGONROOT}/parc/xle/lib/${LOGONOS} export LD_LIBRARY_PATH # # on 64-bit machines, also include 32-bit libraries, so we can run things in # compatibility mode. # if [ "${LOGONOS}" = "linux.x86.64" ]; then LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LOGONROOT}/lingo/lkb/lib/linux.x86.32 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${LOGONROOT}/parc/xle/lib/linux.x86.32 fi fi