configure.ac revision f9b557200b6d59a3dce1623d0873a259ee2fe421
9262a519468491c80df2998eda238e2ac86a810dLennart 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],
f9b557200b6d59a3dce1623d0873a259ee2fe421Lennart Poettering [194],
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_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])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversLT_PREREQ(2.2)
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversLT_INIT
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera# i18n stuff for the PolicyKit policy files
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraIT_PROG_INTLTOOL([0.40.0])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraGETTEXT_PACKAGE=systemd
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_SUBST(GETTEXT_PACKAGE)
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_MKDIR_P
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_LN_S
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAC_PROG_SED
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay SieversAC_PROG_GREP
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_PROG_AWK
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_CC
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_CC_C99
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_PROG_CC_C_O
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_GCC_TRADITIONAL
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_PATH_PROG([M4], [m4])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAC_PATH_PROG([XSLTPROC], [xsltproc])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerAC_PATH_PROG([QUOTAON], [quotaon], [/sbin/quotaon])
b51fc639f01ee6194af3e7e944a79accce474fe1Dave ReisnerAC_PATH_PROG([QUOTACHECK], [quotacheck], [/sbin/quotacheck])
b51fc639f01ee6194af3e7e944a79accce474fe1Dave Reisner
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sievers# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardónm4_ifdef([GTK_DOC_CHECK], [
9e45e7d8f0d8d3f31d790f85694585d0d4b368b8Javier JardónGTK_DOC_CHECK([1.18],[--flavour no-tmpl])
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers], [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])])
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAS_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])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sieversm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay SieversGOBJECT_INTROSPECTION_CHECK([1.31.1])
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers], [AM_CONDITIONAL([HAVE_INTROSPECTION], [false])])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAC_PATH_TOOL(OBJCOPY, objcopy)
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAC_PATH_TOOL(STRINGS, strings)
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAC_PATH_TOOL(GPERF, gperf)
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblif test -z "$GPERF" ; then
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl AC_MSG_ERROR([*** gperf not found])
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblfi
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering# we use python to build the man page index, and for systemd-python
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poetteringhave_python=no
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poetteringhave_python_devel=no
9c4fa6ed1069e98db5f01a5d1056b443a04cc7d9Lennart PoetteringAM_PATH_PYTHON(,, [:])
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poetteringif test "$PYTHON" != : ; then
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering have_python=yes
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering AC_PATH_PROG([PYTHON_CONFIG], python-config)
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering if test -n "$PYTHON_CONFIG" ; then
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering have_python_devel=yes
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering PYTHON_CFLAGS="`$PYTHON_CONFIG --cflags`"
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering PYTHON_LIBS="`$PYTHON_CONFIG --libs`"
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering AC_SUBST(PYTHON_CFLAGS)
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering AC_SUBST(PYTHON_LIBS)
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering fi
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poetteringfi
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAM_CONDITIONAL([HAVE_PYTHON], [test "$have_python" = "yes"])
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart PoetteringAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
9c4fa6ed1069e98db5f01a5d1056b443a04cc7d9Lennart Poettering
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De MarchiCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -pipe \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wall \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wextra \
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poettering -Wno-inline \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wundef \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wformat=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wlogical-op \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wsign-compare \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wformat-security \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-include-dirs \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wformat-nonliteral \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wold-style-definition \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wpointer-arith \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Winit-self \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wdeclaration-after-statement \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wfloat-equal \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-prototypes \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wredundant-decls \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-declarations \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wshadow \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wendif-labels \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wcast-align \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wstrict-aliasing=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wwrite-strings \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-long-long \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-overlength-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-parameter \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-missing-field-initializers \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -Wno-unused-result \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -Werror=overflow \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -ffast-math \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fno-common \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -fdiagnostics-show-option \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fno-strict-aliasing \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fvisibility=hidden \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -ffunction-sections \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -fdata-sections \
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering -fstack-protector \
c1663b9daf5a43425e54bbe3daf6b10e64578f80Lennart Poettering --param=ssp-buffer-size=4])
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_SUBST([OUR_CFLAGS], $with_cflags)
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringCC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wp,-D_FORTIFY_SOURCE=2])
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_SUBST([OUR_CPPFLAGS], $with_cppflags)
9e7adc3ae1133fa08a468768a490812299fad030Lucas De Marchi
9e7adc3ae1133fa08a468768a490812299fad030Lucas De MarchiCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wl,--as-needed \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wl,--gc-sections \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wl,-z,relro \
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering -Wl,-z,now])
5a45a93627609451784a04366cfa1150d32611d1Lennart PoetteringAC_SUBST([OUR_LDFLAGS], $with_ldflags)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart PoetteringAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Bieblsave_LIBS="$LIBS"
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblLIBS=
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblCAP_LIBS="$LIBS"
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblLIBS="$save_LIBS"
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAC_SUBST(CAP_LIBS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart PoetteringAC_CHECK_FUNCS([fanotify_init fanotify_mark name_to_handle_at])
4db17f291c627c885de668200ff8cce2e57c933fZbigniew Jędrzejewski-SzmekAC_CHECK_FUNCS([__secure_getenv secure_getenv])
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart PoetteringAC_CHECK_DECLS([gettid, pivot_root], [], [], [[#include <sys/types.h>
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering#include <unistd.h>
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering#include <sys/mount.h>]])
a8348796c0d39435b1c3d85ce6e95dad1ac85fecLennart Poettering
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heen# This makes sure pkg.m4 is available.
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversPKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversPKG_CHECK_MODULES(KMOD, [libkmod >= 5])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversPKG_CHECK_MODULES(BLKID,[blkid >= 2.20])
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuhave_ima=yes
816115863962548a9a0d9fbfe429c7f8e685beacRoberto SassuAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [case "${enableval}" in
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu yes) have_ima=yes ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu no) have_ima=no ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu esac],
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu [have_ima=yes])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassuif test "x${have_ima}" != xno ; then
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassufi
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringhave_selinux=no
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringif test "x$enable_selinux" != "xno"; then
3f8cc098d218525710e5cbad9adf37001d3b6060Jan Engelhardt PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering fi
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshfi
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidtif test "x${have_selinux}" != xno ; then
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidt sushell=/sbin/sushell
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidtelse
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidt sushell=/bin/bash
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal Schmidtfi
ed061a8dc2acd93c2eb569d2d983d5a77f7e5b77Michal SchmidtAC_SUBST(sushell)
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringhave_xz=no
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringif test "x$enable_xz" != "xno"; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** Xz support requested but libraries not found])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering fi
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringfi
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_ARG_ENABLE([tcpwrap],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_tcpwrap=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_tcpwrap=no ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering esac],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_tcpwrap=auto])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_tcpwrap}" != xno ; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering ACX_LIBWRAP
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_tcpwrap" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** TCP wrappers support not found.])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering fi
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering have_tcpwrap=no
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_tcpwrap=yes
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering fi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringelse
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering LIBWRAP_LIBS=
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringfi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAC_SUBST(LIBWRAP_LIBS)
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([pam],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_pam=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_pam=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering esac],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=auto])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_pam}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_HEADERS(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** PAM headers not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_CHECK_LIB(
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [pam],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [pam_syslog],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [have_pam=yes],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_MSG_ERROR([*** libpam not found.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_pam" = xyes ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM_LIBS="-lpam -lpam_misc"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering else
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering have_pam=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringelse
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM_LIBS=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(PAM_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([acl],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_acl=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_acl=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering esac],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=auto])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringif test "x${have_acl}" != xno ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_CHECK_HEADERS(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [sys/acl.h acl/libacl.h],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** ACL headers not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_CHECK_LIB(
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [acl],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [acl_get_file],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [have_acl=yes],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** libacl not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_acl" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACL_LIBS="-lacl"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_ACL, 1, [ACL available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering else
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_acl=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringelse
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACL_LIBS=
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(ACL_LIBS)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering# ------------------------------------------------------------------------------
feb12d3ed2c7f9132c64773c7c41b9e3a608a814Lennart PoetteringAC_ARG_ENABLE([gcrypt],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AS_HELP_STRING([--disable-gcrypt],[Disable optional GCRYPT support]),
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [case "${enableval}" in
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering yes) have_gcrypt=yes ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering no) have_gcrypt=no ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-gcrypt) ;;
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering esac],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_gcrypt=auto])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringif test "x${have_gcrypt}" != xno ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AM_PATH_LIBGCRYPT(
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [1.4.5],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [have_gcrypt=yes],
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering [if test "x$have_gcrypt" = xyes ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_MSG_ERROR([*** GCRYPT headers not found.])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering if test "x$have_gcrypt" = xyes ; then
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_LIBS="$LIBGCRYPT_LIBS"
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_CFLAGS="$LIBGCRYPT_CFLAGS"
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering AC_DEFINE(HAVE_GCRYPT, 1, [GCRYPT available])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering else
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering have_gcrypt=no
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering fi
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringelse
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_LIBS=
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT_CFLAGS=
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poetteringfi
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST(GCRYPT_LIBS)
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAC_SUBST(GCRYPT_CFLAGS)
7560fffcd2531786b9c1ca657667a43e90331326Lennart PoetteringAM_CONDITIONAL([HAVE_GCRYPT], [test "x$have_gcrypt" != xno])
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_ENABLE([audit],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [case "${enableval}" in
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering yes) have_audit=yes ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering no) have_audit=no ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering esac],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_audit=auto])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringif test "x${have_audit}" != xno ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_HEADERS(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [libaudit.h],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_audit=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** AUDIT headers not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_CHECK_LIB(
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [audit],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [audit_open],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [have_audit=yes],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** libaudit not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x$have_audit" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AUDIT_LIBS="-laudit"
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering else
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_audit=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringelse
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AUDIT_LIBS=
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST(AUDIT_LIBS)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringhave_libcryptsetup=no
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringif test "x$enable_libcryptsetup" != "xno"; then
880a599e262b9193219e612d827b35bb0c292daeTom Gundersen PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup >= 1.4.2 ],
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering fi
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringfi
7f4e08056de0184b205a20632e62db73d299937eLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering# ------------------------------------------------------------------------------
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringhave_qrencode=no
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAC_ARG_ENABLE(qrencode, AS_HELP_STRING([--disable-qrencode], [disable qrencode support]))
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringif test "x$enable_qrencode" != "xno"; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering PKG_CHECK_MODULES(QRENCODE, [ libqrencode ],
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering [AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering if test "x$have_qrencode" = xno -a "x$enable_qrencode" = xyes; then
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering AC_MSG_ERROR([*** qrencode support requested but libraries not found])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering fi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poetteringfi
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart PoetteringAM_CONDITIONAL(HAVE_QRENCODE, [test "$have_qrencode" = "yes"])
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering# ------------------------------------------------------------------------------
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringhave_microhttpd=no
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAC_ARG_ENABLE(microhttpd, AS_HELP_STRING([--disable-microhttpd], [disable microhttpd support]))
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringif test "x$enable_microhttpd" != "xno"; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering PKG_CHECK_MODULES(MICROHTTPD, [ libmicrohttpd ],
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering [AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering if test "x$have_microhttpd" = xno -a "x$enable_microhttpd" = xyes; then
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering AC_MSG_ERROR([*** microhttpd support requested but libraries not found])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering fi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poetteringfi
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart PoetteringAM_CONDITIONAL(HAVE_MICROHTTPD, [test "$have_microhttpd" = "yes"])
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnahave_binfmt=no
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnaif test "x$enable_binfmt" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_binfmt=yes
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnafi
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringhave_vconsole=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x$enable_vconsole" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_vconsole=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringhave_readahead=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x$enable_readahead" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_readahead=yes
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringhave_quotacheck=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_quotacheck" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_quotacheck=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringhave_randomseed=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_randomseed" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_randomseed=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievershave_logind=no
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversif test "x$enable_logind" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_logind=yes
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversfi
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4c80c73c2b804576b1de27e644c1da4dab2f9026Kay SieversAS_IF([test "$have_logind" = "yes"], [ AC_DEFINE(HAVE_LOGIND, [1], [Logind support available]) ])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnahave_hostnamed=no
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnaif test "x$enable_hostnamed" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_hostnamed=yes
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnafi
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnahave_timedated=no
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnaif test "x$enable_timedated" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_timedated=yes
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnafi
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnahave_localed=no
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnaif test "x$enable_localed" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_localed=yes
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnafi
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringhave_coredump=no
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringif test "x$enable_coredump" != "xno"; then
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers have_coredump=yes
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringfi
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(usb-ids-path,
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers [AS_HELP_STRING([--with-usb-ids-path=DIR], [Path to usb.ids file])],
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers [USB_DATABASE=${withval}],
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers [if test -n "$usbids" ; then
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers USB_DATABASE="$usbids"
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers else
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers PKG_CHECK_MODULES(USBUTILS, usbutils >= 0.82)
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers AC_SUBST([USB_DATABASE], [$($PKG_CONFIG --variable=usbids usbutils)])
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers fi])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_MSG_CHECKING([for USB database location])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_MSG_RESULT([$USB_DATABASE])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(USB_DATABASE)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(pci-ids-path,
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers [AS_HELP_STRING([--with-pci-ids-path=DIR], [Path to pci.ids file])],
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers [PCI_DATABASE=${withval}],
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers [if test -n "$pciids" ; then
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers PCI_DATABASE="$pciids"
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers else
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers PKG_CHECK_MODULES(LIBPCI, libpci >= 3)
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers AC_SUBST([PCI_DATABASE], [$($PKG_CONFIG --variable=idsdir libpci)/pci.ids])
9a203affa6e1866f9b9b68501d10102d21c9d0daKay Sievers fi])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_MSG_CHECKING([for PCI database location])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_MSG_RESULT([$PCI_DATABASE])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST(PCI_DATABASE)
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_WITH(firmware-path,
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversOLD_IFS=$IFS
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversIFS=:
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversfor i in $with_firmware_path; do
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test "x${FIRMWARE_PATH}" = "x"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers FIRMWARE_PATH="\\\"${i}/\\\""
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers else
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers FIRMWARE_PATH="${FIRMWARE_PATH}, \\\"${i}/\\\""
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers fi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sieversdone
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversIFS=$OLD_IFS
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([gudev],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-gudev], [disable Gobject libudev support @<:@default=enabled@:>@]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [], [enable_gudev=yes])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0]) ])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([ENABLE_GUDEV], [test "x$enable_gudev" = "xyes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_ARG_ENABLE([keymap],
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AS_HELP_STRING([--disable-keymap], [disable keymap fixup support @<:@default=enabled@:>@]),
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers [], [enable_keymap=yes])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAS_IF([test "x$enable_keymap" = "xyes"], [
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_PATH_PROG([GPERF], [gperf])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers if test -z "$GPERF"; then
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_MSG_ERROR([gperf is needed])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers fi
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_CHECK_HEADER([linux/input.h], [:], AC_MSG_ERROR([kernel headers not found]))
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers AC_SUBST([INCLUDE_PREFIX], [$(echo '#include <linux/input.h>' | eval $ac_cpp -E - | sed -n '/linux\/input.h/ {s:.*"\(.*\)/linux/input.h".*:\1:; p; q}')])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers])
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAM_CONDITIONAL([ENABLE_KEYMAP], [test "x$enable_keymap" = "xyes"])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poetteringhave_manpages=no
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart PoetteringAC_ARG_ENABLE(manpages, AS_HELP_STRING([--disable-manpages], [disable manpages]))
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAS_IF([test "x$enable_manpages" != xno], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AS_IF([test "x$enable_manpages" = xyes -a "x$XSLTPROC" = x], [
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AC_MSG_ERROR([*** Manpages requested but xsltproc not found])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek ])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek AS_IF([test "x$XSLTPROC" != x], [have_manpages=yes])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek])
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-SzmekAM_CONDITIONAL(ENABLE_MANPAGES, [test "x$have_manpages" = "xyes"])
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# ------------------------------------------------------------------------------
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
8401e9f91d65c3d8d49cf0d2e35d03146354e957Auke KokAC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux, mandriva, mageia, angstrom or other]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringif test "z$with_distro" = "z"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "$cross_compiling" = yes; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering else
c87f7103fe38434f0b88df5c2b080c7b558feabfZbigniew Jędrzejewski-Szmek with_distro=$($GREP '^ID=' /etc/os-release 2>/dev/null | $SED 's/ID=//');
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering fi
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "z$with_distro" = "z"; then
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sievers with_distro=other
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering fi
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringfi
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringwith_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
7d568925bda9797f611e36d1d00cd941701cb3c8Lennart PoetteringAC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering# Location of the init scripts as mandated by LSB
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart PoetteringSYSTEM_SYSVRCND_PATH=/etc/rc.d
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringM4_DEFINES=
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringcase $with_distro in
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering fedora)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_FEDORA=1
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering ;;
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sievers opensuse|suse)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc/init.d
634826b51b074b2e6d9314031bdd9abdcf862b54Pavol Rusnak AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_SUSE=1
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering ;;
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering debian)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_DEBIAN=1
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering ;;
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds ubuntu)
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds SYSTEM_SYSVRCND_PATH=/etc
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_UBUNTU=1
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds ;;
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner arch)
4bf43a32a96465d2f9c244adea3e661075f208bfTom Gundersen SYSTEM_SYSVINIT_PATH=
4bf43a32a96465d2f9c244adea3e661075f208bfTom Gundersen SYSTEM_SYSVRCND_PATH=
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_ARCH=1
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner ;;
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze gentoo)
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio SYSTEM_SYSVINIT_PATH=
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio SYSTEM_SYSVRCND_PATH=
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_GENTOO=1
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze ;;
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd slackware)
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_SLACKWARE=1
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd ;;
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna frugalware)
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna SYSTEM_SYSVINIT_PATH=/etc/rc.d
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_FRUGALWARE=1
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna ;;
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin altlinux)
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_ALTLINUX=1
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin ;;
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov mandriva)
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_MANDRIVA=1
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov ;;
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi angstrom)
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi SYSTEM_SYSVRCND_PATH=/etc
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES=-DTARGET_ANGSTROM=1
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi ;;
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan mageia)
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
fbf5b12653e29674b1e85c73d446b13ac3a15b38Colin Guthrie M4_DEFINES=-DTARGET_MAGEIA=1
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan ;;
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog Heen other)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering ;;
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering *)
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog Heen AC_MSG_ERROR([Your distribution (${with_distro}) is not yet supported, SysV init scripts could not be found! (patches welcome); you can specify --with-distro=other to skip this check])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering ;;
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringesac
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_WITH([sysvinit-path],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [AS_HELP_STRING([--with-sysvinit-path=PATH],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [SYSTEM_SYSVINIT_PATH="$withval"],
be31376e6c9add0786f31a38eec2ecfdb73eb115Kay Sievers [])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_WITH([sysvrcd-path],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [AS_HELP_STRING([--with-sysvrcd-path=PATH],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [SYSTEM_SYSVRCND_PATH="$withval"],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
d64b723a9e275ee4c6ccb947e3fd6ed6b3e4c359Lennart PoetteringAC_SUBST(SYSTEM_SYSVRCND_PATH)
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_SUBST(M4_DEFINES)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio SYSTEM_SYSV_COMPAT="yes"
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncioelse
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio SYSTEM_SYSV_COMPAT="no"
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidênciofi
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAC_ARG_WITH([tty-gid],
a05ea46dc788929bc8b13afb4208ca29cad68572Michael Biebl [AS_HELP_STRING([--with-tty-gid=GID],
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering [Specify the numeric GID of the 'tty' group])],
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering [])
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew EdmundsAM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew EdmundsAM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
d7c114c00030309435fc56c77c8578a25d228ebeDave ReisnerAM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian HenzeAM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddAM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
f5c88ec1330b61787441156de7d764a140774bd2Miklos VajnaAM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
a338bab5d0603a179befce062bc6fc8a6521a232Alexey ShabalinAM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
1de4d79bf554946f486adf56ed765c5335816f15Andrey BorzenkovAM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen KooiAM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter MorganAM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
cd3f8b7ddb052ab5e4eab420968bae689db3899aJeff Mahoney
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbuspolicydir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbussystemservicedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_WITH([dbusinterfacedir],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_ARG_WITH([rootprefix],
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
39ad55a9aa99451f982628af6e14581092b2d2f6Kay Sievers [], [with_rootprefix=${ac_default_prefix}])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_ARG_WITH([rootlibdir],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [with_rootlibdir=${libdir}])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_ARG_WITH([pamlibdir],
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [],
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [with_pamlibdir=${with_rootlibdir}/security])
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_ENABLE([split-usr],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--enable-split-usr], [Assume that /bin, /sbin aren\'t symlinks into /usr]),
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [AS_IF([test "x${ac_default_prefix}" != "x${with_rootprefix}"], [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny enable_split_usr=yes
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny ], [
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny enable_split_usr=no
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny ])])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAS_IF([test "x${enable_split_usr}" = "xyes"], [
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering AC_DEFINE(HAVE_SPLIT_USR, 1, [Define if /bin, /sbin aren't symlinks into /usr])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny])
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_SUBST([pamlibdir], [$with_pamlibdir])
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_SUBST([rootprefix], [$with_rootprefix])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_SUBST([rootlibdir], [$with_rootlibdir])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAC_CONFIG_FILES([
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers Makefile po/Makefile.in
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/libudev/Makefile
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/libudev/version.xml
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/gudev/Makefile
bb061708d5aa83579f213bdfb67253f7027217c3Kay Sievers docs/gudev/version.xml
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers])
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
a45a909fbbe11ad8c75cda5639d875476ac65453Christian RuppertAC_OUTPUT
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_MSG_RESULT([
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $PACKAGE_NAME $VERSION
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering Distribution: ${with_distro}
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio SysV compatibility: ${SYSTEM_SYSV_COMPAT}
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering libcryptsetup: ${have_libcryptsetup}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering tcpwrap: ${have_tcpwrap}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering PAM: ${have_pam}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AUDIT: ${have_audit}
816115863962548a9a0d9fbfe429c7f8e685beacRoberto Sassu IMA: ${have_ima}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering SELinux: ${have_selinux}
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering XZ: ${have_xz}
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering ACL: ${have_acl}
7560fffcd2531786b9c1ca657667a43e90331326Lennart Poettering GCRYPT: ${have_gcrypt}
f6a971bc0bf1252e9614919ccca0d53db5fc53d9Lennart Poettering QRENCODE: ${have_qrencode}
7b17a7d72f5ba5ad838b19803534c56a46f3bce9Lennart Poettering MICROHTTPD: ${have_microhttpd}
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna binfmt: ${have_binfmt}
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering vconsole: ${have_vconsole}
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering readahead: ${have_readahead}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering quotacheck: ${have_quotacheck}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering randomseed: ${have_randomseed}
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers logind: ${have_logind}
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna hostnamed: ${have_hostnamed}
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna timedated: ${have_timedated}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna localed: ${have_localed}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering coredump: ${have_coredump}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers firmware path: ${FIRMWARE_PATH}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers usb.ids: ${USB_DATABASE}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers pci.ids: ${PCI_DATABASE}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers gudev: ${enable_gudev}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers gintrospection: ${enable_introspection}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers keymap: ${enable_keymap}
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering Python: ${have_python}
8d7e170a5230753d8406276f8b5598e5bb6766e6Lennart Poettering Python Headers: ${have_python_devel}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering prefix: ${prefix}
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers rootprefix: ${with_rootprefix}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers sysconf dir: ${sysconfdir}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers datarootdir: ${datarootdir}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers includedir: ${includedir}
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers include_prefix: ${INCLUDE_PREFIX}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers lib dir: ${libdir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers rootlib dir: ${with_rootlibdir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering PAM modules dir: ${with_pamlibdir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus policy dir: ${with_dbuspolicydir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus session dir: ${with_dbussessionservicedir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus system dir: ${with_dbussystemservicedir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering D-Bus interfaces dir: ${with_dbusinterfacedir}
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny Split /usr: ${enable_split_usr}
5ee9f21e86bb6a06d3eb956546f85338e81395e6Lennart Poettering man pages: ${have_manpages}
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek gtk-doc: ${enable_gtk_doc}
66be6554807773028a0111addb8e75c3cab11117Kay Sievers
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering CPPLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
5a45a93627609451784a04366cfa1150d32611d1Lennart Poettering LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers])