From: Nick Mathewson Date: Wed, 28 Apr 2010 18:56:51 +0000 (-0400) Subject: Fix compilation when openssl support is disabled X-Git-Tag: release-2.0.5-beta~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40c301b76c81257fdf1275eb4cc618b1124391a7;p=libevent Fix compilation when openssl support is disabled Previously, we'd fail if OpenSSL was present but openssl support was disabled. Now we don't. --- diff --git a/configure.in b/configure.in index e2177eff..e65633fb 100644 --- a/configure.in +++ b/configure.in @@ -73,6 +73,7 @@ AC_SUBST(ZLIB_LIBS) AM_CONDITIONAL(ZLIB_REGRESS, [test "$have_zlib" = "yes"]) dnl See if we have openssl. This doesn't go in LIBS either. +if test "$enable_openssl" = "yes"; then save_LIBS="$LIBS" LIBS="" OPENSSL_LIBS="" @@ -83,6 +84,7 @@ AC_SEARCH_LIBS([SSL_new], [ssl], AC_DEFINE(HAVE_OPENSSL, 1, [Define if the system has openssl])]) LIBS="$save_LIBS" AC_SUBST(OPENSSL_LIBS) +fi dnl Checks for header files. AC_HEADER_STDC