From 3d1f85d0732a17ce561b25bcc9c5e3117497f3df Mon Sep 17 00:00:00 2001 From: eater Date: Tue, 16 May 2023 04:40:24 +0000 Subject: [PATCH] configure.ac: fix broken cap check --- configure.ac | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 3175d56..286ede6 100644 --- a/configure.ac +++ b/configure.ac @@ -127,9 +127,13 @@ AS_IF([test "x$with_ncurses" = "xyes"], ]) AM_CONDITIONAL([WITH_CURSES], [test "x$with_ncurses" = xyes]) -AC_CHECK_LIB([cap], [cap_set_proc], [have_cap="yes"], - AS_IF([test "$host_os" = linux-gnu], - AC_MSG_WARN([Capabilities support is strongly recommended for increased security. See SECURITY for more information.]))) +have_cap="yes" +AC_CHECK_LIB([cap], [cap_set_proc], [], [ + have_cap="no" + AS_IF([test "$host_os" = linux-gnu], [ + AC_MSG_WARN([Capabilities support is strongly recommended for increased security. See SECURITY for more information.]) + ]) +]) # Enable ipinfo AC_ARG_WITH([ipinfo], -- 2.47.2