summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrjohnson <rjohnson>1999-01-29 00:32:01 (GMT)
committerrjohnson <rjohnson>1999-01-29 00:32:01 (GMT)
commit141681c541737f4d78813e7c225d7c76ba2deabf (patch)
tree7129d5e2da9bb006379b66238a2cf56ba27646c0
parent6d0c27b1c6b1874acc81b2aacfe702cd73bd1f09 (diff)
downloadtcl-141681c541737f4d78813e7c225d7c76ba2deabf.zip
tcl-141681c541737f4d78813e7c225d7c76ba2deabf.tar.gz
tcl-141681c541737f4d78813e7c225d7c76ba2deabf.tar.bz2
Added -pipe option if gcc is being used.
-rw-r--r--changes4
-rw-r--r--unix/configure.in19
2 files changed, 21 insertions, 2 deletions
diff --git a/changes b/changes
index 06796b8..87f76ee 100644
--- a/changes
+++ b/changes
@@ -1,6 +1,6 @@
Recent user-visible changes to Tcl:
-RCS: @(#) $Id: changes,v 1.38 1999/01/12 02:50:33 rjohnson Exp $
+RCS: @(#) $Id: changes,v 1.39 1999/01/29 00:32:14 rjohnson Exp $
1. No more [command1] [command2] construct for grouping multiple
commands on a single command line.
@@ -3695,3 +3695,5 @@ Thanks to Kevin Kenny for this fix. (SS)
1/11/98 (bug fix) On HP, "info sharedlibextension" was returning
empty string on static apps. It now always returns ".sl". (RJ)
+
+1/28/99 (configure change) Now support -pipe option on gcc. (RJ)
diff --git a/unix/configure.in b/unix/configure.in
index 0d47b62..0f7d6aa 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -2,7 +2,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tcl installation
dnl to configure the system for the local environment.
AC_INIT(../generic/tcl.h)
-# RCS: @(#) $Id: configure.in,v 1.24 1999/01/12 02:29:33 rjohnson Exp $
+# RCS: @(#) $Id: configure.in,v 1.25 1999/01/29 00:32:01 rjohnson Exp $
TCL_VERSION=8.0
TCL_MAJOR_VERSION=8
@@ -36,6 +36,23 @@ else
CFLAGS_WARNING=""
fi
+#------------------------------------------------------------------------------
+# If we're using GCC, see if the compiler understands -pipe. If so, use it.
+# It makes compiling go faster. (This is only a performance feature.)
+#------------------------------------------------------------------------------
+
+if test -z "$no_pipe"; then
+if test -n "$GCC"; then
+ AC_MSG_CHECKING([if the compiler understands -pipe])
+ OLDCC="$CC"
+ CC="$CC -pipe"
+ AC_TRY_COMPILE(,,
+ AC_MSG_RESULT(yes),
+ CC="$OLDCC"
+ AC_MSG_RESULT(no))
+fi
+fi
+
#--------------------------------------------------------------------
# Supply substitutes for missing POSIX library procedures, or
# set flags so Tcl uses alternate procedures.