mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-06-09 00:32:05 -04:00
Fixed output info for openssl and LD_LIBRARY_PATH for subsequent compiles
(otherwise get ld.so.1: ./conftest: fatal: libssl.so.0.9.7: open failed) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1012 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
7d25147c1e
commit
911af3e7ac
1 changed files with 7 additions and 2 deletions
|
|
@ -264,6 +264,7 @@ OPT_OPENSSL=$withval)
|
|||
|
||||
if test X"$OPT_OPENSSL" = "Xno"; then
|
||||
AC_MSG_WARN([openssl disabled, you will not be able to use ssl options in some plugins])
|
||||
with_openssl=no
|
||||
else
|
||||
dnl backup the pre-ssl variables
|
||||
CLEANLDFLAGS="$LDFLAGS"
|
||||
|
|
@ -383,14 +384,18 @@ else
|
|||
|
||||
fi
|
||||
|
||||
if test X"$OPT_OPENSSL" != Xoff &&
|
||||
if test X"$OPT_OPENSSL" != "Xno" &&
|
||||
test "$OPENSSL_ENABLED" != "1"; then
|
||||
AC_MSG_ERROR([OpenSSL libs and/or directories were not found where specified!])
|
||||
AC_MSG_WARN([OpenSSL libs and/or directories were not found where specified!])
|
||||
with_openssl="no"
|
||||
elif test "$OPENSSL_ENABLED" = "1"; then
|
||||
check_tcp_ssl="check_simap check_spop check_jabber check_nntps"
|
||||
AC_SUBST(check_tcp_ssl)
|
||||
AC_DEFINE(HAVE_SSL,1,[Define if SSL libraries are found])
|
||||
with_openssl="yes"
|
||||
|
||||
# Needed for subsequent compiled programs
|
||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$OPENSSL/lib"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue