From: Pavel Roskin Date: Sat, 3 Feb 2001 19:27:14 +0000 (+0000) Subject: * tests/base.at (AC_TRY_COMMAND): Add a colon between "then" and X-Git-Tag: autoconf-2.50~159 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9990450cc79e80241474ebae965eafb2bede183;p=thirdparty%2Fautoconf.git * tests/base.at (AC_TRY_COMMAND): Add a colon between "then" and "else". Separate commands inside AC_TRY_COMMAND with semicolons. From Nicolas Joly. --- diff --git a/ChangeLog b/ChangeLog index ab88e4771..d90e46dc4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-02-03 Pavel Roskin + + * tests/base.at (AC_TRY_COMMAND): Add a colon between "then" and + "else". Separate commands inside AC_TRY_COMMAND with semicolons. + From Nicolas Joly. + 2001-02-03 Akim Demaille * acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Removed, dead code. diff --git a/tests/base.at b/tests/base.at index 3fc074ae8..a36f6c65d 100644 --- a/tests/base.at +++ b/tests/base.at @@ -226,15 +226,15 @@ AT_SETUP([AC_TRY_*]) AT_DATA([configure.ac], [[AC_INIT -if AC_TRY_COMMAND([(echo "The Cat in the Hat" +if AC_TRY_COMMAND([(echo "The Cat in the Hat"; echo "The Hat in the Cat" >&2) | grep ^The\ Cat\ in\ the\ Hat\$ >/dev/null]); then - # Cool! + : else AC_MSG_ERROR([Didn't see the Cat in the Hat!]) fi -if AC_TRY_COMMAND([(echo "The Cat in the Hat" +if AC_TRY_COMMAND([(echo "The Cat in the Hat"; echo "The Hat in the Cat" >&2) | grep ^The\ Hat\ in\ the\ Cat\$ >/dev/null]); then AC_MSG_ERROR([Saw the Hat in the Cat!])