Index: configure.in
===================================================================
--- configure.in	(revision 1161414)
+++ configure.in	(working copy)
@@ -1643,6 +1643,9 @@
 elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long"; then
     ssize_t_fmt="ld"
     AC_MSG_RESULT(%ld)
+elif test "$ac_cv_sizeof_ssize_t" = "$ac_cv_sizeof_long_long"; then
+    ssize_t_fmt="I64d"
+    AC_MSG_RESULT(%I64d)
 else
     AC_ERROR([could not determine the proper format for apr_ssize_t])
 fi
@@ -1660,6 +1663,9 @@
 elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long"; then
     size_t_fmt="ld"
     AC_MSG_RESULT(%ld)
+elif test "$ac_cv_sizeof_size_t" = "$ac_cv_sizeof_long_long"; then
+    size_t_fmt="I64d"
+    AC_MSG_RESULT(%I64d)
 else
     AC_ERROR([could not determine the proper format for apr_size_t])
 fi
