From c628f708442b1e2da4a6332141c28238911cb9c8 Mon Sep 17 00:00:00 2001 From: rjohnson Date: Fri, 29 Jan 1999 00:32:29 +0000 Subject: Added -pipe option if gcc is being used. --- changes | 4 +++- unix/configure.in | 19 ++++++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/changes b/changes index 289b112..ff7dfaf 100644 --- a/changes +++ b/changes @@ -2,7 +2,7 @@ This file summarizes all changes made to Tk since version 1.0 was released on March 13, 1991. Changes that aren't backward compatible are marked specially. -RCS: @(#) $Id: changes,v 1.28 1999/01/04 19:25:26 rjohnson Exp $ +RCS: @(#) $Id: changes,v 1.29 1999/01/29 00:32:29 rjohnson Exp $ 3/16/91 (bug fix) Modified tkWindow.c to remove Tk's Tcl commands from the interpreter when the main window is deleted (otherwise there will @@ -4286,6 +4286,8 @@ with MacOS 8.1 or later. (JI) ----------------- Released 8.0.4, 11/20/98 ----------------------- +1/28/99 (configure change) Now support -pipe option on gcc. (RJ) + ---------------------------------------------------------- Changes for Tk 8.0 go above this line. Changes for Tk 8.1 go below this line. 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. -- cgit v0.12