configure.ac revision ccd06097c79218f7d5ea4c21721bbcbc7c467dca
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],
71c474864cef9be433adb2adba2085786cda829aLennart Poettering [208],
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 check-news])
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])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAS_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 NoceraIT_PROG_INTLTOOL([0.40.0])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringGETTEXT_PACKAGE=systemd
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_SUBST(GETTEXT_PACKAGE)
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sievers
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_PROG_MKDIR_P
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_LN_S
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_SED
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_GREP
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_AWK
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_CC_C99
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([M4], [m4])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier JardónAC_PATH_PROG([XSLTPROC], [xsltproc])
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart PoetteringAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart PoetteringAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
c1c02e07ed87e027a6364c4f4aa2468796ca1c56Dave Reisner
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart PoetteringAC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier JardónAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod])
9e45e7d8f0d8d3f31d790f85694585d0d4b368b8Javier Jardón
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay SieversAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekM4_DEFINES=
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekm4_ifdef([GTK_DOC_CHECK], [
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay SieversGTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sievers [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek enable_gtk_doc=no])
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering])
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poetteringm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblGOBJECT_INTROSPECTION_CHECK([1.31.1])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl], [
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding enable_introspection=no])
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringAC_CHECK_TOOL(STRINGS, strings)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_TOOL(GPERF, gperf)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringif test -z "$GPERF" ; then
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering AC_MSG_ERROR([*** gperf not found])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringfi
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringaddress_sanitizer_cflags=
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringaddress_sanitizer_cppflags=
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringaddress_sanitizer_ldflags=
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_IF([test "x$enable_address_sanitizer" = "xyes"], [
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_IF([test -z "$with_as_cflags"],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart 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"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering address_sanitizer_ldflags="-Wc,-fsanitize=address"
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering ])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -pipe \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wall \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wextra \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-inline \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wundef \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wlogical-op \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -Wsign-compare \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -Wmissing-include-dirs \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Winit-self \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wdeclaration-after-statement \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wfloat-equal \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wsuggest-attribute=noreturn \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wmissing-prototypes \
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering -Wstrict-prototypes \
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering -Wredundant-decls \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wmissing-declarations \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wmissing-noreturn \
6a17986542912ed80d9fdc1b6eaa6d48fdd5d02dZbigniew Jędrzejewski-Szmek -Wshadow \
6a17986542912ed80d9fdc1b6eaa6d48fdd5d02dZbigniew Jędrzejewski-Szmek -Wendif-labels \
6a17986542912ed80d9fdc1b6eaa6d48fdd5d02dZbigniew Jędrzejewski-Szmek -Wcast-align \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wstrict-aliasing=2 \
6a17986542912ed80d9fdc1b6eaa6d48fdd5d02dZbigniew Jędrzejewski-Szmek -Wwrite-strings \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wno-long-long \
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi -Wno-overlength-strings \
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi -Wno-unused-parameter \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wno-missing-field-initializers \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wno-unused-result \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Werror=overflow \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wdate-time \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wnested-externs \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -ffast-math \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fno-common \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fdiagnostics-show-option \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fdiagnostics-color \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fno-strict-aliasing \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fvisibility=hidden \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -ffunction-sections \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fdata-sections \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -fstack-protector \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek --param=ssp-buffer-size=4])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -flto])],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SUBST([OUR_CFLAGS], "$with_cflags $address_sanitizer_cflags")
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wp,-D_FORTIFY_SOURCE=2])],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $address_sanitizer_cppflags")
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wl,--as-needed \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wl,--no-undefined \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wl,--gc-sections \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wl,-z,relro \
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek -Wl,-z,now])
603c0b7b14a6b59a87ede20b2fdb6765e773c0edZbigniew Jędrzejewski-SzmekAC_SUBST([OUR_LDFLAGS], "$with_ldflags $address_sanitizer_ldflags")
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(pid_t)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_SIZEOF(uid_t)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# we use python to build the man page index, and for systemd-python
e17187091d463ad008c0b74eb04de5078b2abb96Michal Schmidthave_python=no
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart PoetteringAC_ARG_WITH([python],
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAS_IF([test "x$with_python" != "xno"], [
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AM_PATH_PYTHON(,, [:])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AS_IF([test "$PYTHON" != :], [have_python=yes])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAS_IF([test "x$PYTHON_BINARY" = "x"],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [AS_IF([test "x$have_python" = "xyes"],
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich [PYTHON_BINARY="$(which "$PYTHON")"],
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-Szmek [PYTHON_BINARY=/usr/bin/python])])
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael OlbrichAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael OlbrichAS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich [AC_MSG_ERROR([*** python-devel support requires --with-python])])
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heenhave_python_devel=no
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [have_python_devel=yes],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [have_python_devel=yes],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [have_python_devel=no])])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen])
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_CHECK_HEADERS([linux/btrfs.h], [], [])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofsson# unconditionally pull-in librt with old glibc versions
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
f553b3b1074151200187df916427a1468186435eAnders Olofssonsave_LIBS="$LIBS"
f553b3b1074151200187df916427a1468186435eAnders OlofssonLIBS=
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
f553b3b1074151200187df916427a1468186435eAnders OlofssonCAP_LIBS="$LIBS"
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_SUBST(CAP_LIBS)
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversLIBS=
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuRT_LIBS="$LIBS"
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_SUBST(RT_LIBS)
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuLIBS="$save_LIBS"
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_CHECK_FUNCS([fanotify_init fanotify_mark])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_CHECK_FUNCS([__secure_getenv secure_getenv])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu#include <unistd.h>
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu#include <sys/mount.h>
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu#include <fcntl.h>]])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu# This makes sure pkg.m4 is available.
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringPKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2], have_dbus=yes, have_dbus=no])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAS_IF([test "$have_dbus" = "yes"], [ AC_DEFINE(HAVE_DBUS, [1], [Define if dbus-1 is available]) ])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringhave_coverage=no
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringif test "x$enable_coverage" = "xyes" ; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering if test "x$lcov_found" = xno ; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_MSG_ERROR([*** lcov support requested but the program was not found])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering else
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers else
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering have_coverage=yes
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering -fprofile-arcs \
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt -ftest-coverage])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering fi
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering fi
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringfi
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshAM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidt# ------------------------------------------------------------------------------
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidthave_kmod=no
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal SchmidtAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
317c96d944e01e6e87200dd7ebe964fe9774d2c4Tom Gundersenif test "x$enable_kmod" != "xno"; then
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidt PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidt if test "x$have_kmod" = "xyes"; then
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** kmod version >= 15 not found]))
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering fi
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** kmod support requested, but libraries not found])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering fi
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringfi
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# ------------------------------------------------------------------------------
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringhave_blkid=no
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_blkid" != "xno"; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** blkid support requested but libraries not found])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringfi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_ima=yes
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_ima=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_ima=no ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering esac],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [have_ima=yes])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringif test "x${have_ima}" != xno ; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering# ------------------------------------------------------------------------------
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringhave_chkconfig=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_chkconfig=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_chkconfig=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering esac],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_PATH_PROG(CHKCONFIG, chkconfig)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test -z "$CHKCONFIG"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_chkconfig=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_chkconfig=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_chkconfig}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringhave_selinux=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_selinux" != "xno"; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart PoetteringAC_ARG_WITH(debug-shell,
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering AS_HELP_STRING([--with-debug-shell=PATH],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [Path to debug shell binary]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [SUSHELL="$withval"],[
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(SUSHELL)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_WITH([debug-tty],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-debug-tty=PATH],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [Specify the tty device for debug shell]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [DEBUGTTY="$withval"],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [DEBUGTTY=/dev/tty9])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(DEBUGTTY)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringhave_xz=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x$enable_xz" != "xno"; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** Xz support requested but libraries not found])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([tcpwrap],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_tcpwrap=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_tcpwrap=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering esac],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_tcpwrap=auto])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_tcpwrap}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACX_LIBWRAP
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x${LIBWRAP_LIBS}" = x ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_tcpwrap" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** TCP wrappers support not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_tcpwrap=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering else
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_tcpwrap=yes
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringelse
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering LIBWRAP_LIBS=
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringfi
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_SUBST(LIBWRAP_LIBS)
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering# ------------------------------------------------------------------------------
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart PoetteringAC_ARG_ENABLE([pam],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [case "${enableval}" in
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering yes) have_pam=yes ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering no) have_pam=no ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering esac],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [have_pam=auto])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poetteringif test "x${have_pam}" != xno ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_CHECK_HEADERS(
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [have_pam=yes],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [if test "x$have_pam" = xyes ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_MSG_ERROR([*** PAM headers not found.])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_CHECK_LIB(
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [pam],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [pam_syslog],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [have_pam=yes],
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering [if test "x$have_pam" = xyes ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_MSG_ERROR([*** libpam not found.])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering if test "x$have_pam" = xyes ; then
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering PAM_LIBS="-lpam -lpam_misc"
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering else
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering have_pam=no
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering fi
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringelse
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart Poettering PAM_LIBS=
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST(PAM_LIBS)
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE([acl],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [case "${enableval}" in
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering yes) have_acl=yes ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering no) have_acl=no ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering esac],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_acl=auto])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x${have_acl}" != xno ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_CHECK_HEADERS(
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [sys/acl.h acl/libacl.h],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_acl=yes],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [if test "x$have_acl" = xyes ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_CHECK_LIB(
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [acl],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [acl_get_file],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_acl=yes],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [if test "x$have_acl" = xyes ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** libacl not found.])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_acl" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers ACL_LIBS="-lacl"
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(HAVE_ACL, 1, [ACL available])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering else
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_acl=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringelse
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering ACL_LIBS=
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST(ACL_LIBS)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE([xattr],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [case "${enableval}" in
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering yes) have_xattr=yes ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering no) have_xattr=no ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering esac],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_xattr=auto])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x${have_xattr}" != xno ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_HEADERS(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [attr/xattr.h],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_xattr=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_xattr" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** XATTR headers not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_LIB(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [attr],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [fsetxattr],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_xattr=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_xattr" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** libattr not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x$have_xattr" = xyes ; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering XATTR_LIBS="-lattr"
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering else
880a599e262b9193219e612d827b35bb0c292daeTom Gundersen have_xattr=no
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering fi
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringelse
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering XATTR_LIBS=
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringfi
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_SUBST(XATTR_LIBS)
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [case "${enableval}" in
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering yes) have_smack=yes ;;
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering no) have_smack=no ;;
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering esac],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [have_smack=auto])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringif test "x${have_xattr}" = xno; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering if test "x${have_smack}" = xyes; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_MSG_ERROR(SMACK requires xattr support)
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering else
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering have_smack=no
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering fi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringelse
59bb9d9a14889bee001706a32a518fe0a5009048Zbigniew Jędrzejewski-Szmek if test "x${have_smack}" = xauto; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering have_smack=yes
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering fi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringfi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_WITH(smack-run-label,
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAS_HELP_STRING([--with-smack-run-label=STRING],
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering [run systemd --system with a specific SMACK label]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])],
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna [])
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnaif test "x${have_smack}" = xyes ; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnafi
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([gcrypt],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [case "${enableval}" in
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering yes) have_gcrypt=yes ;;
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers no) have_gcrypt=no ;;
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering esac],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [have_gcrypt=auto])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x${have_gcrypt}" != xno ; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AM_PATH_LIBGCRYPT(
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [1.4.5],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [have_gcrypt=yes],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [if test "x$have_gcrypt" = xyes ; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_MSG_ERROR([*** GCRYPT headers not found.])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering fi])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok if test "x$have_gcrypt" = xyes ; then
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok GCRYPT_LIBS="$LIBGCRYPT_LIBS"
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok else
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok have_gcrypt=no
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok fi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieverselse
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering GCRYPT_LIBS=
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering GCRYPT_CFLAGS=
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_SUBST(GCRYPT_LIBS)
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_SUBST(GCRYPT_CFLAGS)
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE([audit],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [case "${enableval}" in
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers yes) have_audit=yes ;;
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering no) have_audit=no ;;
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering esac],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [have_audit=auto])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversif test "x${have_audit}" != xno ; then
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers AC_CHECK_HEADERS(
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [libaudit.h],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers [have_audit=yes],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers [if test "x$have_audit" = xyes ; then
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay Sievers AC_MSG_ERROR([*** AUDIT headers not found.])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers fi])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna AC_CHECK_LIB(
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [audit],
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [audit_open],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [have_audit=yes],
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna [if test "x$have_audit" = xyes ; then
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna AC_MSG_ERROR([*** libaudit not found.])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna fi])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna if test "x$have_audit" = xyes ; then
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna AUDIT_LIBS="-laudit"
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers else
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna have_audit=no
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna fi
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnaelse
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AUDIT_LIBS=
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnafi
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_SUBST(AUDIT_LIBS)
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers# ------------------------------------------------------------------------------
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnahave_libcryptsetup=no
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnaif test "x$enable_libcryptsetup" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ],
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers fi
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringfi
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering# ------------------------------------------------------------------------------
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringhave_qrencode=no
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poetteringif test "x$enable_qrencode" != "xno"; then
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering fi
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poetteringfi
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering# ------------------------------------------------------------------------------
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poetteringhave_microhttpd=no
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poetteringif test "x$enable_microhttpd" != "xno"; then
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering fi
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poetteringfi
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering# ------------------------------------------------------------------------------
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poetteringhave_binfmt=no
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poetteringif test "x$enable_binfmt" != "xno"; then
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering have_binfmt=yes
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poetteringfi
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering# ------------------------------------------------------------------------------
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poetteringhave_vconsole=no
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poetteringif test "x$enable_vconsole" != "xno"; then
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering have_vconsole=yes
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringfi
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering# ------------------------------------------------------------------------------
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringhave_readahead=no
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringif test "x$enable_readahead" != "xno"; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering have_readahead=yes
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringfi
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering# ------------------------------------------------------------------------------
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringhave_bootchart=no
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringif test "x$enable_bootchart" != "xno"; then
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering have_bootchart=yes
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poetteringfi
a382332eed10d3348231803c47a4c599d24c5e3aLennart PoetteringAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenhave_quotacheck=no
f8c5a5815ff7c137d9a1e5d7b48a6532b9f31407Lennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenif test "x$enable_quotacheck" != "xno"; then
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen have_quotacheck=yes
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenfi
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenhave_tmpfiles=no
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenif test "x$enable_tmpfiles" != "xno"; then
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen have_tmpfiles=yes
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenfi
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersenhave_randomseed=no
d562955eac58d3a5089e0f344ea586412a134451Tom GundersenAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_randomseed" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_randomseed=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_backlight=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_backlight" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_backlight=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_rfkill=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_rfkill" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_rfkill=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_logind=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_logind" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_logind=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievershave_machined=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_machined" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_machined=yes
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfi
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poetteringhave_hostnamed=no
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart PoetteringAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekif test "x$enable_hostnamed" != "xno"; then
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek have_hostnamed=yes
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekfi
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekhave_timedated=no
75db9a77605b33a1b9355eae957f26380441fce6Lennart PoetteringAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_timedated" != "xno"; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering have_timedated=yes
34eff652cedec3cac34b92629ead5f140334b689Lennart Poetteringfi
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart Poettering
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering# ------------------------------------------------------------------------------
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poetteringhave_localed=no
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversif test "x$enable_localed" != "xno"; then
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering have_localed=yes
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sieversfi
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poettering# ------------------------------------------------------------------------------
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poetteringhave_coredump=no
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenif test "x$enable_coredump" != "xno"; then
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen have_coredump=yes
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenfi
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio# ------------------------------------------------------------------------------
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringhave_polkit=no
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
dee4c244254bb49d1ffa8bd7171ae9cce596d2d0Lennart Poetteringif test "x$enable_polkit" != "xno"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio have_polkit=yes
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciofi
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering# ------------------------------------------------------------------------------
bc2708414babc5c99bb8000e63c84e87606cc15dLennart PoetteringAC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poetteringif test "x$enable_networkd" != "xno"; then
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering have_networkd=yes
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poetteringfi
a05ea46dc788929bc8b13afb4208ca29cad68572Michael BieblAM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering# ------------------------------------------------------------------------------
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poetteringhave_efi=no
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringif test "x$enable_efi" != "xno"; then
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering have_efi=yes
6b7620431fb59c3a670580851502a2756a0cf8e9Michael Bieblfi
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart PoetteringAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# ------------------------------------------------------------------------------
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringhave_multi_seat_x=no
6b7620431fb59c3a670580851502a2756a0cf8e9Michael BieblAC_ARG_ENABLE(multi_seat_x, AS_HELP_STRING([--disable-multi-seat-x], [do not build multi-seat-x]))
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poetteringif test "x$enable_multi_seat_x" != "xno"; then
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering have_multi_seat_x=yes
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringfi
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"])
6b7620431fb59c3a670580851502a2756a0cf8e9Michael Biebl
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering# ------------------------------------------------------------------------------
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringhave_kdbus=no
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringif test "x$enable_kdbus" == "xyes"; then
6b7620431fb59c3a670580851502a2756a0cf8e9Michael Biebl AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering have_kdbus=yes
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Bieblfi
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl# ------------------------------------------------------------------------------
db059f1b031a92ed45b62d1036877abd9c128d1bMichael BieblAC_ARG_WITH(rc-local-script-path-start,
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl [Path to /etc/rc.local]),
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl [RC_LOCAL_SCRIPT_PATH_START="$withval"],
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers
39ad55a9aa99451f982628af6e14581092b2d2f6Kay SieversAC_ARG_WITH(rc-local-script-path-stop,
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [Path to /usr/sbin/halt.local]),
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny# ------------------------------------------------------------------------------
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH(kbd-loadkeys,
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--with-kbd-loadkeys=PATH],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [Path to loadkeys]),
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [KBD_LOADKEYS="$withval"],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [KBD_LOADKEYS="/usr/bin/loadkeys"])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH(kbd-setfont,
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--with-kbd-setfont=PATH],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [Path to setfont]),
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [KBD_SETFONT="$withval"],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [KBD_SETFONT="/usr/bin/setfont"])
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAC_SUBST(KBD_LOADKEYS)
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAC_SUBST(KBD_SETFONT)
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-Szmek
6fc00209d5906bd14d54af4a6ac2961dd9731f72Zbigniew Jędrzejewski-SzmekAC_ARG_WITH(telinit,
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-telinit=PATH],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [Path to telinit]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [TELINIT="$withval"],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [TELINIT="/lib/sysvinit/telinit"])
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_SUBST(TELINIT)
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers# ------------------------------------------------------------------------------
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievershave_myhostname=no
bb061708d5aa83579f213bdfb67253f7027217c3Kay SieversAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sieversif test "x$enable_myhostname" != "xno"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_HEADER_STDC
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers 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])
a45a909fbbe11ad8c75cda5639d875476ac65453Christian Ruppert
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers AC_C_CONST
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_TYPE_SIZE_T
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_HEADER_TIME
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_FUNC_MALLOC
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_FUNC_SELECT_ARGTYPES
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering have_myhostname=yes
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_WITH(firmware-path,
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [Firmware search path (default="")]),
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna [], [with_firmware_path=""])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringOLD_IFS=$IFS
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringIFS=:
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kokfor i in $with_firmware_path; do
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering if test "x${FIRMWARE_PATH}" = "x"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering FIRMWARE_PATH="\\\"${i}/\\\""
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers else
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna fi
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnadone
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringIFS=$OLD_IFS
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_SUBST(FIRMWARE_PATH)
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
f553b3b1074151200187df916427a1468186435eAnders Olofsson
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([gudev],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [], [enable_gudev=yes])
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0]) ])
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmekhave_manpages=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart PoetteringAS_IF([test "x$enable_manpages" != xno], [
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers ])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-Szmek# Location of the init scripts as mandated by LSB
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-SzmekSYSTEM_SYSVINIT_PATH=/etc/init.d
2f4da3e6c298bc0ae6243cae47aedb01c50fa870Zbigniew Jędrzejewski-SzmekSYSTEM_SYSVRCND_PATH=/etc/rc.d
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart PoetteringAC_ARG_WITH([sysvinit-path],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [AS_HELP_STRING([--with-sysvinit-path=PATH],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [Specify the path to where the SysV init scripts are located])],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [SYSTEM_SYSVINIT_PATH="$withval"],
db059f1b031a92ed45b62d1036877abd9c128d1bMichael Biebl [])
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart PoetteringAC_ARG_WITH([sysvrcnd-path],
66be6554807773028a0111addb8e75c3cab11117Kay Sievers [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [Specify the path to the base directory for the SysV rcN.d directories])],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [SYSTEM_SYSVRCND_PATH="$withval"],
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering [])
568c7e02372ff7b8eb41172ad7c3a426723512f8Zbigniew Jędrzejewski-Szmek
568c7e02372ff7b8eb41172ad7c3a426723512f8Zbigniew Jędrzejewski-Szmekif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers 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])],
[AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
[])
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}
tcpwrap: ${have_tcpwrap}
PAM: ${have_pam}
AUDIT: ${have_audit}
IMA: ${have_ima}
SELinux: ${have_selinux}
SMACK: ${have_smack}
XZ: ${have_xz}
ACL: ${have_acl}
XATTR: ${have_xattr}
GCRYPT: ${have_gcrypt}
QRENCODE: ${have_qrencode}
MICROHTTPD: ${have_microhttpd}
CHKCONFIG: ${have_chkconfig}
binfmt: ${have_binfmt}
vconsole: ${have_vconsole}
readahead: ${have_readahead}
bootchart: ${have_bootchart}
quotacheck: ${have_quotacheck}
tmpfiles: ${have_tmpfiles}
randomseed: ${have_randomseed}
backlight: ${have_backlight}
rfkill: ${have_rfkill}
logind: ${have_logind}
machined: ${have_machined}
hostnamed: ${have_hostnamed}
timedated: ${have_timedated}
localed: ${have_localed}
coredump: ${have_coredump}
polkit: ${have_polkit}
efi: ${have_efi}
kmod: ${have_kmod}
blkid: ${have_blkid}
nss-myhostname: ${have_myhostname}
gudev: ${enable_gudev}
gintrospection: ${enable_introspection}
multi-seat-x: ${have_multi_seat_x}
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}
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}
CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
PYTHON_CFLAGS: ${PYTHON_DEVEL_CFLAGS}
PYTHON_LIBS: ${PYTHON_DEVEL_LIBS}
])