Closed daitakahashi closed 8 years ago
Thanks. This requires that the --atleast-version
option is available on all platforms and older pkg-config versions. I want to make sure that we don't get a Unknown option --atleast-version
error on older systems.
I downloaded the oldest version of pkg-config available at the freedesktop.org (0.18.1, which released in 2005), and confirmed that the version already has --atleast-version option. So, I think, in practically, all systems with pkg-config support the option.
OK thanks. I did it like this: https://github.com/jeroenooms/openssl/commit/8c341d5d92a35892ea601dfebd8ae28c2c62c489 can you confirm this works for you?
Yes it works fine, thank you very much! (and sorry, that was not the oldest version...weird sorting order... but I think 2005 is old enough)
Thanks this is a good suggestion. While you're at it could you let me know which other options are available in pkg-config 0.18.1? Does it have --exists
?
The option --exists exists at least in pkg-config 0.10.0 released in 2002 or 2003.
The current configure script unconditionally assumes that OSX users use either homebrew's openssl or outdated one. Homebrew is a major packaging system in OSX, though, still alternative systems are available and actively developed (e.g., macports and fink). Those systems also provide well updated openssl, therefore, unconditional reliance on homebrew may result in unnecessarily download of a bottle. Here I propose a simple fix on configure. It checks openssl's version if pkg-config is available. Thank you very much.