c - Checking library version of shared library (so-file) in autoconf -
libraries typically have package/release version library version. these have different semantics.
is there standard way check availability of library given library version using autoconf, i.e., macro in configure.ac?
things can done, bad in opinion (correct me if wrong):
- rely on name of postfix of so-file. weak verification.
- add artificial function in each version of library , check in standard autoconf way. ugly , assumes build library.
- embed lib version in header file, check matches grep-ish tricks, , assume matches version in lib. risk of mismatch between header file , library , assumes build library.
what want solution inspects actual library version embedded in library itself. feel stupid, have googled quite lot , not find anything.
Comments
Post a Comment