+Fri Jul 14 13:51:42 1995 Sam Hartman <hartmans@screw-loose.MIT.EDU>
+
+ * configure.in: Implement test for pgno_t that works under NetBSD
+ and Irix 5.3--possibly other systems too.
+
Sat Jul 1 23:15:59 1995 Tom Yu <tlyu@lothlorien.MIT.EDU>
* configure.in: Don't check for pgno_t; it's not in sys/types.h on
AC_CHECK_TYPE(u_int16_t, unsigned short)
AC_CHECK_TYPE(int32_t, int)
AC_CHECK_TYPE(u_int32_t, unsigned int)
-dnl AC_CHECK_TYPE(pgno_t, u_int32_t)
+AC_MSG_CHECKING(Whether pgno_t is defined)
+AC_CACHE_VAL(krb5_cv_pgno_t,[AC_TRY_COMPILE(
+[#include <sys/types.h>
+#include <ndbm.h>
+],[
+pgno_t t;],
+krb5_cv_pgno_t=yes,krb5_cv_pgno_t=no)])
+AC_MSG_RESULT($krb5_cv_pgno_t)
+if test $krb5_cv_pgno_t = no; then
+ AC_DEFINE_UNQUOTED(pgno_t, u_int32_t)
+ fi
dnl
dnl Determine the size of datum and DBT size fields. If they are not the same
dnl then the elements need to be copied.