From 94dc42e014828225e443697ff44f8b6112d701c9 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Thu, 28 Apr 2011 03:03:59 +0000 Subject: [PATCH] Fix GSS extension tests and headers for Heimdal/GNU --- configure.ac | 9 ++++++++- src/shibresolver/resolver.cpp | 4 +++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1ff8bec..eba8497 100644 --- a/configure.ac +++ b/configure.ac @@ -400,7 +400,14 @@ if test x"$want_gss" = xyes; then AC_MSG_CHECKING([whether GSS-API naming extensions are available]) AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[#include ]], + [AC_LANG_PROGRAM([[ +#ifdef SHIBRESOLVER_HAVE_GSSGNU +# include +#elif defined SHIBRESOLVER_HAVE_GSSMIT +# include +#else +# include +#endif]], [[gss_get_name_attribute(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);]])], [AC_MSG_RESULT([yes])AC_DEFINE([SHIBRESOLVER_HAVE_GSSAPI_NAMINGEXTS],[1],[Define to 1 if GSS-API naming extensions are available.])], [AC_MSG_RESULT([no])]) diff --git a/src/shibresolver/resolver.cpp b/src/shibresolver/resolver.cpp index a5e03b5..0c7ec52 100644 --- a/src/shibresolver/resolver.cpp +++ b/src/shibresolver/resolver.cpp @@ -23,7 +23,9 @@ #include "internal.h" #ifdef SHIBRESOLVER_HAVE_GSSAPI_NAMINGEXTS -# include +# ifdef SHIBRESOLVER_HAVE_GSSMIT +# include +# endif #endif #include -- 2.1.4