From cc6119831872bb65ab9eb7aa98a58435582dc4ee Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Tue, 29 Jan 2013 00:00:00 -0600 Subject: [PATCH] build sys: add configure option for impact of SIGWINCH Reference(s): http://www.freelists.org/post/procps/top-won-the-sigwinch-war,3 http://www.freelists.org/post/procps/top-won-the-sigwinch-war,5 Signed-off-by: Jim Warner --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 822a23d8..711be2ab 100644 --- a/configure.ac +++ b/configure.ac @@ -201,6 +201,14 @@ if test "x$enable_oomem" = xyes; then AC_DEFINE(OOMEM_ENABLE, 1, [add out-of-memory fields to the library and top]) fi +AC_ARG_ENABLE([sigwinch], + AS_HELP_STRING([--enable-sigwinch], [reduce impact of x-windows resize operations on top]), + [], enable_sigwinch=no +) +if test "x$enable_sigwinch" = xyes; then + AC_DEFINE(SIGNALS_LESS, 1, [reduce impact of x-windows resize operations on top]) +fi + AC_ARG_ENABLE([w-from], AS_HELP_STRING([--enable-w-from], [enable w from field by default]), [], enable_w_from=no