From 7e9c0f760397d7e8fa78bdeefffc14eb8269925b Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Tue, 29 May 2012 13:53:09 -0400 Subject: [PATCH] autoconf: make the test for prctl have an effect We currently test to ensure that prctl() is available, but the results of that test are a no-op either way. statd calls prctl() unconditionally, so make configure bail out if prctl() isn't available since the build will fail in that event anyway. Cc: Chuck Lever Signed-off-by: Jeff Layton Signed-off-by: Steve Dickson --- aclocal/libcap.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aclocal/libcap.m4 b/aclocal/libcap.m4 index 68a624c..f8a0ed1 100644 --- a/aclocal/libcap.m4 +++ b/aclocal/libcap.m4 @@ -3,7 +3,7 @@ dnl AC_DEFUN([AC_LIBCAP], [ dnl look for prctl - AC_CHECK_FUNC([prctl], , ) + AC_CHECK_FUNC([prctl], , AC_MSG_ERROR([prctl syscall is not available])) AC_ARG_ENABLE([caps], [AS_HELP_STRING([--disable-caps], [Disable capabilities support])]) -- 2.39.2