aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-02-05 05:59:23 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2003-02-05 05:59:23 +0000
commit799d7385bf2523ccf7a20b977b3d04a0626c9ba8 (patch)
treeaed925546c20cb390118b926e01e4eb04b381d8e
parente04ceb973cbe2ec5c4d862ddff90667dea725d6f (diff)
downloadmonitoring-plugins-799d7385bf2523ccf7a20b977b3d04a0626c9ba8.tar.gz
fix for SSL build on RedHat rawhide
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@291 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--configure.in25
1 files changed, 17 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index f2996525..9a0a169a 100644
--- a/configure.in
+++ b/configure.in
@@ -229,20 +229,29 @@ if test "$FOUNDINCLUDE" = "no"; then
FOUNDINCLUDE=yes,
FOUNDINCLUDE=no)
fi
-AC_SUBST(SSLINCLUDE)
-CPPFLAGS="$_SAVEDCPPFLAGS $SSLINCLUDE"
+AC_SUBST(KRBINCLUDE)
+if test "$FOUNDINCLUDE" = "no"; then
+ CPPFLAGS="$_SAVEDCPPFLAGS"
+fi
dnl Check for OpenSSL header files
+unset FOUNDINCLUDE
_SAVEDCPPFLAGS="$CPPFLAGS"
-FOUNDINCLUDE=yes
-CPPFLAGS="-I$OPENSSL/include"
-AC_CHECK_HEADERS(openssl/x509.h openssl/ssl.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h,SSLINCLUDE="-I$OPENSSL/include",FOUNDINCLUDE=no)
+CPPFLAGS="$CPPFLAGS -I$OPENSSL/include"
+AC_CHECK_HEADERS(openssl/ssl.h openssl/x509.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h,
+ SSLINCLUDE="-I$OPENSSL/include"
+ FOUNDINCLUDE=yes,
+ FOUNDINCLUDE=no)
if test "$FOUNDINCLUDE" = "no"; then
- FOUNDINCLUDE=yes
- AC_CHECK_HEADERS(x509.h ssl.h rsa.h pem.h crypto.h err.h,SSLINCLUDE="-I$OPENSSL/include",FOUNDINCLUDE=no)
+ AC_CHECK_HEADERS(ssl.h x509.h rsa.h pem.h crypto.h err.h,
+ SSLINCLUDE="-I$OPENSSL/include"
+ FOUNDINCLUDE=yes,
+ FOUNDINCLUDE=no)
fi
AC_SUBST(SSLINCLUDE)
-CPPFLAGS="$_SAVEDCPPFLAGS $SSLINCLUDE"
+if test "$FOUNDINCLUDE" = "no"; then
+ CPPFLAGS="$_SAVEDCPPFLAGS"
+fi
dnl Check for crypto lib
_SAVEDLIBS="$LIBS"