  fi
  
  exesuf() {
-@@ -4420,28 +4422,26 @@ enabled ladspa            && { check_header ladspa.h || die "ERROR: ladspa.h hea
+@@ -4429,28 +4431,26 @@ enabled ladspa            && { check_header ladspa.h || die "ERROR: ladspa.h hea
  enabled libiec61883       && require libiec61883 libiec61883/iec61883.h iec61883_cmp_connect -lraw1394 -lavc1394 -lrom1394 -liec61883
  enabled libaacplus        && require "libaacplus >= 2.0.0" aacplus.h aacplusEncOpen -laacplus
  enabled libass            && require_pkg_config libass ass/ass.h ass_library_init

 1 file changed, 12 insertions(+), 15 deletions(-)

diff --git a/configure b/configure
index 1a91e02..a913615 100755
--- a/configure
+++ b/configure
@@ -2804,6 +2804,8 @@ set_default host_cc
 if ! $pkg_config --version >/dev/null 2>&1; then
     warn "$pkg_config not found, library detection may fail."
     pkg_config=false

 enabled libvpx            && {
     enabled libvpx_vp8_decoder && { check_lib2 "vpx/vpx_decoder.h vpx/vp8dx.h" vpx_codec_dec_init_ver -lvpx ||
                                     die "ERROR: libvpx decoder version must be >=0.9.1"; }
@@ -4512,10 +4512,7 @@ enabled opengl            && { check_lib GL/glx.h glXGetProcAddress "-lGL" ||
                                check_lib2 ES2/gl.h glGetError "-isysroot=${sysroot} -Wl,-framework,OpenGLES" ||
                                die "ERROR: opengl not found."
                              }
-enabled openssl           && { check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto ||
-                               check_lib openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
-                               check_lib openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
