diff options
-rw-r--r-- | source4/include/system/kerberos.h | 8 | ||||
-rw-r--r-- | source4/libads/config.m4 | 8 |
2 files changed, 5 insertions, 11 deletions
diff --git a/source4/include/system/kerberos.h b/source4/include/system/kerberos.h index 85c635e223..392300267e 100644 --- a/source4/include/system/kerberos.h +++ b/source4/include/system/kerberos.h @@ -29,13 +29,9 @@ #ifdef HAVE_GSSAPI_H #include <gssapi.h> -#endif - -#ifdef HAVE_GSSAPI_GSSAPI_H +#elif defined(HAVE_GSSAPI_GSSAPI_H) #include <gssapi/gssapi.h> -#endif - -#ifdef HAVE_GSSAPI_GSSAPI_GENERIC_H +#elif defined(HAVE_GSSAPI_GSSAPI_GENERIC_H) #include <gssapi/gssapi_generic.h> #endif diff --git a/source4/libads/config.m4 b/source4/libads/config.m4 index d91682da2d..c3f1da6e07 100644 --- a/source4/libads/config.m4 +++ b/source4/libads/config.m4 @@ -496,12 +496,10 @@ if test x"$with_krb5_support" != x"no"; then krb5_context context; krb5_keytab keytab; krb5_init_context(&context); - if (krb5_kt_resolve(context, "WRFILE:api", &keytab)) - exit(0); - exit(1); + return krb5_kt_resolve(context, "WRFILE:api", &keytab); }], - samba_cv_HAVE_WRFILE_KEYTAB=no, - samba_cv_HAVE_WRFILE_KEYTAB=yes)]) + samba_cv_HAVE_WRFILE_KEYTAB=yes, + samba_cv_HAVE_WRFILE_KEYTAB=no)]) if test x"$samba_cv_HAVE_WRFILE_KEYTAB" = x"yes"; then AC_DEFINE(HAVE_WRFILE_KEYTAB,1, [Whether the WRFILE:-keytab is supported]) |