From: Bruno Haible Date: Mon, 17 Oct 2005 18:06:51 +0000 (+0000) Subject: Tweak the code to make it more reusable. X-Git-Tag: cvs-readonly~2796 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=e282c7cfcac28d1791f5e60f1b42469e0f021fad;p=gnulib.git Tweak the code to make it more reusable. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 4e6008237..4f947dcea 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2005-10-17 Bruno Haible + + * stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so that + it can also be used in a test. + 2005-10-11 Simon Josefsson * md5.m4: Remove call to uint32_t.m4. diff --git a/m4/stdbool.m4 b/m4/stdbool.m4 index 922a00258..dcb579353 100644 --- a/m4/stdbool.m4 +++ b/m4/stdbool.m4 @@ -76,7 +76,8 @@ AC_DEFUN([AC_HEADER_STDBOOL], char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; ], [ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p); ], [ac_cv_header_stdbool_h=yes],