[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AS_VERSION_COMPARE
From: |
Derek Price |
Subject: |
Re: AS_VERSION_COMPARE |
Date: |
Mon, 20 Jun 2005 10:43:29 -0400 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
Paul Eggert wrote:
>I installed the following; would you like to give it a try?
>
>2005-06-16 Paul Eggert <address@hidden>
>
> * lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE): New macro.
> (AS_VERSION_COMPARE): New macro. The API is taken from CVS,
> but the implementation is entirely different and is designed
> to be compatible with glibc strverscmp.
> * tests/m4sh.at (AS_VERSION_COMPARE): New test.
>
>
I replaced the internal ASX_VERSION_COMPARE in CVS with this new
function and it appears to do the trick with a simple 1.2.2 > 1.2.1.2
comparison for out zlib. It looks like your tests will cover more
complex cases. I won't install this in CVS permanently until
AS_VERSION_COMPARE ships with an official Autoconf release. Thanks!
Regards,
Derek