summaryrefslogtreecommitdiff
path: root/packages/dmalloc/files/configure-pagesize-HACK.patch
blob: e9c8d666a08e0d3b627c43271d2b8ac08271d038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Index: dmalloc-5.5.2/configure.ac
===================================================================
--- dmalloc-5.5.2.orig/configure.ac
+++ dmalloc-5.5.2/configure.ac
@@ -348,26 +348,8 @@ AC_MSG_RESULT([$ac_cv_use_mmap])
 #
 AC_CHECK_FUNCS(getpagesize)
 AC_MSG_CHECKING([basic-block size])
-ac_cv_page_size=0
-if test $ac_cv_page_size = 0; then
-   AC_RUN_IFELSE([main() { if (getpagesize()<=2048) exit(0); else exit(1); }],
-	[ ac_cv_page_size=11 ] )
-fi
-if test $ac_cv_page_size = 0; then
-   AC_RUN_IFELSE([main() { if (getpagesize()<=4096) exit(0); else exit(1); }],
-	[ ac_cv_page_size=12 ] )
-fi
-if test $ac_cv_page_size = 0; then
-   AC_RUN_IFELSE([main() { if (getpagesize()<=8192) exit(0); else exit(1); }],
-	[ ac_cv_page_size=13 ] )
-fi
-if test $ac_cv_page_size = 0; then
-   AC_RUN_IFELSE([main() { if (getpagesize()<=16384) exit(0); else exit(1); }],
-	[ ac_cv_page_size=14 ] )
-fi
-if test $ac_cv_page_size = 0; then
-    ac_cv_page_size=15
-fi
+# fix to 4K for now
+ac_cv_page_size=12
 AC_DEFINE_UNQUOTED([BASIC_BLOCK],[$ac_cv_page_size])
 AC_MSG_RESULT([$ac_cv_page_size])