tm 7.89.
[elisp/tm.git] / TM-CFG
1 ;;; -*-Emacs-Lisp-*-
2 ;;;
3 ;;; $Id: TM-CFG,v 7.23 1996/09/08 17:46:57 morioka Exp morioka $
4 ;;;
5
6 (defvar default-load-path load-path)
7 (setq load-path (append
8                  (mapcar (function
9                           (lambda (path)
10                             (expand-file-name path (getenv "PWD"))
11                             ))
12                          '("." "../tl" "../mu" "../mel"
13                            "../tm-mh-e" "../gnus-mime" "../tm-gnus"
14                            "../tm-mail" "../tm-vm")
15                          )
16                  load-path))
17
18 (require 'tl-misc)
19 (require 'install)
20
21
22 ;;; @ Please specify optional package directory if you use them.
23 ;;;
24
25 ;; It is only necessary to use `add-path' if these packages are not
26 ;; already on the standard load-path of Emacs.
27
28 ;; Function `get-latest-path' detect latest version of such package
29 ;; under load-path directories. If you want to use a version of a
30 ;; package instead of latest version, please specify by argument of
31 ;; function `add-path'.
32
33 ;; Function `add-path' finds path under load-path directories. If a
34 ;; package does not exist in load-path, please specify by absolutely
35 ;; (`~/' is available), for example
36 ;;      (add-path "~/lib/elisp/mailcrypt-3.4")
37 ;; or
38 ;;      (add-path "/opt/share/xmule/site-lisp/mailcrypt-3.4")
39
40 ;;; @@ Please specify VM path.
41 ;;;
42
43 ;; Use latest version installed in load-path.
44
45 (let ((path (get-latest-path "vm" 'all-paths)))
46   (if path
47       (add-path path)
48     ))
49
50 ;; Or please specify path.
51 ;; (add-path "vm-5.95beta" 'all-paths)
52
53
54 ;;; @@ Please specify Mailcrypt path.
55 ;;;
56
57 ;; Use latest version installed in load-path.
58
59 (let ((path (get-latest-path "mailcrypt" 'all-paths)))
60   (if path
61       (add-path path)
62     ))
63
64 ;; Or please specify path.
65 ;; (add-path "mailcrypt-3.4" 'all-paths)
66
67
68 ;;; @@ Please specify BBDB path.
69 ;;;
70
71 (let ((path (get-latest-path "bbdb" 'all-paths)))
72   (if path
73       (add-path path)
74     ))
75
76 ;; Or please specify path.
77 ;; (add-path "bbdb-1.50" 'all-paths)
78
79
80 ;;; @ shell
81 ;;;
82
83 ;; Please specify shell command path.
84 (setq SHELL
85       (find-if (function file-exists-p)
86                '("/bin/sh" "/usr/bin/sh")
87                ))
88
89 ;; Please specify shell command option.
90 (setq SHELLOPTION "-c")
91
92
93 ;;; @ Please specify prefix of install directory.
94 ;;;
95
96 ;; Please specify install path prefix.
97 ;; If it is omitted, shared directory (maybe /usr/local is used).
98 (defvar PREFIX install-prefix)
99 ;;(setq PREFIX "~/")
100
101 ;; Please specify install path prefix for binaries.
102 (defvar EXEC_PREFIX
103   (if (or running-emacs-18 running-xemacs)
104       (expand-file-name "../../.." exec-directory)
105     (expand-file-name "../../../.." exec-directory)
106     ))
107
108 ;; Please specify tm package prefix [optional]
109 (setq TM_PACKAGE_PREFIX "")
110
111 ;; Please specify tl prefix [optional]
112 ;;(setq TL_PREFIX "tl")
113 (setq TL_PREFIX
114       (if (string-match "XEmacs" emacs-version)
115           "tl"
116         ""))
117
118 ;; Please specify MU prefix [optional]
119 (setq MU_PREFIX "mu")
120
121 ;; Please specify MEL prefix [optional]
122 (setq MEL_PREFIX "mel")
123
124 ;; Please specify tm prefix [optional]
125 (setq TM_PREFIX "tm")
126
127 ;; lisp files of tm are installed into following directory tree:
128 ;;
129 ;;      <LISPDIR> = <PREFIX>/DATA_PREFIX/<install-elisp-prefix>/
130 ;;      <LISPDIR>/mime-setup.{el|elc}
131 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<TL_PREFIX>/  --- tl  lisp files
132 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<MU_PREFIX>/  --- MU lisp files
133 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<MEL_PREFIX>/ --- MEL lisp files
134 ;;      <LISPDIR>/<TM_PACKAGE_PREFIX>/<TM_PREFIX>/  --- tm  lisp files
135 ;;
136 ;; For example, if <PREFIX> = "/usr/local" and you use Emacs 19.34,
137 ;;
138 ;;      <LISPDIR> = /usr/local/share/emacs/site-lisp/
139 ;;      /usr/local/share/emacs/site-lisp/mime-setup.{el|elc}
140 ;;      /usr/local/share/emacs/site-lisp/     --- tl  lisp files
141 ;;      /usr/local/share/emacs/site-lisp/mu/  --- MU lisp files
142 ;;      /usr/local/share/emacs/site-lisp/mel/ --- MEL lisp files
143 ;;      /usr/local/share/emacs/site-lisp/tm/  --- tm  lisp files
144 ;;
145 ;; For example, if <PREFIX> = "~/" and you use XEmacs,
146 ;;
147 ;;      <LISPDIR> = ~/share/xemacs/site-lisp/
148 ;;      ~/lib/xemacs/site-lisp/mime-setup.{el|elc}
149 ;;      ~/lib/xemacs/site-lisp/tl/  --- tl  lisp files
150 ;;      ~/lib/xemacs/site-lisp/mu/  --- MU  lisp files
151 ;;      ~/lib/xemacs/site-lisp/mel/ --- MEL lisp files
152 ;;      ~/lib/xemacs/site-lisp/tm/  --- tm  lisp files
153
154
155 ;;; @ executables
156 ;;;
157
158 ;; Please specify binary path.
159 (defvar BIN_DIR (expand-file-name "bin" EXEC_PREFIX))
160
161 ;; Please specify binary path. (for external method scripts)
162 (setq METHOD_DIR (expand-file-name "share/tm" PREFIX))
163
164
165 \f
166
167 ;;; @ optional settings
168 ;;;
169
170 ;; It is generated by automatically. Please set variable `PREFIX'.
171 ;; If you don't like default directory tree, please set it.
172 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
173 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
174
175 ;; Please specify mime-setup.{el|elc} install path.
176 (setq SETUP_FILE_DIR LISPDIR)
177
178 (setq TM_LISPDIR (expand-file-name TM_PACKAGE_PREFIX LISPDIR))
179
180 (setq TL_DIR (expand-file-name TL_PREFIX TM_LISPDIR))
181 (setq MU_DIR (expand-file-name MU_PREFIX TM_LISPDIR))
182 (setq MEL_DIR (expand-file-name MEL_PREFIX TM_LISPDIR))
183 (setq TM_KERNEL_DIR (expand-file-name TM_PREFIX TM_LISPDIR))
184 (setq TM_MHE_DIR TM_KERNEL_DIR)
185 (setq TM_GNUS_DIR TM_KERNEL_DIR)
186 (setq Gnus_MIME_DIR TM_KERNEL_DIR)
187 (setq TM_MAIL_DIR TM_KERNEL_DIR)
188 (setq TM_VM_DIR TM_KERNEL_DIR)
189
190 (cond ((member LISPDIR default-load-path)
191        (if (string-equal TM_PACKAGE_PREFIX "")
192            (setq TL_RELATIVE_DIR TL_PREFIX
193                  MU_RELATIVE_DIR MU_PREFIX
194                  MEL_RELATIVE_DIR MEL_PREFIX
195                  TM_KERNEL_RELATIVE_DIR TM_PREFIX
196                  )
197          (setq TL_RELATIVE_DIR
198                (concat (file-name-as-directory TM_PACKAGE_PREFIX) TL_PREFIX))
199          (setq MU_RELATIVE_DIR
200                (concat (file-name-as-directory TM_PACKAGE_PREFIX) MU_PREFIX))
201          (setq MEL_RELATIVE_DIR
202                (concat (file-name-as-directory TM_PACKAGE_PREFIX) MEL_PREFIX))
203          (setq TM_KERNEL_RELATIVE_DIR
204                (concat (file-name-as-directory TM_PACKAGE_PREFIX) TM_PREFIX))
205          ))
206       ((string-match (concat "^" (regexp-quote (expand-file-name "~/")))
207                      LISPDIR)
208        (setq TL_RELATIVE_DIR (concat "~/" (file-relative-name TL_DIR "~/")))
209        (setq MU_RELATIVE_DIR (concat "~/" (file-relative-name MU_DIR "~/")))
210        (setq MEL_RELATIVE_DIR (concat "~/" (file-relative-name MEL_DIR "~/")))
211        (setq TM_KERNEL_RELATIVE_DIR
212              (concat "~/" (file-relative-name TM_KERNEL_DIR "~/")))
213        )
214       (t
215        (setq TL_RELATIVE_DIR TL_DIR)
216        (setq MU_RELATIVE_DIR MU_DIR)
217        (setq MEL_RELATIVE_DIR MEL_DIR)
218        (setq TM_KERNEL_RELATIVE_DIR TM_KERNEL_DIR)
219        ))
220 (setq TM_MHE_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
221 (setq TM_GNUS_RELATIVE_DIR TM_KERNEL_RELATIVE_DIR)
222
223 (setq TM_GNUS_INSTALL_FORMAT
224       "cd gnus; PWD=`pwd` make install-19 EMACS=%s TMDIR19=%s")
225 (setq TM_GNUS_COMPILE ".gnus-compile")
226 (setq MAKE "make")
227
228
229 (setq BIN_SRC_DIR "src")
230 (setq BINS '("ol2" "decode-b"))
231 (setq METHOD_SRC_DIR "methods")
232 (setq METHODS
233       '("tm-au" "tm-file" "tm-html" "tm-image" "tm-mpeg"
234         "tm-plain" "tm-ps"
235         "tmdecode"))
236
237 ;;; TM-CFG ends here