On Sat, 2006-03-18 at 11:21 +0100, Loïc Minier wrote:
> tags #342864 + confirmed upstream patch
> stop
> 
>         Hi,
> 
> On Sun, Dec 11, 2005, Robert Collins wrote:
> > The AM_PATH_CHECK macro in 0.9.3 fails to build if -Werror -g -O2 is
> > used as the CFLAGS during autoconf
> 
>  Indeed.
> 
> > Note that all that is needed is to add
> > #if HAVE_STRING_H
> > #include <string.h>
> > #endif
> > and it should work fine.
> 
>  Hmm, I think it would be cleaner to simply remove all #includes and
>  replace them with AC_INCLUDES_DEFAULT([]).
> 
>  Robert Lemmen couldn't reproduce the bug, here's how:
>     cat <<EOF > configure.ac
> AC_INIT(test, 0.0)
> AC_PREREQ(2.52)
> AM_PATH_CHECK
> EOF
>     aclocal-1.9
>     autoconf
>     ./configure CFLAGS="-Werror"

CFLAGS="-Werror" may not have optimisations enabled in gcc -> many
warnings are disabled. Can you reproduce with CFLAGS="-Werror -O2" ?

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to