diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-05-07 11:52:34 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-07 14:46:02 -0400 |
commit | e37e4dc20c57f65af5bbced7341278fa7aa3b348 (patch) | |
tree | 87209cf76f8f3a3c5114e540af3401b7b26861f6 /src/external/krb5.m4 | |
parent | bca72f5a66f140c3a4190d0ad5dc8b9e96b0b111 (diff) | |
download | sssd-e37e4dc20c57f65af5bbced7341278fa7aa3b348.tar.gz sssd-e37e4dc20c57f65af5bbced7341278fa7aa3b348.tar.xz sssd-e37e4dc20c57f65af5bbced7341278fa7aa3b348.zip |
Kerberos locator: Include the correct krb5.h header file
https://fedorahosted.org/sssd/ticket/1325
Diffstat (limited to 'src/external/krb5.m4')
-rw-r--r-- | src/external/krb5.m4 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/external/krb5.m4 b/src/external/krb5.m4 index a8707c6e1..ee9662614 100644 --- a/src/external/krb5.m4 +++ b/src/external/krb5.m4 @@ -38,7 +38,12 @@ CFLAGS="$CFLAGS $KRB5_CFLAGS" LIBS="$LIBS $KRB5_LIBS" AC_CHECK_HEADERS([krb5.h krb5/krb5.h]) AC_CHECK_TYPES([krb5_ticket_times, krb5_times], [], [], - [[#include <krb5.h>]]) + [ #ifdef HAVE_KRB5_KRB5_H + #include <krb5/krb5.h> + #else + #include <krb5.h> + #endif + ]) AC_CHECK_FUNCS([krb5_get_init_creds_opt_alloc krb5_get_error_message \ krb5_free_unparsed_name \ krb5_get_init_creds_opt_set_expire_callback \ @@ -69,7 +74,13 @@ AC_ARG_ENABLE([krb5-locator-plugin], AC_CHECK_HEADER([krb5/locate_plugin.h], [have_locate_plugin=yes], [have_locate_plugin=no] - [AC_MSG_NOTICE([Kerberos locator plugin cannot be build])]) + [AC_MSG_NOTICE([Kerberos locator plugin cannot be built])], + [ #ifdef HAVE_KRB5_KRB5_H + #include <krb5/krb5.h> + #else + #include <krb5.h> + #endif + ]) AM_CONDITIONAL([BUILD_KRB5_LOCATOR_PLUGIN], [test x$have_locate_plugin = xyes -a x$build_locator = xyes]) |