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