summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorklondike <klondike@xiscosoft.es>2012-11-19 03:43:35 +0100
committerklondike <klondike@xiscosoft.es>2012-11-19 03:43:35 +0100
commite0b2bb0a47754d0887cecbb3f69f6f7bdcd1addb (patch)
tree095e577a148cb0997ce34492ece283561323e43e /configure.ac
parentd68f6556449d3533bf368baa8631fbbcef125133 (diff)
Check for unshare on the configure and provide an inline replacement when not available
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 87385e406c..d609ef2604 100644
--- a/configure.ac
+++ b/configure.ac
@@ -188,6 +188,16 @@ AC_SUBST(ACL_LIBS)
AM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
# ------------------------------------------------------------------------------
+
+AC_CHECK_DECL([unshare],
+ [AC_DEFINE(HAVE_UNSHARE, 1, [Define if unshare is declared])],
+ [AC_CHECK_DECL([SYS_unshare],
+ [ ] ,
+ [AC_MSG_ERROR([*** unshare nor SYS_unshare found.])],
+ [#include <syscall.h>])],
+ [#include <sched.h>])
+
+# ------------------------------------------------------------------------------
AC_ARG_WITH(firmware-path,
AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
[Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),