Fix the (AC|IT)_PROG_INTLTOOL support for both places where we grep for it
authorRodney Dawes <dobey@novell.com>
Sat, 22 Jan 2005 15:22:30 +0000 (15:22 +0000)
committerRodney Dawes <dobey@src.gnome.org>
Sat, 22 Jan 2005 15:22:30 +0000 (15:22 +0000)
2005-01-22  Rodney Dawes  <dobey@novell.com>

* gnome-autogen.sh: Fix the (AC|IT)_PROG_INTLTOOL support for
both places where we grep for it
(version_check): If we are checking for automake = 1.4, then make
sure we error out with that error when we find it, and not >= 1.4
since we don't actually check for >= 1.4

Fixes #129903

svn path=/trunk/; revision=3487

macros2/ChangeLog
macros2/gnome-autogen.sh

index cf90c24..5f34369 100644 (file)
@@ -1,7 +1,17 @@
+2005-01-22  Rodney Dawes  <dobey@novell.com>
+
+       * gnome-autogen.sh: Fix the (AC|IT)_PROG_INTLTOOL support for
+       both places where we grep for it
+       (version_check): If we are checking for automake = 1.4, then make
+       sure we error out with that error when we find it, and not >= 1.4
+       since we don't actually check for >= 1.4
+
+       Fixes #129903
+
 2004-11-24  Mariano Suárez-Alvarez <mariano@gnome.org>
 
-       * gnome-autogen.sh: grep wants basic regexps, not extended ones: fix the
-       regular expression for INTLTOOL.
+       * gnome-autogen.sh: grep wants basic regexps, not extended ones:
+       fix the regular expression for INTLTOOL.
 
 2004-11-24  Rodney Dawes  <dobey@novell.com>
 
index e83c4e4..ca97e75 100644 (file)
@@ -77,7 +77,12 @@ version_check() {
        return 0
     fi
 
-    printbold "checking for $vc_package >= $vc_min_version..."
+    if test "x$vc_package" = "xautomake" -a "x$vc_min_version" = "x1.4"; then
+       vc_comparator="="
+    else
+       vc_comparator=">="
+    fi
+    printbold "checking for $vc_package $vc_comparator $vc_min_version..."
     for vc_checkprog in $vc_checkprogs; do
        echo $ECHO_N "  testing $vc_checkprog... "
        if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then
@@ -97,7 +102,7 @@ version_check() {
        fi
     done
     if [ "$vc_status" != 0 ]; then
-       printerr "***Error***: You must have $vc_package >= $vc_min_version installed"
+       printerr "***Error***: You must have $vc_package $vc_comparator $vc_min_version installed"
        printerr "  to build $PKG_NAME.  Download the appropriate package for"
        printerr "  from your distribution or get the source tarball at"
         printerr "    $vc_source"
@@ -340,7 +345,7 @@ for configure_ac in $configure_files; do
           fi
        fi
 
-       if grep "^AC_PROG_INTLTOOL" $basename >/dev/null; then
+       if grep "^\(AC\|IT\)_PROG_INTLTOOL" $basename >/dev/null; then
            printbold "Running $INTLTOOLIZE..."
            $INTLTOOLIZE --force --copy --automake || exit 1
        fi