httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1072155 - /httpd/httpd/trunk/modules/session/config.m4
Date Fri, 18 Feb 2011 21:27:13 GMT
Author: sf
Date: Fri Feb 18 21:27:12 2011
New Revision: 1072155

URL: http://svn.apache.org/viewvc?rev=1072155&view=rev
Log:
Actually check for APU_HAVE_CRYPTO at configure time.  This fixes a compile
error with apr 2 if crypto is disabled.

Modified:
    httpd/httpd/trunk/modules/session/config.m4

Modified: httpd/httpd/trunk/modules/session/config.m4
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/session/config.m4?rev=1072155&r1=1072154&r2=1072155&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/session/config.m4 (original)
+++ httpd/httpd/trunk/modules/session/config.m4 Fri Feb 18 21:27:12 2011
@@ -34,7 +34,11 @@ APACHE_MODULE(session_cookie, session co
 APACHE_MODULE(session_crypto, session crypto module, $session_crypto_objects, , no, [
   saved_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
-  AC_CHECK_HEADERS(apr_crypto.h, [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"])
+  AC_TRY_COMPILE([#include <apr_crypto.h>],[
+#if APU_HAVE_CRYPTO == 0
+#error no crypto support
+#endif
+], [ap_HAVE_APR_CRYPTO="yes"], [ap_HAVE_APR_CRYPTO="no"])
   CPPFLAGS="$saved_CPPFLAGS"
   if test $ap_HAVE_APR_CRYPTO = "no"; then
     AC_MSG_WARN([Your APR does not include SSL/EVP support.])



Mime
View raw message