From: Paul Eggert Date: Thu, 26 Oct 2006 19:30:32 +0000 (+0000) Subject: * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0, X-Git-Tag: AUTOCONF-2.61~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6be421d528d21f9a59fb31251fef78dcb5d054d;p=thirdparty%2Fautoconf.git * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0, since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build 5363) simply issues a warning when dividing by zero at compile time. Problem reported by Elias Pipping. --- diff --git a/ChangeLog b/ChangeLog index d44f3fe6..fd10f3e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-10-26 Paul Eggert + + * tests/base.at (AC_COMPUTE_INT): Test **0** rather than 1 / 0, + since powerpc-apple-darwin8-gcc-4.0.1 (Apple Computer, Inc. build + 5363) simply issues a warning when dividing by zero at compile + time. Problem reported by Elias Pipping. + 2006-10-26 Eric Blake * THANKS: Update. diff --git a/tests/base.at b/tests/base.at index 0311a4c9..1927e4b7 100644 --- a/tests/base.at +++ b/tests/base.at @@ -230,12 +230,12 @@ AT_SETUP([AC_COMPUTE_INT]) AT_DATA([configure.ac], [[AC_INIT -AC_COMPUTE_INT([divide_by_zero], - [1 / 0], +AC_COMPUTE_INT([invalid_expression], + [**0**], [], - [divide_by_zero=failed]) -test "$divide_by_zero" = failed || - AC_MSG_ERROR([1 / 0 did not fail]) + [invalid_expression=failed]) +test "$invalid_expression" = failed || + AC_MSG_ERROR([**0** evaluated to $invalid_expression instead of failing]) ]]) AT_CHECK_AUTOCONF