]> granicus.if.org Git - php/commitdiff
Add "--disable-inline" for low-memory machines (be it limited
authorSascha Schumann <sas@php.net>
Thu, 14 Oct 1999 22:17:22 +0000 (22:17 +0000)
committerSascha Schumann <sas@php.net>
Thu, 14 Oct 1999 22:17:22 +0000 (22:17 +0000)
RAM or virtual memory). It's also useful for Digital C where
the C++ compiler thinks "inline" is an invalid specifier.

Zend/configure.in

index 56bfc20dfb449588f9d76f600d4059e28d51749a..ad8b78a3707b3fd680caeb7adafb29e1181868d4 100644 (file)
@@ -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. ],