summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>1995-07-14 19:22:17 +0000
committerSam Hartman <hartmans@mit.edu>1995-07-14 19:22:17 +0000
commit0c0601612e5fb1d91614625fe2d90dd498f8ce01 (patch)
tree8de4f8f1c49934b24b65c1a7f1b33e1989707397 /src
parent074fdfb04e84dc2646f5041b051e23ddf39fd8c3 (diff)
downloadkrb5-0c0601612e5fb1d91614625fe2d90dd498f8ce01.tar.gz
krb5-0c0601612e5fb1d91614625fe2d90dd498f8ce01.tar.xz
krb5-0c0601612e5fb1d91614625fe2d90dd498f8ce01.zip
Added test for pgno_t that should avoid breaking NetBSD
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6296 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/berk_db/hash/ChangeLog5
-rw-r--r--src/util/berk_db/hash/configure.in12
2 files changed, 16 insertions, 1 deletions
diff --git a/src/util/berk_db/hash/ChangeLog b/src/util/berk_db/hash/ChangeLog
index 096ec3a65..90b3f8481 100644
--- a/src/util/berk_db/hash/ChangeLog
+++ b/src/util/berk_db/hash/ChangeLog
@@ -1,3 +1,8 @@
+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
diff --git a/src/util/berk_db/hash/configure.in b/src/util/berk_db/hash/configure.in
index 1afb56b70..8c529db67 100644
--- a/src/util/berk_db/hash/configure.in
+++ b/src/util/berk_db/hash/configure.in
@@ -12,7 +12,17 @@ AC_CHECK_TYPE(int16_t, short)
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.