diff options
author | rjohnson <rjohnson@noemail.net> | 1999-01-29 00:32:01 (GMT) |
---|---|---|
committer | rjohnson <rjohnson@noemail.net> | 1999-01-29 00:32:01 (GMT) |
commit | 46edba11d506f40fd078414bd8d82c8f2087a45d (patch) | |
tree | 7129d5e2da9bb006379b66238a2cf56ba27646c0 /unix | |
parent | 4525ddaf30c1e94e9b747153381df1c5b759365b (diff) | |
download | tcl-46edba11d506f40fd078414bd8d82c8f2087a45d.zip tcl-46edba11d506f40fd078414bd8d82c8f2087a45d.tar.gz tcl-46edba11d506f40fd078414bd8d82c8f2087a45d.tar.bz2 |
Added -pipe option if gcc is being used.
FossilOrigin-Name: 42c3f8c60055c1b47da8bc16ed342fd9abff514d
Diffstat (limited to 'unix')
-rw-r--r-- | unix/configure.in | 19 |
1 files changed, 18 insertions, 1 deletions
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. |