configure: ignore warning about delay accounting on non-Linux platform

If pkg-config is not installed the following message gets printed, even
on non Linux platform:

"Linux delay accounting support can not be enabled, cause pkg-config is
required for checking its availability"
This commit is contained in:
Christian Göttsche 2021-05-16 20:01:25 +02:00
parent d2ee40597c
commit 69cfaf2381

View File

@ -445,7 +445,9 @@ case "$enable_delayacct" in
no)
;;
check)
if test "$enable_static" = yes; then
if test "$my_htop_platform" != linux; then
enable_delayacct=no
elif test "$enable_static" = yes; then
enable_delayacct=no
else
m4_ifdef([PKG_PROG_PKG_CONFIG], [