diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/configure.in b/configure.in index 975ec2f..fc04ad3 100644 --- a/configure.in +++ b/configure.in @@ -730,6 +730,29 @@ case $withval in ;; esac +dnl Is SSL library present? It is needed by GLOBUS-GASS and Grid Storage +dnl driver. SSL must be tested before them. +AC_SUBST(SSL) SSL=yes +AC_ARG_WITH(ssl,[ --with-ssl=LIB Use SSL libs from LIB [default=no]], + ,withval=no) +case "$withval" in + yes) + AC_CHECK_LIB(crypto,main,,unset SSL) + AC_CHECK_LIB(ssl,SSL_get_version,,unset SSL) + ;; + no) + AC_MSG_CHECKING(for SSL) + AC_MSG_RESULT(suppressed) + unset SSL + ;; + *) + saved_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS -L$with_ssl" + AC_CHECK_LIB(crypto,main,, LDFLAGS="$saved_LDFLAGS"; unset SSL) + AC_CHECK_LIB(ssl,SSL_get_version,, LDFLAGS="$saved_LDFLAGS"; unset SSL) + ;; +esac + dnl ---------------------------------------------------------------------- dnl Is GLOBUS-GASS(1.1.0 or 1.1.1) Library present? It is also needed by dnl the Grid Storage driver. @@ -905,19 +928,6 @@ if test -n "$GRIDSTORAGE"; then AC_DEFINE(HAVE_GRIDSTORAGE) fi -if test -n "$GRIDSTORAGE" -o -n "$GASS"; then - dnl Is SSL library present? It is needed by GLOBUS-GASS and Grid - dnl Storage driver. - AC_SUBST(SSL) SSL=yes - AC_ARG_WITH(ssl,[ --with-ssl=LIB Use SSL libs from LIB ],,) - if test -n "$with_ssl"; then - LDFLAGS="$LDFLAGS -L$with_ssl" - fi - - AC_CHECK_LIB(crypto,main,,unset SSL) - AC_CHECK_LIB(ssl,SSL_get_version,,unset SSL) -fi - dnl ---------------------------------------------------------------------- dnl Is LLNL's PDB present? If so then we'll compile the PDB-to-HDF5 dnl translator. |