]> git.ipfire.org Git - thirdparty/systemd.git/blame - configure.ac
strv: Fix gcc unitialized variable warning
[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
dffbaed9 20AC_INIT([systemd],[25],[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
a9b5b032
MT
245have_gtk=no
246AC_ARG_ENABLE(gtk, AS_HELP_STRING([--disable-gtk], [disable GTK tools]))
247if test "x$enable_gtk" != "xno"; then
26742b3f 248 PKG_CHECK_MODULES(GTK, [ gtk+-2.0 glib-2.0 > 2.26 gio-unix-2.0 ],
a9b5b032
MT
249 [AC_DEFINE(HAVE_GTK, 1, [Define if GTK is available]) have_gtk=yes], have_gtk=no)
250 AC_SUBST(GTK_CFLAGS)
251 AC_SUBST(GTK_LIBS)
252 if test "x$have_gtk" = xno -a "x$enable_gtk" = xyes; then
26742b3f 253 AC_MSG_ERROR([*** gtk support requested but libraries not found])
a9b5b032
MT
254 fi
255fi
256AM_CONDITIONAL(HAVE_GTK, [test "$have_gtk" = "yes"])
257
010e310f 258if test "$have_gtk" = "yes"; then
ab85c225
MB
259 PKG_CHECK_MODULES(LIBNOTIFY, [ libnotify ])
260 PKG_CHECK_EXISTS([ libnotify >= 0.7.0 ], [ libnotify07=yes ])
261
2fa47da5
LP
262 AC_SUBST(LIBNOTIFY_CFLAGS)
263 AC_SUBST(LIBNOTIFY_LIBS)
010e310f 264fi
ab85c225 265AM_CONDITIONAL(LIBNOTIFY07, [ test "$libnotify07" = "yes" ])
010e310f 266
db040a61 267AM_PROG_VALAC([0.10])
47be870b 268AC_SUBST(VAPIDIR)
42e39f0b 269AM_CONDITIONAL(HAVE_VALAC, test x"$VALAC" != x)
47be870b 270
d1ab0ca0
LP
271AC_PATH_PROG([XSLTPROC], [xsltproc])
272AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
273
5e6afdd3
LP
274AC_PATH_PROG([M4], [m4])
275
a338bab5 276AC_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
277if test "z$with_distro" = "z"; then
278 if test "$cross_compiling" = yes; then
279 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)])
280 else
8d7cb6e0
LDM
281 test -f "/etc/redhat-release" && with_distro="fedora"
282 test -f "/etc/SuSE-release" && with_distro="suse"
283 test -f "/etc/debian_version" && with_distro="debian"
284 test -f "/etc/arch-release" && with_distro="arch"
285 test -f "/etc/gentoo-release" && with_distro="gentoo"
286 test -f "/etc/slackware-version" && with_distro="slackware"
287 test -f "/etc/frugalware-release" && with_distro="frugalware"
a338bab5 288 test -f "/etc/altlinux-release" && with_distro="altlinux"
1de4d79b 289 test -f "/etc/mandriva-release" && with_distro="mandriva"
54e4fdef 290 test -f "/etc/meego-release" && with_distro="meego"
858dae18
AE
291 if test "x`lsb_release -is 2>/dev/null`" = "xUbuntu"; then
292 with_distro="ubuntu"
293 fi
0571e011
LP
294 fi
295 if test "z$with_distro" = "z"; then
296 with_distro=`uname -s`
297 fi
298fi
299with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
7d568925 300AC_DEFINE_UNQUOTED(DISTRIBUTION, ["${with_distro}"], [Target Distribution])
0571e011 301
34eff652
LP
302# Location of the init scripts as mandated by LSB
303SYSTEM_SYSVINIT_PATH=/etc/init.d
f1dd0c3f 304SYSTEM_SYSVRCND_PATH=/etc/rc.d
34eff652 305
12e84679
LP
306M4_DISTRO_FLAG=
307
0571e011
LP
308case $with_distro in
309 fedora)
310 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
2c696a96 311 AC_DEFINE(TARGET_FEDORA, [], [Target is Fedora/RHEL])
12e84679 312 M4_DISTRO_FLAG=-DTARGET_FEDORA=1
cd3f8b7d 313 have_plymouth=true
0571e011
LP
314 ;;
315 suse)
0571e011 316 SYSTEM_SYSVRCND_PATH=/etc/init.d
634826b5 317 AC_DEFINE(TARGET_SUSE, [], [Target is openSUSE/SLE])
12e84679 318 M4_DISTRO_FLAG=-DTARGET_SUSE=1
cd3f8b7d 319 have_plymouth=true
0571e011
LP
320 ;;
321 debian)
0571e011 322 SYSTEM_SYSVRCND_PATH=/etc
858dae18 323 AC_DEFINE(TARGET_DEBIAN, [], [Target is Debian])
12e84679 324 M4_DISTRO_FLAG=-DTARGET_DEBIAN=1
0571e011 325 ;;
858dae18
AE
326 ubuntu)
327 SYSTEM_SYSVRCND_PATH=/etc
858dae18
AE
328 AC_DEFINE(TARGET_UBUNTU, [], [Target is Ubuntu])
329 M4_DISTRO_FLAG=-DTARGET_UBUNTU=1
330 ;;
d7c114c0
DR
331 arch)
332 SYSTEM_SYSVINIT_PATH=/etc/rc.d
333 SYSTEM_SYSVRCND_PATH=/etc
d7c114c0 334 AC_DEFINE(TARGET_ARCH, [], [Target is ArchLinux])
12e84679 335 M4_DISTRO_FLAG=-DTARGET_ARCH=1
d7c114c0 336 ;;
f2b4af1c 337 gentoo)
07459bb6
FF
338 SYSTEM_SYSVINIT_PATH=
339 SYSTEM_SYSVRCND_PATH=
f2b4af1c 340 AC_DEFINE(TARGET_GENTOO, [], [Target is Gentoo])
12e84679 341 M4_DISTRO_FLAG=-DTARGET_GENTOO=1
f2b4af1c 342 ;;
65c8976a
MS
343 slackware)
344 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
65c8976a 345 AC_DEFINE(TARGET_SLACKWARE, [], [Target is Slackware])
12e84679 346 M4_DISTRO_FLAG=-DTARGET_SLACKWARE=1
65c8976a 347 ;;
f5c88ec1
MV
348 frugalware)
349 SYSTEM_SYSVINIT_PATH=/etc/rc.d
f5c88ec1
MV
350 AC_DEFINE(TARGET_FRUGALWARE, [], [Target is Frugalware])
351 M4_DISTRO_FLAG=-DTARGET_FRUGALWARE=1
352 ;;
a338bab5
AS
353 altlinux)
354 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
a338bab5
AS
355 AC_DEFINE(TARGET_ALTLINUX, [], [Target is ALTLinux])
356 M4_DISTRO_FLAG=-DTARGET_ALTLINUX=1
53bdb7c1 357 have_plymouth=true
a338bab5 358 ;;
1de4d79b
AB
359 mandriva)
360 SYSTEM_SYSVINIT_PATH=/etc/rc.d/init.d
1de4d79b
AB
361 AC_DEFINE(TARGET_MANDRIVA, [], [Target is Mandriva])
362 M4_DISTRO_FLAG=-DTARGET_MANDRIVA=1
363 have_plymouth=true
364 ;;
54e4fdef
CF
365 meego)
366 SYSTEM_SYSVINIT_PATH=
367 SYSTEM_SYSVRCND_PATH=
368 AC_DEFINE(TARGET_MEEGO, [], [Target is MeeGo])
369 M4_DISTRO_FLAG=-DTARGET_MEEGO=1
370 ;;
bf024b02 371 other)
0571e011
LP
372 ;;
373 *)
bf024b02 374 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
375 ;;
376esac
377
136337ff
TFH
378AC_ARG_WITH([sysvinit-path],
379 [AS_HELP_STRING([--with-sysvinit-path=PATH],
380 [Specify the path to where the SysV init scripts are located @<:@default=based on distro@:>@])],
381 [SYSTEM_SYSVINIT_PATH="$withval"],
382 [])
383
384AC_ARG_WITH([sysvrcd-path],
385 [AS_HELP_STRING([--with-sysvrcd-path=PATH],
386 [Specify the path to the base directory for the SysV rcN.d directories @<:@default=based on distro@:>@])],
387 [SYSTEM_SYSVRCND_PATH="$withval"],
388 [])
389
0571e011 390AC_SUBST(SYSTEM_SYSVINIT_PATH)
d64b723a 391AC_SUBST(SYSTEM_SYSVRCND_PATH)
12e84679 392AC_SUBST(M4_DISTRO_FLAG)
0571e011 393
07459bb6
FF
394if test "x${SYSTEM_SYSVINIT_PATH}" != "x" -a "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
395 AC_DEFINE(HAVE_SYSV_COMPAT, [], [SysV init scripts and rcN.d links are supported.])
396 SYSTEM_SYSV_COMPAT="yes"
397elif test "x${SYSTEM_SYSVINIT_PATH}" != "x" -o "x${SYSTEM_SYSVRCND_PATH}" != "x"; then
398 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.])
399else
400 SYSTEM_SYSV_COMPAT="no"
401fi
402
bef2733f 403AC_ARG_WITH([tty-gid],
a05ea46d 404 [AS_HELP_STRING([--with-tty-gid=GID],
bef2733f
LP
405 [Specify the numeric GID of the 'tty' group])],
406 [AC_DEFINE_UNQUOTED(TTY_GID, [$withval], [GID of the 'tty' group])],
407 [])
408
0571e011
LP
409AM_CONDITIONAL(TARGET_FEDORA, test x"$with_distro" = xfedora)
410AM_CONDITIONAL(TARGET_SUSE, test x"$with_distro" = xsuse)
411AM_CONDITIONAL(TARGET_DEBIAN, test x"$with_distro" = xdebian)
858dae18
AE
412AM_CONDITIONAL(TARGET_UBUNTU, test x"$with_distro" = xubuntu)
413AM_CONDITIONAL(TARGET_DEBIAN_OR_UBUNTU, test x"$with_distro" = xdebian -o x"$with_distro" = xubuntu)
d7c114c0 414AM_CONDITIONAL(TARGET_ARCH, test x"$with_distro" = xarch)
f2b4af1c 415AM_CONDITIONAL(TARGET_GENTOO, test x"$with_distro" = xgentoo)
65c8976a 416AM_CONDITIONAL(TARGET_SLACKWARE, test x"$with_distro" = xslackware)
f5c88ec1 417AM_CONDITIONAL(TARGET_FRUGALWARE, test x"$with_distro" = xfrugalware)
a338bab5 418AM_CONDITIONAL(TARGET_ALTLINUX, test x"$with_distro" = xaltlinux)
1de4d79b 419AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
54e4fdef 420AM_CONDITIONAL(TARGET_MEEGO, test x"$with_distro" = xmeego)
0571e011 421
cd3f8b7d 422AM_CONDITIONAL(HAVE_PLYMOUTH, test -n "$have_plymouth")
cca4aeee 423AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
cd3f8b7d 424
d2d12cd1
LP
425AC_ARG_WITH([dbuspolicydir],
426 AS_HELP_STRING([--with-dbuspolicydir=DIR], [D-Bus policy directory]),
427 [],
428 [with_dbuspolicydir=`pkg-config --variable=sysconfdir dbus-1`/dbus-1/system.d])
d122948d 429
d2d12cd1
LP
430AC_ARG_WITH([dbussessionservicedir],
431 AS_HELP_STRING([--with-dbussessionservicedir=DIR], [D-Bus session service directory]),
432 [],
433 [with_dbussessionservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`])
d122948d 434
d2d12cd1
LP
435AC_ARG_WITH([dbussystemservicedir],
436 AS_HELP_STRING([--with-dbussystemservicedir=DIR], [D-Bus system service directory]),
437 [],
438 [with_dbussystemservicedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../system-services])
d122948d 439
d2d12cd1
LP
440AC_ARG_WITH([dbusinterfacedir],
441 AS_HELP_STRING([--with-dbusinterfacedir=DIR], [D-Bus interface directory]),
442 [],
443 [with_dbusinterfacedir=`pkg-config --variable=session_bus_services_dir dbus-1`/../interfaces])
d122948d 444
d1ab0ca0
LP
445AC_ARG_WITH([udevrulesdir],
446 AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
447 [],
8c6db833
LP
448 [with_udevrulesdir=`pkg-config --variable=udevdir udev`/rules.d])
449
450AC_ARG_WITH([pamlibdir],
451 AS_HELP_STRING([--with-pamlibdir=DIR], [Diectory for PAM modules]),
452 [],
453 [with_pamlibdir=/lib/`$CC -print-multi-os-directory`/security])
d1ab0ca0 454
8c4a3079
LP
455AC_ARG_WITH([rootdir],
456 AS_HELP_STRING([--with-rootdir=DIR], [Root directory for files necessary for boot]),
457 [],
a6baa3f6 458 [with_rootdir=${ac_default_prefix}])
d2d12cd1
LP
459
460AC_SUBST([dbuspolicydir], [$with_dbuspolicydir])
461AC_SUBST([dbussessionservicedir], [$with_dbussessionservicedir])
462AC_SUBST([dbussystemservicedir], [$with_dbussystemservicedir])
463AC_SUBST([dbusinterfacedir], [$with_dbusinterfacedir])
464AC_SUBST([udevrulesdir], [$with_udevrulesdir])
8c6db833 465AC_SUBST([pamlibdir], [$with_pamlibdir])
8c4a3079
LP
466AC_SUBST([rootdir], [$with_rootdir])
467
a45a909f
CR
468AC_CONFIG_FILES([Makefile])
469AC_OUTPUT
0571e011
LP
470
471echo "
472 $PACKAGE_NAME $VERSION
473
2c696a96 474 Distribution: ${with_distro}
07459bb6 475 SysV compatibility: ${SYSTEM_SYSV_COMPAT}
0571e011
LP
476 SysV init scripts: ${SYSTEM_SYSVINIT_PATH}
477 SysV rc?.d directories: ${SYSTEM_SYSVRCND_PATH}
a9b5b032 478 Gtk: ${have_gtk}
7f4e0805 479 libcryptsetup: ${have_libcryptsetup}
5b6319dc
LP
480 tcpwrap: ${have_tcpwrap}
481 PAM: ${have_pam}
12716238
LP
482 AUDIT: ${have_audit}
483 SELinux: ${have_selinux}
8c4a3079
LP
484 prefix: ${prefix}
485 root dir: ${with_rootdir}
d1ab0ca0 486 udev rules dir: ${with_udevrulesdir}
8c6db833 487 pam modules dir: ${with_pamlibdir}
d2d12cd1
LP
488 dbus policy dir: ${with_dbuspolicydir}
489 dbus session dir: ${with_dbussessionservicedir}
490 dbus system dir: ${with_dbussystemservicedir}
491 dbus interfaces dir: ${with_dbusinterfacedir}
0571e011 492"