From 7ad3abfd05fc6a0fa60a75c15d7bc414efc7b22f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 3 Aug 2008 01:01:05 +0000 Subject: [PATCH] Another AC_TRY_COMPILE conversion to AC_COMPILE_IFELSE --- configure.ac | 21 +++++++++++---------- 1 file 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 #include #include - ],[ + ]],[[ 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 ] )