diff --git a/ncat/configure b/ncat/configure index 013bc7237..6a136c8b6 100755 --- a/ncat/configure +++ b/ncat/configure @@ -4690,7 +4690,7 @@ if ${ac_cv_lib_ssl_SSL_new+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-lssl $LIBS" +LIBS="-lssl -lcrypto $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ diff --git a/ncat/configure.ac b/ncat/configure.ac index a3afade0a..dcccf0352 100644 --- a/ncat/configure.ac +++ b/ncat/configure.ac @@ -97,7 +97,8 @@ if test "$use_openssl" = "yes" -a -z "$specialssldir" ; then [ use_openssl="yes"], [ use_openssl="no" AC_MSG_WARN([Failed to find libssl so OpenSSL will not be used. -If it is installed you can try the --with-openssl=DIR argument]) ]) +If it is installed you can try the --with-openssl=DIR argument]) ], + [ -lcrypto ]) fi fi