]> granicus.if.org Git - sysstat/commitdiff
Fix #272: --disable-compress-manpg option does not work
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 24 Aug 2020 08:53:24 +0000 (10:53 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 24 Aug 2020 08:53:24 +0000 (10:53 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
Makefile.in
configure
configure.in

index 4741ae4b3cbcdacba416e68d913e54db996fbc3d..096e7eafa4eb27ac4a11775a8c90798f3bcbec75 100644 (file)
@@ -383,7 +383,7 @@ ifeq ($(INSTALL_DOC),y)
        $(INSTALL_DATA) $(MANGRPARG) man/pidstat.1 $(DESTDIR)$(MAN1_DIR)
        rm -f $(DESTDIR)$(MAN1_DIR)/cifsiostat.1*
        $(INSTALL_DATA) $(MANGRPARG) man/cifsiostat.1 $(DESTDIR)$(MAN1_DIR)
-ifeq ($(COMPRESS_MANPG),n)
+ifeq ($(COMPRESS_MANPG),y)
        $(ZIP) $(DESTDIR)$(MAN8_DIR)/sa1.8
        $(ZIP) $(DESTDIR)$(MAN8_DIR)/sa2.8
        $(ZIP) $(DESTDIR)$(MAN8_DIR)/sadc.8
index 51ceee605b198822bfd092d893d27aa3288833c6..c0e6b6b7c07b5230e840bd5efe75c0190d683899 100755 (executable)
--- a/configure
+++ b/configure
@@ -5346,18 +5346,17 @@ $as_echo "$AUX_IMG" >&6; }
 
 
 # Compress manual pages?
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should not be compressed" >&5
-$as_echo_n "checking whether manual pages should not be compressed... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
+$as_echo_n "checking whether manual pages should be compressed... " >&6; }
 # Check whether --enable-compress-manpg was given.
 if test "${enable_compress_manpg+set}" = set; then :
-  enableval=$enable_compress_manpg; AUX_MPG=$enableval
+  enableval=$enable_compress_manpg; AUX_MPG=no
 else
-  AUX_MPG=no
+  AUX_MPG=yes
 fi
 
 if test $AUX_MPG != "yes"; then
    COMPRESS_MANPG=n
-   AUX_MPG=no
 else
    COMPRESS_MANPG=y
 fi
index b3d9b11db69a9eb873172a7d7c4eb3c542f113d2..b6ab705f481f75c822fdec49c1d761627ce052f4 100644 (file)
@@ -492,14 +492,13 @@ AC_MSG_RESULT($AUX_IMG)
 AC_SUBST(IGNORE_FILE_ATTRIBUTES)
 
 # Compress manual pages?
-AC_MSG_CHECKING(whether manual pages should not be compressed)
+AC_MSG_CHECKING(whether manual pages should be compressed)
 AC_ARG_ENABLE(compress-manpg,
              AC_HELP_STRING([--disable-compress-manpg],
                             [do not compress sysstat manual pages]),
-                            AUX_MPG=$enableval,AUX_MPG=no)
+                            AUX_MPG=no,AUX_MPG=yes)
 if test $AUX_MPG != "yes"; then
    COMPRESS_MANPG=n
-   AUX_MPG=no
 else
    COMPRESS_MANPG=y
 fi