]> code.delx.au - pulseaudio/commitdiff
Revert "build-sys: drop libcap checks, since we don't use caps anymore"
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Aug 2009 19:43:03 +0000 (21:43 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Aug 2009 19:43:03 +0000 (21:43 +0200)
This reverts commit 9ade13604e98378e68a82b82ba260869714474b4.

configure.ac

index db73d91c2aa908f34160cc430671b1b66825387a..a35bef836c258c81c0153a21377da7ab8b964a93 100644 (file)
@@ -537,6 +537,25 @@ AC_SUBST(X11_LIBS)
 AC_SUBST(HAVE_X11)
 AM_CONDITIONAL([HAVE_X11], [test "x$HAVE_X11" = x1])
 
+#### Capabilities (optional) ####
+
+CAP_LIBS=''
+
+AC_ARG_WITH(
+        [caps],
+        AS_HELP_STRING([--without-caps],[Omit support for POSIX capabilities.]))
+
+if test "x${with_caps}" != "xno"; then
+    AC_SEARCH_LIBS([cap_init], [cap], [], [
+                    if test "x${with_caps}" = "xyes" ; then
+                        AC_MSG_ERROR([*** POSIX caps libraries not found])
+                    fi])
+    AC_CHECK_HEADERS([sys/capability.h], [], [
+                    if test "x${with_caps}" = "xyes" ; then
+                        AC_MSG_ERROR([*** POSIX caps headers not found])
+                    fi])
+fi
+
 #### Valgrind (optional) ####
 
 AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h])