summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-08-03 01:01:05 +0000
committerYang Tse <yangsita@gmail.com>2008-08-03 01:01:05 +0000
commit7ad3abfd05fc6a0fa60a75c15d7bc414efc7b22f (patch)
tree5a98a11528057e2c9a3a849d41a2f63af45ee3cb /configure.ac
parent7c6df7132ea5b32a2dd5e776a9e27192a7cf790c (diff)
downloadcurl-7ad3abfd05fc6a0fa60a75c15d7bc414efc7b22f.tar.gz
Another AC_TRY_COMPILE conversion to AC_COMPILE_IFELSE
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac21
1 files changed, 11 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index 7be0af1f0..3c40a1a79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1116,24 +1116,25 @@ if test x"$want_gss" = xyes; then
AC_DEFINE(HAVE_GSSMIT, 1, [if you have the MIT gssapi libraries])
dnl check if we have a really old MIT kerberos (<= 1.2)
AC_MSG_CHECKING([if gssapi headers declare GSS_C_NT_HOSTBASED_SERVICE])
- AC_TRY_COMPILE([
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM([[
#include <gssapi/gssapi.h>
#include <gssapi/gssapi_generic.h>
#include <gssapi/gssapi_krb5.h>
- ],[
+ ]],[[
gss_import_name(
(OM_uint32 *)0,
(gss_buffer_t)0,
GSS_C_NT_HOSTBASED_SERVICE,
(gss_name_t *)0);
- ],[
- AC_MSG_RESULT([yes])
- ],[
- AC_MSG_RESULT([no])
- AC_DEFINE(HAVE_OLD_GSSMIT, 1, [if you have an old MIT gssapi library, lacking GSS_C_NT_HOSTBASED_SERVICE])
- ]
- )
-
+ ]])
+ ],[
+ AC_MSG_RESULT([yes])
+ ],[
+ AC_MSG_RESULT([no])
+ AC_DEFINE(HAVE_OLD_GSSMIT, 1,
+ [if you have an old MIT gssapi library, lacking GSS_C_NT_HOSTBASED_SERVICE])
+ ])
fi
]
)