changeset 76932:45511805378a

(NON_GNU_CPP): Use associated preprocessor when compiling with Sun Studio on Solaris.
author Glenn Morris <rgm@gnu.org>
date Wed, 04 Apr 2007 02:52:50 +0000
parents b5dbe25c1d72
children aeb076a527db
files configure.in
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure.in	Wed Apr 04 00:44:49 2007 +0000
+++ b/configure.in	Wed Apr 04 02:52:50 2007 +0000
@@ -1030,7 +1030,12 @@
 		;;
       *-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