summary refs log tree commit diff
path: root/pkgs/servers/pulseaudio/caps-fix.patch
blob: 1d69a16982f93bd163ad97f115c7b141f6a5822e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/configure.ac b/configure.ac
index 3c71472..71b5c3d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -620,6 +620,8 @@ AC_ARG_WITH([caps],
 
 if test "x${with_caps}" != "xno"; then
     AC_SEARCH_LIBS([cap_init], [cap], [], [])
+    AS_IF([test "x${with_caps}" != "xyes" -a "x${with_caps}" != "x"],
+          LIBS="-L${with_caps}/lib $LIBS")
 
     # Only give an error on hosts that we know could support capabilities
     AC_CHECK_HEADERS([sys/capability.h], [], [