On Wednesday, March 16, 2016 17:20:38 Przemek Klosowski wrote:
On 03/16/2016 04:39 PM, Kamil Dudka wrote:
> ldconfig will always pick /usr/lib64/libcurl.so.4 because there can be
> only one file with that name installed at a time.
OK, but how do you determine which one you have on a particular system
someone just handed to you?
libcurl supports run-time introspection of its features where it makes sense:
https://curl.haxx.se/libcurl/c/curl_version_info.html
But in most cases, it should be sufficient to handle error codes that are
returned out of libcurl API in case a requested feature is not supported,
usually CURLE_NOT_BUILT_IN:
https://curl.haxx.se/libcurl/c/libcurl-errors.html#CURLENOTBUILTIN
... which defensively written code should do anyway.
Kamil
> It seems to me that you are using the 'alternatives' pattern without
> actually having the 'alternatives' infrastructure for it.