(install-prefix): Check whether `system-configuration-options' is
authorshuhei-k <shuhei-k>
Mon, 5 Apr 1999 14:14:19 +0000 (14:14 +0000)
committershuhei-k <shuhei-k>
Mon, 5 Apr 1999 14:14:19 +0000 (14:14 +0000)
defined or not before using it.

install.el

index f2f131e..835a47e 100644 (file)
 ;;; @ detect install path
 ;;;
 
+;; install to shared directory (maybe "/usr/local")
 (defvar install-prefix
   (if (or running-emacs-18 running-xemacs
-         (string= system-configuration-options "NT")) ; for Meadow
+         (and (boundp 'system-configuration-options) ; 19.29 or later
+              (string= system-configuration-options "NT"))) ; for Meadow
       (expand-file-name "../../.." exec-directory)
-    (expand-file-name "../../../.." data-directory)
-    )) ; install to shared directory (maybe "/usr/local")
+    (expand-file-name "../../../.." data-directory)))
 
 (defvar install-elisp-prefix
   (if (>= emacs-major-version 19)