configure.ac revision f8b5d99408e016ecb3d9bcffcee8c65ef6bc26f6
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This file is part of systemd.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 2010-2012 Lennart Poettering
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 2010-2012 Kay Sievers
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is free software; you can redistribute it and/or modify it
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# under the terms of the GNU Lesser General Public License as published by
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# the Free Software Foundation; either version 2.1 of the License, or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# (at your option) any later version.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# systemd is distributed in the hope that it will be useful, but
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# WITHOUT ANY WARRANTY; without even the implied warranty of
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Lesser General Public License for more details.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart 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/>.
6f890469f4329900a88459d9bf43d36837f61808Lennart PoetteringAC_PREREQ([2.64])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_INIT([systemd],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [http://bugs.freedesktop.org/enter_bug.cgi?product=systemd],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [http://www.freedesktop.org/wiki/Software/systemd])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_SRCDIR([src/core/main.c])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_MACRO_DIR([m4])
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart PoetteringAC_CONFIG_HEADERS([config.h])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CONFIG_AUX_DIR([build-aux])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_USE_SYSTEM_EXTENSIONS
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_SYS_LARGEFILE
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_PREFIX_DEFAULT([/usr])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_MAINTAINER_MODE([enable])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax no-dist-gzip dist-xz subdir-objects])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAM_SILENT_RULES([yes])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CANONICAL_HOST
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart PoetteringAS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringLT_INIT([disable-static])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by systemd])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by systemd])])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# i18n stuff for the PolicyKit policy files
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringIT_PROG_INTLTOOL([0.40.0])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringGETTEXT_PACKAGE=systemd
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_SUBST(GETTEXT_PACKAGE)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PROG_MKDIR_P
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([M4], [m4])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([XSLTPROC], [xsltproc])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([QUOTAON], [quotaon], [/usr/sbin/quotaon], [$PATH:/usr/sbin:/sbin])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([QUOTACHECK], [quotacheck], [/usr/sbin/quotacheck], [$PATH:/usr/sbin:/sbin])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([KILL], [kill], [/usr/bin/kill], [$PATH:/usr/sbin:/sbin])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([KMOD], [kmod], [/usr/bin/kmod], [$PATH:/usr/sbin:/sbin])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAC_PATH_PROG([KEXEC], [kexec], [/usr/sbin/kexec], [$PATH:/usr/sbin:/sbin])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_IF([! ln --relative --help > /dev/null 2>&1], [AC_MSG_ERROR([*** ln doesn't support --relative ***])])
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering# gtkdocize greps for '^GTK_DOC_CHECK', so it needs to be on its own line
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringm4_ifdef([GTK_DOC_CHECK], [
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart PoetteringGTK_DOC_CHECK([1.18],[--flavour no-tmpl])],
8745297f9853c4a17bac69e1b7e652fe81bc1940Lennart Poettering [AM_CONDITIONAL([ENABLE_GTK_DOC], [false])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering enable_gtk_doc=no])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAS_IF([test "x$enable_gtk_doc" = "xyes" -a "x$XSLTPROC" = x], [
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_MSG_ERROR([*** GTK doc requested but xsltproc not found])
139be57d9441b5c890e1e4ee69e15aad03276fdeLennart Poetteringm4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
139be57d9441b5c890e1e4ee69e15aad03276fdeLennart PoetteringGOBJECT_INTROSPECTION_CHECK([1.31.1])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AM_CONDITIONAL([HAVE_INTROSPECTION], [false])
afea26ad7d406d8b6c95d2642cb5a1d807b87546Lennart Poettering enable_introspection=no])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_TOOL(STRINGS, strings)
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_CHECK_TOOL(GPERF, gperf)
b237ef2cfac7ab0b33170809e8cb64628606207dTollef Fog Heenif test -z "$GPERF" ; then
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer AC_MSG_ERROR([*** gperf not found])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# ------------------------------------------------------------------------------
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poetteringaddress_sanitizer_cflags=
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poetteringaddress_sanitizer_cppflags=
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poetteringaddress_sanitizer_ldflags=
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAC_ARG_ENABLE(address-sanitizer, AS_HELP_STRING([--enable-address-sanitizer], [enable -fsanitize=address]))
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringAS_IF([test "x$enable_address_sanitizer" = "xyes"], [
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering CC_CHECK_FLAG_APPEND([with_as_cflags], [CFLAGS], [-fsanitize=address])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering AS_IF([test -z "$with_as_cflags"],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [AC_MSG_ERROR([*** -fsanitize=address is not supported])])
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering address_sanitizer_cflags="$with_as_cflags -fno-omit-frame-pointer -DVALGRIND=1"
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering address_sanitizer_cppflags="-DVALGRIND=1"
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh address_sanitizer_ldflags="-Wc,-fsanitize=address"
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshundefined_sanitizer_cflags=
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshundefined_sanitizer_cppflags=
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walshundefined_sanitizer_ldflags=
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshAC_ARG_ENABLE(undefined-sanitizer, AS_HELP_STRING([--enable-undefined-sanitizer], [enable -fsanitize=undefined]))
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J WalshAS_IF([test "x$enable_undefined_sanitizer" = "xyes"], [
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh CC_CHECK_FLAG_APPEND([with_us_cflags], [CFLAGS], [-fsanitize=undefined])
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh AS_IF([test -z "$with_us_cflags"],
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh [AC_MSG_ERROR([*** -fsanitize=undefined is not supported])])
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh undefined_sanitizer_cflags="$with_us_cflags -fno-omit-frame-pointer -DVALGRIND=1"
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh undefined_sanitizer_cppflags="-DVALGRIND=1"
56cf987fe74270bde4e16c7ec9e0414a9030723bDaniel J Walsh undefined_sanitizer_ldflags="-Wc,-fsanitize=undefined"
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringsanitizer_cflags="$address_sanitizer_cflags $undefined_sanitizer_cflags"
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringsanitizer_cppflags="$address_sanitizer_cppflags $undefined_sanitizer_cppflags"
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poetteringsanitizer_ldflags="$address_sanitizer_ldflags $undefined_sanitizer_ldflags"
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringCC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering -Wlogical-op \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wsign-compare \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wmissing-include-dirs \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering -Wold-style-definition \
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering -Wpointer-arith \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wdeclaration-after-statement \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering -Wfloat-equal \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering -Wsuggest-attribute=noreturn \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wmissing-prototypes \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering -Wstrict-prototypes \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering -Wredundant-decls \
0213c3f8102bdc934c629d11a44ca0b408762287Lennart Poettering -Wmissing-declarations \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wmissing-noreturn \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wendif-labels \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wstrict-aliasing=2 \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wwrite-strings \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wno-long-long \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wno-overlength-strings \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wno-unused-parameter \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wno-missing-field-initializers \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wno-unused-result \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Werror=overflow \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wnested-externs \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fdiagnostics-show-option \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fdiagnostics-color \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fno-strict-aliasing \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fvisibility=hidden \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -ffunction-sections \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fdata-sections \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fstack-protector \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -fstack-protector-strong \
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering --param=ssp-buffer-size=4])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -flto -ffat-lto-objects])],
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart Poettering [AC_MSG_RESULT([skipping -flto, optimization not enabled])])
812cce323db081634f37e4ec6d29f2b9328a3f52Lennart PoetteringAC_SUBST([OUR_CFLAGS], "$with_cflags $sanitizer_cflags")
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAS_CASE([$CFLAGS], [*-O[[12345\ ]]*],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [CC_CHECK_FLAGS_APPEND([with_cppflags], [CPPFLAGS], [\
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering -Wp,-D_FORTIFY_SOURCE=2])],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [AC_MSG_RESULT([skipping -D_FORTIFY_SOURCE, optimization not enabled])])
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart PoetteringAC_SUBST([OUR_CPPFLAGS], "$with_cppflags $sanitizer_cppflags")
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringCC_CHECK_FLAGS_APPEND([with_ldflags], [LDFLAGS], [\
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering -Wl,--as-needed \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering -Wl,--no-undefined \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering -Wl,--gc-sections \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering -Wl,-z,relro \
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering -Wl,-fuse-ld=gold])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_SUBST([OUR_LDFLAGS], "$with_ldflags $sanitizer_ldflags")
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_CHECK_SIZEOF(pid_t)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_CHECK_SIZEOF(uid_t)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_CHECK_SIZEOF(gid_t)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_CHECK_SIZEOF(time_t)
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_CHECK_SIZEOF(rlim_t,,[
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# ------------------------------------------------------------------------------
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering# we use python to build the man page index, and for systemd-python
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAC_ARG_WITH([python],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [AS_HELP_STRING([--without-python], [Disable building the man page index and systemd-python (default: test)])])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAS_IF([test "x$with_python" != "xno"], [
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AM_PATH_PYTHON(,, [:])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AS_IF(["$PYTHON" -c 'import lxml' 2>/dev/null], [have_lxml=yes], [have_lxml=no])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering AS_IF([test "$PYTHON" != : -a $have_lxml = yes], [have_python=yes])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAM_CONDITIONAL([HAVE_PYTHON], [test "x$have_python" = "xyes"])
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart PoetteringAS_IF([test "x$PYTHON_BINARY" = "x"],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [AS_IF([test "x$have_python" = "xyes"],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [PYTHON_BINARY="$(which "$PYTHON")"],
4927fcae48de061393b3ce9c12d49f80d73fbf1dLennart Poettering [PYTHON_BINARY=/usr/bin/python])])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_ARG_VAR(PYTHON_BINARY, [Python binary used to launch installed scripts])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAS_IF([test "x$have_python" != "xyes" -a "x$enable_python_devel" = "xyes"],
efb3237ee69bc593b11bc828791ee48ba6cc4f5cLennart Poettering [AC_MSG_ERROR([*** python-devel support requires --with-python])])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremerhave_python_devel=no
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_ARG_ENABLE(python_devel, AS_HELP_STRING([--disable-python-devel], [Do not build python modules]))
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAS_IF([test "x$have_python" = "xyes" -a "x$enable_python_devel" != "xno"], [
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}],
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer [have_python_devel=yes],
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer [PKG_CHECK_MODULES([PYTHON_DEVEL], [python],
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer [have_python_devel=yes],
a9b5b03212f9c854938483b8901e433c2ba6619bMichael Tremer [have_python_devel=no])])
d3d91d10c9ca3782c5936c630e87730e3bf9c32dLennart Poettering AS_IF([test "x$have_python_devel" = xno -a "x$enable_python_devel" = xyes],
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering [AC_MSG_ERROR([*** python-devel support requested but libraries not found])])
42e39f0b326d27f6392a81a7400f9af7cf0af3abLennart Poettering AC_PATH_PROGS(SPHINX_BUILD, sphinx-build-${PYTHON_VERSION} sphinx-build)
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringAM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test "$have_python_devel" = "yes"])
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# ------------------------------------------------------------------------------
5e6afdd3d359fc42de7ac432243e98673577e81fLennart PoetteringAC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
9f2c5942e1e10099027f0da438aafdd9f40440baLennart PoetteringAC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_CHECK_HEADERS([linux/btrfs.h], [], [])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# unconditionally pull-in librt with old glibc versions
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_SEARCH_LIBS([clock_gettime], [rt], [], [])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringsave_LIBS="$LIBS"
d7c114c00030309435fc56c77c8578a25d228ebeDave ReisnerAC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian HenzeCAP_LIBS="$LIBS"
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddAC_SUBST(CAP_LIBS)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_SEARCH_LIBS([mq_open], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringRT_LIBS="$LIBS"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_SUBST(RT_LIBS)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringLIBS="$save_LIBS"
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_CHECK_FUNCS([fanotify_init fanotify_mark])
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringAC_CHECK_FUNCS([__secure_getenv secure_getenv])
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringAC_CHECK_DECLS([gettid, pivot_root, name_to_handle_at, setns, LO_FLAGS_PARTSCAN], [], [], [[#include <sys/types.h>
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# This makes sure pkg.m4 is available.
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringm4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringAC_ARG_ENABLE(dbus, AS_HELP_STRING([--disable-dbus], [disable usage of dbus-1 in tests]))
34eff652cedec3cac34b92629ead5f140334b689Lennart PoetteringAS_IF([test "x$enable_dbus" != "xno"], [
34eff652cedec3cac34b92629ead5f140334b689Lennart Poettering PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.3.2],
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering [AC_DEFINE(HAVE_DBUS, 1, [Define if dbus-1 library is available]) have_dbus=yes],
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering [have_dbus=no])
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering AS_IF([test "x$have_dbus" = "xno" -a "x$enable_dbus" = "xyes"],
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering [AC_MSG_ERROR([*** dbus-1 support requested but libraries not found])])])
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart PoetteringAM_CONDITIONAL(HAVE_DBUS, [test "$have_dbus" = "yes"])
83bda35801aa3d7ed180ec374a4bcdfe9dc1a8e4Lennart Poettering# ------------------------------------------------------------------------------
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poetteringhave_compat_libs=no
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart PoetteringAC_ARG_ENABLE([compat_libs], AS_HELP_STRING([--enable-compat-libs],[Enable creation of compatibility libraries]),
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering [case "${enableval}" in
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering yes) have_compat_libs=yes ;;
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering no) have_compat_libs=no ;;
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --enable-compat-libs) ;;
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering [have_compat_libs=no])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL([ENABLE_COMPAT_LIBS], [test "$have_compat_libs" = "yes"])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poetteringhave_coverage=no
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart PoetteringAC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage]))
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poetteringif test "x$enable_coverage" = "xyes" ; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_CHECK_PROG(lcov_found, [lcov], [yes], [no])
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner if test "x$lcov_found" = xno ; then
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner AC_MSG_ERROR([*** lcov support requested but the program was not found])
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`"
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`"
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner AC_MSG_ERROR([*** lcov version is too old. 1.10 required])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio have_coverage=yes
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio CC_CHECK_FLAGS_APPEND([with_coverage_cflags], [CFLAGS], [\
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poettering -fprofile-arcs \
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze -ftest-coverage])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering AC_SUBST([OUR_CFLAGS], "$with_cflags $with_coverage_cflags")
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm StuddAM_CONDITIONAL(ENABLE_COVERAGE, [test "$have_coverage" = "yes"])
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering# ------------------------------------------------------------------------------
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog HeenAC_ARG_ENABLE(kmod, AS_HELP_STRING([--disable-kmod], [disable loadable modules support]))
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenif test "x$enable_kmod" != "xno"; then
b6c2bf61c5de1bb0c4996b0be016d55877d9688cLennart Poettering PKG_CHECK_EXISTS([ libkmod ], have_kmod=yes, have_kmod=no)
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "x$have_kmod" = "xyes"; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering PKG_CHECK_MODULES(KMOD, [ libkmod >= 15 ],
bf024b022d9f53d2bb8d26107b4878cede3167b7Tollef Fog Heen [AC_DEFINE(HAVE_KMOD, 1, [Define if kmod is available])],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_MSG_ERROR([*** kmod version >= 15 not found]))
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "x$have_kmod" = xno -a "x$enable_kmod" = xyes; then
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen AC_MSG_ERROR([*** kmod support requested, but libraries not found])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAM_CONDITIONAL(HAVE_KMOD, [test "$have_kmod" = "yes"])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen# ------------------------------------------------------------------------------
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog HeenAC_ARG_ENABLE(blkid, AS_HELP_STRING([--disable-blkid], [disable blkid support]))
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heenif test "x$enable_blkid" != "xno"; then
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen PKG_CHECK_MODULES(BLKID, [ blkid >= 2.20 ],
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen [AC_DEFINE(HAVE_BLKID, 1, [Define if blkid is available]) have_blkid=yes], have_blkid=no)
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen if test "x$have_blkid" = xno -a "x$enable_blkid" = xyes; then
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen AC_MSG_ERROR([*** blkid support requested but libraries not found])
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart PoetteringAM_CONDITIONAL(HAVE_BLKID, [test "$have_blkid" = "yes"])
136337ff74f05be3d42a769d9f0cb99716c5c40fTollef Fog Heen# ------------------------------------------------------------------------------
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poetteringhave_seccomp=no
d64b723a9e275ee4c6ccb947e3fd6ed6b3e4c359Lennart PoetteringAC_ARG_ENABLE(seccomp, AS_HELP_STRING([--disable-seccomp], [Disable optional SECCOMP support]))
a7b6f8e578724c3b4f0cfc8777d9b4a8e29207b0Lennart Poetteringif test "x$enable_seccomp" != "xno"; then
12e84679cc81cdf5f042540e54131a0ce37147adLennart Poettering PKG_CHECK_MODULES(SECCOMP, [libseccomp >= 1.0.0],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering [AC_DEFINE(HAVE_SECCOMP, 1, [Define if seccomp is available])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio have_seccomp=yes
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio M4_DEFINES="$M4_DEFINES -DHAVE_SECCOMP"],
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio [have_seccomp=no])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio if test "x$have_seccomp" = "xno" -a "x$enable_seccomp" = "xyes"; then
07459bb6b92268beb2599f65cf195708d88c51ccFabiano Fidêncio AC_MSG_ERROR([*** seccomp support requested but libraries not found])
07459bb6b92268beb2599f65cf195708d88c51ccFabiano FidêncioAM_CONDITIONAL(HAVE_SECCOMP, [test "$have_seccomp" = "yes"])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering# ------------------------------------------------------------------------------
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAC_ARG_ENABLE([ima], AS_HELP_STRING([--disable-ima],[Disable optional IMA support]),
d7c114c00030309435fc56c77c8578a25d228ebeDave Reisner [case "${enableval}" in
f2b4af1cd4112df6ce56f8fc1e677639935e3d0eFabian Henze yes) have_ima=yes ;;
65c8976ab12f13fc339a16d108e620bf2fd703f4Malcolm Studd no) have_ima=no ;;
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-ima) ;;
2c696a96a2bd63d2ff0d5595622124ef9270b172Lennart Poettering [have_ima=yes])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringif test "x${have_ima}" != xno ; then
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AC_DEFINE(HAVE_IMA, 1, [Define if IMA is available])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering# ------------------------------------------------------------------------------
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringhave_chkconfig=yes
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAC_ARG_ENABLE([chkconfig], AS_HELP_STRING([--disable-chkconfig],[Disable optional chkconfig support]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [case "${enableval}" in
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering yes) have_chkconfig=yes ;;
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering no) have_chkconfig=no ;;
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering *) AC_MSG_ERROR(bad value ${enableval} for --disable-chkconfig) ;;
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [AC_PATH_PROG(CHKCONFIG, chkconfig)
d122948d6fbaac4505cf14a08f1237daa89efdd0Lennart Poettering if test -z "$CHKCONFIG"; then
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering have_chkconfig=no
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering have_chkconfig=yes
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringif test "x${have_chkconfig}" != xno ; then
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering AC_DEFINE(HAVE_CHKCONFIG, 1, [Define if CHKCONFIG is available])
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering# ------------------------------------------------------------------------------
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poetteringhave_selinux=no
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poetteringif test "x$enable_selinux" != "xno"; then
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart Poettering PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.1.9],
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering have_selinux=yes
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_SELINUX"],
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering [have_selinux=no])
a6baa3f681fad58555e28c50589595d98ec81a23Lennart Poettering if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AC_MSG_ERROR([*** SELinux support requested but libraries not found])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart PoetteringAM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poetteringhave_apparmor=no
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_ARG_ENABLE(apparmor, AS_HELP_STRING([--disable-apparmor], [Disable optional AppArmor support]))
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poetteringif test "x$enable_apparmor" != "xno"; then
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart Poettering PKG_CHECK_MODULES([APPARMOR], [libapparmor],
a45a909fbbe11ad8c75cda5639d875476ac65453Christian Ruppert [AC_DEFINE(HAVE_APPARMOR, 1, [Define if AppArmor is available])
a45a909fbbe11ad8c75cda5639d875476ac65453Christian Ruppert have_apparmor=yes
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering M4_DEFINES="$M4_DEFINES -DHAVE_APPARMOR"],
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering [have_apparmor=no])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering if test "x$have_apparmor" = xno -a "x$enable_apparmor" = xyes; then
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart Poettering AC_MSG_ERROR([*** AppArmor support requested but libraries not found])
0571e0111d76cf96aa4069d9c7a6e24d97aa7e48Lennart PoetteringAM_CONDITIONAL(HAVE_APPARMOR, [test "$have_apparmor" = "yes"])
a9b5b03212f9c854938483b8901e433c2ba6619bMichael TremerAC_ARG_WITH(debug-shell,
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering AS_HELP_STRING([--with-debug-shell=PATH],
5b6319dceedd81f3f1ce7eb70ea5defaef43bcecLennart Poettering [Path to debug shell binary]),
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering [SUSHELL="$withval"],[
1271623839b5bb4f0f383a8ad5500462dda0a94aLennart Poettering AS_IF([test "x${have_selinux}" != "xno"], [SUSHELL="/sbin/sushell"] , [SUSHELL="/bin/sh"])])
8c4a3079a7f358c179430d1aec59de8b670b5f6eLennart PoetteringAC_SUBST(SUSHELL)
8c6db8336536916d0476ff8233e0abf40a2f6aabLennart PoetteringAC_ARG_WITH([debug-tty],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering AS_HELP_STRING([--with-debug-tty=PATH],
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [Specify the tty device for debug shell]),
d2d12cd1bfd90f3a13273d82331a7cbd36a93231Lennart Poettering [DEBUGTTY="$withval"],
[libaudit.h],
AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
[AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
[AC_DEFINE(HAVE_QRENCODE, 1, [Define if qrencode is available]) have_qrencode=yes], have_qrencode=no)
[AC_DEFINE(HAVE_MICROHTTPD, 1, [Define if microhttpd is available]) have_microhttpd=yes], have_microhttpd=no)
AS_IF([test "$have_machined" = "yes"], [ AC_DEFINE(HAVE_MACHINED, [1], [Machined support available]) ])
[TIME_EPOCH="`stat -c %Y ${srcdir}/NEWS 2>/dev/null || echo 0`"])
[SYSTEM_UID_MAX="`awk 'BEGIN { uid=999 } /^\s*SYS_UID_MAX\s+/ { uid=$2 } END { print uid }' /etc/login.defs 2>/dev/null || echo 999`"])
[SYSTEM_GID_MAX="`awk 'BEGIN { gid=999 } /^\s*SYS_GID_MAX\s+/ { gid=$2 } END { print gid }' /etc/login.defs 2>/dev/null || echo 999`"])
[Path to /etc/rc.local]),
[RC_LOCAL_SCRIPT_PATH_START="/etc/rc.local"])
[Path to /usr/sbin/halt.local]),
[RC_LOCAL_SCRIPT_PATH_STOP="/usr/sbin/halt.local"])
AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_START, ["$RC_LOCAL_SCRIPT_PATH_START"], [Path of /etc/rc.local script])
AC_DEFINE_UNQUOTED(RC_LOCAL_SCRIPT_PATH_STOP, ["$RC_LOCAL_SCRIPT_PATH_STOP"], [Path of /usr/sbin/halt.local script])
[KBD_LOADKEYS="/usr/bin/loadkeys"])
[KBD_SETFONT="/usr/bin/setfont"])
[TELINIT="/lib/sysvinit/telinit"])
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h nss.h sys/ioctl.h sys/auxv.h])
AC_CHECK_FUNCS([gethostbyaddr gethostbyname gettimeofday inet_ntoa memset select socket strcspn strdup strerror strncasecmp strcasecmp strspn])
AS_IF([test "x${FIRMWARE_PATH}" != "x"], [ AC_DEFINE(HAVE_FIRMWARE, 1, [Define if FIRMWARE is available]) ])
AS_IF([test "x$enable_gudev" = "xyes"], [ PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.22.0 gobject-2.0 >= 2.22.0 gio-2.0]) ])
SYSTEM_SYSVINIT_PATH=/etc/init.d
SYSTEM_SYSVRCND_PATH=/etc/rc.d
[Specify the path to the base directory for the SysV rcN.d directories])],
AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
AC_MSG_ERROR([*** You need both --with-sysvinit-path=PATH and --with-sysvrcnd-path=PATH to enable SysV compatibility support, or both empty to disable it.])
[with_dbuspolicydir=$($PKG_CONFIG --variable=sysconfdir dbus-1)/dbus-1/system.d])
[with_dbussystemservicedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../system-services)])
[with_dbusinterfacedir=$(readlink -m $($PKG_CONFIG --variable=session_bus_services_dir dbus-1)/../interfaces)])
with_bashcompletiondir=${datadir}/bash-completion/completions
[], [with_zshcompletiondir=${datadir}/zsh/site-functions])
AS_HELP_STRING([--with-rootprefix=DIR], [rootfs directory prefix for config files and kernel modules]),
[with_pamconfdir=${sysconfdir}/pam.d])
AM_CONDITIONAL([ENABLE_GTK_DOC_TESTS], [test "x$0" = "x./configure"],
AS_IF([test "x$0" != "x./configure"], [
AC_SUBST([INTLTOOL_UPDATE], [/bin/true])
Makefile po/Makefile.in