]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
build-sys: prep release 12
[thirdparty/systemd.git] / configure.ac
CommitLineData
47be870b
LP
1# This file is part of systemd.
2#
3# Copyright 2010 Lennart Poettering
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# systemd is distributed in the hope that it will be useful, but
11# WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13# General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18AC_PREREQ(2.63)
19
b6a7b089 20AC_INIT([systemd],[12],[systemd-devel@lists.freedesktop.org])
e99e38bb 21AC_CONFIG_SRCDIR([src/main.c])
47be870b
LP
22AC_CONFIG_MACRO_DIR([m4])
23AC_CONFIG_HEADERS([config.h])
24
b60e6bbf 25AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects dist-bzip2])
47be870b 26
1b322bdb 27AC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
47be870b
LP
28
29AC_CANONICAL_HOST
22be093f 30AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
47be870b
LP
31
32AM_SILENT_RULES([yes])
33
34AC_CHECK_PROG([STOW], [stow], [yes], [no])
35
36AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
37 AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
38 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
39])
40
e9da3678
LP
41AC_PROG_MKDIR_P
42AC_PROG_LN_S
43AC_PROG_SED
44
47be870b
LP
45AC_PROG_CC
46AC_PROG_CC_C99
47AM_PROG_CC_C_O
48AC_PROG_GCC_TRADITIONAL
49AC_USE_SYSTEM_EXTENSIONS
50
d1ab0ca0 51CC_CHECK_CFLAGS_APPEND([ \
be1a67d9 52 -pipe \
d1ab0ca0
LP
53 -Wall \
54 -W \
55 -Wextra \
27765dfc 56 -Wno-inline \
d1ab0ca0 57 -Wvla \
d1ab0ca0
LP
58 -Wundef \
59 -Wformat=2 \
60 -Wlogical-op \
61 -Wsign-compare \
62 -Wformat-security \
63 -Wmissing-include-dirs \
64 -Wformat-nonliteral \
65 -Wold-style-definition \
66 -Wpointer-arith \
67 -Winit-self \
68 -Wdeclaration-after-statement \
69 -Wfloat-equal \
70 -Wmissing-prototypes \
71 -Wstrict-prototypes \
72 -Wredundant-decls \
73 -Wmissing-declarations \
74 -Wmissing-noreturn \
75 -Wshadow \
76 -Wendif-labels \
77 -Wcast-align \
78 -Wstrict-aliasing=2 \
79 -Wwrite-strings \
be1a67d9
LP
80 -Wno-long-long \
81 -Wno-overlength-strings \
d1ab0ca0 82 -Wno-unused-parameter \
be1a67d9 83 -Wno-missing-field-initializers \
8745297f 84 -Wno-unused-result \
d1ab0ca0 85 -Wp,-D_FORTIFY_SOURCE=2 \
be1a67d9 86 -ffast-math \
d1ab0ca0
LP
87 -fno-common \
88 -fdiagnostics-show-option \
9b85fc6a
GSB
89 -fno-strict-aliasing \
90 -fvisibility=hidden \
91 -ffunction-sections \
92 -fdata-sections \
93 -Wl,--as-needed \
94 -Wl,--gc-sections])
47be870b 95
139be57d
LP
96LT_PREREQ(2.2)
97LT_INIT
98
47be870b 99AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
afea26ad 100AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
47be870b
LP
101AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
102AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
103
b237ef2c 104# This makes sure pkg.m4 is available.
a9b5b032 105m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca0 106
f1dfb629 107PKG_CHECK_MODULES(UDEV, [ libudev >= 160 ])
47be870b
LP
108AC_SUBST(UDEV_CFLAGS)
109AC_SUBST(UDEV_LIBS)
110
83bda358 111PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
47be870b
LP
112AC_SUBST(DBUS_CFLAGS)
113AC_SUBST(DBUS_LIBS)
114
56cf987f
DW
115have_selinux=no
116AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
117if test "x$enable_selinux" != "xno"; then
118 # not using PKG_CHECK_MODULES as for some reason libselinux didn't
119 # install any pkg-config modules here
120 AC_SEARCH_LIBS([getcon], [selinux],
121 [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELINUX is available]) have_selinux=yes],
122 have_selinux=no)
123 AC_SUBST(SELINUX_CFLAGS)
124 AC_SUBST(SELINUX_LIBS)
125 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
126 AC_MSG_ERROR([*** selinux support requested but libraries not found])
127 fi
128fi
129AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
130
0213c3f8
LP
131AC_ARG_ENABLE([tcpwrap],
132 AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
133 [case "${enableval}" in
5b6319dc
LP
134 yes) have_tcpwrap=yes ;;
135 no) have_tcpwrap=no ;;
0213c3f8
LP
136 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
137 esac],
5b6319dc 138 [have_tcpwrap=auto])
0213c3f8 139
5b6319dc 140if test "x${have_tcpwrap}" != xno ; then
0213c3f8
LP
141 ACX_LIBWRAP
142 if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dc
LP
143 if test "x$have_tcpwrap" = xyes ; then
144 AC_MSG_ERROR([*** TCP wrappers support not found.])
0213c3f8 145 fi
812cce32 146 have_tcpwrap=no
0213c3f8 147 else
5b6319dc 148 have_tcpwrap=yes
0213c3f8
LP
149 fi
150else
5b6319dc 151 LIBWRAP_LIBS=
0213c3f8 152fi
0213c3f8
LP
153AC_SUBST(LIBWRAP_LIBS)
154
5b6319dc
LP
155AC_ARG_ENABLE([pam],
156 AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
157 [case "${enableval}" in
158 yes) have_pam=yes ;;
159 no) have_pam=no ;;
160 *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
161 esac],
162 [have_pam=auto])
163
164if test "x${have_pam}" != xno ; then
165 AC_CHECK_HEADERS(
166 [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
167 [have_pam=yes],
168 [if test "x$have_pam" = xyes ; then
169 AC_MSG_ERROR([*** PAM headers not found.])
170 fi])
171
172 AC_CHECK_LIB(
173 [pam],
174 [pam_syslog],
175 [have_pam=yes],
176 [if test "x$have_pam" = xyes ; then
177 AC_MSG_ERROR([*** libpam not found.])
178 fi])
179
180 if test "x$have_pam" = xyes ; then
181 PAM_LIBS="-lpam -lpam_misc"
182 AC_DEFINE(HAVE_PAM, 1, [PAM available])
812cce32
LP
183 else
184 have_pam=no
5b6319dc
LP
185 fi
186else
187 PAM_LIBS=
188fi
189AC_SUBST(PAM_LIBS)
190AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
191
4927fcae
LP
192AC_ARG_ENABLE([audit],
193 AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
194 [case "${enableval}" in
195 yes) have_audit=yes ;;
196 no) have_audit=no ;;
197 *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
198 esac],
199 [have_audit=auto])
200
201if test "x${have_audit}" != xno ; then
202 AC_CHECK_HEADERS(
203 [libaudit.h],
204 [have_audit=yes],
205 [if test "x$have_audit" = xyes ; then
206 AC_MSG_ERROR([*** AUDIT headers not found.])
207 fi])
208
209 AC_CHECK_LIB(
210 [audit],
211 [audit_open],
212 [have_audit=yes],
213 [if test "x$have_audit" = xyes ; then
214 AC_MSG_ERROR([*** libaudit not found.])
215 fi])
216
217 if test "x$have_audit" = xyes ; then
218 AUDIT_LIBS="-laudit"
219 AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
220 else
221 have_audit=no
222 fi
223else
224 AUDIT_LIBS=
225fi
226AC_SUBST(AUDIT_LIBS)
227
7f4e0805
LP
228have_libcryptsetup=no
229AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
230if test "x$enable_libcryptsetup" != "xno"; then
231 PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup ],
232 [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
233 AC_SUBST(LIBCRYPTSETUP_CFLAGS)
234 AC_SUBST(LIBCRYPTSETUP_LIBS)
235 if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
236 AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
237 fi
238fi
239AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
240
a9b5b032
MT
241have_gtk=no
242AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
243if test "x$enable_gtk" != "xno"; then
2fa47da5 244 PKG_CHECK_MODULES(GTK, [ gtk+-2.0 gio-unix-2.0 ],
a9b5b032
MT
245 [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
246 AC_SUBST(GTK_CFLAGS)
247 AC_SUBST(GTK_LIBS)
248 if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
249 AC_MSG_ERROR([*** gtk support requested but libraries not found])
250 fi
251fi
252AM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
253
010e310f
GSB
254if test "$have_gtk" = "yes"; then
255 PKG_CHECK_MODULES(DBUSGLIB, [ dbus-glib-1 ])
256 AC_SUBST(DBUSGLIB_CFLAGS)
257 AC_SUBST(DBUSGLIB_LIBS)
2fa47da5 258
5c273f85 259 PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify >= 0.7.0 ])
2fa47da5
LP
260 AC_SUBST(LIBNOTIFY_CFLAGS)
261 AC_SUBST(LIBNOTIFY_LIBS)
010e310f
GSB
262fi
263
5c273f85 264AM_PROG_VALAC([0.11])
47be870b 265AC_SUBST(VAPIDIR)
42e39f0b 266AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
47be870b 267
d1ab0ca0
LP
268AC_PATH_PROG([XSLTPROC], [xsltproc])
269AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
270
5e6afdd3
LP
271AC_PATH_PROG([M4], [m4])
272
858dae18 273AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware or other]))
0571e011
LP
274if test "z$with_distro" = "z"; then
275 if test "$cross_compiling" = yes; then
276 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)])
277 else
278 AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora")
279 AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
280 AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
858dae18
AE
281 if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
282 with_distro="ubuntu"
283 fi
d7c114c0 284 AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
f2b4af1c 285 AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
65c8976a 286 AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
0571e011
LP
287 fi
288 if test "z$with_distro" = "z"; then
289 with_distro=`uname -s`
290 fi
291fi
292with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
7d568925 293AC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
0571e011 294
34eff652 295# Default generic names
34eff652
LP
296SPECIAL_SYSLOG_SERVICE=syslog.service
297
298# Location of the init scripts as mandated by LSB
299SYSTEM_SYSVINIT_PATH=/etc/init.d
300
12e84679
LP
301M4_DISTRO_FLAG=
302
0571e011
LP
303case $with_distro in
304 fedora)
305 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
306 SYSTEM_SYSVRCND_PATH=/etc/rc.d
34eff652 307
83bda358 308 # A little background why we define this special unit
34eff652
LP
309 # names here in configure.ac: SysV services currently
310 # cannot have aliases. As long as syslog is started
83bda358
LP
311 # via a SysV init script we hence define this name to
312 # the actual SysV name here. Later on when SysV init
313 # scripts are not used anymore it is advisable to use
314 # the generic name instead and use symlinks in the
315 # unit directories to point to the right native unit
316 # file.
317
a7b6f8e5 318 SPECIAL_SYSLOG_SERVICE=rsyslog.service
2c696a96 319 AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
12e84679 320 M4_DISTRO_FLAG=-DTARGET_FEDORA=1
0571e011
LP
321 ;;
322 suse)
0571e011 323 SYSTEM_SYSVRCND_PATH=/etc/init.d
634826b5 324 AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
12e84679 325 M4_DISTRO_FLAG=-DTARGET_SUSE=1
0571e011
LP
326 ;;
327 debian)
0571e011 328 SYSTEM_SYSVRCND_PATH=/etc
a7b6f8e5 329 SPECIAL_SYSLOG_SERVICE=rsyslog.service
858dae18 330 AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
12e84679 331 M4_DISTRO_FLAG=-DTARGET_DEBIAN=1
0571e011 332 ;;
858dae18
AE
333 ubuntu)
334 SYSTEM_SYSVRCND_PATH=/etc
335 SPECIAL_SYSLOG_SERVICE=rsyslog.service
336 AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
337 M4_DISTRO_FLAG=-DTARGET_UBUNTU=1
338 ;;
d7c114c0
DR
339 arch)
340 SYSTEM_SYSVINIT_PATH=/etc/rc.d
341 SYSTEM_SYSVRCND_PATH=/etc
a7b6f8e5 342 SPECIAL_SYSLOG_SERVICE=syslog-ng.service
d7c114c0 343 AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
12e84679 344 M4_DISTRO_FLAG=-DTARGET_ARCH=1
d7c114c0 345 ;;
f2b4af1c 346 gentoo)
07459bb6
FF
347 SYSTEM_SYSVINIT_PATH=
348 SYSTEM_SYSVRCND_PATH=
a7b6f8e5 349 SPECIAL_SYSLOG_SERVICE=syslog-ng.service
f2b4af1c 350 AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
12e84679 351 M4_DISTRO_FLAG=-DTARGET_GENTOO=1
f2b4af1c 352 ;;
65c8976a
MS
353 slackware)
354 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
355 SYSTEM_SYSVRCND_PATH=/etc/rc.d
65c8976a 356 AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
12e84679 357 M4_DISTRO_FLAG=-DTARGET_SLACKWARE=1
65c8976a 358 ;;
bf024b02 359 other)
136337ff 360 AS_IF([test "x$with_syslog_service" = "x"],
b6c2bf61 361 [AC_MSG_ERROR([With --distro=other, you must pass --with-syslog-service= to configure])])
0571e011
LP
362 ;;
363 *)
bf024b02 364 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])
0571e011
LP
365 ;;
366esac
367
136337ff
TFH
368AC_ARG_WITH([sysvinit-path],
369 [AS_HELP_STRING([--with-sysvinit-path=PATH],
370 [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
371 [SYSTEM_SYSVINIT_PATH="$withval"],
372 [])
373
374AC_ARG_WITH([sysvrcd-path],
375 [AS_HELP_STRING([--with-sysvrcd-path=PATH],
376 [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
377 [SYSTEM_SYSVRCND_PATH="$withval"],
378 [])
379
136337ff 380AC_ARG_WITH([syslog-service],
d2d12cd1 381 [AS_HELP_STRING([--with-syslog-service=UNIT],
136337ff 382 [Specify the name of the special syslog service @<:@default=based on distro@:>@])],
a7b6f8e5 383 [SPECIAL_SYSLOG_SERVICE="$withval"],
136337ff
TFH
384 [])
385
0571e011 386AC_SUBST(SYSTEM_SYSVINIT_PATH)
d64b723a 387AC_SUBST(SYSTEM_SYSVRCND_PATH)
a7b6f8e5 388AC_SUBST(SPECIAL_SYSLOG_SERVICE)
12e84679 389AC_SUBST(M4_DISTRO_FLAG)
0571e011 390
07459bb6
FF
391if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
392 AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
393 SYSTEM_SYSV_COMPAT="yes"
394elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
395 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.])
396else
397 SYSTEM_SYSV_COMPAT="no"
398fi
399
0571e011
LP
400AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
401AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
402AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
858dae18
AE
403AM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
404AM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
d7c114c0 405AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
f2b4af1c 406AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
65c8976a 407AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
0571e011 408
a7b6f8e5 409AC_DEFINE_UNQUOTED(SPECIAL_SYSLOG_SERVICE, ["$SPECIAL_SYSLOG_SERVICE"], [Syslog service name])
2c696a96 410
d2d12cd1
LP
411AC_ARG_WITH([dbuspolicydir],
412 AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
413 [],
414 [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
d122948d 415
d2d12cd1
LP
416AC_ARG_WITH([dbussessionservicedir],
417 AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
418 [],
419 [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
d122948d 420
d2d12cd1
LP
421AC_ARG_WITH([dbussystemservicedir],
422 AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
423 [],
424 [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d122948d 425
d2d12cd1
LP
426AC_ARG_WITH([dbusinterfacedir],
427 AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
428 [],
429 [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
d122948d 430
d1ab0ca0
LP
431AC_ARG_WITH([udevrulesdir],
432 AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
433 [],
8c6db833
LP
434 [with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
435
436AC_ARG_WITH([pamlibdir],
437 AS_HELP_STRING([--with-pamlibdir=DIR], [Diectory for PAM modules]),
438 [],
439 [with_pamlibdir=/lib/`$CC -print-multi-os-directory`/security])
d1ab0ca0 440
8c4a3079
LP
441AC_ARG_WITH([rootdir],
442 AS_HELP_STRING([--with-rootdir=DIR], [Root directory for files necessary for boot]),
443 [],
a6baa3f6 444 [with_rootdir=${ac_default_prefix}])
d2d12cd1
LP
445
446AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
447AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
448AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
449AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
450AC_SUBST([udevrulesdir], [$with_udevrulesdir])
8c6db833 451AC_SUBST([pamlibdir], [$with_pamlibdir])
8c4a3079
LP
452AC_SUBST([rootdir], [$with_rootdir])
453
a45a909f
CR
454AC_CONFIG_FILES([Makefile])
455AC_OUTPUT
0571e011
LP
456
457echo "
458 $PACKAGE_NAME $VERSION
459
2c696a96 460 Distribution: ${with_distro}
07459bb6 461 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
0571e011
LP
462 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
463 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
a7b6f8e5 464 Syslog service: ${SPECIAL_SYSLOG_SERVICE}
a9b5b032 465 Gtk: ${have_gtk}
7f4e0805 466 libcryptsetup: ${have_libcryptsetup}
5b6319dc
LP
467 tcpwrap: ${have_tcpwrap}
468 PAM: ${have_pam}
12716238
LP
469 AUDIT: ${have_audit}
470 SELinux: ${have_selinux}
8c4a3079
LP
471 prefix: ${prefix}
472 root dir: ${with_rootdir}
d1ab0ca0 473 udev rules dir: ${with_udevrulesdir}
8c6db833 474 pam modules dir: ${with_pamlibdir}
d2d12cd1
LP
475 dbus policy dir: ${with_dbuspolicydir}
476 dbus session dir: ${with_dbussessionservicedir}
477 dbus system dir: ${with_dbussystemservicedir}
478 dbus interfaces dir: ${with_dbusinterfacedir}
0571e011 479"