From bddd728dec8a28b831c29f4bef84eaaba084c03f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 14 Sep 2001 21:39:01 +0000 Subject: [PATCH] Fix bison version recognition. --- m4/ChangeLog | 6 ++++++ m4/gettext.m4 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 18cc4e657..8161845d2 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,9 @@ +2001-09-13 Bruno Haible + + * gettext.m4 (AM_WITH_NLS): Change version determination of bison, so + that it also works with bison-1.29. + Reported by Karl Berry . + 2001-07-24 Bruno Haible * gettext-0.10.39 released. diff --git a/m4/gettext.m4 b/m4/gettext.m4 index 5ac7c46a6..e4d524cf0 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -243,7 +243,7 @@ return (int) gettext ("")]ifelse([$2], need-ngettext, [ + (int) ngettext ("", "" dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl - ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'` + ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) -- 2.47.2