On Mon, 3 Jul 2000 [EMAIL PROTECTED] wrote:

> On Mon, 3 Jul 2000, Mo DeJong wrote:
> 
> > Hi all.
> 
> Hi.
> 
> > I have noticed that there are a number of packages that
> > include extra code to test for and enable the -pipe
> > option to gcc. I think it might be a good idea to add
> > the -pipe option to the default CFLAGS if gcc is detected and
> > the -pipe option is supported. What do you think?
> 
> Just yesterday I set out to write my own. Could you be so kind as to point
> me to a couple of existing versions? Thanks.


Sure, but I would rather see this in autoconf :)

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

Mo DeJong
Red Hat Inc

Reply via email to