aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-07-25 15:16:36 +0000
committerIan Lance Taylor <ian@airs.com>1994-07-25 15:16:36 +0000
commit866cdf6cf67c144170f61bb60320d399dc1589b9 (patch)
tree8e31061eb82d3a1ca376721c60d5ebf689303515
parentdedd81f1590dbc21aba6446e67bf9a1ef2fce674 (diff)
downloadgdb-866cdf6cf67c144170f61bb60320d399dc1589b9.zip
gdb-866cdf6cf67c144170f61bb60320d399dc1589b9.tar.gz
gdb-866cdf6cf67c144170f61bb60320d399dc1589b9.tar.bz2
* configure.in: Warn about use of /usr/ucb/cc on Solaris. From
Bill Cox <bill@cygnus.com>.
-rw-r--r--ChangeLog5
-rw-r--r--configure.in27
2 files changed, 32 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3b9b6e0..acc0fa9 100644
--- 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.
diff --git a/configure.in b/configure.in
index f8dd1da..0f163d5 100644
--- a/configure.in
+++ b/configure.in
@@ -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