configure.ac revision f553b3b1074151200187df916427a1468186435e
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Kay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# under the terms of the GNU Lesser General Public License as published by
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart 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
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# Lesser General Public License for more details.
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU Lesser General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREREQ([2.64])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://www.freedesktop.org/wiki/Software/systemd])
78a825f216d39ee0295b00647b059d45467e1d02Kay SieversAC_CONFIG_SRCDIR([src/core/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CONFIG_AUX_DIR([build-aux])
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAC_USE_SYSTEM_EXTENSIONS
907dd1953b7517534d646f5b2777780020c896e2Kay SieversAC_SYS_LARGEFILE
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversAC_PREFIX_DEFAULT([/usr])
6aad7f2cd75c88f990c7857bb173b3e8d0faee0fUmut Tezduyar LindskogAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
bbd9b8c2139a70005e4e83d198575e2a10fe1db2Lennart PoetteringAM_SILENT_RULES([yes])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_CANONICAL_HOST
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
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 NoceraAC_PROG_MKDIR_P
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay SieversAC_PROG_CC_C99
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_GCC_TRADITIONAL
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PATH_PROG([M4], [m4])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_PATH_PROG([XSLTPROC], [xsltproc])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier JardónAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart PoetteringAC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart Poettering# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominenm4_ifdef([GTK_DOC_CHECK], [
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom GundersenGTK_DOC_CHECK([1.18],[--flavour no-tmpl])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmekm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-SzmekGOBJECT_INTROSPECTION_CHECK([1.31.1])
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek], [AM_CONDITIONAL([HAVE_INTROSPECTION], [false])])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_TOOL(OBJCOPY, objcopy)
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_TOOL(STRINGS, strings)
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_TOOL(GPERF, gperf)
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekif test -z "$GPERF" ; then
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers AC_MSG_ERROR([*** gperf not found])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek# we use python to build the man page index, and for systemd-python
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_python_devel=no
ac714a78fdca481488d88f84b6332d28083a4511Martin JansaAC_ARG_WITH([python],
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblAS_IF([test "x$with_python" != "xno"], [
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding AM_PATH_PYTHON(,, [:])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek AS_IF([test "$PYTHON" != :], [have_python=yes])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON], [test "$have_python" = "yes"])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAS_IF([test "x$with_python" != "xno"], [
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek AC_PATH_PROG(PYTHON_CONFIG, python${PYTHON_VERSION}-config)
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek AS_IF([test -n "$PYTHON_CONFIG"], [
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek have_python_devel=yes
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek PYTHON_LIBS="`$PYTHON_CONFIG --ldflags`"
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek AC_SUBST(PYTHON_CFLAGS)
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek AC_SUBST(PYTHON_LIBS)
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wsign-compare \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wformat-security \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wmissing-include-dirs \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wformat-nonliteral \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wold-style-definition \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wpointer-arith \
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi -Wdeclaration-after-statement \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wfloat-equal \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-prototypes \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering -Wredundant-decls \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-declarations \
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wendif-labels \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wcast-align \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-aliasing=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wwrite-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-long-long \
03930e48636e86ad84946253ca2bf4f91deeb645Lennart Poettering -Wno-overlength-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-parameter \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering -Wno-missing-field-initializers \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-result \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Werror=overflow \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fdiagnostics-show-option \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fno-strict-aliasing \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fvisibility=hidden \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -ffunction-sections \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fdata-sections \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -fstack-protector \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering --param=ssp-buffer-size=4])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST([OUR_CFLAGS], $with_cflags)
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -Wp,-D_FORTIFY_SOURCE=2])
213298fb822258bb69c6b85b7c8d7f019fd2306aLennart PoetteringAC_SUBST([OUR_CPPFLAGS], $with_cppflags)
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,--as-needed \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,--gc-sections \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAC_SUBST([OUR_LDFLAGS], $with_ldflags)
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart PoetteringAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poetteringsave_LIBS="$LIBS"
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay SieversAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay SieversAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay SieversCAP_LIBS="$LIBS"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekLIBS="$save_LIBS"
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_SUBST(CAP_LIBS)
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([fanotify_init fanotify_mark])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([__secure_getenv secure_getenv])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos Foutras# This makes sure pkg.m4 is available.
5a45a93627609451784a04366cfa1150d32611d1Lennart Poetteringm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-SzmekPKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-SzmekPKG_CHECK_MODULES(KMOD, [libkmod >= 5])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# ------------------------------------------------------------------------------
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
1c231f56482546725c4dbd3303f70300bd3c63e9Lennart Poetteringif test "x$enable_blkid" != "xno"; then
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** blkid support requested but libraries not found])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek yes) have_ima=yes ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek no) have_ima=no ;;
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl [have_ima=yes])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekif test "x${have_ima}" != xno ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmekif test "x$enable_selinux" != "xno"; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** SELinux support requested but libraries not found])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-Szmekif test "x${have_selinux}" != xno ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SUBST(sushell)
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sieversif test "x$enable_xz" != "xno"; then
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers PKG_CHECK_MODULES(XZ, [ liblzma ],
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl AC_MSG_ERROR([*** Xz support requested but libraries not found])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenAC_ARG_ENABLE([tcpwrap],
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden [case "${enableval}" in
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl yes) have_tcpwrap=yes ;;
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering no) have_tcpwrap=no ;;
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering [have_tcpwrap=auto])
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrichif test "x${have_tcpwrap}" != xno ; then
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering if test "x${LIBWRAP_LIBS}" = x ; then
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering if test "x$have_tcpwrap" = xyes ; then
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering AC_MSG_ERROR([*** TCP wrappers support not found.])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer have_tcpwrap=no
2270309471213a3c960543e523130627e9cb10e2Kay Sievers have_tcpwrap=yes
8114dedc5910d9a9cec702f6b6658551a0cd9edeChengwei Yang LIBWRAP_LIBS=
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-SzmekAC_SUBST(LIBWRAP_LIBS)
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([pam],
2270309471213a3c960543e523130627e9cb10e2Kay Sievers AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau [case "${enableval}" in
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek yes) have_pam=yes ;;
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek no) have_pam=no ;;
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [have_pam=auto])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmekif test "x${have_pam}" != xno ; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AC_CHECK_HEADERS(
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [if test "x$have_pam" = xyes ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** PAM headers not found.])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [have_pam=yes],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [if test "x$have_pam" = xyes ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** libpam not found.])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$have_pam" = xyes ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen PAM_LIBS="-lpam -lpam_misc"
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_DEFINE(HAVE_PAM, 1, [PAM available])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_SUBST(PAM_LIBS)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE([acl],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [case "${enableval}" in
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner yes) have_acl=yes ;;
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner no) have_acl=no ;;
a18535d9e138c525d0443ec9f30a90b3e2184686Tom Gundersen *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
70d8320978dcbce022d9acbb953a10a7aca049abDavid Strauss [have_acl=auto])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenif test "x${have_acl}" != xno ; then
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom Gundersen AC_CHECK_HEADERS(
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [have_acl=yes],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [if test "x$have_acl" = xyes ; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_MSG_ERROR([*** ACL headers not found.])
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_CHECK_LIB(
f553b3b1074151200187df916427a1468186435eAnders Olofsson [acl_get_file],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [have_acl=yes],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [if test "x$have_acl" = xyes ; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_MSG_ERROR([*** libacl not found.])
f553b3b1074151200187df916427a1468186435eAnders Olofsson if test "x$have_acl" = xyes ; then
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen ACL_LIBS="-lacl"
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AC_DEFINE(HAVE_ACL, 1, [ACL available])
17df7223be064b1542dbe868e3b35cca977ee639Lennart PoetteringAC_SUBST(ACL_LIBS)
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier# ------------------------------------------------------------------------------
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAC_ARG_ENABLE([xattr],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [case "${enableval}" in
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier yes) have_xattr=yes ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers no) have_xattr=no ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_xattr=auto])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x${have_xattr}" != xno ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_CHECK_HEADERS(
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_xattr=yes],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [if test "x$have_xattr" = xyes ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_MSG_ERROR([*** XATTR headers not found.])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_CHECK_LIB(
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [have_xattr=yes],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [if test "x$have_xattr" = xyes ; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_MSG_ERROR([*** libattr not found.])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering if test "x$have_xattr" = xyes ; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering XATTR_LIBS="-lattr"
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SUBST(XATTR_LIBS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_ARG_ENABLE([gcrypt],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [case "${enableval}" in
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt yes) have_gcrypt=yes ;;
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering no) have_gcrypt=no ;;
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [have_gcrypt=auto])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringif test "x${have_gcrypt}" != xno ; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AM_PATH_LIBGCRYPT(
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [have_gcrypt=yes],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [if test "x$have_gcrypt" = xyes ; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_MSG_ERROR([*** GCRYPT headers not found.])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "x$have_gcrypt" = xyes ; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer GCRYPT_LIBS="$LIBGCRYPT_LIBS"
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer have_gcrypt=no
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer GCRYPT_CFLAGS=
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_SUBST(GCRYPT_LIBS)
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_SUBST(GCRYPT_CFLAGS)
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez# ------------------------------------------------------------------------------
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_ARG_ENABLE([audit],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers [case "${enableval}" in
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh yes) have_audit=yes ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez no) have_audit=no ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [have_audit=auto])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezif test "x${have_audit}" != xno ; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_CHECK_HEADERS(
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_audit=yes],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [if test "x$have_audit" = xyes ; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** AUDIT headers not found.])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [have_audit=yes],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [if test "x$have_audit" = xyes ; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** libaudit not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_audit" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AUDIT_LIBS="-laudit"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(AUDIT_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_libcryptsetup=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_libcryptsetup" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_qrencode=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_qrencode" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_microhttpd=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_microhttpd" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_binfmt" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_binfmt=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_vconsole=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_vconsole" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_vconsole=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_readahead=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_readahead" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_readahead=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_quotacheck=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_quotacheck" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_quotacheck=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringhave_randomseed=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x$enable_randomseed" != "xno"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_randomseed=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x$enable_logind" != "xno"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_logind=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringhave_hostnamed=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x$enable_hostnamed" != "xno"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_hostnamed=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringhave_timedated=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x$enable_timedated" != "xno"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_timedated=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringhave_localed=no
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskiif test "x$enable_localed" != "xno"; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski have_localed=yes
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskihave_coredump=no
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskiif test "x$enable_coredump" != "xno"; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski have_coredump=yes
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH(firmware-path,
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifor i in $with_firmware_path; do
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok if test "x${FIRMWARE_PATH}" = "x"; then
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok FIRMWARE_PATH="\\\"${i}/\\\""
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE([gudev],
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart Poettering AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [], [enable_gudev=yes])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE([keymap],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [], [enable_keymap=yes])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAS_IF([test "x$enable_keymap" = "xyes"], [
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_PATH_PROG([GPERF], [gperf])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test -z "$GPERF"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([gperf is needed])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_manpages=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAS_IF([test "x$enable_manpages" != xno], [
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart 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, mandriva, mageia, angstrom or other]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "z$with_distro" = "z"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "$cross_compiling" = yes; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart 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)])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering with_distro=$($GREP '^ID=' /etc/os-release 2>/dev/null | $SED 's/ID=//');
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "z$with_distro" = "z"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering with_distro=other
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringwith_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# Location of the init scripts as mandated by LSB
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringSYSTEM_SYSVRCND_PATH=/etc/rc.d
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringcase $with_distro in
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering M4_DEFINES=-DTARGET_FEDORA=1
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering opensuse|suse)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering SYSTEM_SYSVRCND_PATH=/etc/init.d
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering M4_DEFINES=-DTARGET_SUSE=1
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering SYSTEM_SYSVRCND_PATH=/etc
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering M4_DEFINES=-DTARGET_DEBIAN=1
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering SYSTEM_SYSVRCND_PATH=/etc
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering M4_DEFINES=-DTARGET_UBUNTU=1
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering SYSTEM_SYSVINIT_PATH=
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering SYSTEM_SYSVRCND_PATH=
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering M4_DEFINES=-DTARGET_ARCH=1
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering SYSTEM_SYSVINIT_PATH=
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering SYSTEM_SYSVRCND_PATH=
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering M4_DEFINES=-DTARGET_GENTOO=1
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering M4_DEFINES=-DTARGET_SLACKWARE=1
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering M4_DEFINES=-DTARGET_FRUGALWARE=1
3f573096641cf3d350c8779971c644ca74aab93aZbigniew Jędrzejewski-Szmek SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering M4_DEFINES=-DTARGET_ALTLINUX=1
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering M4_DEFINES=-DTARGET_MANDRIVA=1
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek SYSTEM_SYSVRCND_PATH=/etc
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
f12be7e8ca278a5a207d0fd051acec700b804a7aZbigniew Jędrzejewski-Szmek M4_DEFINES=-DTARGET_ANGSTROM=1
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek M4_DEFINES=-DTARGET_MAGEIA=1
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna 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])
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_WITH([sysvinit-path],
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna [AS_HELP_STRING([--with-sysvinit-path=PATH],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_ARG_WITH([sysvrcd-path],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [AS_HELP_STRING([--with-sysvrcd-path=PATH],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [SYSTEM_SYSVRCND_PATH="$withval"],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST(M4_DEFINES)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok SYSTEM_SYSV_COMPAT="yes"
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok 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.])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok SYSTEM_SYSV_COMPAT="no"
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH([tty-gid],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [AS_HELP_STRING([--with-tty-gid=GID],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [Specify the numeric GID of the 'tty' group])],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_WITH([dbuspolicydir],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAC_ARG_WITH([dbussystemservicedir],
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAC_ARG_WITH([dbusinterfacedir],
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_WITH([rootprefix],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [], [with_rootprefix=${ac_default_prefix}])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_WITH([rootlibdir],
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay Sievers AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [with_rootlibdir=${libdir}])
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAC_ARG_WITH([pamlibdir],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [with_pamlibdir=${with_rootlibdir}/security])
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAC_ARG_ENABLE([split-usr],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna enable_split_usr=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers enable_split_usr=no
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAS_IF([test "x${enable_split_usr}" = "xyes"], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_SUBST([pamlibdir], [$with_pamlibdir])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST([rootprefix], [$with_rootprefix])
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAC_SUBST([rootlibdir], [$with_rootlibdir])
43ba1b3e642253652cc29c92903cf53e310ce6cbLennart PoetteringAC_CONFIG_FILES([
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAC_MSG_RESULT([
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering $PACKAGE_NAME $VERSION
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering Distribution: ${with_distro}
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering SysV compatibility: ${SYSTEM_SYSV_COMPAT}
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna libcryptsetup: ${have_libcryptsetup}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna tcpwrap: ${have_tcpwrap}
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers PAM: ${have_pam}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna AUDIT: ${have_audit}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna IMA: ${have_ima}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna SELinux: ${have_selinux}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers XZ: ${have_xz}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering ACL: ${have_acl}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering XATTR: ${have_xattr}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering GCRYPT: ${have_gcrypt}
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers QRENCODE: ${have_qrencode}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering MICROHTTPD: ${have_microhttpd}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering binfmt: ${have_binfmt}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering vconsole: ${have_vconsole}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering readahead: ${have_readahead}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering quotacheck: ${have_quotacheck}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering randomseed: ${have_randomseed}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering logind: ${have_logind}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering hostnamed: ${have_hostnamed}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering timedated: ${have_timedated}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering localed: ${have_localed}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering coredump: ${have_coredump}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering blkid: ${have_blkid}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters firmware path: ${FIRMWARE_PATH}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters gudev: ${enable_gudev}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters gintrospection: ${enable_introspection}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters keymap: ${enable_keymap}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters Python: ${have_python}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters Python Headers: ${have_python_devel}
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters prefix: ${prefix}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering rootprefix: ${with_rootprefix}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering sysconf dir: ${sysconfdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering datarootdir: ${datarootdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering includedir: ${includedir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering include_prefix: ${INCLUDE_PREFIX}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering lib dir: ${libdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering rootlib dir: ${with_rootlibdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering PAM modules dir: ${with_pamlibdir}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering D-Bus policy dir: ${with_dbuspolicydir}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek D-Bus session dir: ${with_dbussessionservicedir}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek D-Bus system dir: ${with_dbussystemservicedir}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek D-Bus interfaces dir: ${with_dbusinterfacedir}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek Split /usr: ${enable_split_usr}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek man pages: ${have_manpages}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek gtk-doc: ${enable_gtk_doc}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering CPPLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
c97a6dbcf10990bcc2455e842a41bf14b01f358dLukasz Skalski PYTHON_CFLAGS: ${PYTHON_CFLAGS}
146ccaafd5c9d4f2798240b049f595f70f45f77bDave Reisner PYTHON_LIBS: ${PYTHON_LIBS}