diff options
author | Glenn Morris <rgm@gnu.org> | 2007-04-04 02:52:50 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-04-04 02:52:50 +0000 |
commit | 20179c19ae04827910714a0dc3df5a1487890b8e (patch) | |
tree | e218a4de14d76f23cb5d2eefd3d3a800cc477bf8 /configure.in | |
parent | 3b6f335b7b15594e54729b41dc90d2cfd55d5c9d (diff) | |
download | emacs-20179c19ae04827910714a0dc3df5a1487890b8e.tar.gz |
(NON_GNU_CPP): Use associated preprocessor when compiling with Sun
Studio on Solaris.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 75f02f7b7de..d68c8aa841d 100644 --- a/configure.in +++ b/configure.in @@ -1030,7 +1030,12 @@ dnl see the `changequote' comment above. ;; *-sunos5* | *-solaris* ) opsys=sol2-6 - NON_GNU_CPP=/usr/ccs/lib/cpp + if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then + ## -Xs prevents spurious whitespace. + NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs" + else + NON_GNU_CPP=/usr/ccs/lib/cpp + fi ;; * ) opsys=bsd4-2 ;; esac |