482b99caa989295c868ab1cc2db2e36c8a7f2a41
[feed/packages.git] / libs / apr / patches / 303-add-cache-for-mmap-zero.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -1191,8 +1191,9 @@ AC_CHECK_FILE(/dev/zero)
4 # Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
5 if test "$ac_cv_func_mmap" = "yes" &&
6 test "$ac_cv_file__dev_zero" = "yes"; then
7 - AC_MSG_CHECKING(for mmap that can map /dev/zero)
8 - AC_TRY_RUN([
9 + AC_CACHE_CHECK([for mmap that can map /dev/zero],
10 + [ac_cv_mmap__dev_zero],
11 + [AC_TRY_RUN([
12 #include <sys/types.h>
13 #include <sys/stat.h>
14 #include <fcntl.h>
15 @@ -1215,9 +1216,7 @@ if test "$ac_cv_func_mmap" = "yes" &&
16 return 3;
17 }
18 return 0;
19 - }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])
20 -
21 - AC_MSG_RESULT($ac_cv_file__dev_zero)
22 + }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])])
23 fi
24
25 # Now we determine which one is our anonymous shmem preference.