configure.ac revision 1c7dde3e475978c569a982d65fd86d4b4e3caad8
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 2010 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# systemd is free software; you can redistribute it and/or modify it
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# under the terms of the GNU General Public License as published by
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# the Free Software Foundation; either version 2 of the License, or
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# (at your option) any later version.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is distributed in the hope that it will be useful, but
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# General Public License for more details.
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PREREQ(2.63)
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],[29],[systemd-devel@lists.freedesktop.org])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_CONFIG_SRCDIR([src/main.c])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_CONFIG_MACRO_DIR([m4])
4f0be680b5323e037314cfbd3dba34f03e637c8fLennart PoetteringAC_CONFIG_HEADERS([config.h])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_USE_SYSTEM_EXTENSIONS
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_SYS_LARGEFILE
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects dist-bzip2])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CANONICAL_HOST
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
907dd1953b7517534d646f5b2777780020c896e2Kay Sievers test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay Sievers [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_SILENT_RULES([yes])
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_CHECK_PROG([STOW], [stow], [yes], [no])
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# i18n stuff for the PolicyKit policy files
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian RodríguezIT_PROG_INTLTOOL([0.40.0])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian RodríguezGETTEXT_PACKAGE=systemd
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_SUBST(GETTEXT_PACKAGE)
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAM_GNU_GETTEXT([external])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAM_GNU_GETTEXT_VERSION([0.18.1])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PROG_MKDIR_P
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_GCC_TRADITIONAL
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_TOOL(OBJCOPY, objcopy)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_TOOL(STRINGS, strings)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversCC_CHECK_CFLAGS_APPEND([ \
b51fc639f01ee6194af3e7e944a79accce474fe1Dave Reisner -Wno-inline \
c1c02e07ed87e027a6364c4f4aa2468796ca1c56Dave Reisner -Wformat=2 \
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart Poettering -Wlogical-op \
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen -Wsign-compare \
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen -Wformat-security \
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-Szmek -Wmissing-include-dirs \
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-Szmek -Wformat-nonliteral \
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers -Wold-style-definition \
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek -Wpointer-arith \
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek -Wdeclaration-after-statement \
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón -Wmissing-prototypes \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek -Wstrict-prototypes \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek -Wredundant-decls \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek -Wmissing-declarations \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek -Wmissing-noreturn \
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sievers -Wendif-labels \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wstrict-aliasing=2 \
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek -Wwrite-strings \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers -Wno-long-long \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -Wno-overlength-strings \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -Wno-unused-parameter \
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa -Wno-missing-field-initializers \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wno-unused-result \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wp,-D_FORTIFY_SOURCE=2 \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -ffast-math \
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding -fno-common \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -fdiagnostics-show-option \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -fno-strict-aliasing \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -fvisibility=hidden \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -ffunction-sections \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -fdata-sections \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wl,--as-needed \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wl,--gc-sections])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De MarchiAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# This makes sure pkg.m4 is available.
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringPKG_CHECK_MODULES(UDEV, [ libudev >= 160 ])
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay SieversAC_SUBST(UDEV_CFLAGS)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST(UDEV_LIBS)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringPKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST(DBUS_CFLAGS)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST(DBUS_LIBS)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringhave_selinux=no
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringif test "x$enable_selinux" != "xno"; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering PKG_CHECK_MODULES(SELINUX, [ libselinux ],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_SUBST(SELINUX_CFLAGS)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_SUBST(SELINUX_LIBS)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringAC_ARG_ENABLE([tcpwrap],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering [case "${enableval}" in
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering yes) have_tcpwrap=yes ;;
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt no) have_tcpwrap=no ;;
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [have_tcpwrap=auto])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieriif test "x${have_tcpwrap}" != xno ; then
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri if test "x${LIBWRAP_LIBS}" = x ; then
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering if test "x$have_tcpwrap" = xyes ; then
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering AC_MSG_ERROR([*** TCP wrappers support not found.])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek have_tcpwrap=yes
9e7adc3ae1133fa08a468768a490812299fad030Lucas De MarchiAC_SUBST(LIBWRAP_LIBS)
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAC_ARG_ENABLE([pam],
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos Foutras AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [case "${enableval}" in
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering yes) have_pam=yes ;;
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering no) have_pam=no ;;
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [have_pam=auto])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekif test "x${have_pam}" != xno ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_CHECK_HEADERS(
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [if test "x$have_pam" = xyes ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** PAM headers not found.])
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl [have_pam=yes],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [if test "x$have_pam" = xyes ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** libpam not found.])
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek if test "x$have_pam" = xyes ; then
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek PAM_LIBS="-lpam -lpam_misc"
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_PAM, 1, [PAM available])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_SUBST(PAM_LIBS)
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([acl],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [case "${enableval}" in
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek yes) have_acl=yes ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek no) have_acl=no ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers [have_acl=auto])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sieversif test "x${have_acl}" != xno ; then
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers AC_CHECK_HEADERS(
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [have_acl=yes],
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [if test "x$have_acl" = xyes ; then
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl AC_MSG_ERROR([*** ACL headers not found.])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers AC_CHECK_LIB(
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers [acl_get_file],
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden [have_acl=yes],
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden [if test "x$have_acl" = xyes ; then
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden AC_MSG_ERROR([*** libacl not found.])
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich if test "x$have_acl" = xyes ; then
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-Szmek ACL_LIBS="-lacl"
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich AC_DEFINE(HAVE_ACL, 1, [ACL available])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST(ACL_LIBS)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
4b357e15876b730343db08719c877fdb45b6ad42Michael MarineauAC_ARG_ENABLE([audit],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [case "${enableval}" in
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen yes) have_audit=yes ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen no) have_audit=no ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [have_audit=auto])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x${have_audit}" != xno ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_CHECK_HEADERS(
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [have_audit=yes],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [if test "x$have_audit" = xyes ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** AUDIT headers not found.])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [have_audit=yes],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [if test "x$have_audit" = xyes ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** libaudit not found.])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen if test "x$have_audit" = xyes ; then
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AUDIT_LIBS="-laudit"
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner have_audit=no
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_SUBST(AUDIT_LIBS)
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenhave_libcryptsetup=no
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenif test "x$enable_libcryptsetup" != "xno"; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup ],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_SUBST(LIBCRYPTSETUP_CFLAGS)
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_SUBST(LIBCRYPTSETUP_LIBS)
f553b3b1074151200187df916427a1468186435eAnders Olofsson if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
f553b3b1074151200187df916427a1468186435eAnders OlofssonAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
f553b3b1074151200187df916427a1468186435eAnders Olofssonhave_binfmt=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersenif test "x$enable_binfmt" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_binfmt=yes
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x$enable_gtk" != "xno"; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 ],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_SUBST(GTK_CFLAGS)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_SUBST(GTK_LIBS)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_MSG_ERROR([*** gtk support requested but libraries not found])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringif test "$have_gtk" = "yes"; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering PKG_CHECK_EXISTS([ libnotify >= 0.7.0 ], [ libnotify07=yes ])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_SUBST(LIBNOTIFY_CFLAGS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_SUBST(LIBNOTIFY_LIBS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(LIBNOTIFY07, [ test "$libnotify07" = "yes" ])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_PROG_VALAC([0.10])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SUBST(VAPIDIR)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_PATH_PROG([XSLTPROC], [xsltproc])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_PATH_PROG([M4], [m4])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux or other]))
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringif test "z$with_distro" = "z"; then
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt if test "$cross_compiling" = yes; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering test -f "/etc/redhat-release" && with_distro="fedora"
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering test -f "/etc/SuSE-release" && with_distro="suse"
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh test -f "/etc/debian_version" && with_distro="debian"
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering test -f "/etc/arch-release" && with_distro="arch"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/gentoo-release" && with_distro="gentoo"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/slackware-version" && with_distro="slackware"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/frugalware-release" && with_distro="frugalware"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/altlinux-release" && with_distro="altlinux"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/mandriva-release" && with_distro="mandriva"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/meego-release" && with_distro="meego"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez test -f "/etc/angstrom-version" && with_distro="angstrom"
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh with_distro="ubuntu"
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez if test "z$with_distro" = "z"; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez with_distro=`uname -s`
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezwith_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# Location of the init scripts as mandated by LSB
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringSYSTEM_SYSVRCND_PATH=/etc/rc.d
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringM4_DISTRO_FLAG=
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringhave_plymouth=no
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringcase $with_distro in
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers M4_DISTRO_FLAG=-DTARGET_FEDORA=1
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering have_plymouth=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=/etc/init.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering M4_DISTRO_FLAG=-DTARGET_SUSE=1
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering have_plymouth=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=/etc
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering M4_DISTRO_FLAG=-DTARGET_DEBIAN=1
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering M4_DISTRO_FLAG=-DTARGET_UBUNTU=1
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=/etc
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering M4_DISTRO_FLAG=-DTARGET_ARCH=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DISTRO_FLAG=-DTARGET_GENTOO=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DISTRO_FLAG=-DTARGET_SLACKWARE=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DISTRO_FLAG=-DTARGET_FRUGALWARE=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_plymouth=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DISTRO_FLAG=-DTARGET_ALTLINUX=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_plymouth=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DISTRO_FLAG=-DTARGET_MANDRIVA=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_plymouth=yes
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering SYSTEM_SYSVINIT_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_MEEGO, [], [Target is MeeGo])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DISTRO_FLAG=-DTARGET_MEEGO=1
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering SYSTEM_SYSVRCND_PATH=/etc
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers M4_DISTRO_FLAG=-DTARGET_ANGSTROM=1
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, SysV init scripts could not be found! (patches welcome); you can specify --with-distro=other to skip this check])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_WITH([sysvinit-path],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AS_HELP_STRING([--with-sysvinit-path=PATH],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_WITH([sysvrcd-path],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AS_HELP_STRING([--with-sysvrcd-path=PATH],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [SYSTEM_SYSVRCND_PATH="$withval"],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(M4_DISTRO_FLAG)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering SYSTEM_SYSV_COMPAT="yes"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering SYSTEM_SYSV_COMPAT="no"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_WITH([tty-gid],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AS_HELP_STRING([--with-tty-gid=GID],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [Specify the numeric GID of the 'tty' group])],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(plymouth, AS_HELP_STRING([--enable-plymouth], [enable plymouth support]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test -n "$enable_plymouth"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_plymouth="$enable_plymouth"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(HAVE_PLYMOUTH, test "$have_plymouth" = "yes")
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_WITH([dbuspolicydir],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_WITH([dbussystemservicedir],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([dbusinterfacedir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([udevrulesdir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([pamlibdir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-pamlibdir=DIR], [Diectory for PAM modules]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_pamlibdir=/lib/`$CC -print-multi-os-directory`/security])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([rootdir],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-rootdir=DIR], [Root directory for files necessary for boot]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [with_rootdir=${ac_default_prefix}])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([udevrulesdir], [$with_udevrulesdir])
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart PoetteringAC_SUBST([pamlibdir], [$with_pamlibdir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST([rootdir], [$with_rootdir])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_CONFIG_FILES([Makefile po/Makefile.in])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering $PACKAGE_NAME $VERSION
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering Distribution: ${with_distro}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering SysV compatibility: ${SYSTEM_SYSV_COMPAT}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering Gtk: ${have_gtk}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering libcryptsetup: ${have_libcryptsetup}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering tcpwrap: ${have_tcpwrap}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering PAM: ${have_pam}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AUDIT: ${have_audit}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering SELinux: ${have_selinux}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering ACL: ${have_acl}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering binfmt: ${have_binfmt}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering plymouth: ${have_plymouth}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering prefix: ${prefix}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering root dir: ${with_rootdir}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering udev rules dir: ${with_udevrulesdir}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering pam modules dir: ${with_pamlibdir}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering dbus policy dir: ${with_dbuspolicydir}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering dbus session dir: ${with_dbussessionservicedir}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering dbus system dir: ${with_dbussystemservicedir}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering dbus interfaces dir: ${with_dbusinterfacedir}