From: Sami Kerola Date: Thu, 29 Sep 2011 11:37:52 +0000 (+0200) Subject: build-sys: add ./configure --enable-oomem option X-Git-Tag: v3.3.0~10^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=367fd902dab64b51ba49709004b5011440e3105a;p=procps-ng build-sys: add ./configure --enable-oomem option 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 Signed-off-by: Sami Kerola --- diff --git a/configure.ac b/configure.ac index acbb44be..aa124050 100644 --- a/configure.ac +++ b/configure.ac @@ -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