--- configure.ac.orig 2010-07-20 22:29:22.684914388 +0400 +++ configure.ac 2010-07-20 22:30:04.963165483 +0400 @@ -85,10 +85,10 @@ AC_ARG_ENABLE([polkit], [AC_HELP_STRING([--disable-polkit], [Do not enable PolicyKit support (default=enabled)])], - [], + [ac_cv_enable_polkit=$enableval], [ac_cv_enable_polkit=polkit]) AC_MSG_CHECKING([whether to build with polkit support]) -if test "x$ac_cv_enable_polkit" = !"xyes"; then +if test "x$ac_cv_enable_polkit" = "xno"; then AC_MSG_RESULT([no]) polkit="no" else --- src/xfpm-polkit.c.orig 2010-03-18 12:56:15.000000000 +0300 +++ src/xfpm-polkit.c 2010-07-20 23:16:19.702913489 +0400 @@ -560,6 +560,8 @@ gboolean xfpm_polkit_check_auth (XfpmPolkit *polkit, const gchar *action_id) { +#ifdef ENABLE_POLKIT xfpm_polkit_init_data (polkit); +#endif return xfpm_polkit_check_auth_intern (polkit, action_id); }