# HG changeset patch # User Bruno Haible # Date 1129572411 0 # Node ID 8e5f43169a9f4651ed53000f30e2b6dc6a1581af # Parent c1766dccfd4fa3979ecc149e41f6189266a72848 Tweak the code to make it more reusable. diff --git a/m4/ChangeLog b/m4/ChangeLog --- 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 --- a/m4/stdbool.m4 +++ b/m4/stdbool.m4 @@ -76,7 +76,8 @@ 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],