summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-04-04 02:52:50 +0000
committerGlenn Morris <rgm@gnu.org>2007-04-04 02:52:50 +0000
commit20179c19ae04827910714a0dc3df5a1487890b8e (patch)
treee218a4de14d76f23cb5d2eefd3d3a800cc477bf8 /configure.in
parent3b6f335b7b15594e54729b41dc90d2cfd55d5c9d (diff)
downloademacs-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.in7
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