summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-10-14 22:17:22 +0000
committerSascha Schumann <sas@php.net>1999-10-14 22:17:22 +0000
commite77485a8f7c1e50b360a68e977bc950e76e23519 (patch)
treead1f6aaa30337a3dd5a25aa65d796d91ac85f77f /Zend
parentd58e6f2b002093471a5c807212bcaf10b086860d (diff)
downloadphp-git-e77485a8f7c1e50b360a68e977bc950e76e23519.tar.gz
Add "--disable-inline" for low-memory machines (be it limited
RAM or virtual memory). It's also useful for Digital C where the C++ compiler thinks "inline" is an invalid specifier.
Diffstat (limited to 'Zend')
-rw-r--r--Zend/configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/Zend/configure.in b/Zend/configure.in
index 56bfc20dfb..ad8b78a370 100644
--- a/Zend/configure.in
+++ b/Zend/configure.in
@@ -117,6 +117,23 @@ AC_ARG_ENABLE(debug,
AC_SUBST(DEBUG_CFLAGS)
CFLAGS="$CFLAGS $DEBUG_CFLAGS"
+RESULT=yes
+AC_MSG_CHECKING(whether to enable inline)
+AC_ARG_ENABLE(inline,
+[ --disable-inline Disable the inline specifier],
+[
+ if test "$enableval" = "no"; then
+ RESULT=no
+ fi
+])
+AC_MSG_RESULT($RESULT)
+
+if test "$RESULT" = "yes"; then
+ AC_C_INLINE
+else
+ AC_DEFINE(inline, [])
+fi
+
AC_MSG_CHECKING(whether to enable a memory limit)
AC_ARG_ENABLE(memory-limit,
[ --enable-memory-limit Compile with memory limit support. ],