summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-07 22:59:27 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-07 22:59:27 +0000
commitf261a73877a88971a6cb74db1576332c8c2fa3cf (patch)
tree92b00b66653975fa9a3dda2a951b89df5ffe91ea /lisp
parent4c1a338554d9baa363253b44e653d38d19588c7b (diff)
downloademacs-f261a73877a88971a6cb74db1576332c8c2fa3cf.tar.gz
(c-macro-preprocessor): New clause for Solaris.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/cmacexp.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/progmodes/cmacexp.el b/lisp/progmodes/cmacexp.el
index bbda4bdc872..f030ade3f67 100644
--- a/lisp/progmodes/cmacexp.el
+++ b/lisp/progmodes/cmacexp.el
@@ -3,7 +3,7 @@
;; Copyright (C) 1992, 1994, 1996 Free Software Foundation, Inc.
;; Author: Francesco Potorti` <pot@cnuce.cnr.it>
-;; Version: $Id: cmacexp.el,v 1.24 1996/05/21 14:51:17 kwzh Exp kwzh $
+;; Version: $Id: cmacexp.el,v 1.25 1996/05/21 15:42:13 kwzh Exp rms $
;; Adapted-By: ESR
;; Keywords: c
@@ -98,7 +98,13 @@
(defvar c-macro-preprocessor
;; Cannot rely on standard directory on MS-DOS to find CPP.
- (if (eq system-type 'ms-dos) "cpp -C" "/lib/cpp -C")
+ (cond ((eq system-type 'ms-dos) "cpp -C")
+ ;; Solaris has it in an unusual place.
+ ((and (string-match "^[^-]*-[^-]*-\\(solaris\\|sunos5\\)"
+ system-configuration)
+ (file-exists-p "/opt/SUNWspro/SC3.0.1/bin/acomp"))
+ "/opt/SUNWspro/SC3.0.1/bin/acomp -C -E")
+ (t "/lib/cpp -C"))
"The preprocessor used by the cmacexp package.
If you change this, be sure to preserve the `-C' (don't strip comments)