diff options
| author | Richard M. Stallman | 1996-06-07 22:59:27 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-07 22:59:27 +0000 |
| commit | b4ec679c1eac8651d65824960831d5048321d07a (patch) | |
| tree | 0a8b500d7f1f69ba941a2efdbe23af2f438198b2 | |
| parent | b7089f3c839945ffbb60253b69dba0fac14695ab (diff) | |
| download | emacs-b4ec679c1eac8651d65824960831d5048321d07a.tar.gz emacs-b4ec679c1eac8651d65824960831d5048321d07a.zip | |
(c-macro-preprocessor): New clause for Solaris.
| -rw-r--r-- | lisp/progmodes/cmacexp.el | 10 |
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 @@ | |||
| 3 | ;; Copyright (C) 1992, 1994, 1996 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1992, 1994, 1996 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Francesco Potorti` <pot@cnuce.cnr.it> | 5 | ;; Author: Francesco Potorti` <pot@cnuce.cnr.it> |
| 6 | ;; Version: $Id: cmacexp.el,v 1.24 1996/05/21 14:51:17 kwzh Exp kwzh $ | 6 | ;; Version: $Id: cmacexp.el,v 1.25 1996/05/21 15:42:13 kwzh Exp rms $ |
| 7 | ;; Adapted-By: ESR | 7 | ;; Adapted-By: ESR |
| 8 | ;; Keywords: c | 8 | ;; Keywords: c |
| 9 | 9 | ||
| @@ -98,7 +98,13 @@ | |||
| 98 | 98 | ||
| 99 | (defvar c-macro-preprocessor | 99 | (defvar c-macro-preprocessor |
| 100 | ;; Cannot rely on standard directory on MS-DOS to find CPP. | 100 | ;; Cannot rely on standard directory on MS-DOS to find CPP. |
| 101 | (if (eq system-type 'ms-dos) "cpp -C" "/lib/cpp -C") | 101 | (cond ((eq system-type 'ms-dos) "cpp -C") |
| 102 | ;; Solaris has it in an unusual place. | ||
| 103 | ((and (string-match "^[^-]*-[^-]*-\\(solaris\\|sunos5\\)" | ||
| 104 | system-configuration) | ||
| 105 | (file-exists-p "/opt/SUNWspro/SC3.0.1/bin/acomp")) | ||
| 106 | "/opt/SUNWspro/SC3.0.1/bin/acomp -C -E") | ||
| 107 | (t "/lib/cpp -C")) | ||
| 102 | "The preprocessor used by the cmacexp package. | 108 | "The preprocessor used by the cmacexp package. |
| 103 | 109 | ||
| 104 | If you change this, be sure to preserve the `-C' (don't strip comments) | 110 | If you change this, be sure to preserve the `-C' (don't strip comments) |