configure.ac revision bdf10b5b4d9e7abdc08bdca4b073d021b0043d1f
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Kay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# under the terms of the GNU Lesser General Public License as published by
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# (at your option) any later version.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is distributed in the hope that it will be useful, but
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# Lesser General Public License for more details.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU Lesser General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREREQ([2.64])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering [215],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://www.freedesktop.org/wiki/Software/systemd])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
78a825f216d39ee0295b00647b059d45467e1d02Kay SieversAC_CONFIG_SRCDIR([src/core/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CONFIG_AUX_DIR([build-aux])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier Jardón
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAC_USE_SYSTEM_EXTENSIONS
907dd1953b7517534d646f5b2777780020c896e2Kay SieversAC_SYS_LARGEFILE
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversAC_PREFIX_DEFAULT([/usr])
bbd9b8c2139a70005e4e83d198575e2a10fe1db2Lennart PoetteringAM_MAINTAINER_MODE([enable])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_SILENT_RULES([yes])
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_CANONICAL_HOST
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
8666abb452db73d9a11ead61251eec42bc531cceKay SieversLT_PREREQ(2.2)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringLT_INIT([disable-static])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart PoetteringAS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian RodríguezAS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera# i18n stuff for the PolicyKit policy files
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera# Check whether intltool can be found, disable NLS otherwise
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_CHECK_PROG(intltool_found, [intltool-merge], [yes], [no])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAS_IF([test x"$intltool_found" != xyes],
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering [AS_IF([test x"$enable_nls" = xyes],
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering [AC_MSG_ERROR([--enable-nls requested but intltool not found])],
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering [AS_IF([test x"$enable_nls" != xno],
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sievers [AC_MSG_WARN([*** Disabling NLS support because intltool was not found])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering enable_nls=no])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering ])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_NLS
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAS_IF([test x"$enable_nls" != xno -o "x$enable_polkit" != xno], [
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering # intltoolize greps for '^(AC|IT)_PROG_INTLTOOL', so it needs to be on its own line
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversIT_PROG_INTLTOOL([0.40.0])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart PoetteringAS_IF([test -z "$INTLTOOL_POLICY_RULE"], [
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering # If intltool is not available, provide a dummy rule to fail generation of %.policy files with a meaningful error message
b51fc639f01ee6194af3e7e944a79accce474fe1Dave Reisner INTLTOOL_POLICY_RULE='%.policy: %.policy.in ; @echo " ITMRG " $@ && echo "*** intltool support required to build target $@" && false'
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering AC_SUBST(INTLTOOL_POLICY_RULE)
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering])
c1c02e07ed87e027a6364c4f4aa2468796ca1c56Dave Reisner
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart PoetteringGETTEXT_PACKAGE=systemd
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom GundersenAC_SUBST(GETTEXT_PACKAGE)
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay SieversAC_PROG_MKDIR_P
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-SzmekAC_PROG_LN_S
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-SzmekAC_PROG_SED
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-SzmekAC_PROG_GREP
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-SzmekAC_PROG_AWK
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PROG_CC_C99
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([M4], [m4])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([XSLTPROC], [xsltproc])
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay SieversAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon], [$PATH:/usr/sbin:/sbin])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck], [$PATH:/usr/sbin:/sbin])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([KILL], [kill], [/usr/bin/kill], [$PATH:/usr/sbin:/sbin])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
ac714a78fdca481488d88f84b6332d28083a4511Martin JansaAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa
ac714a78fdca481488d88f84b6332d28083a4511Martin JansaAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblAS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl
9a60da2834074d970ca063c210fe9d2f05c70532Thierry RedingM4_DEFINES=
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringm4_ifdef([GTK_DOC_CHECK], [
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringGTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering enable_gtk_doc=no])
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringGOBJECT_INTROSPECTION_CHECK([1.31.1])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering], [
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering enable_introspection=no])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_TOOL(STRINGS, strings)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_TOOL(GPERF, gperf)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringif test -z "$GPERF" ; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_ERROR([*** gperf not found])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringfi
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringaddress_sanitizer_cflags=
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poetteringaddress_sanitizer_cppflags=
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poetteringaddress_sanitizer_ldflags=
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringAS_IF([test "x$enable_address_sanitizer" = "xyes"], [
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt AS_IF([test -z "$with_as_cflags"],
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering [AC_MSG_ERROR([*** -fsanitize=address is not supported])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering address_sanitizer_cppflags="-DVALGRIND=1"
9f64229f9ca69f5652b238a67531432e56108bd6Zbigniew Jędrzejewski-Szmek address_sanitizer_ldflags="-Wc,-fsanitize=address"
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri ])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieriundefined_sanitizer_cflags=
5a45a93627609451784a04366cfa1150d32611d1Lennart Poetteringundefined_sanitizer_cppflags=
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poetteringundefined_sanitizer_ldflags=
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart PoetteringAC_ARG_ENABLE(undefined-sanitizer, AS_HELP_STRING([--enable-undefined-sanitizer], [enable -fsanitize=undefined]))
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAS_IF([test "x$enable_undefined_sanitizer" = "xyes"], [
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering CC_CHECK_FLAG_APPEND([with_us_cflags], [CFLAGS], [-fsanitize=undefined])
7cb2086695fdeed33b2fb148492a224dd951fa7eZbigniew Jędrzejewski-Szmek AS_IF([test -z "$with_us_cflags"],
6a17986542912ed80d9fdc1b6eaa6d48fdd5d02dZbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** -fsanitize=undefined is not supported])])
6a17986542912ed80d9fdc1b6eaa6d48fdd5d02dZbigniew Jędrzejewski-Szmek undefined_sanitizer_cflags="$with_us_cflags -fno-omit-frame-pointer -DVALGRIND=1"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek undefined_sanitizer_cppflags="-DVALGRIND=1"
6a17986542912ed80d9fdc1b6eaa6d48fdd5d02dZbigniew Jędrzejewski-Szmek undefined_sanitizer_ldflags="-Wc,-fsanitize=undefined"
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering ])
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchisanitizer_cflags="$address_sanitizer_cflags $undefined_sanitizer_cflags"
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbierisanitizer_cppflags="$address_sanitizer_cppflags $undefined_sanitizer_cppflags"
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos Foutrassanitizer_ldflags="$address_sanitizer_ldflags $undefined_sanitizer_ldflags"
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -pipe \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wall \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -Wextra \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wno-inline \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wundef \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wlogical-op \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wsign-compare \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wmissing-include-dirs \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wold-style-definition \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wpointer-arith \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Winit-self \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wdeclaration-after-statement \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wfloat-equal \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wsuggest-attribute=noreturn \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wmissing-prototypes \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wstrict-prototypes \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wredundant-decls \
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl -Wmissing-declarations \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wmissing-noreturn \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wshadow \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wendif-labels \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wstrict-aliasing=2 \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wwrite-strings \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wno-long-long \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wno-overlength-strings \
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl -Wno-unused-parameter \
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Biebl -Wno-missing-field-initializers \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wno-unused-result \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wno-typedef-redefinition \
603c0b7b14a6b59a87ede20b2fdb6765e773c0edZbigniew Jędrzejewski-Szmek -Werror=overflow \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wdate-time \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wnested-externs \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -ffast-math \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fno-common \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fdiagnostics-show-option \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fdiagnostics-color \
e17187091d463ad008c0b74eb04de5078b2abb96Michal Schmidt -fno-strict-aliasing \
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poettering -fvisibility=hidden \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl -ffunction-sections \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl -fdata-sections \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl -fstack-protector \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -fstack-protector-strong \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -fPIE \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl --param=ssp-buffer-size=4])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -flto -ffat-lto-objects])],
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-SzmekAC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart PoetteringAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich -Wp,-D_FORTIFY_SOURCE=2])],
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog HeenAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $sanitizer_cppflags")
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers -Wl,--as-needed \
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen -Wl,--no-undefined \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -Wl,--gc-sections \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -Wl,-z,relro \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -Wl,-z,now \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -pie \
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen -Wl,-fuse-ld=gold])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_CHECK_SIZEOF(pid_t)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_CHECK_SIZEOF(uid_t)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_CHECK_SIZEOF(gid_t)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_CHECK_SIZEOF(time_t)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_CHECK_SIZEOF(rlim_t,,[
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen #include <sys/time.h>
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen #include <sys/resource.h>
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# we use python to build the man page index, and for systemd-python
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_python=no
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_WITH([python],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenhave_lxml=no
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAS_IF([test "x$with_python" != "xno"], [
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AM_PATH_PYTHON(,, [:])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AS_IF([test "x$PYTHON" != "x:"], [
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AC_MSG_CHECKING([for python lxml module])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner AC_MSG_RESULT([$have_lxml])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner AS_IF([test "x$have_lxml" = "xyes"], [have_python=yes],
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner [AC_MSG_WARN([*** python support requires python-lxml module installed])])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner ])
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner])
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAS_IF([test "$have_python" != "yes"], [
c4955740969d7ba8ba43b024bca1a0a5b56eb8e8Tom Gundersen AS_IF([test "$with_python" = "yes"],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [AC_MSG_ERROR([*** python support requested but python support not found])])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AS_IF([test "$with_python" != "no"],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [AC_MSG_WARN([*** python support not found, some documentation cannot be built])])
f553b3b1074151200187df916427a1468186435eAnders Olofsson])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders OlofssonAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
f553b3b1074151200187df916427a1468186435eAnders OlofssonAS_IF([test "x$PYTHON_BINARY" = "x"],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [AS_IF([test "x$have_python" = "xyes"],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [PYTHON_BINARY="$(which "$PYTHON")"],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [PYTHON_BINARY=/usr/bin/python])])
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders OlofssonAS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
f553b3b1074151200187df916427a1468186435eAnders Olofsson [AC_MSG_ERROR([*** python-devel support requires --with-python])])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersenhave_python_devel=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_python_devel=yes],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_python_devel=yes],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_python_devel=no])])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_CHECK_HEADERS([linux/btrfs.h], [], [])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# unconditionally pull-in librt with old glibc versions
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringsave_LIBS="$LIBS"
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringLIBS=
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringCAP_LIBS="$LIBS"
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SUBST(CAP_LIBS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringLIBS=
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringRT_LIBS="$LIBS"
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SUBST(RT_LIBS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringLIBS="$save_LIBS"
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_CHECK_FUNCS([fanotify_init fanotify_mark])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_CHECK_FUNCS([__secure_getenv secure_getenv])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, LO_FLAGS_PARTSCAN],
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt [], [], [[
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering#include <sys/types.h>
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering#include <unistd.h>
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering#include <sys/mount.h>
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering#include <fcntl.h>
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh#include <sched.h>
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering#include <linux/loop.h>
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez]])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian RodríguezAC_CHECK_DECLS([IFLA_MACVLAN_FLAGS,
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez IFLA_VTI_REMOTE,
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez IFLA_PHYS_PORT_ID,
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez IFLA_BOND_AD_INFO,
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez IFLA_VLAN_PROTOCOL,
5ec6b15b65304d94dc1c8cbad05c8b996b470d3aKay Sievers IFLA_VXLAN_LOCAL6,
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh IFLA_IPTUN_6RD_RELAY_PREFIXLEN,
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez IFLA_BRIDGE_VLAN_INFO],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez[], [], [[
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez#include <inttypes.h>
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez#include <netinet/in.h>
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez#include <netinet/ether.h>
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez#include <linux/rtnetlink.h>
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez#include <net/if.h>
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez#include <linux/ip.h>
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers#include <linux/if_tunnel.h>
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering#include <linux/if_link.h>
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering#include <linux/if_bridge.h>
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering]])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# This makes sure pkg.m4 is available.
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# ------------------------------------------------------------------------------
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringhave_dbus=no
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAS_IF([test "x$enable_dbus" != "xno"], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [have_dbus=no])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_compat_libs=no
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering yes) have_compat_libs=yes ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering no) have_compat_libs=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering esac],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [have_compat_libs=no])
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart PoetteringAM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringhave_coverage=no
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_coverage" = "xyes" ; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering if test "x$lcov_found" = xno ; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_MSG_ERROR([*** lcov support requested but the program was not found])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_coverage=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fprofile-arcs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -ftest-coverage])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_kmod=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_kmod" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_kmod" = "xyes"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** kmod version >= 15 not found]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** kmod support requested, but libraries not found])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poetteringfi
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart PoetteringAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_blkid=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_blkid" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** blkid support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_seccomp=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_seccomp" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_seccomp=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_seccomp=no])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** seccomp support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_SECCOMP, [test "$have_seccomp" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_ima=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_ima=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_ima=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering esac],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_ima=yes])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_ima}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_chkconfig=yes
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [case "${enableval}" in
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering yes) have_chkconfig=yes ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering no) have_chkconfig=no ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering esac],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [AC_PATH_PROG(CHKCONFIG, chkconfig)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering if test -z "$CHKCONFIG"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_chkconfig=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering else
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_chkconfig=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x${have_chkconfig}" != xno ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringfi
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringhave_selinux=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x$enable_selinux" != "xno"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_selinux=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SELINUX"],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [have_selinux=no])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringfi
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringhave_apparmor=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE(apparmor, AS_HELP_STRING([--disable-apparmor], [Disable optional AppArmor support]))
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x$enable_apparmor" != "xno"; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering PKG_CHECK_MODULES([APPARMOR], [libapparmor],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [AC_DEFINE(HAVE_APPARMOR, 1, [Define if AppArmor is available])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_apparmor=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_APPARMOR"],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [have_apparmor=no])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski if test "x$have_apparmor" = xno -a "x$enable_apparmor" = xyes; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_MSG_ERROR([*** AppArmor support requested but libraries not found])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski fi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskifi
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAM_CONDITIONAL(HAVE_APPARMOR, [test "$have_apparmor" = "yes"])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH(debug-shell,
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-debug-shell=PATH],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [Path to debug shell binary]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [SUSHELL="$withval"],[
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST(SUSHELL)
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([debug-tty],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AS_HELP_STRING([--with-debug-tty=PATH],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [Specify the tty device for debug shell]),
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [DEBUGTTY="$withval"],
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski [DEBUGTTY=/dev/tty9])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST(DEBUGTTY)
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_WITH([certificate-root],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_HELP_STRING([--with-certificate-root=PATH],
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart Poettering [Specify the prefix for TLS certificates [/etc/ssl]]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [CERTIFICATEROOT="$withval"],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [CERTIFICATEROOT="/etc/ssl"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST(CERTIFICATEROOT)
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_xz=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_xz" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** XZ support requested but libraries not found])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_lz4=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(lz4, AS_HELP_STRING([--enable-lz4], [Enable optional LZ4 support]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAS_IF([test "x$enable_lz4" == "xyes"], [
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_CHECK_HEADERS(lz4.h,
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [AC_DEFINE(HAVE_LZ4, 1, [Define in LZ4 is available]) have_lz4=yes],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [AC_MSG_ERROR([*** LZ4 support requested but headers not found])])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_LZ4, [test "$have_lz4" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_COMPRESSION, [test "$have_xz" = "yes" -o "$have_lz4" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE([pam],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [case "${enableval}" in
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering yes) have_pam=yes ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering no) have_pam=no ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering esac],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_pam=auto])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x${have_pam}" != xno ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_HEADERS(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_pam=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_pam" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** PAM headers not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_LIB(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [pam],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [pam_syslog],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_pam=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_pam" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** libpam not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x$have_pam" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering PAM_LIBS="-lpam -lpam_misc"
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_PAM"
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering else
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_pam=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringelse
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering PAM_LIBS=
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST(PAM_LIBS)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_ARG_ENABLE([acl],
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [case "${enableval}" in
8cf3ca80680b43015971cbbf4625517ae859d50cJan Janssen yes) have_acl=yes ;;
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering no) have_acl=no ;;
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering esac],
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [have_acl=auto])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x${have_acl}" != xno ; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_CHECK_HEADERS(
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [sys/acl.h acl/libacl.h],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [have_acl=yes],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [if test "x$have_acl" = xyes ; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering fi])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_CHECK_LIB(
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [acl],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [acl_get_file],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [have_acl=yes],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [if test "x$have_acl" = xyes ; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_MSG_ERROR([*** libacl not found.])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering fi])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering if test "x$have_acl" = xyes ; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering ACL_LIBS="-lacl"
59bb9d9a14889bee001706a32a518fe0a5009048Zbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_ACL, 1, [ACL available])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering else
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering have_acl=no
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering fi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringelse
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering ACL_LIBS=
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringfi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_SUBST(ACL_LIBS)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna# ------------------------------------------------------------------------------
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [case "${enableval}" in
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna yes) have_smack=yes ;;
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna no) have_smack=no ;;
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers esac],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [have_smack=auto])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x${have_smack}" = xauto; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers M4_DEFINES="$M4_DEFINES -DHAVE_SMACK"
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering have_smack=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(smack-run-label,
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAS_HELP_STRING([--with-smack-run-label=STRING],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [run systemd --system with a specific SMACK label]),
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x${have_smack}" = xyes ; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokfi
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok# ------------------------------------------------------------------------------
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAC_ARG_ENABLE([gcrypt],
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok [case "${enableval}" in
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok yes) have_gcrypt=yes ;;
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok no) have_gcrypt=no ;;
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering esac],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [have_gcrypt=auto])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversif test "x${have_gcrypt}" != xno ; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AM_PATH_LIBGCRYPT(
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [1.4.5],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [have_gcrypt=yes],
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar [if test "x$have_gcrypt" = xyes ; then
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar AC_MSG_ERROR([*** GCRYPT headers not found.])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar fi])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar if test "x$have_gcrypt" = xyes ; then
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar GCRYPT_LIBS="$LIBGCRYPT_LIBS"
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers else
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_gcrypt=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering fi
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringelse
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers GCRYPT_LIBS=
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering GCRYPT_CFLAGS=
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_SUBST(GCRYPT_LIBS)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(GCRYPT_CFLAGS)
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers# ------------------------------------------------------------------------------
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_ARG_ENABLE([audit],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers [case "${enableval}" in
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay Sievers yes) have_audit=yes ;;
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers no) have_audit=no ;;
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering esac],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [have_audit=auto])
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringif test "x${have_audit}" != xno ; then
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering AC_CHECK_HEADERS(
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [libaudit.h],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [have_audit=yes],
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [if test "x$have_audit" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** AUDIT headers not found.])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna fi])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna AC_CHECK_LIB(
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [audit],
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [audit_open],
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [have_audit=yes],
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [if test "x$have_audit" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** libaudit not found.])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna fi])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna if test "x$have_audit" = xyes ; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AUDIT_LIBS="-laudit"
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna else
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna have_audit=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers fi
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnaelse
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna AUDIT_LIBS=
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnafi
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST(AUDIT_LIBS)
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna# ------------------------------------------------------------------------------
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_ENABLE([elfutils],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-elfutils],[Disable optional ELFUTILS support]),
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering [case "${enableval}" in
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering yes) have_elfutils=yes ;;
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering no) have_elfutils=no ;;
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers *) AC_MSG_ERROR(bad value ${enableval} for --disable-elfutils) ;;
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering esac],
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering [have_elfutils=auto])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringif test "x${have_elfutils}" != xno ; then
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AC_CHECK_HEADERS(
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [elfutils/libdwfl.h],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [if test "x$have_elfutils" = xyes ; then
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AC_MSG_ERROR([*** ELFUTILS headers not found.])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering fi])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AC_CHECK_LIB(
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [dw],
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [dwfl_begin],
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [],
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [if test "x$have_elfutils" = xyes ; then
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_MSG_ERROR([*** ELFUTILS libs not found.])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering fi])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_CHECK_LIB(
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [dw],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [dwfl_core_file_attach],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [have_elfutils=yes],
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering [if test "x$have_elfutils" = xyes ; then
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_MSG_ERROR([*** ELFUTILS >= 158 is required.])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering fi])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering if test "x$have_elfutils" = xyes ; then
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering ELFUTILS_LIBS="-lelf -ldw"
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_DEFINE(HAVE_ELFUTILS, 1, [ELFUTILS available])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering else
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering have_elfutils=no
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering fi
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poetteringelse
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering ELFUTILS_LIBS=
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poetteringfi
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_SUBST(ELFUTILS_LIBS)
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAM_CONDITIONAL(HAVE_ELFUTILS, [test "$have_elfutils" = "yes"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering# ------------------------------------------------------------------------------
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringhave_libcryptsetup=no
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringif test "x$enable_libcryptsetup" != "xno"; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering fi
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringfi
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering# ------------------------------------------------------------------------------
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringhave_qrencode=no
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringif test "x$enable_qrencode" != "xno"; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez fi
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguezfi
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez# ------------------------------------------------------------------------------
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguezhave_microhttpd=no
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian RodríguezAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguezif test "x$enable_microhttpd" != "xno"; then
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.33],
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen fi
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenfi
f8c5a5815ff7c137d9a1e5d7b48a6532b9f31407Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenhave_gnutls=no
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_ENABLE(gnutls, AS_HELP_STRING([--disable-gnutls], [disable gnutls support]))
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenif test "x$enable_gnutls" != "xno"; then
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen PKG_CHECK_MODULES(GNUTLS, [gnutls >= 3.1.4],
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen [AC_DEFINE(HAVE_GNUTLS, 1, [Define if gnutls is available]) have_gnutls=yes], have_gnutls=no)
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen if test "x$have_gnutls" = xno -a "x$enable_gnutls" = xyes; then
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen AC_MSG_ERROR([*** gnutls support requested but libraries not found])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen fi
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenfi
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAM_CONDITIONAL(HAVE_GNUTLS, [test "$have_gnutls" = "yes"])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenhave_libcurl=no
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_ENABLE(libcurl, AS_HELP_STRING([--disable-libcurl], [disable libcurl support]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_libcurl" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers PKG_CHECK_MODULES(LIBCURL, [libcurl],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [AC_DEFINE(HAVE_LIBCURL, 1, [Define if libcurl is available]) have_libcurl=yes], have_libcurl=no)
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen if test "x$have_libcurl" = xno -a "x$enable_libcurl" = xyes; then
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen AC_MSG_ERROR([*** libcurl support requested but libraries not found])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers fi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(HAVE_LIBCURL, [test "$have_libcurl" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_libidn=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(libidn, AS_HELP_STRING([--disable-libidn], [Disable optional LIBIDN support]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_libidn" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers PKG_CHECK_MODULES(LIBIDN, [libidn],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [AC_DEFINE(HAVE_LIBIDN, 1, [Define if libidn is available])
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen have_libidn=yes
d8d4bee76cf3b40ea923bc57d44aa0815ca9b5ffKay Sievers M4_DEFINES="$M4_DEFINES -DHAVE_LIBIDN"],
a3bd8447be4ea2ce230eb8ae0e815c04d85fa15aTom Gundersen [have_libidn=no])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x$have_libidn" = "xno" -a "x$enable_libidn" = "xyes"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** libidn support requested but libraries not found])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers fi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(HAVE_LIBIDN, [test "$have_libidn" = "yes"])
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poetteringhave_binfmt=no
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_binfmt" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_binfmt=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_vconsole=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_vconsole" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_vconsole=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_readahead=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poetteringif test "x$enable_readahead" != "xno"; then
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart Poettering have_readahead=yes
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekfi
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekhave_bootchart=no
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekif test "x$enable_bootchart" != "xno"; then
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering have_bootchart=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering# ------------------------------------------------------------------------------
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart Poetteringhave_quotacheck=no
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poetteringif test "x$enable_quotacheck" != "xno"; then
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen have_quotacheck=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversfi
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers# ------------------------------------------------------------------------------
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenhave_tmpfiles=no
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart PoetteringAC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poetteringif test "x$enable_tmpfiles" != "xno"; then
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering have_tmpfiles=yes
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenfi
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio# ------------------------------------------------------------------------------
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciohave_sysusers=no
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAC_ARG_ENABLE(sysusers, AS_HELP_STRING([--disable-sysusers], [disable sysusers support]))
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringif test "x$enable_sysusers" != "xno"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio have_sysusers=yes
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poetteringfi
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAM_CONDITIONAL(ENABLE_SYSUSERS, [test "$have_sysusers" = "yes"])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio# ------------------------------------------------------------------------------
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciohave_firstboot=no
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_ARG_ENABLE(firstboot, AS_HELP_STRING([--disable-firstboot], [disable firstboot support]))
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poetteringif test "x$enable_firstboot" != "xno"; then
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering have_firstboot=yes
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poetteringfi
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAM_CONDITIONAL(ENABLE_FIRSTBOOT, [test "$have_firstboot" = "yes"])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering# ------------------------------------------------------------------------------
a05ea46dc788929bc8b13afb4208ca29cad68572Michael Bieblhave_randomseed=no
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poetteringif test "x$enable_randomseed" != "xno"; then
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering have_randomseed=yes
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poetteringfi
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# ------------------------------------------------------------------------------
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Bieblhave_backlight=no
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart PoetteringAC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringif test "x$enable_backlight" != "xno"; then
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering have_backlight=yes
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringfi
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael BieblAM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# ------------------------------------------------------------------------------
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringhave_rfkill=no
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
03c149144d374cffd40a17ffb067837e3e220933Michael Bieblif test "x$enable_rfkill" != "xno"; then
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering have_rfkill=yes
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringfi
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
03c149144d374cffd40a17ffb067837e3e220933Michael Biebl# ------------------------------------------------------------------------------
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poetteringhave_logind=no
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Bieblif test "x$enable_logind" != "xno"; then
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl have_logind=yes
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael Bieblfi
25ee45f9953c121fc26a54a85ad7bb3a3180152bMichael BieblAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl# ------------------------------------------------------------------------------
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Bieblhave_machined=no
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sieversif test "x$enable_machined" != "xno"; then
39ad55a9aa99451f982628af6e14581092b2d2f6Kay Sievers have_machined=yes
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringfi
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers# ------------------------------------------------------------------------------
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievershave_hostnamed=no
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Bieblif test "x$enable_hostnamed" != "xno"; then
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers have_hostnamed=yes
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sieversfi
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny# ------------------------------------------------------------------------------
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górnyhave_timedated=no
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górnyif test "x$enable_timedated" != "xno"; then
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny have_timedated=yes
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górnyfi
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny# ------------------------------------------------------------------------------
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poetteringhave_timesyncd=no
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_ENABLE(timesyncd, AS_HELP_STRING([--disable-timesyncd], [disable timesync daemon]))
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poetteringif test "x$enable_timesyncd" != "xno"; then
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek have_timesyncd=yes
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmekfi
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_TIMESYNCD, [test "$have_timesyncd" = "yes"])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAC_ARG_WITH(ntp-servers,
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-ntp-servers=NTPSERVERS],
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek [Space-separated list of default NTP servers]),
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken [NTP_SERVERS="$withval"],
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken [NTP_SERVERS="time1.google.com time2.google.com time3.google.com time4.google.com"])
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal Bakken
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal BakkenAC_DEFINE_UNQUOTED(NTP_SERVERS, ["$NTP_SERVERS"], [Default NTP Servers])
cee22bd3cb253734a8a0183751d786128e2ea5e4Henrik Grindal BakkenAC_SUBST(NTP_SERVERS)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH(time-epoch,
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-time-epoch=SECONDS],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [Time epoch for time clients]),
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl [TIME_EPOCH="$withval"],
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering [TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"])
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_DEFINE_UNQUOTED(TIME_EPOCH, [$TIME_EPOCH], [Time Epoch])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(system-uid-max,
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers AS_HELP_STRING([--with-system-uid-max=UID]
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers [Maximum UID for system users]),
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers [SYSTEM_UID_MAX="$withval"],
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers [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`"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_DEFINE_UNQUOTED(SYSTEM_UID_MAX, [$SYSTEM_UID_MAX], [Maximum System UID])
a45a909fbbe11ad8c75cda5639d875476ac65453Christian RuppertAC_SUBST(SYSTEM_UID_MAX)
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_ARG_WITH(system-gid-max,
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AS_HELP_STRING([--with-system-gid-max=GID]
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [Maximum GID for system groups]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [SYSTEM_GID_MAX="$withval"],
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart 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`"])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart PoetteringAC_DEFINE_UNQUOTED(SYSTEM_GID_MAX, [$SYSTEM_GID_MAX], [Maximum System GID])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_SUBST(SYSTEM_GID_MAX)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringhave_localed=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringif test "x$enable_localed" != "xno"; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering have_localed=yes
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringfi
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering# ------------------------------------------------------------------------------
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokhave_coredump=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyarif test "x$enable_coredump" != "xno"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_coredump=yes
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversfi
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna# ------------------------------------------------------------------------------
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnahave_polkit=no
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringif test "x$enable_polkit" != "xno"; then
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen have_polkit=yes
f553b3b1074151200187df916427a1468186435eAnders Olofssonfi
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_resolved=no
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAC_ARG_ENABLE(resolved, AS_HELP_STRING([--disable-resolved], [disable resolve daemon]))
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poetteringif test "x$enable_resolved" != "xno"; then
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek have_resolved=yes
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmekfi
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAM_CONDITIONAL(ENABLE_RESOLVED, [test "$have_resolved" = "yes"])
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-SzmekAC_ARG_WITH(dns-servers,
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-dns-servers=DNSSERVERS],
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering [Space-separated list of default DNS servers]),
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers [DNS_SERVERS="$withval"],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [DNS_SERVERS="8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_DEFINE_UNQUOTED(DNS_SERVERS, ["$DNS_SERVERS"], [Default DNS Servers])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(DNS_SERVERS)
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers# ------------------------------------------------------------------------------
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmekhave_networkd=no
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_networkd" != "xno"], [
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek have_networkd=yes
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering])
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart PoetteringAM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering# ------------------------------------------------------------------------------
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poetteringhave_efi=no
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poetteringif test "x$enable_efi" != "xno"; then
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez have_efi=yes
66be6554807773028a0111addb8e75c3cab11117Kay Sieversfi
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
1f048a6b6bcc30d2e157711b3d231d7a944e6ffbJan Engelhardt
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering# ------------------------------------------------------------------------------
568c7e02372ff7b8eb41172ad7c3a426723512f8Zbigniew Jędrzejewski-Szmekhave_multi_seat_x=no
568c7e02372ff7b8eb41172ad7c3a426723512f8Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(multi_seat_x, AS_HELP_STRING([--disable-multi-seat-x], [do not build multi-seat-x]))
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sieversif test "x$enable_multi_seat_x" != "xno"; then
have_multi_seat_x=yes
fi
AM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"])
# ------------------------------------------------------------------------------
have_terminal=no
AC_ARG_ENABLE(terminal, AS_HELP_STRING([--enable-terminal], [enable terminal support]))
if test "x$enable_terminal" = "xyes"; then
AC_DEFINE(ENABLE_TERMINAL, 1, [Define if terminal support is to be enabled])
have_terminal=yes
fi
AM_CONDITIONAL(ENABLE_TERMINAL, [test "x$have_terminal" = "xyes"])
# ------------------------------------------------------------------------------
have_kdbus=no
AC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
if test "x$enable_kdbus" = "xyes"; then
AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
have_kdbus=yes
M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
fi
AM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
# ------------------------------------------------------------------------------
AC_ARG_WITH(rc-local-script-path-start,
AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
[Path to /etc/rc.local]),
[RC_LOCAL_SCRIPT_PATH_START="$withval"],
[RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
AC_ARG_WITH(rc-local-script-path-stop,
AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
[Path to /usr/sbin/halt.local]),
[RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
[RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
AC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
AC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
# ------------------------------------------------------------------------------
AC_ARG_WITH(kbd-loadkeys,
AS_HELP_STRING([--with-kbd-loadkeys=PATH],
[Path to loadkeys]),
[KBD_LOADKEYS="$withval"],
[KBD_LOADKEYS="/usr/bin/loadkeys"])
AC_ARG_WITH(kbd-setfont,
AS_HELP_STRING([--with-kbd-setfont=PATH],
[Path to setfont]),
[KBD_SETFONT="$withval"],
[KBD_SETFONT="/usr/bin/setfont"])
AC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
AC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
AC_SUBST(KBD_LOADKEYS)
AC_SUBST(KBD_SETFONT)
AC_ARG_WITH(telinit,
AS_HELP_STRING([--with-telinit=PATH],
[Path to telinit]),
[TELINIT="$withval"],
[TELINIT="/lib/sysvinit/telinit"])
AC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
AC_SUBST(TELINIT)
AC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
# ------------------------------------------------------------------------------
have_myhostname=no
AC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
if test "x$enable_myhostname" != "xno"; then
AC_HEADER_STDC
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])
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_FUNC_MALLOC
AC_FUNC_SELECT_ARGTYPES
AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
have_myhostname=yes
fi
AM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
# ------------------------------------------------------------------------------
AC_ARG_WITH(firmware-path,
AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
[Firmware search path (default="")]),
[], [with_firmware_path=""])
OLD_IFS=$IFS
IFS=:
for i in $with_firmware_path; do
if test "x${FIRMWARE_PATH}" = "x"; then
FIRMWARE_PATH="\\\"${i}/\\\""
else
FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
fi
done
IFS=$OLD_IFS
AC_SUBST(FIRMWARE_PATH)
AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
# ------------------------------------------------------------------------------
AC_ARG_ENABLE([gudev],
AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
[], [enable_gudev=yes])
AS_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]) ])
AM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
AS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
# ------------------------------------------------------------------------------
have_manpages=no
AC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
AS_IF([test "x$enable_manpages" != xno], [have_manpages=yes])
AM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
# ------------------------------------------------------------------------------
# Location of the init scripts as mandated by LSB
SYSTEM_SYSVINIT_PATH=/etc/init.d
SYSTEM_SYSVRCND_PATH=/etc/rc.d
AC_ARG_WITH([sysvinit-path],
[AS_HELP_STRING([--with-sysvinit-path=PATH],
[Specify the path to where the SysV init scripts are located])],
[SYSTEM_SYSVINIT_PATH="$withval"],
[])
AC_ARG_WITH([sysvrcnd-path],
[AS_HELP_STRING([--with-sysvrcnd-path=PATH],
[Specify the path to the base directory for the SysV rcN.d directories])],
[SYSTEM_SYSVRCND_PATH="$withval"],
[])
if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
SYSTEM_SYSV_COMPAT="yes"
M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
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.])
else
SYSTEM_SYSV_COMPAT="no"
fi
AC_SUBST(SYSTEM_SYSVINIT_PATH)
AC_SUBST(SYSTEM_SYSVRCND_PATH)
AC_SUBST(M4_DEFINES)
AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
AC_ARG_WITH([tty-gid],
[AS_HELP_STRING([--with-tty-gid=GID],
[Specify the numeric GID of the 'tty' group])],
[TTY_GID="$withval"],
[TTY_GID="5"])
AC_DEFINE_UNQUOTED(TTY_GID, [$TTY_GID], [GID of the 'tty' group])
AC_SUBST(TTY_GID)
AC_ARG_WITH([dbuspolicydir],
AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
[],
[with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
AC_ARG_WITH([dbussessionservicedir],
AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
[],
[with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
AC_ARG_WITH([dbussystemservicedir],
AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
[],
[with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
AC_ARG_WITH([dbusinterfacedir],
AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
[],
[with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
AC_ARG_WITH([bashcompletiondir],
AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
[],
[AS_IF([$($PKG_CONFIG --exists bash-completion)], [
with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
] , [
with_bashcompletiondir=${datadir}/bash-completion/completions
])])
AC_ARG_WITH([zshcompletiondir],
AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]),
[], [with_zshcompletiondir=${datadir}/zsh/site-functions])
AC_ARG_WITH([rootprefix],
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
[], [with_rootprefix=${ac_default_prefix}])
AC_ARG_WITH([rootlibdir],
AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
[],
[with_rootlibdir=${libdir}])
AC_ARG_WITH([pamlibdir],
AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
[],
[with_pamlibdir=${with_rootlibdir}/security])
AC_ARG_WITH([pamconfdir],
AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
[],
[with_pamconfdir=${sysconfdir}/pam.d])
AC_ARG_ENABLE([split-usr],
AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
[],
[AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
enable_split_usr=yes
], [
enable_split_usr=no
])])
AS_IF([test "x${enable_split_usr}" = "xyes"], [
AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
])
# Work around intltoolize and gtk-doc problems in VPATH builds
AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
[Define to do gtk-doc tests])
AS_IF([test "x$0" != "x./configure"], [
AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
])
AC_ARG_ENABLE(tests,
[AC_HELP_STRING([--disable-tests], [disable tests])],
enable_tests=$enableval, enable_tests=yes)
AM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
AC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
AC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
AC_SUBST([pamlibdir], [$with_pamlibdir])
AC_SUBST([pamconfdir], [$with_pamconfdir])
AC_SUBST([rootprefix], [$with_rootprefix])
AC_SUBST([rootlibdir], [$with_rootlibdir])
AC_CONFIG_FILES([
Makefile po/Makefile.in
docs/libudev/Makefile
docs/libudev/version.xml
docs/gudev/Makefile
docs/gudev/version.xml
])
AC_OUTPUT
AC_MSG_RESULT([
$PACKAGE_NAME $VERSION
libcryptsetup: ${have_libcryptsetup}
PAM: ${have_pam}
AUDIT: ${have_audit}
IMA: ${have_ima}
AppArmor: ${have_apparmor}
SELinux: ${have_selinux}
SECCOMP: ${have_seccomp}
SMACK: ${have_smack}
XZ: ${have_xz}
LZ4: ${have_lz4}
ACL: ${have_acl}
GCRYPT: ${have_gcrypt}
QRENCODE: ${have_qrencode}
MICROHTTPD: ${have_microhttpd}
CHKCONFIG: ${have_chkconfig}
GNUTLS: ${have_gnutls}
libcurl: ${have_libcurl}
libidn: ${have_libidn}
ELFUTILS: ${have_elfutils}
binfmt: ${have_binfmt}
vconsole: ${have_vconsole}
readahead: ${have_readahead}
bootchart: ${have_bootchart}
quotacheck: ${have_quotacheck}
tmpfiles: ${have_tmpfiles}
sysusers: ${have_sysusers}
firstboot: ${have_firstboot}
randomseed: ${have_randomseed}
backlight: ${have_backlight}
rfkill: ${have_rfkill}
logind: ${have_logind}
machined: ${have_machined}
hostnamed: ${have_hostnamed}
timedated: ${have_timedated}
timesyncd: ${have_timesyncd}
default NTP servers: ${NTP_SERVERS}
time epoch: ${TIME_EPOCH}
localed: ${have_localed}
networkd: ${have_networkd}
resolved: ${have_resolved}
default DNS servers: ${DNS_SERVERS}
coredump: ${have_coredump}
polkit: ${have_polkit}
efi: ${have_efi}
kmod: ${have_kmod}
blkid: ${have_blkid}
dbus: ${have_dbus}
nss-myhostname: ${have_myhostname}
gudev: ${enable_gudev}
gintrospection: ${enable_introspection}
multi-seat-x: ${have_multi_seat_x}
terminal: ${have_terminal}
kdbus: ${have_kdbus}
Python: ${have_python}
Python Headers: ${have_python_devel}
man pages: ${have_manpages}
gtk-doc: ${enable_gtk_doc}
test coverage: ${have_coverage}
Split /usr: ${enable_split_usr}
SysV compatibility: ${SYSTEM_SYSV_COMPAT}
compatibility libraries: ${have_compat_libs}
prefix: ${prefix}
rootprefix: ${with_rootprefix}
sysconf dir: ${sysconfdir}
datarootdir: ${datarootdir}
includedir: ${includedir}
include_prefix: ${INCLUDE_PREFIX}
lib dir: ${libdir}
rootlib dir: ${with_rootlibdir}
SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
Build Python: ${PYTHON}
Installation Python: ${PYTHON_BINARY}
sphinx binary: ${SPHINX_BUILD}
firmware path: ${FIRMWARE_PATH}
PAM modules dir: ${with_pamlibdir}
PAM configuration dir: ${with_pamconfdir}
D-Bus policy dir: ${with_dbuspolicydir}
D-Bus session dir: ${with_dbussessionservicedir}
D-Bus system dir: ${with_dbussystemservicedir}
D-Bus interfaces dir: ${with_dbusinterfacedir}
Bash completions dir: ${with_bashcompletiondir}
Zsh completions dir: ${with_zshcompletiondir}
Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
Debug shell: ${SUSHELL} @ ${DEBUGTTY}
TTY GID: ${TTY_GID}
Maximum System UID: ${SYSTEM_UID_MAX}
Maximum System GID: ${SYSTEM_GID_MAX}
Certificate root: ${CERTIFICATEROOT}
CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
PYTHON_CFLAGS: ${PYTHON_DEVEL_CFLAGS}
PYTHON_LIBS: ${PYTHON_DEVEL_LIBS}
])