  enabled libopencv         && require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader
  enabled libopenjpeg       && { check_lib openjpeg-1.5/openjpeg.h opj_version -lopenjpeg -DOPJ_STATIC ||
                                 check_lib openjpeg.h opj_version -lopenjpeg -DOPJ_STATIC ||
-@@ -4587,11 +4589,11 @@ enabled libschroedinger   && require_pkg_config schroedinger-1.0 schroedinger/sc
+@@ -4590,11 +4592,11 @@ enabled libschroedinger   && require_pkg_config schroedinger-1.0 schroedinger/sc
  enabled libshine          && require_pkg_config shine shine/layer3.h shine_encode_buffer
  enabled libsoxr           && require libsoxr soxr.h soxr_create -lsoxr
  enabled libssh            && require_pkg_config libssh libssh/sftp.h sftp_init

-                               check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
-                               die "ERROR: openssl not found"; }
+enabled openssl           && require_pkg_config openssl openssl/ssl.h SSL_library_init
 
 if enabled gnutls; then
     { check_lib nettle/bignum.h nettle_mpz_get_str_256 -lnettle -lhogweed -lgmp && enable nettle; } ||
-- 
1.8.5


 fi
 
 exesuf() {
@@ -4564,20 +4566,20 @@ enabled libcelt           && require libcelt celt/celt.h celt_decode -lcelt0 &&
                                die "ERROR: libcelt must be installed and version must be >= 0.11.0."; }
 enabled libcaca           && require_pkg_config caca caca.h caca_create_canvas
 enabled libfaac           && require2 libfaac "stdint.h faac.h" faacEncGetVersion -lfaac
