configure.ac revision 53e856e16ac37fe30b8bb59153ff69aad0fa9c27
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# Copyright 2010-2012 Kay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# under the terms of the GNU Lesser General Public License as published by
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# (at your option) any later version.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is distributed in the hope that it will be useful, but
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# Lesser General Public License for more details.
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU Lesser General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_PREREQ([2.64])
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónAC_INIT([systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón [http://www.freedesktop.org/wiki/Software/systemd])
78a825f216d39ee0295b00647b059d45467e1d02Kay SieversAC_CONFIG_SRCDIR([src/core/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier JardónAC_CONFIG_AUX_DIR([build-aux])
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay SieversAC_USE_SYSTEM_EXTENSIONS
907dd1953b7517534d646f5b2777780020c896e2Kay SieversAC_SYS_LARGEFILE
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay SieversAC_PREFIX_DEFAULT([/usr])
6aad7f2cd75c88f990c7857bb173b3e8d0faee0fUmut Tezduyar LindskogAM_MAINTAINER_MODE([enable])
4196a3ead3cfb823670d225eefcb3e60e34c7d95Kay SieversAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects check-news])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CANONICAL_HOST
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bceeAS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversLT_PREREQ(2.2)
8666abb452db73d9a11ead61251eec42bc531cceKay SieversLT_INIT([disable-static])
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian RodríguezAS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart PoetteringAS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera# i18n stuff for the PolicyKit policy files
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerIT_PROG_INTLTOOL([0.40.0])
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerGETTEXT_PACKAGE=systemd
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_SUBST(GETTEXT_PACKAGE)
f15515b5e6a9ebe95c938cc670df6e576fcf9176Filipe BrandenburgerAC_PROG_MKDIR_P
a59f16ce4a11c440cb2136ad3d5e3184714c545eRobert SchieleAC_PATH_PROG([M4], [m4])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([XSLTPROC], [xsltproc])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([SETCAP], [setcap], [/usr/sbin/setcap])
2f96919bcdd0978164c801b21e053fb3b31e8bacFilipe BrandenburgerAC_PATH_PROG([KILL], [kill], [/usr/bin/kill])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sieversm4_ifdef([GTK_DOC_CHECK], [
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringGTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering enable_gtk_doc=no])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominenm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerGOBJECT_INTROSPECTION_CHECK([1.31.1])
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart Poettering AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli Suominen enable_introspection=no])
2d0efdf1af5ff77441228854343c61d42a89840cSamuli SuominenAC_CHECK_TOOL(STRINGS, strings)
7801356442578ff6e1c65844eb9e65c819af4660Zbigniew Jędrzejewski-SzmekAC_CHECK_TOOL(GPERF, gperf)
446883528524429283626208928b51f49f28f810Lennart Poetteringif test -z "$GPERF" ; then
446883528524429283626208928b51f49f28f810Lennart Poettering AC_MSG_ERROR([*** gperf not found])
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers# ------------------------------------------------------------------------------
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmekaddress_sanitizer_cflags=
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmekaddress_sanitizer_cppflags=
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmekaddress_sanitizer_ldflags=
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier JardónAS_IF([test "x$enable_address_sanitizer" = "xyes"], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AS_IF([test -z "$with_as_cflags"],
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** -fsanitize=address is not supported])])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1"
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers address_sanitizer_cppflags="-DVALGRIND=1"
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sievers address_sanitizer_ldflags="-Wc,-fsanitize=address"
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-SzmekCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl -Wno-inline \
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding -Wlogical-op \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wsign-compare \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wmissing-include-dirs \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wold-style-definition \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wpointer-arith \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wdeclaration-after-statement \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wsuggest-attribute=noreturn \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wmissing-prototypes \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wstrict-prototypes \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wredundant-decls \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wmissing-declarations \
732bfe09aeffc3cd78b80ee9e20c9c3babd944d6Zbigniew Jędrzejewski-Szmek -Wmissing-noreturn \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wendif-labels \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wstrict-aliasing=2 \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wwrite-strings \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-long-long \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-overlength-strings \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-unused-parameter \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-missing-field-initializers \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wno-unused-result \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Werror=overflow \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -Wnested-externs \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fdiagnostics-show-option \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fdiagnostics-color \
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek -fno-strict-aliasing \
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchi -fvisibility=hidden \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -ffunction-sections \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fdata-sections \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fstack-protector \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering --param=ssp-buffer-size=4])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST([OUR_CFLAGS], "$with_cflags $address_sanitizer_cflags")
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
03930e48636e86ad84946253ca2bf4f91deeb645Lennart Poettering -Wp,-D_FORTIFY_SOURCE=2])],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart PoetteringAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $address_sanitizer_cppflags")
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,--as-needed \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,--no-undefined \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,--gc-sections \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,-z,relro \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wl,-fuse-ld=gold])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST([OUR_LDFLAGS], "$with_ldflags $address_sanitizer_ldflags")
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringAC_CHECK_SIZEOF(pid_t)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_SIZEOF(uid_t)
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering# ------------------------------------------------------------------------------
1a40a3393e904fe4683f6d2b2450cfbd94a34000Zbigniew Jędrzejewski-Szmek# we use python to build the man page index, and for systemd-python
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidthave_python=no
213298fb822258bb69c6b85b7c8d7f019fd2306aLennart PoetteringAC_ARG_WITH([python],
693eb9a2d42d71445dad273a76e2470199d1dc5aLennart Poettering [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_IF([test "x$with_python" != "xno"], [
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AM_PATH_PYTHON(,, [:])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri AS_IF([test "$PYTHON" != :], [have_python=yes])
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut BarbieriAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAS_IF([test "x$PYTHON_BINARY" = "x"],
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering [AS_IF([test "x$have_python" = "xyes"],
aca33b078cd32c5416a7fa3d5020a5d461c130eeCristian Rodríguez [PYTHON_BINARY="$(which "$PYTHON")"],
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez [PYTHON_BINARY=/usr/bin/python])])
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart PoetteringAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
b850b06e1efcc7e27cfd785759a3a913ac9ed196Kay SieversAS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
235c6e628199221b7885f159367614b7105547cfJohn [AC_MSG_ERROR([*** python-devel support requires --with-python])])
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmekhave_python_devel=no
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
03a170c03cd4a09721369ece48affb70d66c6b90Kay SieversAS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [have_python_devel=yes],
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-Szmek [have_python_devel=yes],
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi [have_python_devel=no])])
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
9d2d0fe1e3f28a639c26b62391f79cfd1450d91bEvangelos Foutras AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
2a4d1ec1520c926b0160efe14142634e164ddc30Cristian Rodríguez# ------------------------------------------------------------------------------
ae0ceefc2f432bc1068889fcff53d929eca8a3c4Zbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_CHECK_HEADERS([linux/btrfs.h], [], [])
1c231f56482546725c4dbd3303f70300bd3c63e9Lennart Poettering# unconditionally pull-in librt with old glibc versions
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-Szmeksave_LIBS="$LIBS"
de0671ee7fe465e108f62dcbbbe9366f81dd9e9aZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
ccd06097c79218f7d5ea4c21721bbcbc7c467dcaZbigniew Jędrzejewski-SzmekAC_SUBST(CAP_LIBS)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_SUBST(RT_LIBS)
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekLIBS="$save_LIBS"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([fanotify_init fanotify_mark])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([__secure_getenv secure_getenv])
be8737ae386166d2f279767ac87b226204c0de7eFilipe BrandenburgerAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at], [], [], [[#include <sys/types.h>
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburger# This makes sure pkg.m4 is available.
be8737ae386166d2f279767ac87b226204c0de7eFilipe Brandenburgerm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_dbus" != "xno"], [
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
747cf8cdf61cdad068c727e42eac699f2505ae77Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmekhave_compat_libs=no
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek yes) have_compat_libs=yes ;;
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek no) have_compat_libs=no ;;
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
1864b0e39505cd44a98eee61c97916b86491c0b4Zbigniew Jędrzejewski-Szmek [have_compat_libs=no])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmekif test "x$enable_coverage" = "xyes" ; then
a6c0b31d509f76023d8efbcd5e912863c8fb254cZbigniew Jędrzejewski-Szmek AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
f2ec0646aba7c6703a6c79603957e805b74c3befZbigniew Jędrzejewski-Szmek if test "x$lcov_found" = xno ; then
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** lcov support requested but the program was not found])
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
c937e0d5c579863677e0fcb5508517f7714c332dZbigniew Jędrzejewski-Szmek if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poettering AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau have_coverage=yes
27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41Zbigniew Jędrzejewski-Szmek CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers -fprofile-arcs \
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers -ftest-coverage])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay Sievers# ------------------------------------------------------------------------------
7959ff9914a6f3a59dbff95c199bcc540b70ac94Kay SieversAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landdenif test "x$enable_kmod" != "xno"; then
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
fba1ea06bb5b653e9eb0cc1b6004af8da273a4abShawn Landden if test "x$have_kmod" = "xyes"; then
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
9388e99e208a6487b26dcbda86005ee9eba8d93dMichael Olbrich AC_MSG_ERROR([*** kmod version >= 15 not found]))
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-Szmek if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** kmod support requested, but libraries not found])
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart PoetteringAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
3b794314149e40afaf3c456285e1e529747b6560Holger Schurig# ------------------------------------------------------------------------------
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekif test "x$enable_blkid" != "xno"; then
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
6589d0dba2b1ccf2406db527c2c1b51c7143e117Jean-André Santoni if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
75616a1332aff00d27db713cda3bd93c508a5b59Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** blkid support requested but libraries not found])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek yes) have_ima=yes ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek no) have_ima=no ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmekif test "x${have_ima}" != xno ; then
81577dc22887debaf9b19bf1034a2887fb9069c7Zbigniew Jędrzejewski-Szmek AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringhave_chkconfig=yes
2270309471213a3c960543e523130627e9cb10e2Kay SieversAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek [case "${enableval}" in
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek yes) have_chkconfig=yes ;;
8114dedc5910d9a9cec702f6b6658551a0cd9edeChengwei Yang no) have_chkconfig=no ;;
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek [AC_PATH_PROG(CHKCONFIG, chkconfig)
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek if test -z "$CHKCONFIG"; then
ac6b760ceedd4b21921b6a682cf1479af3d3024fZbigniew Jędrzejewski-Szmek have_chkconfig=no
4b357e15876b730343db08719c877fdb45b6ad42Michael Marineau have_chkconfig=yes
37161c5148396448921841ae1026b281c7949652Emil Renner Berthingif test "x${have_chkconfig}" != xno ; then
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
37161c5148396448921841ae1026b281c7949652Emil Renner Berthing# ------------------------------------------------------------------------------
37161c5148396448921841ae1026b281c7949652Emil Renner Berthinghave_selinux=no
37161c5148396448921841ae1026b281c7949652Emil Renner BerthingAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
37161c5148396448921841ae1026b281c7949652Emil Renner Berthingif test "x$enable_selinux" != "xno"; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** SELinux support requested but libraries not found])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-SzmekAC_ARG_WITH(debug-shell,
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek AS_HELP_STRING([--with-debug-shell=PATH],
53e856e16ac37fe30b8bb59153ff69aad0fa9c27Zbigniew Jędrzejewski-Szmek [Path to debug shell binary]),
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [SUSHELL="$withval"],[
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_SUBST(SUSHELL)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_WITH([debug-tty],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AS_HELP_STRING([--with-debug-tty=PATH],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [Specify the tty device for debug shell]),
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [DEBUGTTY="$withval"],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_SUBST(DEBUGTTY)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen# ------------------------------------------------------------------------------
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. AndersenAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersenif test "x$enable_xz" != "xno"; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen PKG_CHECK_MODULES(XZ, [ liblzma ],
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
6aea6d10f460853111ca8744201ec8dade97de3cThomas H.P. Andersen AC_MSG_ERROR([*** Xz support requested but libraries not found])
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen# ------------------------------------------------------------------------------
e30431623a7d871da123cc37055ac49abf2c20eaTom GundersenAC_ARG_ENABLE([tcpwrap],
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner [case "${enableval}" in
a18535d9e138c525d0443ec9f30a90b3e2184686Tom Gundersen yes) have_tcpwrap=yes ;;
e2ca86cf78f911a8be51f0224796e24883019139Dave Reisner no) have_tcpwrap=no ;;
70d8320978dcbce022d9acbb953a10a7aca049abDavid Strauss *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen [have_tcpwrap=auto])
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersenif test "x${have_tcpwrap}" != xno ; then
e30431623a7d871da123cc37055ac49abf2c20eaTom Gundersen if test "x${LIBWRAP_LIBS}" = x ; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson if test "x$have_tcpwrap" = xyes ; then
f553b3b1074151200187df916427a1468186435eAnders Olofsson AC_MSG_ERROR([*** TCP wrappers support not found.])
f553b3b1074151200187df916427a1468186435eAnders Olofsson have_tcpwrap=no
f553b3b1074151200187df916427a1468186435eAnders Olofsson have_tcpwrap=yes
f553b3b1074151200187df916427a1468186435eAnders Olofsson LIBWRAP_LIBS=
f553b3b1074151200187df916427a1468186435eAnders OlofssonAC_SUBST(LIBWRAP_LIBS)
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen# ------------------------------------------------------------------------------
c0467cf387548dc98c0254f63553d862b35a84e5Ronny ChevalierAC_ARG_ENABLE([pam],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [case "${enableval}" in
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier yes) have_pam=yes ;;
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier no) have_pam=no ;;
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
17df7223be064b1542dbe868e3b35cca977ee639Lennart Poettering [have_pam=auto])
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalierif test "x${have_pam}" != xno ; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AC_CHECK_HEADERS(
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [have_pam=yes],
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier [if test "x$have_pam" = xyes ; then
c0467cf387548dc98c0254f63553d862b35a84e5Ronny Chevalier AC_MSG_ERROR([*** PAM headers not found.])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_CHECK_LIB(
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [pam_syslog],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_pam=yes],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [if test "x$have_pam" = xyes ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_MSG_ERROR([*** libpam not found.])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu if test "x$have_pam" = xyes ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu PAM_LIBS="-lpam -lpam_misc"
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_DEFINE(HAVE_PAM, 1, [PAM available])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_SUBST(PAM_LIBS)
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering# ------------------------------------------------------------------------------
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart PoetteringAC_ARG_ENABLE([acl],
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [case "${enableval}" in
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering yes) have_acl=yes ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering no) have_acl=no ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poettering [have_acl=auto])
77e68fa2f0bd018bab2621a31919bfaa6a6b0a35Lennart Poetteringif test "x${have_acl}" != xno ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_CHECK_HEADERS(
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [have_acl=yes],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [if test "x$have_acl" = xyes ; then
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt AC_MSG_ERROR([*** ACL headers not found.])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [acl_get_file],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [have_acl=yes],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [if test "x$have_acl" = xyes ; then
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AC_MSG_ERROR([*** libacl not found.])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer if test "x$have_acl" = xyes ; then
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer ACL_LIBS="-lacl"
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AC_DEFINE(HAVE_ACL, 1, [ACL available])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_SUBST(ACL_LIBS)
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer# ------------------------------------------------------------------------------
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael SchererAC_ARG_ENABLE([xattr],
eef65bf3ee6f73afa4a5de23ae3a794a279f30c0Michael Scherer AS_HELP_STRING([--disable-xattr],[Disable optional XATTR support]),
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [case "${enableval}" in
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez yes) have_xattr=yes ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez no) have_xattr=no ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez *) AC_MSG_ERROR(bad value ${enableval} for --disable-xattr) ;;
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [have_xattr=auto])
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshif test "x${have_xattr}" != xno ; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_CHECK_HEADERS(
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [have_xattr=yes],
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez [if test "x$have_xattr" = xyes ; then
45df1f2c9a7fee67b37f64ddd00adad5982844faCristian Rodríguez AC_MSG_ERROR([*** XATTR headers not found.])
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek [have_xattr=yes],
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek [if test "x$have_xattr" = xyes ; then
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** libattr not found.])
ad95fd1d2b9c6344864857c2ba7634fd87753f8eZbigniew Jędrzejewski-Szmek if test "x$have_xattr" = xyes ; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers XATTR_LIBS="-lattr"
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_DEFINE(HAVE_XATTR, 1, [XATTR available])
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_SUBST(XATTR_LIBS)
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAM_CONDITIONAL([HAVE_XATTR], [test "x$have_xattr" != xno])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering# ------------------------------------------------------------------------------
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE([smack], AS_HELP_STRING([--disable-smack],[Disable optional SMACK support]),
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek [case "${enableval}" in
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek yes) have_smack=yes ;;
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek no) have_smack=no ;;
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek *) AC_MSG_ERROR(bad value ${enableval} for --disable-smack) ;;
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek [have_smack=auto])
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmekif test "x${have_xattr}" = xno; then
d89c8fdf48c7bad5816b9f2e77e8361721f22517Zbigniew Jędrzejewski-Szmek if test "x${have_smack}" = xyes; then
3b1a55e110ab387a8d213581983e20c0a63d7894Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR(SMACK requires xattr support)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers have_smack=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x${have_smack}" = xauto; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_smack=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_WITH(smack-run-label,
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAS_HELP_STRING([--with-smack-run-label=STRING],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [run systemd --system with a specific SMACK label]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_DEFINE_UNQUOTED(SMACK_RUN_LABEL, ["$withval"], [Run with a smack label])],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_smack}" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_SMACK, 1, [Define if SMACK is available])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([gcrypt],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_gcrypt=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_gcrypt=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_gcrypt=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_gcrypt}" != xno ; then
6a6751fe24bf456cf5c1efad785a4d11e78b42d0Lennart Poettering AM_PATH_LIBGCRYPT(
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering [have_gcrypt=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_gcrypt" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** GCRYPT headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_gcrypt" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering GCRYPT_LIBS="$LIBGCRYPT_LIBS"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_gcrypt=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering GCRYPT_CFLAGS=
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(GCRYPT_LIBS)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(GCRYPT_CFLAGS)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([audit],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_audit=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_audit=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_audit=auto])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_audit}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_CHECK_HEADERS(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_audit=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_audit" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** AUDIT headers not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_audit=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_audit" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** libaudit not found.])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski if test "x$have_audit" = xyes ; then
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AUDIT_LIBS="-laudit"
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay SieversAC_SUBST(AUDIT_LIBS)
d2edfae0f9bdbecf6a8518e2a5bcf06f470e0d9eKay Sievers# ------------------------------------------------------------------------------
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowskihave_libcryptsetup=no
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kokif test "x$enable_libcryptsetup" != "xno"; then
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.6.0 ],
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol LewandowskiAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_qrencode=no
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_qrencode" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_microhttpd=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_microhttpd" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [libmicrohttpd >= 0.9.5],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x$enable_binfmt" != "xno"; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_binfmt=yes
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringhave_vconsole=no
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_vconsole" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_vconsole=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_readahead=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_readahead" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_readahead=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_bootchart=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(bootchart, AS_HELP_STRING([--disable-bootchart], [disable bootchart tool]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_bootchart" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_bootchart=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_BOOTCHART, [test "$have_bootchart" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_quotacheck=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_quotacheck" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_quotacheck=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringhave_tmpfiles=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE(tmpfiles, AS_HELP_STRING([--disable-tmpfiles], [disable tmpfiles support]))
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x$enable_tmpfiles" != "xno"; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_tmpfiles=yes
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL(ENABLE_TMPFILES, [test "$have_tmpfiles" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_randomseed=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_randomseed" != "xno"; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering have_randomseed=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_backlight=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(backlight, AS_HELP_STRING([--disable-backlight], [disable backlight tools]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_backlight" != "xno"; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau have_backlight=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_BACKLIGHT, [test "$have_backlight" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(rfkill, AS_HELP_STRING([--disable-rfkill], [disable rfkill tools]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_rfkill" != "xno"; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau have_rfkill=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_RFKILL, [test "$have_rfkill" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineauhave_logind=no
972bded03215d4602fdd2ed2d680350c8eacb056Michael MarineauAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineauif test "x$enable_logind" != "xno"; then
972bded03215d4602fdd2ed2d680350c8eacb056Michael Marineau have_logind=yes
972bded03215d4602fdd2ed2d680350c8eacb056Michael MarineauAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
972bded03215d4602fdd2ed2d680350c8eacb056Michael MarineauAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_machined=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(machined, AS_HELP_STRING([--disable-machined], [disable machine daemon]))
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringif test "x$enable_machined" != "xno"; then
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering have_machined=yes
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAM_CONDITIONAL(ENABLE_MACHINED, [test "$have_machined" = "yes"])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poettering# ------------------------------------------------------------------------------
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart Poetteringhave_hostnamed=no
8d4e028f1868c47864ec873d9f30c3ee961a8849Lennart PoetteringAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversif test "x$enable_hostnamed" != "xno"; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering have_hostnamed=yes
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringhave_timedated=no
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x$enable_timedated" != "xno"; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering have_timedated=yes
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringhave_localed=no
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringif test "x$enable_localed" != "xno"; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering have_localed=yes
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringhave_coredump=no
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringif test "x$enable_coredump" != "xno"; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering have_coredump=yes
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering# ------------------------------------------------------------------------------
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_ENABLE(polkit, AS_HELP_STRING([--disable-polkit], [disable PolicyKit support]))
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringif test "x$enable_polkit" != "xno"; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AC_DEFINE(ENABLE_POLKIT, 1, [Define if PolicyKit support is to be enabled])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering have_polkit=yes
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_POLKIT, [test "x$have_polkit" = "xyes"])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(networkd, AS_HELP_STRING([--disable-networkd], [disable networkd]))
f12be7e8ca278a5a207d0fd051acec700b804a7aZbigniew Jędrzejewski-Szmekif test "x$enable_networkd" != "xno"; then
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek AC_DEFINE(ENABLE_NETWORKD, 1, [Define if networkd support is to be enabled])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek have_networkd=yes
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_NETWORKD, [test "x$have_networkd" = "xyes"])
6031319956b4b1d13799373bfda3e8690f6fa874Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(efi, AS_HELP_STRING([--disable-efi], [disable EFI support]))
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmekif test "x$enable_efi" != "xno"; then
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek AC_DEFINE(ENABLE_EFI, 1, [Define if EFI support is to be enabled])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_EFI, [test "x$have_efi" = "xyes"])
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek# ------------------------------------------------------------------------------
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmekhave_multi_seat_x=no
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-SzmekAC_ARG_ENABLE(multi_seat_x, AS_HELP_STRING([--disable-multi-seat-x], [do not build multi-seat-x]))
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmekif test "x$enable_multi_seat_x" != "xno"; then
36ef43edcf1c9640b3fda017b381c4b1854641f4Zbigniew Jędrzejewski-Szmek have_multi_seat_x=yes
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAM_CONDITIONAL(ENABLE_MULTI_SEAT_X, [test "$have_multi_seat_x" = "yes"])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering# ------------------------------------------------------------------------------
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAC_ARG_ENABLE(kdbus, AS_HELP_STRING([--enable-kdbus], [do connect to kdbus by default]))
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poetteringif test "x$enable_kdbus" = "xyes"; then
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering AC_DEFINE(ENABLE_KDBUS, 1, [Define if kdbus support is to be enabled])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering have_kdbus=yes
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering M4_DEFINES="$M4_DEFINES -DENABLE_KDBUS"
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAM_CONDITIONAL(ENABLE_KDBUS, [test "$have_kdbus" = "yes"])
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart Poettering# ------------------------------------------------------------------------------
bdf10b5b4d9e7abdc08bdca4b073d021b0043d1fLennart PoetteringAC_ARG_WITH(rc-local-script-path-start,
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-rc-local-script-path-start=PATH],
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna [RC_LOCAL_SCRIPT_PATH_START="$withval"],
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna [RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_WITH(rc-local-script-path-stop,
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna AS_HELP_STRING([--with-rc-local-script-path-stop=PATH],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [RC_LOCAL_SCRIPT_PATH_STOP="$withval"],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_START)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_SUBST(RC_LOCAL_SCRIPT_PATH_STOP)
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok# ------------------------------------------------------------------------------
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke KokAC_ARG_WITH(kbd-loadkeys,
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok AS_HELP_STRING([--with-kbd-loadkeys=PATH],
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok [Path to loadkeys]),
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok [KBD_LOADKEYS="$withval"],
83fdc450aa8f79941bec84488ffd5bf8eadab18eAuke Kok [KBD_LOADKEYS="/usr/bin/loadkeys"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(kbd-setfont,
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AS_HELP_STRING([--with-kbd-setfont=PATH],
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [Path to setfont]),
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering [KBD_SETFONT="$withval"],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [KBD_SETFONT="/usr/bin/setfont"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_DEFINE_UNQUOTED(KBD_LOADKEYS, ["$KBD_LOADKEYS"], [Path of loadkeys])
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_DEFINE_UNQUOTED(KBD_SETFONT, ["$KBD_SETFONT"], [Path of setfont])
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_SUBST(KBD_LOADKEYS)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_SUBST(KBD_SETFONT)
6351163bf3e519cc07adb2732d12450741f5a0d3Umut TezduyarAC_ARG_WITH(telinit,
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar AS_HELP_STRING([--with-telinit=PATH],
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar [Path to telinit]),
6351163bf3e519cc07adb2732d12450741f5a0d3Umut Tezduyar [TELINIT="$withval"],
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAC_DEFINE_UNQUOTED(TELINIT, ["$TELINIT"], [Path to telinit])
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAC_SUBST(TELINIT)
1b99214789101976d6bbf75c351279584b071998Lennart PoetteringAC_CHECK_HEADERS_ONCE([valgrind/memcheck.h valgrind/valgrind.h])
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering# ------------------------------------------------------------------------------
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringhave_myhostname=no
418b9be50018303cde79b423d4701b7fd86ddbdcLennart PoetteringAC_ARG_ENABLE(myhostname, AS_HELP_STRING([--disable-myhostname], [disable nss-myhostname support]))
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poetteringif test "x$enable_myhostname" != "xno"; then
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering AC_HEADER_STDC
418b9be50018303cde79b423d4701b7fd86ddbdcLennart Poettering AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h sys/auxv.h])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_TYPE_SIZE_T
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AC_HEADER_TIME
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AC_FUNC_MALLOC
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers AC_FUNC_SELECT_ARGTYPES
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_myhostname=yes
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAM_CONDITIONAL(HAVE_MYHOSTNAME, [test "$have_myhostname" = "yes"])
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering# ------------------------------------------------------------------------------
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart PoetteringAC_ARG_WITH(firmware-path,
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [Firmware search path (default="")]),
3731acf1acfb4a6eb68374a5b137f3b368f63381Lennart Poettering [], [with_firmware_path=""])
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poetteringfor i in $with_firmware_path; do
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering if test "x${FIRMWARE_PATH}" = "x"; then
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering FIRMWARE_PATH="\\\"${i}/\\\""
3990f247652c3bd41e4ea074e6302277eb9c7aa3Lennart Poettering FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_SUBST(FIRMWARE_PATH)
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay SieversAM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers# ------------------------------------------------------------------------------
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay SieversAC_ARG_ENABLE([gudev],
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering [], [enable_gudev=yes])
1ee306e1248866617c96ed9f4263f375588ad838Lennart 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]) ])
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAS_IF([test "x$enable_gudev" = "xyes"], [ AC_DEFINE(HAVE_GLIB, 1, [Define if glib is available]) ])
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poettering# ------------------------------------------------------------------------------
1ee306e1248866617c96ed9f4263f375588ad838Lennart Poetteringhave_manpages=no
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
1ee306e1248866617c96ed9f4263f375588ad838Lennart PoetteringAS_IF([test "x$enable_manpages" != xno], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna# ------------------------------------------------------------------------------
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna# Location of the init scripts as mandated by LSB
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaSYSTEM_SYSVINIT_PATH=/etc/init.d
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaSYSTEM_SYSVRCND_PATH=/etc/rc.d
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_ARG_WITH([sysvinit-path],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [AS_HELP_STRING([--with-sysvinit-path=PATH],
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna [Specify the path to where the SysV init scripts are located])],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [SYSTEM_SYSVINIT_PATH="$withval"],
43ba1b3e642253652cc29c92903cf53e310ce6cbLennart PoetteringAC_ARG_WITH([sysvrcnd-path],
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers [AS_HELP_STRING([--with-sysvrcnd-path=PATH],
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers [Specify the path to the base directory for the SysV rcN.d directories])],
687ed1237b20a6db174fd0b372df20fa9a3a23c2Kay Sievers [SYSTEM_SYSVRCND_PATH="$withval"],
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering SYSTEM_SYSV_COMPAT="yes"
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poetteringelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcnd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
e8af69739a629708d2c155ebcd4fa57b8fd5006aLennart Poettering SYSTEM_SYSV_COMPAT="no"
5ea846cc5197682d07ee46398996a8c3ccfbcc38Zbigniew Jędrzejewski-SzmekAC_SUBST(SYSTEM_SYSVINIT_PATH)
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAC_SUBST(M4_DEFINES)
661278ee297247c0c7e0708924f8ce52284529fcLennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_WITH([tty-gid],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [AS_HELP_STRING([--with-tty-gid=GID],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [Specify the numeric GID of the 'tty' group])],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_WITH([dbuspolicydir],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [with_dbussessionservicedir=$($PKG_CONFIG --variable=session_bus_services_dir dbus-1)])
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart PoetteringAC_ARG_WITH([dbussystemservicedir],
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
f7dc3ab9f43b67abcbd34062b9352ab42debec49Lennart Poettering [with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_WITH([dbusinterfacedir],
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_WITH([bashcompletiondir],
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna AS_HELP_STRING([--with-bashcompletiondir=DIR], [Bash completions directory]),
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering [AS_IF([$($PKG_CONFIG --exists bash-completion)], [
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering with_bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers with_bashcompletiondir=${datadir}/bash-completion/completions
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_WITH([zshcompletiondir],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AS_HELP_STRING([--with-zshcompletiondir=DIR], [Zsh completions directory]),
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [], [with_zshcompletiondir=${datadir}/zsh/site-functions])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_ARG_WITH([rootprefix],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering [], [with_rootprefix=${ac_default_prefix}])
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart PoetteringAC_ARG_WITH([rootlibdir],
46ba8aae2b82bc5c87ba347e6bf914ecd5e9d51eLennart Poettering AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen [with_rootlibdir=${libdir}])
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAC_ARG_WITH([pamlibdir],
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin Walters [with_pamlibdir=${with_rootlibdir}/security])
3c9317d2d93248f3f0b0feaaa113485aee415d8aColin WaltersAC_ARG_WITH([pamconfdir],
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen AS_HELP_STRING([--with-pamconfdir=DIR], [Directory for PAM configuration]),
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen [with_pamconfdir=${sysconfdir}/pam.d])
7b4d79683998a78d6e123dd034b1e06b74d8030bTom GundersenAC_ARG_ENABLE([split-usr],
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
e16cb2e4efaba83f47da8355adc65fd83bbe8327Tom Gundersen enable_split_usr=yes
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen enable_split_usr=no
091a364c802e34a58f3260c9cb5db9b75c62215cTom GundersenAS_IF([test "x${enable_split_usr}" = "xyes"], [
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
091a364c802e34a58f3260c9cb5db9b75c62215cTom Gundersen# Work around intltoolize and gtk-doc problems in VPATH builds
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [Define to do gtk-doc tests])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAS_IF([test "x$0" != "x./configure"], [
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart PoetteringAC_ARG_ENABLE(tests,
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering [AC_HELP_STRING([--disable-tests], [disable tests])],
b872e9a05939bc3e0ac95a042592506a7488dd6fLennart Poettering enable_tests=$enableval, enable_tests=yes)
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_TESTS, [test x$enable_tests = xyes])
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAC_SUBST([bashcompletiondir], [$with_bashcompletiondir])
bd441fa27a22b7c6e11d9330560e0622fb69f297Zbigniew Jędrzejewski-SzmekAC_SUBST([zshcompletiondir], [$with_zshcompletiondir])
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David HerrmannAC_SUBST([pamlibdir], [$with_pamlibdir])
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David HerrmannAC_SUBST([pamconfdir], [$with_pamconfdir])
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David HerrmannAC_SUBST([rootprefix], [$with_rootprefix])
84da4a3022bc599b26d9601cf1b7bf51d1d9f915David HerrmannAC_SUBST([rootlibdir], [$with_rootlibdir])
c93e5a62ff599528c3bf2a8656825403aaebe093David HerrmannAC_CONFIG_FILES([
c97a6dbcf10990bcc2455e842a41bf14b01f358dLukasz SkalskiAC_MSG_RESULT([
146ccaafd5c9d4f2798240b049f595f70f45f77bDave Reisner $PACKAGE_NAME $VERSION
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering libcryptsetup: ${have_libcryptsetup}
4acbce79798347cddf1e1d42e9be571e0a041873Zbigniew Jędrzejewski-Szmek tcpwrap: ${have_tcpwrap}
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering PAM: ${have_pam}
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering AUDIT: ${have_audit}
626851be97b4332fc0401d754c81ae7bbc0f5dc4Lennart Poettering IMA: ${have_ima}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering SELinux: ${have_selinux}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering SMACK: ${have_smack}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering XZ: ${have_xz}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering ACL: ${have_acl}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering XATTR: ${have_xattr}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering GCRYPT: ${have_gcrypt}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering QRENCODE: ${have_qrencode}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering MICROHTTPD: ${have_microhttpd}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering CHKCONFIG: ${have_chkconfig}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering binfmt: ${have_binfmt}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering vconsole: ${have_vconsole}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering readahead: ${have_readahead}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering bootchart: ${have_bootchart}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering quotacheck: ${have_quotacheck}
bc2708414babc5c99bb8000e63c84e87606cc15dLennart Poettering tmpfiles: ${have_tmpfiles}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering randomseed: ${have_randomseed}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering backlight: ${have_backlight}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering rfkill: ${have_rfkill}
b1c4ca25bf58e1925012d1dcdd83d61cecbf87fbLennart Poettering logind: ${have_logind}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering machined: ${have_machined}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering hostnamed: ${have_hostnamed}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering timedated: ${have_timedated}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering localed: ${have_localed}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering coredump: ${have_coredump}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering polkit: ${have_polkit}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering efi: ${have_efi}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering kmod: ${have_kmod}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering blkid: ${have_blkid}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering dbus: ${have_dbus}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering nss-myhostname: ${have_myhostname}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering gudev: ${enable_gudev}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering gintrospection: ${enable_introspection}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering multi-seat-x: ${have_multi_seat_x}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering kdbus: ${have_kdbus}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering Python: ${have_python}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering Python Headers: ${have_python_devel}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering man pages: ${have_manpages}
a382332eed10d3348231803c47a4c599d24c5e3aLennart Poettering gtk-doc: ${enable_gtk_doc}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez test coverage: ${have_coverage}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez Split /usr: ${enable_split_usr}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez SysV compatibility: ${SYSTEM_SYSV_COMPAT}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez compatibility libraries: ${have_compat_libs}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez prefix: ${prefix}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez rootprefix: ${with_rootprefix}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez sysconf dir: ${sysconfdir}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez datarootdir: ${datarootdir}
4ad61fd1806dde23d2c99043b4bed91a196d2c82Cristian Rodríguez includedir: ${includedir}
54b434b1b5055f934230fe04fad35b01642b8488Lennart Poettering include_prefix: ${INCLUDE_PREFIX}
7211f918ba2b86e0041413b47d51d7593e73cf5dLennart Poettering lib dir: ${libdir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen rootlib dir: ${with_rootlibdir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
f8c5a5815ff7c137d9a1e5d7b48a6532b9f31407Lennart Poettering SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen Build Python: ${PYTHON}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen Installation Python: ${PYTHON_BINARY}
a3b6fafed441d96380a3f089118f7486d6aa3126Lennart Poettering sphinx binary: ${SPHINX_BUILD}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen firmware path: ${FIRMWARE_PATH}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen PAM modules dir: ${with_pamlibdir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen PAM configuration dir: ${with_pamconfdir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen D-Bus policy dir: ${with_dbuspolicydir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen D-Bus session dir: ${with_dbussessionservicedir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen D-Bus system dir: ${with_dbussystemservicedir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen D-Bus interfaces dir: ${with_dbusinterfacedir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen Bash completions dir: ${with_bashcompletiondir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen Zsh completions dir: ${with_zshcompletiondir}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen Extra start script: ${RC_LOCAL_SCRIPT_PATH_START}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen Extra stop script: ${RC_LOCAL_SCRIPT_PATH_STOP}
d562955eac58d3a5089e0f344ea586412a134451Tom Gundersen Debug shell: ${SUSHELL} @ ${DEBUGTTY}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers PYTHON_CFLAGS: ${PYTHON_DEVEL_CFLAGS}
de1c301ed165eb4d04a0c9d4babe97912b5233bbLennart Poettering PYTHON_LIBS: ${PYTHON_DEVEL_LIBS}