3 ;;; $Id: TM-CFG,v 7.26 1996/11/27 11:45:46 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 tl prefix [optional]
110 ;;(setq TL_PREFIX "tl")
112 (if (string-match "XEmacs" emacs-version)
116 ;; Please specify prefix for ``bitmap-mule'' [optional]
117 (setq BITMAP_PREFIX "bitmap")
119 ;; Please specify MU prefix [optional]
120 (setq MU_PREFIX "mu")
122 ;; Please specify MEL prefix [optional]
123 (setq MEL_PREFIX "mel")
125 ;; Please specify tm prefix [optional]
126 (setq TM_PREFIX "tm")
128 ;; lisp files of tm are installed into following directory tree:
130 ;; <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
131 ;; <LISPDIR>/mime-setup.{el|elc}
132 ;; <LISPDIR>/<TL_PREFIX>/ --- tl lisp files
133 ;; <LISPDIR>/<BITMAP_PREFIX>/ --- bitmap lisp files
134 ;; <LISPDIR>/<MU_PREFIX>/ --- MU lisp files
135 ;; <LISPDIR>/<MEL_PREFIX>/ --- MEL lisp files
136 ;; <LISPDIR>/<TM_PREFIX>/ --- tm lisp files
138 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
140 ;; <LISPDIR> = /usr/local/share/emacs/site-lisp/
141 ;; /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
142 ;; /usr/local/share/emacs/site-lisp/ --- tl lisp files
143 ;; /usr/local/share/emacs/site-lisp/mu/ --- MU lisp files
144 ;; /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
145 ;; /usr/local/share/emacs/site-lisp/tm/ --- tm lisp files
147 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
149 ;; <LISPDIR> = ~/share/xemacs/site-lisp/
150 ;; ~/lib/xemacs/site-lisp/mime-setup.{el|elc}
151 ;; ~/lib/xemacs/site-lisp/tl/ --- tl lisp files
152 ;; ~/lib/xemacs/site-lisp/mu/ --- MU lisp files
153 ;; ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files
154 ;; ~/lib/xemacs/site-lisp/tm/ --- tm lisp files
160 ;; Please specify binary path.
161 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
163 ;; Please specify binary path. (for external method scripts)
164 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
169 ;;; @ optional settings
172 ;; It is generated by automatically. Please set variable `PREFIX'.
173 ;; If you don't like default directory tree, please set it.
174 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
175 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
177 (setq EMU_DIR (install-detect-elisp-directory PREFIX nil
180 ;; Please specify mime-setup.{el|elc} install path.
181 (setq SETUP_FILE_DIR LISPDIR)
183 (setq TL_DIR (expand-file-name TL_PREFIX LISPDIR))
184 (setq BITMAP_DIR (expand-file-name BITMAP_PREFIX LISPDIR))
185 (setq MU_DIR (expand-file-name MU_PREFIX LISPDIR))
186 (setq MEL_DIR (expand-file-name MEL_PREFIX LISPDIR))
187 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX LISPDIR))
188 (setq TM_MHE_DIR TM_KERNEL_DIR)
189 (setq TM_GNUS_DIR TM_KERNEL_DIR)
190 (setq Gnus_MIME_DIR TM_KERNEL_DIR)
191 (setq TM_MAIL_DIR TM_KERNEL_DIR)
192 (setq TM_VM_DIR TM_KERNEL_DIR)
194 (cond ((member LISPDIR default-load-path)
195 (setq TL_RELATIVE_DIR TL_PREFIX)
196 (setq BITMAP_RELATIVE_DIR BITMAP_PREFIX)
197 (setq MU_RELATIVE_DIR MU_PREFIX)
198 (setq MEL_RELATIVE_DIR MEL_PREFIX)
199 (setq TM_KERNEL_RELATIVE_DIR TM_PREFIX)
201 ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
203 (setq TL_RELATIVE_DIR
204 (concat "~/" (file-relative-name TL_DIR "~/"))
206 (setq BITMAP_RELATIVE_DIR
207 (concat "~/" (file-relative-name BITMAP_DIR "~/"))
209 (setq MU_RELATIVE_DIR
210 (concat "~/" (file-relative-name MU_DIR "~/"))
212 (setq MEL_RELATIVE_DIR
213 (concat "~/" (file-relative-name MEL_DIR "~/"))
215 (setq TM_KERNEL_RELATIVE_DIR
216 (concat "~/" (file-relative-name TM_KERNEL_DIR "~/"))
220 (setq TL_RELATIVE_DIR TL_DIR)
221 (setq BITMAP_RELATIVE_DIR BITMAP_DIR)
222 (setq MU_RELATIVE_DIR MU_DIR)
223 (setq MEL_RELATIVE_DIR MEL_DIR)
224 (setq TM_KERNEL_RELATIVE_DIR TM_KERNEL_DIR)
226 (setq TM_MHE_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
227 (setq TM_GNUS_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
229 (setq TM_GNUS_INSTALL_FORMAT
230 "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
231 (setq TM_GNUS_COMPILE ".gnus-compile")
235 (setq BIN_SRC_DIR "src")
236 (setq BINS '("ol2" "decode-b"))
237 (setq METHOD_SRC_DIR "methods")
239 '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"