Fixed 3+ libtool version numbers parsing such as '1.4.2'.
authorshort <>
Fri, 15 Aug 2003 18:39:33 +0000 (18:39 +0000)
committershort <>
Fri, 15 Aug 2003 18:39:33 +0000 (18:39 +0000)
autogen.pl

index 805292c..a95974a 100755 (executable)
@@ -72,7 +72,11 @@ AutoGen->run(
                                close F;
                                my $libtoolize_version=($libtoolize_out=~m#([\d.]+)#)[0];
                                confess "libtoolize(1) version not found in its output" if !$libtoolize_version;
-                               do { confess "'libtool' package version $_ or higher required" if $libtoolize_version<$_; } for (1.5);
+                               for (1.5) {
+                                               confess "'libtool' package version $_ or higher required"
+                                                               # Do not take 3rd+ numbers as it would not be a number
+                                                               if ($libtoolize_version=~/^(\d+[.]\d+)/)[0]<$_;
+                                               }
                                1;
                                },
                );