* configure.in: Warn about use of /usr/ucb/cc on Solaris. From
authorIan Lance Taylor <ian@airs.com>
Mon, 25 Jul 1994 15:16:36 +0000 (15:16 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 25 Jul 1994 15:16:36 +0000 (15:16 +0000)
Bill Cox <bill@cygnus.com>.

ChangeLog
configure.in

index 3b9b6e0a547d3029a9f3f77c11aa626346dbf6f7..acc0fa9adbafc23d76f42665f572d88f3332d0e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 25 11:10:06 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * configure.in: Warn about use of /usr/ucb/cc on Solaris.  From
+       Bill Cox <bill@cygnus.com>.
+
 Sat Jul 23 12:19:46 1994  Per Bothner  (bothner@kalessin.cygnus.com)
 
        * config.guess:  Recognize ISC.  Patch from kwzh@gnu.ai.mit.edu.
index f8dd1daeeae726b3223f997e9af072a83797c8a5..0f163d57e004d710572f3bcb2a5c70f320fc53e9 100644 (file)
@@ -122,6 +122,33 @@ case "${host}" in
 esac
 fi
 
+# The Solaris /usr/ucb/cc compiler does not appear to work.
+case "${host}" in
+  sparc-sun-solaris2*)
+      if [ "`/usr/bin/which ${CC-cc}`" = "/usr/ucb/cc" ] ; then
+          could_use=
+          [ -d /opt/SUNWspro/bin ] && could_use="/opt/SUNWspro/bin"
+          if [ -d /opt/cygnus/bin ] ; then
+              if [ "$could_use" == "" ] ; then
+                  could_use="/opt/cygnus/bin"
+              else
+                  could_use="$could_use or /opt/cygnus/bin"
+              fi
+          fi
+        if [ "$could_use" = "" ] ; then
+            echo "Warning: compilation may fail because you're using"
+            echo "/usr/ucb/cc.  You should change your PATH or CC "
+            echo "variable and rerun configure."
+        else
+            echo "Warning: compilation may fail because you're using"
+            echo "/usr/ucb/cc, when you should use the C compiler from"
+            echo "$could_use.  You should change your"
+            echo "PATH or CC variable and rerun configure."
+        fi
+      fi
+  ;;
+esac
+
 # per-target:
 
 case "${target}" in