configure.ac revision 1fab0cbafcb67cff912d0e45de9677135550f924
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],
98077125580d5600842a6d13d0597e50dfb9572aLennart Poettering [226],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://github.com/systemd/systemd/issues],
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])
4196a3ead3cfb823670d225eefcb3e60e34c7d95Kay SieversAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects parallel-tests])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CANONICAL_HOST
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAC_PROG_CC_C99
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAX_COMPILER_VENDOR
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "x$ax_cv_c_compiler_vendor" = "xgnu"], [
8666abb452db73d9a11ead61251eec42bc531cceKay Sievers AC_CHECK_TOOLS([AR], [gcc-ar ar], [:])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AC_CHECK_TOOLS([NM], [gcc-nm nm], [:])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez AC_CHECK_TOOLS([RANLIB], [gcc-ranlib ranlib], [:])
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart Poettering])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraLT_PREREQ(2.2)
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerLT_INIT([disable-static])
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerSET_ARCH(X86_64, x86_64*)
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerSET_ARCH(IA32, i*86*)
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerSET_ARCH(MIPS, mips*)
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerSET_ARCH(AARCH64, aarch64*)
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger# i18n stuff for the PolicyKit policy files, heck whether intltool can be found, disable NLS otherwise
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_CHECK_PROG(intltool_found, [intltool-merge], [yes], [no])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAS_IF([test x"$intltool_found" != xyes],
a59f16ce4a11c440cb2136ad3d5e3184714c545eRobert Schiele [AS_IF([test x"$enable_nls" = xyes],
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger [AC_MSG_ERROR([--enable-nls requested but intltool not found])],
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera [AS_IF([test x"$enable_nls" != xno],
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger [AC_MSG_WARN([*** Disabling NLS support because intltool was not found])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger enable_nls=no])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger ])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger ])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe Brandenburger
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAM_NLS
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAS_IF([test x"$enable_nls" != xno -o "x$enable_polkit" != xno], [
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera # intltoolize greps for '^(AC|IT)_PROG_INTLTOOL', so it needs to be on its own line
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraIT_PROG_INTLTOOL([0.40.0])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAS_IF([test -z "$INTLTOOL_POLICY_RULE"], [
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering # If intltool is not available, provide a dummy rule to fail generation of %.policy files with a meaningful error message
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo " ITMRG " $@ && echo "*** intltool support required to build target $@" && false'
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sievers AC_SUBST(INTLTOOL_POLICY_RULE)
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringGETTEXT_PACKAGE=systemd
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(GETTEXT_PACKAGE)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [systemd])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier JardónAC_PROG_MKDIR_P
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PROG_LN_S
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PROG_SED
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerAC_PROG_GREP
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw KedzierskiAC_PROG_AWK
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierski
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([M4], [m4])
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart PoetteringAC_PATH_PROG([XSLTPROC], [xsltproc])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom GundersenAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon], [$PATH:/usr/sbin:/sbin])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck], [$PATH:/usr/sbin:/sbin])
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-Szmek
446883528524429283626208928b51f49f28f810Lennart PoetteringAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap], [$PATH:/usr/sbin:/sbin])
446883528524429283626208928b51f49f28f810Lennart Poettering
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([KILL], [kill], [/usr/bin/kill], [$PATH:/usr/sbin:/sbin])
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay SieversAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([SULOGIN], [sulogin], [/usr/sbin/sulogin], [$PATH:/usr/sbin:/sbin])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([MOUNT_PATH], [mount], [/usr/bin/mount], [$PATH:/usr/sbin:/sbin])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([UMOUNT_PATH], [umount], [/usr/bin/umount], [$PATH:/usr/sbin:/sbin])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay SieversM4_DEFINES=
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-SzmekAC_CHECK_TOOL(OBJCOPY, objcopy)
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-SzmekAC_CHECK_TOOL(STRINGS, strings)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_CHECK_TOOL(GPERF, gperf)
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansaif test -z "$GPERF" ; then
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa AC_MSG_ERROR([*** gperf not found])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblfi
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl# ------------------------------------------------------------------------------
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Redingaddress_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
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekundefined_sanitizer_cflags=
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew 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
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -pipe \
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi -Wall \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wextra \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wundef \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering -Wlogical-op \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-include-dirs \
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Winit-self \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wdeclaration-after-statement \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wfloat-equal \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wsuggest-attribute=noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Werror=missing-prototypes \
03930e48636e86ad84946253ca2bf4f91deeb645Lennart Poettering -Werror=implicit-function-declaration \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Werror=missing-declarations \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering -Werror=return-type \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Werror=shadow \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wredundant-decls \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wshadow \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wendif-labels \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-aliasing=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wwrite-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-parameter \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-missing-field-initializers \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-unused-result \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-format-signedness \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Werror=overflow \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -Wdate-time \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -Wnested-externs \
213298fb822258bb69c6b85b7c8d7f019fd2306aLennart Poettering -ffast-math \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering -fno-common \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -fdiagnostics-show-option \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fno-strict-aliasing \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fvisibility=hidden \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fstack-protector \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fstack-protector-strong \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fPIE \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering --param=ssp-buffer-size=4])
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering
aca33b078cd32c5416a7fa3d5020a5d461c130eeCristian RodríguezAS_CASE([$CC], [*clang*],
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering -Wno-typedef-redefinition \
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek -Wno-gnu-variable-sized-type-not-at-end \
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek ])])
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-SzmekAS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmek [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmek -flto])],
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay SieversAC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers
235c6e628199221b7885f159367614b7105547cfJohnAS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wp,-D_FORTIFY_SOURCE=2])],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
03a170c03cd4a09721369ece48affb70d66c6b90Kay SieversAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $sanitizer_cppflags")
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [CC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wl,--gc-sections])],
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi [AC_MSG_RESULT([skipping --gc-sections, optimization not enabled])])
9e7adc3ae1133fa08a468768a490812299fad030Lucas De MarchiAC_SUBST([OUR_CFLAGS], "$with_ldflags $sanitizer_cflags")
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos FoutrasAS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -ffunction-sections -fdata-sections])],
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmek [AC_MSG_RESULT([skipping -ffunction/data-section, optimization not enabled])])
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian RodríguezAC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-Szmek
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -Wl,--as-needed \
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek -Wl,--no-undefined \
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek -Wl,-z,relro \
1c231f56482546725c4dbd3303f70300bd3c63e9Lennart Poettering -Wl,-z,now \
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek -pie \
de99c9dcbaf6e474551266d8f0b519bf2d8d0522Lennart Poettering -Wl,-fuse-ld=gold])
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(pid_t)
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(uid_t)
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(gid_t)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(time_t)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(dev_t)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(rlim_t,,[
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek #include <sys/time.h>
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek #include <sys/resource.h>
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek])
32dcef3ab1eb91ee469c3246ef859578dccd8a45Zbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# we use python to build the man page index
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburgerhave_python=no
be8737ae386166d2f279767ac87b226204c0de7eFilipe BrandenburgerAC_ARG_WITH([python],
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburgerhave_lxml=no
be8737ae386166d2f279767ac87b226204c0de7eFilipe BrandenburgerAS_IF([test "x$with_python" != "xno"], [
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger AM_PATH_PYTHON(,, [:])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test "x$PYTHON" != "x:"], [
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek AC_MSG_CHECKING([for python lxml module])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek AC_MSG_RESULT([$have_lxml])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek AS_IF([test "x$have_lxml" = "xyes"], [have_python=yes],
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek [AC_MSG_WARN([*** python support requires python-lxml module installed])])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek ])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_IF([test "$have_python" != "yes"], [
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test "$with_python" = "yes"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** python support requested but python support not found])])
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl AS_IF([test "$with_python" != "no"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AC_MSG_WARN([*** python support not found, some documentation cannot be built])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([linux/btrfs.h], [], [])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([linux/memfd.h], [], [])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek# unconditionally pull-in librt with old glibc versions
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmeksave_LIBS="$LIBS"
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekLIBS=
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekCAP_LIBS="$LIBS"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SUBST(CAP_LIBS)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([memfd_create])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([__secure_getenv secure_getenv])
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart PoetteringAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, getrandom, renameat2, kcmp, LO_FLAGS_PARTSCAN],
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers [], [], [[
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau#include <sys/types.h>
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmek#include <unistd.h>
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers#include <sys/mount.h>
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers#include <fcntl.h>
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers#include <sched.h>
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl#include <linux/loop.h>
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl#include <linux/random.h>
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl]])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAC_CHECK_DECLS([IFLA_INET6_ADDR_GEN_MODE,
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers IFLA_MACVLAN_FLAGS,
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers IFLA_IPVLAN_MODE,
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers IFLA_VTI_REMOTE,
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden IFLA_PHYS_PORT_ID,
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden IFLA_BOND_AD_INFO,
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden IFLA_VLAN_PROTOCOL,
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl IFLA_VXLAN_REMCSUM_NOPARTIAL,
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering IFLA_IPTUN_ENCAP_DPORT,
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmek IFLA_GRE_ENCAP_DPORT,
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-Szmek IFLA_BRIDGE_VLAN_INFO,
f7ad54a301e4ae8dceab54d3ab3934e56c1134eaLennart Poettering IFLA_BRPORT_LEARNING_SYNC,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek NDA_IFINDEX,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek IFA_FLAGS],
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering[], [], [[
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich#include <inttypes.h>
3b794314149e40afaf3c456285e1e529747b6560Holger Schurig#include <netinet/in.h>
5f381b355a95b953654e46ba3ccdc81bdec165eaLennart Poettering#include <netinet/ether.h>
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek#include <linux/rtnetlink.h>
539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60Lennart Poettering#include <net/if.h>
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek#include <linux/ip.h>
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek#include <linux/if_tunnel.h>
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmek#include <linux/if_link.h>
6589d0dba2b1ccf2406db527c2c1b51c7143e117Jean-André Santoni#include <linux/if_bridge.h>
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmek#include <linux/if_addr.h>
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek#include <linux/neighbour.h>
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek]])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek# This makes sure pkg.m4 is available.
8ecec322fe6b34b64868d8cc3808b5613f09e8d3Zbigniew Jędrzejewski-Szmekm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
8ecec322fe6b34b64868d8cc3808b5613f09e8d3Zbigniew Jędrzejewski-Szmek
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekhave_dbus=no
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_dbus" != "xno"], [
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek [have_dbus=no])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering# ------------------------------------------------------------------------------
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heenhave_utmp=yes
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_ARG_ENABLE([utmp], AS_HELP_STRING([--disable-utmp], [disable utmp/wtmp log handling]),
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_CASE("x${enableval}",
2270309471213a3c960543e523130627e9cb10e2Kay Sievers [xyes], [have_utmp=yes],
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek [xno], [have_utmp=no],
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek AC_MSG_ERROR(bad value ${enableval} for --enable-utmp)))
8114dedc5910d9a9cec702f6b6658551a0cd9edeChengwei YangAS_IF([test "x$have_utmp" = "xyes"], [AC_DEFINE(HAVE_UTMP, 1, [Define if utmp/wtmp support is enabled])])
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([HAVE_UTMP], [test "x$have_utmp" = "xyes"])
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmekhave_compat_libs=no
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
2270309471213a3c960543e523130627e9cb10e2Kay Sievers [case "${enableval}" in
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau yes) have_compat_libs=yes ;;
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing no) have_compat_libs=no ;;
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing esac],
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing [have_compat_libs=no])
37161c5148396448921841ae1026b281c7949652Emil Renner BerthingAM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing# ------------------------------------------------------------------------------
37161c5148396448921841ae1026b281c7949652Emil Renner Berthinghave_coverage=no
37161c5148396448921841ae1026b281c7949652Emil Renner BerthingAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
37161c5148396448921841ae1026b281c7949652Emil Renner Berthingif test "x$enable_coverage" = "xyes" ; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek if test "x$lcov_found" = xno ; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** lcov support requested but the program was not found])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek else
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek else
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek have_coverage=yes
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek 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
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_kmod=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_kmod" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$have_kmod" = "xyes"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** kmod version >= 15 not found]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen fi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** kmod support requested, but libraries not found])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen fi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenfi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenhave_xkbcommon=no
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE(xkbcommon, AS_HELP_STRING([--disable-xkbcommon], [disable xkbcommon keymap support]))
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisnerif test "x$enable_xkbcommon" != "xno"; then
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner PKG_CHECK_MODULES(XKBCOMMON, [ xkbcommon >= 0.3.0 ],
a18535d9e138c525d0443ec9f30a90b3e2184686Tom Gundersen [AC_DEFINE(HAVE_XKBCOMMON, 1, [Define if libxkbcommon is available]) have_xkbcommon=yes], have_xkbcommon=no)
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner if test "x$have_xkbcommon" = xno -a "x$enable_xkbcommon" = xyes; then
70d8320978dcbce022d9acbb953a10a7aca049abDavid Strauss AC_MSG_ERROR([*** xkbcommon support requested but libraries not found])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner fi
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenfi
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom GundersenAM_CONDITIONAL(HAVE_XKBCOMMON, [test "$have_xkbcommon" = "yes"])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenhave_blkid=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannif test "x$enable_blkid" != "xno"; then
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann PKG_CHECK_MODULES(BLKID, [ blkid >= 2.24 ],
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann AC_MSG_ERROR([*** blkid support requested but libraries not found])
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann fi
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannfi
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David HerrmannAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann# ------------------------------------------------------------------------------
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannhave_libmount=no
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David HerrmannPKG_CHECK_MODULES(MOUNT, [ mount >= 2.20 ],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [AC_DEFINE(HAVE_LIBMOUNT, 1, [Define if libmount is available]) have_libmount=yes], have_libmount=no)
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x$have_libmount" = xno; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_MSG_ERROR([*** libmount support required but libraries not found])
f553b3b1074151200187df916427a1468186435eAnders Olofssonfi
d47f6ca5f9b7a0b400d8bdb050151a0284fb4bdbGabriel de PerthuisAM_CONDITIONAL(HAVE_LIBMOUNT, [test "$have_libmount" = "yes"])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofsson# ------------------------------------------------------------------------------
f553b3b1074151200187df916427a1468186435eAnders Olofssonhave_seccomp=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support]))
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x$enable_seccomp" != "xno"; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0],
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech have_seccomp=yes
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"],
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech [have_seccomp=no])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech AC_MSG_ERROR([*** seccomp support requested but libraries not found])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech fi
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leechfi
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris LeechAM_CONDITIONAL(HAVE_SECCOMP, [test "$have_seccomp" = "yes"])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier# ------------------------------------------------------------------------------
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierhave_ima=yes
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [case "${enableval}" in
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier yes) have_ima=yes ;;
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering no) have_ima=no ;;
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering esac],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [have_ima=yes])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierif test "x${have_ima}" != xno ; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierfi
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_selinux=no
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x$enable_selinux" != "xno"; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu have_selinux=yes
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu M4_DEFINES="$M4_DEFINES -DHAVE_SELINUX"],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_selinux=no])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_MSG_ERROR([*** SELinux support requested but libraries not found])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu fi
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassufi
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringhave_apparmor=no
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_ENABLE(apparmor, AS_HELP_STRING([--disable-apparmor], [Disable optional AppArmor support]))
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringif test "x$enable_apparmor" != "xno"; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering PKG_CHECK_MODULES([APPARMOR], [libapparmor],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [AC_DEFINE(HAVE_APPARMOR, 1, [Define if AppArmor is available])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering have_apparmor=yes
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_APPARMOR"],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [have_apparmor=no])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering if test "x$have_apparmor" = xno -a "x$enable_apparmor" = xyes; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_MSG_ERROR([*** AppArmor support requested but libraries not found])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering fi
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringfi
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_APPARMOR, [test "$have_apparmor" = "yes"])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_WITH(debug-shell,
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AS_HELP_STRING([--with-debug-shell=PATH],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [Path to debug shell binary]),
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [SUSHELL="$withval"],[
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_SUBST(SUSHELL)
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
3f8cc098d218525710e5cbad9adf37001d3b6060Jan EngelhardtAC_ARG_WITH([debug-tty],
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering AS_HELP_STRING([--with-debug-tty=PATH],
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [Specify the tty device for debug shell]),
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [DEBUGTTY="$withval"],
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [DEBUGTTY=/dev/tty9])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_SUBST(DEBUGTTY)
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshAC_ARG_WITH([certificate-root],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AS_HELP_STRING([--with-certificate-root=PATH],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [Specify the prefix for TLS certificates [/etc/ssl]]),
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [CERTIFICATEROOT="$withval"],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [CERTIFICATEROOT="/etc/ssl"])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_SUBST(CERTIFICATEROOT)
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer# ------------------------------------------------------------------------------
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererhave_xz=no
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererif test "x$enable_xz" != "xno"; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer PKG_CHECK_MODULES(XZ, [ liblzma ],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_MSG_ERROR([*** XZ support requested but libraries not found])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer fi
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererfi
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez# ------------------------------------------------------------------------------
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezhave_zlib=no
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_ARG_ENABLE(zlib, AS_HELP_STRING([--disable-zlib], [Disable optional ZLIB support]))
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezif test "x$enable_zlib" != "xno"; then
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers PKG_CHECK_MODULES(ZLIB, [ zlib ],
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh [AC_DEFINE(HAVE_ZLIB, 1, [Define if ZLIB is available]) have_zlib=yes], have_zlib=no)
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez if test "x$have_zlib" = xno -a "x$enable_zlib" = xyes; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_MSG_ERROR([*** ZLIB support requested but libraries not found])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez fi
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezfi
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAM_CONDITIONAL(HAVE_ZLIB, [test "$have_zlib" = "yes"])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez# ------------------------------------------------------------------------------
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezhave_bzip2=no
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(bzip2, AS_HELP_STRING([--enable-bzip2], [Disable optional BZIP2 support]))
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_bzip2" != "xno"], [
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek AC_CHECK_HEADERS(bzlib.h,
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_BZIP2, 1, [Define in BZIP2 is available])
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek have_bzip2=yes],
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek [AS_IF([test "x$have_bzip2" = xyes], [AC_MSG_ERROR([*** BZIP2 support requested but headers not found])])
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek ])
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(HAVE_BZIP2, [test "$have_bzip2" = "yes"])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# ------------------------------------------------------------------------------
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringhave_lz4=no
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_ENABLE(lz4, AS_HELP_STRING([--enable-lz4], [Enable optional LZ4 support]))
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_lz4" = "xyes"], [
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_CHECK_HEADERS(lz4.h,
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_LZ4, 1, [Define in LZ4 is available]) have_lz4=yes],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [AC_MSG_ERROR([*** LZ4 support requested but headers not found])])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering])
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAM_CONDITIONAL(HAVE_LZ4, [test "$have_lz4" = "yes"])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart PoetteringAM_CONDITIONAL(HAVE_COMPRESSION, [test "$have_xz" = "yes" -o "$have_lz4" = "yes"])
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering# ------------------------------------------------------------------------------
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart PoetteringAC_ARG_ENABLE([pam],
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering [case "${enableval}" in
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering yes) have_pam=yes ;;
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering no) have_pam=no ;;
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering esac],
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering [have_pam=auto])
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmekif test "x${have_pam}" != xno ; then
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek AC_CHECK_HEADERS(
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
0a7f0fcc79772d257e0c42358ad472a37a8ab151Dave Reisner [have_pam=yes],
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek [if test "x$have_pam" = xyes ; then
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** PAM headers not found.])
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek fi])
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek AC_CHECK_LIB(
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek [pam],
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek [pam_syslog],
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek [have_pam=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [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])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_PAM"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart 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
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([acl],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_acl=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_acl=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering esac],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_acl=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_acl}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [sys/acl.h acl/libacl.h],
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering [have_acl=yes],
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering [if test "x$have_acl" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_LIB(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [acl],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [acl_get_file],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_acl=yes],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [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 M4_DEFINES="$M4_DEFINES -DHAVE_ACL"
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
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_smack=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_smack=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering esac],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_smack=auto])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_smack}" = xauto; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_smack=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_smack_run_label=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_WITH(smack-run-label,
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAS_HELP_STRING([--with-smack-run-label=STRING],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [run systemd --system itself with a specific SMACK label]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run systemd itself with SMACK label]) have_smack_run_label=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskiif test "x${have_smack_run_label}" = xyes; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski M4_DEFINES="$M4_DEFINES -DHAVE_SMACK_RUN_LABEL"
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH(smack-default-process-label,
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAS_HELP_STRING([--with-smack-default-process-label=STRING],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [default SMACK label for executed processes]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [AC_DEFINE_UNQUOTED(SMACK_DEFAULT_PROCESS_LABEL, ["$withval"], [Default SMACK label for executed processes])],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [])
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sievers
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sieversif test "x${have_smack}" = xyes ; then
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sievers AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke KokAM_CONDITIONAL([HAVE_SMACK], [test "x$have_smack" = "xyes"])
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok# ------------------------------------------------------------------------------
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke KokAC_ARG_ENABLE([gcrypt],
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok [case "${enableval}" in
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski yes) have_gcrypt=yes ;;
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski no) have_gcrypt=no ;;
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski esac],
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierski [have_gcrypt=auto])
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw Kedzierski
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x${have_gcrypt}" != xno ; then
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart 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
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE([audit],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [case "${enableval}" in
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering yes) have_audit=yes ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering no) have_audit=no ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering esac],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_audit=auto])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif 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 PoetteringAM_CONDITIONAL([HAVE_AUDIT], [test "x$have_audit" != xno])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE([elfutils],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AS_HELP_STRING([--disable-elfutils],[Disable optional ELFUTILS support]),
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [case "${enableval}" in
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering yes) have_elfutils=yes ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering no) have_elfutils=no ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-elfutils) ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering esac],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_elfutils=auto])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x${have_elfutils}" != xno ; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_CHECK_HEADERS(
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [elfutils/libdwfl.h],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [if test "x$have_elfutils" = xyes ; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_MSG_ERROR([*** ELFUTILS headers not found.])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering fi])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_CHECK_LIB(
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [dw],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [dwfl_begin],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [],
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau [if test "x$have_elfutils" = xyes ; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_MSG_ERROR([*** ELFUTILS libs not found.])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering fi])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_CHECK_LIB(
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [dw],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [dwfl_core_file_attach],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [have_elfutils=yes],
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau [if test "x$have_elfutils" = xyes ; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_MSG_ERROR([*** ELFUTILS >= 158 is required.])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering fi])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering if test "x$have_elfutils" = xyes ; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau ELFUTILS_LIBS="-lelf -ldw"
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau AC_DEFINE(HAVE_ELFUTILS, 1, [ELFUTILS available])
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau else
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau have_elfutils=no
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau fi
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineauelse
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau ELFUTILS_LIBS=
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineaufi
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_SUBST(ELFUTILS_LIBS)
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(HAVE_ELFUTILS, [test "$have_elfutils" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_libcryptsetup=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_libcryptsetup" != "xno"; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering fi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering# ------------------------------------------------------------------------------
8cf3ca80680b43015971cbbf4625517ae859d50cJan Janssenhave_qrencode=no
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x$enable_qrencode" != "xno"; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering fi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringfi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringhave_microhttpd=no
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringif test "x$enable_microhttpd" != "xno"; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.33],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering fi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringfi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering# ------------------------------------------------------------------------------
3f573096641cf3d350c8779971c644ca74aab93aZbigniew Jędrzejewski-Szmekhave_gnutls=no
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_ENABLE(gnutls, AS_HELP_STRING([--disable-gnutls], [disable gnutls support]))
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringif test "x$enable_gnutls" != "xno"; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.1.4],
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering [AC_DEFINE(HAVE_GNUTLS, 1, [Define if gnutls is available]) have_gnutls=yes], have_gnutls=no)
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering if test "x$have_gnutls" = xno -a "x$enable_gnutls" = xyes; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AC_MSG_ERROR([*** gnutls support requested but libraries not found])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering fi
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmekfi
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_GNUTLS, [test "$have_gnutls" = "yes"])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
f12be7e8ca278a5a207d0fd051acec700b804a7aZbigniew Jędrzejewski-Szmekhave_libcurl=no
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(libcurl, AS_HELP_STRING([--disable-libcurl], [disable libcurl support]))
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmekif test "x$enable_libcurl" != "xno"; then
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(LIBCURL, [libcurl],
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_LIBCURL, 1, [Define if libcurl is available]) have_libcurl=yes], have_libcurl=no)
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek if test "x$have_libcurl" = xno -a "x$enable_libcurl" = xyes; then
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** libcurl support requested but libraries not found])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek fi
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmekfi
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_LIBCURL, [test "$have_libcurl" = "yes"])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmekhave_libidn=no
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(libidn, AS_HELP_STRING([--disable-libidn], [Disable optional LIBIDN support]))
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmekif test "x$enable_libidn" != "xno"; then
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(LIBIDN, [libidn],
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_LIBIDN, 1, [Define if libidn is available])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek have_libidn=yes
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek M4_DEFINES="$M4_DEFINES -DHAVE_LIBIDN"],
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek [have_libidn=no])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering if test "x$have_libidn" = "xno" -a "x$enable_libidn" = "xyes"; then
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering AC_MSG_ERROR([*** libidn support requested but libraries not found])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering fi
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poetteringfi
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAM_CONDITIONAL(HAVE_LIBIDN, [test "$have_libidn" = "yes"])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering# ------------------------------------------------------------------------------
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poetteringhave_libiptc=no
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAC_ARG_ENABLE(libiptc, AS_HELP_STRING([--disable-libiptc], [Disable optional LIBIPTC support]))
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poetteringif test "x$enable_libiptc" != "xno"; then
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering PKG_CHECK_MODULES(LIBIPTC, [libiptc],
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering [AC_DEFINE(HAVE_LIBIPTC, 1, [Define if libiptc is available])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering have_libiptc=yes
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_LIBIPTC"],
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering [have_libiptc=no])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering if test "x$have_libiptc" = "xno" -a "x$enable_libiptc" = "xyes"; then
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering AC_MSG_ERROR([*** libiptc support requested but libraries not found])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering fi
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poetteringfi
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringAM_CONDITIONAL(HAVE_LIBIPTC, [test "$have_libiptc" = "yes"])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering# ------------------------------------------------------------------------------
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poetteringhave_binfmt=no
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poetteringif test "x$enable_binfmt" != "xno"; then
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering have_binfmt=yes
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poetteringfi
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_vconsole=no
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnaif test "x$enable_vconsole" != "xno"; then
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna have_vconsole=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversfi
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_bootchart=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x$enable_bootchart" != "xno"; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering have_bootchart=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering# ------------------------------------------------------------------------------
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokhave_quotacheck=no
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokif test "x$enable_quotacheck" != "xno"; then
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok have_quotacheck=yes
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokfi
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_tmpfiles=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_tmpfiles" != "xno"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_tmpfiles=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering# ------------------------------------------------------------------------------
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarhave_sysusers=no
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_ARG_ENABLE(sysusers, AS_HELP_STRING([--disable-sysusers], [disable sysusers support]))
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarif test "x$enable_sysusers" != "xno"; then
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar have_sysusers=yes
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarfi
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(ENABLE_SYSUSERS, [test "$have_sysusers" = "yes"])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar# ------------------------------------------------------------------------------
1b99214789101976d6bbf75c351279584b071998Lennart Poetteringhave_firstboot=no
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAC_ARG_ENABLE(firstboot, AS_HELP_STRING([--disable-firstboot], [disable firstboot support]))
1b99214789101976d6bbf75c351279584b071998Lennart Poetteringif test "x$enable_firstboot" != "xno"; then
1b99214789101976d6bbf75c351279584b071998Lennart Poettering have_firstboot=yes
1b99214789101976d6bbf75c351279584b071998Lennart Poetteringfi
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAM_CONDITIONAL(ENABLE_FIRSTBOOT, [test "$have_firstboot" = "yes"])
1b99214789101976d6bbf75c351279584b071998Lennart Poettering
1b99214789101976d6bbf75c351279584b071998Lennart Poettering# ------------------------------------------------------------------------------
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringhave_randomseed=no
418b9be50018303cde79b423d4701b7fd86ddbdcLennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringif test "x$enable_randomseed" != "xno"; then
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering have_randomseed=yes
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringfi
418b9be50018303cde79b423d4701b7fd86ddbdcLennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_backlight=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_backlight" != "xno"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_backlight=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering# ------------------------------------------------------------------------------
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poetteringhave_rfkill=no
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poetteringif test "x$enable_rfkill" != "xno"; then
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering have_rfkill=yes
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poetteringfi
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering# ------------------------------------------------------------------------------
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringhave_logind=no
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringif test "x$enable_logind" != "xno"; then
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering have_logind=yes
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringfi
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievershave_machined=no
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversif test "x$enable_machined" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_machined=yes
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversfi
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay SieversAS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering# ------------------------------------------------------------------------------
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringhave_importd=no
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAC_ARG_ENABLE(importd, AS_HELP_STRING([--disable-importd], [disable import daemon]))
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringif test "x$enable_importd" != "xno"; then
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering have_importd=yes
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringfi
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAM_CONDITIONAL(ENABLE_IMPORTD, [test "$have_importd" = "yes"])
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAS_IF([test "$have_importd" = "yes"], [ AC_DEFINE(HAVE_IMPORTD, [1], [Importd 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
5a16bc264c32237e38a844d55e7a1820a31b8440Łukasz Stelmach M4_DEFINES="$M4_DEFINES -DENABLE_TIMESYNCD"
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 AC_MSG_WARN([*** Using Google NTP servers.
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering Do not ship OSes or devices with these default settings.
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering See DISTRO_PORTING for details!])])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers])
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_SUBST(NTP_SERVERS)
5ea846cc5197682d07ee46398996a8c3ccfbcc38Zbigniew Jędrzejewski-Szmek
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_ARG_WITH(time-epoch,
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering AS_HELP_STRING([--with-time-epoch=SECONDS],
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering [Time epoch for time clients]),
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering [TIME_EPOCH="$withval"],
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering [TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_DEFINE_UNQUOTED(TIME_EPOCH, [$TIME_EPOCH], [Time Epoch])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart 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
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAC_DEFINE_UNQUOTED(SYSTEM_GID_MAX, [$SYSTEM_GID_MAX], [Maximum System GID])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_SUBST(SYSTEM_GID_MAX)
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna# ------------------------------------------------------------------------------
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievershave_localed=no
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnaif test "x$enable_localed" != "xno"; then
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna have_localed=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering# ------------------------------------------------------------------------------
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievershave_coredump=no
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringif test "x$enable_coredump" != "xno"; then
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering have_coredump=yes
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringfi
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart 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
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Waltersfi
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen# ------------------------------------------------------------------------------
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersenhave_resolved=no
aeb50ff0bd4bbbca74c4695072232348351d512dTom GundersenAC_ARG_ENABLE(resolved, AS_HELP_STRING([--disable-resolved], [disable resolve daemon]))
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Waltersif test "x$enable_resolved" != "xno"; then
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen have_resolved=yes
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters M4_DEFINES="$M4_DEFINES -DENABLE_RESOLVED"
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersenfi
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom GundersenAM_CONDITIONAL(ENABLE_RESOLVED, [test "$have_resolved" = "yes"])
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen
49e5c2b26aa72a7aa117c1e04763852a4b69136bZbigniew Jędrzejewski-SzmekAC_ARG_WITH(dns-servers,
7b4d79683998a78d6e123dd034b1e06b74d8030bTom Gundersen AS_HELP_STRING([--with-dns-servers=DNSSERVERS],
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen [Space-separated list of default DNS servers]),
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen [DNS_SERVERS="$withval"],
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen [DNS_SERVERS="8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844"])
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAC_DEFINE_UNQUOTED(DNS_SERVERS, ["$DNS_SERVERS"], [Default DNS Servers])
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAC_SUBST(DNS_SERVERS)
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersenhave_networkd=no
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
5a16bc264c32237e38a844d55e7a1820a31b8440Łukasz StelmachAS_IF([test "x$enable_networkd" != "xno"], [
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen have_networkd=yes
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen M4_DEFINES="$M4_DEFINES -DENABLE_NETWORKD"
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering
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
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmannfi
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David HerrmannAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann# ------------------------------------------------------------------------------
cdcd0ccdbe427de53d8e5ff8f2f1b06b3f477bdeDavid HerrmannAC_CHECK_TOOL(EFI_CC, gcc)
c93e5a62ff599528c3bf2a8656825403aaebe093David Herrmann
c93e5a62ff599528c3bf2a8656825403aaebe093David HerrmannEFI_ARCH=`echo $host | sed "s/\(-\).*$//"`
c93e5a62ff599528c3bf2a8656825403aaebe093David Herrmann
c93e5a62ff599528c3bf2a8656825403aaebe093David HerrmannAM_COND_IF(ARCH_IA32, [
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann EFI_ARCH=ia32
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann EFI_MACHINE_TYPE_NAME=ia32])
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart PoetteringAM_COND_IF(ARCH_X86_64, [
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering EFI_MACHINE_TYPE_NAME=x64])
c97a6dbcf10990bcc2455e842a41bf14b01f358dLukasz Skalski
146ccaafd5c9d4f2798240b049f595f70f45f77bDave ReisnerAM_COND_IF(ARCH_AARCH64, [
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering EFI_MACHINE_TYPE_NAME=aa64])
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-SzmekAC_SUBST([EFI_ARCH])
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart PoetteringAC_SUBST([EFI_MACHINE_TYPE_NAME])
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poetteringhave_gnuefi=no
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_ENABLE(gnuefi, AS_HELP_STRING([--enable-gnuefi], [Disable optional gnuefi support]))
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAS_IF([test "x$enable_gnuefi" != "xno"], [
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_CHECK_HEADERS(efi/${EFI_ARCH}/efibind.h,
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [AC_DEFINE(HAVE_GNUEFI, 1, [Define if gnuefi is available])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering have_gnuefi=yes],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [AS_IF([test "x$enable_gnuefi" = xyes],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [AC_MSG_ERROR([*** gnuefi support requested but headers not found])])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering ])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering efiroot=$(echo $(cd /usr/lib/$(${EFI_CC} -print-multi-os-directory); pwd))
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering EFI_LIB_DIR="$efiroot"
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_ARG_WITH(efi-libdir,
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AS_HELP_STRING([--with-efi-libdir=PATH], [Path to EFI lib directory]),
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering [EFI_LIB_DIR="$withval"], [EFI_LIB_DIR="$efiroot"]
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering )
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_SUBST([EFI_LIB_DIR])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering have_efi_lds=no
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AC_ARG_WITH(efi-ldsdir,
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AS_HELP_STRING([--with-efi-ldsdir=PATH], [Path to EFI lds directory]),
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [EFI_LDS_DIR="$withval" && AS_IF([test -f "${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [have_efi_lds=yes])],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AS_FOR([DIR], [EFI_LDS_DIR], ["${EFI_LIB_DIR}/gnuefi" "${EFI_LIB_DIR}"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AS_IF([test -f "${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [have_efi_lds=yes && break])])])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AS_IF([test "x$have_efi_lds" = xyes],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AC_SUBST([EFI_LDS_DIR])],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AS_IF([test "x$enable_gnuefi" = xyes],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AC_MSG_ERROR([*** gnuefi support requested but files not found])],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [have_gnuefi=no])])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AC_ARG_WITH(efi-includedir,
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AS_HELP_STRING([--with-efi-includedir=PATH], [Path to EFI include directory]),
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [EFI_INC_DIR="$withval"], [EFI_INC_DIR="/usr/include"]
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering )
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AC_SUBST([EFI_INC_DIR])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAM_CONDITIONAL(HAVE_GNUEFI, [test "x$have_gnuefi" = xyes])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez# ------------------------------------------------------------------------------
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguezhave_kdbus=no
abaaabf40a9891014ed4c402d7beb5a67ac256b1Lennart PoetteringAC_ARG_ENABLE(kdbus, AS_HELP_STRING([--disable-kdbus], [do not connect to kdbus by default]))
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguezif test "x$enable_kdbus" != "xno"; then
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus is to be connected to by default])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez have_kdbus=yes
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguezfi
54b434b1b5055f934230fe04fad35b01642b8488Lennart PoetteringAM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_WITH(rc-local-script-path-start,
f8c5a5815ff7c137d9a1e5d7b48a6532b9f31407Lennart Poettering AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [Path to /etc/rc.local]),
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [RC_LOCAL_SCRIPT_PATH_START="$withval"],
a3b6fafed441d96380a3f089118f7486d6aa3126Lennart Poettering [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_WITH(rc-local-script-path-stop,
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [Path to /usr/sbin/halt.local]),
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(kbd-loadkeys,
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-kbd-loadkeys=PATH],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [Path to loadkeys]),
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering [KBD_LOADKEYS="$withval"],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [KBD_LOADKEYS="/usr/bin/loadkeys"])
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart PoetteringAC_ARG_WITH(kbd-setfont,
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog AS_HELP_STRING([--with-kbd-setfont=PATH],
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog [Path to setfont]),
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog [KBD_SETFONT="$withval"],
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog [KBD_SETFONT="/usr/bin/setfont"])
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
75db9a77605b33a1b9355eae957f26380441fce6Lennart PoetteringAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart Poettering
4ca39b280fce3c60d2fdecbd478fd9bf7f9d3e64Mike GilbertAC_SUBST(KBD_LOADKEYS)
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_SUBST(KBD_SETFONT)
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar LindskogAC_ARG_WITH(telinit,
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar Lindskog AS_HELP_STRING([--with-telinit=PATH],
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar Lindskog [Path to telinit]),
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar Lindskog [TELINIT="$withval"],
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar Lindskog [TELINIT="/lib/sysvinit/telinit"])
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar Lindskog
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar Lindskog
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar LindskogAC_SUBST(TELINIT)
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar Lindskog
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar LindskogAC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar Lindskog# ------------------------------------------------------------------------------
34eff652cedec3cac34b92629ead5f140334b689Lennart Poetteringhave_myhostname=no
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart Poetteringif test "x$enable_myhostname" != "xno"; then
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering AC_HEADER_STDC
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen 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])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering AC_C_CONST
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AC_TYPE_SIZE_T
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AC_HEADER_TIME
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering AC_FUNC_MALLOC
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering AC_FUNC_SELECT_ARGTYPES
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen have_myhostname=yes
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenfi
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio# ------------------------------------------------------------------------------
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_ARG_ENABLE(hwdb, [AC_HELP_STRING([--disable-hwdb], [disable hardware database support])],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio enable_hwdb=$enableval, enable_hwdb=yes)
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart PoetteringAM_CONDITIONAL(ENABLE_HWDB, [test x$enable_hwdb = xyes])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio# ------------------------------------------------------------------------------
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciohave_manpages=no
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering# ------------------------------------------------------------------------------
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_ARG_ENABLE(hibernate,
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering [AC_HELP_STRING([--disable-hibernate], [disable hibernation support])],
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering enable_hibernate=$enableval, enable_hibernate=yes)
a05ea46dc788929bc8b13afb4208ca29cad68572Michael BieblAM_CONDITIONAL(ENABLE_HIBERNATE, [test x$enable_hibernate = xyes])
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering# ------------------------------------------------------------------------------
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart PoetteringAC_ARG_ENABLE(ldconfig,
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering [AC_HELP_STRING([--disable-ldconfig], [disable ldconfig])],
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering enable_ldconfig=$enableval, enable_ldconfig=yes)
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart PoetteringAM_CONDITIONAL(ENABLE_LDCONFIG, [test x$enable_ldconfig = xyes])
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# ------------------------------------------------------------------------------
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# Location of the init scripts as mandated by LSB
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
977db91c29083478c6fb7c7bf033e14c567df5d5Filipe BrandenburgerSYSTEM_SYSVRCND_PATH=/etc/rc.d
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([sysvinit-path],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [AS_HELP_STRING([--with-sysvinit-path=PATH],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [Specify the path to where the SysV init scripts are located])],
977db91c29083478c6fb7c7bf033e14c567df5d5Filipe Brandenburger [SYSTEM_SYSVINIT_PATH="$withval"],
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering [])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([sysvrcnd-path],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
977db91c29083478c6fb7c7bf033e14c567df5d5Filipe Brandenburger [Specify the path to the base directory for the SysV rcN.d directories])],
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering [SYSTEM_SYSVRCND_PATH="$withval"],
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl [])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Bieblif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl SYSTEM_SYSV_COMPAT="yes"
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Bieblelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl 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.])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Bieblelse
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas SYSTEM_SYSV_COMPAT="no"
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokasfi
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas
4f87c47b35cf9c1f58872559ae67a2656712fdd6William GiokasAC_SUBST(SYSTEM_SYSVINIT_PATH)
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_SUBST(SYSTEM_SYSVRCND_PATH)
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_SUBST(M4_DEFINES)
39ad55a9aa99451f982628af6e14581092b2d2f6Kay Sievers
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_ARG_WITH([tty-gid],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [AS_HELP_STRING([--with-tty-gid=GID],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [Specify the numeric GID of the 'tty' group])],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [TTY_GID="$withval"],
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [TTY_GID="5"])
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_DEFINE_UNQUOTED(TTY_GID, [$TTY_GID], [GID of the 'tty' group])
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_SUBST(TTY_GID)
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-SzmekAC_ARG_WITH([dbuspolicydir],
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek [],
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek [with_dbuspolicydir=${sysconfdir}/dbus-1/system.d])
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-SzmekAX_NORMALIZE_PATH([with_dbuspolicydir])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH([dbussessionservicedir],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [with_dbussessionservicedir=${datadir}/dbus-1/services])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAX_NORMALIZE_PATH([with_dbussessionservicedir])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH([dbussystemservicedir],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering [],
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering [with_dbussystemservicedir=${datadir}/dbus-1/system-services])
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart PoetteringAX_NORMALIZE_PATH([with_dbussystemservicedir])
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart PoetteringAC_ARG_WITH([bashcompletiondir],
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering [],
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering ] , [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny with_bashcompletiondir=${datadir}/bash-completion/completions
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering ])])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_BASH_COMPLETION, [test "$with_bashcompletiondir" != "no"])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAX_NORMALIZE_PATH([with_bashcompletiondir])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAC_ARG_WITH([zshcompletiondir],
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]),
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek [], [with_zshcompletiondir=${datadir}/zsh/site-functions])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_ZSH_COMPLETION, [test "$with_zshcompletiondir" != "no"])
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal BakkenAX_NORMALIZE_PATH([with_zshcompletiondir])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAC_ARG_WITH([rootprefix],
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken [], [with_rootprefix=${ac_default_prefix}])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt# --with-rootprefix= (empty) should default to "/" but AX_NORMALIZE_PATH
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt# defaults those to ".", solve that here for now until we can find a suitable
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt# fix for AX_NORMALIZE_PATH upstream at autoconf-archive.
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt# See: https://github.com/systemd/systemd/issues/54
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidtif test "x${with_rootprefix}" = "x"; then
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt with_rootprefix="/"
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidtfi
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAX_NORMALIZE_PATH([with_rootprefix])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAC_ARG_WITH([rootlibdir],
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt [],
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt [with_rootlibdir=${libdir}])
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal SchmidtAX_NORMALIZE_PATH([with_rootlibdir])
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAC_ARG_WITH([pamlibdir],
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt [],
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt [with_pamlibdir=${with_rootlibdir}/security])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAX_NORMALIZE_PATH([with_pamlibdir])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAC_ARG_WITH([pamconfdir],
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt [],
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt [with_pamconfdir=${sysconfdir}/pam.d])
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal SchmidtAX_NORMALIZE_PATH([with_pamconfdir])
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt
994701548d3ea6aafe3d9c47d51f701878118d65Michal SchmidtAC_ARG_ENABLE([split-usr],
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
994701548d3ea6aafe3d9c47d51f701878118d65Michal Schmidt [],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering enable_split_usr=yes
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering ], [
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl enable_split_usr=no
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas ])])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-SzmekAC_ARG_WITH([dkr-index-url],
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers [AS_HELP_STRING([--dkr-index-url=URL], [Specify the default index URL to use for image downloads])],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [DEFAULT_DKR_INDEX_URL="\"$withval\""],
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering [DEFAULT_DKR_INDEX_URL="NULL"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_DEFINE_UNQUOTED(DEFAULT_DKR_INDEX_URL, [$DEFAULT_DKR_INDEX_URL], [Default index URL to use for image downloads])
bb061708d5aa83579f213bdfb67253f7027217c3Kay SieversAC_SUBST(DEFAULT_DKR_INDEX_URL)
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers
bb061708d5aa83579f213bdfb67253f7027217c3Kay SieversAS_IF([test "x${enable_split_usr}" = "xyes"], [
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_SPLIT_USR, [test "x${enable_split_usr}" = "xyes"])
a45a909fbbe11ad8c75cda5639d875476ac65453Christian Ruppert
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers# work around intltool-update issues during 'make distcheck'
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAS_IF([test "x$0" != "x./configure"], [
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering# QEMU and OVMF UEFI firmware
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAS_IF([test x"$cross_compiling" = "xyes"], [], [
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_PATH_PROG([QEMU], [qemu-system-x86_64])
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AC_CHECK_FILE([/usr/share/qemu/bios-ovmf.bin], [QEMU_BIOS=/usr/share/qemu/bios-ovmf.bin],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [AC_CHECK_FILE([/usr/share/qemu-ovmf/bios.bin], [QEMU_BIOS=/usr/share/qemu-ovmf/bios.bin])])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_SUBST([QEMU_BIOS])
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(tests,
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_HELP_STRING([--disable-tests], [disable tests])],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering enable_tests=$enableval, enable_tests=yes)
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_ENABLE(debug,
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [AC_HELP_STRING([--enable-debug@<:@=LIST@:>@], [enable extra debugging (hashmap,mmap-cache)])],
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek [if test "x$enableval" = "xyes"; then
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering enableval="hashmap,mmap-cache"
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering fi
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering saved_ifs="$IFS"
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna IFS="$IFS$PATH_SEPARATOR,"
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering for name in $enableval; do
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok case $name in
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering hashmap)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar enable_debug_hashmap=yes
1b99214789101976d6bbf75c351279584b071998Lennart Poettering ;;
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering mmap-cache)
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering enable_debug_mmap_cache=yes
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering ;;
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering esac
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers done
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering IFS="$saved_ifs"],[])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnaenable_debug=""
a91df40e69fec72cc98c9829721fa5153da28bc2Kay SieversAS_IF([test x$enable_debug_hashmap = xyes], [
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering AC_DEFINE(ENABLE_DEBUG_HASHMAP, 1, [Define if hashmap debugging is to be enabled])
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering enable_debug="hashmap $enable_debug"
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna])
7a243b22041595a0c7e0dffb3ef5e2158dde933fJason A. DonenfeldAS_IF([test x$enable_debug_mmap_cache = xyes], [
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen AC_DEFINE(ENABLE_DEBUG_MMAP_CACHE, 1, [Define if mmap cache debugging is to be enabled])
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen enable_debug="mmap-cache $enable_debug"
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringtest -z "$enable_debug" && enable_debug="none"
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David HerrmannAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris LeechAC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-SzmekAC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_SUBST([pamlibdir], [$with_pamlibdir])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST([pamconfdir], [$with_pamconfdir])
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar LindskogAC_SUBST([rootprefix], [$with_rootprefix])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST([rootlibdir], [$with_rootlibdir])
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David Herrmann
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart PoetteringAC_CONFIG_FILES([
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering Makefile
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering po/Makefile.in
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek])
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_OUTPUT
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-SzmekAC_MSG_RESULT([
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek $PACKAGE_NAME $VERSION
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing libcryptsetup: ${have_libcryptsetup}
3383f7e956fc7889e1ba3ff2998edd6a47357896Umut Tezduyar Lindskog PAM: ${have_pam}
3383f7e956fc7889e1ba3ff2998edd6a47357896Umut Tezduyar Lindskog AUDIT: ${have_audit}
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt IMA: ${have_ima}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AppArmor: ${have_apparmor}
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering SELinux: ${have_selinux}
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers SECCOMP: ${have_seccomp}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers SMACK: ${have_smack}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers ZLIB: ${have_zlib}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers XZ: ${have_xz}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers LZ4: ${have_lz4}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers BZIP2: ${have_bzip2}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers ACL: ${have_acl}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek GCRYPT: ${have_gcrypt}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek QRENCODE: ${have_qrencode}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek MICROHTTPD: ${have_microhttpd}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek GNUTLS: ${have_gnutls}
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-Szmek libcurl: ${have_libcurl}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering libidn: ${have_libidn}
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek libiptc: ${have_libiptc}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering ELFUTILS: ${have_elfutils}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering binfmt: ${have_binfmt}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering vconsole: ${have_vconsole}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl bootchart: ${have_bootchart}
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas quotacheck: ${have_quotacheck}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering tmpfiles: ${have_tmpfiles}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering sysusers: ${have_sysusers}
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez firstboot: ${have_firstboot}
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering randomseed: ${have_randomseed}
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering backlight: ${have_backlight}
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering rfkill: ${have_rfkill}
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek logind: ${have_logind}
91f4347ef7bde17418b365ed3a97a752fe65bd50Lennart Poettering machined: ${have_machined}
66be6554807773028a0111addb8e75c3cab11117Kay Sievers importd: ${have_importd}
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering hostnamed: ${have_hostnamed}
1f048a6b6bcc30d2e157711b3d231d7a944e6ffbJan Engelhardt timedated: ${have_timedated}
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering timesyncd: ${have_timesyncd}
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek default NTP servers: ${NTP_SERVERS}
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek time epoch: ${TIME_EPOCH}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers localed: ${have_localed}
networkd: ${have_networkd}
resolved: ${have_resolved}
default DNS servers: ${DNS_SERVERS}
coredump: ${have_coredump}
polkit: ${have_polkit}
efi: ${have_efi}
gnuefi: ${have_gnuefi}
efi arch: ${EFI_ARCH}
EFI machine type: ${EFI_MACHINE_TYPE_NAME}
EFI CC ${EFI_CC}
EFI libdir: ${EFI_LIB_DIR}
EFI ldsdir: ${EFI_LDS_DIR}
EFI includedir: ${EFI_INC_DIR}
kmod: ${have_kmod}
xkbcommon: ${have_xkbcommon}
blkid: ${have_blkid}
libmount: ${have_libmount}
dbus: ${have_dbus}
nss-myhostname: ${have_myhostname}
hwdb: ${enable_hwdb}
kdbus: ${have_kdbus}
Python: ${have_python}
man pages: ${have_manpages}
test coverage: ${have_coverage}
Split /usr: ${enable_split_usr}
SysV compatibility: ${SYSTEM_SYSV_COMPAT}
compatibility libraries: ${have_compat_libs}
utmp/wtmp support: ${have_utmp}
ldconfig support: ${enable_ldconfig}
hibernate support: ${enable_hibernate}
extra debugging: ${enable_debug}
prefix: ${prefix}
rootprefix: ${with_rootprefix}
sysconf dir: ${sysconfdir}
datarootdir: ${datarootdir}
includedir: ${includedir}
lib dir: ${libdir}
rootlib dir: ${with_rootlibdir}
SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
Build Python: ${PYTHON}
PAM modules dir: ${with_pamlibdir}
PAM configuration dir: ${with_pamconfdir}
D-Bus policy dir: ${with_dbuspolicydir}
D-Bus session dir: ${with_dbussessionservicedir}
D-Bus system dir: ${with_dbussystemservicedir}
Bash completions dir: ${with_bashcompletiondir}
Zsh completions dir: ${with_zshcompletiondir}
Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
Debug shell: ${SUSHELL} @ ${DEBUGTTY}
TTY GID: ${TTY_GID}
Maximum System UID: ${SYSTEM_UID_MAX}
Maximum System GID: ${SYSTEM_GID_MAX}
Certificate root: ${CERTIFICATEROOT}
Default dkr Index ${DEFAULT_DKR_INDEX_URL}
CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
])