3 ;;; $Id: TM-CFG,v 7.27 1996/12/16 15:12:55 morioka Exp $
6 (defvar default-load-path load-path)
7 (setq load-path (append
10 (expand-file-name path (getenv "PWD"))
12 '("." "../emu" "../tl" "../bitmap-mule"
14 "../tm-mh-e" "../gnus-mime" "../tm-gnus"
15 "../tm-mail" "../tm-vm")
23 ;;; @ Please specify optional package directory if you use them.
26 ;; It is only necessary to use `add-path' if these packages are not
27 ;; already on the standard load-path of Emacs.
29 ;; Function `get-latest-path' detect latest version of such package
30 ;; under load-path directories. If you want to use a version of a
31 ;; package instead of latest version, please specify by argument of
32 ;; function `add-path'.
34 ;; Function `add-path' finds path under load-path directories. If a
35 ;; package does not exist in load-path, please specify by absolutely
36 ;; (`~/' is available), for example
37 ;; (add-path "~/lib/elisp/mailcrypt-3.4")
39 ;; (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
41 ;;; @@ Please specify VM path.
44 ;; Use latest version installed in load-path.
46 (let ((path (get-latest-path "vm" 'all-paths)))
51 ;; Or please specify path.
52 ;; (add-path "vm-5.95beta" 'all-paths)
55 ;;; @@ Please specify Mailcrypt path.
58 ;; Use latest version installed in load-path.
60 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
65 ;; Or please specify path.
66 ;; (add-path "mailcrypt-3.4" 'all-paths)
69 ;;; @@ Please specify BBDB path.
72 (let ((path (get-latest-path "bbdb" 'all-paths)))
77 ;; Or please specify path.
78 ;; (add-path "bbdb-1.50" 'all-paths)
84 ;; Please specify shell command path.
86 (find-if (function file-exists-p)
87 '("/bin/sh" "/usr/bin/sh")
90 ;; Please specify shell command option.
91 (setq SHELLOPTION "-c")
94 ;;; @ Please specify prefix of install directory.
97 ;; Please specify install path prefix.
98 ;; If it is omitted, shared directory (maybe /usr/local is used).
99 (defvar PREFIX install-prefix)
102 ;; Please specify install path prefix for binaries.
104 (if (or running-emacs-18 running-xemacs)
105 (expand-file-name "../../.." exec-directory)
106 (expand-file-name "../../../.." exec-directory)
109 ;; Please specify emu prefix [optional]
111 (if (string-match "XEmacs" emacs-version)
115 ;; Please specify tl prefix [optional]
116 ;;(setq TL_PREFIX "tl")
118 (if (string-match "XEmacs" emacs-version)
122 ;; Please specify prefix for ``bitmap-mule'' [optional]
123 (setq BITMAP_PREFIX "bitmap")
125 ;; Please specify MU prefix [optional]
126 (setq MU_PREFIX "mu")
128 ;; Please specify MEL prefix [optional]
129 (setq MEL_PREFIX "mel")
131 ;; Please specify tm prefix [optional]
132 (setq TM_PREFIX "tm")
134 ;; lisp files of tm are installed into following directory tree:
136 ;; <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
137 ;; <LISPDIR>/mime-setup.{el|elc}
138 ;; <LISPDIR>/<TL_PREFIX>/ --- tl lisp files
139 ;; <LISPDIR>/<BITMAP_PREFIX>/ --- bitmap lisp files
140 ;; <LISPDIR>/<MU_PREFIX>/ --- MU lisp files
141 ;; <LISPDIR>/<MEL_PREFIX>/ --- MEL lisp files
142 ;; <LISPDIR>/<TM_PREFIX>/ --- tm lisp files
144 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
146 ;; <LISPDIR> = /usr/local/share/emacs/site-lisp/
147 ;; /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
148 ;; /usr/local/share/emacs/site-lisp/ --- tl lisp files
149 ;; /usr/local/share/emacs/site-lisp/mu/ --- MU lisp files
150 ;; /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
151 ;; /usr/local/share/emacs/site-lisp/tm/ --- tm lisp files
153 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
155 ;; <LISPDIR> = ~/share/xemacs/site-lisp/
156 ;; ~/lib/xemacs/site-lisp/mime-setup.{el|elc}
157 ;; ~/lib/xemacs/site-lisp/tl/ --- tl lisp files
158 ;; ~/lib/xemacs/site-lisp/mu/ --- MU lisp files
159 ;; ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files
160 ;; ~/lib/xemacs/site-lisp/tm/ --- tm lisp files
166 ;; Please specify binary path.
167 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
169 ;; Please specify binary path. (for external method scripts)
170 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
175 ;;; @ optional settings
178 ;; It is generated by automatically. Please set variable `PREFIX'.
179 ;; If you don't like default directory tree, please set it.
180 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
181 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
186 (install-detect-elisp-directory PREFIX nil 'version-specific)))
188 ;; Please specify mime-setup.{el|elc} install path.
189 (setq SETUP_FILE_DIR LISPDIR)
191 (setq TL_DIR (expand-file-name TL_PREFIX LISPDIR))
192 (setq BITMAP_DIR (expand-file-name BITMAP_PREFIX LISPDIR))
193 (setq MU_DIR (expand-file-name MU_PREFIX LISPDIR))
194 (setq MEL_DIR (expand-file-name MEL_PREFIX LISPDIR))
195 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX LISPDIR))
196 (setq TM_MHE_DIR TM_KERNEL_DIR)
197 (setq TM_GNUS_DIR TM_KERNEL_DIR)
198 (setq Gnus_MIME_DIR TM_KERNEL_DIR)
199 (setq TM_MAIL_DIR TM_KERNEL_DIR)
200 (setq TM_VM_DIR TM_KERNEL_DIR)
202 (cond ((member LISPDIR default-load-path)
203 (setq TL_RELATIVE_DIR TL_PREFIX)
204 (setq BITMAP_RELATIVE_DIR BITMAP_PREFIX)
205 (setq MU_RELATIVE_DIR MU_PREFIX)
206 (setq MEL_RELATIVE_DIR MEL_PREFIX)
207 (setq TM_KERNEL_RELATIVE_DIR TM_PREFIX)
209 ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
211 (setq TL_RELATIVE_DIR
212 (concat "~/" (file-relative-name TL_DIR "~/"))
214 (setq BITMAP_RELATIVE_DIR
215 (concat "~/" (file-relative-name BITMAP_DIR "~/"))
217 (setq MU_RELATIVE_DIR
218 (concat "~/" (file-relative-name MU_DIR "~/"))
220 (setq MEL_RELATIVE_DIR
221 (concat "~/" (file-relative-name MEL_DIR "~/"))
223 (setq TM_KERNEL_RELATIVE_DIR
224 (concat "~/" (file-relative-name TM_KERNEL_DIR "~/"))
228 (setq TL_RELATIVE_DIR TL_DIR)
229 (setq BITMAP_RELATIVE_DIR BITMAP_DIR)
230 (setq MU_RELATIVE_DIR MU_DIR)
231 (setq MEL_RELATIVE_DIR MEL_DIR)
232 (setq TM_KERNEL_RELATIVE_DIR TM_KERNEL_DIR)
234 (setq TM_MHE_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
235 (setq TM_GNUS_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
237 (setq TM_GNUS_INSTALL_FORMAT
238 "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
239 (setq TM_GNUS_COMPILE ".gnus-compile")
243 (setq BIN_SRC_DIR "src")
244 (setq BINS '("ol2" "decode-b"))
245 (setq METHOD_SRC_DIR "methods")
247 '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"