From: Paul Howarth Date: Fri, 16 Apr 2010 13:09:32 +0000 (+0200) Subject: configure: GSSAPI detection on ancient Linux distros X-Git-Tag: curl-7_21_0~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cca192e58f9ed7c4b33c1c991f69ff830c58b38f;p=thirdparty%2Fcurl.git configure: GSSAPI detection on ancient Linux distros On some ancient distributions such as RHEL-3, needs to be processed after , but does not include it itself. This patch checks for first and then includes it in the test for , resolving the problem. Without the patch, is "present but cannot be compiled". --- diff --git a/configure.ac b/configure.ac index 2d394e1531..5dfa83ef44 100644 --- a/configure.ac +++ b/configure.ac @@ -1137,10 +1137,17 @@ if test x"$want_gss" = xyes; then ], [ dnl not found, check Heimdal or MIT + AC_CHECK_HEADERS([gssapi/gssapi.h], [], [not_mit=1]) AC_CHECK_HEADERS( - [gssapi/gssapi.h gssapi/gssapi_generic.h gssapi/gssapi_krb5.h], + [gssapi/gssapi_generic.h gssapi/gssapi_krb5.h], [], - [not_mit=1]) + [not_mit=1], + [ +AC_INCLUDES_DEFAULT +#ifdef HAVE_GSSAPI_GSSAPI_H +#include +#endif + ]) if test "x$not_mit" = "x1"; then dnl MIT not found, check for Heimdal AC_CHECK_HEADER(gssapi.h,