OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmm14?expand=0&rev=2
32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
--- aclocal.m4.orig Fri Jul 26 14:41:58 2002
|
|
+++ aclocal.m4 Mon Jul 29 15:23:58 2002
|
|
@@ -215,9 +215,15 @@
|
|
])
|
|
|
|
define(AC_CHECK_MAXSEGSIZE,[dnl
|
|
+mm_segment_limit=32
|
|
+AC_ARG_WITH(max-segment-size,
|
|
+ AC_HELP_STRING([--with-max-segment-size=[size]],
|
|
+ [upper limit for the max segment size test (in MB).]),
|
|
+ [mm_segment_limit=$withval])
|
|
AC_MSG_CHECKING(for shared memory maximum segment size)
|
|
AC_CACHE_VAL(ac_cv_maxsegsize,[
|
|
OCFLAGS="$CFLAGS"
|
|
+CFLAGS="-DMM_SEGMENT_LIMIT=$mm_segment_limit"
|
|
case "$1" in
|
|
MM_SHMT_MM* ) CFLAGS="-DTEST_MMAP $CFLAGS" ;;
|
|
MM_SHMT_IPCSHM ) CFLAGS="-DTEST_SHMGET $CFLAGS" ;;
|
|
@@ -318,9 +324,10 @@
|
|
/*
|
|
* Find maximum possible allocation size by performing a
|
|
* binary search starting with a search space between 0 and
|
|
- * 64MB of memory.
|
|
+ * MM_SEGMENT_LIMIT MB of memory.
|
|
*/
|
|
- t = 1024*1024*64 /* = 67108864 */;
|
|
+ t = 1024*1024*MM_SEGMENT_LIMIT /* = 67108864 */;
|
|
+
|
|
if (testit(t))
|
|
m = t;
|
|
else {
|