Build pcp-htop.5 only when --enable-pcp

This commit is contained in:
Daniel Lange 2021-08-14 10:35:11 +02:00 committed by BenBE
parent dd91e9a9da
commit fc2377f052
1 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ case "$enable_pcp" in
[AC_MSG_ERROR([can not find PCP header file])])
AC_SEARCH_LIBS([pmNewContext], [pcp], [], [AC_MSG_ERROR([can not find PCP library])])
AC_DEFINE([HTOP_PCP], [1], [Define if building pcp-htop binary.])
AC_CONFIG_FILES([pcp-htop.5])
;;
*)
AC_MSG_ERROR([bad value '$enable_pcp' for --enable-pcp option])
@ -681,7 +682,7 @@ AM_CONDITIONAL([HTOP_PCP], [test "$my_htop_platform" = pcp])
AM_CONDITIONAL([HTOP_UNSUPPORTED], [test "$my_htop_platform" = unsupported])
AC_SUBST(my_htop_platform)
AC_CONFIG_FILES([Makefile htop.1 pcp-htop.5])
AC_CONFIG_FILES([Makefile htop.1])
AC_OUTPUT
if test "$my_htop_platform" = unsupported; then