]> granicus.if.org Git - procps-ng/commitdiff
build-sys: add ./configure --enable-oomem option
authorSami Kerola <kerolasa@iki.fi>
Thu, 29 Sep 2011 11:37:52 +0000 (13:37 +0200)
committerSami Kerola <kerolasa@iki.fi>
Thu, 29 Sep 2011 18:28:31 +0000 (20:28 +0200)
Add out-of-memory fields to the library and top.

Refrences:
http://www.freelists.org/post/procps/PATCH-12-Add-missed-oom-support-to-libproc
http://www.freelists.org/post/procps/PATCH-22-Initialize-smp-num-cpus-only-if-really-required

Signed-off-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
configure.ac

index acbb44be5675ddb0b3bd1b4666f28fe8516c2e12..aa12405080ecd489726d25e483f306a42c39396e 100644 (file)
@@ -142,6 +142,14 @@ if test "x$with_ncurses" != xno; then
 fi
 AC_SUBST([NCURSES_LIBS])
 
+AC_ARG_ENABLE([oomem],
+  AS_HELP_STRING([--enable-oomem], [add out-of-memory fields to the library and top]),
+  [], enable_oomem=no
+)
+if test "x$enable_oomem" = xyes; then
+  AC_DEFINE(OOMEM_ENABLE, 1, [add out-of-memory fields to the library and top])
+fi
+
 AC_CONFIG_FILES([
 Makefile
 proc/Makefile