* m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
Signed-off-by: Eric Blake <eblake@redhat.com>
2011-07-15 Eric Blake <eblake@redhat.com>
+ ffs: fix m4 prerequisite
+ * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
+
ffs: avoid undefined behavior
* lib/ffs.c (ffs): Provide fallback for non-32-bit int.
* tests/test-ffs.c (naive, main): Avoid signed shifts.
-# ffs.m4 serial 1
+# ffs.m4 serial 2
dnl Copyright (C) 2011 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_DEFUN([gl_FUNC_FFS],
[
+ AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
AC_CHECK_FUNCS_ONCE([ffs])
if test $ac_cv_func_ffs = no; then
HAVE_FFS=0