summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormo <mo>2000-07-17 08:26:31 (GMT)
committermo <mo>2000-07-17 08:26:31 (GMT)
commit247225ff4ff6cee54489ee55dc9911d459e1003d (patch)
treeaac2afa6e405ee5016fcaa2591421a65c7254b76
parentbd777f7b20703de4f0dd0b6b1e9b81073d1c951e (diff)
downloadtcl-247225ff4ff6cee54489ee55dc9911d459e1003d.zip
tcl-247225ff4ff6cee54489ee55dc9911d459e1003d.tar.gz
tcl-247225ff4ff6cee54489ee55dc9911d459e1003d.tar.bz2
Don't set CC=gcc before running AC_PROG_CC if CC is already set.
-rw-r--r--ChangeLog5
-rw-r--r--unix/tcl.m44
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 511a294..bde1de1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-17 Mo DeJong <mdejong@redhat.com>
+
+ * unix/tcl.m4 (SC_ENABLE_GCC): Don't set CC=gcc
+ before running AC_PROG_CC if CC is already set.
+
2000-07-13 André Pönitz <poenitz@mathematik.tu-chemnitz.de>
* doc/lappend.n:
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 8bfded3..2454bd4 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -277,7 +277,9 @@ AC_DEFUN(SC_ENABLE_GCC, [
AC_ARG_ENABLE(gcc, [ --enable-gcc allow use of gcc if available [--disable-gcc]],
[ok=$enableval], [ok=no])
if test "$ok" = "yes"; then
- CC=gcc
+ if test -z "$CC"; then
+ CC=gcc
+ fi
AC_PROG_CC
else
CC=${CC-cc}