configure.ac revision d200735e13c52dcfe36c0e066f9f6c2fbfb85a9c
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 2010 Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# under the terms of the GNU General Public License as published by
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# the Free Software Foundation; either version 2 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
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# General Public License for more details.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# You should have received a copy of the GNU General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# along with systemd; If not, see <http://www.gnu.org/licenses/>.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PREREQ(2.63)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
b13df9644bc6d4823b5a84e8a6bbf3bbb2c207c2Lennart PoetteringAC_INIT([systemd],[38],[systemd-devel@lists.freedesktop.org])
e99e38bbdcca3fe5956823bdb3d38544ccf93221Lennart PoetteringAC_CONFIG_SRCDIR([src/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_HEADERS([config.h])
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])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
1b322bdb2a147e999c3861cba8a6b3ac0f3b712aTollef Fog HeenAC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
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
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAC_CHECK_PROG([STOW], [stow], [yes], [no])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien NoceraAS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering# i18n stuff for the PolicyKit policy files
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringIT_PROG_INTLTOOL([0.40.0])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringGETTEXT_PACKAGE=systemd
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SUBST(GETTEXT_PACKAGE)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_MKDIR_P
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_LN_S
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PROG_SED
9a60da2834074d970ca063c210fe9d2f05c70532Thierry RedingAC_PROG_AWK
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_PROG_CC
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblAC_PROG_CC_C99
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblAM_PROG_CC_C_O
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael BieblAC_PROG_GCC_TRADITIONAL
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Reding
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_TOOL(OBJCOPY, objcopy)
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringAC_CHECK_TOOL(STRINGS, strings)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_TOOL(GPERF, gperf)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringif test -z "$GPERF" ; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_ERROR([*** gperf not found])
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart Poetteringfi
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringCC_CHECK_CFLAGS_APPEND([ \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -pipe \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wall \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -W \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wextra \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-inline \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wvla \
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 \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wmissing-declarations \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wmissing-noreturn \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wshadow \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wendif-labels \
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering -Wcast-align \
d200735e13c52dcfe36c0e066f9f6c2fbfb85a9cMichal Schmidt -Wstrict-aliasing=2 \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wwrite-strings \
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering -Wno-long-long \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-overlength-strings \
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering -Wno-unused-parameter \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wno-missing-field-initializers \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wno-unused-result \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Werror=overflow \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -Wp,-D_FORTIFY_SOURCE=2 \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -ffast-math \
9b85fc6a89386582bfe792dba881800b0a093839Gustavo Sverzut Barbieri -fno-common \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -fdiagnostics-show-option \
139be57d9441b5c890e1e4ee69e15aad03276fdeLennart Poettering -fno-strict-aliasing \
139be57d9441b5c890e1e4ee69e15aad03276fdeLennart Poettering -fvisibility=hidden \
139be57d9441b5c890e1e4ee69e15aad03276fdeLennart Poettering -ffunction-sections \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering -fdata-sections \
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poettering -Wl,--as-needed \
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl -Wl,--gc-sections])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblLT_PREREQ(2.2)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringLT_INIT
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael BieblAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
85f19d825e7504676f3a80c78c1d9a7ec35a3b3fMichael Biebl
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poetteringsave_LIBS="$LIBS"
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog HeenLIBS=
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
309c2a2ce95aae54879b4957d113f03608530c15Lennart PoetteringCAP_LIBS="$LIBS"
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringLIBS="$save_LIBS"
728beb28a713709f521d374c9f8f3da781969d26Tom GundersenAC_SUBST(CAP_LIBS)
728beb28a713709f521d374c9f8f3da781969d26Tom Gundersen
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering# This makes sure pkg.m4 is available.
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poetteringm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringPKG_CHECK_MODULES(UDEV, [ libudev >= 172 ])
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_SUBST(UDEV_CFLAGS)
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_SUBST(UDEV_LIBS)
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringPKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshAC_SUBST(DBUS_CFLAGS)
591622d7efbc828f00f190d91b6608148b967ff5Lennart PoetteringAC_SUBST(DBUS_LIBS)
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringhave_selinux=no
807e17f05e217b474af39503efb9503d81b12596Lennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringif test "x$enable_selinux" != "xno"; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering PKG_CHECK_MODULES(SELINUX, [ libselinux ],
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_SUBST(SELINUX_CFLAGS)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_SUBST(SELINUX_LIBS)
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering fi
807e17f05e217b474af39503efb9503d81b12596Lennart Poetteringfi
0213c3f8102bdc934c629d11a44ca0b408762287Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringhave_xz=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE(xz, AS_HELP_STRING([--disable-xz], [Disable optional XZ support]))
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x$enable_xz" != "xno"; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering PKG_CHECK_MODULES(XZ, [ liblzma ],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [AC_DEFINE(HAVE_XZ, 1, [Define if XZ is available]) have_xz=yes], have_xz=no)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AC_SUBST(XZ_CFLAGS)
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_SUBST(XZ_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering if test "x$have_xz" = xno -a "x$enable_xz" = xyes; then
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AC_MSG_ERROR([*** Xz support requested but libraries not found])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAM_CONDITIONAL(HAVE_XZ, [test "$have_xz" = "yes"])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart PoetteringAC_ARG_ENABLE([tcpwrap],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering yes) have_tcpwrap=yes ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering no) have_tcpwrap=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering esac],
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering [have_tcpwrap=auto])
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringif test "x${have_tcpwrap}" != xno ; then
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering ACX_LIBWRAP
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart 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.])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_tcpwrap=no
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering else
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering have_tcpwrap=yes
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering fi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringelse
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering LIBWRAP_LIBS=
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poetteringfi
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST(LIBWRAP_LIBS)
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_ARG_ENABLE([pam],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [case "${enableval}" in
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering yes) have_pam=yes ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering no) have_pam=no ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering 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],
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering [if test "x$have_pam" = xyes ; then
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart 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
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_MSG_ERROR([*** libpam not found.])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering if test "x$have_pam" = xyes ; then
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PAM_LIBS="-lpam -lpam_misc"
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AC_DEFINE(HAVE_PAM, 1, [PAM available])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering else
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering have_pam=no
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering fi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringelse
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering PAM_LIBS=
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poetteringfi
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_SUBST(PAM_LIBS)
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering
5eda94dda25bccda928c4b33c790dbe748573a22Lennart PoetteringAC_ARG_ENABLE([acl],
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering AS_HELP_STRING([--disable-acl],[Disable optional ACL support]),
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering [case "${enableval}" in
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering yes) have_acl=yes ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering no) have_acl=no ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-acl) ;;
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering 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
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_MSG_ERROR([*** libacl not found.])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering if test "x$have_acl" = xyes ; then
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering ACL_LIBS="-lacl"
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AC_DEFINE(HAVE_ACL, 1, [ACL available])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering else
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering have_acl=no
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering fi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringelse
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering ACL_LIBS=
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poetteringfi
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST(ACL_LIBS)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL([HAVE_ACL], [test "x$have_acl" != xno])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart 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],
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering [if test "x$have_audit" = xyes ; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AC_MSG_ERROR([*** libaudit not found.])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering fi])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering if test "x$have_audit" = xyes ; then
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering AUDIT_LIBS="-laudit"
591622d7efbc828f00f190d91b6608148b967ff5Lennart Poettering AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering else
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering have_audit=no
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering fi
7f4e08056de0184b205a20632e62db73d299937eLennart Poetteringelse
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna AUDIT_LIBS=
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnafi
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_SUBST(AUDIT_LIBS)
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnahave_libcryptsetup=no
27669061f40766457db93d5cc3dfe00dce240806Miklos VajnaAC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajnaif test "x$enable_libcryptsetup" != "xno"; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup ],
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_SUBST(LIBCRYPTSETUP_CFLAGS)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_SUBST(LIBCRYPTSETUP_LIBS)
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering fi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringfi
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringhave_binfmt=no
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart PoetteringAC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poetteringif test "x$enable_binfmt" != "xno"; then
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering have_binfmt=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringhave_vconsole=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(vconsole, AS_HELP_STRING([--disable-vconsole], [disable vconsole tool]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_vconsole" != "xno"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_vconsole=yes
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringfi
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAM_CONDITIONAL(ENABLE_VCONSOLE, [test "$have_vconsole" = "yes"])
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringhave_readahead=no
4de856120f252e7aa19c923c10fbf23310d623aaLennart PoetteringAC_ARG_ENABLE(readahead, AS_HELP_STRING([--disable-readahead], [disable readahead tools]))
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poetteringif test "x$enable_readahead" != "xno"; then
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering have_readahead=yes
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversfi
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAM_CONDITIONAL(ENABLE_READAHEAD, [test "$have_readahead" = "yes"])
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievershave_quotacheck=no
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay SieversAC_ARG_ENABLE(quotacheck, AS_HELP_STRING([--disable-quotacheck], [disable quotacheck tools]))
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sieversif test "x$enable_quotacheck" != "xno"; then
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers have_quotacheck=yes
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnafi
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAM_CONDITIONAL(ENABLE_QUOTACHECK, [test "$have_quotacheck" = "yes"])
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnahave_randomseed=no
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos VajnaAC_ARG_ENABLE(randomseed, AS_HELP_STRING([--disable-randomseed], [disable randomseed tools]))
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajnaif test "x$enable_randomseed" != "xno"; then
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna have_randomseed=yes
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnafi
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAM_CONDITIONAL(ENABLE_RANDOMSEED, [test "$have_randomseed" = "yes"])
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnahave_logind=no
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos VajnaAC_ARG_ENABLE(logind, AS_HELP_STRING([--disable-logind], [disable login daemon]))
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajnaif test "x$enable_logind" != "xno"; then
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna have_logind=yes
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnafi
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAM_CONDITIONAL(ENABLE_LOGIND, [test "$have_logind" = "yes"])
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnahave_hostnamed=no
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos VajnaAC_ARG_ENABLE(hostnamed, AS_HELP_STRING([--disable-hostnamed], [disable hostname daemon]))
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajnaif test "x$enable_hostnamed" != "xno"; then
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna have_hostnamed=yes
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringfi
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAM_CONDITIONAL(ENABLE_HOSTNAMED, [test "$have_hostnamed" = "yes"])
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringhave_timedated=no
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart PoetteringAC_ARG_ENABLE(timedated, AS_HELP_STRING([--disable-timedated], [disable timedate daemon]))
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poetteringif test "x$enable_timedated" != "xno"; then
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering have_timedated=yes
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poetteringfi
4c2b0e4e423fe73fafef10a5efa6fb778784cebcLennart PoetteringAM_CONDITIONAL(ENABLE_TIMEDATED, [test "$have_timedated" = "yes"])
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poetteringhave_localed=no
75db9a77605b33a1b9355eae957f26380441fce6Lennart PoetteringAC_ARG_ENABLE(localed, AS_HELP_STRING([--disable-localed], [disable locale daemon]))
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poetteringif test "x$enable_localed" != "xno"; then
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering have_localed=yes
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerfi
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAM_CONDITIONAL(ENABLE_LOCALED, [test "$have_localed" = "yes"])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer
11216eb0bd5aab6b14af004fd2f24d423e3d356dZbigniew Jędrzejewski-Szmekhave_coredump=no
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_ARG_ENABLE(coredump, AS_HELP_STRING([--disable-coredump], [disable coredump hook]))
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerif test "x$enable_coredump" != "xno"; then
26742b3fd8776c6c64e3c1035adc2599ddeb76d1Lennart Poettering have_coredump=yes
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerfi
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAM_CONDITIONAL(ENABLE_COREDUMP, [test "$have_coredump" = "yes"])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerhave_gtk=no
010e310f290928a0aec431af4d01ee09d29a031bGustavo Sverzut BarbieriAC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
ab85c225e0bf0ea432027715976cea00182f03c5Michael Bieblif test "x$enable_gtk" != "xno"; then
010e310f290928a0aec431af4d01ee09d29a031bGustavo Sverzut Barbieri PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 gee-1.0],
010e310f290928a0aec431af4d01ee09d29a031bGustavo Sverzut Barbieri [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
db040a61c5fdaf4879c27298825c632b04b37a86Kay Sievers AC_SUBST(GTK_CFLAGS)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AC_SUBST(GTK_LIBS)
42e39f0b326d27f6392a81a7400f9af7cf0af3abLennart Poettering if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AC_MSG_ERROR([*** gtk support requested but libraries not found])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering fi
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringfi
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
5e6afdd3d359fc42de7ac432243e98673577e81fLennart Poettering
5e6afdd3d359fc42de7ac432243e98673577e81fLennart Poetteringif test "$have_gtk" = "yes"; then
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_SUBST(LIBNOTIFY_CFLAGS)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_SUBST(LIBNOTIFY_LIBS)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringfi
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
8d7cb6e0686214a7f57387d5c66cbc667a7f4659Lucas De MarchiAM_PROG_VALAC([0.10])
8d7cb6e0686214a7f57387d5c66cbc667a7f4659Lucas De MarchiAC_SUBST(VAPIDIR)
8d7cb6e0686214a7f57387d5c66cbc667a7f4659Lucas De MarchiAM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
8d7cb6e0686214a7f57387d5c66cbc667a7f4659Lucas De Marchi
8d7cb6e0686214a7f57387d5c66cbc667a7f4659Lucas De MarchiAC_PATH_PROG([XSLTPROC], [xsltproc])
8d7cb6e0686214a7f57387d5c66cbc667a7f4659Lucas De MarchiAM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
8d7cb6e0686214a7f57387d5c66cbc667a7f4659Lucas De Marchi
a338bab5d0603a179befce062bc6fc8a6521a232Alexey ShabalinAC_PATH_PROG([M4], [m4])
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E FerronAC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux or other]))
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooiif test "z$with_distro" = "z"; then
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan if test "$cross_compiling" = yes; then
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds 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)])
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds else
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds test -f "/etc/redhat-release" && with_distro="fedora"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering test -f "/etc/SuSE-release" && with_distro="suse"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering test -f "/etc/debian_version" && with_distro="debian"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering test -f "/etc/arch-release" && with_distro="arch"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering test -f "/etc/gentoo-release" && with_distro="gentoo"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering test -f "/etc/slackware-version" && with_distro="slackware"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering test -f "/etc/frugalware-release" && with_distro="frugalware"
7d568925bda9797f611e36d1d00cd941701cb3c8Lennart Poettering test -f "/etc/altlinux-release" && with_distro="altlinux"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering test -f "/etc/mandriva-release" && with_distro="mandriva"
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering test -f "/etc/meego-release" && with_distro="meego"
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering test -f "/etc/angstrom-version" && with_distro="angstrom"
f1dd0c3f9b4a257e81ff9c6a08070c702a0db45aLennart Poettering test -f "/etc/mageia-release" && with_distro="mageia"
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering with_distro="ubuntu"
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt fi
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering fi
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "z$with_distro" = "z"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering with_distro=`uname -s`
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering fi
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poetteringfi
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poetteringwith_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry GebhardtAC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# Location of the init scripts as mandated by LSB
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringSYSTEM_SYSVINIT_PATH=/etc/init.d
634826b51b074b2e6d9314031bdd9abdcf862b54Pavol RusnakSYSTEM_SYSVRCND_PATH=/etc/rc.d
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry GebhardtM4_DEFINES=
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringhave_plymouth=no
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringcase $with_distro in
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds fedora)
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds M4_DEFINES=-DTARGET_FEDORA=1
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds have_plymouth=yes
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds ;;
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering suse)
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds SYSTEM_SYSVRCND_PATH=/etc/init.d
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner M4_DEFINES=-DTARGET_SUSE=1
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner have_plymouth=yes
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner ;;
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering debian)
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner SYSTEM_SYSVRCND_PATH=/etc
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio M4_DEFINES=-DTARGET_DEBIAN=1
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio ;;
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze ubuntu)
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd M4_DEFINES=-DTARGET_UBUNTU=1
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd ;;
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd arch)
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd SYSTEM_SYSVRCND_PATH=/etc
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna M4_DEFINES=-DTARGET_ARCH=1
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna ;;
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering gentoo)
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt SYSTEM_SYSVINIT_PATH=
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna SYSTEM_SYSVRCND_PATH=
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin M4_DEFINES=-DTARGET_GENTOO=1
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin ;;
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering slackware)
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
a338bab5d0603a179befce062bc6fc8a6521a232Alexey Shabalin AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov M4_DEFINES=-DTARGET_SLACKWARE=1
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov ;;
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov frugalware)
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkov M4_DEFINES=-DTARGET_FRUGALWARE=1
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron have_plymouth=yes
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron ;;
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron altlinux)
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron M4_DEFINES=-DTARGET_ALTLINUX=1
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi have_plymouth=yes
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi ;;
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi mandriva)
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooi AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan M4_DEFINES=-DTARGET_MANDRIVA=1
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan have_plymouth=yes
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan ;;
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan meego)
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan SYSTEM_SYSVINIT_PATH=
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan SYSTEM_SYSVRCND_PATH=
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog Heen AC_DEFINE(TARGET_MEEGO, [], [Target is MeeGo])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering M4_DEFINES=-DTARGET_MEEGO=1
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering ;;
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog Heen angstrom)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSVRCND_PATH=/etc
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering M4_DEFINES=-DTARGET_ANGSTROM=1
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen ;;
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen mageia)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen M4_DISTRO_FLAG=-DTARGET_MAGEIA=1
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen have_plymouth=yes
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen ;;
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen other)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen ;;
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen *)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef 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])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen ;;
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringesac
d64b723a9e275ee4c6ccb947e3fd6ed6b3e4c359Lennart Poettering
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart PoetteringAC_ARG_WITH([sysvinit-path],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering [AS_HELP_STRING([--with-sysvinit-path=PATH],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [SYSTEM_SYSVINIT_PATH="$withval"],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [])
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAC_ARG_WITH([sysvrcd-path],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [AS_HELP_STRING([--with-sysvrcd-path=PATH],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [SYSTEM_SYSVRCND_PATH="$withval"],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAC_SUBST(SYSTEM_SYSVINIT_PATH)
a05ea46dc788929bc8b13afb4208ca29cad68572Michael BieblAC_SUBST(SYSTEM_SYSVRCND_PATH)
bef2733fae665e880da6ea011b1f918e6900bb42Lennart PoetteringAC_SUBST(M4_DEFINES)
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poetteringif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
bef2733fae665e880da6ea011b1f918e6900bb42Lennart Poettering AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt SYSTEM_SYSV_COMPAT="yes"
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt M4_DEFINES="$M4_DEFINES -DHAVE_SYSV_COMPAT"
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardtelif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt 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.])
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardtelse
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SYSTEM_SYSV_COMPAT="no"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringfi
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew EdmundsAC_ARG_WITH([tty-gid],
858dae181bb5461201ac1c04732d3ef4c67a0256Andrew Edmunds [AS_HELP_STRING([--with-tty-gid=GID],
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner [Specify the numeric GID of the 'tty' group])],
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd [])
f5c88ec1330b61787441156de7d764a140774bd2Miklos Vajna
a338bab5d0603a179befce062bc6fc8a6521a232Alexey ShabalinAC_ARG_ENABLE(plymouth, AS_HELP_STRING([--enable-plymouth], [enable plymouth support]))
1de4d79bf554946f486adf56ed765c5335816f15Andrey Borzenkovif test -n "$enable_plymouth"; then
54e4fdef80693f7fd7893bd048bb4d9a258b03a6Chris E Ferron have_plymouth="$enable_plymouth"
1bd8b8184ee3bc7fc023d6d6dfb2ca99fb6612f3Koen Kooifi
6fdae8a6a40d6a3b5f77516abaee23b3eab002f6Dexter Morgan
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry GebhardtAM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
cca4aeeead1985f503d175eb1fcad9ed66f2e25dLennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
cd3f8b7ddb052ab5e4eab420968bae689db3899aJeff MahoneyAM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart PoetteringAM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart PoetteringAM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(HAVE_PLYMOUTH, test "$have_plymouth" = "yes")
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart 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])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart PoetteringAC_ARG_WITH([dbussessionservicedir],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl [],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_ARG_WITH([dbussystemservicedir],
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers [],
39ad55a9aa99451f982628af6e14581092b2d2f6Kay Sievers [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_ARG_WITH([dbusinterfacedir],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [],
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay SieversAC_ARG_WITH([udevrulesdir],
b0cca7d886583a10b9342796b4619eca4d582cb2Michael Biebl AS_HELP_STRING([--with-udevrulesdir=DIR], [Directory for udev rules]),
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [],
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers [with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
9d3203b4765e64300ab8e8d6d3d1b9ed0c514d5eKay Sievers
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH([rootprefix],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [], [with_rootprefix=${ac_default_prefix}])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH([rootlibdir],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny AS_HELP_STRING([--with-rootlibdir=DIR], [Root directory for libraries necessary for boot]),
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [],
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [with_rootlibdir=${libdir}])
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał GórnyAC_ARG_WITH([pamlibdir],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering AS_HELP_STRING([--with-pamlibdir=DIR], [Directory for PAM modules]),
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny [],
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering [with_pamlibdir=${with_rootlibdir}/security])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart 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([udevrulesdir], [$with_udevrulesdir])
b8079ae19b41c9b61850c796dddc601b826850e0Kay SieversAC_SUBST([pamlibdir], [$with_pamlibdir])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_SUBST([rootprefix], [$with_rootprefix])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart PoetteringAC_SUBST([rootlibdir], [$with_rootlibdir])
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera
a45a909fbbe11ad8c75cda5639d875476ac65453Christian RuppertAC_CONFIG_FILES([Makefile po/Makefile.in])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay SieversAC_OUTPUT
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_MSG_RESULT([
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering $PACKAGE_NAME $VERSION
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio Distribution: ${with_distro}
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SysV compatibility: ${SYSTEM_SYSV_COMPAT}
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
7f4e08056de0184b205a20632e62db73d299937eLennart Poettering Gtk: ${have_gtk}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering libcryptsetup: ${have_libcryptsetup}
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering tcpwrap: ${have_tcpwrap}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering PAM: ${have_pam}
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AUDIT: ${have_audit}
807e17f05e217b474af39503efb9503d81b12596Lennart Poettering SELinux: ${have_selinux}
5eda94dda25bccda928c4b33c790dbe748573a22Lennart Poettering XZ: ${have_xz}
27669061f40766457db93d5cc3dfe00dce240806Miklos Vajna ACL: ${have_acl}
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering binfmt: ${have_binfmt}
e5e83e8362e946890ac991fc86a2c5869f9befdfLennart Poettering vconsole: ${have_vconsole}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering readahead: ${have_readahead}
4de856120f252e7aa19c923c10fbf23310d623aaLennart Poettering quotacheck: ${have_quotacheck}
2a018e83ded29c9719b2478a65ee6245c829c0f5Kay Sievers randomseed: ${have_randomseed}
b2e9fb99ab288e8817302851743ed1a3cddd384bMiklos Vajna logind: ${have_logind}
f47cd184c0ff80e025428e9e385e61bda1ef3d69Miklos Vajna hostnamed: ${have_hostnamed}
4cd1eaa54507a65286413363216ad407fa7c6e50Miklos Vajna timedated: ${have_timedated}
f5e04665ebf7124f3ea17dcf258793ed73a95fe1Lennart Poettering localed: ${have_localed}
e05b415e950a548146c6f6dd799dc7d2b7d7892bHenry Gebhardt coredump: ${have_coredump}
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering plymouth: ${have_plymouth}
b8079ae19b41c9b61850c796dddc601b826850e0Kay Sievers prefix: ${prefix}
fbe224e2032cfbd9ea664a64c5254756ce5b5448Kay Sievers rootprefix: ${with_rootprefix}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers libexec dir: ${libexecdir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers lib dir: ${libdir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering rootlib dir: ${with_rootlibdir}
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers pam modules dir: ${with_pamlibdir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering udev rules dir: ${with_udevrulesdir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering dbus policy dir: ${with_dbuspolicydir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering dbus session dir: ${with_dbussessionservicedir}
2c6db6fb9b1a10184b086df0d23228c4c0205a49Lennart Poettering dbus system dir: ${with_dbussystemservicedir}
bc9bdbbab45ea2c10fdd8ad7c517b5e4a358bdfbMichał Górny dbus interfaces dir: ${with_dbusinterfacedir}
75db9a77605b33a1b9355eae957f26380441fce6Lennart Poettering])
ae446765eb0605d2451bb4dd7c336672bcc7ab0cKay Sievers