From a90c31fc52a26a587dca1b3a610f582fca463634 Mon Sep 17 00:00:00 2001 From: Alexey Shabalin Date: Fri, 7 Feb 2014 17:02:03 +0400 Subject: Use KRB5_CFLAGS where appropriate There are cases when MIT Kerberos is installed with includes in a subdirectory of /usr/include (or /usr/local/include). In such case we have to properly use KRB5_CFLAGS to reach them. https://fedorahosted.org/sssd/ticket/2226 Reviewed-by: Jakub Hrozek --- src/external/krb5.m4 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/external/krb5.m4 b/src/external/krb5.m4 index 1a50bf1c7..861c8c9fd 100644 --- a/src/external/krb5.m4 +++ b/src/external/krb5.m4 @@ -67,6 +67,8 @@ AC_CHECK_FUNCS([krb5_get_init_creds_opt_alloc krb5_get_error_message \ krb5_cc_get_full_name]) CFLAGS=$SAVE_CFLAGS LIBS=$SAVE_LIBS +CFLAGS="$CFLAGS $KRB5_CFLAGS" +LIBS="$LIBS $KRB5_LIBS" if test x$ac_cv_header_krb5_h != xyes -a x$ac_cv_header_krb5_krb5_h != xyes then @@ -93,3 +95,6 @@ AM_CONDITIONAL([BUILD_KRB5_LOCATOR_PLUGIN], [test x$have_locate_plugin = xyes -a x$build_locator = xyes]) AM_COND_IF([BUILD_KRB5_LOCATOR_PLUGIN], [AC_DEFINE_UNQUOTED(HAVE_KRB5_LOCATOR_PLUGIN, 1, [Build with krb5 locator plugin])]) + +CFLAGS=$SAVE_CFLAGS +LIBS=$SAVE_LIBS -- cgit