]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
build-sys: Angstrom support
[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
db91c527 20AC_INIT([systemd],[26],[systemd-devel@lists.freedesktop.org])
e99e38bb 21AC_CONFIG_SRCDIR([src/main.c])
47be870b
LP
22AC_CONFIG_MACRO_DIR([m4])
23AC_CONFIG_HEADERS([config.h])
4db6d587 24AC_USE_SYSTEM_EXTENSIONS
907dd195 25AC_SYS_LARGEFILE
47be870b 26
b60e6bbf 27AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax subdir-objects dist-bzip2])
47be870b 28
1b322bdb 29AC_SUBST(PACKAGE_URL, [http://www.freedesktop.org/wiki/Software/systemd])
47be870b
LP
30
31AC_CANONICAL_HOST
22be093f 32AC_DEFINE_UNQUOTED([CANONICAL_HOST], "$host", [Canonical host string.])
d59d0a2b 33AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
34 test "x$host_cpu" = "xmips64" || test "x$host_cpu" = "xmips64el"],
35 [AC_DEFINE(ARCH_MIPS, [], [Whether on mips arch])])
47be870b
LP
36
37AM_SILENT_RULES([yes])
38
39AC_CHECK_PROG([STOW], [stow], [yes], [no])
40
41AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [
42 AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
43 ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
44])
45
e9da3678
LP
46AC_PROG_MKDIR_P
47AC_PROG_LN_S
48AC_PROG_SED
49
47be870b
LP
50AC_PROG_CC
51AC_PROG_CC_C99
52AM_PROG_CC_C_O
53AC_PROG_GCC_TRADITIONAL
47be870b 54
9a60da28
TR
55AC_CHECK_TOOL(OBJCOPY, objcopy)
56AC_CHECK_TOOL(STRINGS, strings)
57
d1ab0ca0 58CC_CHECK_CFLAGS_APPEND([ \
be1a67d9 59 -pipe \
d1ab0ca0
LP
60 -Wall \
61 -W \
62 -Wextra \
27765dfc 63 -Wno-inline \
d1ab0ca0 64 -Wvla \
d1ab0ca0
LP
65 -Wundef \
66 -Wformat=2 \
67 -Wlogical-op \
68 -Wsign-compare \
69 -Wformat-security \
70 -Wmissing-include-dirs \
71 -Wformat-nonliteral \
72 -Wold-style-definition \
73 -Wpointer-arith \
74 -Winit-self \
75 -Wdeclaration-after-statement \
76 -Wfloat-equal \
77 -Wmissing-prototypes \
78 -Wstrict-prototypes \
79 -Wredundant-decls \
80 -Wmissing-declarations \
81 -Wmissing-noreturn \
82 -Wshadow \
83 -Wendif-labels \
84 -Wcast-align \
85 -Wstrict-aliasing=2 \
86 -Wwrite-strings \
be1a67d9
LP
87 -Wno-long-long \
88 -Wno-overlength-strings \
d1ab0ca0 89 -Wno-unused-parameter \
be1a67d9 90 -Wno-missing-field-initializers \
8745297f 91 -Wno-unused-result \
d1ab0ca0 92 -Wp,-D_FORTIFY_SOURCE=2 \
be1a67d9 93 -ffast-math \
d1ab0ca0
LP
94 -fno-common \
95 -fdiagnostics-show-option \
9b85fc6a
GSB
96 -fno-strict-aliasing \
97 -fvisibility=hidden \
98 -ffunction-sections \
99 -fdata-sections \
100 -Wl,--as-needed \
101 -Wl,--gc-sections])
47be870b 102
139be57d
LP
103LT_PREREQ(2.2)
104LT_INIT
105
47be870b 106AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
afea26ad 107AC_SEARCH_LIBS([dlsym], [dl], [], [AC_MSG_ERROR([*** Dynamic linking loader library not found])])
47be870b
LP
108AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])
109AC_CHECK_HEADERS([sys/capability.h], [], [AC_MSG_ERROR([*** POSIX caps headers not found])])
110
b237ef2c 111# This makes sure pkg.m4 is available.
a9b5b032 112m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
d1ab0ca0 113
f1dfb629 114PKG_CHECK_MODULES(UDEV, [ libudev >= 160 ])
47be870b
LP
115AC_SUBST(UDEV_CFLAGS)
116AC_SUBST(UDEV_LIBS)
117
83bda358 118PKG_CHECK_MODULES(DBUS, [ dbus-1 >= 1.3.2 ])
47be870b
LP
119AC_SUBST(DBUS_CFLAGS)
120AC_SUBST(DBUS_LIBS)
121
591622d7
LP
122have_selinux=no
123AC_ARG_ENABLE(selinux, AS_HELP_STRING([--disable-selinux], [Disable optional SELINUX support]))
124if test "x$enable_selinux" != "xno"; then
125 PKG_CHECK_MODULES(SELINUX, [ libselinux ],
126 [AC_DEFINE(HAVE_SELINUX, 1, [Define if SELinux is available]) have_selinux=yes], have_selinux=no)
127 AC_SUBST(SELINUX_CFLAGS)
128 AC_SUBST(SELINUX_LIBS)
129 if test "x$have_selinux" = xno -a "x$enable_selinux" = xyes; then
130 AC_MSG_ERROR([*** SELinux support requested but libraries not found])
131 fi
56cf987f 132fi
591622d7 133AM_CONDITIONAL(HAVE_SELINUX, [test "$have_selinux" = "yes"])
56cf987f 134
0213c3f8
LP
135AC_ARG_ENABLE([tcpwrap],
136 AS_HELP_STRING([--disable-tcpwrap],[Disable optional TCP wrappers support]),
137 [case "${enableval}" in
5b6319dc
LP
138 yes) have_tcpwrap=yes ;;
139 no) have_tcpwrap=no ;;
0213c3f8
LP
140 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tcpwrap) ;;
141 esac],
5b6319dc 142 [have_tcpwrap=auto])
0213c3f8 143
5b6319dc 144if test "x${have_tcpwrap}" != xno ; then
0213c3f8
LP
145 ACX_LIBWRAP
146 if test "x${LIBWRAP_LIBS}" = x ; then
5b6319dc
LP
147 if test "x$have_tcpwrap" = xyes ; then
148 AC_MSG_ERROR([*** TCP wrappers support not found.])
0213c3f8 149 fi
812cce32 150 have_tcpwrap=no
0213c3f8 151 else
5b6319dc 152 have_tcpwrap=yes
0213c3f8
LP
153 fi
154else
5b6319dc 155 LIBWRAP_LIBS=
0213c3f8 156fi
0213c3f8
LP
157AC_SUBST(LIBWRAP_LIBS)
158
5b6319dc
LP
159AC_ARG_ENABLE([pam],
160 AS_HELP_STRING([--disable-pam],[Disable optional PAM support]),
161 [case "${enableval}" in
162 yes) have_pam=yes ;;
163 no) have_pam=no ;;
164 *) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
165 esac],
166 [have_pam=auto])
167
168if test "x${have_pam}" != xno ; then
169 AC_CHECK_HEADERS(
170 [security/pam_modules.h security/pam_modutil.h security/pam_ext.h],
171 [have_pam=yes],
172 [if test "x$have_pam" = xyes ; then
173 AC_MSG_ERROR([*** PAM headers not found.])
174 fi])
175
176 AC_CHECK_LIB(
177 [pam],
178 [pam_syslog],
179 [have_pam=yes],
180 [if test "x$have_pam" = xyes ; then
181 AC_MSG_ERROR([*** libpam not found.])
182 fi])
183
184 if test "x$have_pam" = xyes ; then
185 PAM_LIBS="-lpam -lpam_misc"
186 AC_DEFINE(HAVE_PAM, 1, [PAM available])
812cce32
LP
187 else
188 have_pam=no
5b6319dc
LP
189 fi
190else
191 PAM_LIBS=
192fi
193AC_SUBST(PAM_LIBS)
194AM_CONDITIONAL([HAVE_PAM], [test "x$have_pam" != xno])
195
4927fcae
LP
196AC_ARG_ENABLE([audit],
197 AS_HELP_STRING([--disable-audit],[Disable optional AUDIT support]),
198 [case "${enableval}" in
199 yes) have_audit=yes ;;
200 no) have_audit=no ;;
201 *) AC_MSG_ERROR(bad value ${enableval} for --disable-audit) ;;
202 esac],
203 [have_audit=auto])
204
205if test "x${have_audit}" != xno ; then
206 AC_CHECK_HEADERS(
207 [libaudit.h],
208 [have_audit=yes],
209 [if test "x$have_audit" = xyes ; then
210 AC_MSG_ERROR([*** AUDIT headers not found.])
211 fi])
212
213 AC_CHECK_LIB(
214 [audit],
215 [audit_open],
216 [have_audit=yes],
217 [if test "x$have_audit" = xyes ; then
218 AC_MSG_ERROR([*** libaudit not found.])
219 fi])
220
221 if test "x$have_audit" = xyes ; then
222 AUDIT_LIBS="-laudit"
223 AC_DEFINE(HAVE_AUDIT, 1, [AUDIT available])
224 else
225 have_audit=no
226 fi
227else
228 AUDIT_LIBS=
229fi
230AC_SUBST(AUDIT_LIBS)
231
7f4e0805
LP
232have_libcryptsetup=no
233AC_ARG_ENABLE(libcryptsetup, AS_HELP_STRING([--disable-libcryptsetup], [disable libcryptsetup tools]))
234if test "x$enable_libcryptsetup" != "xno"; then
235 PKG_CHECK_MODULES(LIBCRYPTSETUP, [ libcryptsetup ],
236 [AC_DEFINE(HAVE_LIBCRYPTSETUP, 1, [Define if libcryptsetup is available]) have_libcryptsetup=yes], have_libcryptsetup=no)
237 AC_SUBST(LIBCRYPTSETUP_CFLAGS)
238 AC_SUBST(LIBCRYPTSETUP_LIBS)
239 if test "x$have_libcryptsetup" = xno -a "x$enable_libcryptsetup" = xyes; then
591622d7 240 AC_MSG_ERROR([*** libcryptsetup support requested but libraries not found])
7f4e0805
LP
241 fi
242fi
243AM_CONDITIONAL(HAVE_LIBCRYPTSETUP, [test "$have_libcryptsetup" = "yes"])
244
27669061
MV
245have_binfmt=no
246AC_ARG_ENABLE(binfmt, AS_HELP_STRING([--disable-binfmt], [disable binfmt tool]))
247if test "x$enable_binfmt" != "xno"; then
248 have_binfmt=yes
249fi
250AM_CONDITIONAL(ENABLE_BINFMT, [test "$have_binfmt" = "yes"])
251
a9b5b032
MT
252have_gtk=no
253AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
254if test "x$enable_gtk" != "xno"; then
26742b3f 255 PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 ],
a9b5b032
MT
256 [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
257 AC_SUBST(GTK_CFLAGS)
258 AC_SUBST(GTK_LIBS)
259 if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
26742b3f 260 AC_MSG_ERROR([*** gtk support requested but libraries not found])
a9b5b032
MT
261 fi
262fi
263AM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
264
010e310f 265if test "$have_gtk" = "yes"; then
ab85c225
MB
266 PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ])
267 PKG_CHECK_EXISTS([ libnotify >= 0.7.0 ], [ libnotify07=yes ])
268
2fa47da5
LP
269 AC_SUBST(LIBNOTIFY_CFLAGS)
270 AC_SUBST(LIBNOTIFY_LIBS)
010e310f 271fi
ab85c225 272AM_CONDITIONAL(LIBNOTIFY07, [ test "$libnotify07" = "yes" ])
010e310f 273
db040a61 274AM_PROG_VALAC([0.10])
47be870b 275AC_SUBST(VAPIDIR)
42e39f0b 276AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
47be870b 277
d1ab0ca0
LP
278AC_PATH_PROG([XSLTPROC], [xsltproc])
279AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
280
5e6afdd3
LP
281AC_PATH_PROG([M4], [m4])
282
a338bab5 283AC_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]))
0571e011
LP
284if test "z$with_distro" = "z"; then
285 if test "$cross_compiling" = yes; then
286 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)])
287 else
8d7cb6e0
LDM
288 test -f "/etc/redhat-release" && with_distro="fedora"
289 test -f "/etc/SuSE-release" && with_distro="suse"
290 test -f "/etc/debian_version" && with_distro="debian"
291 test -f "/etc/arch-release" && with_distro="arch"
292 test -f "/etc/gentoo-release" && with_distro="gentoo"
293 test -f "/etc/slackware-version" && with_distro="slackware"
294 test -f "/etc/frugalware-release" && with_distro="frugalware"
a338bab5 295 test -f "/etc/altlinux-release" && with_distro="altlinux"
1de4d79b 296 test -f "/etc/mandriva-release" && with_distro="mandriva"
54e4fdef 297 test -f "/etc/meego-release" && with_distro="meego"
1bd8b818 298 test -f "/etc/angstrom-version" && with_distro="angstrom"
858dae18
AE
299 if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
300 with_distro="ubuntu"
301 fi
0571e011
LP
302 fi
303 if test "z$with_distro" = "z"; then
304 with_distro=`uname -s`
305 fi
306fi
307with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
7d568925 308AC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
0571e011 309
34eff652
LP
310# Location of the init scripts as mandated by LSB
311SYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f 312SYSTEM_SYSVRCND_PATH=/etc/rc.d
34eff652 313
12e84679
LP
314M4_DISTRO_FLAG=
315
0571e011
LP
316case $with_distro in
317 fedora)
318 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
2c696a96 319 AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
12e84679 320 M4_DISTRO_FLAG=-DTARGET_FEDORA=1
cd3f8b7d 321 have_plymouth=true
0571e011
LP
322 ;;
323 suse)
0571e011 324 SYSTEM_SYSVRCND_PATH=/etc/init.d
634826b5 325 AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
12e84679 326 M4_DISTRO_FLAG=-DTARGET_SUSE=1
cd3f8b7d 327 have_plymouth=true
0571e011
LP
328 ;;
329 debian)
0571e011 330 SYSTEM_SYSVRCND_PATH=/etc
858dae18 331 AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
12e84679 332 M4_DISTRO_FLAG=-DTARGET_DEBIAN=1
0571e011 333 ;;
858dae18
AE
334 ubuntu)
335 SYSTEM_SYSVRCND_PATH=/etc
858dae18
AE
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
d7c114c0 342 AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
12e84679 343 M4_DISTRO_FLAG=-DTARGET_ARCH=1
d7c114c0 344 ;;
f2b4af1c 345 gentoo)
07459bb6
FF
346 SYSTEM_SYSVINIT_PATH=
347 SYSTEM_SYSVRCND_PATH=
f2b4af1c 348 AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
12e84679 349 M4_DISTRO_FLAG=-DTARGET_GENTOO=1
f2b4af1c 350 ;;
65c8976a
MS
351 slackware)
352 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
65c8976a 353 AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
12e84679 354 M4_DISTRO_FLAG=-DTARGET_SLACKWARE=1
65c8976a 355 ;;
f5c88ec1
MV
356 frugalware)
357 SYSTEM_SYSVINIT_PATH=/etc/rc.d
f5c88ec1
MV
358 AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
359 M4_DISTRO_FLAG=-DTARGET_FRUGALWARE=1
34a852e6 360 have_plymouth=true
f5c88ec1 361 ;;
a338bab5
AS
362 altlinux)
363 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
a338bab5
AS
364 AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
365 M4_DISTRO_FLAG=-DTARGET_ALTLINUX=1
53bdb7c1 366 have_plymouth=true
a338bab5 367 ;;
1de4d79b
AB
368 mandriva)
369 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
1de4d79b
AB
370 AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
371 M4_DISTRO_FLAG=-DTARGET_MANDRIVA=1
372 have_plymouth=true
373 ;;
54e4fdef
CF
374 meego)
375 SYSTEM_SYSVINIT_PATH=
376 SYSTEM_SYSVRCND_PATH=
377 AC_DEFINE(TARGET_MEEGO, [], [Target is MeeGo])
378 M4_DISTRO_FLAG=-DTARGET_MEEGO=1
379 ;;
1bd8b818
KK
380 angstrom)
381 SYSTEM_SYSVRCND_PATH=/etc
382 AC_DEFINE(TARGET_ANGSTROM, [], [Target is Ångström])
383 M4_DISTRO_FLAG=-DTARGET_ANGSTROM=1
384 ;;
bf024b02 385 other)
0571e011
LP
386 ;;
387 *)
bf024b02 388 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
389 ;;
390esac
391
136337ff
TFH
392AC_ARG_WITH([sysvinit-path],
393 [AS_HELP_STRING([--with-sysvinit-path=PATH],
394 [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
395 [SYSTEM_SYSVINIT_PATH="$withval"],
396 [])
397
398AC_ARG_WITH([sysvrcd-path],
399 [AS_HELP_STRING([--with-sysvrcd-path=PATH],
400 [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
401 [SYSTEM_SYSVRCND_PATH="$withval"],
402 [])
403
0571e011 404AC_SUBST(SYSTEM_SYSVINIT_PATH)
d64b723a 405AC_SUBST(SYSTEM_SYSVRCND_PATH)
12e84679 406AC_SUBST(M4_DISTRO_FLAG)
0571e011 407
07459bb6
FF
408if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
409 AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
410 SYSTEM_SYSV_COMPAT="yes"
411elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
412 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.])
413else
414 SYSTEM_SYSV_COMPAT="no"
415fi
416
bef2733f 417AC_ARG_WITH([tty-gid],
a05ea46d 418 [AS_HELP_STRING([--with-tty-gid=GID],
bef2733f
LP
419 [Specify the numeric GID of the 'tty' group])],
420 [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
421 [])
422
0571e011
LP
423AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
424AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
425AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
858dae18
AE
426AM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
427AM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
d7c114c0 428AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
f2b4af1c 429AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
65c8976a 430AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
f5c88ec1 431AM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
a338bab5 432AM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
1de4d79b 433AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
54e4fdef 434AM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego)
1bd8b818 435AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
0571e011 436
cd3f8b7d 437AM_CONDITIONAL(HAVE_PLYMOUTH, test -n "$have_plymouth")
cca4aeee 438AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
cd3f8b7d 439
d2d12cd1
LP
440AC_ARG_WITH([dbuspolicydir],
441 AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
442 [],
443 [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
d122948d 444
d2d12cd1
LP
445AC_ARG_WITH([dbussessionservicedir],
446 AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
447 [],
448 [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
d122948d 449
d2d12cd1
LP
450AC_ARG_WITH([dbussystemservicedir],
451 AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
452 [],
453 [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d122948d 454
d2d12cd1
LP
455AC_ARG_WITH([dbusinterfacedir],
456 AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
457 [],
458 [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
d122948d 459
d1ab0ca0
LP
460AC_ARG_WITH([udevrulesdir],
461 AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
462 [],
8c6db833
LP
463 [with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
464
465AC_ARG_WITH([pamlibdir],
466 AS_HELP_STRING([--with-pamlibdir=DIR], [Diectory for PAM modules]),
467 [],
468 [with_pamlibdir=/lib/`$CC -print-multi-os-directory`/security])
d1ab0ca0 469
8c4a3079
LP
470AC_ARG_WITH([rootdir],
471 AS_HELP_STRING([--with-rootdir=DIR], [Root directory for files necessary for boot]),
472 [],
a6baa3f6 473 [with_rootdir=${ac_default_prefix}])
d2d12cd1
LP
474
475AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
476AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
477AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
478AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
479AC_SUBST([udevrulesdir], [$with_udevrulesdir])
8c6db833 480AC_SUBST([pamlibdir], [$with_pamlibdir])
8c4a3079
LP
481AC_SUBST([rootdir], [$with_rootdir])
482
a45a909f
CR
483AC_CONFIG_FILES([Makefile])
484AC_OUTPUT
0571e011
LP
485
486echo "
487 $PACKAGE_NAME $VERSION
488
2c696a96 489 Distribution: ${with_distro}
07459bb6 490 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
0571e011
LP
491 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
492 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
a9b5b032 493 Gtk: ${have_gtk}
7f4e0805 494 libcryptsetup: ${have_libcryptsetup}
5b6319dc
LP
495 tcpwrap: ${have_tcpwrap}
496 PAM: ${have_pam}
12716238
LP
497 AUDIT: ${have_audit}
498 SELinux: ${have_selinux}
27669061 499 binfmt: ${have_binfmt}
8c4a3079
LP
500 prefix: ${prefix}
501 root dir: ${with_rootdir}
d1ab0ca0 502 udev rules dir: ${with_udevrulesdir}
8c6db833 503 pam modules dir: ${with_pamlibdir}
d2d12cd1
LP
504 dbus policy dir: ${with_dbuspolicydir}
505 dbus session dir: ${with_dbussessionservicedir}
506 dbus system dir: ${with_dbussystemservicedir}
507 dbus interfaces dir: ${with_dbusinterfacedir}
0571e011 508"