You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.ac 16 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_PREREQ(2.59c)
  3. AC_INIT(polkit, 0.105, http://lists.freedesktop.org/mailman/listinfo/polkit-devel)
  4. AM_INIT_AUTOMAKE(polkit, 0.105)
  5. AM_CONFIG_HEADER(config.h)
  6. AM_MAINTAINER_MODE
  7. m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
  8. # Include external mocklibc tool for unit testing
  9. AC_CONFIG_SUBDIRS([test/mocklibc])
  10. # libtool versioning - this applies to all libraries in this package
  11. #
  12. # See http://sources.redhat.com/autobook/autobook/autobook_91.html#SEC91 for details
  13. #
  14. LT_CURRENT=0
  15. LT_REVISION=0
  16. LT_AGE=0
  17. AC_SUBST(LT_CURRENT)
  18. AC_SUBST(LT_REVISION)
  19. AC_SUBST(LT_AGE)
  20. AC_ISC_POSIX
  21. AC_PROG_CC
  22. AM_PROG_CC_STDC
  23. AC_HEADER_STDC
  24. AM_PROG_LIBTOOL
  25. AC_PROG_MAKE_SET
  26. AC_PROG_LN_S
  27. AC_SYS_LARGEFILE
  28. AM_PROG_CC_C_O
  29. # Taken from dbus
  30. AC_ARG_ENABLE(ansi, [ --enable-ansi enable -ansi -pedantic gcc flags],enable_ansi=$enableval,enable_ansi=no)
  31. AC_ARG_ENABLE(verbose-mode, [ --enable-verbose-mode support verbose debug mode],enable_verbose_mode=$enableval,enable_verbose_mode=$USE_MAINTAINER_MODE)
  32. AC_ARG_ENABLE(man-pages, [ --enable-man-pages build manual pages],enable_man_pages=$enableval,enable_man_pages=yes)
  33. if test "${enable_man_page}" != no; then
  34. dnl
  35. dnl Check for xsltproc
  36. dnl
  37. AC_PATH_PROG([XSLTPROC], [xsltproc])
  38. if test -z "$XSLTPROC"; then
  39. enable_man_pages=no
  40. fi
  41. fi
  42. AM_CONDITIONAL(MAN_PAGES_ENABLED, test x$enable_man_pages = xyes)
  43. GTK_DOC_CHECK([1.3])
  44. #### gcc warning flags
  45. if test "x$GCC" = "xyes"; then
  46. changequote(,)dnl
  47. case " $CFLAGS " in
  48. *[\ \ ]-Wall[\ \ ]*) ;;
  49. *) CFLAGS="$CFLAGS -Wall" ;;
  50. esac
  51. case " $CFLAGS " in
  52. *[\ \ ]-Wchar-subscripts[\ \ ]*) ;;
  53. *) CFLAGS="$CFLAGS -Wchar-subscripts" ;;
  54. esac
  55. case " $CFLAGS " in
  56. *[\ \ ]-Wmissing-declarations[\ \ ]*) ;;
  57. *) CFLAGS="$CFLAGS -Wmissing-declarations" ;;
  58. esac
  59. case " $CFLAGS " in
  60. *[\ \ ]-Wnested-externs[\ \ ]*) ;;
  61. *) CFLAGS="$CFLAGS -Wnested-externs" ;;
  62. esac
  63. case " $CFLAGS " in
  64. *[\ \ ]-Wpointer-arith[\ \ ]*) ;;
  65. *) CFLAGS="$CFLAGS -Wpointer-arith" ;;
  66. esac
  67. case " $CFLAGS " in
  68. *[\ \ ]-Wcast-align[\ \ ]*) ;;
  69. *) CFLAGS="$CFLAGS -Wcast-align" ;;
  70. esac
  71. case " $CFLAGS " in
  72. *[\ \ ]-Wsign-compare[\ \ ]*) ;;
  73. *) CFLAGS="$CFLAGS -Wsign-compare" ;;
  74. esac
  75. case " $CFLAGS " in
  76. *[\ \ ]-Wformat[\ \ ]*) ;;
  77. *) CFLAGS="$CFLAGS -Wformat" ;;
  78. esac
  79. case " $CFLAGS " in
  80. *[\ \ ]-Wformat-security[\ \ ]*) ;;
  81. *) CFLAGS="$CFLAGS -Wformat-security" ;;
  82. esac
  83. if test "x$enable_ansi" = "xyes"; then
  84. case " $CFLAGS " in
  85. *[\ \ ]-ansi[\ \ ]*) ;;
  86. *) CFLAGS="$CFLAGS -ansi" ;;
  87. esac
  88. case " $CFLAGS " in
  89. *[\ \ ]-D_POSIX_C_SOURCE*) ;;
  90. *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;;
  91. esac
  92. case " $CFLAGS " in
  93. *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;;
  94. *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;;
  95. esac
  96. case " $CFLAGS " in
  97. *[\ \ ]-pedantic[\ \ ]*) ;;
  98. *) CFLAGS="$CFLAGS -pedantic" ;;
  99. esac
  100. fi
  101. changequote([,])dnl
  102. fi
  103. PKG_CHECK_MODULES(GLIB, [gio-2.0 >= 2.28.0])
  104. AC_SUBST(GLIB_CFLAGS)
  105. AC_SUBST(GLIB_LIBS)
  106. EXPAT_LIB=""
  107. AC_ARG_WITH(expat, [ --with-expat=<dir> Use expat from here],
  108. [
  109. expat=$withval
  110. CPPFLAGS="$CPPFLAGS -I$withval/include"
  111. LDFLAGS="$LDFLAGS -L$withval/lib"
  112. ]
  113. )
  114. AC_CHECK_HEADERS(expat.h, [AC_DEFINE(HAVE_EXPAT_H)],
  115. [AC_MSG_ERROR([Can't find expat.h. Please install expat.])])
  116. AC_CHECK_LIB(expat,XML_ParserCreate,[EXPAT_LIBS="-lexpat"],
  117. [AC_MSG_ERROR([Can't find expat library. Please install expat.])])
  118. AC_SUBST(EXPAT_LIBS)
  119. AC_CHECK_FUNCS(clearenv)
  120. if test "x$GCC" = "xyes"; then
  121. LDFLAGS="-Wl,--as-needed $LDFLAGS"
  122. fi
  123. dnl ---------------------------------------------------------------------------
  124. dnl - Select wether to use systemd or ConsoleKit for session tracking
  125. dnl ---------------------------------------------------------------------------
  126. have_systemd=no
  127. SESSION_TRACKING=ConsoleKit
  128. AC_ARG_ENABLE([systemd],
  129. AS_HELP_STRING([--enable-systemd[=@<:@auto/yes/no@:>@]], [Use systemd (auto/yes/no)]),
  130. [enable_systemd=$enableval],
  131. [enable_systemd=auto])
  132. if test "$enable_systemd" != "no"; then
  133. PKG_CHECK_MODULES(SYSTEMD,
  134. [libsystemd-login],
  135. have_systemd=yes,
  136. have_systemd=no)
  137. if test "$have_systemd" = "yes"; then
  138. SESSION_TRACKING=systemd
  139. else
  140. if test "$enable_systemd" = "yes"; then
  141. AC_MSG_ERROR([systemd support requested but libsystemd-login1 library not found])
  142. fi
  143. fi
  144. fi
  145. AC_SUBST(SYSTEMD_CFLAGS)
  146. AC_SUBST(SYSTEMD_LIBS)
  147. AM_CONDITIONAL(HAVE_SYSTEMD, [test "$have_systemd" = "yes"], [Using systemd])
  148. dnl ---------------------------------------------------------------------------
  149. dnl - Select which authentication framework to use
  150. dnl ---------------------------------------------------------------------------
  151. AC_ARG_WITH([authfw],
  152. AS_HELP_STRING([--with-authfw=<name>],
  153. [Authentication framework (none/pam/shadow)]))
  154. if ! test -z "$with_authfw" ; then
  155. if test x$with_authdb = xdummy ; then
  156. if ! test x$with_authfw = xnone ; then
  157. AC_MSG_ERROR([Only 'none' is a valid authentication framework for the dummy authorization database])
  158. fi
  159. else
  160. if test x$with_authfw = xnone ; then
  161. AC_MSG_ERROR(['none' is only a valid authentication framework for the dummy authorization database])
  162. fi
  163. fi
  164. POLKIT_AUTHFW=$with_authfw
  165. else
  166. if test x$with_authdb = xdummy ; then
  167. POLKIT_AUTHFW=none
  168. else
  169. POLKIT_AUTHFW=pam
  170. fi
  171. fi
  172. AC_SUBST(POLKIT_AUTHFW)
  173. AC_DEFINE_UNQUOTED(POLKIT_AUTHFW,"$POLKIT_AUTHFW", [Authentication Framework to use])
  174. case $POLKIT_AUTHFW in
  175. none)
  176. need_pam=no
  177. AC_DEFINE(POLKIT_AUTHFW_NONE, 1, [If using no authentication framework])
  178. ;;
  179. pam)
  180. need_pam=yes
  181. AC_DEFINE(POLKIT_AUTHFW_PAM, 1, [If using the PAM authentication framework])
  182. ;;
  183. shadow)
  184. need_pam=no
  185. AUTH_LIBS="${AUTH_LIBS} -lcrypt"
  186. AC_DEFINE(POLKIT_AUTHFW_SHADOW, 1, [If using the Shadow authentication framework])
  187. ;;
  188. *)
  189. AC_MSG_ERROR([Unknown Authentication Framework: $POLKIT_AUTHFW])
  190. ;;
  191. esac
  192. AM_CONDITIONAL(POLKIT_AUTHFW_NONE, [test x$POLKIT_AUTHFW = xnone], [Using no authfw])
  193. AM_CONDITIONAL(POLKIT_AUTHFW_PAM, [test x$POLKIT_AUTHFW = xpam], [Using PAM authfw])
  194. AM_CONDITIONAL(POLKIT_AUTHFW_SHADOW, [test x$POLKIT_AUTHFW = xshadow], [Using Shadow authfw])
  195. dnl ---------------------------------------------------------------------------
  196. dnl - Check for PAM
  197. dnl ---------------------------------------------------------------------------
  198. withval=""
  199. AC_ARG_WITH(pam-prefix,
  200. [ --with-pam-prefix=<prefix> specify where pam files go],[
  201. if test x$withval != x; then
  202. AC_MSG_RESULT("PAM files will be installed in prefix ${withval}.")
  203. fi])
  204. if test x$withval != x; then
  205. PAM_PREFIX_UNEXPANDED="$withval"
  206. else
  207. PAM_PREFIX_UNEXPANDED="$sysconfdir"
  208. fi
  209. PAM_PREFIX=`eval echo $PAM_PREFIX_UNEXPANDED`
  210. AC_SUBST(PAM_PREFIX)
  211. have_pam=no
  212. if test "$need_pam" = yes ; then
  213. AC_CHECK_LIB(pam, pam_start, have_pam=yes)
  214. fi
  215. if test x$have_pam = xno; then
  216. if test "$need_pam" = yes ; then
  217. AC_ERROR([Could not find pam/pam-devel, please install the needed packages.])
  218. fi
  219. else
  220. AUTH_LIBS="${AUTH_LIBS} -lpam"
  221. AC_DEFINE(HAVE_PAM, 1, [Define if PAM support is included])
  222. # On Linux, sigtimedwait() is in libc; on Solaris, it's in librt.
  223. have_timedwait=no
  224. AC_CHECK_LIB(c, sigtimedwait, [have_timedwait=yes])
  225. if test "$have_timedwait" = no ; then
  226. AC_CHECK_LIB(rt, sigtimedwait, [AUTH_LIBS="${AUTH_LIBS} -lrt"])
  227. fi
  228. AC_MSG_CHECKING(how to call pam_strerror)
  229. AC_CACHE_VAL(ac_cv_pam_strerror_args,
  230. [AC_TRY_COMPILE([#include <stdio.h>
  231. #include <stdlib.h>
  232. #include <security/pam_appl.h>],
  233. [pam_handle_t *pamh = 0;
  234. char *s = pam_strerror(pamh, PAM_SUCCESS);],
  235. [ac_pam_strerror_args=2],
  236. [AC_TRY_COMPILE([#include <stdio.h>
  237. #include <stdlib.h>
  238. #include <security/pam_appl.h>],
  239. [char *s =
  240. pam_strerror(PAM_SUCCESS);],
  241. [ac_pam_strerror_args=1],
  242. [ac_pam_strerror_args=0])])
  243. ac_cv_pam_strerror_args=$ac_pam_strerror_args])
  244. ac_pam_strerror_args=$ac_cv_pam_strerror_args
  245. if test "$ac_pam_strerror_args" = 1 ; then
  246. AC_MSG_RESULT(one argument)
  247. elif test "$ac_pam_strerror_args" = 2 ; then
  248. AC_DEFINE(PAM_STRERROR_TWO_ARGS, 1, [Define if pam_strerror takes two arguments])
  249. AC_MSG_RESULT(two arguments)
  250. else
  251. AC_MSG_RESULT(unknown)
  252. fi
  253. fi
  254. AM_CONDITIONAL(HAVE_PAM, test x$have_pam = xyes)
  255. AC_SUBST(HAVE_PAM)
  256. AC_SUBST(AUTH_LIBS)
  257. AC_CHECK_HEADER(security/pam_modutil.h, [AC_DEFINE(HAVE_PAM_MODUTIL_H, [], "Have pam_modutil.h")])
  258. AC_CHECK_HEADER(security/pam_ext.h, [AC_DEFINE(HAVE_PAM_EXT_H, [], "Have pam_ext.h")])
  259. AC_CHECK_LIB(pam, pam_vsyslog, [AC_DEFINE(HAVE_PAM_VSYSLOG, [], "Have pam_vsyslog")])
  260. AC_ARG_WITH(pam-module-dir, [ --with-pam-module-dir=[dirname] directory to install PAM security module])
  261. if ! test -z "$with_pam_module_dir"; then
  262. PAM_MODULE_DIR=$with_pam_module_dir
  263. else
  264. PAM_MODULE_DIR="/lib/security"
  265. fi
  266. AC_SUBST(PAM_MODULE_DIR)
  267. AC_ARG_WITH(os-type, [ --with-os-type=<os> distribution or OS (redhat/suse/gentoo/pardus/solaris)])
  268. #### Check our operating system (distro-tweaks required)
  269. if test "z$with_os_type" = "z"; then
  270. AC_CHECK_FILE(/etc/redhat-release,distro_type="redhat")
  271. AC_CHECK_FILE(/etc/SuSE-release,distro_type="suse")
  272. AC_CHECK_FILE(/etc/gentoo-release,distro_type="gentoo")
  273. AC_CHECK_FILE(/etc/pardus-release,distro_type="pardus")
  274. if test "z$distro_type" = "z"; then
  275. echo "Linux distribution autodetection failed, specify the distribution to target using --with-os-type="
  276. else
  277. operating_system=`echo ${distro_type} | tr '[[:upper:]]' '[[:lower:]]' `
  278. fi
  279. fi
  280. #### Sort out OS (distro-tweaks required)
  281. if test x$with_os_type = x; then
  282. if test x$operating_system = xredhat ; then
  283. with_os_type=redhat
  284. elif test x$operating_system = xsuse ; then
  285. with_os_type=suse
  286. elif test x$operating_system = xgentoo ; then
  287. with_os_type=gentoo
  288. elif test x$operating_system = xpardus ; then
  289. with_os_type=pardus
  290. elif test x$operating_system = xsolaris ; then
  291. with_os_type=solaris
  292. elif test x$operating_system = xfreebsd ; then
  293. with_os_type=freebsd
  294. else
  295. with_os_type=unknown
  296. fi
  297. fi
  298. # (distro-tweaks required)
  299. AM_CONDITIONAL(OS_TYPE_UNKNOWN, test x$with_os_type = xunknown, [Running on unknown OS])
  300. AM_CONDITIONAL(OS_TYPE_RED_HAT, test x$with_os_type = xredhat, [Running on Red Hat OS'es])
  301. AM_CONDITIONAL(OS_TYPE_SUSE, test x$with_os_type = xsuse, [Running on SUSE OS'es])
  302. AM_CONDITIONAL(OS_TYPE_GENTOO, test x$with_os_type = xgentoo, [Running on Gentoo OS'es])
  303. AM_CONDITIONAL(OS_TYPE_PARDUS, test x$with_os_type = xpardus, [Running on Pardus OS'es])
  304. AM_CONDITIONAL(OS_TYPE_SOLARIS, test x$with_os_type = xsolaris, [Running os Solaris OS'es])
  305. AM_CONDITIONAL(OS_TYPE_FREEBSD, test x$with_os_type = xfreebsd, [Running on FreeBSD OS'es])
  306. AC_ARG_WITH(pam-include, [ --with-pam-include=<file> pam file to include])
  307. #### Set up pam file to include (distro-tweaks required)
  308. if ! test -z "$with_pam_include"; then
  309. PAM_FILE_INCLUDE_AUTH=$with_pam_include
  310. PAM_FILE_INCLUDE_ACCOUNT=$with_pam_include
  311. PAM_FILE_INCLUDE_PASSWORD=$with_pam_include
  312. PAM_FILE_INCLUDE_SESSION=$with_pam_include
  313. elif test x$with_os_type = xredhat -o x$with_os_type = xgentoo -o x$with_os_type = xpardus ; then
  314. PAM_FILE_INCLUDE_AUTH=system-auth
  315. PAM_FILE_INCLUDE_ACCOUNT=system-auth
  316. PAM_FILE_INCLUDE_PASSWORD=system-auth
  317. PAM_FILE_INCLUDE_SESSION=system-auth
  318. elif test x$with_os_type = xsuse -o x$with_os_type = xsolaris ; then
  319. PAM_FILE_INCLUDE_AUTH=common-auth
  320. PAM_FILE_INCLUDE_ACCOUNT=common-account
  321. PAM_FILE_INCLUDE_PASSWORD=common-password
  322. PAM_FILE_INCLUDE_SESSION=common-session
  323. elif test x$with_os_type = xfreebsd ; then
  324. PAM_FILE_INCLUDE_AUTH=system
  325. PAM_FILE_INCLUDE_ACCOUNT=system
  326. PAM_FILE_INCLUDE_PASSWORD=system
  327. PAM_FILE_INCLUDE_SESSION=system
  328. else
  329. PAM_FILE_INCLUDE_AUTH=system-auth
  330. PAM_FILE_INCLUDE_ACCOUNT=system-auth
  331. PAM_FILE_INCLUDE_PASSWORD=system-auth
  332. PAM_FILE_INCLUDE_SESSION=system-auth
  333. fi
  334. AC_SUBST(PAM_FILE_INCLUDE_AUTH)
  335. AC_SUBST(PAM_FILE_INCLUDE_ACCOUNT)
  336. AC_SUBST(PAM_FILE_INCLUDE_PASSWORD)
  337. AC_SUBST(PAM_FILE_INCLUDE_SESSION)
  338. AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_AUTH, "$PAM_FILE_INCLUDE_AUTH", [pam file auth])
  339. AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_ACCOUNT, "$PAM_FILE_INCLUDE_ACCOUNT", [pam file account])
  340. AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_PASSWORD, "$PAM_FILE_INCLUDE_PASSWORD", [pam file password])
  341. AC_DEFINE_UNQUOTED(PAM_FILE_INCLUDE_SESSION, "$PAM_FILE_INCLUDE_SESSION", [pam file session])
  342. dnl ---------------------------------------------------------------------------
  343. dnl - check OS
  344. dnl ---------------------------------------------------------------------------
  345. case "$host_os" in
  346. *linux*)
  347. ;;
  348. *solaris*)
  349. AC_DEFINE([HAVE_SOLARIS], 1, [Is this a Solaris system?])
  350. ;;
  351. *freebsd*)
  352. AC_DEFINE([HAVE_FREEBSD], 1, [Is this a FreeBSD system?])
  353. ;;
  354. esac
  355. GOBJECT_INTROSPECTION_CHECK([0.6.2])
  356. AC_ARG_ENABLE([examples],
  357. AS_HELP_STRING([--enable-examples], [Build the example programs]),,
  358. [enable_examples=yes])
  359. AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_examples" = "xyes")
  360. # ********************
  361. # Internationalization
  362. # ********************
  363. IT_PROG_INTLTOOL([0.40.0])
  364. GETTEXT_PACKAGE=polkit-1
  365. AC_SUBST([GETTEXT_PACKAGE])
  366. AM_GLIB_GNU_GETTEXT
  367. AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
  368. AC_OUTPUT([
  369. Makefile
  370. actions/Makefile
  371. data/Makefile
  372. data/polkit-1
  373. data/polkit-gobject-1.pc
  374. data/polkit-backend-1.pc
  375. data/polkit-agent-1.pc
  376. src/Makefile
  377. src/polkit/Makefile
  378. src/polkitbackend/Makefile
  379. src/polkitagent/Makefile
  380. src/polkitd/Makefile
  381. src/programs/Makefile
  382. src/examples/Makefile
  383. src/nullbackend/Makefile
  384. docs/version.xml
  385. docs/extensiondir.xml
  386. docs/Makefile
  387. docs/polkit/Makefile
  388. docs/man/Makefile
  389. po/Makefile.in
  390. test/Makefile
  391. test/polkit/Makefile
  392. test/polkitbackend/Makefile
  393. ])
  394. dnl ==========================================================================
  395. echo "
  396. polkit $VERSION
  397. =================
  398. prefix: ${prefix}
  399. libdir: ${libdir}
  400. libexecdir: ${libexecdir}
  401. bindir: ${bindir}
  402. sbindir: ${sbindir}
  403. datadir: ${datadir}
  404. sysconfdir: ${sysconfdir}
  405. localstatedir: ${localstatedir}
  406. docdir: ${docdir}
  407. compiler: ${CC}
  408. cflags: ${CFLAGS}
  409. cppflags: ${CPPFLAGS}
  410. xsltproc: ${XSLTPROC}
  411. introspection: ${found_introspection}
  412. Distribution/OS: ${with_os_type}
  413. Authentication framework: ${POLKIT_AUTHFW}
  414. Session tracking: ${SESSION_TRACKING}
  415. PAM support: ${have_pam}"
  416. if test "$have_pam" = yes ; then
  417. echo "
  418. PAM file auth: ${PAM_FILE_INCLUDE_AUTH}
  419. PAM file account: ${PAM_FILE_INCLUDE_ACCOUNT}
  420. PAM file password: ${PAM_FILE_INCLUDE_PASSWORD}
  421. PAM file session: ${PAM_FILE_INCLUDE_SESSION}"
  422. fi
  423. echo "
  424. Maintainer mode: ${USE_MAINTAINER_MODE}
  425. Building verbose mode: ${enable_verbose_mode}
  426. Building api docs: ${enable_gtk_doc}
  427. Building man pages: ${enable_man_pages}
  428. Building examples: ${enable_examples}
  429. "
  430. echo "NOTE: The directory ${sysconfdir}/polkit-1/localauthority must be owned"
  431. echo " by root and have mode 700"
  432. echo
  433. echo "NOTE: The directory ${localstatedir}/lib/polkit-1 must be owned"
  434. echo " by root and have mode 700"
  435. echo
  436. echo "NOTE: The file ${libexecdir}/polkit-agent-helper-1 must be owned"
  437. echo " by root and have mode 4755 (setuid root binary)"
  438. echo
  439. echo "NOTE: The file ${bindir}/pkexec must be owned by root and"
  440. echo " have mode 4755 (setuid root binary)"
  441. echo