diff options
author | Eric Blake <eblake@redhat.com> | 2012-07-13 11:50:59 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-07-13 13:38:06 -0600 |
commit | 70ab74b3b42a82654b16bc75242bf9b96daa9794 (patch) | |
tree | f586cbce9c47ec03092374b5ba000a01cb0a8f02 /cfg.mk | |
parent | f74aa2c36b8cf96b5c6de3c25f2e9aed72f3e1d2 (diff) | |
download | gnulib-70ab74b3b42a82654b16bc75242bf9b96daa9794.tar.gz |
argp: make HAVE_DECL usage consistent
Autoconf guarantees that AC_CHECK_DECLS always defines the
corresponding HAVE_DECL_*. But our hand-coded use of AC_CHECK_DECL
did not define the macro to 0, leading to a false positive complaint:
https://lists.gnu.org/archive/html/coreutils/2012-06/msg00037.html
By sticking to conventions, we avoid the false positive.
* lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
macros, not whether they are defined.
* m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
convention with other declaration checks.
Reported by Karel Zak, with suggestions from Paul Eggert.
Diffstat (limited to 'cfg.mk')
0 files changed, 0 insertions, 0 deletions