diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-02-05 05:59:23 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-02-05 05:59:23 (GMT) |
commit | 799d7385bf2523ccf7a20b977b3d04a0626c9ba8 (patch) | |
tree | aed925546c20cb390118b926e01e4eb04b381d8e | |
parent | e04ceb973cbe2ec5c4d862ddff90667dea725d6f (diff) | |
download | monitoring-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.in | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/configure.in b/configure.in index f299652..9a0a169 100644 --- a/configure.in +++ b/configure.in | |||
@@ -229,20 +229,29 @@ if test "$FOUNDINCLUDE" = "no"; then | |||
229 | FOUNDINCLUDE=yes, | 229 | FOUNDINCLUDE=yes, |
230 | FOUNDINCLUDE=no) | 230 | FOUNDINCLUDE=no) |
231 | fi | 231 | fi |
232 | AC_SUBST(SSLINCLUDE) | 232 | AC_SUBST(KRBINCLUDE) |
233 | CPPFLAGS="$_SAVEDCPPFLAGS $SSLINCLUDE" | 233 | if test "$FOUNDINCLUDE" = "no"; then |
234 | CPPFLAGS="$_SAVEDCPPFLAGS" | ||
235 | fi | ||
234 | 236 | ||
235 | dnl Check for OpenSSL header files | 237 | dnl Check for OpenSSL header files |
238 | unset FOUNDINCLUDE | ||
236 | _SAVEDCPPFLAGS="$CPPFLAGS" | 239 | _SAVEDCPPFLAGS="$CPPFLAGS" |
237 | FOUNDINCLUDE=yes | 240 | CPPFLAGS="$CPPFLAGS -I$OPENSSL/include" |
238 | CPPFLAGS="-I$OPENSSL/include" | 241 | AC_CHECK_HEADERS(openssl/ssl.h openssl/x509.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h, |
239 | 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) | 242 | SSLINCLUDE="-I$OPENSSL/include" |
243 | FOUNDINCLUDE=yes, | ||
244 | FOUNDINCLUDE=no) | ||
240 | if test "$FOUNDINCLUDE" = "no"; then | 245 | if test "$FOUNDINCLUDE" = "no"; then |
241 | FOUNDINCLUDE=yes | 246 | AC_CHECK_HEADERS(ssl.h x509.h rsa.h pem.h crypto.h err.h, |
242 | AC_CHECK_HEADERS(x509.h ssl.h rsa.h pem.h crypto.h err.h,SSLINCLUDE="-I$OPENSSL/include",FOUNDINCLUDE=no) | 247 | SSLINCLUDE="-I$OPENSSL/include" |
248 | FOUNDINCLUDE=yes, | ||
249 | FOUNDINCLUDE=no) | ||
243 | fi | 250 | fi |
244 | AC_SUBST(SSLINCLUDE) | 251 | AC_SUBST(SSLINCLUDE) |
245 | CPPFLAGS="$_SAVEDCPPFLAGS $SSLINCLUDE" | 252 | if test "$FOUNDINCLUDE" = "no"; then |
253 | CPPFLAGS="$_SAVEDCPPFLAGS" | ||
254 | fi | ||
246 | 255 | ||
247 | dnl Check for crypto lib | 256 | dnl Check for crypto lib |
248 | _SAVEDLIBS="$LIBS" | 257 | _SAVEDLIBS="$LIBS" |