You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Padwa, Daniel" <da...@gs.com> on 2001/04/12 20:51:08 UTC

PATCH: mod_tls --with-ssl to build against installed OpenSSL

As per discussion here a few days ago, 2.0.16 does not properly configure
against an "installed" OpenSSL (0.9.6), only against a source tree.

Here's the patch to fix it.

unpadwad> cvs diff -u config.m4
Index: config.m4
===================================================================
RCS file: /home/cvspublic/httpd-2.0/modules/tls/config.m4,v
retrieving revision 1.3
diff -u -r1.3 config.m4
--- config.m4   2001/02/12 16:50:21     1.3
+++ config.m4   2001/04/12 18:48:38
@@ -24,7 +24,14 @@
                   LIBS="$LIBS -L$withval -lssl -lcrypto"
                   ssl_lib="OpenSSL"
               else
-                  AC_MSG_ERROR(no - Unable to locate $withval/inc/ssl.h)
+                  searchfile="$withval/include/openssl/ssl.h"
+                  if test -f $searchfile ; then
+                      INCLUDES="$INCLUDES -I$withval/include"
+                      LIBS="$LIBS -L$withval/lib -lssl -lcrypto"
+                      ssl_lib="OpenSSL"
+                  else
+                      AC_MSG_ERROR(no - Unable to locate
$withval/inc/ssl.h)
+                  fi
               fi
           fi
       fi