mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
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.
This commit is contained in:
parent
d58e6f2b00
commit
e77485a8f7
@ -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. ],
|
||||
|
Loading…
Reference in New Issue
Block a user