I tried "./configure --disable-shared --enable-static --prefix=/home/libinterphone_manger/curlout --with-ssl=/lib64" with libssl.so in "/lib64".
However it comes out with "configure: error: /lib64 is a bad --with-ssl prefix!".
I changed "--with-ssl=/lib64" to "--with-libssl-prefix=/lib64", success.
I guess the "-libssl" suffix makes it find the file name "libssl.so", and "-prefix=" represents it's a path where you can find the file after the equal sign.