Code

find kerberos libs in latest Red Hat beta
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>
Thu, 16 Jan 2003 05:22:50 +0000 (05:22 +0000)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>
Thu, 16 Jan 2003 05:22:50 +0000 (05:22 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@244 f882894a-f735-0410-b71e-b25c423dba1c

configure.in

index 48135eec1da6a8a334503e4c04cb3b41a2dc6807..fdc61965d38db6862b194ee6cf8c7c5b100b12ad 100644 (file)
@@ -219,6 +219,19 @@ elif test "$OPENSSL" = "/usr/local/ssl/bin/openssl"; then
 fi
 AC_ARG_WITH(openssl,--with-openssl=<dir> sets path to openssl installation,[OPENSSL=$withval])
 
+AC_CHECK_HEADERS(krb5.h,FOUNDINCLUDE=yes,FOUNDINCLUDE=no)
+if test "$FOUNDINCLUDE" = "no"; then
+  _SAVEDCPPFLAGS="$CPPFLAGS"
+  CPPFLAGS="$_SAVEDCPPFLAGS -I/usr/kerberos/include"
+  unset ac_cv_header_krb5_h
+  AC_CHECK_HEADERS(krb5.h,
+                   KRB5INCLUDE="-I/usr/kerberos/include"
+                   FOUNDINCLUDE=yes,
+                   FOUNDINCLUDE=no)
+fi
+AC_SUBST(SSLINCLUDE)
+CPPFLAGS="$_SAVEDCPPFLAGS $SSLINCLUDE"
+
 dnl Check for OpenSSL header files
 _SAVEDCPPFLAGS="$CPPFLAGS"
 FOUNDINCLUDE=yes