1 diff --git a/configure.in b/configure.in
2 index 14095a1..e7ab47f 100644
5 @@ -2559,6 +2559,7 @@ AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_TRUE],
6 # On Tru64, chflags seems to be present, but calling it will
8 AC_MSG_CHECKING(for chflags)
9 +AC_CACHE_VAL(ac_cv_have_chflags, [
13 @@ -2568,12 +2569,19 @@ int main(int argc, char*argv[])
17 -],AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
22 +ac_cv_have_chflags=yes,
23 +ac_cv_have_chflags=no,
24 +ac_cv_have_chflags=no)])
25 +AC_MSG_RESULT($ac_cv_have_chflags)
26 +if test "$ac_cv_have_chflags" = yes
28 + AC_DEFINE(HAVE_CHFLAGS, 1,
29 + [Define to 1 if you have the `chflags' function.])
32 AC_MSG_CHECKING(for lchflags)
33 +AC_CACHE_VAL(ac_cv_have_lchflags, [
37 @@ -2583,10 +2591,16 @@ int main(int argc, char*argv[])
41 -],AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
46 +ac_cv_have_lchflags=yes,
47 +ac_cv_have_lchflags=no,
48 +ac_cv_have_lchflags=no)])
49 +AC_MSG_RESULT($ac_cv_have_lchflags)
50 +if test "$ac_cv_have_lchflags" = yes
52 + AC_DEFINE(HAVE_CHFLAGS, 1,
53 + [Define to 1 if you have the `lchflags' function.])
56 dnl Check if system zlib has *Copy() functions
58 @@ -3664,6 +3664,7 @@ else
61 AC_MSG_CHECKING(for %zd printf() format support)
62 +AC_CACHE_VAL(ac_cv_py_format_size_t, [
63 AC_TRY_RUN([#include <stdio.h>
66 @@ -3697,10 +3698,17 @@ int main()
72 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
76 +ac_cv_py_format_size_t=yes,
77 +ac_cv_py_format_size_t=no,
78 +ac_cv_py_format_size_t=no)])
79 +AC_MSG_RESULT($ac_cv_py_format_size_t)
80 +if test "$ac_cv_pyt_format_t" = yes
82 + AC_DEFINE(PY_FORMAT_SIZE_T, "z",
83 + [Define to printf format modifier for Py_ssize_t])
86 AC_CHECK_TYPE(socklen_t,,
87 AC_DEFINE(socklen_t,int,