[packages] quagga-unstable: fix mini_fo assertion triggered by cross-fs link() (...
[openwrt/svn-archive/archive.git] / lang / python / patches / 010-cannot-run-test-programm.patch
1 diff --git a/configure.in b/configure.in
2 index 14095a1..e7ab47f 100644
3 --- a/configure.in
4 +++ b/configure.in
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
7 # exit Python
8 AC_MSG_CHECKING(for chflags)
9 +AC_CACHE_VAL(ac_cv_have_chflags, [
10 AC_TRY_RUN([
11 #include <sys/stat.h>
12 #include <unistd.h>
13 @@ -2568,12 +2569,19 @@ int main(int argc, char*argv[])
14 return 1;
15 return 0;
16 }
17 -],AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.)
18 - AC_MSG_RESULT(yes),
19 - AC_MSG_RESULT(no)
20 -)
21 +],
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
27 +then
28 + AC_DEFINE(HAVE_CHFLAGS, 1,
29 + [Define to 1 if you have the `chflags' function.])
30 +fi
31
32 AC_MSG_CHECKING(for lchflags)
33 +AC_CACHE_VAL(ac_cv_have_lchflags, [
34 AC_TRY_RUN([
35 #include <sys/stat.h>
36 #include <unistd.h>
37 @@ -2583,10 +2591,16 @@ int main(int argc, char*argv[])
38 return 1;
39 return 0;
40 }
41 -],AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.)
42 - AC_MSG_RESULT(yes),
43 - AC_MSG_RESULT(no)
44 -)
45 +],
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
51 +then
52 + AC_DEFINE(HAVE_CHFLAGS, 1,
53 + [Define to 1 if you have the `lchflags' function.])
54 +fi
55
56 dnl Check if system zlib has *Copy() functions
57 dnl
58 @@ -3664,6 +3664,7 @@ else
59 fi
60
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>
64 #include <stddef.h>
65 #include <string.h>
66 @@ -3697,10 +3698,17 @@ int main()
67 return 1;
68
69 return 0;
70 -}],
71 -[AC_MSG_RESULT(yes)
72 - AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
73 - AC_MSG_RESULT(no))
74 +}
75 +],
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
81 +then
82 + AC_DEFINE(PY_FORMAT_SIZE_T, "z",
83 + [Define to printf format modifier for Py_ssize_t])
84 +fi
85
86 AC_CHECK_TYPE(socklen_t,,
87 AC_DEFINE(socklen_t,int,