X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp-resolver.git;a=blobdiff_plain;f=configure.ac;h=3902b637a95c968b8d263147bcaedb933bd62ca3;hp=711e6074dbe2992bcc2c862426602c3485efc691;hb=445a260b0cf70a78490f9074ea6598571f5a6de5;hpb=4d852fa06fdc1f1488cd57732dc1d7c984b8b55e diff --git a/configure.ac b/configure.ac index 711e607..3902b63 100644 --- a/configure.ac +++ b/configure.ac @@ -386,8 +386,7 @@ if test x"$want_gss" = xyes; then LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff" fi if test -f "$GSSAPI_ROOT/bin/krb5-config"; then - dnl krb5-config doesn't have --libs-only-L or similar, put everything - dnl into LIBS + dnl krb5-config does not have --libs-only-L or similar, put everything into LIBS gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi` else if test "x$not_mit" = "x1"; then @@ -406,6 +405,18 @@ if test x"$want_gss" = xyes; then [AC_MSG_RESULT([yes])AC_DEFINE([HAVE_GSSAPI_NAMINGEXTS],[1],[Define to 1 if GSS-API naming extensions are available.])], [AC_MSG_RESULT([no])]) + AC_MSG_CHECKING([whether GSS-API composite name import is available]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include ]], + [[ + OM_uint32 minor; + gss_name_t srcname; + gss_buffer_desc importbuf; + gss_import_name(&minor, &importbuf, GSS_C_NT_EXPORT_NAME_COMPOSITE, &srcname); + ]])], + [AC_MSG_RESULT([yes])AC_DEFINE([SHIBRESOLVER_HAVE_GSSAPI_COMPOSITE_NAME],[1],[Define to 1 if GSS-API composite name import is available.])], + [AC_MSG_RESULT([no])]) + else CPPFLAGS="$save_CPPFLAGS" fi