Provide 'emu to prevent install.el from loading emu while compiling
[elisp/apel.git] / APEL-CFG
1 ;;; -*-Emacs-Lisp-*-
2
3 ;; APEL-CFG: installation setting about APEL.
4
5 ;;; Code:
6
7 (defvar default-load-path load-path)
8 (setq load-path (cons (expand-file-name ".") load-path))
9 ;; prevent install.el from loading 'emu while compiling APEL.
10 (provide 'emu)
11 (require 'install)
12
13
14 ;;; @ Please specify prefix of install directory.
15 ;;;
16
17 ;; Please specify install path prefix.
18 ;; If it is omitted, shared directory (maybe /usr/local is used).
19 (defvar PREFIX install-prefix)
20 ;;(setq PREFIX "~/")
21
22 ;; Please specify emu prefix [optional]
23 (setq EMU_PREFIX
24       (if (or (featurep 'xemacs)
25               (and (fboundp 'set-buffer-multibyte)
26                    (subrp (symbol-function 'set-buffer-multibyte))))
27           "emu"
28         ""))
29
30 ;; Please specify prefix for ``apel'' [optional]
31 (setq APEL_PREFIX "apel")
32
33 \f
34
35 ;;; @ optional settings
36 ;;;
37
38 (defvar VERSION_SPECIFIC_LISPDIR
39   (install-detect-elisp-directory PREFIX nil 'version-specific))
40
41 (setq EMU_DIR (expand-file-name EMU_PREFIX VERSION_SPECIFIC_LISPDIR))
42
43 ;; It is generated by automatically. Please set variable `PREFIX'.
44 ;; If you don't like default directory tree, please set it.
45 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
46 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
47
48 (setq APEL_DIR (expand-file-name APEL_PREFIX LISPDIR))
49 ;; (setq APEL_DIR (expand-file-name APEL_PREFIX VERSION_SPECIFIC_LISPDIR))
50
51 (defvar PACKAGEDIR
52   (if (boundp 'early-packages)
53       (let ((dirs (append (if early-package-load-path
54                               early-packages)
55                           (if late-package-load-path
56                               late-packages)
57                           (if last-package-load-path
58                               last-packages)))
59             dir)
60         (while (not (file-exists-p
61                      (setq dir (car dirs))))
62           (setq dirs (cdr dirs)))
63         dir)))
64
65 ;;; APEL-CFG ends here