]> git.eshelyaron.com Git - emacs.git/commitdiff
(NON_GNU_CPP): Use associated preprocessor when compiling with Sun
authorGlenn Morris <rgm@gnu.org>
Wed, 4 Apr 2007 02:52:50 +0000 (02:52 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 4 Apr 2007 02:52:50 +0000 (02:52 +0000)
Studio on Solaris.

configure.in

index 75f02f7b7de7c20cab5ad35e72637c3dbe69e2ca..d68c8aa841d9843e4c240226d069e4bad176c48b 100644 (file)
@@ -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