Added check for Heimdal
authorkouril <kouril>
Tue, 4 Nov 2003 16:59:01 +0000 (16:59 +0000)
committerkouril <kouril>
Tue, 4 Nov 2003 16:59:01 +0000 (16:59 +0000)
configure.in

index b2e0c93..cea911f 100644 (file)
@@ -21,7 +21,7 @@ AC_CHECK_HEADERS([limits.h netdb.h stddef.h stdlib.h string.h unistd.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 #AC_C_CONST
-#AC_TYPE_SIZE_T
+AC_TYPE_SIZE_T
 AC_STRUCT_TM
 
 # Checks for library functions.
@@ -71,8 +71,13 @@ if test "x$with_krb5" != "xno" ; then
         # check if krb5_cc_gen_new() is implemented by the krb5 library
         AC_CHECK_FUNC(krb5_cc_gen_new, [AC_DEFINE(HAVE_KRB5_CC_GEN_NEW)])
 
-        # check if you're using Heimdal
-        # ...
+        # check for Heimdal
+        AC_MSG_CHECKING(whether we are using Heimdal)
+       AC_TRY_COMPILE([#include <krb5.h>],
+                      [ char *tmp = heimdal_version; ],
+                      [ AC_MSG_RESULT(yes)
+                        AC_DEFINE(HEIMDAL) ],
+                      [ AC_MSG_RESULT(no) ])
      fi
 
      CFLAGS=$ac_save_CFLAGS