From: Akim Demaille Date: Fri, 23 May 2003 13:14:30 +0000 (+0000) Subject: * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an X-Git-Tag: AUTOCONF-2.57a~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=172bea77272907d7d7d0f2c507cd349d9eaced36;p=thirdparty%2Fautoconf.git * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an exit 63, so that we (or Automake's "missing") can tell the difference with a plain failure. * doc/autoconf.texi (Notices): Adjust. --- diff --git a/ChangeLog b/ChangeLog index d5ad75359..c4742bbfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-05-23 Akim Demaille + + * lib/m4sugar/m4sugar.m4 (m4_version_prereq): Failure causes an + exit 63, so that we (or Automake's "missing") can tell the + difference with a plain failure. + * doc/autoconf.texi (Notices): Adjust. + 2003-05-23 Akim Demaille * Makefile.am, bin/Makefile.am, config/Makefile.am, diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 7b4377b97..adec2017e 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -1639,9 +1639,9 @@ scripts. Using them is optional. @acindex{PREREQ} @cindex Version Ensure that a recent enough version of Autoconf is being used. If the -version of Autoconf being used to create @command{configure} is earlier -than @var{version}, print an error message to the standard error output -and do not create @command{configure}. For example: +version of Autoconf being used to create @command{configure} is +earlier than @var{version}, print an error message to the standard +error output and exit with failure (exit status is 63). For example: @example AC_PREREQ(@value{VERSION}) diff --git a/lib/m4sugar/m4sugar.m4 b/lib/m4sugar/m4sugar.m4 index 76aae7d7a..dbb7c388b 100644 --- a/lib/m4sugar/m4sugar.m4 +++ b/lib/m4sugar/m4sugar.m4 @@ -1762,7 +1762,8 @@ m4_include([m4sugar/version.m4]) m4_define([m4_version_prereq], [m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [$1]), -1, [m4_default([$3], - [m4_fatal([Autoconf version $1 or higher is required])])], + [m4_fatal([Autoconf version $1 or higher is required], + 63)])], [$2])[]dnl ])