Automake version issue in enchant release-2-2-2

From: Kathiravelu Pradeeban <kk.pradeeban_at_gmail.com>
Date: Sat Jun 11 2011 - 09:02:45 CEST

Hi Dom and others,
In the latest stable release of Enchant
(http://svn.abisource.com/enchant/tags/release-2-2-2/), the version
check of enchant needs a fix to make it work with automake-1.10+.

pradeeban@pradeeban:~/programs/abiword/enchant/release-2-2-2$ sh autogen.sh
automake (GNU automake) 1.11.1
Error: you need automake 1.4 or later. Please upgrade.

Is it possible to quickly apply the fix given below (borrowed from the
autogen.sh of the enchant trunk) to the tags of the stable releases,
as most of the devs will be trying to build the tag releases with the
later versions of automake? Let me know if there are some better
alternatives.

Index: autogen.sh
===================================================================
--- autogen.sh (revision 29810)
+++ autogen.sh (working copy)
@@ -10,7 +10,7 @@

 rm -f autogen.err

-automake --version | perl -ne 'if (/\(GNU automake\) ([0-9].[0-9])/)
{print; if ($1 < 1.4) {exit 1;}}'
+automake --version | perl -ne 'if (/\(GNU automake\)
(([0-9]+).([0-9]+))/) {print; if ($2 < 1 || ($2 == 1 && $3 < 4)) {exit
1;}}'

 if [ $? -ne 0 ]; then
     echo "Error: you need automake 1.4 or later. Please upgrade."

Thank you.
Regards,
Pradeeban.

-- 
Kathiravelu Pradeeban.
Software Engineer.
WSO2 Inc.
Blog: [Llovizna] http://kkpradeeban.blogspot.com/
Received on Sat Jun 11 09:03:14 2011

This archive was generated by hypermail 2.1.8 : Sat Jun 11 2011 - 09:03:15 CEST