autoconf: make the test for prctl have an effect
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Jeff Layton <[email protected]>
--- aclocal/libcap.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
aclocal/libcap.m4 +1 -1
@@ -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])])
Signature · 1 line
1.7.7.6
Quoted 7 lines · Jeff Layton
We currently test to ensure that
prctl()is available, but the results of that test are a no-op either way. statd callsprctl()unconditionally, so make configure bail out ifprctl()isn't available since the build will fail in that event anyway.Cc Chuck Lever <[email protected]>Signed-off-by Jeff Layton <[email protected]>
Committed....
steved.
Quoted 17 lines
--- aclocal/libcap.m4 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)aclocal/libcap.m4 +1
-1@@ -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])])