python: refresh patches
[openwrt/svn-archive/archive.git] / lang / python / patches / 010-cannot-run-test-programm.patch
1 ---
2 configure.in | 46 ++++++++++++++++++++++++++++++++++------------
3 1 file changed, 34 insertions(+), 12 deletions(-)
4
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
9 # exit Python
10 AC_MSG_CHECKING(for chflags)
11 +AC_CACHE_VAL(ac_cv_have_chflags, [
12 AC_TRY_RUN([
13 #include <sys/stat.h>
14 #include <unistd.h>
15 @@ -2662,12 +2663,19 @@ int main(int argc, char*argv[])
16 return 1;
17 return 0;
18 }
19 -],AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
20 - AC_MSG_RESULT(yes),
21 - AC_MSG_RESULT(no)
22 -)
23 +],
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
29 +then
30 + AC_DEFINE(HAVE_CHFLAGS, 1,
31 + [Define to 1 if you have the `chflags' function.])
32 +fi
33
34 AC_MSG_CHECKING(for lchflags)
35 +AC_CACHE_VAL(ac_cv_have_lchflags, [
36 AC_TRY_RUN([
37 #include <sys/stat.h>
38 #include <unistd.h>
39 @@ -2677,10 +2685,16 @@ int main(int argc, char*argv[])
40 return 1;
41 return 0;
42 }
43 -],AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
44 - AC_MSG_RESULT(yes),
45 - AC_MSG_RESULT(no)
46 -)
47 +],
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
53 +then
54 + AC_DEFINE(HAVE_CHFLAGS, 1,
55 + [Define to 1 if you have the `lchflags' function.])
56 +fi
57
58 dnl Check if system zlib has *Copy() functions
59 dnl
60 @@ -3781,6 +3795,7 @@ else
61 fi
62
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>
66 #include <stddef.h>
67 #include <string.h>
68 @@ -3814,10 +3829,17 @@ int main()
69 return 1;
70
71 return 0;
72 -}],
73 -[AC_MSG_RESULT(yes)
74 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
75 - AC_MSG_RESULT(no))
76 +}
77 +],
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
83 +then
84 + AC_DEFINE(PY_FORMAT_SIZE_T, "z",
85 + [Define to printf format modifier for Py_ssize_t])
86 +fi
87
88 AC_CHECK_TYPE(socklen_t,,
89 AC_DEFINE(socklen_t,int,