Hi Murali,
I think you probably want --without-openssl to work correctly, instead
of adding another configure option. Something like the following.
-sam
Index: maint/config/openssl.m4
===================================================================
RCS file: /projects/cvsroot/pvfs2/maint/config/openssl.m4,v
retrieving revision 1.4
diff -u -r1.4 openssl.m4
--- maint/config/openssl.m4 13 Sep 2006 20:22:44 -0000 1.4
+++ maint/config/openssl.m4 15 Sep 2006 17:20:01 -0000
@@ -3,27 +3,30 @@
[
opensslpath=ifelse([$1], ,,$1)
- AC_MSG_CHECKING([for openssl library])
+ if test "x${opensslpath}" != "xno"; then
- if test "x${opensslpath}" != "x"; then
- CFLAGS="${CFLAGS} -I${opensslpath}/include"
- LDFLAGS="$LDFLAGS -L${opensslpath}/lib64 -L${opensslpath}/lib"
- SERVER_LDFLAGS="$SERVER_LDFLAGS -L${opensslpath}/lib64
-L${opensslpath}/lib"
- fi
- LIBS="$LIBS -lcrypt -lssl"
-
- AC_COMPILE_IFELSE(
- [#include "openssl/bio.h"],
- [],
- [AC_MSG_ERROR(Invalid openssl path specified. No openssl/bio.h
found.)])
-
- AC_TRY_LINK(
- [#include "openssl/bio.h"],
- [BIO * b;],
- [AC_MSG_RESULT(yes)],
- [AC_MSG_ERROR(could not find openssl libs)])
-
- AC_DEFINE(WITH_OPENSSL, 1, [Define if openssl exists])
+ AC_MSG_CHECKING([for openssl library])
+
+ if test "x${opensslpath}" != "x"; then
+ CFLAGS="${CFLAGS} -I${opensslpath}/include"
+ LDFLAGS="$LDFLAGS -L${opensslpath}/lib64 -L${opensslpath}/lib"
+ SERVER_LDFLAGS="$SERVER_LDFLAGS -L${opensslpath}/lib64
-L${opensslpath}/lib"
+ fi
+ LIBS="$LIBS -lcrypt -lssl"
+
+ AC_COMPILE_IFELSE(
+ [#include "openssl/bio.h"],
+ [],
+ [AC_MSG_ERROR(Invalid openssl path specified. No
openssl/bio.h found.)])
+
+ AC_TRY_LINK(
+ [#include "openssl/bio.h"],
+ [BIO * b;],
+ [AC_MSG_RESULT(yes)],
+ [AC_MSG_ERROR(could not find openssl libs)])
+
+ AC_DEFINE(WITH_OPENSSL, 1, [Define if openssl exists])
+ fi
])
AC_DEFUN([AX_OPENSSL_OPTIONAL],
Murali Vilayannur wrote:
Sam, Pete,
I just checked in a configure time option called --disable-openssl
both for toplevel and test that will prevent any ssl stuff from being
included and/or checked for..
Let me know if this looks good for you guys..
Thanks,
Murali
_______________________________________________
Pvfs2-developers mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers