configure.ac revision 2fe9e87a2475d5c2f5e2bb1a7e711c59fd0b2c6d
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Kay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# under the terms of the GNU Lesser General Public License as published by
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# (at your option) any later version.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is distributed in the hope that it will be useful, but
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# Lesser General Public License for more details.
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU Lesser General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREREQ([2.64])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],
1a435084b7f55bc24042f9bc47c18e4e2381f667Kay Sievers [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://www.freedesktop.org/wiki/Software/systemd])
78a825f216d39ee0295b00647b059d45467e1d02Kay SieversAC_CONFIG_SRCDIR([src/core/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CONFIG_AUX_DIR([build-aux])
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAC_USE_SYSTEM_EXTENSIONS
907dd1953b7517534d646f5b2777780020c896e2Kay SieversAC_SYS_LARGEFILE
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversAC_PREFIX_DEFAULT([/usr])
6aad7f2cd75c88f990c7857bb173b3e8d0faee0fUmut Tezduyar LindskogAM_MAINTAINER_MODE([enable])
91ca5bf0b6f3b487a16cc262527c9de6744db624Martin PittAM_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.])
0e3b0a95cc57cf8c51b20b5b94af7e51c5e424f3Jan Alexander Steffens (heftig)LT_INIT([disable-static])
0e3b0a95cc57cf8c51b20b5b94af7e51c5e424f3Jan Alexander Steffens (heftig)AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
0e3b0a95cc57cf8c51b20b5b94af7e51c5e424f3Jan Alexander Steffens (heftig)AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
0e3b0a95cc57cf8c51b20b5b94af7e51c5e424f3Jan Alexander Steffens (heftig)SET_ARCH(X86_64, x86_64*)
0e3b0a95cc57cf8c51b20b5b94af7e51c5e424f3Jan Alexander Steffens (heftig)SET_ARCH(IA32, i*86*)
0e3b0a95cc57cf8c51b20b5b94af7e51c5e424f3Jan Alexander Steffens (heftig)SET_ARCH(MIPS, mips*)
4fecbe59dadaed314b792ed35ef5dc24c7047a18Jan Alexander Steffens (heftig)SET_ARCH(AARCH64, aarch64*)
8666abb452db73d9a11ead61251eec42bc531cceKay Sievers# i18n stuff for the PolicyKit policy files, heck whether intltool can be found, disable NLS otherwise
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_PROG(intltool_found, [intltool-merge], [yes], [no])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian RodríguezAS_IF([test x"$intltool_found" != xyes],
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart Poettering [AS_IF([test x"$enable_nls" = xyes],
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez [AC_MSG_ERROR([--enable-nls requested but intltool not found])],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AS_IF([test x"$enable_nls" != xno],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AC_MSG_WARN([*** Disabling NLS support because intltool was not found])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers enable_nls=no])
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAS_IF([test x"$enable_nls" != xno -o "x$enable_polkit" != xno], [
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger # intltoolize greps for '^(AC|IT)_PROG_INTLTOOL', so it needs to be on its own line
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerIT_PROG_INTLTOOL([0.40.0])
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAS_IF([test -z "$INTLTOOL_POLICY_RULE"], [
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger # If intltool is not available, provide a dummy rule to fail generation of %.policy files with a meaningful error message
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo " ITMRG " $@ && echo "*** intltool support required to build target $@" && false'
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe Brandenburger AC_SUBST(INTLTOOL_POLICY_RULE)
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerGETTEXT_PACKAGE=systemd
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_SUBST(GETTEXT_PACKAGE)
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [systemd])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PROG_MKDIR_P
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PROG_CC_C99
20f56fddcd58c84fa73597486e905c652667214fDidier RocheAC_PATH_PROG([M4], [m4])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PATH_PROG([XSLTPROC], [xsltproc])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon], [$PATH:/usr/sbin:/sbin])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck], [$PATH:/usr/sbin:/sbin])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap], [$PATH:/usr/sbin:/sbin])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_PATH_PROG([KILL], [kill], [/usr/bin/kill], [$PATH:/usr/sbin:/sbin])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
dd5ae4c36c89da5dbe8d1628939b26c00db98753Przemyslaw KedzierskiAC_PATH_PROG([SULOGIN], [sulogin], [/usr/sbin/sulogin], [$PATH:/usr/sbin:/sbin])
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart PoetteringAC_PATH_PROG([MOUNT_PATH], [mount], [/usr/bin/mount], [$PATH:/usr/sbin:/sbin])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_PATH_PROG([UMOUNT_PATH], [umount], [/usr/bin/umount], [$PATH:/usr/sbin:/sbin])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
f00929ad622c978f8ad83590a15a765b4beecac9Dimitri John Ledkov# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
f00929ad622c978f8ad83590a15a765b4beecac9Dimitri John Ledkovm4_ifdef([GTK_DOC_CHECK], [
f00929ad622c978f8ad83590a15a765b4beecac9Dimitri John LedkovGTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
446883528524429283626208928b51f49f28f810Lennart Poettering [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
446883528524429283626208928b51f49f28f810Lennart Poettering enable_gtk_doc=no])
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
c4a77bcb9a50f152557e25c90837d8bfef858729Marc-Antoine Perennou AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblGOBJECT_INTROSPECTION_CHECK([1.31.1])
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek enable_introspection=no])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_CHECK_TOOL(OBJCOPY, objcopy)
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_CHECK_TOOL(STRINGS, strings)
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_CHECK_TOOL(GPERF, gperf)
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekif test -z "$GPERF" ; then
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** gperf not found])
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekaddress_sanitizer_cflags=
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekaddress_sanitizer_cppflags=
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmekaddress_sanitizer_ldflags=
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_address_sanitizer" = "xyes"], [
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek AS_IF([test -z "$with_as_cflags"],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** -fsanitize=address is not supported])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek address_sanitizer_cppflags="-DVALGRIND=1"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek address_sanitizer_ldflags="-Wc,-fsanitize=address"
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekundefined_sanitizer_cflags=
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekundefined_sanitizer_cppflags=
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekundefined_sanitizer_ldflags=
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(undefined-sanitizer, AS_HELP_STRING([--enable-undefined-sanitizer], [enable -fsanitize=undefined]))
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_undefined_sanitizer" = "xyes"], [
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek CC_CHECK_FLAG_APPEND([with_us_cflags], [CFLAGS], [-fsanitize=undefined])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek AS_IF([test -z "$with_us_cflags"],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** -fsanitize=undefined is not supported])])
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi undefined_sanitizer_cflags="$with_us_cflags -fno-omit-frame-pointer -DVALGRIND=1"
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering undefined_sanitizer_cppflags="-DVALGRIND=1"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering undefined_sanitizer_ldflags="-Wc,-fsanitize=undefined"
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sieverssanitizer_cflags="$address_sanitizer_cflags $undefined_sanitizer_cflags"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringsanitizer_cppflags="$address_sanitizer_cppflags $undefined_sanitizer_cppflags"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringsanitizer_ldflags="$address_sanitizer_ldflags $undefined_sanitizer_ldflags"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
8dc31a63981267f257583ef82ceb79859ff243f8Daniel Mack "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
8dc31a63981267f257583ef82ceb79859ff243f8Daniel Mack -Wlogical-op \
8dc31a63981267f257583ef82ceb79859ff243f8Daniel Mack -Wmissing-include-dirs \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wdeclaration-after-statement \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wfloat-equal \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wsuggest-attribute=noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-prototypes \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wredundant-decls \
f73fb7b742f294b6d2126afa16001bd2ff6ab461Filipe Brandenburger -Wmissing-declarations \
0a98d66159e474915afd6597d3aa444a698fdd2dDavid Herrmann -Wmissing-noreturn \
213298fb822258bb69c6b85b7c8d7f019fd2306aLennart Poettering -Wendif-labels \
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering -Wstrict-aliasing=2 \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wwrite-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-long-long \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-overlength-strings \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wno-unused-parameter \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wno-missing-field-initializers \
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering -Wno-unused-result \
aca33b078cd32c5416a7fa3d5020a5d461c130eeCristian Rodríguez -Wno-format-signedness \
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez -Werror=overflow \
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-Szmek -Wnested-externs \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger -fdiagnostics-show-option \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger -fno-strict-aliasing \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger -fvisibility=hidden \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger -ffunction-sections \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger -fdata-sections \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger -fstack-protector \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger -fstack-protector-strong \
a01a4517e16c532fbd5203fbfe2571255e2cd312Filipe Brandenburger --param=ssp-buffer-size=4])
4f47bb8c5e5f234c614dc14532a9483328e61002Zbigniew Jędrzejewski-SzmekAS_CASE([$CC], [*clang*],
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmek [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmek -Wno-typedef-redefinition \
65e3a2cf7c3b399853dd309f702ca5078b7d16eaZbigniew Jędrzejewski-Szmek -Wno-gnu-variable-sized-type-not-at-end \
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay SieversAS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
4fecbe59dadaed314b792ed35ef5dc24c7047a18Jan Alexander Steffens (heftig) [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay Sievers -flto -ffat-lto-objects])],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAS_CASE([$CFLAGS], [*-O[[12345sz\ ]]*],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek -Wp,-D_FORTIFY_SOURCE=2])],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
9e7adc3ae1133fa08a468768a490812299fad030Lucas De MarchiAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $sanitizer_cppflags")
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay SieversCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay Sievers -Wl,--as-needed \
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay Sievers -Wl,--no-undefined \
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay Sievers -Wl,--gc-sections \
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay Sievers -Wl,-z,relro \
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay Sievers -Wl,-z,now \
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay Sievers -Wl,-fuse-ld=gold])
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay SieversAC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
2b4919a68cf826efbe939291e6dc4f08e824dc41Kay SieversAC_CHECK_SIZEOF(pid_t)
9e7adc3ae1133fa08a468768a490812299fad030Lucas De MarchiAC_CHECK_SIZEOF(uid_t)
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAC_CHECK_SIZEOF(gid_t)
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos FoutrasAC_CHECK_SIZEOF(time_t)
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_CHECK_SIZEOF(dev_t)
39c4ead2323b45bbe9866e0f97fd8dcfb8a0bedeZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(rlim_t,,[
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek# we use python to build the man page index, and for systemd-python
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_ARG_WITH([python],
de99c9dcbaf6e474551266d8f0b519bf2d8d0522Lennart Poettering [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAS_IF([test "x$with_python" != "xno"], [
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmek AM_PATH_PYTHON(,, [:])
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-Szmek AS_IF([test "x$PYTHON" != "x:"], [
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_MSG_CHECKING([for python lxml module])
2799e519cabb6dfa99341b9a56ebd4dc2a4ec22aZbigniew Jędrzejewski-Szmek AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_MSG_RESULT([$have_lxml])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test "x$have_lxml" = "xyes"], [have_python=yes],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AC_MSG_WARN([*** python support requires python-lxml module installed])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_IF([test "$have_python" != "yes"], [
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test "$with_python" = "yes"],
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger [AC_MSG_ERROR([*** python support requested but python support not found])])
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger AS_IF([test "$with_python" != "no"],
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger [AC_MSG_WARN([*** python support not found, some documentation cannot be built])])
be8737ae386166d2f279767ac87b226204c0de7eFilipe BrandenburgerAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
be8737ae386166d2f279767ac87b226204c0de7eFilipe BrandenburgerAS_IF([test "x$PYTHON_BINARY" = "x"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AS_IF([test "x$have_python" = "xyes"],
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek [PYTHON_BINARY="$(which "$PYTHON")"],
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek [PYTHON_BINARY=/usr/bin/python])])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-SzmekAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-SzmekAS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** python-devel support requires --with-python])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekhave_python_devel=no
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau [have_python_devel=yes],
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmek [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers [have_python_devel=yes],
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers [have_python_devel=no])])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
5fd2e2284323304ad28f8ab80041f3cf6632dc72Michal Schmidt# ------------------------------------------------------------------------------
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([linux/btrfs.h], [], [])
e287086b8aa2558356af225a12d9bfea8e7d61caLennart PoetteringAC_CHECK_HEADERS([linux/memfd.h], [], [])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek# unconditionally pull-in librt with old glibc versions
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart PoetteringAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
3b794314149e40afaf3c456285e1e529747b6560Holger Schurigsave_LIBS="$LIBS"
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60Lennart PoetteringCAP_LIBS="$LIBS"
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_SUBST(CAP_LIBS)
84dd59b51c0db34f0334e90a5da2a45abcc9a52aDjalal HarouniAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
c4a5ddc9f29cf910fac9d814cd898b4cc2bd79b1Tom GundersenRT_LIBS="$LIBS"
6589d0dba2b1ccf2406db527c2c1b51c7143e117Jean-André SantoniAC_SUBST(RT_LIBS)
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-SzmekLIBS="$save_LIBS"
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([memfd_create])
583c14fc04a089e9af70a3fa0b8c0a8c27c06ec0Michael OlbrichAC_CHECK_FUNCS([__secure_getenv secure_getenv])
56bf3853b4aefad31edf8631668446007e2347cbSusant SahaniAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, getrandom, renameat2, kcmp, LO_FLAGS_PARTSCAN],
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_CHECK_DECLS([IFLA_INET6_ADDR_GEN_MODE,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek IFLA_MACVLAN_FLAGS,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek IFLA_IPVLAN_MODE,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek IFLA_VTI_REMOTE,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek IFLA_PHYS_PORT_ID,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek IFLA_BOND_AD_INFO,
34f7b9f98facbf3431c6849622104cee992f2b7dLennart Poettering IFLA_VLAN_PROTOCOL,
cf1755bac0426132c21fdca519a336ce7d920277Michael Olbrich IFLA_VXLAN_REMCSUM_NOPARTIAL,
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek IFLA_IPTUN_6RD_RELAY_PREFIXLEN,
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering IFLA_BRIDGE_VLAN_INFO,
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen IFLA_BRPORT_UNICAST_FLOOD,
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing# This makes sure pkg.m4 is available.
37161c5148396448921841ae1026b281c7949652Emil Renner Berthingm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing# ------------------------------------------------------------------------------
37161c5148396448921841ae1026b281c7949652Emil Renner BerthingAC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
37161c5148396448921841ae1026b281c7949652Emil Renner BerthingAS_IF([test "x$enable_dbus" != "xno"], [
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([utmp], AS_HELP_STRING([--disable-utmp], [disable utmp/wtmp log handling]),
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AS_CASE("x${enableval}",
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [xyes], [have_utmp=yes],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [xno], [have_utmp=no],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR(bad value ${enableval} for --enable-utmp)))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAS_IF([test "x$have_utmp" = "xyes"], [AC_DEFINE(HAVE_UTMP, 1, [Define if utmp/wtmp support is enabled])])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL([HAVE_UTMP], [test "x$have_utmp" = "xyes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_compat_libs=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [case "${enableval}" in
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen yes) have_compat_libs=yes ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen no) have_compat_libs=no ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [have_compat_libs=no])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_coverage=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_coverage" = "xyes" ; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$lcov_found" = xno ; then
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AC_MSG_ERROR([*** lcov support requested but the program was not found])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner have_coverage=yes
70d8320978dcbce022d9acbb953a10a7aca049abDavid Strauss CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner -fprofile-arcs \
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen -ftest-coverage])
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom Gundersen AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
f553b3b1074151200187df916427a1468186435eAnders OlofssonAM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann# ------------------------------------------------------------------------------
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David HerrmannAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmannif test "x$enable_kmod" != "xno"; then
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann if test "x$have_kmod" = "xyes"; then
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann AC_MSG_ERROR([*** kmod version >= 15 not found]))
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_MSG_ERROR([*** kmod support requested, but libraries not found])
f553b3b1074151200187df916427a1468186435eAnders OlofssonAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
f553b3b1074151200187df916427a1468186435eAnders Olofsson# ------------------------------------------------------------------------------
f553b3b1074151200187df916427a1468186435eAnders Olofssonhave_xkbcommon=no
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_ENABLE(xkbcommon, AS_HELP_STRING([--disable-xkbcommon], [disable xkbcommon keymap support]))
f553b3b1074151200187df916427a1468186435eAnders Olofssonif test "x$enable_xkbcommon" != "xno"; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson PKG_CHECK_MODULES(XKBCOMMON, [ xkbcommon >= 0.3.0 ],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [AC_DEFINE(HAVE_XKBCOMMON, 1, [Define if libxkbcommon is available]) have_xkbcommon=yes], have_xkbcommon=no)
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen if test "x$have_xkbcommon" = xno -a "x$enable_xkbcommon" = xyes; then
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech AC_MSG_ERROR([*** xkbcommon support requested but libraries not found])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris LeechAM_CONDITIONAL(HAVE_XKBCOMMON, [test "$have_xkbcommon" = "yes"])
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech# ------------------------------------------------------------------------------
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leechhave_blkid=no
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris LeechAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leechif test "x$enable_blkid" != "xno"; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier PKG_CHECK_MODULES(BLKID, [ blkid >= 2.24 ],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AC_MSG_ERROR([*** blkid support requested but libraries not found])
17df7223be064b1542dbe868e3b35cca977ee639Lennart PoetteringAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier# ------------------------------------------------------------------------------
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierhave_libmount=no
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierPKG_CHECK_MODULES(MOUNT, [ mount >= 2.20 ],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [AC_DEFINE(HAVE_LIBMOUNT, 1, [Define if libmount is available]) have_libmount=yes], have_libmount=no)
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierif test "x$have_libmount" = xno; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AC_MSG_ERROR([*** libmount support required but libraries not found])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(HAVE_LIBMOUNT, [test "$have_libmount" = "yes"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# ------------------------------------------------------------------------------
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuhave_seccomp=no
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support]))
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x$enable_seccomp" != "xno"; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu have_seccomp=yes
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_seccomp=no])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_MSG_ERROR([*** seccomp support requested but libraries not found])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAM_CONDITIONAL(HAVE_SECCOMP, [test "$have_seccomp" = "yes"])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering# ------------------------------------------------------------------------------
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart PoetteringAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering [case "${enableval}" in
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering yes) have_ima=yes ;;
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering no) have_ima=no ;;
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [have_ima=yes])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringif test "x${have_ima}" != xno ; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer# ------------------------------------------------------------------------------
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererhave_selinux=no
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Schererif test "x$enable_selinux" != "xno"; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer have_selinux=yes
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer M4_DEFINES="$M4_DEFINES -DHAVE_SELINUX"],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer [have_selinux=no])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_MSG_ERROR([*** SELinux support requested but libraries not found])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezhave_apparmor=no
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_ARG_ENABLE(apparmor, AS_HELP_STRING([--disable-apparmor], [Disable optional AppArmor support]))
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguezif test "x$enable_apparmor" != "xno"; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez PKG_CHECK_MODULES([APPARMOR], [libapparmor],
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers [AC_DEFINE(HAVE_APPARMOR, 1, [Define if AppArmor is available])
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh have_apparmor=yes
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez M4_DEFINES="$M4_DEFINES -DHAVE_APPARMOR"],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [have_apparmor=no])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez if test "x$have_apparmor" = xno -a "x$enable_apparmor" = xyes; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_MSG_ERROR([*** AppArmor support requested but libraries not found])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAM_CONDITIONAL(HAVE_APPARMOR, [test "$have_apparmor" = "yes"])
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-SzmekAC_ARG_WITH(debug-shell,
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-debug-shell=PATH],
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek [Path to debug shell binary]),
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek [SUSHELL="$withval"],[
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-SzmekAC_SUBST(SUSHELL)
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_WITH([debug-tty],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AS_HELP_STRING([--with-debug-tty=PATH],
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek [Specify the tty device for debug shell]),
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [DEBUGTTY="$withval"],
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-SzmekAC_SUBST(DEBUGTTY)
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-SzmekAC_ARG_WITH([certificate-root],
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-certificate-root=PATH],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [Specify the prefix for TLS certificates [/etc/ssl]]),
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [CERTIFICATEROOT="$withval"],
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering [CERTIFICATEROOT="/etc/ssl"])
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart PoetteringAC_SUBST(CERTIFICATEROOT)
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering# ------------------------------------------------------------------------------
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmekif test "x$enable_xz" != "xno"; then
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(XZ, [ liblzma ],
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering AC_MSG_ERROR([*** XZ support requested but libraries not found])
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering# ------------------------------------------------------------------------------
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(zlib, AS_HELP_STRING([--disable-zlib], [Disable optional ZLIB support]))
831f18cbf3f250207fcde15ea736639898317d77Lennart Poetteringif test "x$enable_zlib" != "xno"; then
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(ZLIB, [ zlib ],
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_ZLIB, 1, [Define if ZLIB is available]) have_zlib=yes], have_zlib=no)
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek if test "x$have_zlib" = xno -a "x$enable_zlib" = xyes; then
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering AC_MSG_ERROR([*** ZLIB support requested but libraries not found])
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_ZLIB, [test "$have_zlib" = "yes"])
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
898d5660eba688c566e90d0a15050dfeb8b8265dZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(bzip2, AS_HELP_STRING([--enable-bzip2], [Disable optional BZIP2 support]))
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_bzip2" != "xno"], [
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek AC_CHECK_HEADERS(bzlib.h,
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_BZIP2, 1, [Define in BZIP2 is available])
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek have_bzip2=yes],
1a2a0ac53bbe724caf41c2bcf22ab9ea32b63d4eZbigniew Jędrzejewski-Szmek [AS_IF([test "x$have_bzip2" = xyes], [AC_MSG_ERROR([*** BZIP2 support requested but headers not found])])
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_BZIP2, [test "$have_bzip2" = "yes"])
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(lz4, AS_HELP_STRING([--enable-lz4], [Enable optional LZ4 support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAS_IF([test "x$enable_lz4" = "xyes"], [
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(lz4.h,
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_LZ4, 1, [Define in LZ4 is available]) have_lz4=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_MSG_ERROR([*** LZ4 support requested but headers not found])])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_LZ4, [test "$have_lz4" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_COMPRESSION, [test "$have_xz" = "yes" -o "$have_lz4" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([pam],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_pam=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_pam=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_pam}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** PAM headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** libpam not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM_LIBS="-lpam -lpam_misc"
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_DEFINE(HAVE_PAM, 1, [PAM available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_PAM"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(PAM_LIBS)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([acl],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_acl=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_acl=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=auto])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_acl}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_CHECK_HEADERS(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [acl_get_file],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** libacl not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACL_LIBS="-lacl"
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_DEFINE(HAVE_ACL, 1, [ACL available])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski M4_DEFINES="$M4_DEFINES -DHAVE_ACL"
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST(ACL_LIBS)
566c9f5ad5b3b27f221e1cd4a8d7ca48c8438aa9Evgeny VereshchaginAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sievers# ------------------------------------------------------------------------------
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay SieversAC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [case "${enableval}" in
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski yes) have_smack=yes ;;
c0957da3f4cc2a0fe0d8e0c03e695b99cf132718Evgeny Vereshchagin no) have_smack=no ;;
c0957da3f4cc2a0fe0d8e0c03e695b99cf132718Evgeny Vereshchagin *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok [have_smack=auto])
e174dce27173396ed8034c9cfda87eb210365126WaLyong Choif test "x${have_smack}" = xauto; then
1fab0cbafcb67cff912d0e45de9677135550f924Sangjung Woo M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
e174dce27173396ed8034c9cfda87eb210365126WaLyong Cho have_smack=yes
1fab0cbafcb67cff912d0e45de9677135550f924Sangjung WooAC_ARG_WITH(smack-run-label,
1fab0cbafcb67cff912d0e45de9677135550f924Sangjung WooAS_HELP_STRING([--with-smack-run-label=STRING],
1fab0cbafcb67cff912d0e45de9677135550f924Sangjung Woo [run systemd --system with a specific SMACK label]),
e174dce27173396ed8034c9cfda87eb210365126WaLyong Cho [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])],
e174dce27173396ed8034c9cfda87eb210365126WaLyong Choif test "x${have_smack}" = xyes ; then
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart PoetteringAM_CONDITIONAL([HAVE_SMACK], [test "x$have_smack" = "xyes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE([gcrypt],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [case "${enableval}" in
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering yes) have_gcrypt=yes ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering no) have_gcrypt=no ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson [have_gcrypt=auto])
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johanssonif test "x${have_gcrypt}" != xno ; then
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson AM_PATH_LIBGCRYPT(
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson [have_gcrypt=yes],
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson [if test "x$have_gcrypt" = xyes ; then
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson AC_MSG_ERROR([*** GCRYPT headers not found.])
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson if test "x$have_gcrypt" = xyes ; then
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson GCRYPT_LIBS="$LIBGCRYPT_LIBS"
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
79e8bde40da4d18c553b64299ebb69f409260df4Olof Johansson AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_gcrypt=no
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart Poettering GCRYPT_CFLAGS=
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart PoetteringAC_SUBST(GCRYPT_LIBS)
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart PoetteringAC_SUBST(GCRYPT_CFLAGS)
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart PoetteringAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart Poettering# ------------------------------------------------------------------------------
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart PoetteringAC_ARG_ENABLE([audit],
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart 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 ;;
d28ac939c131ce9de2bb4bfcb621e4f969f42c96Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_audit=auto])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x${have_audit}" != xno ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_CHECK_HEADERS(
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_audit=yes],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [if test "x$have_audit" = xyes ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** AUDIT headers not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_audit=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** libaudit not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AUDIT_LIBS="-laudit"
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST(AUDIT_LIBS)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL([HAVE_AUDIT], [test "x$have_audit" != xno])
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 [have_elfutils=auto])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x${have_elfutils}" != xno ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_HEADERS(
4733607eec54034d2083534ebff2dad89c28574eZbigniew Jędrzejewski-Szmek [if test "x$have_elfutils" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** ELFUTILS headers not found.])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [if test "x$have_elfutils" = xyes ; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_MSG_ERROR([*** ELFUTILS libs not found.])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [dwfl_core_file_attach],
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau [have_elfutils=yes],
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering [if test "x$have_elfutils" = xyes ; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering AC_MSG_ERROR([*** ELFUTILS >= 158 is required.])
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau if test "x$have_elfutils" = xyes ; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau ELFUTILS_LIBS="-lelf -ldw"
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau AC_DEFINE(HAVE_ELFUTILS, 1, [ELFUTILS available])
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau have_elfutils=no
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau ELFUTILS_LIBS=
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_SUBST(ELFUTILS_LIBS)
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(HAVE_ELFUTILS, [test "$have_elfutils" = "yes"])
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])
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
8cf3ca80680b43015971cbbf4625517ae859d50cJan Janssen# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringhave_qrencode=no
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringif test "x$enable_qrencode" != "xno"; then
7f4e08056de0184b205a20632e62db73d299937eLennart 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])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
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])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
f12be7e8ca278a5a207d0fd051acec700b804a7aZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(gnutls, AS_HELP_STRING([--disable-gnutls], [disable gnutls support]))
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmekif test "x$enable_gnutls" != "xno"; then
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.1.4],
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_GNUTLS, 1, [Define if gnutls is available]) have_gnutls=yes], have_gnutls=no)
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek if test "x$have_gnutls" = xno -a "x$enable_gnutls" = xyes; then
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** gnutls support requested but libraries not found])
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny VereshchaginAM_CONDITIONAL(HAVE_GNUTLS, [test "$have_gnutls" = "yes"])
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin# ------------------------------------------------------------------------------
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchaginhave_libcurl=no
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny VereshchaginAC_ARG_ENABLE(libcurl, AS_HELP_STRING([--disable-libcurl], [disable libcurl support]))
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchaginif test "x$enable_libcurl" != "xno"; then
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin PKG_CHECK_MODULES(LIBCURL, [libcurl],
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin [AC_DEFINE(HAVE_LIBCURL, 1, [Define if libcurl is available]) have_libcurl=yes], have_libcurl=no)
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin if test "x$have_libcurl" = xno -a "x$enable_libcurl" = xyes; then
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin AC_MSG_ERROR([*** libcurl support requested but libraries not found])
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny VereshchaginAM_CONDITIONAL(HAVE_LIBCURL, [test "$have_libcurl" = "yes"])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
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
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin PKG_CHECK_MODULES(LIBIDN, [libidn],
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin [AC_DEFINE(HAVE_LIBIDN, 1, [Define if libidn is available])
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin have_libidn=yes
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin M4_DEFINES="$M4_DEFINES -DHAVE_LIBIDN"],
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek [have_libidn=no])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek if test "x$have_libidn" = "xno" -a "x$enable_libidn" = "xyes"; then
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** libidn support requested but libraries not found])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_LIBIDN, [test "$have_libidn" = "yes"])
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchagin# ------------------------------------------------------------------------------
e400d4b3f57e4303e5ff46f18d94b7c0f7ed589eEvgeny Vereshchaginhave_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])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering if test "x$have_libiptc" = "xno" -a "x$enable_libiptc" = "xyes"; then
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering AC_MSG_ERROR([*** libiptc support requested but libraries not found])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAM_CONDITIONAL(HAVE_LIBIPTC, [test "$have_libiptc" = "yes"])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering# ------------------------------------------------------------------------------
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 PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering# ------------------------------------------------------------------------------
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poetteringhave_vconsole=no
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poetteringif test "x$enable_vconsole" != "xno"; then
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering have_vconsole=yes
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_bootchart=no
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnaif test "x$enable_bootchart" != "xno"; then
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna have_bootchart=yes
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_quotacheck=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x$enable_quotacheck" != "xno"; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering have_quotacheck=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering# ------------------------------------------------------------------------------
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokhave_tmpfiles=no
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokif test "x$enable_tmpfiles" != "xno"; then
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok have_tmpfiles=yes
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_sysusers=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(sysusers, AS_HELP_STRING([--disable-sysusers], [disable sysusers support]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_sysusers" != "xno"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_sysusers=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_SYSUSERS, [test "$have_sysusers" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering# ------------------------------------------------------------------------------
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarhave_firstboot=no
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_ARG_ENABLE(firstboot, AS_HELP_STRING([--disable-firstboot], [disable firstboot support]))
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarif test "x$enable_firstboot" != "xno"; then
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar have_firstboot=yes
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAM_CONDITIONAL(ENABLE_FIRSTBOOT, [test "$have_firstboot" = "yes"])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar# ------------------------------------------------------------------------------
1b99214789101976d6bbf75c351279584b071998Lennart Poetteringhave_randomseed=no
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
1b99214789101976d6bbf75c351279584b071998Lennart Poetteringif test "x$enable_randomseed" != "xno"; then
1b99214789101976d6bbf75c351279584b071998Lennart Poettering have_randomseed=yes
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
1b99214789101976d6bbf75c351279584b071998Lennart Poettering# ------------------------------------------------------------------------------
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringhave_backlight=no
418b9be50018303cde79b423d4701b7fd86ddbdcLennart PoetteringAC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringif test "x$enable_backlight" != "xno"; then
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering have_backlight=yes
418b9be50018303cde79b423d4701b7fd86ddbdcLennart PoetteringAM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_rfkill=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_rfkill" != "xno"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_rfkill=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering# ------------------------------------------------------------------------------
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poetteringif test "x$enable_logind" != "xno"; then
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering have_logind=yes
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering# ------------------------------------------------------------------------------
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringhave_machined=no
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringif test "x$enable_machined" != "xno"; then
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering have_machined=yes
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart PoetteringAS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers# ------------------------------------------------------------------------------
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievershave_importd=no
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_ENABLE(importd, AS_HELP_STRING([--disable-importd], [disable import daemon]))
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversif test "x$enable_importd" != "xno"; then
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers have_importd=yes
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay SieversAM_CONDITIONAL(ENABLE_IMPORTD, [test "$have_importd" = "yes"])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAS_IF([test "$have_importd" = "yes"], [ AC_DEFINE(HAVE_IMPORTD, [1], [Importd support available]) ])
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering# ------------------------------------------------------------------------------
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringhave_hostnamed=no
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringif test "x$enable_hostnamed" != "xno"; then
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering have_hostnamed=yes
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering# ------------------------------------------------------------------------------
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poetteringhave_timedated=no
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart PoetteringAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poetteringif test "x$enable_timedated" != "xno"; then
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering have_timedated=yes
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart PoetteringAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_timesyncd=no
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAC_ARG_ENABLE(timesyncd, AS_HELP_STRING([--disable-timesyncd], [disable timesync daemon]))
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnaif test "x$enable_timesyncd" != "xno"; then
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna have_timesyncd=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers M4_DEFINES="$M4_DEFINES -DENABLE_TIMESYNCD"
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAM_CONDITIONAL(ENABLE_TIMESYNCD, [test "$have_timesyncd" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(ntp-servers,
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna AS_HELP_STRING([--with-ntp-servers=NTPSERVERS],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [Space-separated list of default NTP servers]),
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [NTP_SERVERS="$withval"],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [NTP_SERVERS="time1.google.com time2.google.com time3.google.com time4.google.com"])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_SUBST(NTP_SERVERS)
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAC_ARG_WITH(time-epoch,
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers AS_HELP_STRING([--with-time-epoch=SECONDS],
43ba1b3e642253652cc29c92903cf53e310ce6cbLennart Poettering [Time epoch for time clients]),
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers [TIME_EPOCH="$withval"],
5a16bc264c32237e38a844d55e7a1820a31b8440Łukasz Stelmach [TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"])
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay SieversAC_DEFINE_UNQUOTED(TIME_EPOCH, [$TIME_EPOCH], [Time Epoch])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering# ------------------------------------------------------------------------------
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAC_ARG_WITH(system-uid-max,
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering AS_HELP_STRING([--with-system-uid-max=UID]
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering [Maximum UID for system users]),
2ed3de9cc4f80670cd911536c3e40239fb0e2aa6Lennart Poettering [SYSTEM_UID_MAX="$withval"],
b32545ff19364fe75240dc99bcc0ec6861d1bc61Zbigniew Jędrzejewski-Szmek [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`"])
b32545ff19364fe75240dc99bcc0ec6861d1bc61Zbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(SYSTEM_UID_MAX, [$SYSTEM_UID_MAX], [Maximum System UID])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAC_SUBST(SYSTEM_UID_MAX)
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering# ------------------------------------------------------------------------------
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart PoetteringAC_ARG_WITH(system-gid-max,
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering AS_HELP_STRING([--with-system-gid-max=GID]
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering [Maximum GID for system groups]),
5ea846cc5197682d07ee46398996a8c3ccfbcc38Zbigniew Jędrzejewski-Szmek [SYSTEM_GID_MAX="$withval"],
661278ee297247c0c7e0708924f8ce52284529fcLennart 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`"])
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_DEFINE_UNQUOTED(SYSTEM_GID_MAX, [$SYSTEM_GID_MAX], [Maximum System GID])
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_SUBST(SYSTEM_GID_MAX)
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering# ------------------------------------------------------------------------------
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poetteringhave_localed=no
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poetteringif test "x$enable_localed" != "xno"; then
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering have_localed=yes
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering# ------------------------------------------------------------------------------
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poetteringhave_coredump=no
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poetteringif test "x$enable_coredump" != "xno"; then
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering have_coredump=yes
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering# ------------------------------------------------------------------------------
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poetteringif test "x$enable_polkit" != "xno"; then
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna have_polkit=yes
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna# ------------------------------------------------------------------------------
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnahave_resolved=no
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_ENABLE(resolved, AS_HELP_STRING([--disable-resolved], [disable resolve daemon]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_resolved" != "xno"; then
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering have_resolved=yes
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering M4_DEFINES="$M4_DEFINES -DENABLE_RESOLVED"
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAM_CONDITIONAL(ENABLE_RESOLVED, [test "$have_resolved" = "yes"])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_WITH(dns-servers,
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering AS_HELP_STRING([--with-dns-servers=DNSSERVERS],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [Space-separated list of default DNS servers]),
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [DNS_SERVERS="$withval"],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [DNS_SERVERS="8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844"])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_DEFINE_UNQUOTED(DNS_SERVERS, ["$DNS_SERVERS"], [Default DNS Servers])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_SUBST(DNS_SERVERS)
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering# ------------------------------------------------------------------------------
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringhave_networkd=no
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin WaltersAC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAS_IF([test "x$enable_networkd" != "xno"], [
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
e97379dea2a5b99648abd2d76fae108b369f4988Michal Schmidt have_networkd=yes
e97379dea2a5b99648abd2d76fae108b369f4988Michal Schmidt M4_DEFINES="$M4_DEFINES -DENABLE_NETWORKD"
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
e97379dea2a5b99648abd2d76fae108b369f4988Michal Schmidt# ------------------------------------------------------------------------------
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin WaltersAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersenif test "x$enable_efi" != "xno"; then
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
7b4d79683998a78d6e123dd034b1e06b74d8030bTom GundersenAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen# ------------------------------------------------------------------------------
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom GundersenAC_CHECK_TOOL(EFI_CC, gcc)
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenEFI_ARCH=`echo $host | sed "s/\(-\).*$//"`
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAM_COND_IF(ARCH_IA32, [
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen EFI_MACHINE_TYPE_NAME=ia32])
5a16bc264c32237e38a844d55e7a1820a31b8440Łukasz StelmachAM_COND_IF(ARCH_X86_64, [
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek EFI_MACHINE_TYPE_NAME=x64])
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAM_COND_IF(ARCH_AARCH64, [
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering EFI_MACHINE_TYPE_NAME=aa64])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAC_SUBST([EFI_ARCH])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAC_SUBST([EFI_MACHINE_TYPE_NAME])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAC_ARG_ENABLE(gnuefi, AS_HELP_STRING([--enable-gnuefi], [Disable optional gnuefi support]))
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAS_IF([test "x$enable_gnuefi" != "xno"], [
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_CHECK_HEADERS(efi/${EFI_ARCH}/efibind.h,
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AC_DEFINE(HAVE_GNUEFI, 1, [Define if gnuefi is available])
63e69fb4a0ce15d5a0c35c384402834ec2cb5152Marc-Antoine Perennou have_gnuefi=yes],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AS_IF([test "x$enable_gnuefi" = xyes],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AC_MSG_ERROR([*** gnuefi support requested but headers not found])])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers efiroot=$(echo $(cd /usr/lib/$(${EFI_CC} -print-multi-os-directory); pwd))
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers EFI_LIB_DIR="$efiroot"
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AC_ARG_WITH(efi-libdir,
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AS_HELP_STRING([--with-efi-libdir=PATH], [Path to EFI lib directory]),
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [EFI_LIB_DIR="$withval"], [EFI_LIB_DIR="$efiroot"]
4c6abc93c708762ae3f377eab8dbd357262cc432Koen Kooi AC_SUBST([EFI_LIB_DIR])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers have_efi_lds=no
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AC_ARG_WITH(efi-ldsdir,
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AS_HELP_STRING([--with-efi-ldsdir=PATH], [Path to EFI lds directory]),
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [EFI_LDS_DIR="$withval" && AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [have_efi_lds=yes])],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AS_FOR([DIR], [EFI_LDS_DIR], ["${EFI_LIB_DIR}/gnuefi" "${EFI_LIB_DIR}"],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AC_CHECK_FILE([${EFI_LDS_DIR}/elf_${EFI_ARCH}_efi.lds],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [have_efi_lds=yes && break])])])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AS_IF([test "x$have_efi_lds" = xyes],
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmek [AC_SUBST([EFI_LDS_DIR])],
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmek [AS_IF([test "x$enable_gnuefi" = xyes],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AC_MSG_ERROR([*** gnuefi support requested but files not found])],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [have_gnuefi=no])])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AC_ARG_WITH(efi-includedir,
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AS_HELP_STRING([--with-efi-includedir=PATH], [Path to EFI include directory]),
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [EFI_INC_DIR="$withval"], [EFI_INC_DIR="/usr/include"]
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AC_SUBST([EFI_INC_DIR])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay SieversAM_CONDITIONAL(HAVE_GNUEFI, [test "x$have_gnuefi" = xyes])
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay SieversAC_ARG_WITH(unifont,
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-unifont=PATH],
efbef0036d33da7d61deae13477d2f44752ced74Mirco Tischler [UNIFONT="$withval"],
182247ea923895e6078a292c2a2754af222d1d27Johannes NixdorfAC_SUBST(UNIFONT)
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(terminal, AS_HELP_STRING([--enable-terminal], [enable terminal support]))
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmekif test "x$enable_terminal" = "xyes"; then
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES([TERMINAL], [ libevdev >= 1.2 xkbcommon >= 0.5 libdrm >= 2.4], [have_terminal=yes])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AC_CHECK_FILE($UNIFONT, [have_unifont=yes])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AS_IF([test "x$have_terminal" != xyes -o "x$have_unifont" != "xyes" -a "x$enable_terminal" = xyes],
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** terminal support requested but required dependencies not available])],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [test "x$have_terminal" = xyes -a "x$have_unifont" = "xyes"],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers [AC_DEFINE(ENABLE_TERMINAL, 1, [Define if terminal support is to be enabled])])
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_TERMINAL, [test "x$have_terminal" = "xyes" -a "x$have_unifont" = "xyes"])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers# ------------------------------------------------------------------------------
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart PoetteringAC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
1b09f548c7f303b486b5b1321c06336bff72ada4Kay Sieversif test "x$enable_kdbus" = "xyes"; then
1b09f548c7f303b486b5b1321c06336bff72ada4Kay Sievers AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
1b09f548c7f303b486b5b1321c06336bff72ada4Kay Sievers have_kdbus=yes
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart PoetteringAM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering# ------------------------------------------------------------------------------
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_WITH(rc-local-script-path-start,
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [RC_LOCAL_SCRIPT_PATH_START="$withval"],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_WITH(rc-local-script-path-stop,
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering# ------------------------------------------------------------------------------
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_WITH(kbd-loadkeys,
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AS_HELP_STRING([--with-kbd-loadkeys=PATH],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [Path to loadkeys]),
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [KBD_LOADKEYS="$withval"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [KBD_LOADKEYS="/usr/bin/loadkeys"])
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_WITH(kbd-setfont,
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AS_HELP_STRING([--with-kbd-setfont=PATH],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [Path to setfont]),
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [KBD_SETFONT="$withval"],
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_SUBST(KBD_LOADKEYS)
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_SUBST(KBD_SETFONT)
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_WITH(telinit,
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez AS_HELP_STRING([--with-telinit=PATH],
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [Path to telinit]),
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [TELINIT="$withval"],
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_SUBST(TELINIT)
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenhave_myhostname=no
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
f8c5a5815ff7c137d9a1e5d7b48a6532b9f31407Lennart Poetteringif test "x$enable_myhostname" != "xno"; then
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_HEADER_STDC
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h sys/auxv.h])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_TYPE_SIZE_T
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_HEADER_TIME
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_FUNC_MALLOC
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_FUNC_SELECT_ARGTYPES
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen have_myhostname=yes
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog# ------------------------------------------------------------------------------
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar LindskogAC_ARG_ENABLE([gudev],
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog [], [enable_gudev=yes])
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar LindskogAS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0]) ])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
75db9a77605b33a1b9355eae957f26380441fce6Lennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
2fd385c6703ef01fb52335179513392260add373Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
2fd385c6703ef01fb52335179513392260add373Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(hwdb, [AC_HELP_STRING([--disable-hwdb], [disable hardware database support])],
2fd385c6703ef01fb52335179513392260add373Zbigniew Jędrzejewski-Szmek enable_hwdb=$enableval, enable_hwdb=yes)
2fd385c6703ef01fb52335179513392260add373Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_HWDB, [test x$enable_hwdb = xyes])
2fd385c6703ef01fb52335179513392260add373Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
75db9a77605b33a1b9355eae957f26380441fce6Lennart PoetteringAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar LindskogAS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar LindskogAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar Lindskog# ------------------------------------------------------------------------------
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar LindskogAC_ARG_ENABLE(hibernate,
4df5c00b6e5de8733f3bb33ee7980fad1a498789Umut Tezduyar Lindskog [AC_HELP_STRING([--disable-hibernate], [disable hibernation support])],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers enable_hibernate=$enableval, enable_hibernate=yes)
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar LindskogAM_CONDITIONAL(ENABLE_HIBERNATE, [test x$enable_hibernate = xyes])
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar Lindskog# ------------------------------------------------------------------------------
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar LindskogAC_ARG_ENABLE(ldconfig,
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [AC_HELP_STRING([--disable-ldconfig], [disable ldconfig])],
12e34d9d58ed4d97e7bdf8c23494c51ee5ec388eUmut Tezduyar Lindskog enable_ldconfig=$enableval, enable_ldconfig=yes)
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringAM_CONDITIONAL(ENABLE_LDCONFIG, [test x$enable_ldconfig = xyes])
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart Poettering# ------------------------------------------------------------------------------
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering# Location of the init scripts as mandated by LSB
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenSYSTEM_SYSVINIT_PATH=/etc/init.d
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversSYSTEM_SYSVRCND_PATH=/etc/rc.d
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_ARG_WITH([sysvinit-path],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [AS_HELP_STRING([--with-sysvinit-path=PATH],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [Specify the path to where the SysV init scripts are located])],
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_WITH([sysvrcnd-path],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [Specify the path to the base directory for the SysV rcN.d directories])],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [SYSTEM_SYSVRCND_PATH="$withval"],
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering SYSTEM_SYSV_COMPAT="yes"
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio 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.])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering SYSTEM_SYSV_COMPAT="no"
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_SUBST(M4_DEFINES)
a05ea46dc788929bc8b13afb4208ca29cad68572Michael BieblAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart PoetteringAC_ARG_WITH([tty-gid],
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering [AS_HELP_STRING([--with-tty-gid=GID],
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering [Specify the numeric GID of the 'tty' group])],
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering [TTY_GID="$withval"],
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering [TTY_GID="5"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_DEFINE_UNQUOTED(TTY_GID, [$TTY_GID], [GID of the 'tty' group])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST(TTY_GID)
977db91c29083478c6fb7c7bf033e14c567df5d5Filipe BrandenburgerAC_ARG_WITH([dbuspolicydir],
dd334850259e6bc25fdd003790467f428d40fbcdMichael Biebl AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbuspolicydir=${sysconfdir}/dbus-1/system.d])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
977db91c29083478c6fb7c7bf033e14c567df5d5Filipe Brandenburger AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering [with_dbussessionservicedir=${datadir}/dbus-1/services])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussystemservicedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
dd334850259e6bc25fdd003790467f428d40fbcdMichael Biebl [with_dbussystemservicedir=${datadir}/dbus-1/system-services])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAC_ARG_WITH([bashcompletiondir],
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl with_bashcompletiondir=${datadir}/bash-completion/completions
dd334850259e6bc25fdd003790467f428d40fbcdMichael BieblAC_ARG_WITH([zshcompletiondir],
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]),
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas [], [with_zshcompletiondir=${datadir}/zsh/site-functions])
4f87c47b35cf9c1f58872559ae67a2656712fdd6William GiokasAC_ARG_WITH([rootprefix],
a5ba84b7f242b209691d926f786bd48953a43803Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
dd334850259e6bc25fdd003790467f428d40fbcdMichael Biebl [], [with_rootprefix=${ac_default_prefix}])
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_ARG_WITH([rootlibdir],
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
e013d21b6218011c99dbbcd4c61fc73a24490a94Filipe Brandenburger [with_rootlibdir=${libdir}])
e013d21b6218011c99dbbcd4c61fc73a24490a94Filipe BrandenburgerAC_ARG_WITH([pamlibdir],
e013d21b6218011c99dbbcd4c61fc73a24490a94Filipe Brandenburger AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
e013d21b6218011c99dbbcd4c61fc73a24490a94Filipe Brandenburger [with_pamlibdir=${with_rootlibdir}/security])
dd334850259e6bc25fdd003790467f428d40fbcdMichael BieblAC_ARG_WITH([pamconfdir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [with_pamconfdir=${sysconfdir}/pam.d])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_ARG_ENABLE([split-usr],
dd334850259e6bc25fdd003790467f428d40fbcdMichael Biebl AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl enable_split_usr=yes
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers enable_split_usr=no
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-SzmekAC_ARG_WITH([dkr-index-url],
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek [AS_HELP_STRING([--dkr-index-url=URL], [Specify the default index URL to use for image downloads])],
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek [DEFAULT_DKR_INDEX_URL="\"$withval\""],
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek [DEFAULT_DKR_INDEX_URL="NULL"])
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(DEFAULT_DKR_INDEX_URL, [$DEFAULT_DKR_INDEX_URL], [Default index URL to use for image downloads])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_SUBST(DEFAULT_DKR_INDEX_URL)
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAS_IF([test "x${enable_split_usr}" = "xyes"], [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAM_CONDITIONAL(ENABLE_SPLIT_USR, [test "x${enable_split_usr}" = "xyes"])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny# Work around intltoolize and gtk-doc problems in VPATH builds
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [Define to do gtk-doc tests])
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart PoetteringAS_IF([test "x$0" != "x./configure"], [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
06528e8fdd82b243af41b8842d71169632c4a658Daniel Mack# QEMU and OVMF UEFI firmware
06528e8fdd82b243af41b8842d71169632c4a658Daniel MackAS_IF([test x"$cross_compiling" = "xyes"], [], [
06528e8fdd82b243af41b8842d71169632c4a658Daniel Mack AC_PATH_PROG([QEMU], [qemu-system-x86_64])
06528e8fdd82b243af41b8842d71169632c4a658Daniel Mack AC_CHECK_FILE([/usr/share/qemu/bios-ovmf.bin], [QEMU_BIOS=/usr/share/qemu/bios-ovmf.bin],
06528e8fdd82b243af41b8842d71169632c4a658Daniel Mack [AC_CHECK_FILE([/usr/share/qemu-ovmf/bios.bin], [QEMU_BIOS=/usr/share/qemu-ovmf/bios.bin])])
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers AC_SUBST([QEMU_BIOS])
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(tests,
1d64e14c30e993c2d3dc948fe53118d8700c3adeZbigniew Jędrzejewski-Szmek [AC_HELP_STRING([--disable-tests], [disable tests])],
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers enable_tests=$enableval, enable_tests=yes)
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay SieversAM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal BakkenAC_ARG_ENABLE(debug,
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt [AC_HELP_STRING([--enable-debug@<:@=LIST@:>@], [enable extra debugging (hashmap,mmap-cache)])],
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt [if test "x$enableval" = "xyes"; then
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken enableval="hashmap,mmap-cache"
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt saved_ifs="$IFS"
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt IFS="$IFS$PATH_SEPARATOR,"
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt for name in $enableval; do
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt case $name in
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt enable_debug_hashmap=yes
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt enable_debug_mmap_cache=yes
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidt IFS="$saved_ifs"],[])
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal Schmidtenable_debug=""
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAS_IF([test x$enable_debug_hashmap = xyes], [
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt AC_DEFINE(ENABLE_DEBUG_HASHMAP, 1, [Define if hashmap debugging is to be enabled])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt enable_debug="hashmap $enable_debug"
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAS_IF([test x$enable_debug_mmap_cache = xyes], [
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt AC_DEFINE(ENABLE_DEBUG_MMAP_CACHE, 1, [Define if mmap cache debugging is to be enabled])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt enable_debug="mmap-cache $enable_debug"
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidttest -z "$enable_debug" && enable_debug="none"
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal SchmidtAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
fad5a6c66e73d3df20846906121d52159e1f6bf4Michal SchmidtAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
994701548d3ea6aafe3d9c47d51f701878118d65Michal SchmidtAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal SchmidtAC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
994701548d3ea6aafe3d9c47d51f701878118d65Michal SchmidtAC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([pamlibdir], [$with_pamlibdir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([pamconfdir], [$with_pamconfdir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([rootprefix], [$with_rootprefix])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAC_SUBST([rootlibdir], [$with_rootlibdir])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_CONFIG_FILES([
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_MSG_RESULT([
a45a909fbbe11ad8c75cda5639d875476ac65453Christian Ruppert $PACKAGE_NAME $VERSION
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering libcryptsetup: ${have_libcryptsetup}
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering PAM: ${have_pam}
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AUDIT: ${have_audit}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering IMA: ${have_ima}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AppArmor: ${have_apparmor}
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu SELinux: ${have_selinux}
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer SECCOMP: ${have_seccomp}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering SMACK: ${have_smack}
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier ZLIB: ${have_zlib}
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski XZ: ${have_xz}
edce2aed3aa93b84f7b4c70412bdb665da2977b0Lennart Poettering LZ4: ${have_lz4}
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering BZIP2: ${have_bzip2}
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek ACL: ${have_acl}
8af3cf74df03f7528f9e2605ec7896a5daf0f711Lennart Poettering GCRYPT: ${have_gcrypt}
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering QRENCODE: ${have_qrencode}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering MICROHTTPD: ${have_microhttpd}
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering GNUTLS: ${have_gnutls}
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering libcurl: ${have_libcurl}
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek libidn: ${have_libidn}
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek libiptc: ${have_libiptc}
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering ELFUTILS: ${have_elfutils}
76917807eb50ccde58901e8bec7ed3d408d1cc22Lennart Poettering binfmt: ${have_binfmt}
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering vconsole: ${have_vconsole}
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna bootchart: ${have_bootchart}
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering quotacheck: ${have_quotacheck}
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok tmpfiles: ${have_tmpfiles}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering sysusers: ${have_sysusers}
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar firstboot: ${have_firstboot}
1b99214789101976d6bbf75c351279584b071998Lennart Poettering randomseed: ${have_randomseed}
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering backlight: ${have_backlight}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering rfkill: ${have_rfkill}
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering logind: ${have_logind}
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering machined: ${have_machined}
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers importd: ${have_importd}
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering hostnamed: ${have_hostnamed}
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3Lennart Poettering timedated: ${have_timedated}
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna timesyncd: ${have_timesyncd}
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna default NTP servers: ${NTP_SERVERS}
a91df40e69fec72cc98c9829721fa5153da28bc2Kay Sievers time epoch: ${TIME_EPOCH}
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering localed: ${have_localed}
661278ee297247c0c7e0708924f8ce52284529fcLennart Poettering networkd: ${have_networkd}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna resolved: ${have_resolved}
7a243b22041595a0c7e0dffb3ef5e2158dde933fJason A. Donenfeld default DNS servers: ${DNS_SERVERS}
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen coredump: ${have_coredump}
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen polkit: ${have_polkit}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering efi: ${have_efi}
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering gnuefi: ${have_gnuefi}
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering efi arch: ${EFI_ARCH}
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers EFI machine type: ${EFI_MACHINE_TYPE_NAME}
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers EFI CC ${EFI_CC}
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers EFI libdir: ${EFI_LIB_DIR}
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers EFI ldsdir: ${EFI_LDS_DIR}
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers EFI includedir: ${EFI_INC_DIR}
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers kmod: ${have_kmod}
0fa2cac4f0cdefaf1addd7f1fe0fd8113db9360bKay Sievers xkbcommon: ${have_xkbcommon}
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen blkid: ${have_blkid}
d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62David Herrmann libmount: ${have_libmount}
f553b3b1074151200187df916427a1468186435eAnders Olofsson dbus: ${have_dbus}
8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30Chris Leech nss-myhostname: ${have_myhostname}
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek gudev: ${enable_gudev}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen hwdb: ${enable_hwdb}
fe659612e40e6a0cf91a73b10aa45eea958b747eUmut Tezduyar Lindskog gintrospection: ${enable_introspection}
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering terminal: ${have_terminal}
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering kdbus: ${have_kdbus}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek Python: ${have_python}
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen Python Headers: ${have_python_devel}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek man pages: ${have_manpages}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek gtk-doc: ${enable_gtk_doc}
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek test coverage: ${have_coverage}
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing Split /usr: ${enable_split_usr}
3383f7e956fc7889e1ba3ff2998edd6a47357896Umut Tezduyar Lindskog SysV compatibility: ${SYSTEM_SYSV_COMPAT}
3383f7e956fc7889e1ba3ff2998edd6a47357896Umut Tezduyar Lindskog compatibility libraries: ${have_compat_libs}
fc86aa0ed204922dcafa85353cb10e1aa7d91a76Michal Schmidt utmp/wtmp support: ${have_utmp}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers ldconfig support: ${enable_ldconfig}
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering hibernate support: ${enable_hibernate}
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers extra debugging: ${enable_debug}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers prefix: ${prefix}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers rootprefix: ${with_rootprefix}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers sysconf dir: ${sysconfdir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers datarootdir: ${datarootdir}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek includedir: ${includedir}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek include_prefix: ${INCLUDE_PREFIX}
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek lib dir: ${libdir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering rootlib dir: ${with_rootlibdir}
5c390a4ae0d383b2003074ed011d47876c7e630cZbigniew Jędrzejewski-Szmek SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering Build Python: ${PYTHON}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering Installation Python: ${PYTHON_BINARY}
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl sphinx binary: ${SPHINX_BUILD}
4f87c47b35cf9c1f58872559ae67a2656712fdd6William Giokas PAM modules dir: ${with_pamlibdir}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering PAM configuration dir: ${with_pamconfdir}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering D-Bus policy dir: ${with_dbuspolicydir}
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez D-Bus session dir: ${with_dbussessionservicedir}
f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6Lennart Poettering D-Bus system dir: ${with_dbussystemservicedir}
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering Bash completions dir: ${with_bashcompletiondir}
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering Zsh completions dir: ${with_zshcompletiondir}
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
66be6554807773028a0111addb8e75c3cab11117Kay Sievers Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering Debug shell: ${SUSHELL} @ ${DEBUGTTY}
1f048a6b6bcc30d2e157711b3d231d7a944e6ffbJan Engelhardt TTY GID: ${TTY_GID}
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering Maximum System UID: ${SYSTEM_UID_MAX}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers Maximum System GID: ${SYSTEM_GID_MAX}