(file-executable-p): New function.
[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 (require 'install)
10
11
12 ;;;
13 ;;; @@ Please specify CUSTOM path.
14 ;;;
15
16 (add-latest-path "custom")
17
18
19 ;;; @ Please specify prefix of install directory.
20 ;;;
21
22 ;; Please specify install path prefix.
23 ;; If it is omitted, shared directory (maybe /usr/local is used).
24 (defvar PREFIX install-prefix)
25 ;;(setq PREFIX "~/")
26
27 ;; Please specify emu prefix [optional]
28 (setq EMU_PREFIX
29       (if (or (featurep 'xemacs)
30               (and (fboundp 'set-buffer-multibyte)
31                    (subrp (symbol-function 'set-buffer-multibyte))))
32           "emu"
33         ""))
34
35 ;; Please specify prefix for ``apel'' [optional]
36 (setq APEL_PREFIX "apel")
37
38 \f
39
40 ;;; @ optional settings
41 ;;;
42
43 (defvar VERSION_SPECIFIC_LISPDIR
44   (install-detect-elisp-directory PREFIX nil 'version-specific))
45
46 (setq EMU_DIR (expand-file-name EMU_PREFIX VERSION_SPECIFIC_LISPDIR))
47
48 ;; It is generated by automatically. Please set variable `PREFIX'.
49 ;; If you don't like default directory tree, please set it.
50 (defvar LISPDIR (install-detect-elisp-directory PREFIX))
51 ;; (setq install-default-elisp-directory "~/lib/emacs/lisp")
52
53 (setq APEL_DIR (expand-file-name APEL_PREFIX LISPDIR))
54 ;; (setq APEL_DIR (expand-file-name APEL_PREFIX VERSION_SPECIFIC_LISPDIR))
55
56 (defvar PACKAGEDIR
57   (if (boundp 'early-packages)
58       (let ((dirs (append (if early-package-load-path
59                               early-packages)
60                           (if late-package-load-path
61                               late-packages)
62                           (if last-package-load-path
63                               last-packages)))
64             dir)
65         (while (not (file-exists-p
66                      (setq dir (car dirs))))
67           (setq dirs (cdr dirs)))
68         dir)))
69
70 ;;; APEL-CFG ends here