let XB_FIND_SONAME define *_FILENAME also for apple
[configure] properly detect if curl was compiled statically with openssl
Merge pull request #5048 from wsnipex/ssl-fix

[configure] properly detect if curl was compiled statically with openssl