2 configure.in | 46 ++++++++++++++++++++++++++++++++++------------
3 1 file changed, 34 insertions(+), 12 deletions(-)
5 --- Python-2.6.4.orig/configure.in
6 +++ Python-2.6.4/configure.in
7 @@ -2653,6 +2653,7 @@ AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_
8 # On Tru64, chflags seems to be present, but calling it will
10 AC_MSG_CHECKING(for chflags)
11 +AC_CACHE_VAL(ac_cv_have_chflags, [
15 @@ -2662,12 +2663,19 @@ int main(int argc, char*argv[])
19 -],AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
24 +ac_cv_have_chflags=yes,
25 +ac_cv_have_chflags=no,
26 +ac_cv_have_chflags=no)])
27 +AC_MSG_RESULT($ac_cv_have_chflags)
28 +if test "$ac_cv_have_chflags" = yes
30 + AC_DEFINE(HAVE_CHFLAGS, 1,
31 + [Define to 1 if you have the `chflags' function.])
34 AC_MSG_CHECKING(for lchflags)
35 +AC_CACHE_VAL(ac_cv_have_lchflags, [
39 @@ -2677,10 +2685,16 @@ int main(int argc, char*argv[])
43 -],AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
48 +ac_cv_have_lchflags=yes,
49 +ac_cv_have_lchflags=no,
50 +ac_cv_have_lchflags=no)])
51 +AC_MSG_RESULT($ac_cv_have_lchflags)
52 +if test "$ac_cv_have_lchflags" = yes
54 + AC_DEFINE(HAVE_CHFLAGS, 1,
55 + [Define to 1 if you have the `lchflags' function.])
58 dnl Check if system zlib has *Copy() functions
60 @@ -3781,6 +3795,7 @@ else
63 AC_MSG_CHECKING(for %zd printf() format support)
64 +AC_CACHE_VAL(ac_cv_py_format_size_t, [
65 AC_TRY_RUN([#include <stdio.h>
68 @@ -3814,10 +3829,17 @@ int main()
74 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
78 +ac_cv_py_format_size_t=yes,
79 +ac_cv_py_format_size_t=no,
80 +ac_cv_py_format_size_t=no)])
81 +AC_MSG_RESULT($ac_cv_py_format_size_t)
82 +if test "$ac_cv_pyt_format_t" = yes
84 + AC_DEFINE(PY_FORMAT_SIZE_T, "z",
85 + [Define to printf format modifier for Py_ssize_t])
88 AC_CHECK_TYPE(socklen_t,,
89 AC_DEFINE(socklen_t,int,