Re: Library version thru autoconf ?

2009-02-16 Thread Ralf Wildenhues
Hello Sébastien, Warren, all, On Fri, 2009-02-13 at 11:09 -0700, Warren Young wrote: Sébastien Le Roux wrote: I wonder if there is a way (a macro ?) to obtain the version of a library. Maybe, but the Autoconf Way is to test for features, not versions. A couple of useful replies

Library version thru autoconf ?

2009-02-13 Thread Sébastien Le Roux
Hello all autoconf users, I wonder if there is a way (a macro ?) to obtain the version of a library. ie. the library has been found by and the results of the check would be to send back the version of the library: *AC_CHECK_LIB* (library, function, [action-if-found], [action-if-not-found],

Re: Library version thru autoconf ?

2009-02-13 Thread Warren Young
Sébastien Le Roux wrote: I wonder if there is a way (a macro ?) to obtain the version of a library. Maybe, but the Autoconf Way is to test for features, not versions. Take the simple case, only two supported versions of a library, old and new. You write a single autoconf test that tries to