From: Eric Blake Date: Fri, 15 Jul 2011 20:44:12 +0000 (-0600) Subject: ffs: fix m4 prerequisite X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=634254cdcf5136652dc851a6e34431c554348ddb;p=pspp ffs: fix m4 prerequisite * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults. Signed-off-by: Eric Blake --- 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