From 634254cdcf5136652dc851a6e34431c554348ddb Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 15 Jul 2011 14:44:12 -0600 Subject: [PATCH] ffs: fix m4 prerequisite * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults. Signed-off-by: Eric Blake --- ChangeLog | 3 +++ m4/ffs.m4 | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2a67a7e731..49dcd7fceb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2011-07-15 Eric Blake + 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. diff --git a/m4/ffs.m4 b/m4/ffs.m4 index 2a350784a6..12df085943 100644 --- a/m4/ffs.m4 +++ b/m4/ffs.m4 @@ -1,4 +1,4 @@ -# 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, @@ -6,6 +6,7 @@ dnl with or without modifications, as long as this notice is preserved. 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 -- 2.30.2