strndup: fix m4 usage error
authorEric Blake <eblake@redhat.com>
Fri, 13 Jul 2012 17:43:40 +0000 (11:43 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 13 Jul 2012 17:46:07 +0000 (11:46 -0600)
commit4f96d96883807d8bbffc4695e5a05e96a87c4342
treee4467f406aefef099c95e4ebce1ca7585a923fdc
parentf344d84d02922ae77f6ec46ebce3bed95dc0f02c
strndup: fix m4 usage error

Autoconf guarantees that AC_CHECK_DECLS_ONCE always defines the
corresponding HAVE_DECL_*, so checking #ifndef HAVE_DECL_* is bogus.
https://lists.gnu.org/archive/html/coreutils/2012-06/msg00037.html

* m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
defined, to either 0 or 1.
Reported by Karel Zak.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
m4/strndup.m4