Skip to contentSkip to conversation

autoconf: make the test for prctl have an effect

PATCH In review Jeff Layton 2 participants 2 messages May 17, 2012 – May 29, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 aclocal/libcap.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
aclocal/libcap.m4 +1 -1
index 68a624c..f8a0ed1 100644
@@ -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
#1 lore raw
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 calls prctl() unconditionally, so make configure bail out if prctl() isn't available since the build will fail in that event anyway.

Committed....

steved.

Quoted 17 lines
---
 aclocal/libcap.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
aclocal/libcap.m4 +1 -1
index 68a624c..f8a0ed1 100644
@@ -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])])