On Wed, Jun 13, 2012 at 11:32:33AM +0200, Karel Zak wrote:
 
>  More complex (and I hope without false positives) solution:
 
 well... ;-)

> 
>  for decl in $(awk '/define HAVE_DECL_.*ac_have_decl/ { print $2 }' 
> configure); do 
>     grep -rnE '[[:blank:]]*#[[:blank:]]*if(ndef|def)[[:blank:]]*'$decl *; 
> done | sort -u
> 
>  configure:45306:#ifndef HAVE_DECL_STRNDUP
>  gnulib/lib/argp-parse.c:882:#ifdef HAVE_DECL_PROGRAM_INVOCATION_NAME
>  gnulib/lib/argp-parse.c:886:#ifdef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME

 this seems like a bug

>  gnulib/lib/error.c:103:#  ifndef HAVE_DECL_STRERROR_R
>  gnulib/lib/fpending.h:24:#ifndef HAVE_DECL___FPENDING
>  gnulib/lib/strtoimax.c:31:# ifndef HAVE_DECL_STRTOULL
>  gnulib/lib/strtoimax.c:40:# ifndef HAVE_DECL_STRTOLL
>  gnulib/m4/strndup.m4:27:#ifndef HAVE_DECL_STRNDUP
>  lib/error.c:103:#  ifndef HAVE_DECL_STRERROR_R
>  lib/fpending.h:24:#ifndef HAVE_DECL___FPENDING
>  lib/strtoimax.c:31:# ifndef HAVE_DECL_STRTOULL
>  lib/strtoimax.c:40:# ifndef HAVE_DECL_STRTOLL

 and this like false positives (there is #if before #ifndef)

>  m4/strndup.m4:27:#ifndef HAVE_DECL_STRNDUP

 not sure

    Karel

-- 
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com

Reply via email to