From: eater Date: Tue, 16 May 2023 04:40:24 +0000 (+0000) Subject: configure.ac: fix broken cap check X-Git-Tag: v0.96~26^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F472%2Fhead;p=thirdparty%2Fmtr.git configure.ac: fix broken cap check --- 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],