Add FreeSWITCH stable packages
[feed/telephony.git] / net / freeswitch-stable / patches / 110-apr-add-cache-for-strerror_r.patch
1 --- a/libs/apr-util/build/apr_common.m4
2 +++ b/libs/apr-util/build/apr_common.m4
3 @@ -514,8 +514,9 @@ dnl string.
4 dnl
5 dnl
6 AC_DEFUN([APR_CHECK_STRERROR_R_RC],[
7 -AC_MSG_CHECKING(for type of return code from strerror_r)
8 -AC_TRY_RUN([
9 +AC_CACHE_CHECK([whether return code from strerror_r has type int],
10 +[ac_cv_strerror_r_rc_int],
11 +[AC_TRY_RUN([
12 #include <errno.h>
13 #include <string.h>
14 #include <stdio.h>
15 @@ -531,14 +532,10 @@ int main(void)
16 }], [
17 ac_cv_strerror_r_rc_int=yes ], [
18 ac_cv_strerror_r_rc_int=no ], [
19 - ac_cv_strerror_r_rc_int=no ] )
20 + ac_cv_strerror_r_rc_int=no ] ) ] )
21 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
22 AC_DEFINE(STRERROR_R_RC_INT, 1, [Define if strerror returns int])
23 - msg="int"
24 -else
25 - msg="pointer"
26 fi
27 -AC_MSG_RESULT([$msg])
28 ] )
29
30 dnl
31 --- a/libs/apr/build/apr_common.m4
32 +++ b/libs/apr/build/apr_common.m4
33 @@ -514,8 +514,9 @@ dnl string.
34 dnl
35 dnl
36 AC_DEFUN([APR_CHECK_STRERROR_R_RC],[
37 -AC_MSG_CHECKING(for type of return code from strerror_r)
38 -AC_TRY_RUN([
39 +AC_CACHE_CHECK([whether return code from strerror_r has type int],
40 +[ac_cv_strerror_r_rc_int],
41 +[AC_TRY_RUN([
42 #include <errno.h>
43 #include <string.h>
44 #include <stdio.h>
45 @@ -531,14 +532,10 @@ int main(void)
46 }], [
47 ac_cv_strerror_r_rc_int=yes ], [
48 ac_cv_strerror_r_rc_int=no ], [
49 - ac_cv_strerror_r_rc_int=no ] )
50 + ac_cv_strerror_r_rc_int=no ] ) ] )
51 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
52 AC_DEFINE(STRERROR_R_RC_INT, 1, [Define if strerror returns int])
53 - msg="int"
54 -else
55 - msg="pointer"
56 fi
57 -AC_MSG_RESULT([$msg])
58 ] )
59
60 dnl
61 --- a/libs/unimrcp/build/acmacros/apr_common.m4
62 +++ b/libs/unimrcp/build/acmacros/apr_common.m4
63 @@ -526,8 +526,9 @@ dnl string.
64 dnl
65 dnl
66 AC_DEFUN([APR_CHECK_STRERROR_R_RC], [
67 -AC_MSG_CHECKING(for type of return code from strerror_r)
68 -AC_TRY_RUN([
69 +AC_CACHE_CHECK([whether return code from strerror_r has type int],
70 +[ac_cv_strerror_r_rc_int],
71 +[AC_TRY_RUN([
72 #include <errno.h>
73 #include <string.h>
74 #include <stdio.h>
75 @@ -543,14 +544,10 @@ main()
76 }], [
77 ac_cv_strerror_r_rc_int=yes ], [
78 ac_cv_strerror_r_rc_int=no ], [
79 - ac_cv_strerror_r_rc_int=no ] )
80 + ac_cv_strerror_r_rc_int=no ] ) ] )
81 if test "x$ac_cv_strerror_r_rc_int" = xyes; then
82 AC_DEFINE(STRERROR_R_RC_INT, 1, [Define if strerror returns int])
83 - msg="int"
84 -else
85 - msg="pointer"
86 fi
87 -AC_MSG_RESULT([$msg])
88 ] )
89
90 dnl