Some platforms provide uintptr_t in inttypes.h.  Patch by
Akira Kitada.
diff --git a/configure.in b/configure.in
index d9e208e..80c581b 100644
--- a/configure.in
+++ b/configure.in
@@ -1483,6 +1483,9 @@
    [AC_CHECK_SIZEOF(uintptr_t, 4)], 
    [], [#ifdef HAVE_STDINT_H
         #include <stdint.h>
+        #endif
+        #ifdef HAVE_INTTYPES_H
+        #include <inttypes.h>
         #endif])
 
 AC_CHECK_SIZEOF(off_t, [], [