]> granicus.if.org Git - libevent/commitdiff
Fix compilation when openssl support is disabled
authorNick Mathewson <nickm@torproject.org>
Wed, 28 Apr 2010 18:56:51 +0000 (14:56 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 28 Apr 2010 18:56:51 +0000 (14:56 -0400)
Previously, we'd fail if OpenSSL was present but openssl support was
disabled.  Now we don't.

configure.in

index e2177effa45d0ea8241f7f3c9b7100cd7a144332..e65633fbf805af4840183b68074f5efc88517971 100644 (file)
@@ -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