summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorrjohnson <rjohnson@noemail.net>1999-01-29 00:32:29 (GMT)
committerrjohnson <rjohnson@noemail.net>1999-01-29 00:32:29 (GMT)
commit634d136b76728ec51778d7f9180e7018e63d34d3 (patch)
tree4225b0fa7cfca0bd345a5b59fb0845a7e4be928b /unix
parent2f8dc5c5df5a36b6738cbc400429373023afdd45 (diff)
downloadtk-634d136b76728ec51778d7f9180e7018e63d34d3.zip
tk-634d136b76728ec51778d7f9180e7018e63d34d3.tar.gz
tk-634d136b76728ec51778d7f9180e7018e63d34d3.tar.bz2
Added -pipe option if gcc is being used.
FossilOrigin-Name: cc765dd9f3ee05d1108c8929093ee0824c752ee0
Diffstat (limited to 'unix')
-rw-r--r--unix/configure.in19
1 files changed, 18 insertions, 1 deletions
diff --git a/unix/configure.in b/unix/configure.in
index e7aac88..3546419 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tk installation
dnl to configure the system for the local environment.
AC_INIT(../generic/tk.h)
-# RCS: @(#) $Id: configure.in,v 1.24 1999/01/04 19:25:27 rjohnson Exp $
+# RCS: @(#) $Id: configure.in,v 1.25 1999/01/29 00:32:40 rjohnson Exp $
TK_VERSION=8.0
TK_MAJOR_VERSION=8
@@ -41,6 +41,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
+
#--------------------------------------------------------------------
# See if there was a command-line option for where Tcl is; if
# not, assume that its top-level directory is a sibling of ours.