configure.ac revision d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9e
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Kay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
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#
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.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
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/>.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREREQ([2.64])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],
76d4bef384ba8d1fbf1a8d44237012ce6292e519Lennart Poettering [213],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://www.freedesktop.org/wiki/Software/systemd])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
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])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier Jardón
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAC_USE_SYSTEM_EXTENSIONS
907dd1953b7517534d646f5b2777780020c896e2Kay SieversAC_SYS_LARGEFILE
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversAC_PREFIX_DEFAULT([/usr])
6aad7f2cd75c88f990c7857bb173b3e8d0faee0fUmut Tezduyar LindskogAM_MAINTAINER_MODE([enable])
bbd9b8c2139a70005e4e83d198575e2a10fe1db2Lennart PoetteringAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CANONICAL_HOST
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAS_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
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversLT_PREREQ(2.2)
8666abb452db73d9a11ead61251eec42bc531cceKay SieversLT_INIT([disable-static])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian RodríguezAS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart PoetteringAS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera# i18n stuff for the PolicyKit policy files
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraIT_PROG_INTLTOOL([0.40.0])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraGETTEXT_PACKAGE=systemd
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_SUBST(GETTEXT_PACKAGE)
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_MKDIR_P
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_LN_S
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_SED
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay SieversAC_PROG_GREP
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_PROG_AWK
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_CC_C99
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_PATH_PROG([M4], [m4])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([XSLTPROC], [xsltproc])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon], [$PATH:/usr/sbin:/sbin])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck], [$PATH:/usr/sbin:/sbin])
b51fc639f01ee6194af3e7e944a79accce474fe1Dave Reisner
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap], [$PATH:/usr/sbin:/sbin])
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([KILL], [kill], [/usr/bin/kill], [$PATH:/usr/sbin:/sbin])
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart Poettering
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-Szmek
446883528524429283626208928b51f49f28f810Lennart PoetteringAS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
446883528524429283626208928b51f49f28f810Lennart Poettering
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-SzmekM4_DEFINES=
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmekm4_ifdef([GTK_DOC_CHECK], [
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-SzmekGTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek enable_gtk_doc=no])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sieversm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay SieversGOBJECT_INTROSPECTION_CHECK([1.31.1])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek], [
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek enable_introspection=no])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
ac714a78fdca481488d88f84b6332d28083a4511Martin JansaAC_CHECK_TOOL(STRINGS, strings)
ac714a78fdca481488d88f84b6332d28083a4511Martin JansaAC_CHECK_TOOL(GPERF, gperf)
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblif test -z "$GPERF" ; then
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl AC_MSG_ERROR([*** gperf not found])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblfi
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekaddress_sanitizer_cflags=
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekaddress_sanitizer_cppflags=
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekaddress_sanitizer_ldflags=
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_address_sanitizer" = "xyes"], [
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek AS_IF([test -z "$with_as_cflags"],
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** -fsanitize=address is not supported])])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1"
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek address_sanitizer_cppflags="-DVALGRIND=1"
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek address_sanitizer_ldflags="-Wc,-fsanitize=address"
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek ])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekundefined_sanitizer_cflags=
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekundefined_sanitizer_cppflags=
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekundefined_sanitizer_ldflags=
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(undefined-sanitizer, AS_HELP_STRING([--enable-undefined-sanitizer], [enable -fsanitize=undefined]))
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_undefined_sanitizer" = "xyes"], [
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek CC_CHECK_FLAG_APPEND([with_us_cflags], [CFLAGS], [-fsanitize=undefined])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek AS_IF([test -z "$with_us_cflags"],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** -fsanitize=undefined is not supported])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek undefined_sanitizer_cflags="$with_us_cflags -fno-omit-frame-pointer -DVALGRIND=1"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek undefined_sanitizer_cppflags="-DVALGRIND=1"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek undefined_sanitizer_ldflags="-Wc,-fsanitize=undefined"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek ])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmeksanitizer_cflags="$address_sanitizer_cflags $undefined_sanitizer_cflags"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmeksanitizer_cppflags="$address_sanitizer_cppflags $undefined_sanitizer_cppflags"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmeksanitizer_ldflags="$address_sanitizer_ldflags $undefined_sanitizer_ldflags"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De MarchiCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -pipe \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wall \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wextra \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering -Wno-inline \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wundef \
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wlogical-op \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wsign-compare \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-include-dirs \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Winit-self \
03930e48636e86ad84946253ca2bf4f91deeb645Lennart Poettering -Wdeclaration-after-statement \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wfloat-equal \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering -Wsuggest-attribute=noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wredundant-decls \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-declarations \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wshadow \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wendif-labels \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-aliasing=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wwrite-strings \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-long-long \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-overlength-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-parameter \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-missing-field-initializers \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -Wno-unused-result \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -Werror=overflow \
213298fb822258bb69c6b85b7c8d7f019fd2306aLennart Poettering -Wdate-time \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering -Wnested-externs \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -ffast-math \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fno-common \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fdiagnostics-show-option \
9f64229f9ca69f5652b238a67531432e56108bd6Zbigniew Jędrzejewski-Szmek -fdiagnostics-color \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fno-strict-aliasing \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fvisibility=hidden \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -ffunction-sections \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -fdata-sections \
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering -fstack-protector \
aca33b078cd32c5416a7fa3d5020a5d461c130eeCristian Rodríguez -fstack-protector-strong \
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez -fPIE \
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering --param=ssp-buffer-size=4])
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay SieversAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers -flto])],
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
03a170c03cd4a09721369ece48affb70d66c6b90Kay SieversAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek -Wp,-D_FORTIFY_SOURCE=2])],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $sanitizer_cppflags")
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi
9e7adc3ae1133fa08a468768a490812299fad030Lucas De MarchiCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wl,--as-needed \
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos Foutras -Wl,--no-undefined \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wl,--gc-sections \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wl,-z,relro \
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmek -Wl,-z,now \
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez -pie \
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmek -Wl,-fuse-ld=gold])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(pid_t)
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(uid_t)
1c231f56482546725c4dbd3303f70300bd3c63e9Lennart PoetteringAC_CHECK_SIZEOF(gid_t)
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(time_t)
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(rlim_t,,[
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek #include <sys/time.h>
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek #include <sys/resource.h>
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek])
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# we use python to build the man page index, and for systemd-python
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekhave_python=no
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_ARG_WITH([python],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmekhave_lxml=no
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_IF([test "x$with_python" != "xno"], [
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AM_PATH_PYTHON(,, [:])
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes], [have_lxml=no])
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek AS_IF([test "$PYTHON" != : -a $have_lxml = yes], [have_python=yes])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_IF([test "x$PYTHON_BINARY" = "x"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AS_IF([test "x$have_python" = "xyes"],
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl [PYTHON_BINARY="$(which "$PYTHON")"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [PYTHON_BINARY=/usr/bin/python])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-SzmekAS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** python-devel support requires --with-python])])
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekhave_python_devel=no
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-SzmekAS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [have_python_devel=yes],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [have_python_devel=yes],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [have_python_devel=no])])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-Szmek AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart PoetteringAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
4b357e15876b730343db08719c877fdb45b6ad42Michael MarineauAC_CHECK_HEADERS([linux/btrfs.h], [], [])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# unconditionally pull-in librt with old glibc versions
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Bieblsave_LIBS="$LIBS"
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblLIBS=
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblCAP_LIBS="$LIBS"
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_SUBST(CAP_LIBS)
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversLIBS=
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenRT_LIBS="$LIBS"
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn LanddenAC_SUBST(RT_LIBS)
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblLIBS="$save_LIBS"
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael OlbrichAC_CHECK_FUNCS([fanotify_init fanotify_mark])
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([__secure_getenv secure_getenv])
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart PoetteringAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, LO_FLAGS_PARTSCAN], [], [], [[#include <sys/types.h>
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering#include <unistd.h>
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich#include <sys/mount.h>
3b794314149e40afaf3c456285e1e529747b6560Holger Schurig#include <fcntl.h>
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering#include <sched.h>
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering#include <linux/loop.h>]])
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen# This makes sure pkg.m4 is available.
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
2270309471213a3c960543e523130627e9cb10e2Kay Sievers# ------------------------------------------------------------------------------
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmekhave_dbus=no
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
8114dedc5910d9a9cec702f6b6658551a0cd9edeChengwei YangAS_IF([test "x$enable_dbus" != "xno"], [
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek [have_dbus=no])
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
2270309471213a3c960543e523130627e9cb10e2Kay SieversAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmekhave_compat_libs=no
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek yes) have_compat_libs=yes ;;
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek no) have_compat_libs=no ;;
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek esac],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [have_compat_libs=no])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_coverage=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_coverage" = "xyes" ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$lcov_found" = xno ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** lcov support requested but the program was not found])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen else
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen else
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen have_coverage=yes
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -fprofile-arcs \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -ftest-coverage])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen fi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen fi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenfi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenhave_kmod=no
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenif test "x$enable_kmod" != "xno"; then
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner if test "x$have_kmod" = "xyes"; then
a18535d9e138c525d0443ec9f30a90b3e2184686Tom Gundersen PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
70d8320978dcbce022d9acbb953a10a7aca049abDavid Strauss AC_MSG_ERROR([*** kmod version >= 15 not found]))
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner fi
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom Gundersen AC_MSG_ERROR([*** kmod support requested, but libraries not found])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen fi
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenfi
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofsson# ------------------------------------------------------------------------------
f553b3b1074151200187df916427a1468186435eAnders Olofssonhave_blkid=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x$enable_blkid" != "xno"; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
f553b3b1074151200187df916427a1468186435eAnders Olofsson if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_MSG_ERROR([*** blkid support requested but libraries not found])
f553b3b1074151200187df916427a1468186435eAnders Olofsson fi
f553b3b1074151200187df916427a1468186435eAnders Olofssonfi
f553b3b1074151200187df916427a1468186435eAnders OlofssonAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier# ------------------------------------------------------------------------------
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierhave_seccomp=no
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support]))
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierif test "x$enable_seccomp" != "xno"; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0],
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available])
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering have_seccomp=yes
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [have_seccomp=no])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AC_MSG_ERROR([*** seccomp support requested but libraries not found])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier fi
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierfi
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAM_CONDITIONAL(HAVE_SECCOMP, [test "$have_seccomp" = "yes"])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuhave_ima=yes
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [case "${enableval}" in
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu yes) have_ima=yes ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu no) have_ima=no ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu esac],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_ima=yes])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x${have_ima}" != xno ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassufi
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringhave_chkconfig=yes
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [case "${enableval}" in
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering yes) have_chkconfig=yes ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering no) have_chkconfig=no ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering esac],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [AC_PATH_PROG(CHKCONFIG, chkconfig)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering if test -z "$CHKCONFIG"; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering have_chkconfig=no
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering else
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering have_chkconfig=yes
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering fi])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringif test "x${have_chkconfig}" != xno ; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringfi
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringhave_selinux=no
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringif test "x$enable_selinux" != "xno"; then
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available])
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering have_selinux=yes
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SELINUX"],
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [have_selinux=no])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering fi
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshfi
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererhave_apparmor=no
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_ARG_ENABLE(apparmor, AS_HELP_STRING([--disable-apparmor], [Disable optional AppArmor support]))
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererif test "x$enable_apparmor" != "xno"; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer PKG_CHECK_MODULES([APPARMOR], [libapparmor],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [AC_DEFINE(HAVE_APPARMOR, 1, [Define if AppArmor is available])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer have_apparmor=yes
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer M4_DEFINES="$M4_DEFINES -DHAVE_APPARMOR"],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [have_apparmor=no])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "x$have_apparmor" = xno -a "x$enable_apparmor" = xyes; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_MSG_ERROR([*** AppArmor support requested but libraries not found])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer fi
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererfi
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAM_CONDITIONAL(HAVE_APPARMOR, [test "$have_apparmor" = "yes"])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_ARG_WITH(debug-shell,
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AS_HELP_STRING([--with-debug-shell=PATH],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [Path to debug shell binary]),
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [SUSHELL="$withval"],[
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay SieversAC_SUBST(SUSHELL)
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_ARG_WITH([debug-tty],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AS_HELP_STRING([--with-debug-tty=PATH],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [Specify the tty device for debug shell]),
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [DEBUGTTY="$withval"],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [DEBUGTTY=/dev/tty9])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_SUBST(DEBUGTTY)
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringhave_xz=no
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringif test "x$enable_xz" != "xno"; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** Xz support requested but libraries not found])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering fi
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringfi
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([pam],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_pam=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_pam=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering esac],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_pam}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** PAM headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_LIB(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [pam],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [pam_syslog],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** libpam not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM_LIBS="-lpam -lpam_misc"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_PAM"
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering else
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering have_pam=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringelse
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM_LIBS=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(PAM_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([acl],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_acl=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_acl=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering esac],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=auto])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_acl}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_CHECK_HEADERS(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [sys/acl.h acl/libacl.h],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_CHECK_LIB(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [acl],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [acl_get_file],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** libacl not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACL_LIBS="-lacl"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_ACL, 1, [ACL available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering else
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_acl=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringelse
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACL_LIBS=
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(ACL_LIBS)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [case "${enableval}" in
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski yes) have_smack=yes ;;
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski no) have_smack=no ;;
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski esac],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [have_smack=auto])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sieversif test "x${have_smack}" = xauto; then
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sievers M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sievers have_smack=yes
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke KokAC_ARG_WITH(smack-run-label,
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke KokAS_HELP_STRING([--with-smack-run-label=STRING],
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok [run systemd --system with a specific SMACK label]),
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])],
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok [])
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskiif test "x${have_smack}" = xyes ; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart PoetteringAC_ARG_ENABLE([gcrypt],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [case "${enableval}" in
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering yes) have_gcrypt=yes ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering no) have_gcrypt=no ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering esac],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_gcrypt=auto])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x${have_gcrypt}" != xno ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AM_PATH_LIBGCRYPT(
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [1.4.5],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_gcrypt=yes],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [if test "x$have_gcrypt" = xyes ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** GCRYPT headers not found.])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_gcrypt" = xyes ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_LIBS="$LIBGCRYPT_LIBS"
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering else
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_gcrypt=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringelse
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_LIBS=
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_CFLAGS=
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST(GCRYPT_LIBS)
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST(GCRYPT_CFLAGS)
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE([audit],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [case "${enableval}" in
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering yes) have_audit=yes ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering no) have_audit=no ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering esac],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_audit=auto])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x${have_audit}" != xno ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_HEADERS(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [libaudit.h],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_audit=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** AUDIT headers not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_LIB(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [audit],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [audit_open],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_audit=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** libaudit not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AUDIT_LIBS="-laudit"
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering else
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_audit=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringelse
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AUDIT_LIBS=
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST(AUDIT_LIBS)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringhave_libcryptsetup=no
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x$enable_libcryptsetup" != "xno"; then
8cf3ca80680b43015971cbbf4625517ae859d50cJan Janssen PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ],
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering fi
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringfi
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringhave_qrencode=no
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringif test "x$enable_qrencode" != "xno"; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering fi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringfi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering# ------------------------------------------------------------------------------
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringhave_microhttpd=no
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringif test "x$enable_microhttpd" != "xno"; then
3f573096641cf3d350c8779971c644ca74aab93aZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.33],
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering fi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringfi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmekhave_gnutls=no
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(gnutls, AS_HELP_STRING([--disable-gnutls], [disable gnutls support]))
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmekif test "x$enable_gnutls" != "xno"; then
f12be7e8ca278a5a207d0fd051acec700b804a7aZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.1.4],
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_GNUTLS, 1, [Define if gnutls is available]) have_gnutls=yes], have_gnutls=no)
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek if test "x$have_gnutls" = xno -a "x$enable_gnutls" = xyes; then
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** gnutls support requested but libraries not found])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek fi
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmekfi
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_GNUTLS, [test "$have_gnutls" = "yes"])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnahave_binfmt=no
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnaif test "x$enable_binfmt" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_binfmt=yes
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnafi
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringhave_vconsole=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x$enable_vconsole" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_vconsole=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringhave_readahead=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x$enable_readahead" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_readahead=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok# ------------------------------------------------------------------------------
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokhave_bootchart=no
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokif test "x$enable_bootchart" != "xno"; then
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok have_bootchart=yes
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokfi
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringhave_quotacheck=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_quotacheck" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_quotacheck=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar# ------------------------------------------------------------------------------
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarhave_tmpfiles=no
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarif test "x$enable_tmpfiles" != "xno"; then
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar have_tmpfiles=yes
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarfi
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringhave_randomseed=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_randomseed" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_randomseed=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering# ------------------------------------------------------------------------------
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poetteringhave_backlight=no
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poetteringif test "x$enable_backlight" != "xno"; then
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering have_backlight=yes
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poetteringfi
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering# ------------------------------------------------------------------------------
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringhave_rfkill=no
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringif test "x$enable_rfkill" != "xno"; then
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering have_rfkill=yes
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringfi
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievershave_logind=no
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversif test "x$enable_logind" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_logind=yes
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversfi
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay SieversAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering# ------------------------------------------------------------------------------
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringhave_machined=no
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringif test "x$enable_machined" != "xno"; then
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering have_machined=yes
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringfi
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnahave_hostnamed=no
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnaif test "x$enable_hostnamed" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_hostnamed=yes
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnafi
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnahave_timedated=no
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnaif test "x$enable_timedated" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_timedated=yes
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnafi
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievershave_timesyncd=no
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAC_ARG_ENABLE(timesyncd, AS_HELP_STRING([--disable-timesyncd], [disable timesync daemon]))
43ba1b3e642253652cc29c92903cf53e310ce6cbLennart Poetteringif test "x$enable_timesyncd" != "xno"; then
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers have_timesyncd=yes
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sieversfi
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAM_CONDITIONAL(ENABLE_TIMESYNCD, [test "$have_timesyncd" = "yes"])
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAC_ARG_WITH(ntp-servers,
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering AS_HELP_STRING([--with-ntp-servers=NTPSERVERS],
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering [Space-separated list of default NTP servers]),
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering [NTP_SERVERS="$withval"],
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering [NTP_SERVERS="time1.google.com time2.google.com time3.google.com time4.google.com"])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAC_SUBST(NTP_SERVERS)
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_ARG_WITH(time-epoch,
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering AS_HELP_STRING([--with-time-epoch=SECONDS],
5ea846cc5197682d07ee46398996a8c3ccfbcc38Zbigniew Jędrzejewski-Szmek [Time epoch for time clients]),
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering [TIME_EPOCH="$withval"],
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering [TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"])
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_DEFINE_UNQUOTED(TIME_EPOCH, [$TIME_EPOCH], [Time Epoch])
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering# ------------------------------------------------------------------------------
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_WITH(system-uid-max,
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering AS_HELP_STRING([--with-system-uid-max=UID]
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [Maximum UID for system users]),
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [SYSTEM_UID_MAX="$withval"],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [SYSTEM_UID_MAX="`awk 'BEGIN { uid=999 } /^\s*SYS_UID_MAX\s+/ { uid=$2 } END { print uid }' /etc/login.defs 2>/dev/null || echo 999`"])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_DEFINE_UNQUOTED(SYSTEM_UID_MAX, [$SYSTEM_UID_MAX], [Maximum System UID])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST(SYSTEM_UID_MAX)
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering# ------------------------------------------------------------------------------
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_WITH(system-gid-max,
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering AS_HELP_STRING([--with-system-gid-max=GID]
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [Maximum GID for system groups]),
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [SYSTEM_GID_MAX="$withval"],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [SYSTEM_GID_MAX="`awk 'BEGIN { gid=999 } /^\s*SYS_GID_MAX\s+/ { gid=$2 } END { print gid }' /etc/login.defs 2>/dev/null || echo 999`"])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_DEFINE_UNQUOTED(SYSTEM_GID_MAX, [$SYSTEM_GID_MAX], [Maximum System GID])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_SUBST(SYSTEM_GID_MAX)
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers# ------------------------------------------------------------------------------
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnahave_localed=no
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnaif test "x$enable_localed" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_localed=yes
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnafi
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringhave_coredump=no
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringif test "x$enable_coredump" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_coredump=yes
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringfi
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering# ------------------------------------------------------------------------------
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringhave_polkit=no
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringif test "x$enable_polkit" != "xno"; then
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering have_polkit=yes
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringfi
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters# ------------------------------------------------------------------------------
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersenhave_resolved=no
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAC_ARG_ENABLE(resolved, AS_HELP_STRING([--disable-resolved], [disable resolve daemon]))
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersenif test "x$enable_resolved" != "xno"; then
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen have_resolved=yes
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Waltersfi
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAM_CONDITIONAL(ENABLE_RESOLVED, [test "$have_resolved" = "yes"])
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom GundersenAC_ARG_WITH(dns-servers,
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen AS_HELP_STRING([--with-dns-servers=DNSSERVERS],
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen [Space-separated list of default DNS servers]),
49e5c2b26aa72a7aa117c1e04763852a4b69136bZbigniew Jędrzejewski-Szmek [DNS_SERVERS="$withval"],
7b4d79683998a78d6e123dd034b1e06b74d8030bTom Gundersen [DNS_SERVERS="8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844"])
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom GundersenAC_DEFINE_UNQUOTED(DNS_SERVERS, ["$DNS_SERVERS"], [Default DNS Servers])
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom GundersenAC_SUBST(DNS_SERVERS)
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen# ------------------------------------------------------------------------------
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersenhave_networkd=no
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersenif test "x$enable_networkd" != "xno"; then
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen have_networkd=yes
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersenfi
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAS_IF([test "x$have_networkd" = "xyes" -a "x$have_kmod" != "xyes"],
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen [AC_MSG_ERROR([networkd requires kmod])])
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering# ------------------------------------------------------------------------------
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poetteringhave_efi=no
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poetteringif test "x$enable_efi" != "xno"; then
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering have_efi=yes
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poetteringfi
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmekhave_multi_seat_x=no
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(multi_seat_x, AS_HELP_STRING([--disable-multi-seat-x], [do not build multi-seat-x]))
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmekif test "x$enable_multi_seat_x" != "xno"; then
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek have_multi_seat_x=yes
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmekfi
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"])
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering# ------------------------------------------------------------------------------
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poetteringhave_kdbus=no
c97a6dbcf10990bcc2455e842a41bf14b01f358dLukasz SkalskiAC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
146ccaafd5c9d4f2798240b049f595f70f45f77bDave Reisnerif test "x$enable_kdbus" = "xyes"; then
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering have_kdbus=yes
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poetteringfi
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart PoetteringAM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering# ------------------------------------------------------------------------------
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_WITH(rc-local-script-path-start,
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [Path to /etc/rc.local]),
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [RC_LOCAL_SCRIPT_PATH_START="$withval"],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_WITH(rc-local-script-path-stop,
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering [Path to /usr/sbin/halt.local]),
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering# ------------------------------------------------------------------------------
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_WITH(kbd-loadkeys,
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AS_HELP_STRING([--with-kbd-loadkeys=PATH],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [Path to loadkeys]),
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [KBD_LOADKEYS="$withval"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [KBD_LOADKEYS="/usr/bin/loadkeys"])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_WITH(kbd-setfont,
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AS_HELP_STRING([--with-kbd-setfont=PATH],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [Path to setfont]),
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [KBD_SETFONT="$withval"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [KBD_SETFONT="/usr/bin/setfont"])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_SUBST(KBD_LOADKEYS)
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_SUBST(KBD_SETFONT)
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_ARG_WITH(telinit,
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez AS_HELP_STRING([--with-telinit=PATH],
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [Path to telinit]),
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [TELINIT="$withval"],
abaaabf40a9891014ed4c402d7beb5a67ac256b1Lennart Poettering [TELINIT="/lib/sysvinit/telinit"])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_SUBST(TELINIT)
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez
54b434b1b5055f934230fe04fad35b01642b8488Lennart PoetteringAC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenhave_myhostname=no
f8c5a5815ff7c137d9a1e5d7b48a6532b9f31407Lennart PoetteringAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenif test "x$enable_myhostname" != "xno"; then
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_HEADER_STDC
a3b6fafed441d96380a3f089118f7486d6aa3126Lennart Poettering AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h sys/auxv.h])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_C_CONST
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_TYPE_SIZE_T
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_HEADER_TIME
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_FUNC_MALLOC
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_FUNC_SELECT_ARGTYPES
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen have_myhostname=yes
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenfi
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(firmware-path,
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen [Firmware search path (default="")]),
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen [], [with_firmware_path=""])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversOLD_IFS=$IFS
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversIFS=:
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfor i in $with_firmware_path; do
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x${FIRMWARE_PATH}" = "x"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers FIRMWARE_PATH="\\\"${i}/\\\""
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers else
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers fi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversdone
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversIFS=$OLD_IFS
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom GundersenAC_SUBST(FIRMWARE_PATH)
d8d4bee76cf3b40ea923bc57d44aa0815ca9b5ffKay SieversAS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom GundersenAM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([gudev],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [], [enable_gudev=yes])
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0]) ])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poetteringhave_manpages=no
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart PoetteringAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
4ca39b280fce3c60d2fdecbd478fd9bf7f9d3e64Mike GilbertAS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering# Location of the init scripts as mandated by LSB
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart PoetteringSYSTEM_SYSVRCND_PATH=/etc/rc.d
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_WITH([sysvinit-path],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [AS_HELP_STRING([--with-sysvinit-path=PATH],
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering [Specify the path to where the SysV init scripts are located])],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [SYSTEM_SYSVINIT_PATH="$withval"],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart PoetteringAC_ARG_WITH([sysvrcnd-path],
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering [Specify the path to the base directory for the SysV rcN.d directories])],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [SYSTEM_SYSVRCND_PATH="$withval"],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio SYSTEM_SYSV_COMPAT="yes"
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcnd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioelse
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio SYSTEM_SYSV_COMPAT="no"
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciofi
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_SUBST(M4_DEFINES)
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAC_ARG_WITH([tty-gid],
a05ea46dc788929bc8b13afb4208ca29cad68572Michael Biebl [AS_HELP_STRING([--with-tty-gid=GID],
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering [Specify the numeric GID of the 'tty' group])],
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering [])
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbuspolicydir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussystemservicedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
03c149144d374cffd40a17ffb067837e3e220933Michael Biebl [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbusinterfacedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
03c149144d374cffd40a17ffb067837e3e220933Michael Biebl [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAC_ARG_WITH([bashcompletiondir],
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl [],
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl ] , [
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl with_bashcompletiondir=${datadir}/bash-completion/completions
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl ])])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl
4f87c47b35cf9c1f58872559ae67a2656712fdd6William GiokasAC_ARG_WITH([zshcompletiondir],
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]),
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas [], [with_zshcompletiondir=${datadir}/zsh/site-functions])
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_ARG_WITH([rootprefix],
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
39ad55a9aa99451f982628af6e14581092b2d2f6Kay Sievers [], [with_rootprefix=${ac_default_prefix}])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_ARG_WITH([rootlibdir],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [with_rootlibdir=${libdir}])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_ARG_WITH([pamlibdir],
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [],
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [with_pamlibdir=${with_rootlibdir}/security])
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-SzmekAC_ARG_WITH([pamconfdir],
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek [],
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek [with_pamconfdir=${sysconfdir}/pam.d])
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_ENABLE([split-usr],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny enable_split_usr=yes
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny ], [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny enable_split_usr=no
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny ])])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAS_IF([test "x${enable_split_usr}" = "xyes"], [
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny])
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek# Work around intltoolize and gtk-doc problems in VPATH builds
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek [Define to do gtk-doc tests])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAS_IF([test "x$0" != "x./configure"], [
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal BakkenAC_ARG_ENABLE(tests,
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken [AC_HELP_STRING([--disable-tests], [disable tests])],
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken enable_tests=$enableval, enable_tests=yes)
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal BakkenAM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
4f87c47b35cf9c1f58872559ae67a2656712fdd6William GiokasAC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_SUBST([pamlibdir], [$with_pamlibdir])
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-SzmekAC_SUBST([pamconfdir], [$with_pamconfdir])
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_SUBST([rootprefix], [$with_rootprefix])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_SUBST([rootlibdir], [$with_rootlibdir])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_CONFIG_FILES([
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers Makefile po/Makefile.in
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/libudev/Makefile
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/libudev/version.xml
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/gudev/Makefile
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/gudev/version.xml
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
a45a909fbbe11ad8c75cda5639d875476ac65453Christian RuppertAC_OUTPUT
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_MSG_RESULT([
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $PACKAGE_NAME $VERSION
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering libcryptsetup: ${have_libcryptsetup}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM: ${have_pam}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AUDIT: ${have_audit}
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu IMA: ${have_ima}
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AppArmor: ${have_apparmor}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering SELinux: ${have_selinux}
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier SECCOMP: ${have_seccomp}
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski SMACK: ${have_smack}
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering XZ: ${have_xz}
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACL: ${have_acl}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT: ${have_gcrypt}
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering QRENCODE: ${have_qrencode}
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering MICROHTTPD: ${have_microhttpd}
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering CHKCONFIG: ${have_chkconfig}
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek GNUTLS: ${have_gnutls}
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna binfmt: ${have_binfmt}
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering vconsole: ${have_vconsole}
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering readahead: ${have_readahead}
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok bootchart: ${have_bootchart}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering quotacheck: ${have_quotacheck}
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar tmpfiles: ${have_tmpfiles}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering randomseed: ${have_randomseed}
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering backlight: ${have_backlight}
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering rfkill: ${have_rfkill}
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers logind: ${have_logind}
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering machined: ${have_machined}
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna hostnamed: ${have_hostnamed}
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna timedated: ${have_timedated}
a91df40e69fec72cc98c9829721fa5153da28bc2Kay Sievers timesyncd: ${have_timesyncd}
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering default NTP servers: ${NTP_SERVERS}
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering time epoch: ${TIME_EPOCH}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna localed: ${have_localed}
7a243b22041595a0c7e0dffb3ef5e2158dde933fJason A. Donenfeld networkd: ${have_networkd}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen resolved: ${have_resolved}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen default DNS servers: ${DNS_SERVERS}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering coredump: ${have_coredump}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering polkit: ${have_polkit}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering efi: ${have_efi}
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen kmod: ${have_kmod}
f553b3b1074151200187df916427a1468186435eAnders Olofsson blkid: ${have_blkid}
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek dbus: ${have_dbus}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen nss-myhostname: ${have_myhostname}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers gudev: ${enable_gudev}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers gintrospection: ${enable_introspection}
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-Szmek multi-seat-x: ${have_multi_seat_x}
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering kdbus: ${have_kdbus}
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering Python: ${have_python}
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering Python Headers: ${have_python_devel}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek man pages: ${have_manpages}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek gtk-doc: ${enable_gtk_doc}
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen test coverage: ${have_coverage}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek Split /usr: ${enable_split_usr}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek SysV compatibility: ${SYSTEM_SYSV_COMPAT}
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek compatibility libraries: ${have_compat_libs}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering prefix: ${prefix}
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers rootprefix: ${with_rootprefix}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers sysconf dir: ${sysconfdir}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers datarootdir: ${datarootdir}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers includedir: ${includedir}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers include_prefix: ${INCLUDE_PREFIX}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers lib dir: ${libdir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers rootlib dir: ${with_rootlibdir}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek Build Python: ${PYTHON}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek Installation Python: ${PYTHON_BINARY}
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-Szmek sphinx binary: ${SPHINX_BUILD}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek firmware path: ${FIRMWARE_PATH}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering PAM modules dir: ${with_pamlibdir}
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek PAM configuration dir: ${with_pamconfdir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus policy dir: ${with_dbuspolicydir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus session dir: ${with_dbussessionservicedir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus system dir: ${with_dbussystemservicedir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus interfaces dir: ${with_dbusinterfacedir}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl Bash completions dir: ${with_bashcompletiondir}
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas Zsh completions dir: ${with_zshcompletiondir}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez Debug shell: ${SUSHELL} @ ${DEBUGTTY}
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering Maximum System UID: ${SYSTEM_UID_MAX}
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering Maximum System GID: ${SYSTEM_GID_MAX}
66be6554807773028a0111addb8e75c3cab11117Kay Sievers
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
1f048a6b6bcc30d2e157711b3d231d7a944e6ffbJan Engelhardt CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek PYTHON_CFLAGS: ${PYTHON_DEVEL_CFLAGS}
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek PYTHON_LIBS: ${PYTHON_DEVEL_LIBS}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers])