apr: add configure vars and caches
[feed/packages.git] / libs / apr / patches / 302-add-cache-for-strerror_r.patch
1 --- a/build/apr_common.m4
2 +++ b/build/apr_common.m4
3 @@ -526,8 +526,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 @@ -543,14 +544,10 @@ main()
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