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