Fix detection of polkit_context_is_caller_authorized() function, also reported by Nix. Also fix detection of policydir for prefixes different from /usr.~

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2075 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Diego Petteno 2007-11-23 15:27:56 +00:00
parent 9d2255d4e5
commit ec91380f5c

View file

@ -881,11 +881,11 @@ if test "x${polkit}" != xno ; then
[
HAVE_POLKIT=1
saved_LIBS="$LIBS"
LIBS="$LIBS POLKIT_LIBS"
LIBS="$LIBS $POLKIT_LIBS"
AC_CHECK_FUNCS(polkit_context_is_caller_authorized)
LIBS="$saved_LIBS"
AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
policydir=`pkg-config --variable prefix`/usr/share/PolicyKit/policy/
policydir=`pkg-config polkit-dbus --variable prefix`/share/PolicyKit/policy/
AC_SUBST(policydir)
],
[