From: Eric Blake Date: Wed, 29 Oct 2008 21:44:28 +0000 (-0600) Subject: Mention proper fix for zsh users. X-Git-Tag: v2.63b~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e752d8d90fbf30e34337a7a07b99e5dc45e50e37;p=thirdparty%2Fautoconf.git Mention proper fix for zsh users. * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh version known to work. Suggested by Paolo Bonzini. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index c59bb9472..682b91958 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-10-29 Eric Blake + Mention known zsh bug. + * lib/m4sugar/m4sh.m4 (_AS_DETECT_BETTER_SHELL): Recommend zsh + version known to work. + Suggested by Paolo Bonzini. + Document current beta-quality status. * configure.ac: Reflect fact that change to git-version-gen produces -, but not always a letter, on non-release builds. diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index a9b6aec0f..341a2896f 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -238,14 +238,19 @@ dnl Remove any tests from suggested that are also required dnl Unfortunately, $as_me isn't available here. AS_IF([test x$as_have_required = xno], - [AS_ECHO("m4_text_wrap([This script requires a shell more modern than -all the shells that I found on your system. Please tell] -m4_defn([m4_PACKAGE_BUGREPORT]) -m4_ifset([AC_PACKAGE_BUGREPORT], [m4_if(m4_defn([m4_PACKAGE_BUGREPORT]), -m4_defn([AC_PACKAGE_BUGREPORT]), [], [ and m4_defn([AC_PACKAGE_BUGREPORT])])]) + [AS_ECHO(["$[]0: This script requires a shell more modern than all"]) + AS_ECHO(["$[]0: the shells that I found on your system."]) + if test x${ZSH_VERSION+set} = xset ; then + AS_ECHO(["$[]0: In particular, zsh $ZSH_VERSION has bugs and should"]) + AS_ECHO(["$[]0: be upgraded to zsh 4.3.4 or later."]) + else + AS_ECHO("m4_text_wrap([Please tell ]_m4_defn([m4_PACKAGE_BUGREPORT]) +m4_ifset([AC_PACKAGE_BUGREPORT], [m4_if(_m4_defn([m4_PACKAGE_BUGREPORT]), +_m4_defn([AC_PACKAGE_BUGREPORT]), [], [and _m4_defn([AC_PACKAGE_BUGREPORT])])]) [about your system, including any error possibly output before this message. Then install a modern shell, or manually run the script under such a shell if you do have one.], [$[]0: ], [], [62])") + fi AS_EXIT(1)])]) fi _m4_popdef([AS_EXIT])])# _AS_DETECT_BETTER_SHELL