-INSTALL_ROOT=${INSTALL_ROOT-/usr/local}
-MAN_DIR=${MAN_DIR-$INSTALL_ROOT/share/man}
-INFO_DIR=${INFO_DIR-$INSTALL_ROOT/share/info}
-DOC_DIR=${DOC_DIR-$INSTALL_ROOT/share/doc/sbcl}
+if [ "$OSTYPE" = "cygwin" -o "$OSTYPE" = "msys" ] ; then
+ DEFAULT_INSTALL_ROOT="$PROGRAMFILES/sbcl"
+ RUNTIME=sbcl.exe
+ OLD_RUNTIME=sbcl.exe.old
+else
+ DEFAULT_INSTALL_ROOT=/usr/local
+ RUNTIME=sbcl
+ OLD_RUNTIME=sbcl.old
+fi
+INSTALL_ROOT=${INSTALL_ROOT-$DEFAULT_INSTALL_ROOT}
+MAN_DIR=${MAN_DIR-"$INSTALL_ROOT"/share/man}
+INFO_DIR=${INFO_DIR-"$INSTALL_ROOT"/share/info}
+DOC_DIR=${DOC_DIR-"$INSTALL_ROOT"/share/doc/sbcl}