From 7318db6b80eebdf1878ead5d9bea2e6c9c7105a5 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 4 Apr 2007 02:52:50 +0000 Subject: [PATCH] (NON_GNU_CPP): Use associated preprocessor when compiling with Sun Studio on Solaris. --- configure.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.39.5