1--- a/configure
2+++ b/configure
3@@ -6143,53 +6143,8 @@ rm -f confcache
4 #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
5 #AC_CHECK_HEADERS(zlib.h)
6
7-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
8-$as_echo_n "checking for path to OpenSSL... " >&6; }
9-
10-
11-# Check whether --with-openssl was given.
12-if test "${with_openssl+set}" = set; then :
13- withval=$with_openssl; with_openssl_path=$withval
14-else
15- with_openssl_path=auto
16-fi
17-
18-
19-
20-cf_openssl_basedir=""
21-if test "$with_openssl_path" != "auto"; then
22- cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
23-else
24- for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
25- if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
26- cf_openssl_basedir="${dirs}"
27- break
28- fi
29- done
30- unset dirs
31-fi
32-if test ! -z "$cf_openssl_basedir"; then
33- if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
34- SSL_INCLUDES="-I${cf_openssl_basedir}/include"
35- SSL_LIBS="-L${cf_openssl_basedir}/lib"
36- else
37- cf_openssl_basedir=""
38- fi
39-else
40- if test -f "/usr/include/openssl/opensslv.h" ; then
41- cf_openssl_basedir="/usr"
42- fi
43-fi
44-
45-if test ! -z "$cf_openssl_basedir"; then
46- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
47-$as_echo "$cf_openssl_basedir" >&6; }
48-else
49- { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
50-$as_echo "not found" >&6; }
51- as_fn_error 1 "OpenSSL is required." "$LINENO" 5
52-fi
53-unset cf_openssl_basedir
54+SSL_INCLUDES="-I@openssl.dev@/include"
55+SSL_LIBS="-L@openssl-lib@/lib"
56
57 save_CXX="$CXX"
58 CXX="$CXX $SSL_INCLUDES"