summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-30 21:22:02 +0000
committerSascha Schumann <sas@php.net>1999-11-30 21:22:02 +0000
commitadf12b60d3c082205d7addf49729aeddd52035f2 (patch)
tree300805cb374dd60d985efd6fbbb43d1c62cb8b9b
parentcfc7e27a7fb0a36258a3d791a7f5593b38cb865c (diff)
downloadphp-git-adf12b60d3c082205d7addf49729aeddd52035f2.tar.gz
Add '--enable-low-memory' option.
-rw-r--r--configure.in14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index e3eb620b63..d628218aa2 100644
--- a/configure.in
+++ b/configure.in
@@ -579,6 +579,15 @@ AC_ARG_ENABLE(experimental-zts,
])
AC_MSG_RESULT($PHP_EXPERIMENTAL_ZTS)
+AC_MSG_CHECKING(whether to try to stay below resource limits)
+AC_ARG_ENABLE(low-memory,
+[ --enable-low-memory Try to stay below resource limits],[
+ PHP_LOW_MEMORY=$enableval
+],[
+ PHP_LOW_MEMORY=no
+])
+AC_MSG_RESULT($PHP_LOW_MEMORY)
+
PHP_SAPI=cgi
PHP_BUILD_PROGRAM
dnl paths to the targets relative to the build directory
@@ -614,7 +623,10 @@ if test "$PHP_VERSIONING" = "yes"; then
EXTRA_LDFLAGS="-export-symbols $PHP_SYM_FILE"
fi
fi
-
+
+if test "$PHP_LOW_MEMORY" = "yes"; then
+ passthru="$passthru --disable-inline"
+fi
divert(4)