comparison lisp/progmodes/cmacexp.el @ 39083:ed83c694507e

(c-macro-preprocessor): Use "gcc -E" for MS-DOS, since cpp might not be available.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 02 Sep 2001 17:27:00 +0000
parents b174db545cfd
children 695cf19ef79e d7ddb3e565de
comparison
equal deleted inserted replaced
39082:b2693c0914e4 39083:ed83c694507e
106 "*Non-nil makes `c-macro-expand' prompt for preprocessor arguments." 106 "*Non-nil makes `c-macro-expand' prompt for preprocessor arguments."
107 :type 'boolean 107 :type 'boolean
108 :group 'c-macro) 108 :group 'c-macro)
109 109
110 (defcustom c-macro-preprocessor 110 (defcustom c-macro-preprocessor
111 ;; Cannot rely on standard directory on MS-DOS to find CPP. 111 ;; Cannot rely on standard directory on MS-DOS to find CPP. In
112 (cond ((eq system-type 'ms-dos) "cpp -C") 112 ;; fact, cannot rely on having cpp.exe, either, in latest GCC
113 ;; versions.
114 (cond ((eq system-type 'ms-dos) "gcc -E -C -o - -")
113 ;; Solaris has it in an unusual place. 115 ;; Solaris has it in an unusual place.
114 ((and (string-match "^[^-]*-[^-]*-\\(solaris\\|sunos5\\)" 116 ((and (string-match "^[^-]*-[^-]*-\\(solaris\\|sunos5\\)"
115 system-configuration) 117 system-configuration)
116 (file-exists-p "/opt/SUNWspro/SC3.0.1/bin/acomp")) 118 (file-exists-p "/opt/SUNWspro/SC3.0.1/bin/acomp"))
117 "/opt/SUNWspro/SC3.0.1/bin/acomp -C -E") 119 "/opt/SUNWspro/SC3.0.1/bin/acomp -C -E")